@atlaskit/forge-react-types 0.37.11 → 0.37.13
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 +17 -0
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +3 -1
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +3 -1
- package/dist/esm/components/__generated__/BoxProps.codegen.js +3 -1
- package/dist/types/components/__generated__/AdfRendererProps.codegen.d.ts +4 -2
- package/dist/types/components/__generated__/BadgeProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/BleedProps.codegen.d.ts +2 -5
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ButtonProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/CalendarProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/CheckboxGroupProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/CheckboxProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/CodeBlockProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/CodeProps.codegen.d.ts +4 -2
- package/dist/types/components/__generated__/DatePickerProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/DynamicTableProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/EmptyStateProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ErrorMessageProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/FlexProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/FormFooterProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/FormHeaderProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/FormProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/FormSectionProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/HeadingProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/HelperMessageProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/IconProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/InlineEditProps.codegen.d.ts +4 -2
- package/dist/types/components/__generated__/InlineProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/LabelProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/LinkButtonProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ListProps.codegen.d.ts +4 -2
- package/dist/types/components/__generated__/LoadingButtonProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/LozengeProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalBodyProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalFooterProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalHeaderProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalTitleProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ModalTransitionProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/PopupProps.codegen.d.ts +4 -2
- package/dist/types/components/__generated__/ProgressBarProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ProgressTrackerProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/RadioGroupProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/RadioProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/RangeProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/SectionMessageActionProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/SectionMessageProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/SelectProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/SpinnerProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/StackProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TabListProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TabPanelProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TabProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TabsProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TagGroupProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TagProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TextAreaProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TextProps.codegen.d.ts +7 -7
- package/dist/types/components/__generated__/TextfieldProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TimePickerProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ToggleProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/TooltipProps.codegen.d.ts +3 -1
- package/dist/types/components/__generated__/ValidMessageProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/AdfRendererProps.codegen.d.ts +4 -2
- package/dist/types-ts4.5/components/__generated__/BadgeProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/BleedProps.codegen.d.ts +2 -5
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ButtonGroupProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ButtonProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/CalendarProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/CheckboxGroupProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/CheckboxProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/CodeBlockProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/CodeProps.codegen.d.ts +4 -2
- package/dist/types-ts4.5/components/__generated__/DatePickerProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/DynamicTableProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/EmptyStateProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ErrorMessageProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/FlexProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/FormFooterProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/FormHeaderProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/FormProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/FormSectionProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/HeadingProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/HelperMessageProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/IconProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/InlineEditProps.codegen.d.ts +4 -2
- package/dist/types-ts4.5/components/__generated__/InlineProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/LabelProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/LinkButtonProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ListProps.codegen.d.ts +4 -2
- package/dist/types-ts4.5/components/__generated__/LoadingButtonProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/LozengeProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalBodyProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalFooterProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalHeaderProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalTitleProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ModalTransitionProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/PopupProps.codegen.d.ts +4 -2
- package/dist/types-ts4.5/components/__generated__/ProgressBarProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ProgressTrackerProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/RadioGroupProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/RadioProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/RangeProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/SectionMessageActionProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/SectionMessageProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/SelectProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/SpinnerProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/StackProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TabListProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TabPanelProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TabProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TabsProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TagGroupProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TagProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TextAreaProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TextProps.codegen.d.ts +7 -7
- package/dist/types-ts4.5/components/__generated__/TextfieldProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TimePickerProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ToggleProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/TooltipProps.codegen.d.ts +3 -1
- package/dist/types-ts4.5/components/__generated__/ValidMessageProps.codegen.d.ts +3 -1
- package/package.json +5 -4
- package/scripts/codegen/codeGenerator.ts +72 -2
- package/scripts/codegen/componentPropTypes.ts +3 -1
- package/src/components/__generated__/AdfRendererProps.codegen.tsx +7 -5
- package/src/components/__generated__/BadgeProps.codegen.tsx +3 -1
- package/src/components/__generated__/BleedProps.codegen.tsx +2 -5
- package/src/components/__generated__/BoxProps.codegen.tsx +3 -1
- package/src/components/__generated__/ButtonGroupProps.codegen.tsx +3 -1
- package/src/components/__generated__/ButtonProps.codegen.tsx +3 -1
- package/src/components/__generated__/CalendarProps.codegen.tsx +3 -1
- package/src/components/__generated__/CheckboxGroupProps.codegen.tsx +3 -1
- package/src/components/__generated__/CheckboxProps.codegen.tsx +3 -1
- package/src/components/__generated__/CodeBlockProps.codegen.tsx +3 -1
- package/src/components/__generated__/CodeProps.codegen.tsx +4 -2
- package/src/components/__generated__/DatePickerProps.codegen.tsx +3 -1
- package/src/components/__generated__/DynamicTableProps.codegen.tsx +3 -1
- package/src/components/__generated__/EmptyStateProps.codegen.tsx +3 -1
- package/src/components/__generated__/ErrorMessageProps.codegen.tsx +3 -1
- package/src/components/__generated__/FlexProps.codegen.tsx +3 -1
- package/src/components/__generated__/FormFooterProps.codegen.tsx +4 -2
- package/src/components/__generated__/FormHeaderProps.codegen.tsx +3 -1
- package/src/components/__generated__/FormProps.codegen.tsx +3 -1
- package/src/components/__generated__/FormSectionProps.codegen.tsx +3 -1
- package/src/components/__generated__/HeadingProps.codegen.tsx +3 -1
- package/src/components/__generated__/HelperMessageProps.codegen.tsx +3 -1
- package/src/components/__generated__/IconProps.codegen.tsx +3 -1
- package/src/components/__generated__/InlineEditProps.codegen.tsx +4 -2
- package/src/components/__generated__/InlineProps.codegen.tsx +3 -1
- package/src/components/__generated__/LabelProps.codegen.tsx +3 -1
- package/src/components/__generated__/LinkButtonProps.codegen.tsx +3 -1
- package/src/components/__generated__/ListProps.codegen.tsx +4 -2
- package/src/components/__generated__/LoadingButtonProps.codegen.tsx +3 -1
- package/src/components/__generated__/LozengeProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalBodyProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalFooterProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalHeaderProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalTitleProps.codegen.tsx +3 -1
- package/src/components/__generated__/ModalTransitionProps.codegen.tsx +3 -1
- package/src/components/__generated__/PopupProps.codegen.tsx +4 -2
- package/src/components/__generated__/ProgressBarProps.codegen.tsx +3 -1
- package/src/components/__generated__/ProgressTrackerProps.codegen.tsx +3 -1
- package/src/components/__generated__/RadioGroupProps.codegen.tsx +3 -1
- package/src/components/__generated__/RadioProps.codegen.tsx +3 -1
- package/src/components/__generated__/RangeProps.codegen.tsx +3 -1
- package/src/components/__generated__/SectionMessageActionProps.codegen.tsx +3 -1
- package/src/components/__generated__/SectionMessageProps.codegen.tsx +3 -1
- package/src/components/__generated__/SelectProps.codegen.tsx +3 -1
- package/src/components/__generated__/SpinnerProps.codegen.tsx +3 -1
- package/src/components/__generated__/StackProps.codegen.tsx +3 -1
- package/src/components/__generated__/TabListProps.codegen.tsx +3 -1
- package/src/components/__generated__/TabPanelProps.codegen.tsx +3 -1
- package/src/components/__generated__/TabProps.codegen.tsx +3 -1
- package/src/components/__generated__/TabsProps.codegen.tsx +3 -1
- package/src/components/__generated__/TagGroupProps.codegen.tsx +3 -1
- package/src/components/__generated__/TagProps.codegen.tsx +3 -1
- package/src/components/__generated__/TextAreaProps.codegen.tsx +3 -1
- package/src/components/__generated__/TextProps.codegen.tsx +8 -10
- package/src/components/__generated__/TextfieldProps.codegen.tsx +3 -1
- package/src/components/__generated__/TimePickerProps.codegen.tsx +3 -1
- package/src/components/__generated__/ToggleProps.codegen.tsx +3 -1
- package/src/components/__generated__/TooltipProps.codegen.tsx +3 -1
- package/src/components/__generated__/ValidMessageProps.codegen.tsx +3 -1
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
type TypeAliasDeclaration,
|
|
7
7
|
type ImportDeclaration,
|
|
8
8
|
} from 'ts-morph';
|
|
9
|
+
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
10
|
+
import kebabCase from 'lodash/kebabCase';
|
|
9
11
|
|
|
10
12
|
const getNames = (symbol: Symbol) => {
|
|
11
13
|
const name = symbol.getName();
|
|
@@ -53,6 +55,25 @@ const getBaseComponentSymbol = (componentSymbol: Symbol, sourceFile: SourceFile)
|
|
|
53
55
|
* This function will extract the PlatformButtonProps type declaration.
|
|
54
56
|
*/
|
|
55
57
|
const getDependentTypeDeclarations = (baseComponentPropSymbol: Symbol, sourceFile: SourceFile) => {
|
|
58
|
+
const declarations = getDependentTypeDeclarationsBase(baseComponentPropSymbol, sourceFile);
|
|
59
|
+
|
|
60
|
+
for (const declaration of declarations) {
|
|
61
|
+
// further extract dependent types from the dependent type declarations, if it is not yet the base component prop symbol
|
|
62
|
+
// e.g. Text component depends on OriginalPlatformProps which depends on PlatformTextProps
|
|
63
|
+
if (!declaration.getName().startsWith('_Platform') && !declaration.getName().startsWith('Platform')) {
|
|
64
|
+
const typeAliasSymbol = declaration.getSymbolOrThrow();
|
|
65
|
+
const baseComponentPropCode = getDeclaration(baseComponentPropSymbol).getText();
|
|
66
|
+
for (const dependentTypeAliasDeclaration of getDependentTypeDeclarationsBase(typeAliasSymbol, sourceFile)) {
|
|
67
|
+
if (baseComponentPropCode !== dependentTypeAliasDeclaration.getText()) {
|
|
68
|
+
declarations.push(dependentTypeAliasDeclaration);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return declarations;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const getDependentTypeDeclarationsBase = (baseComponentPropSymbol: Symbol, sourceFile: SourceFile) => {
|
|
56
77
|
return sourceFile.getTypeAliases().reduce((declarations, typeAlias) => {
|
|
57
78
|
const typeAliasName = typeAlias.getName();
|
|
58
79
|
if (typeAliasName !== baseComponentPropSymbol.getName()) {
|
|
@@ -163,6 +184,7 @@ const extractImportDeclarations = (
|
|
|
163
184
|
componentDeclarationCode,
|
|
164
185
|
...dependentTypeDeclarations.map((typeAlias) => typeAlias.getText()).filter((code) => !!code),
|
|
165
186
|
];
|
|
187
|
+
|
|
166
188
|
return sourceFile
|
|
167
189
|
.getImportDeclarations()
|
|
168
190
|
.filter((declaration) => {
|
|
@@ -300,8 +322,13 @@ const resolveExternalTypesCode = (
|
|
|
300
322
|
};
|
|
301
323
|
|
|
302
324
|
const makeJSDocComment = (comment: string) => {
|
|
325
|
+
const commentBody = comment
|
|
326
|
+
.split('\n')
|
|
327
|
+
.map((line) => line.trimEnd())
|
|
328
|
+
.map((line) => (line.length === 0 ? ' *' : ` * ${line}`))
|
|
329
|
+
.join('\n');
|
|
303
330
|
return `/**
|
|
304
|
-
|
|
331
|
+
${commentBody}
|
|
305
332
|
*/`;
|
|
306
333
|
};
|
|
307
334
|
|
|
@@ -319,7 +346,13 @@ const getComponentTypeCode = (componentPropSymbol: Symbol, sourceFile: SourceFil
|
|
|
319
346
|
.join('\n');
|
|
320
347
|
|
|
321
348
|
if (comment && comment.length > 0) {
|
|
322
|
-
|
|
349
|
+
let jsDocContent = comment;
|
|
350
|
+
const componentDocUrl = getUIKitComponentDocUrl(componentName);
|
|
351
|
+
if (componentDocUrl) {
|
|
352
|
+
jsDocContent = `${comment}\n\n@see [${componentName}](${getUIKitComponentDocUrl(componentName)}) in UI Kit documentation for more information`;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
statements.push(updateDACUrlInJSDocComment(makeJSDocComment(jsDocContent)));
|
|
323
356
|
}
|
|
324
357
|
}
|
|
325
358
|
statements.push(`export type T${componentName}<T> = (props: ${propName}) => T;`);
|
|
@@ -373,6 +406,43 @@ const getComponentPropsTypeCode = (componentPropSymbol: Symbol) => {
|
|
|
373
406
|
return updateDACUrlInJSDocComment(sourceCode);
|
|
374
407
|
};
|
|
375
408
|
|
|
409
|
+
// this is to map special cases, and we should later review them for better consistency
|
|
410
|
+
const componentPathMap: Record<string, string | false> = {
|
|
411
|
+
AdfRenderer: 'adfRenderer',
|
|
412
|
+
ErrorMessage: 'form/#error-message',
|
|
413
|
+
HelperMessage: 'form/#helper-message',
|
|
414
|
+
ValidMessage: 'form/#validation-message',
|
|
415
|
+
FormHeader: 'form/#form-header',
|
|
416
|
+
FormFooter: 'form/#form-footer',
|
|
417
|
+
FormSection: 'form/#form-section',
|
|
418
|
+
Label: 'form/#label',
|
|
419
|
+
LinkButton: 'button/#linkbutton-props',
|
|
420
|
+
LoadingButton: 'button/#loadingbutton-props',
|
|
421
|
+
ModalBody: 'modal/#body',
|
|
422
|
+
ModalFooter: 'modal/#footer',
|
|
423
|
+
ModalHeader: 'modal/#header',
|
|
424
|
+
ModalTitle: 'modal/#title',
|
|
425
|
+
ModalTransition: 'modal/#modal-transition',
|
|
426
|
+
SectionMessageAction: 'section-message/#section-message-action',
|
|
427
|
+
TabsList: 'tabs',
|
|
428
|
+
TabPanel: 'tabs',
|
|
429
|
+
Tab: 'tabs',
|
|
430
|
+
SimpleTag: 'tag',
|
|
431
|
+
Grid: false,
|
|
432
|
+
Bleed: false,
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
const getUIKitComponentDocUrl = (componentName: string) => {
|
|
436
|
+
const matchedComponentPath = componentPathMap[componentName];
|
|
437
|
+
if (matchedComponentPath === false) {
|
|
438
|
+
return null;
|
|
439
|
+
}
|
|
440
|
+
const baseComponentPath = matchedComponentPath ?? kebabCase(componentName);
|
|
441
|
+
const componentPath = baseComponentPath.includes('/#') ? baseComponentPath : `${baseComponentPath}/`;
|
|
442
|
+
|
|
443
|
+
return `/platform/forge/ui-kit/components/${componentPath}`;
|
|
444
|
+
};
|
|
445
|
+
|
|
376
446
|
const baseGenerateComponentPropTypeSourceCode = (
|
|
377
447
|
componentPropSymbol: Symbol,
|
|
378
448
|
sourceFile: SourceFile,
|
|
@@ -196,7 +196,9 @@ const generateComponentPropTypes = (componentName?: string) => {
|
|
|
196
196
|
try {
|
|
197
197
|
const componentPropTypeSymbols = componentIndexSourceFile
|
|
198
198
|
.getExportSymbols()
|
|
199
|
-
.filter((symbol) =>
|
|
199
|
+
.filter((symbol) =>
|
|
200
|
+
symbol.getName().endsWith(componentName ? `${componentName}Props` : 'Props'),
|
|
201
|
+
)
|
|
200
202
|
.sort((a, b) => a.getName().localeCompare(b.getName()));
|
|
201
203
|
|
|
202
204
|
// generate share types file first
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - AdfRendererProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::4e44b65ce16ded81aeeb086d4abf54c9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/adfrenderer/index.tsx <<SignedSource::38be261305900c390921675abcf4c90c>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -29,16 +29,18 @@ export type AdfRendererProps = RendererProps & {
|
|
|
29
29
|
*
|
|
30
30
|
* @type [Visitor](https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/master/editor/adf-utils/src/types/index.ts)
|
|
31
31
|
*/
|
|
32
|
-
replaceUnsupportedNode?: Function
|
|
32
|
+
replaceUnsupportedNode?: Function;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The AdfRenderer component provides a way to render a valid ADF document, using the same renderer that Atlassian uses internally to render ADF content in Confluence pages, Jira work items, and so on.
|
|
37
37
|
* It allows you to replace node types that are unsupported in the context of a Forge app with replacement content, or remove them entirely.
|
|
38
38
|
* See [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/) for information on valid nodes.
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* This component uses [@atlaskit/renderer](https://www.npmjs.com/package/@atlaskit/renderer) under the hood.
|
|
41
|
-
*
|
|
41
|
+
*
|
|
42
42
|
* Visit [Renderer editor](https://atlaskit.atlassian.com/examples/editor/renderer/basic) for a comprehensive list of different ADF document examples
|
|
43
|
+
*
|
|
44
|
+
* @see [AdfRenderer](https://developer.atlassian.com/platform/forge/ui-kit/components/adfRenderer/) in UI Kit documentation for more information
|
|
43
45
|
*/
|
|
44
46
|
export type TAdfRenderer<T> = (props: AdfRendererProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BadgeProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3ed8f1b656c7e1c4a9aad0919de3f7d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/badge/__generated__/index.partial.tsx <<SignedSource::89ad3341c1b8ef4b6fc93df162ac91d3>>
|
|
9
9
|
*/
|
|
@@ -29,5 +29,7 @@ export type BadgeProps = Pick<
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* A badge is a visual indicator for numeric values such as tallies and scores.
|
|
32
|
+
*
|
|
33
|
+
* @see [Badge](https://developer.atlassian.com/platform/forge/ui-kit/components/badge/) in UI Kit documentation for more information
|
|
32
34
|
*/
|
|
33
35
|
export type TBadge<T> = (props: BadgeProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BleedProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::cc28f1caa57c117f8db064f643bfe56d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/bleed/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/bleed/__generated__/index.partial.tsx <<SignedSource::406ffef6715a3dff3aa10511e2ec232c>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -19,7 +19,4 @@ export type BleedProps = Pick<
|
|
|
19
19
|
'children' | 'all' | 'inline' | 'block' | 'testId' | 'role'
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Primitives are token-backed low-level building blocks.
|
|
24
|
-
*/
|
|
25
22
|
export type TBleed<T> = (props: BleedProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8ab6a67fa03d077a43a19a7e31c78146>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::898e2c561f956fd22d43ade8ef60ca57>>
|
|
9
9
|
*/
|
|
@@ -272,5 +272,7 @@ export type BoxProps = Pick<PlatformBoxProps, 'children' | 'ref' | 'testId'> & {
|
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* A box is a generic container that provides managed access to design tokens.
|
|
275
|
+
*
|
|
276
|
+
* @see [Box](https://developer.atlassian.com/platform/forge/ui-kit/components/box/) in UI Kit documentation for more information
|
|
275
277
|
*/
|
|
276
278
|
export type TBox<T> = (props: BoxProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::1961536cd507ac4a052deeb8743f1267>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/button-group.partial.tsx <<SignedSource::83622155981d05f77224a32bab4969b5>>
|
|
9
9
|
*/
|
|
@@ -19,5 +19,7 @@ export type ButtonGroupProps = Pick<
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* A button group gives users access to frequently performed, related actions.
|
|
22
|
+
*
|
|
23
|
+
* @see [ButtonGroup](https://developer.atlassian.com/platform/forge/ui-kit/components/button-group/) in UI Kit documentation for more information
|
|
22
24
|
*/
|
|
23
25
|
export type TButtonGroup<T> = (props: ButtonGroupProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8d3c96f4416729b792a7d3460ae23a27>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/index.partial.tsx <<SignedSource::f9a16b36e0a307a53ee30a009373ab49>>
|
|
9
9
|
*/
|
|
@@ -393,5 +393,7 @@ export type ButtonProps = Pick<
|
|
|
393
393
|
|
|
394
394
|
/**
|
|
395
395
|
* A button triggers an event or action. They let users know what will happen next.
|
|
396
|
+
*
|
|
397
|
+
* @see [Button](https://developer.atlassian.com/platform/forge/ui-kit/components/button/) in UI Kit documentation for more information
|
|
396
398
|
*/
|
|
397
399
|
export type TButton<T> = (props: ButtonProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CalendarProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::497faee84f851775b401af97ebfc5c12>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/calendar/__generated__/index.partial.tsx <<SignedSource::3fb4c1249481ec420be5118220ebcd82>>
|
|
9
9
|
*/
|
|
@@ -21,5 +21,7 @@ export type CalendarProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* An interactive calendar for date selection experiences.
|
|
24
|
+
*
|
|
25
|
+
* @see [Calendar](https://developer.atlassian.com/platform/forge/ui-kit/components/calendar/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
export type TCalendar<T> = (props: CalendarProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxGroupProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::63e9cf6f2e444db397f9e170b4e1ce7b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/checkboxgroup/index.tsx <<SignedSource::4db9e0c029805d1c1fd28b923f3dbae3>>
|
|
9
9
|
*/
|
|
@@ -38,5 +38,7 @@ export interface CheckboxGroupProps {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* A Checkbox group is a list of options where one or more choices can be selected.
|
|
41
|
+
*
|
|
42
|
+
* @see [CheckboxGroup](https://developer.atlassian.com/platform/forge/ui-kit/components/checkbox-group/) in UI Kit documentation for more information
|
|
41
43
|
*/
|
|
42
44
|
export type TCheckboxGroup<T> = (props: CheckboxGroupProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CheckboxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d5cd5c6518e80c98416fc61091717141>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/checkbox/__generated__/index.partial.tsx <<SignedSource::e34c0ab52d3409a8548b6e51450ba43b>>
|
|
9
9
|
*/
|
|
@@ -23,5 +23,7 @@ export type CheckboxProps = Pick<
|
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* A checkbox is an input control that allows a user to select one or more options from a number of choices.
|
|
26
|
+
*
|
|
27
|
+
* @see [Checkbox](https://developer.atlassian.com/platform/forge/ui-kit/components/checkbox/) in UI Kit documentation for more information
|
|
26
28
|
*/
|
|
27
29
|
export type TCheckbox<T> = (props: CheckboxProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - CodeBlockProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8ab4ed1e38d2bd1f9ceafe4cbc20f97d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/codeblock.partial.tsx <<SignedSource::88ed38fdfc47db0938e7801195a00403>>
|
|
9
9
|
*/
|
|
@@ -21,5 +21,7 @@ export type CodeBlockProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Code highlights short strings of code snippets inline with body text.
|
|
24
|
+
*
|
|
25
|
+
* @see [CodeBlock](https://developer.atlassian.com/platform/forge/ui-kit/components/code-block/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
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::
|
|
6
|
+
* @codegen <<SignedSource::baf6b565e34d8df53db53b8855ec120d>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/code.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/code/__generated__/code.partial.tsx <<SignedSource::6f210b052488fe7ece12d865706a551e>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -21,5 +21,7 @@ export type CodeProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Code highlights short strings of code snippets inline with body text.
|
|
24
|
+
*
|
|
25
|
+
* @see [Code](https://developer.atlassian.com/platform/forge/ui-kit/components/code/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
export type TCode<T> = (props: CodeProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - DatePickerProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d146cd7a368d85498c033934001b9a6c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/datepicker/__generated__/index.partial.tsx <<SignedSource::5dcbe693f00f3a2725b9e64932a3309c>>
|
|
9
9
|
*/
|
|
@@ -55,5 +55,7 @@ export type DatePickerProps = {
|
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
* A date picker allows the user to select a particular date.
|
|
58
|
+
*
|
|
59
|
+
* @see [DatePicker](https://developer.atlassian.com/platform/forge/ui-kit/components/date-picker/) in UI Kit documentation for more information
|
|
58
60
|
*/
|
|
59
61
|
export type TDatePicker<T> = (props: DatePickerProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - DynamicTableProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8923606b45ea3fb8adc1f391645ee46e>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/dynamictable/__generated__/index.partial.tsx <<SignedSource::579e3dddf7bd4b762d0fd40744619b89>>
|
|
9
9
|
*/
|
|
@@ -42,5 +42,7 @@ export type DynamicTableProps = Pick<
|
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* A dynamic table displays rows of data with built-in pagination, sorting, and re-ordering functionality.
|
|
45
|
+
*
|
|
46
|
+
* @see [DynamicTable](https://developer.atlassian.com/platform/forge/ui-kit/components/dynamic-table/) in UI Kit documentation for more information
|
|
45
47
|
*/
|
|
46
48
|
export type TDynamicTable<T> = (props: DynamicTableProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - EmptyStateProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::142748ed4aa864312e3b9ea16f297672>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/emptystate/__generated__/index.partial.tsx <<SignedSource::d6c509a722d55de0f55d401cd2e75435>>
|
|
9
9
|
*/
|
|
@@ -21,5 +21,7 @@ export type EmptyStateProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* An empty state appears when there is no data to display and describes what the user can do next.
|
|
24
|
+
*
|
|
25
|
+
* @see [EmptyState](https://developer.atlassian.com/platform/forge/ui-kit/components/empty-state/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
export type TEmptyState<T> = (props: EmptyStateProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - ErrorMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::f2821b3d824a19e37d6d769695a883f4>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/error-message.partial.tsx <<SignedSource::3758488a0115c629a624fcaae1f524c7>>
|
|
9
9
|
*/
|
|
@@ -22,5 +22,7 @@ export type ErrorMessageProps = Pick<
|
|
|
22
22
|
/**
|
|
23
23
|
* An error message is used to tell a user that the field input is invalid.
|
|
24
24
|
* For example, an error message could be "Invalid username, needs to be more than 4 characters".
|
|
25
|
+
*
|
|
26
|
+
* @see [ErrorMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#error-message) in UI Kit documentation for more information
|
|
25
27
|
*/
|
|
26
28
|
export type TErrorMessage<T> = (props: ErrorMessageProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FlexProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::06ae2024098beefe1f0166cee45e00eb>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/flex/__generated__/index.partial.tsx <<SignedSource::0e480e44e57f21f761bec4613ac4988d>>
|
|
9
9
|
*/
|
|
@@ -21,5 +21,7 @@ export type FlexProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Primitives are token-backed low-level building blocks.
|
|
24
|
+
*
|
|
25
|
+
* @see [Flex](https://developer.atlassian.com/platform/forge/ui-kit/components/flex/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
export type TFlex<T> = (props: FlexProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormFooterProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::bd453251ee9501e44dfdef3abb96f526>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-footer.partial.tsx <<SignedSource::0b729df36afbc86cc134984bb4c16b3e>>
|
|
9
9
|
*/
|
|
@@ -27,7 +27,9 @@ export type FormFooterProps = Pick<
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Use a form footer to set the content at the end of the form. This is used for a button that submits the form.
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
31
|
* This is positioned after the last field in the form.
|
|
32
|
+
*
|
|
33
|
+
* @see [FormFooter](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-footer) in UI Kit documentation for more information
|
|
32
34
|
*/
|
|
33
35
|
export type TFormFooter<T> = (props: FormFooterProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormHeaderProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::29600e7cd4c837834bdf3e2642eb297f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-header.partial.tsx <<SignedSource::8791c333c19a64caa8dd6b7461a53082>>
|
|
9
9
|
*/
|
|
@@ -23,5 +23,7 @@ export type FormHeaderProps = Pick<
|
|
|
23
23
|
* Use a form header to describe the contents of the form. This is the title and description of the form.
|
|
24
24
|
* If your form contains required fields, the form header is also where you should include a legend
|
|
25
25
|
* for sighted users to know that * indicates a required field.
|
|
26
|
+
*
|
|
27
|
+
* @see [FormHeader](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-header) in UI Kit documentation for more information
|
|
26
28
|
*/
|
|
27
29
|
export type TFormHeader<T> = (props: FormHeaderProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::72d05fe1799ae83e2fbc1e01f76009ce>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/index.tsx <<SignedSource::b6dd991b4a5e73adbac9321d53cd909e>>
|
|
9
9
|
*/
|
|
@@ -27,5 +27,7 @@ export type FormProps = {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* A form allows users to input information.
|
|
30
|
+
*
|
|
31
|
+
* @see [Form](https://developer.atlassian.com/platform/forge/ui-kit/components/form/) in UI Kit documentation for more information
|
|
30
32
|
*/
|
|
31
33
|
export type TForm<T> = (props: FormProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - FormSectionProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c85e38840c5dd01b51a1c9fabeaf226b>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/form-section.partial.tsx <<SignedSource::0dd9401d75f62dec7336bdea43302961>>
|
|
9
9
|
*/
|
|
@@ -22,5 +22,7 @@ export type FormSectionProps = Pick<
|
|
|
22
22
|
/**
|
|
23
23
|
* Use a form section to group related information together, so that longer forms are easier to understand.
|
|
24
24
|
* There can be multiple form sections in one form.
|
|
25
|
+
*
|
|
26
|
+
* @see [FormSection](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-section) in UI Kit documentation for more information
|
|
25
27
|
*/
|
|
26
28
|
export type TFormSection<T> = (props: FormSectionProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - HeadingProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c2e29c89ead70009a792cea03271e9c4>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/heading/__generated__/index.partial.tsx <<SignedSource::96b99b296364dce930bb91174b226eaa>>
|
|
9
9
|
*/
|
|
@@ -22,5 +22,7 @@ export type HeadingProps = Pick<PlatformHeadingProps, 'children' | 'id' | 'testI
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* A heading is a typography component used to display text in different sizes and formats.
|
|
25
|
+
*
|
|
26
|
+
* @see [Heading](https://developer.atlassian.com/platform/forge/ui-kit/components/heading/) in UI Kit documentation for more information
|
|
25
27
|
*/
|
|
26
28
|
export type THeading<T> = (props: HeadingProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - HelperMessageProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::867186ab9065c1955019578515e5b441>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/helper-message.partial.tsx <<SignedSource::03fa772bfaf53905106f1cafbb428104>>
|
|
9
9
|
*/
|
|
@@ -22,5 +22,7 @@ export type HelperMessageProps = Pick<
|
|
|
22
22
|
/**
|
|
23
23
|
* A helper message tells the user what kind of input the field takes.
|
|
24
24
|
* For example, a helper message could be "Password should be more than 4 characters".
|
|
25
|
+
*
|
|
26
|
+
* @see [HelperMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#helper-message) in UI Kit documentation for more information
|
|
25
27
|
*/
|
|
26
28
|
export type THelperMessage<T> = (props: HelperMessageProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - IconProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::40d5e815277b3ce91da33d74742659fc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/icon/index.tsx <<SignedSource::54a87ae131386a26a52d09234f67aa98>>
|
|
9
9
|
*/
|
|
@@ -401,5 +401,7 @@ export interface IconProps {
|
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
403
|
* An icon is a visual representation of a command, device, directory, or common action.
|
|
404
|
+
*
|
|
405
|
+
* @see [Icon](https://developer.atlassian.com/platform/forge/ui-kit/components/icon/) in UI Kit documentation for more information
|
|
404
406
|
*/
|
|
405
407
|
export type TIcon<T> = (props: IconProps) => T;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineEditProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::76e64cd0950ea7da3cf92b08df75f5fc>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline-edit/index.tsx <<SignedSource::7654358cb6b3406900f008113b08977d>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
11
|
|
|
@@ -32,5 +32,7 @@ export type InlineEditProps<V = string> = Omit<
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* An inline edit displays a custom input component that switches between reading and editing on the same page.
|
|
35
|
+
*
|
|
36
|
+
* @see [InlineEdit](https://developer.atlassian.com/platform/forge/ui-kit/components/inline-edit/) in UI Kit documentation for more information
|
|
35
37
|
*/
|
|
36
38
|
export type TInlineEdit<T> = (props: InlineEditProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - InlineProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::a184afd895391ad501b67ca2a5c49fc1>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/inline/__generated__/index.partial.tsx <<SignedSource::8123157b2afe19d52b47110fb754d43b>>
|
|
9
9
|
*/
|
|
@@ -21,5 +21,7 @@ export type InlineProps = Pick<
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* An inline manages the horizontal layout of direct children using flexbox.
|
|
24
|
+
*
|
|
25
|
+
* @see [Inline](https://developer.atlassian.com/platform/forge/ui-kit/components/inline/) in UI Kit documentation for more information
|
|
24
26
|
*/
|
|
25
27
|
export type TInline<T> = (props: InlineProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LabelProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::6f1e8259b596a6ca722fcbcb3eb8e4bd>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/form/__generated__/label.partial.tsx <<SignedSource::55ecafcd1d98afb9b7f6f37d5168725c>>
|
|
9
9
|
*/
|
|
@@ -17,5 +17,7 @@ export type LabelProps = Pick<PlatformLabelProps, 'children' | 'testId' | 'id'>
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* A label represents a caption for an item in a user interface.
|
|
20
|
+
*
|
|
21
|
+
* @see [Label](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#label) in UI Kit documentation for more information
|
|
20
22
|
*/
|
|
21
23
|
export type TLabel<T> = (props: LabelProps) => T;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - LinkButtonProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::5954a642054228f3f1ffb106dca3072f>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
8
|
* @codegenDependency ../../../../forge-ui/src/components/UIKit/button/__generated__/link-button.partial.tsx <<SignedSource::e74ee4aaf752a6e85a57950dce7a3683>>
|
|
9
9
|
*/
|
|
@@ -33,5 +33,7 @@ export type LinkButtonProps = Pick<
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Renders a link in the style of a button.
|
|
36
|
+
*
|
|
37
|
+
* @see [LinkButton](https://developer.atlassian.com/platform/forge/ui-kit/components/button/#linkbutton-props) in UI Kit documentation for more information
|
|
36
38
|
*/
|
|
37
39
|
export type TLinkButton<T> = (props: LinkButtonProps) => T;
|