@commercetools-uikit/icon-button 19.4.0 → 19.6.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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { MouseEvent, KeyboardEvent, ElementType, ReactElement, ComponentPropsWithRef } from 'react';
|
|
2
|
+
type TLegacySizes = 'small' | 'medium' | 'big';
|
|
3
|
+
type TSizes = '10' | '20' | '30' | '40';
|
|
2
4
|
export type TIconButtonProps<TStringOrComponent extends ElementType = 'button'> = {
|
|
3
5
|
as?: TStringOrComponent;
|
|
4
6
|
type?: 'button' | 'reset' | 'submit';
|
|
@@ -10,7 +12,7 @@ export type TIconButtonProps<TStringOrComponent extends ElementType = 'button'>
|
|
|
10
12
|
onClick?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
11
13
|
shape?: 'round' | 'square';
|
|
12
14
|
theme?: 'default' | 'primary' | 'info';
|
|
13
|
-
size?:
|
|
15
|
+
size?: TLegacySizes | TSizes;
|
|
14
16
|
} & ComponentPropsWithRef<TStringOrComponent>;
|
|
15
17
|
declare const IconButton: {
|
|
16
18
|
<TStringOrComponent extends ElementType = "button">(props: TIconButtonProps<TStringOrComponent>): import("@emotion/react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/icon-button",
|
|
3
3
|
"description": "Icon buttons are icon-only buttons. They trigger an action when clicked (`onClick` prop). You must also pass a label for accessibility reasons.",
|
|
4
|
-
"version": "19.
|
|
4
|
+
"version": "19.6.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "19.
|
|
25
|
-
"@commercetools-uikit/design-system": "19.
|
|
26
|
-
"@commercetools-uikit/spacings": "19.
|
|
27
|
-
"@commercetools-uikit/text": "19.
|
|
28
|
-
"@commercetools-uikit/utils": "19.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "19.6.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "19.6.0",
|
|
26
|
+
"@commercetools-uikit/spacings": "19.6.0",
|
|
27
|
+
"@commercetools-uikit/text": "19.6.0",
|
|
28
|
+
"@commercetools-uikit/utils": "19.6.0",
|
|
29
29
|
"@emotion/react": "^11.10.5",
|
|
30
30
|
"@emotion/styled": "^11.10.5",
|
|
31
31
|
"lodash": "4.17.21",
|