@adoptaunabuelo/react-components 0.1.14 → 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 +2 -0
- package/dist/cjs/index.js +66 -22
- 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 +2 -0
- package/dist/esm/index.js +70 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +47 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
import * as react from 'react';
|
|
4
5
|
import react__default, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
|
|
5
6
|
import { CSSProperties as CSSProperties$1 } from 'styled-components';
|
|
6
7
|
|
|
7
|
-
declare const BreadCrumb: ({ steps, ...props }: Props$
|
|
8
|
+
declare const BreadCrumb: ({ steps, ...props }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
8
9
|
|
|
9
|
-
interface Props$
|
|
10
|
+
interface Props$7 extends ComponentPropsWithoutRef<"div"> {
|
|
10
11
|
selectedStep?: number;
|
|
11
12
|
steps: number;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
declare const Text: (props: Props$
|
|
15
|
+
declare const Text: (props: Props$6) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
|
|
16
|
-
interface Props$
|
|
17
|
+
interface Props$6 extends ComponentPropsWithoutRef<"p"> {
|
|
17
18
|
type: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'p2' | 'c1' | 'c2';
|
|
18
19
|
weight?: 'semibold' | 'medium' | 'regular';
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
declare const ProgressBar: (props: Props$
|
|
22
|
+
declare const ProgressBar: (props: Props$5) => react_jsx_runtime.JSX.Element;
|
|
22
23
|
|
|
23
|
-
interface Props$
|
|
24
|
+
interface Props$5 extends ComponentPropsWithoutRef<"div"> {
|
|
24
25
|
progress: number | Array<{
|
|
25
26
|
value: number;
|
|
26
27
|
color?: string;
|
|
@@ -32,9 +33,9 @@ interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
|
32
33
|
animationDelay?: number;
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
declare const FeedBack: ({ type, isVisible, ...props }: Props$
|
|
36
|
+
declare const FeedBack: ({ type, isVisible, ...props }: Props$4) => react_jsx_runtime.JSX.Element | null;
|
|
36
37
|
|
|
37
|
-
interface Props$
|
|
38
|
+
interface Props$4 extends ComponentPropsWithoutRef<"div"> {
|
|
38
39
|
isVisible: boolean;
|
|
39
40
|
type: 'success' | 'error';
|
|
40
41
|
text: string;
|
|
@@ -62,9 +63,9 @@ interface InputStyledProps extends ComponentPropsWithRef<"input"> {
|
|
|
62
63
|
hideCalendar?: boolean;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
|
-
declare const Input: (props: Props$
|
|
66
|
+
declare const Input: (props: Props$3) => react_jsx_runtime.JSX.Element;
|
|
66
67
|
|
|
67
|
-
interface Props$
|
|
68
|
+
interface Props$3 extends InputStyledProps {
|
|
68
69
|
containerStyle?: CSSProperties;
|
|
69
70
|
icon?: ReactElement;
|
|
70
71
|
error?: string | undefined;
|
|
@@ -84,9 +85,9 @@ interface Props$2 extends InputStyledProps {
|
|
|
84
85
|
}) => void;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
declare const Select: (props: Props$
|
|
88
|
+
declare const Select: (props: Props$2) => react_jsx_runtime.JSX.Element;
|
|
88
89
|
|
|
89
|
-
interface Props$
|
|
90
|
+
interface Props$2 extends ComponentPropsWithoutRef<"div"> {
|
|
90
91
|
id: string;
|
|
91
92
|
optionStyle?: CSSProperties$1;
|
|
92
93
|
hideTitle?: boolean;
|
|
@@ -99,9 +100,9 @@ interface OptionProps {
|
|
|
99
100
|
label: string;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
|
-
declare const SearchBar: (props: Props) => react_jsx_runtime.JSX.Element;
|
|
103
|
+
declare const SearchBar: (props: Props$1) => react_jsx_runtime.JSX.Element;
|
|
103
104
|
|
|
104
|
-
interface Props extends ComponentPropsWithoutRef<"input"> {
|
|
105
|
+
interface Props$1 extends ComponentPropsWithoutRef<"input"> {
|
|
105
106
|
type?: "big" | "small";
|
|
106
107
|
design?: 'primary' | 'secondary';
|
|
107
108
|
}
|
|
@@ -126,6 +127,37 @@ interface ModalRef {
|
|
|
126
127
|
close: () => void;
|
|
127
128
|
}
|
|
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
|
+
|
|
129
161
|
declare const Color: {
|
|
130
162
|
background: {
|
|
131
163
|
primary: string;
|
|
@@ -219,4 +251,4 @@ declare const Color: {
|
|
|
219
251
|
};
|
|
220
252
|
};
|
|
221
253
|
|
|
222
|
-
export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, ModalComponent as Modal, 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