@adoptaunabuelo/react-components 0.1.20 → 0.1.22

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
@@ -108,17 +108,15 @@ interface Props$3 extends ComponentPropsWithoutRef<"input"> {
108
108
  design?: 'primary' | 'secondary';
109
109
  }
110
110
 
111
- declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<ModalRef>>;
112
-
113
- interface ModalProps extends ComponentPropsWithoutRef<"div"> {
111
+ interface ModalPrimaryProps extends ComponentPropsWithoutRef<"div"> {
114
112
  isVisible: boolean;
115
- design?: 'default' | 'full-screen';
113
+ type?: 'default' | 'full-screen' | 'form' | 'web';
116
114
  title?: string;
117
115
  subtitle?: string;
118
116
  error?: string;
119
117
  hideClose?: boolean;
120
118
  hideHeader?: boolean;
121
- contentStyle?: CSSProperties$1;
119
+ contentStyle?: CSSProperties;
122
120
  Header?: JSX.Element;
123
121
  Bottom?: JSX.Element;
124
122
  buttonProps?: ButtonProps;
@@ -128,6 +126,18 @@ interface ModalRef {
128
126
  close: () => void;
129
127
  }
130
128
 
129
+ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<ModalRef>>;
130
+
131
+ interface ModalProps extends ModalPrimaryProps {
132
+ options?: Array<{
133
+ id: string;
134
+ title?: string;
135
+ Data?: JSX.Element;
136
+ hidden?: boolean;
137
+ }>;
138
+ url?: string;
139
+ }
140
+
131
141
  declare const MenuList: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<MenuRef>>;
132
142
 
133
143
  interface MenuProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adoptaunabuelo/react-components",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,