@adoptaunabuelo/react-components 0.1.4 → 0.1.6

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
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
 
4
- declare const BreadCrumb: (props: Props$2) => react_jsx_runtime.JSX.Element;
4
+ declare const BreadCrumb: ({ steps, ...props }: Props$3) => react_jsx_runtime.JSX.Element;
5
5
 
6
- interface Props$2 extends ComponentPropsWithoutRef<"div"> {
6
+ interface Props$3 extends ComponentPropsWithoutRef<"div"> {
7
7
  selectedStep?: number;
8
8
  steps: number;
9
9
  }
10
10
 
11
- declare const Text: (props: Props$1) => react_jsx_runtime.JSX.Element;
11
+ declare const Text: (props: Props$2) => react_jsx_runtime.JSX.Element;
12
12
 
13
- interface Props$1 extends ComponentPropsWithoutRef<"p"> {
13
+ interface Props$2 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) => react_jsx_runtime.JSX.Element;
18
+ declare const ProgressBar: (props: Props$1) => react_jsx_runtime.JSX.Element;
19
19
 
20
- interface Props extends ComponentPropsWithoutRef<"div"> {
20
+ interface Props$1 extends ComponentPropsWithoutRef<"div"> {
21
21
  progress: number | Array<{
22
22
  value: number;
23
23
  color?: string;
@@ -29,6 +29,15 @@ interface Props 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;
33
+
34
+ interface Props extends ComponentPropsWithoutRef<"div"> {
35
+ isVisible: boolean;
36
+ type: 'success' | 'error';
37
+ text: string;
38
+ onClose?: () => void;
39
+ }
40
+
32
41
  declare const Color: {
33
42
  background: {
34
43
  primary: string;
@@ -122,4 +131,4 @@ declare const Color: {
122
131
  };
123
132
  };
124
133
 
125
- export { BreadCrumb, Color, ProgressBar, Text };
134
+ export { BreadCrumb, 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.4",
3
+ "version": "0.1.6",
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
+ "lucide-react": "^0.219.0",
22
23
  "react": "^18.2.0",
23
24
  "react-dom": "^18.2.0",
24
25
  "styled-components": "^5.3.10",