@adoptaunabuelo/react-components 0.1.13 → 0.1.15
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/cjs/components/Label/Label.d.ts +8 -0
- package/dist/cjs/components/Menu/Menu.d.ts +24 -0
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/index.js +178 -27
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Label/Label.d.ts +8 -0
- package/dist/esm/components/Menu/Menu.d.ts +24 -0
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/index.js +178 -27
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +70 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
4
|
+
import * as react from 'react';
|
|
5
|
+
import react__default, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
|
|
4
6
|
import { CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
5
7
|
|
|
6
|
-
declare const BreadCrumb: ({ steps, ...props }: Props$
|
|
8
|
+
declare const BreadCrumb: ({ steps, ...props }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
7
9
|
|
|
8
|
-
interface Props$
|
|
10
|
+
interface Props$7 extends ComponentPropsWithoutRef<"div"> {
|
|
9
11
|
selectedStep?: number;
|
|
10
12
|
steps: number;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
declare const Text: (props: Props$
|
|
15
|
+
declare const Text: (props: Props$6) => react_jsx_runtime.JSX.Element;
|
|
14
16
|
|
|
15
|
-
interface Props$
|
|
17
|
+
interface Props$6 extends ComponentPropsWithoutRef<"p"> {
|
|
16
18
|
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'p2' | 'c1' | 'c2';
|
|
17
19
|
weight?: 'semibold' | 'medium' | 'regular';
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
declare const ProgressBar: (props: Props$
|
|
22
|
+
declare const ProgressBar: (props: Props$5) => react_jsx_runtime.JSX.Element;
|
|
21
23
|
|
|
22
|
-
interface Props$
|
|
24
|
+
interface Props$5 extends ComponentPropsWithoutRef<"div"> {
|
|
23
25
|
progress: number | Array<{
|
|
24
26
|
value: number;
|
|
25
27
|
color?: string;
|
|
@@ -31,9 +33,9 @@ interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
|
31
33
|
animationDelay?: number;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
declare const FeedBack: ({ type, isVisible, ...props }: Props$
|
|
36
|
+
declare const FeedBack: ({ type, isVisible, ...props }: Props$4) => react_jsx_runtime.JSX.Element | null;
|
|
35
37
|
|
|
36
|
-
interface Props$
|
|
38
|
+
interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
37
39
|
isVisible: boolean;
|
|
38
40
|
type: 'success' | 'error';
|
|
39
41
|
text: string;
|
|
@@ -45,7 +47,7 @@ declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
|
45
47
|
interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
46
48
|
design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
|
|
47
49
|
size?: 'small' | 'normal';
|
|
48
|
-
icon?:
|
|
50
|
+
icon?: react__default.ReactElement;
|
|
49
51
|
iconPosition?: 'left' | 'right';
|
|
50
52
|
loading?: boolean;
|
|
51
53
|
disabled?: boolean;
|
|
@@ -61,9 +63,9 @@ interface InputStyledProps extends ComponentPropsWithRef<"input"> {
|
|
|
61
63
|
hideCalendar?: boolean;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
|
-
declare const Input: (props: Props$
|
|
66
|
+
declare const Input: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
65
67
|
|
|
66
|
-
interface Props$
|
|
68
|
+
interface Props$3 extends InputStyledProps {
|
|
67
69
|
containerStyle?: CSSProperties;
|
|
68
70
|
icon?: ReactElement;
|
|
69
71
|
error?: string | undefined;
|
|
@@ -83,9 +85,9 @@ interface Props$2 extends InputStyledProps {
|
|
|
83
85
|
}) => void;
|
|
84
86
|
}
|
|
85
87
|
|
|
86
|
-
declare const Select: (props: Props$
|
|
88
|
+
declare const Select: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
87
89
|
|
|
88
|
-
interface Props$
|
|
90
|
+
interface Props$2 extends ComponentPropsWithoutRef<"div"> {
|
|
89
91
|
id: string;
|
|
90
92
|
optionStyle?: CSSProperties$1;
|
|
91
93
|
hideTitle?: boolean;
|
|
@@ -98,13 +100,64 @@ interface OptionProps {
|
|
|
98
100
|
label: string;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
declare const SearchBar: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare const SearchBar: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
102
104
|
|
|
103
|
-
interface Props extends ComponentPropsWithoutRef<"input"> {
|
|
105
|
+
interface Props$1 extends ComponentPropsWithoutRef<"input"> {
|
|
104
106
|
type?: "big" | "small";
|
|
105
107
|
design?: 'primary' | 'secondary';
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<ModalRef>>;
|
|
111
|
+
|
|
112
|
+
interface ModalProps extends ComponentPropsWithoutRef<"div"> {
|
|
113
|
+
isVisible: boolean;
|
|
114
|
+
design?: 'default' | 'full-screen';
|
|
115
|
+
title?: string;
|
|
116
|
+
subtitle?: string;
|
|
117
|
+
error?: string;
|
|
118
|
+
hideClose?: boolean;
|
|
119
|
+
hideHeader?: boolean;
|
|
120
|
+
contentStyle?: CSSProperties$1;
|
|
121
|
+
Header?: JSX.Element;
|
|
122
|
+
Bottom?: JSX.Element;
|
|
123
|
+
buttonProps?: ButtonProps;
|
|
124
|
+
onClose: () => void;
|
|
125
|
+
}
|
|
126
|
+
interface ModalRef {
|
|
127
|
+
close: () => void;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare const MenuList: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<MenuRef>>;
|
|
131
|
+
|
|
132
|
+
interface MenuProps {
|
|
133
|
+
id: string;
|
|
134
|
+
style?: CSSProperties$1;
|
|
135
|
+
menuStyle?: CSSProperties$1;
|
|
136
|
+
icon?: JSX.Element;
|
|
137
|
+
Icon?: JSX.Element;
|
|
138
|
+
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
139
|
+
children: React.ReactNode;
|
|
140
|
+
options: Array<OptionsProps>;
|
|
141
|
+
onChange?: (visible: boolean) => void;
|
|
142
|
+
onClick?: (option: OptionsProps) => void;
|
|
143
|
+
}
|
|
144
|
+
interface OptionsProps {
|
|
145
|
+
id: string;
|
|
146
|
+
label: string;
|
|
147
|
+
icon?: any;
|
|
148
|
+
}
|
|
149
|
+
interface MenuRef {
|
|
150
|
+
close: () => void;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare const Label: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
154
|
+
|
|
155
|
+
interface Props extends ComponentPropsWithoutRef<"div"> {
|
|
156
|
+
text?: string;
|
|
157
|
+
backgroundColor?: string;
|
|
158
|
+
color?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
108
161
|
declare const Color: {
|
|
109
162
|
background: {
|
|
110
163
|
primary: string;
|
|
@@ -198,4 +251,4 @@ declare const Color: {
|
|
|
198
251
|
};
|
|
199
252
|
};
|
|
200
253
|
|
|
201
|
-
export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, ProgressBar, SearchBar, Select, Text };
|
|
254
|
+
export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, Label, MenuList as Menu, ModalComponent as Modal, ProgressBar, SearchBar, Select, Text };
|
package/package.json
CHANGED