@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/cjs/components/Modal/Modal.d.ts +10 -19
- 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 +10 -19
- 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 +15 -5
- package/package.json +1 -1
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
|
-
|
|
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;
|
|
@@ -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