@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/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$3) => react_jsx_runtime.JSX.Element;
4
+ declare const BreadCrumb: ({ steps, ...props }: Props$4) => react_jsx_runtime.JSX.Element;
5
5
 
6
- interface Props$3 extends ComponentPropsWithoutRef<"div"> {
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$2) => react_jsx_runtime.JSX.Element;
11
+ declare const Text: (props: Props$3) => react_jsx_runtime.JSX.Element;
12
12
 
13
- interface Props$2 extends ComponentPropsWithoutRef<"p"> {
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$1) => react_jsx_runtime.JSX.Element;
18
+ declare const ProgressBar: (props: Props$2) => react_jsx_runtime.JSX.Element;
19
19
 
20
- interface Props$1 extends ComponentPropsWithoutRef<"div"> {
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.6",
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",