@elliemae/ds-imagelibrarymodal 2.3.0-alpha.8 → 2.3.0-alpha.9
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.
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
declare const DSImageLibraryModal: {
|
|
4
|
+
({ containerProps, confirmLabel, disableDoubleClick, isOpen, modalTitle, modalType, rejectLabel, shouldCloseOnOverlayClick, size, imagesData, onSelect, ...rest }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
containerProps?: {} | undefined;
|
|
7
|
+
confirmLabel?: string | undefined;
|
|
8
|
+
disableDoubleClick?: boolean | undefined;
|
|
9
|
+
isOpen?: boolean | undefined;
|
|
10
|
+
modalTitle?: string | undefined;
|
|
11
|
+
modalType?: unknown;
|
|
12
|
+
rejectLabel?: string | undefined;
|
|
13
|
+
shouldCloseOnOverlayClick?: boolean | undefined;
|
|
14
|
+
size?: any;
|
|
15
|
+
imagesData?: {
|
|
16
|
+
url: string;
|
|
17
|
+
name: string;
|
|
18
|
+
createdBy: string;
|
|
19
|
+
createdDate: string;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
onSelect?: (() => null) | undefined;
|
|
22
|
+
}): JSX.Element;
|
|
23
|
+
/** Inherits DSModal props */
|
|
24
|
+
propTypes: {
|
|
25
|
+
containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
26
|
+
/** List of images src */
|
|
27
|
+
imagesData: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
28
|
+
url: PropTypes.Requireable<string>;
|
|
29
|
+
name: PropTypes.Requireable<string>;
|
|
30
|
+
}> | null | undefined)[]>;
|
|
31
|
+
/** Handler when user selects an image */
|
|
32
|
+
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default DSImageLibraryModal;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export default class ImageLibraryModalImpl extends React.PureComponent {
|
|
3
|
+
constructor(props: any);
|
|
4
|
+
componentDidMount(): void;
|
|
5
|
+
getDerivedStateFromProps(nextProps: any): void;
|
|
6
|
+
onReject: () => void;
|
|
7
|
+
getUser(selected: any): any;
|
|
8
|
+
handleElementClick: (e: any, image: any) => void;
|
|
9
|
+
preventSpacebarScroll(): void;
|
|
10
|
+
drawDiv(className: any, content: any): JSX.Element;
|
|
11
|
+
drawLabel(className: any, label: any, value: any): JSX.Element;
|
|
12
|
+
renderElements: () => any;
|
|
13
|
+
renderSpinner: () => JSX.Element;
|
|
14
|
+
renderError: () => JSX.Element;
|
|
15
|
+
render(): JSX.Element;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DSImageLibraryModal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-imagelibrarymodal",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Image Library Modal",
|
|
6
6
|
"files": [
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
},
|
|
38
38
|
"author": "ICE MT",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elliemae/ds-icon": "2.3.0-alpha.
|
|
41
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
42
|
-
"@elliemae/ds-modal": "2.3.0-alpha.
|
|
43
|
-
"@elliemae/ds-shared": "2.3.0-alpha.
|
|
44
|
-
"@elliemae/ds-spinner": "2.3.0-alpha.
|
|
40
|
+
"@elliemae/ds-icon": "2.3.0-alpha.9",
|
|
41
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
42
|
+
"@elliemae/ds-modal": "2.3.0-alpha.9",
|
|
43
|
+
"@elliemae/ds-shared": "2.3.0-alpha.9",
|
|
44
|
+
"@elliemae/ds-spinner": "2.3.0-alpha.9",
|
|
45
45
|
"prop-types": "~15.7.2",
|
|
46
46
|
"react-loading-image": "~0.5.0"
|
|
47
47
|
},
|