@elliemae/ds-imagelibrarymodal 3.0.0-next.13 → 3.0.0-next.17
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.
|
@@ -60,7 +60,7 @@ var React = __toESM(require("react"));
|
|
|
60
60
|
var import_react = __toESM(require("react"));
|
|
61
61
|
var import_prop_types = __toESM(require("prop-types"));
|
|
62
62
|
var import_ds_modal = require("@elliemae/ds-modal");
|
|
63
|
-
var
|
|
63
|
+
var import_ds_shared = require("@elliemae/ds-shared");
|
|
64
64
|
var import_ImageLibraryModalImpl = __toESM(require("./components/ImageLibraryModalImpl"));
|
|
65
65
|
const modalTypes = Object.values(import_ds_modal.MODAL_TYPE);
|
|
66
66
|
const DSImageLibraryModal = (_a) => {
|
|
@@ -73,7 +73,7 @@ const DSImageLibraryModal = (_a) => {
|
|
|
73
73
|
modalType = modalTypes[2],
|
|
74
74
|
rejectLabel = "Cancel",
|
|
75
75
|
shouldCloseOnOverlayClick = true,
|
|
76
|
-
size =
|
|
76
|
+
size = import_ds_shared.sizeOptions[3],
|
|
77
77
|
imagesData = [
|
|
78
78
|
{
|
|
79
79
|
url: "https://www.freeiconspng.com/minicovers/no-image-icon-6.png",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSImageLibraryModal.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\n/** Inherits DSModal props */\nDSImageLibraryModal.propTypes = {\n containerProps: PropTypes.shape({}),\n /** List of images src */\n imagesData: PropTypes.arrayOf(\n PropTypes.shape({\n url: PropTypes.string,\n name: PropTypes.string,\n }),\n ),\n /** Handler when user selects an image */\n onSelect: PropTypes.func,\n};\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAsB;AACtB,sBAA2B;AAC3B,uBAA4B;AAC5B,mCAAkC;AAElC,MAAM,aAAa,OAAO,OAAO;AAEjC,MAAM,sBAAsB,CAAC,OAoB1B;AApB0B,eAC3B;AAAA,qBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,qBAAqB;AAAA,IACrB,SAAS;AAAA,IACT,aAAa;AAAA,IACb,YAAY,WAAW;AAAA,IACvB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,OAAO,6BAAY;AAAA,IACnB,aAAa;AAAA,MACX;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,WAAW;AAAA,QACX,aAAa;AAAA;AAAA;AAAA,IAGjB,WAAW,MAAM;AAAA,MAlBU,IAmBxB,iBAnBwB,IAmBxB;AAAA,IAlBH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAQA;AAAA;AAGA,4DAAC,sCAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KACI;AAAA;AAKR,oBAAoB,YAAY;AAAA,EAC9B,gBAAgB,0BAAU,MAAM;AAAA,EAEhC,YAAY,0BAAU,QACpB,0BAAU,MAAM;AAAA,IACd,KAAK,0BAAU;AAAA,IACf,MAAM,0BAAU;AAAA;AAAA,EAIpB,UAAU,0BAAU;AAAA;AAItB,IAAO,8BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -30,7 +30,7 @@ import * as React from "react";
|
|
|
30
30
|
import React2 from "react";
|
|
31
31
|
import PropTypes from "prop-types";
|
|
32
32
|
import { MODAL_TYPE } from "@elliemae/ds-modal";
|
|
33
|
-
import { sizeOptions } from "@elliemae/ds-shared
|
|
33
|
+
import { sizeOptions } from "@elliemae/ds-shared";
|
|
34
34
|
import ImageLibraryModalImpl from "./components/ImageLibraryModalImpl";
|
|
35
35
|
const modalTypes = Object.values(MODAL_TYPE);
|
|
36
36
|
const DSImageLibraryModal = (_a) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSImageLibraryModal.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\n/** Inherits DSModal props */\nDSImageLibraryModal.propTypes = {\n containerProps: PropTypes.shape({}),\n /** List of images src */\n imagesData: PropTypes.arrayOf(\n PropTypes.shape({\n url: PropTypes.string,\n name: PropTypes.string,\n }),\n ),\n /** Handler when user selects an image */\n onSelect: PropTypes.func,\n};\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,aAAa,OAAO,OAAO;AAEjC,MAAM,sBAAsB,CAAC,OAoB1B;AApB0B,eAC3B;AAAA,qBAAiB;AAAA,IACjB,eAAe;AAAA,IACf,qBAAqB;AAAA,IACrB,SAAS;AAAA,IACT,aAAa;AAAA,IACb,YAAY,WAAW;AAAA,IACvB,cAAc;AAAA,IACd,4BAA4B;AAAA,IAC5B,OAAO,YAAY;AAAA,IACnB,aAAa;AAAA,MACX;AAAA,QACE,KAAK;AAAA,QACL,MAAM;AAAA,QACN,WAAW;AAAA,QACX,aAAa;AAAA;AAAA;AAAA,IAGjB,WAAW,MAAM;AAAA,MAlBU,IAmBxB,iBAnBwB,IAmBxB;AAAA,IAlBH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IAQA;AAAA;AAGA,8CAAC,uBAAD;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KACI;AAAA;AAKR,oBAAoB,YAAY;AAAA,EAC9B,gBAAgB,UAAU,MAAM;AAAA,EAEhC,YAAY,UAAU,QACpB,UAAU,MAAM;AAAA,IACd,KAAK,UAAU;AAAA,IACf,MAAM,UAAU;AAAA;AAAA,EAIpB,UAAU,UAAU;AAAA;AAItB,IAAO,8BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-imagelibrarymodal",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Image Library Modal",
|
|
6
6
|
"files": [
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"indent": 4
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@elliemae/ds-icon": "3.0.0-next.
|
|
47
|
-
"@elliemae/ds-icons": "3.0.0-next.
|
|
48
|
-
"@elliemae/ds-modal": "3.0.0-next.
|
|
49
|
-
"@elliemae/ds-shared": "3.0.0-next.
|
|
50
|
-
"@elliemae/ds-spinner": "3.0.0-next.
|
|
46
|
+
"@elliemae/ds-icon": "3.0.0-next.17",
|
|
47
|
+
"@elliemae/ds-icons": "3.0.0-next.17",
|
|
48
|
+
"@elliemae/ds-modal": "3.0.0-next.17",
|
|
49
|
+
"@elliemae/ds-shared": "3.0.0-next.17",
|
|
50
|
+
"@elliemae/ds-spinner": "3.0.0-next.17",
|
|
51
51
|
"prop-types": "~15.8.1",
|
|
52
52
|
"react-loading-image": "~0.5.0"
|
|
53
53
|
},
|