@commercetools-uikit/secondary-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 { ReactElement, KeyboardEvent, MouseEvent, ElementType, ComponentPropsWithRef } from 'react';
2
+ type TLegacySizes = 'small' | 'medium' | 'big';
3
+ type TSizes = '10' | '20';
2
4
  export type TSecondaryButtonProps<TStringOrComponent extends ElementType = 'button'> = {
3
5
  as?: TStringOrComponent;
4
6
  type?: 'button' | 'reset' | 'submit';
@@ -8,11 +10,11 @@ export type TSecondaryButtonProps<TStringOrComponent extends ElementType = 'butt
8
10
  isToggled?: boolean;
9
11
  isDisabled?: boolean;
10
12
  onClick?: (event: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>) => void;
11
- size?: 'medium' | 'big';
13
+ size?: TLegacySizes | TSizes;
12
14
  theme?: 'default' | 'info';
13
15
  tone?: 'secondary' | 'info';
14
16
  } & ComponentPropsWithRef<TStringOrComponent>;
15
- export declare const getIconColor: (props: Pick<TSecondaryButtonProps, 'isToggleButton' | 'isToggled' | 'theme' | 'isDisabled' | 'iconLeft'> & {
17
+ export declare const getIconColor: (props: Pick<TSecondaryButtonProps, "isToggleButton" | "isToggled" | "theme" | "isDisabled" | "iconLeft"> & {
16
18
  isActive?: boolean;
17
19
  }) => any;
18
20
  export declare const SecondaryButton: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/secondary-button",
3
3
  "description": "Secondary buttons are used in combination with a PrimaryButton and represent the secondary action.",
4
- "version": "19.4.0",
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.4.0",
25
- "@commercetools-uikit/design-system": "19.4.0",
26
- "@commercetools-uikit/spacings-inline": "19.4.0",
27
- "@commercetools-uikit/text": "19.4.0",
28
- "@commercetools-uikit/utils": "19.4.0",
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",