@atlaskit/dropdown-menu 12.26.0 → 12.26.2
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 +12 -0
- package/dist/types/checkbox/dropdown-item-checkbox-group.d.ts +2 -2
- package/dist/types/checkbox/dropdown-item-checkbox.d.ts +2 -2
- package/dist/types/dropdown-menu.d.ts +2 -2
- package/dist/types/internal/components/checkbox-icon.d.ts +2 -2
- package/dist/types/internal/components/group-title.d.ts +2 -2
- package/dist/types/internal/components/radio-icon.d.ts +2 -2
- package/dist/types/internal/context/selection-store.d.ts +1 -1
- package/dist/types/radio/dropdown-item-radio-group.d.ts +1 -1
- package/dist/types/radio/dropdown-item-radio.d.ts +2 -2
- package/dist/types-ts4.5/checkbox/dropdown-item-checkbox-group.d.ts +2 -2
- package/dist/types-ts4.5/checkbox/dropdown-item-checkbox.d.ts +2 -2
- package/dist/types-ts4.5/dropdown-menu.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/checkbox-icon.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/group-title.d.ts +2 -2
- package/dist/types-ts4.5/internal/components/radio-icon.d.ts +2 -2
- package/dist/types-ts4.5/internal/context/selection-store.d.ts +1 -1
- package/dist/types-ts4.5/radio/dropdown-item-radio-group.d.ts +1 -1
- package/dist/types-ts4.5/radio/dropdown-item-radio.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { SectionProps } from '@atlaskit/menu';
|
|
3
3
|
interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
4
4
|
/**
|
|
@@ -12,5 +12,5 @@ interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
|
12
12
|
* A wrapping element for dropdown menu checkbox items.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => JSX.Element;
|
|
15
|
+
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => React.JSX.Element;
|
|
16
16
|
export default DropdownItemCheckboxGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type DropdownItemCheckboxProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown item checkbox__
|
|
@@ -9,5 +9,5 @@ import { type DropdownItemCheckboxProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/dropdown-item-checkbox/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/dropdown-item-checkbox/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownItemCheckbox: ({ children, defaultSelected, description, id, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, testId, interactionName, ...rest }: DropdownItemCheckboxProps) => JSX.Element;
|
|
12
|
+
declare const DropdownItemCheckbox: ({ children, defaultSelected, description, id, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, testId, interactionName, ...rest }: DropdownItemCheckboxProps) => React.JSX.Element;
|
|
13
13
|
export default DropdownItemCheckbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { DropdownMenuProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown menu__
|
|
@@ -9,5 +9,5 @@ import type { DropdownMenuProps } from './types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownMenu: <T extends HTMLElement = any>({ autoFocus, children, defaultOpen, isLoading, isOpen, onOpenChange, placement, shouldFitContainer, shouldFlip, shouldRenderToParent, returnFocusRef, spacing, statusLabel, testId, trigger, zIndex, label, interactionName, strategy, }: DropdownMenuProps<T>) => JSX.Element;
|
|
12
|
+
declare const DropdownMenu: <T extends HTMLElement = any>({ autoFocus, children, defaultOpen, isLoading, isOpen, onOpenChange, placement, shouldFitContainer, shouldFlip, shouldRenderToParent, returnFocusRef, spacing, statusLabel, testId, trigger, zIndex, label, interactionName, strategy, }: DropdownMenuProps<T>) => React.JSX.Element;
|
|
13
13
|
export default DropdownMenu;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* __Checkbox icon__
|
|
4
4
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
declare const CheckboxIcon: ({ checked }: {
|
|
10
10
|
checked: boolean;
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export default CheckboxIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* __Group title__
|
|
4
4
|
*
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
declare const GroupTitle: ({ id, title }: {
|
|
10
10
|
id: string;
|
|
11
11
|
title: string;
|
|
12
|
-
}) => JSX.Element;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
13
|
export default GroupTitle;
|
|
@@ -23,5 +23,5 @@ type SelectionStoreProps = {
|
|
|
23
23
|
* It handles the uncontrolled story for dropdown menu when the menu
|
|
24
24
|
* items can be mounted/unmounted depending if the menu is open or closed.
|
|
25
25
|
*/
|
|
26
|
-
declare const SelectionStore: (props: SelectionStoreProps) => JSX.Element;
|
|
26
|
+
declare const SelectionStore: (props: SelectionStoreProps) => React.JSX.Element;
|
|
27
27
|
export default SelectionStore;
|
|
@@ -21,5 +21,5 @@ export declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
|
|
|
21
21
|
* across mount and unmounts.
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemRadioGroupProps) => JSX.Element;
|
|
24
|
+
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemRadioGroupProps) => React.JSX.Element;
|
|
25
25
|
export default DropdownItemRadioGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type DropdownItemRadioProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown item radio__
|
|
@@ -9,5 +9,5 @@ import { type DropdownItemRadioProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/dropdown-item-radio/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/dropdown-item-radio/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownItemRadio: ({ children, defaultSelected, testId, id, title, description, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, interactionName, ...rest }: DropdownItemRadioProps) => JSX.Element;
|
|
12
|
+
declare const DropdownItemRadio: ({ children, defaultSelected, testId, id, title, description, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, interactionName, ...rest }: DropdownItemRadioProps) => React.JSX.Element;
|
|
13
13
|
export default DropdownItemRadio;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { SectionProps } from '@atlaskit/menu';
|
|
3
3
|
interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
4
4
|
/**
|
|
@@ -12,5 +12,5 @@ interface DropdownItemCheckboxGroupProps extends SectionProps {
|
|
|
12
12
|
* A wrapping element for dropdown menu checkbox items.
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
|
-
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => JSX.Element;
|
|
15
|
+
declare const DropdownItemCheckboxGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemCheckboxGroupProps) => React.JSX.Element;
|
|
16
16
|
export default DropdownItemCheckboxGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type DropdownItemCheckboxProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown item checkbox__
|
|
@@ -9,5 +9,5 @@ import { type DropdownItemCheckboxProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/dropdown-item-checkbox/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/dropdown-item-checkbox/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownItemCheckbox: ({ children, defaultSelected, description, id, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, testId, interactionName, ...rest }: DropdownItemCheckboxProps) => JSX.Element;
|
|
12
|
+
declare const DropdownItemCheckbox: ({ children, defaultSelected, description, id, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, testId, interactionName, ...rest }: DropdownItemCheckboxProps) => React.JSX.Element;
|
|
13
13
|
export default DropdownItemCheckbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { DropdownMenuProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown menu__
|
|
@@ -9,5 +9,5 @@ import type { DropdownMenuProps } from './types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownMenu: <T extends HTMLElement = any>({ autoFocus, children, defaultOpen, isLoading, isOpen, onOpenChange, placement, shouldFitContainer, shouldFlip, shouldRenderToParent, returnFocusRef, spacing, statusLabel, testId, trigger, zIndex, label, interactionName, strategy, }: DropdownMenuProps<T>) => JSX.Element;
|
|
12
|
+
declare const DropdownMenu: <T extends HTMLElement = any>({ autoFocus, children, defaultOpen, isLoading, isOpen, onOpenChange, placement, shouldFitContainer, shouldFlip, shouldRenderToParent, returnFocusRef, spacing, statusLabel, testId, trigger, zIndex, label, interactionName, strategy, }: DropdownMenuProps<T>) => React.JSX.Element;
|
|
13
13
|
export default DropdownMenu;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* __Checkbox icon__
|
|
4
4
|
*
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
*/
|
|
9
9
|
declare const CheckboxIcon: ({ checked }: {
|
|
10
10
|
checked: boolean;
|
|
11
|
-
}) => JSX.Element;
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
12
|
export default CheckboxIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* __Group title__
|
|
4
4
|
*
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
declare const GroupTitle: ({ id, title }: {
|
|
10
10
|
id: string;
|
|
11
11
|
title: string;
|
|
12
|
-
}) => JSX.Element;
|
|
12
|
+
}) => React.JSX.Element;
|
|
13
13
|
export default GroupTitle;
|
|
@@ -23,5 +23,5 @@ type SelectionStoreProps = {
|
|
|
23
23
|
* It handles the uncontrolled story for dropdown menu when the menu
|
|
24
24
|
* items can be mounted/unmounted depending if the menu is open or closed.
|
|
25
25
|
*/
|
|
26
|
-
declare const SelectionStore: (props: SelectionStoreProps) => JSX.Element;
|
|
26
|
+
declare const SelectionStore: (props: SelectionStoreProps) => React.JSX.Element;
|
|
27
27
|
export default SelectionStore;
|
|
@@ -21,5 +21,5 @@ export declare const RadioGroupContext: React.Context<RadioGroupContextProps>;
|
|
|
21
21
|
* across mount and unmounts.
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemRadioGroupProps) => JSX.Element;
|
|
24
|
+
declare const DropdownItemRadioGroup: ({ children, hasSeparator, id, isList, isScrollable, overrides, testId, title, ...rest }: DropdownItemRadioGroupProps) => React.JSX.Element;
|
|
25
25
|
export default DropdownItemRadioGroup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type DropdownItemRadioProps } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* __Dropdown item radio__
|
|
@@ -9,5 +9,5 @@ import { type DropdownItemRadioProps } from '../types';
|
|
|
9
9
|
* - [Code](https://atlassian.design/components/dropdown-menu/dropdown-item-radio/code)
|
|
10
10
|
* - [Usage](https://atlassian.design/components/dropdown-menu/dropdown-item-radio/usage)
|
|
11
11
|
*/
|
|
12
|
-
declare const DropdownItemRadio: ({ children, defaultSelected, testId, id, title, description, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, interactionName, ...rest }: DropdownItemRadioProps) => JSX.Element;
|
|
12
|
+
declare const DropdownItemRadio: ({ children, defaultSelected, testId, id, title, description, isDisabled, isSelected, onClick: providedOnClick, shouldDescriptionWrap, shouldTitleWrap, interactionName, ...rest }: DropdownItemRadioProps) => React.JSX.Element;
|
|
13
13
|
export default DropdownItemRadio;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "12.26.
|
|
3
|
+
"version": "12.26.2",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"runReact18": true
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@atlaskit/button": "^20.
|
|
28
|
+
"@atlaskit/button": "^20.5.0",
|
|
29
29
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
30
30
|
"@atlaskit/ds-lib": "^3.5.0",
|
|
31
|
-
"@atlaskit/icon": "^23.
|
|
31
|
+
"@atlaskit/icon": "^23.7.0",
|
|
32
32
|
"@atlaskit/layering": "^1.1.0",
|
|
33
33
|
"@atlaskit/menu": "^2.14.0",
|
|
34
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
34
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
35
35
|
"@atlaskit/popup": "^1.31.0",
|
|
36
36
|
"@atlaskit/primitives": "^13.4.0",
|
|
37
37
|
"@atlaskit/spinner": "^17.1.0",
|
|
38
|
-
"@atlaskit/theme": "^
|
|
38
|
+
"@atlaskit/theme": "^15.0.0",
|
|
39
39
|
"@atlaskit/tokens": "^3.3.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@emotion/react": "^11.7.1",
|