@atlaskit/popup 8.0.0 → 8.1.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 +8 -0
- package/dist/types/types.d.ts +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/popup
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f0b2e3b3c48b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0b2e3b3c48b2) -
|
|
8
|
+
Export `TriggerAriaProps` from `@atlaskit/popup/types` for components that accept Popup's trigger
|
|
9
|
+
ARIA attributes.
|
|
10
|
+
|
|
3
11
|
## 8.0.0
|
|
4
12
|
|
|
5
13
|
### Major Changes
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { type ComponentType, type CSSProperties, type Dispatch, type PropsWithChildren, type default as React, type ReactNode, type Ref, type SetStateAction } from 'react';
|
|
2
2
|
import { type StrictXCSSProp } from '@atlaskit/css';
|
|
3
3
|
import type { Modifier, Placement, PopperChildrenProps } from '@atlaskit/popper/main';
|
|
4
|
-
export interface
|
|
5
|
-
/**
|
|
6
|
-
* React ref that will be attached to the trigger element.
|
|
7
|
-
*/
|
|
8
|
-
ref: Ref<any>;
|
|
4
|
+
export interface TriggerAriaProps {
|
|
9
5
|
/**
|
|
10
6
|
* Identifies the popup element that the trigger controls.
|
|
11
7
|
* Should match the `id` of the popup content for screen readers to understand the relationship.
|
|
@@ -19,6 +15,12 @@ export interface TriggerProps {
|
|
|
19
15
|
* Informs assistive technology that this element triggers a popup.
|
|
20
16
|
*/
|
|
21
17
|
'aria-haspopup': boolean | 'dialog';
|
|
18
|
+
}
|
|
19
|
+
export interface TriggerProps extends TriggerAriaProps {
|
|
20
|
+
/**
|
|
21
|
+
* React ref that will be attached to the trigger element.
|
|
22
|
+
*/
|
|
23
|
+
ref: Ref<any>;
|
|
22
24
|
'data-ds--level'?: string;
|
|
23
25
|
}
|
|
24
26
|
export type PopupRef = HTMLDivElement | null;
|