@adoptaunabuelo/react-components 0.1.5 → 0.1.7
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 +15 -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 +15 -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 +25 -10
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const BreadCrumb: ({ steps, ...props }: Props$
|
|
4
|
+
declare const BreadCrumb: ({ steps, ...props }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
5
5
|
|
|
6
|
-
interface Props$
|
|
6
|
+
interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
7
7
|
selectedStep?: number;
|
|
8
8
|
steps: number;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
declare const Text: (props: Props$
|
|
11
|
+
declare const Text: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
12
12
|
|
|
13
|
-
interface Props$
|
|
13
|
+
interface Props$3 extends ComponentPropsWithoutRef<"p"> {
|
|
14
14
|
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'p2' | 'c1' | 'c2';
|
|
15
15
|
weight?: 'semibold' | 'medium' | 'regular';
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
declare const ProgressBar: (props: Props$
|
|
18
|
+
declare const ProgressBar: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
19
19
|
|
|
20
|
-
interface Props$
|
|
20
|
+
interface Props$2 extends ComponentPropsWithoutRef<"div"> {
|
|
21
21
|
progress: number | Array<{
|
|
22
22
|
value: number;
|
|
23
23
|
color?: string;
|
|
@@ -29,15 +29,30 @@ interface Props$1 extends ComponentPropsWithoutRef<"div"> {
|
|
|
29
29
|
animationDelay?: number;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
declare const FeedBack: ({ type, isVisible, ...props }: Props) => react_jsx_runtime.JSX.Element | null;
|
|
32
|
+
declare const FeedBack: ({ type, isVisible, ...props }: Props$1) => react_jsx_runtime.JSX.Element | null;
|
|
33
33
|
|
|
34
|
-
interface Props extends ComponentPropsWithoutRef<"div"> {
|
|
34
|
+
interface Props$1 extends ComponentPropsWithoutRef<"div"> {
|
|
35
35
|
isVisible: boolean;
|
|
36
36
|
type: 'success' | 'error';
|
|
37
37
|
text: string;
|
|
38
38
|
onClose?: () => void;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
declare const Button: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface Props extends ComponentPropsWithoutRef<"button"> {
|
|
44
|
+
design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
|
|
45
|
+
size?: 'small' | 'normal';
|
|
46
|
+
icon?: React.ReactElement;
|
|
47
|
+
iconPosition?: 'left' | 'right';
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
success?: boolean;
|
|
50
|
+
textColor?: string;
|
|
51
|
+
animationDelay?: number;
|
|
52
|
+
animationTime?: number;
|
|
53
|
+
onSuccess?: (success: boolean) => void;
|
|
54
|
+
}
|
|
55
|
+
|
|
41
56
|
declare const Color: {
|
|
42
57
|
background: {
|
|
43
58
|
primary: string;
|
|
@@ -131,4 +146,4 @@ declare const Color: {
|
|
|
131
146
|
};
|
|
132
147
|
};
|
|
133
148
|
|
|
134
|
-
export { BreadCrumb, Color, FeedBack as Feedback, ProgressBar, Text };
|
|
149
|
+
export { BreadCrumb, Button, Color, FeedBack as Feedback, ProgressBar, Text };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adoptaunabuelo/react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"author": "Guillermo Angeles <guilleangeles94@gmail.com>",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@lottiefiles/react-lottie-player": "^3.5.3",
|
|
22
23
|
"lucide-react": "^0.219.0",
|
|
23
24
|
"react": "^18.2.0",
|
|
24
25
|
"react-dom": "^18.2.0",
|