@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/cjs/components/Modal/Modal.d.ts +11 -20
- package/dist/cjs/components/Modal/ModalPrimary.d.ts +21 -0
- package/dist/cjs/index.js +16 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +11 -20
- package/dist/esm/components/Modal/ModalPrimary.d.ts +21 -0
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +14 -7
- package/package.json +1 -1
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
|
-
|
|
112
|
-
|
|
113
|
-
interface ModalProps extends ComponentPropsWithoutRef<"div"> {
|
|
111
|
+
interface ModalPrimaryProps extends ComponentPropsWithoutRef<"div"> {
|
|
114
112
|
isVisible: boolean;
|
|
115
|
-
|
|
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
|
|
119
|
+
contentStyle?: CSSProperties;
|
|
122
120
|
Header?: JSX.Element;
|
|
123
121
|
Bottom?: JSX.Element;
|
|
124
122
|
buttonProps?: ButtonProps;
|
|
125
123
|
onClose: () => void;
|
|
126
124
|
}
|
|
127
|
-
|
|
128
|
-
|
|
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