@adoptaunabuelo/react-components 0.1.12 → 0.1.14

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,5 +1,7 @@
1
+ /// <reference types="google.maps" />
1
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import react, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
3
+ import * as react from 'react';
4
+ import react__default, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
3
5
  import { CSSProperties as CSSProperties$1 } from 'styled-components';
4
6
 
5
7
  declare const BreadCrumb: ({ steps, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
@@ -44,7 +46,7 @@ declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
44
46
  interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
45
47
  design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
46
48
  size?: 'small' | 'normal';
47
- icon?: react.ReactElement;
49
+ icon?: react__default.ReactElement;
48
50
  iconPosition?: 'left' | 'right';
49
51
  loading?: boolean;
50
52
  disabled?: boolean;
@@ -75,6 +77,11 @@ interface Props$2 extends InputStyledProps {
75
77
  country?: string;
76
78
  design?: 'primary' | 'secondary';
77
79
  onPhoneChange?: (item: any) => void;
80
+ onLocationChange?: (result: {
81
+ address: string;
82
+ geocoder: google.maps.GeocoderResult;
83
+ location: google.maps.LatLngLiteral;
84
+ }) => void;
78
85
  }
79
86
 
80
87
  declare const Select: (props: Props$1) => react_jsx_runtime.JSX.Element;
@@ -99,6 +106,26 @@ interface Props extends ComponentPropsWithoutRef<"input"> {
99
106
  design?: 'primary' | 'secondary';
100
107
  }
101
108
 
109
+ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<ModalRef>>;
110
+
111
+ interface ModalProps extends ComponentPropsWithoutRef<"div"> {
112
+ isVisible: boolean;
113
+ design?: 'default' | 'full-screen';
114
+ title?: string;
115
+ subtitle?: string;
116
+ error?: string;
117
+ hideClose?: boolean;
118
+ hideHeader?: boolean;
119
+ contentStyle?: CSSProperties$1;
120
+ Header?: JSX.Element;
121
+ Bottom?: JSX.Element;
122
+ buttonProps?: ButtonProps;
123
+ onClose: () => void;
124
+ }
125
+ interface ModalRef {
126
+ close: () => void;
127
+ }
128
+
102
129
  declare const Color: {
103
130
  background: {
104
131
  primary: string;
@@ -192,4 +219,4 @@ declare const Color: {
192
219
  };
193
220
  };
194
221
 
195
- export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, ProgressBar, SearchBar, Select, Text };
222
+ export { BreadCrumb, Button, Color, FeedBack as Feedback, Input, 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.12",
3
+ "version": "0.1.14",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,