@bolttech/atoms-button 0.4.1 → 0.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/index.cjs +3940 -918
- package/package.json +2 -2
- package/src/index.d.ts +2 -2
- package/src/lib/atoms-button.d.ts +2 -3
- package/src/lib/atoms-button.styles.d.ts +4 -4
- package/src/lib/atoms-button.type.d.ts +29 -29
- package/src/lib/enum.d.ts +7 -7
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-button",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@bolttech/atoms-icon": "^0.1.14",
|
|
6
|
-
"@edirect/frontend-foundations": "0.0.
|
|
6
|
+
"@edirect/frontend-foundations": "0.0.56",
|
|
7
7
|
"styled-components": "5.3.6"
|
|
8
8
|
},
|
|
9
9
|
"main": "./index.cjs",
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button } from './lib/atoms-button';
|
|
2
|
-
export type { ButtonProps, ButtonVariants } from './lib/atoms-button.type';
|
|
1
|
+
export { Button } from './lib/atoms-button';
|
|
2
|
+
export type { ButtonProps, ButtonVariants } from './lib/atoms-button.type';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function Button({ dataTestId, disabled, title, variant, size, iconRight, iconLeft, fullWidth, type, onClick, }: ButtonProps): JSX.Element;
|
|
1
|
+
import { ButtonProps } from './atoms-button.type';
|
|
2
|
+
export declare function Button({ dataTestId, disabled, title, variant, size, iconRight, iconLeft, fullWidth, type, onClick, }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonTitleProps, ContainerProps, StyledButtonProps } from './atoms-button.type';
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, ContainerProps, never>;
|
|
3
|
-
export declare const Button: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
|
|
4
|
-
export declare const ButtonTitle: import("styled-components").StyledComponent<"label", any, ButtonTitleProps, never>;
|
|
1
|
+
import { ButtonTitleProps, ContainerProps, StyledButtonProps } from './atoms-button.type';
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, ContainerProps, never>;
|
|
3
|
+
export declare const Button: import("styled-components").StyledComponent<"button", any, StyledButtonProps, never>;
|
|
4
|
+
export declare const ButtonTitle: import("styled-components").StyledComponent<"label", any, ButtonTitleProps, never>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export type ButtonVariants = 'transaction' | 'brand' | 'alternative' | 'outline' | 'ghost';
|
|
2
|
-
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
3
|
-
export type ButtonTypes = 'button' | 'submit';
|
|
4
|
-
export type ButtonProps = {
|
|
5
|
-
dataTestId?: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
variant: ButtonVariants;
|
|
9
|
-
size: ButtonSizes;
|
|
10
|
-
iconRight?: string;
|
|
11
|
-
iconLeft?: string;
|
|
12
|
-
type?: ButtonTypes;
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
};
|
|
16
|
-
export type ContainerProps = {
|
|
17
|
-
size: string;
|
|
18
|
-
};
|
|
19
|
-
export type StyledButtonProps = {
|
|
20
|
-
variant: string;
|
|
21
|
-
size: ButtonSizes;
|
|
22
|
-
sizeVariant: 'generic' | 'ghost';
|
|
23
|
-
fullWidth: boolean;
|
|
24
|
-
inverseColors: boolean;
|
|
25
|
-
};
|
|
26
|
-
export type ButtonTitleProps = {
|
|
27
|
-
size: ButtonSizes;
|
|
28
|
-
sizeVariant: 'generic' | 'ghost';
|
|
29
|
-
};
|
|
1
|
+
export type ButtonVariants = 'transaction' | 'brand' | 'alternative' | 'outline' | 'ghost';
|
|
2
|
+
export type ButtonSizes = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type ButtonTypes = 'button' | 'submit';
|
|
4
|
+
export type ButtonProps = {
|
|
5
|
+
dataTestId?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
variant: ButtonVariants;
|
|
9
|
+
size: ButtonSizes;
|
|
10
|
+
iconRight?: string;
|
|
11
|
+
iconLeft?: string;
|
|
12
|
+
type?: ButtonTypes;
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
};
|
|
16
|
+
export type ContainerProps = {
|
|
17
|
+
size: string;
|
|
18
|
+
};
|
|
19
|
+
export type StyledButtonProps = {
|
|
20
|
+
variant: string;
|
|
21
|
+
size: ButtonSizes;
|
|
22
|
+
sizeVariant: 'generic' | 'ghost';
|
|
23
|
+
fullWidth: boolean;
|
|
24
|
+
inverseColors: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type ButtonTitleProps = {
|
|
27
|
+
size: ButtonSizes;
|
|
28
|
+
sizeVariant: 'generic' | 'ghost';
|
|
29
|
+
};
|
package/src/lib/enum.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum SizeVariant {
|
|
2
|
-
transaction = "generic",
|
|
3
|
-
brand = "generic",
|
|
4
|
-
alternative = "generic",
|
|
5
|
-
outline = "generic",
|
|
6
|
-
ghost = "ghost"
|
|
7
|
-
}
|
|
1
|
+
export declare enum SizeVariant {
|
|
2
|
+
transaction = "generic",
|
|
3
|
+
brand = "generic",
|
|
4
|
+
alternative = "generic",
|
|
5
|
+
outline = "generic",
|
|
6
|
+
ghost = "ghost"
|
|
7
|
+
}
|