@atlaskit/forge-react-types 0.61.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/cjs/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.js +5 -1
- package/dist/es2019/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.js +1 -0
- package/dist/esm/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.js +1 -0
- package/dist/types/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.d.ts +7 -2
- package/dist/types/components/global/__generated__/GlobalLinkMenuItemProps.codegen.d.ts +2 -2
- package/dist/types/components/global/__generated__/GlobalMainProps.codegen.d.ts +3 -3
- package/dist/types/components/global/__generated__/GlobalSidebarProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.d.ts +7 -2
- package/dist/types-ts4.5/components/global/__generated__/GlobalLinkMenuItemProps.codegen.d.ts +2 -2
- package/dist/types-ts4.5/components/global/__generated__/GlobalMainProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/global/__generated__/GlobalSidebarProps.codegen.d.ts +2 -2
- package/package.json +4 -4
- package/src/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.tsx +8 -2
- package/src/components/global/__generated__/GlobalLinkMenuItemProps.codegen.tsx +2 -2
- package/src/components/global/__generated__/GlobalMainProps.codegen.tsx +3 -3
- package/src/components/global/__generated__/GlobalSidebarProps.codegen.tsx +2 -2
- package/dist/cjs/components/__generated__/LinkMenuItemProps.codegen.js +0 -5
- package/dist/es2019/components/__generated__/LinkMenuItemProps.codegen.js +0 -1
- package/dist/esm/components/__generated__/LinkMenuItemProps.codegen.js +0 -1
- package/src/components/__generated__/LinkMenuItemProps.codegen.tsx +0 -116
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.63.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a11e55ab6e41c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a11e55ab6e41c) -
|
|
8
|
+
Clean up unused files
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 0.62.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`4e53247402873`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e53247402873) -
|
|
19
|
+
Update global component props
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 0.61.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/dist/es2019/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.d.ts
CHANGED
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalExpandableMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8780871b323d0ecd390c334b279f4c5c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::70ca291a86897077f42eb7af58f709b1>>
|
|
10
10
|
*/
|
|
11
|
+
import type React from 'react';
|
|
11
12
|
export type GlobalExpandableMenuItemProps = {
|
|
12
13
|
/**
|
|
13
14
|
* The display label for the expandable menu item.
|
|
14
15
|
*/
|
|
15
16
|
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Accepts LinkMenuItem components.
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactElement | React.ReactElement[];
|
|
16
21
|
};
|
|
17
22
|
export type TGlobalExpandableMenuItem<T> = (props: GlobalExpandableMenuItemProps) => T;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalLinkMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec42467e1d5bf99efc2748fb4387c7db>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::714aeaa577c5b83035e8db86a0791f12>>
|
|
10
10
|
*/
|
|
11
11
|
export type GlobalLinkMenuItemProps = {
|
|
12
12
|
/**
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalMain
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77dc12c1b869c10e64b714e1f60669f9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::082e248420c3447666672693808d6a2f>>
|
|
10
10
|
*/
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
export type GlobalMainProps = {
|
|
13
|
-
children?: React.
|
|
13
|
+
children?: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
export type TGlobalMain<T> = (props: GlobalMainProps) => T;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalSidebar
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::99a3fc631d768e6e6e1355970e07eb99>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::13411f0525b0468463282baeeb342f2b>>
|
|
10
10
|
*/
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
export type GlobalSidebarProps = {
|
package/dist/types-ts4.5/components/global/__generated__/GlobalExpandableMenuItemProps.codegen.d.ts
CHANGED
|
@@ -3,15 +3,20 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalExpandableMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8780871b323d0ecd390c334b279f4c5c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::70ca291a86897077f42eb7af58f709b1>>
|
|
10
10
|
*/
|
|
11
|
+
import type React from 'react';
|
|
11
12
|
export type GlobalExpandableMenuItemProps = {
|
|
12
13
|
/**
|
|
13
14
|
* The display label for the expandable menu item.
|
|
14
15
|
*/
|
|
15
16
|
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Accepts LinkMenuItem components.
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactElement | React.ReactElement[];
|
|
16
21
|
};
|
|
17
22
|
export type TGlobalExpandableMenuItem<T> = (props: GlobalExpandableMenuItemProps) => T;
|
package/dist/types-ts4.5/components/global/__generated__/GlobalLinkMenuItemProps.codegen.d.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalLinkMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec42467e1d5bf99efc2748fb4387c7db>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::714aeaa577c5b83035e8db86a0791f12>>
|
|
10
10
|
*/
|
|
11
11
|
export type GlobalLinkMenuItemProps = {
|
|
12
12
|
/**
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalMain
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77dc12c1b869c10e64b714e1f60669f9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::082e248420c3447666672693808d6a2f>>
|
|
10
10
|
*/
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
export type GlobalMainProps = {
|
|
13
|
-
children?: React.
|
|
13
|
+
children?: React.ReactNode;
|
|
14
14
|
};
|
|
15
15
|
export type TGlobalMain<T> = (props: GlobalMainProps) => T;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalSidebar
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::99a3fc631d768e6e6e1355970e07eb99>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::13411f0525b0468463282baeeb342f2b>>
|
|
10
10
|
*/
|
|
11
11
|
import type React from 'react';
|
|
12
12
|
export type GlobalSidebarProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/forge-react-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0",
|
|
4
4
|
"description": "Component types for Forge UI Kit React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/form": "^15.3.0",
|
|
29
29
|
"@atlaskit/inline-edit": "^15.6.0",
|
|
30
30
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
31
|
-
"@atlaskit/navigation-system": "^5.
|
|
31
|
+
"@atlaskit/navigation-system": "^5.35.0",
|
|
32
32
|
"@atlaskit/object": "^1.0.0",
|
|
33
33
|
"@atlaskit/popup": "^4.13.0",
|
|
34
34
|
"@atlaskit/primitives": "^18.0.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/select": "^21.7.0",
|
|
40
40
|
"@atlaskit/spinner": "^19.0.0",
|
|
41
41
|
"@atlaskit/tabs": "^18.3.0",
|
|
42
|
-
"@atlaskit/tag": "^14.
|
|
42
|
+
"@atlaskit/tag": "^14.5.0",
|
|
43
43
|
"@atlaskit/tag-group": "^12.0.0",
|
|
44
44
|
"@atlaskit/textarea": "^8.2.0",
|
|
45
45
|
"@atlaskit/textfield": "^8.2.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@atlassian/codegen": "^0.1.0",
|
|
59
|
-
"@atlassian/forge-ui": "^32.
|
|
59
|
+
"@atlassian/forge-ui": "^32.82.0",
|
|
60
60
|
"@types/node": "^24.0.0",
|
|
61
61
|
"lodash": "^4.17.21",
|
|
62
62
|
"react": "^18.2.0",
|
|
@@ -3,18 +3,24 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalExpandableMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::8780871b323d0ecd390c334b279f4c5c>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-ExpandableMenuItem.tsx <<SignedSource::70ca291a86897077f42eb7af58f709b1>>
|
|
10
10
|
*/
|
|
11
11
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
12
12
|
|
|
13
|
+
import type React from 'react';
|
|
14
|
+
|
|
13
15
|
export type GlobalExpandableMenuItemProps = {
|
|
14
16
|
/**
|
|
15
17
|
* The display label for the expandable menu item.
|
|
16
18
|
*/
|
|
17
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* Accepts LinkMenuItem components.
|
|
22
|
+
*/
|
|
23
|
+
children: React.ReactElement | React.ReactElement[];
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
export type TGlobalExpandableMenuItem<T> = (props: GlobalExpandableMenuItemProps) => T;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalLinkMenuItem
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::ec42467e1d5bf99efc2748fb4387c7db>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-LinkMenuItem.tsx <<SignedSource::714aeaa577c5b83035e8db86a0791f12>>
|
|
10
10
|
*/
|
|
11
11
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
12
12
|
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalMain
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::77dc12c1b869c10e64b714e1f60669f9>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Main.tsx <<SignedSource::082e248420c3447666672693808d6a2f>>
|
|
10
10
|
*/
|
|
11
11
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
12
12
|
|
|
13
13
|
import type React from 'react';
|
|
14
14
|
|
|
15
15
|
export type GlobalMainProps = {
|
|
16
|
-
children?: React.
|
|
16
|
+
children?: React.ReactNode;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
export type TGlobalMain<T> = (props: GlobalMainProps) => T;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated prop types for Global component - GlobalSidebar
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::99a3fc631d768e6e6e1355970e07eb99>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen-global
|
|
8
8
|
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/types/global-component-props.ts <<SignedSource::ad330a446ee260180d5b510c18b5e1c8>>
|
|
9
|
-
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::
|
|
9
|
+
* @codegenDependency ../../../../../../../services/forge-common-app-gateway/src/components/global/Global-Sidebar.tsx <<SignedSource::13411f0525b0468463282baeeb342f2b>>
|
|
10
10
|
*/
|
|
11
11
|
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
12
12
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
*
|
|
4
|
-
* Extract component prop types from UIKit 2 components - LinkMenuItemProps
|
|
5
|
-
*
|
|
6
|
-
* @codegen <<SignedSource::4a1f543c49be8d37af271ad72f46c373>>
|
|
7
|
-
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/link-menu-item/__generated__/index.partial.tsx <<SignedSource::8943197e8ce5439de1d6f88dda81d55b>>
|
|
9
|
-
*/
|
|
10
|
-
/* eslint @repo/internal/codegen/signed-source-integrity: "warn" */
|
|
11
|
-
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { LinkMenuItem as PlatformLinkMenuItem } from '@atlaskit/navigation-system/side-nav-items/link-menu-item';
|
|
14
|
-
|
|
15
|
-
type PlatformLinkMenuItemProps = React.ComponentProps<typeof PlatformLinkMenuItem>;
|
|
16
|
-
type Element = string | number | boolean | React.ReactNode;
|
|
17
|
-
|
|
18
|
-
export type LinkMenuItemProps = Pick<
|
|
19
|
-
PlatformLinkMenuItemProps,
|
|
20
|
-
| 'children'
|
|
21
|
-
| 'testId'
|
|
22
|
-
| 'isContentTooltipDisabled'
|
|
23
|
-
| 'isDragging'
|
|
24
|
-
| 'hasDragIndicator'
|
|
25
|
-
| 'description'
|
|
26
|
-
| 'target'
|
|
27
|
-
| 'isSelected'
|
|
28
|
-
| 'href'
|
|
29
|
-
| 'elemBefore'
|
|
30
|
-
| 'elemAfter'
|
|
31
|
-
| 'actions'
|
|
32
|
-
| 'actionsOnHover'
|
|
33
|
-
| 'dropIndicator'
|
|
34
|
-
> & {
|
|
35
|
-
/**
|
|
36
|
-
* Called when the user has clicked on the trigger content.
|
|
37
|
-
*/
|
|
38
|
-
onClick?: () => void;
|
|
39
|
-
/**
|
|
40
|
-
* `ReactNode` to be placed visually before the `children`.
|
|
41
|
-
*
|
|
42
|
-
* This `ReactNode` will be rendered visually on top of the main
|
|
43
|
-
* interactive element for the menu item. If this element does not
|
|
44
|
-
* contain an interactive element (`button` or `a`) then `pointer-events`
|
|
45
|
-
* will be set to `none` on this slot so that users can click through
|
|
46
|
-
* this element onto the main interactive element of the menu item.
|
|
47
|
-
*
|
|
48
|
-
* If you want to collapse the `elemBefore` so it takes up no space,
|
|
49
|
-
* then pass in the `COLLAPSE_ELEM_BEFORE` symbol. Keep in mind that
|
|
50
|
-
* collapsing the `elemBefore` can break visual alignment and
|
|
51
|
-
* will make it difficult for users to visually distinguish levels
|
|
52
|
-
* in the side navigation.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
*
|
|
56
|
-
* ```tsx
|
|
57
|
-
* <MenuItemButton elemBefore={<HomeIcon label="home" />}>Home</MenuItemButton>
|
|
58
|
-
*
|
|
59
|
-
* // collapse the elemBefore
|
|
60
|
-
* <MenuItemButton elemBefore={COLLAPSE_ELEM_BEFORE}>Home</MenuItemButton>
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
elemBefore?: Element;
|
|
64
|
-
/**
|
|
65
|
-
* `ReactNode` to be placed visually after the `children`.
|
|
66
|
-
*
|
|
67
|
-
* It is intended for static content (e.g. a `Lozenge`).
|
|
68
|
-
*
|
|
69
|
-
* If both `elemAfter` and `actionsOnHover` are provided, `elemAfter` will
|
|
70
|
-
* not be displayed when the item is hovered over or expanded. This is
|
|
71
|
-
* because the `actionsOnHover` will be displayed instead.
|
|
72
|
-
*
|
|
73
|
-
* This `ReactNode` will be rendered visually on top of the main
|
|
74
|
-
* interactive element for the menu item. If this element does not
|
|
75
|
-
* contain an interactive element (`button` or `a`) then `pointer-events`
|
|
76
|
-
* will be set to `none` on this slot so that users can click through
|
|
77
|
-
* this element onto the main interactive element of the menu item.
|
|
78
|
-
*/
|
|
79
|
-
elemAfter?: Element;
|
|
80
|
-
/**
|
|
81
|
-
* `ReactNode` to be placed visually after the `children`.
|
|
82
|
-
*
|
|
83
|
-
* It is intended for additional actions (e.g. IconButtons).
|
|
84
|
-
*
|
|
85
|
-
* They will not be rendered when the menu item is disabled.
|
|
86
|
-
*/
|
|
87
|
-
actions?: Element;
|
|
88
|
-
/**
|
|
89
|
-
* `ReactNode` to be placed visually after the `children` and will
|
|
90
|
-
* only be displayed on hover or focus.
|
|
91
|
-
*
|
|
92
|
-
* It is intended for additional actions (e.g. IconButtons).
|
|
93
|
-
*
|
|
94
|
-
* This `ReactNode` will replace `elemAfter` on hover or focus.
|
|
95
|
-
*
|
|
96
|
-
* They will not be rendered when the menu item is disabled.
|
|
97
|
-
*
|
|
98
|
-
* This `ReactNode` will be rendered visually on top of the main
|
|
99
|
-
* interactive element for the menu item. If this element does not
|
|
100
|
-
* contain an interactive element (`button` or `a`) then `pointer-events`
|
|
101
|
-
* will be set to `none` on this slot so that users can click through
|
|
102
|
-
* this element onto the main interactive element of the menu item.
|
|
103
|
-
*/
|
|
104
|
-
actionsOnHover?: Element;
|
|
105
|
-
/**
|
|
106
|
-
* A slot to render drop indicators for drag and drop operations on the menu item.
|
|
107
|
-
*/
|
|
108
|
-
dropIndicator?: Element;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* A menu item that is wrapped in an anchor tag <a>. This is the most common type of menu item, as most menu items are used to send people to another location.
|
|
113
|
-
*
|
|
114
|
-
* @see [LinkMenuItem](https://developer.atlassian.com/platform/forge/ui-kit/components/link-menu-item/) in UI Kit documentation for more information
|
|
115
|
-
*/
|
|
116
|
-
export type TLinkMenuItem<T> = (props: LinkMenuItemProps) => T;
|