@commercetools-uikit/primary-action-dropdown 19.25.1 → 20.0.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/README.md +3 -3
- package/dist/commercetools-uikit-primary-action-dropdown.cjs.dev.js +15 -33
- package/dist/commercetools-uikit-primary-action-dropdown.cjs.prod.js +5 -9
- package/dist/commercetools-uikit-primary-action-dropdown.esm.js +15 -32
- package/dist/declarations/src/primary-action-dropdown.d.ts +12 -2
- package/package.json +11 -12
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { ReactElement, type MouseEvent, type KeyboardEvent } from 'react';
|
|
2
|
+
type TDropdownHead = {
|
|
3
|
+
iconLeft: ReactElement<{
|
|
4
|
+
size: string;
|
|
5
|
+
color: string;
|
|
6
|
+
}>;
|
|
7
|
+
onClick?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
8
|
+
children: string;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
chevron: ReactElement;
|
|
11
|
+
};
|
|
2
12
|
export type TPrimaryActionDropdown = {
|
|
3
13
|
/**
|
|
4
14
|
* Any React element.
|
|
5
15
|
*/
|
|
6
|
-
children: ReactElement[];
|
|
16
|
+
children: ReactElement<TDropdownHead>[];
|
|
7
17
|
};
|
|
8
18
|
declare const PrimaryActionDropdown: {
|
|
9
19
|
(props: TPrimaryActionDropdown): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/primary-action-dropdown",
|
|
3
3
|
"description": "A dropdown component with any number of action, where the first action of the dropdown can be triggered without opening the dropdown itself.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,24 +21,23 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "
|
|
25
|
-
"@commercetools-uikit/buttons": "
|
|
26
|
-
"@commercetools-uikit/design-system": "
|
|
27
|
-
"@commercetools-uikit/hooks": "
|
|
28
|
-
"@commercetools-uikit/icons": "
|
|
29
|
-
"@commercetools-uikit/text": "
|
|
30
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/accessible-button": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/buttons": "20.0.0",
|
|
26
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
27
|
+
"@commercetools-uikit/hooks": "20.0.0",
|
|
28
|
+
"@commercetools-uikit/icons": "20.0.0",
|
|
29
|
+
"@commercetools-uikit/text": "20.0.0",
|
|
30
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
31
31
|
"@emotion/react": "^11.10.5",
|
|
32
32
|
"@emotion/styled": "^11.10.5",
|
|
33
33
|
"lodash": "4.17.21",
|
|
34
|
-
"
|
|
35
|
-
"react-intl": "^6.3.2"
|
|
34
|
+
"react-intl": "^7.1.4"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
38
|
-
"react": "
|
|
37
|
+
"react": "19.0.0"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
|
-
"react": "
|
|
40
|
+
"react": "19.x"
|
|
42
41
|
},
|
|
43
42
|
"readme": {
|
|
44
43
|
"componentPaths": ["./src/primary-action-dropdown.tsx", "./src/option.tsx"]
|