@adoptaunabuelo/react-components 0.1.11 → 0.1.12
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 +8 -0
- package/dist/cjs/components/Button/Button.d.ts +2 -2
- package/dist/cjs/components/Input/InputLocation.d.ts +10 -0
- package/dist/cjs/components/Input/InputSecondary.d.ts +2 -2
- package/dist/cjs/components/Input/InputStyled.d.ts +1 -1
- package/dist/cjs/components/Modal/Modal.d.ts +22 -0
- package/dist/cjs/index.js +34 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Button/Button.d.ts +2 -2
- package/dist/esm/components/Input/InputLocation.d.ts +10 -0
- package/dist/esm/components/Input/InputSecondary.d.ts +2 -2
- package/dist/esm/components/Input/InputStyled.d.ts +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +22 -0
- package/dist/esm/index.js +29 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -11
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,23 +2,23 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import react, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
|
|
3
3
|
import { CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
4
4
|
|
|
5
|
-
declare const BreadCrumb: ({ steps, ...props }: Props$
|
|
5
|
+
declare const BreadCrumb: ({ steps, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
6
6
|
|
|
7
|
-
interface Props$
|
|
7
|
+
interface Props$6 extends ComponentPropsWithoutRef<"div"> {
|
|
8
8
|
selectedStep?: number;
|
|
9
9
|
steps: number;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
declare const Text: (props: Props$
|
|
12
|
+
declare const Text: (props: Props$5) => react_jsx_runtime.JSX.Element;
|
|
13
13
|
|
|
14
|
-
interface Props$
|
|
14
|
+
interface Props$5 extends ComponentPropsWithoutRef<"p"> {
|
|
15
15
|
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'p2' | 'c1' | 'c2';
|
|
16
16
|
weight?: 'semibold' | 'medium' | 'regular';
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
declare const ProgressBar: (props: Props$
|
|
19
|
+
declare const ProgressBar: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
20
20
|
|
|
21
|
-
interface Props$
|
|
21
|
+
interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
22
22
|
progress: number | Array<{
|
|
23
23
|
value: number;
|
|
24
24
|
color?: string;
|
|
@@ -30,18 +30,18 @@ interface Props$5 extends ComponentPropsWithoutRef<"div"> {
|
|
|
30
30
|
animationDelay?: number;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
declare const FeedBack: ({ type, isVisible, ...props }: Props$
|
|
33
|
+
declare const FeedBack: ({ type, isVisible, ...props }: Props$3) => react_jsx_runtime.JSX.Element | null;
|
|
34
34
|
|
|
35
|
-
interface Props$
|
|
35
|
+
interface Props$3 extends ComponentPropsWithoutRef<"div"> {
|
|
36
36
|
isVisible: boolean;
|
|
37
37
|
type: 'success' | 'error';
|
|
38
38
|
text: string;
|
|
39
39
|
onClose?: () => void;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
declare const Button: (props:
|
|
42
|
+
declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
43
43
|
|
|
44
|
-
interface
|
|
44
|
+
interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
45
45
|
design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
|
|
46
46
|
size?: 'small' | 'normal';
|
|
47
47
|
icon?: react.ReactElement;
|
|
@@ -56,7 +56,7 @@ interface Props$3 extends ComponentPropsWithoutRef<"button"> {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
interface InputStyledProps extends ComponentPropsWithRef<"input"> {
|
|
59
|
-
type?: 'text' | 'tel' | 'email' | 'date' | 'password' | 'range' | 'time' | 'number';
|
|
59
|
+
type?: 'text' | 'tel' | 'email' | 'date' | 'password' | 'range' | 'time' | 'number' | 'location';
|
|
60
60
|
hideCalendar?: boolean;
|
|
61
61
|
}
|
|
62
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adoptaunabuelo/react-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
|
|
5
5
|
"author": "Guillermo Angeles <guilleangeles94@gmail.com>",
|
|
6
6
|
"private": false,
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"fuse.js": "^6.6.2",
|
|
23
23
|
"google-libphonenumber": "^3.2.32",
|
|
24
24
|
"lucide-react": "^0.219.0",
|
|
25
|
+
"react-modal": "^3.16.1",
|
|
26
|
+
"react-places-autocomplete": "^7.3.0",
|
|
25
27
|
"styled-components": "^5.3.10",
|
|
26
28
|
"styled-media-query": "^2.1.2"
|
|
27
29
|
},
|
|
@@ -58,6 +60,8 @@
|
|
|
58
60
|
"@types/google-libphonenumber": "^7.4.23",
|
|
59
61
|
"@types/react": "^18.0.28",
|
|
60
62
|
"@types/react-dom": "^18.0.11",
|
|
63
|
+
"@types/react-modal": "^3.16.0",
|
|
64
|
+
"@types/react-places-autocomplete": "^7.2.9",
|
|
61
65
|
"@types/styled-components": "^5.1.26",
|
|
62
66
|
"@vitejs/plugin-react": "^3.1.0",
|
|
63
67
|
"auto": "^10.46.0",
|