@adoptaunabuelo/react-components 0.1.6 → 0.1.8
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 +2 -2
- package/dist/cjs/components/Button/Button.d.ts +16 -0
- package/dist/cjs/components/Button/ButtonImage.d.ts +9 -0
- package/dist/cjs/components/Button/ButtonPrimary.d.ts +14 -0
- package/dist/cjs/components/Button/ButtonSecondary.d.ts +14 -0
- package/dist/cjs/components/Button/ButtonText.d.ts +10 -0
- package/dist/cjs/components/Button/CallToAction.d.ts +11 -0
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/index.js +162 -34
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button/Button.d.ts +16 -0
- package/dist/esm/components/Button/ButtonImage.d.ts +9 -0
- package/dist/esm/components/Button/ButtonPrimary.d.ts +14 -0
- package/dist/esm/components/Button/ButtonSecondary.d.ts +14 -0
- package/dist/esm/components/Button/ButtonText.d.ts +10 -0
- package/dist/esm/components/Button/CallToAction.d.ts +11 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +162 -34
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -10
- package/package.json +4 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
|
|
6
|
+
size?: 'small' | 'normal';
|
|
7
|
+
icon?: React.ReactElement;
|
|
8
|
+
iconPosition?: 'left' | 'right';
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
success?: boolean;
|
|
12
|
+
textColor?: string;
|
|
13
|
+
animationDelay?: number;
|
|
14
|
+
animationTime?: number;
|
|
15
|
+
onSuccess?: (success: boolean) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const ButtonImage: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default ButtonImage;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
src?: string;
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
size?: 'small' | 'normal';
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
success?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
animationDelay?: number;
|
|
12
|
+
animationTime?: number;
|
|
13
|
+
onSuccess?: (success: boolean) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
size?: 'small' | 'normal';
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
success?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
animationDelay?: number;
|
|
12
|
+
animationTime?: number;
|
|
13
|
+
onSuccess?: (success: boolean) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const Button: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
size?: 'small' | 'normal';
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
declare const CallToAction: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CallToAction;
|
|
4
|
+
export interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
5
|
+
size?: 'small' | 'normal';
|
|
6
|
+
icon?: React.ReactElement;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
textColor?: string;
|
|
11
|
+
}
|
|
@@ -2,3 +2,4 @@ export { default as BreadCrumb } from './BreadCrumb/BreadCrumb';
|
|
|
2
2
|
export { default as Text } from './Text/Text';
|
|
3
3
|
export { default as ProgressBar } from './ProgressBar/ProgressBar';
|
|
4
4
|
export { default as Feedback } from './Feedback/Feedback';
|
|
5
|
+
export { default as Button } from './Button/Button';
|