@adoptaunabuelo/react-components 0.1.15 → 0.1.17
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/Avatar/Avatar.d.ts +10 -0
- package/dist/cjs/components/Menu/Menu.d.ts +2 -2
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/index.js +49 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Avatar/Avatar.d.ts +10 -0
- package/dist/esm/components/Menu/Menu.d.ts +2 -2
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/index.js +45 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +29 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,23 +5,23 @@ import * as react from 'react';
|
|
|
5
5
|
import react__default, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
|
|
6
6
|
import { CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
7
7
|
|
|
8
|
-
declare const BreadCrumb: ({ steps, ...props }: Props$
|
|
8
|
+
declare const BreadCrumb: ({ steps, ...props }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
|
-
interface Props$
|
|
10
|
+
interface Props$8 extends ComponentPropsWithoutRef<"div"> {
|
|
11
11
|
selectedStep?: number;
|
|
12
12
|
steps: number;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
declare const Text: (props: Props$
|
|
15
|
+
declare const Text: (props: Props$7) => react_jsx_runtime.JSX.Element;
|
|
16
16
|
|
|
17
|
-
interface Props$
|
|
17
|
+
interface Props$7 extends ComponentPropsWithoutRef<"p"> {
|
|
18
18
|
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'p2' | 'c1' | 'c2';
|
|
19
19
|
weight?: 'semibold' | 'medium' | 'regular';
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
declare const ProgressBar: (props: Props$
|
|
22
|
+
declare const ProgressBar: (props: Props$6) => react_jsx_runtime.JSX.Element;
|
|
23
23
|
|
|
24
|
-
interface Props$
|
|
24
|
+
interface Props$6 extends ComponentPropsWithoutRef<"div"> {
|
|
25
25
|
progress: number | Array<{
|
|
26
26
|
value: number;
|
|
27
27
|
color?: string;
|
|
@@ -33,9 +33,9 @@ interface Props$5 extends ComponentPropsWithoutRef<"div"> {
|
|
|
33
33
|
animationDelay?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
declare const FeedBack: ({ type, isVisible, ...props }: Props$
|
|
36
|
+
declare const FeedBack: ({ type, isVisible, ...props }: Props$5) => react_jsx_runtime.JSX.Element | null;
|
|
37
37
|
|
|
38
|
-
interface Props$
|
|
38
|
+
interface Props$5 extends ComponentPropsWithoutRef<"div"> {
|
|
39
39
|
isVisible: boolean;
|
|
40
40
|
type: 'success' | 'error';
|
|
41
41
|
text: string;
|
|
@@ -63,9 +63,9 @@ interface InputStyledProps extends ComponentPropsWithRef<"input"> {
|
|
|
63
63
|
hideCalendar?: boolean;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
declare const Input: (props: Props$
|
|
66
|
+
declare const Input: (props: Props$4) => react_jsx_runtime.JSX.Element;
|
|
67
67
|
|
|
68
|
-
interface Props$
|
|
68
|
+
interface Props$4 extends InputStyledProps {
|
|
69
69
|
containerStyle?: CSSProperties;
|
|
70
70
|
icon?: ReactElement;
|
|
71
71
|
error?: string | undefined;
|
|
@@ -85,9 +85,9 @@ interface Props$3 extends InputStyledProps {
|
|
|
85
85
|
}) => void;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
declare const Select: (props: Props$
|
|
88
|
+
declare const Select: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
89
89
|
|
|
90
|
-
interface Props$
|
|
90
|
+
interface Props$3 extends ComponentPropsWithoutRef<"div"> {
|
|
91
91
|
id: string;
|
|
92
92
|
optionStyle?: CSSProperties$1;
|
|
93
93
|
hideTitle?: boolean;
|
|
@@ -100,9 +100,9 @@ interface OptionProps {
|
|
|
100
100
|
label: string;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
declare const SearchBar: (props: Props$
|
|
103
|
+
declare const SearchBar: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
104
104
|
|
|
105
|
-
interface Props$
|
|
105
|
+
interface Props$2 extends ComponentPropsWithoutRef<"input"> {
|
|
106
106
|
type?: "big" | "small";
|
|
107
107
|
design?: 'primary' | 'secondary';
|
|
108
108
|
}
|
|
@@ -136,8 +136,8 @@ interface MenuProps {
|
|
|
136
136
|
icon?: JSX.Element;
|
|
137
137
|
Icon?: JSX.Element;
|
|
138
138
|
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
139
|
-
children
|
|
140
|
-
options
|
|
139
|
+
children?: React.ReactNode;
|
|
140
|
+
options?: Array<OptionsProps>;
|
|
141
141
|
onChange?: (visible: boolean) => void;
|
|
142
142
|
onClick?: (option: OptionsProps) => void;
|
|
143
143
|
}
|
|
@@ -150,14 +150,24 @@ interface MenuRef {
|
|
|
150
150
|
close: () => void;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
declare const Label: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
153
|
+
declare const Label: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
154
154
|
|
|
155
|
-
interface Props extends ComponentPropsWithoutRef<"div"> {
|
|
155
|
+
interface Props$1 extends ComponentPropsWithoutRef<"div"> {
|
|
156
156
|
text?: string;
|
|
157
157
|
backgroundColor?: string;
|
|
158
158
|
color?: string;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
declare const Avatar: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
162
|
+
|
|
163
|
+
interface Props extends ComponentPropsWithoutRef<"div"> {
|
|
164
|
+
icon?: string;
|
|
165
|
+
name?: string;
|
|
166
|
+
editable?: boolean;
|
|
167
|
+
clickable?: boolean;
|
|
168
|
+
onChange?: (file: any) => void;
|
|
169
|
+
}
|
|
170
|
+
|
|
161
171
|
declare const Color: {
|
|
162
172
|
background: {
|
|
163
173
|
primary: string;
|
|
@@ -251,4 +261,4 @@ declare const Color: {
|
|
|
251
261
|
};
|
|
252
262
|
};
|
|
253
263
|
|
|
254
|
-
export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, Label, MenuList as Menu, ModalComponent as Modal, ProgressBar, SearchBar, Select, Text };
|
|
264
|
+
export { Avatar, BreadCrumb, Button, Color, FeedBack as Feedback, Input, Label, MenuList as Menu, ModalComponent as Modal, ProgressBar, SearchBar, Select, Text };
|
package/package.json
CHANGED