@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
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,31 @@ 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
|
+
disabled?: boolean;
|
|
50
|
+
success?: boolean;
|
|
51
|
+
textColor?: string;
|
|
52
|
+
animationDelay?: number;
|
|
53
|
+
animationTime?: number;
|
|
54
|
+
onSuccess?: (success: boolean) => void;
|
|
55
|
+
}
|
|
56
|
+
|
|
41
57
|
declare const Color: {
|
|
42
58
|
background: {
|
|
43
59
|
primary: string;
|
|
@@ -131,4 +147,4 @@ declare const Color: {
|
|
|
131
147
|
};
|
|
132
148
|
};
|
|
133
149
|
|
|
134
|
-
export { BreadCrumb, Color, FeedBack as Feedback, ProgressBar, Text };
|
|
150
|
+
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.8",
|
|
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",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"preview": "vite preview",
|
|
34
35
|
"storybook": "storybook dev -p 6006",
|
|
35
36
|
"build-storybook": "storybook build",
|
|
37
|
+
"test-storybook": "test-storybook",
|
|
36
38
|
"init-msw": "msw init public/",
|
|
37
39
|
"chromatic": "npx chromatic --project-token=chpt_0dcfdd1e76a01ba"
|
|
38
40
|
},
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
"@storybook/jest": "^0.1.0",
|
|
50
52
|
"@storybook/react": "^7.0.12",
|
|
51
53
|
"@storybook/react-vite": "^7.0.12",
|
|
54
|
+
"@storybook/test-runner": "^0.10.0",
|
|
52
55
|
"@storybook/testing-library": "^0.1.0",
|
|
53
56
|
"@svgr/rollup": "^6.3.1",
|
|
54
57
|
"@types/react": "^18.0.28",
|