@atlaskit/side-nav-items 1.13.5 → 1.13.6
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 +6 -0
- package/dist/types/ui/menu-item/button-menu-item.d.ts +2 -2
- package/dist/types/ui/menu-item/menu-item.d.ts +2 -2
- package/dist/types/ui/menu-item/types.d.ts +2 -0
- package/dist/types-ts4.5/ui/menu-item/button-menu-item.d.ts +2 -2
- package/dist/types-ts4.5/ui/menu-item/menu-item.d.ts +2 -2
- package/dist/types-ts4.5/ui/menu-item/types.d.ts +2 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
2
|
+
import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
3
3
|
export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Identifies the popup element that this element controls when it is used as a popup trigger.
|
|
@@ -14,7 +14,7 @@ export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
|
|
|
14
14
|
/**
|
|
15
15
|
* Informs assistive technology that this element triggers a popup.
|
|
16
16
|
*/
|
|
17
|
-
'aria-haspopup'?:
|
|
17
|
+
'aria-haspopup'?: MenuItemAriaHasPopup;
|
|
18
18
|
/**
|
|
19
19
|
* We are not using a discriminated union to enforce that the `actions` and `actionsOnHover`
|
|
20
20
|
* props are not used when `isDisabled` is true due to ergonomic type issues with `boolean`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
7
|
+
import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* This is being _internally_ exported so it can be used in other menu item wrapper components, like
|
|
10
10
|
* ExpandableMenuItemTrigger.
|
|
@@ -29,7 +29,7 @@ export declare const nestedOpenPopupCSSSelectorNew = "&:has([aria-expanded=\"tru
|
|
|
29
29
|
type MenuItemBaseProps<T extends HTMLAnchorElement | HTMLButtonElement> = MenuItemLinkOrButtonCommonProps & {
|
|
30
30
|
ariaControls?: string;
|
|
31
31
|
ariaExpanded?: boolean;
|
|
32
|
-
ariaHasPopup?:
|
|
32
|
+
ariaHasPopup?: MenuItemAriaHasPopup;
|
|
33
33
|
href?: string | Record<string, any>;
|
|
34
34
|
/**
|
|
35
35
|
* ID attribute, passed to the interactive element (anchor/button). This is not publicly exposed, and is currently only
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
/** `aria-haspopup` values used by popup triggers and menu item buttons (see ARIA spec). */
|
|
4
|
+
export type MenuItemAriaHasPopup = boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
|
|
3
5
|
import { type COLLAPSE_ELEM_BEFORE_TYPE } from './menu-item-signals';
|
|
4
6
|
export type MenuItemOnClick<T extends HTMLAnchorElement | HTMLButtonElement> = (event: React.MouseEvent<T>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
5
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
2
|
+
import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
3
3
|
export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Identifies the popup element that this element controls when it is used as a popup trigger.
|
|
@@ -14,7 +14,7 @@ export type ButtonMenuItemProps = MenuItemLinkOrButtonCommonProps & {
|
|
|
14
14
|
/**
|
|
15
15
|
* Informs assistive technology that this element triggers a popup.
|
|
16
16
|
*/
|
|
17
|
-
'aria-haspopup'?:
|
|
17
|
+
'aria-haspopup'?: MenuItemAriaHasPopup;
|
|
18
18
|
/**
|
|
19
19
|
* We are not using a discriminated union to enforce that the `actions` and `actionsOnHover`
|
|
20
20
|
* props are not used when `isDisabled` is true due to ergonomic type issues with `boolean`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
7
|
+
import type { MenuItemAriaHasPopup, MenuItemLinkOrButtonCommonProps, MenuItemOnClick } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* This is being _internally_ exported so it can be used in other menu item wrapper components, like
|
|
10
10
|
* ExpandableMenuItemTrigger.
|
|
@@ -29,7 +29,7 @@ export declare const nestedOpenPopupCSSSelectorNew = "&:has([aria-expanded=\"tru
|
|
|
29
29
|
type MenuItemBaseProps<T extends HTMLAnchorElement | HTMLButtonElement> = MenuItemLinkOrButtonCommonProps & {
|
|
30
30
|
ariaControls?: string;
|
|
31
31
|
ariaExpanded?: boolean;
|
|
32
|
-
ariaHasPopup?:
|
|
32
|
+
ariaHasPopup?: MenuItemAriaHasPopup;
|
|
33
33
|
href?: string | Record<string, any>;
|
|
34
34
|
/**
|
|
35
35
|
* ID attribute, passed to the interactive element (anchor/button). This is not publicly exposed, and is currently only
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
/** `aria-haspopup` values used by popup triggers and menu item buttons (see ARIA spec). */
|
|
4
|
+
export type MenuItemAriaHasPopup = boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
|
|
3
5
|
import { type COLLAPSE_ELEM_BEFORE_TYPE } from './menu-item-signals';
|
|
4
6
|
export type MenuItemOnClick<T extends HTMLAnchorElement | HTMLButtonElement> = (event: React.MouseEvent<T>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
5
7
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/side-nav-items",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "Menu items and elements for the side nav area.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,16 +42,16 @@
|
|
|
42
42
|
"@atlaskit/css": "^0.19.0",
|
|
43
43
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
44
44
|
"@atlaskit/heading": "^5.4.0",
|
|
45
|
-
"@atlaskit/icon": "^34.
|
|
45
|
+
"@atlaskit/icon": "^34.5.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/platform-feature-flags-react": "^0.
|
|
48
|
-
"@atlaskit/popup": "^4.
|
|
47
|
+
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
48
|
+
"@atlaskit/popup": "^4.19.0",
|
|
49
49
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
50
50
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
51
51
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
52
52
|
"@atlaskit/primitives": "^19.0.0",
|
|
53
53
|
"@atlaskit/tokens": "^13.0.0",
|
|
54
|
-
"@atlaskit/tooltip": "^22.
|
|
54
|
+
"@atlaskit/tooltip": "^22.2.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@compiled/react": "^0.20.0",
|
|
57
57
|
"tiny-invariant": "^1.2.0"
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
67
|
"@atlaskit/app-provider": "^4.3.0",
|
|
68
68
|
"@atlaskit/lozenge": "^13.8.0",
|
|
69
|
-
"@atlaskit/navigation-system": "^9.
|
|
69
|
+
"@atlaskit/navigation-system": "^9.3.0",
|
|
70
70
|
"@atlaskit/ssr": "workspace:^",
|
|
71
71
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
72
72
|
"@atlassian/a11y-playwright-testing": "^0.9.0",
|
|
73
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
73
|
+
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
74
74
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
75
75
|
"@atlassian/testing-library": "^0.5.0",
|
|
76
76
|
"@testing-library/react": "^16.3.0",
|