@zealicsolutions/web-ui 0.2.94 → 0.2.95
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/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/containers/types/moleculeTypes.d.ts +1 -3
- package/dist/cjs/src/molecules/Button/Button.d.ts +3 -1
- package/dist/cjs/src/molecules/Button/Button.stories.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/containers/types/moleculeTypes.d.ts +1 -3
- package/dist/esm/src/molecules/Button/Button.d.ts +3 -1
- package/dist/esm/src/molecules/Button/Button.stories.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
@@ -71,9 +71,7 @@ export interface ButtonMolecule extends BaseMolecule {
|
|
71
71
|
buttonLink: LinkAttributes;
|
72
72
|
};
|
73
73
|
config: {
|
74
|
-
props: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'
|
75
|
-
type?: 'button' | 'submit' | 'reset';
|
76
|
-
};
|
74
|
+
props: Partial<Omit<ButtonProps, 'disabled' | 'children' | 'link' | 'text' | 'onClick' | 'elementId'>>;
|
77
75
|
};
|
78
76
|
}
|
79
77
|
export interface VideoMolecule extends BaseMolecule {
|
@@ -3,6 +3,7 @@ import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
|
|
3
3
|
import type { Callback } from 'typescript';
|
4
4
|
import { StylesType } from 'typescript';
|
5
5
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'text' | 'custom';
|
6
|
+
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
6
7
|
export declare type BaseButtonProps = PropsWithChildren<{
|
7
8
|
onClick?: Callback;
|
8
9
|
variant?: ButtonVariant;
|
@@ -26,6 +27,7 @@ export declare type BaseButtonProps = PropsWithChildren<{
|
|
26
27
|
styles?: StylesType;
|
27
28
|
colorTheme?: 'light' | 'dark';
|
28
29
|
href?: string;
|
30
|
+
type?: ButtonType;
|
29
31
|
}>;
|
30
32
|
export declare type ButtonProps = BaseButtonProps & {
|
31
33
|
fullWidth?: boolean;
|
@@ -37,4 +39,4 @@ export declare type ButtonProps = BaseButtonProps & {
|
|
37
39
|
containerStyle?: StylesType;
|
38
40
|
buttonStyle?: StylesType;
|
39
41
|
};
|
40
|
-
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: ButtonProps) => JSX.Element | null;
|
42
|
+
export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: ButtonProps) => JSX.Element | null;
|
@@ -3,7 +3,7 @@ import type { StoryFn } from '@storybook/react';
|
|
3
3
|
import { Button as ButtonComponent } from 'molecules/Button/Button';
|
4
4
|
declare const _default: {
|
5
5
|
title: string;
|
6
|
-
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
|
6
|
+
component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, textColor, inactiveTextColor, state, href, ...props }: import("molecules/Button/Button").ButtonProps) => JSX.Element | null;
|
7
7
|
};
|
8
8
|
export default _default;
|
9
9
|
export declare const Button: StoryFn<typeof ButtonComponent>;
|