@commercetools-uikit/primary-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.
- package/README.md +1 -1
- package/dist/commercetools-uikit-primary-button.cjs.dev.js +46 -22
- package/dist/commercetools-uikit-primary-button.cjs.prod.js +33 -9
- package/dist/commercetools-uikit-primary-button.esm.js +43 -21
- package/dist/declarations/src/primary-button.d.ts +3 -1
- package/package.json +6 -6
|
@@ -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';
|
|
2
4
|
export type TPrimaryButtonProps<TStringOrComponent extends ElementType = 'button'> = {
|
|
3
5
|
as?: TStringOrComponent;
|
|
4
6
|
type?: 'button' | 'reset' | 'submit';
|
|
@@ -8,7 +10,7 @@ export type TPrimaryButtonProps<TStringOrComponent extends ElementType = 'button
|
|
|
8
10
|
isToggled?: boolean;
|
|
9
11
|
isDisabled?: boolean;
|
|
10
12
|
onClick?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
|
|
11
|
-
size?:
|
|
13
|
+
size?: TLegacySizes | TSizes;
|
|
12
14
|
tone?: 'urgent' | 'primary' | 'critical';
|
|
13
15
|
} & ComponentPropsWithRef<TStringOrComponent>;
|
|
14
16
|
declare const PrimaryButton: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/primary-button",
|
|
3
3
|
"description": "Primary buttons are used for a primary action on a page. 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-inline": "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-inline": "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",
|