@zealicsolutions/web-ui 0.2.59 → 0.2.61

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.
@@ -6,6 +6,7 @@ export declare type BaseButtonProps = PropsWithChildren<{
6
6
  variant?: 'primary' | 'secondary';
7
7
  disabled?: boolean;
8
8
  fullWidth?: boolean;
9
+ size?: 'medium' | 'small';
9
10
  }>;
10
11
  export declare type ButtonProps = BaseButtonProps & {
11
12
  fullWidth?: boolean;
@@ -16,4 +17,4 @@ export declare type ButtonProps = BaseButtonProps & {
16
17
  isRichText?: boolean;
17
18
  containerStyle?: CSSProperties;
18
19
  };
19
- export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, }: ButtonProps) => JSX.Element | null;
20
+ export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, size, }: ButtonProps) => JSX.Element | null;
@@ -6,7 +6,7 @@ import { TouchableOpacityProps } from './TouchableOpacity';
6
6
  import { IconButton as IconButtonComponent } from './IconButton';
7
7
  declare const _default: {
8
8
  title: string;
9
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, }: import("atoms").ButtonProps) => JSX.Element | null;
9
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, size, }: import("./Button").ButtonProps) => JSX.Element | null;
10
10
  };
11
11
  export default _default;
12
12
  export declare const Button: ComponentStory<typeof ButtonComponent>;
@@ -2,4 +2,4 @@ import { CSSProperties } from 'styled-components';
2
2
  export declare const getSizeStyle: (size: number) => Pick<CSSProperties, 'maxWidth' | 'maxHeight' | 'minWidth' | 'minHeight'>;
3
3
  export declare const changeColorTint: (color: string, percent: number) => string;
4
4
  export declare const getTintColor: (color: string) => string;
5
- export declare const getShadeColor: (color: string) => string;
5
+ export declare const getShadeColor: (color: string, percent?: number) => string;