@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/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 react, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
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$6) => react_jsx_runtime.JSX.Element;
8
+ declare const BreadCrumb: ({ steps, ...props }: Props$7) => react_jsx_runtime.JSX.Element;
7
9
 
8
- interface Props$6 extends ComponentPropsWithoutRef<"div"> {
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$5) => react_jsx_runtime.JSX.Element;
15
+ declare const Text: (props: Props$6) => react_jsx_runtime.JSX.Element;
14
16
 
15
- interface Props$5 extends ComponentPropsWithoutRef<"p"> {
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$4) => react_jsx_runtime.JSX.Element;
22
+ declare const ProgressBar: (props: Props$5) => react_jsx_runtime.JSX.Element;
21
23
 
22
- interface Props$4 extends ComponentPropsWithoutRef<"div"> {
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$3) => react_jsx_runtime.JSX.Element | null;
36
+ declare const FeedBack: ({ type, isVisible, ...props }: Props$4) => react_jsx_runtime.JSX.Element | null;
35
37
 
36
- interface Props$3 extends ComponentPropsWithoutRef<"div"> {
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?: react.ReactElement;
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$2) => react_jsx_runtime.JSX.Element;
66
+ declare const Input: (props: Props$3) => react_jsx_runtime.JSX.Element;
65
67
 
66
- interface Props$2 extends InputStyledProps {
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$1) => react_jsx_runtime.JSX.Element;
88
+ declare const Select: (props: Props$2) => react_jsx_runtime.JSX.Element;
87
89
 
88
- interface Props$1 extends ComponentPropsWithoutRef<"div"> {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptaunabuelo/react-components",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,