@adoptaunabuelo/react-components 0.1.13 → 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,6 +1,7 @@
1
1
  /// <reference types="google.maps" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import react, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
3
+ import * as react from 'react';
4
+ import react__default, { ComponentPropsWithoutRef, ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
4
5
  import { CSSProperties as CSSProperties$1 } from 'styled-components';
5
6
 
6
7
  declare const BreadCrumb: ({ steps, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
@@ -45,7 +46,7 @@ declare const Button: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
45
46
  interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
46
47
  design?: 'primary' | 'secondary' | 'text' | 'image' | 'call-to-action';
47
48
  size?: 'small' | 'normal';
48
- icon?: react.ReactElement;
49
+ icon?: react__default.ReactElement;
49
50
  iconPosition?: 'left' | 'right';
50
51
  loading?: boolean;
51
52
  disabled?: boolean;
@@ -105,6 +106,26 @@ interface Props extends ComponentPropsWithoutRef<"input"> {
105
106
  design?: 'primary' | 'secondary';
106
107
  }
107
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
+
108
129
  declare const Color: {
109
130
  background: {
110
131
  primary: string;
@@ -198,4 +219,4 @@ declare const Color: {
198
219
  };
199
220
  };
200
221
 
201
- 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.13",
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,