@adoptaunabuelo/react-components 0.1.20 → 0.1.21

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,24 +108,31 @@ 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;
125
123
  onClose: () => void;
126
124
  }
127
- interface ModalRef {
128
- close: () => void;
125
+
126
+ declare const ModalComponent: (props: ModalProps) => react_jsx_runtime.JSX.Element;
127
+
128
+ interface ModalProps extends ModalPrimaryProps {
129
+ options?: Array<{
130
+ id: string;
131
+ title?: string;
132
+ Data?: JSX.Element;
133
+ hidden?: boolean;
134
+ }>;
135
+ url?: string;
129
136
  }
130
137
 
131
138
  declare const MenuList: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<MenuRef>>;
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.21",
4
4
  "homepage": "https://github.com/Adopta-Un-Abuelo/react-components",
5
5
  "author": "Guillermo Angeles <guilleangeles94@gmail.com>",
6
6
  "private": false,