@elliemae/ds-loading-indicator 3.2.1-rc.3 → 3.2.1-rc.6
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.
|
@@ -3,34 +3,8 @@ var __create = Object.create;
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
if (__hasOwnProp.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
if (__getOwnPropSymbols)
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __objRest = (source, exclude) => {
|
|
23
|
-
var target = {};
|
|
24
|
-
for (var prop in source)
|
|
25
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
if (source != null && __getOwnPropSymbols)
|
|
28
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
29
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
30
|
-
target[prop] = source[prop];
|
|
31
|
-
}
|
|
32
|
-
return target;
|
|
33
|
-
};
|
|
34
8
|
var __export = (target, all) => {
|
|
35
9
|
for (var name in all)
|
|
36
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -60,29 +34,22 @@ var import_ds_spinner = __toESM(require("@elliemae/ds-spinner"));
|
|
|
60
34
|
var import_ds_overlay = __toESM(require("@elliemae/ds-overlay"));
|
|
61
35
|
const blockName = "loading-indicator";
|
|
62
36
|
const Container = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
|
|
63
|
-
const DSLoadingIndicator = (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"size",
|
|
75
|
-
"loading",
|
|
76
|
-
"message",
|
|
77
|
-
"hasBackdrop",
|
|
78
|
-
"onClickOutside",
|
|
79
|
-
"spinner"
|
|
80
|
-
]);
|
|
81
|
-
const spinnerComponent = spinner || /* @__PURE__ */ import_react.default.createElement(import_ds_spinner.default, __spreadValues({
|
|
37
|
+
const DSLoadingIndicator = ({
|
|
38
|
+
innerRef,
|
|
39
|
+
size = "l",
|
|
40
|
+
loading = false,
|
|
41
|
+
message = null,
|
|
42
|
+
hasBackdrop = true,
|
|
43
|
+
onClickOutside = () => null,
|
|
44
|
+
spinner,
|
|
45
|
+
...rest
|
|
46
|
+
}) => {
|
|
47
|
+
const spinnerComponent = spinner || /* @__PURE__ */ import_react.default.createElement(import_ds_spinner.default, {
|
|
82
48
|
innerRef,
|
|
83
49
|
message,
|
|
84
|
-
size
|
|
85
|
-
|
|
50
|
+
size,
|
|
51
|
+
...rest
|
|
52
|
+
});
|
|
86
53
|
return /* @__PURE__ */ import_react.default.createElement(import_ds_overlay.default, {
|
|
87
54
|
backDropZIndex: 200,
|
|
88
55
|
hasBackdrop,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSLoadingIndicator.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport DSSpinner from '@elliemae/ds-spinner';\nimport DSOverlay from '@elliemae/ds-overlay';\n\nconst blockName = 'loading-indicator';\n\nconst Container = aggregatedClasses('div')(blockName);\n\nconst DSLoadingIndicator = ({\n innerRef,\n size = 'l',\n loading = false,\n message = null,\n hasBackdrop = true,\n onClickOutside = () => null,\n spinner,\n ...rest\n}) => {\n const spinnerComponent = spinner || (\n <DSSpinner innerRef={innerRef} message={message} size={size} {...rest} />\n );\n return (\n <DSOverlay\n backDropZIndex={200} // https://jira.elliemae.io/browse/PUI-1712\n hasBackdrop={hasBackdrop}\n isOpen={loading}\n onClickOutside={onClickOutside}\n >\n <Container>{spinnerComponent}</Container>\n </DSOverlay>\n );\n};\n\nconst loadingIndicatorProps = {\n innerRef: PropTypes.func.description('Get spinner reference'),\n size: PropTypes.oneOf(['s', 'm', 'l'])\n .description('Size of the spinner')\n .defaultValue('l'),\n loading: PropTypes.bool\n .description('Whether to show the spinner or not')\n .defaultValue(false),\n message: PropTypes.string.description('Message below the spinner'),\n hasBackdrop: PropTypes.bool\n .description('Show a backdrop besides the spinner')\n .defaultValue(true),\n onClickOutside: PropTypes.func.description(\n 'Handler when a user clicks the outside the spinner',\n ),\n spinner: PropTypes.element.description('Render a custom spinner (JSX)'),\n};\n\nDSLoadingIndicator.propTypes = loadingIndicatorProps;\nDSLoadingIndicator.displayName = 'DSLoadingIndicator';\nconst LoadingIndicatorWithSchema = describe(DSLoadingIndicator);\nLoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;\n\nexport { DSLoadingIndicator, LoadingIndicatorWithSchema };\nexport default DSLoadingIndicator;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;A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= Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
var __objRest = (source, exclude) => {
|
|
19
|
-
var target = {};
|
|
20
|
-
for (var prop in source)
|
|
21
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
-
target[prop] = source[prop];
|
|
23
|
-
if (source != null && __getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
2
|
import * as React from "react";
|
|
31
3
|
import React2 from "react";
|
|
32
4
|
import { describe, PropTypes } from "@elliemae/ds-utilities";
|
|
@@ -35,29 +7,22 @@ import DSSpinner from "@elliemae/ds-spinner";
|
|
|
35
7
|
import DSOverlay from "@elliemae/ds-overlay";
|
|
36
8
|
const blockName = "loading-indicator";
|
|
37
9
|
const Container = aggregatedClasses("div")(blockName);
|
|
38
|
-
const DSLoadingIndicator = (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"size",
|
|
50
|
-
"loading",
|
|
51
|
-
"message",
|
|
52
|
-
"hasBackdrop",
|
|
53
|
-
"onClickOutside",
|
|
54
|
-
"spinner"
|
|
55
|
-
]);
|
|
56
|
-
const spinnerComponent = spinner || /* @__PURE__ */ React2.createElement(DSSpinner, __spreadValues({
|
|
10
|
+
const DSLoadingIndicator = ({
|
|
11
|
+
innerRef,
|
|
12
|
+
size = "l",
|
|
13
|
+
loading = false,
|
|
14
|
+
message = null,
|
|
15
|
+
hasBackdrop = true,
|
|
16
|
+
onClickOutside = () => null,
|
|
17
|
+
spinner,
|
|
18
|
+
...rest
|
|
19
|
+
}) => {
|
|
20
|
+
const spinnerComponent = spinner || /* @__PURE__ */ React2.createElement(DSSpinner, {
|
|
57
21
|
innerRef,
|
|
58
22
|
message,
|
|
59
|
-
size
|
|
60
|
-
|
|
23
|
+
size,
|
|
24
|
+
...rest
|
|
25
|
+
});
|
|
61
26
|
return /* @__PURE__ */ React2.createElement(DSOverlay, {
|
|
62
27
|
backDropZIndex: 200,
|
|
63
28
|
hasBackdrop,
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLoadingIndicator.tsx"],
|
|
4
4
|
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-utilities';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport DSSpinner from '@elliemae/ds-spinner';\nimport DSOverlay from '@elliemae/ds-overlay';\n\nconst blockName = 'loading-indicator';\n\nconst Container = aggregatedClasses('div')(blockName);\n\nconst DSLoadingIndicator = ({\n innerRef,\n size = 'l',\n loading = false,\n message = null,\n hasBackdrop = true,\n onClickOutside = () => null,\n spinner,\n ...rest\n}) => {\n const spinnerComponent = spinner || (\n <DSSpinner innerRef={innerRef} message={message} size={size} {...rest} />\n );\n return (\n <DSOverlay\n backDropZIndex={200} // https://jira.elliemae.io/browse/PUI-1712\n hasBackdrop={hasBackdrop}\n isOpen={loading}\n onClickOutside={onClickOutside}\n >\n <Container>{spinnerComponent}</Container>\n </DSOverlay>\n );\n};\n\nconst loadingIndicatorProps = {\n innerRef: PropTypes.func.description('Get spinner reference'),\n size: PropTypes.oneOf(['s', 'm', 'l'])\n .description('Size of the spinner')\n .defaultValue('l'),\n loading: PropTypes.bool\n .description('Whether to show the spinner or not')\n .defaultValue(false),\n message: PropTypes.string.description('Message below the spinner'),\n hasBackdrop: PropTypes.bool\n .description('Show a backdrop besides the spinner')\n .defaultValue(true),\n onClickOutside: PropTypes.func.description(\n 'Handler when a user clicks the outside the spinner',\n ),\n spinner: PropTypes.element.description('Render a custom spinner (JSX)'),\n};\n\nDSLoadingIndicator.propTypes = loadingIndicatorProps;\nDSLoadingIndicator.displayName = 'DSLoadingIndicator';\nconst LoadingIndicatorWithSchema = describe(DSLoadingIndicator);\nLoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;\n\nexport { DSLoadingIndicator, LoadingIndicatorWithSchema };\nexport default DSLoadingIndicator;\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,YAAY,kBAAkB,KAAK,EAAE,SAAS;AAEpD,MAAM,qBAAqB,CAAC;AAAA,EAC1B;AAAA,EACA,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,cAAc;AAAA,EACd,iBAAiB,MAAM;AAAA,EACvB;AAAA,KACG;AAAA,MACC;AACJ,QAAM,mBAAmB,WACvB,qCAAC;AAAA,IAAU;AAAA,IAAoB;AAAA,IAAkB;AAAA,IAAa,GAAG;AAAA,GAAM;AAEzE,SACE,qCAAC;AAAA,IACC,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,KAEA,qCAAC,iBAAW,gBAAiB,CAC/B;AAEJ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,UAAU,UAAU,KAAK,YAAY,uBAAuB;AAAA,EAC5D,MAAM,UAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAClC,YAAY,qBAAqB,EACjC,aAAa,GAAG;AAAA,EACnB,SAAS,UAAU,KAChB,YAAY,oCAAoC,EAChD,aAAa,KAAK;AAAA,EACrB,SAAS,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACjE,aAAa,UAAU,KACpB,YAAY,qCAAqC,EACjD,aAAa,IAAI;AAAA,EACpB,gBAAgB,UAAU,KAAK,YAC7B,oDACF;AAAA,EACA,SAAS,UAAU,QAAQ,YAAY,+BAA+B;AACxE;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,SAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-loading-indicator",
|
|
3
|
-
"version": "3.2.1-rc.
|
|
3
|
+
"version": "3.2.1-rc.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Loading Indicator",
|
|
6
6
|
"files": [
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"indent": 4
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elliemae/ds-classnames": "3.2.1-rc.
|
|
43
|
-
"@elliemae/ds-overlay": "3.2.1-rc.
|
|
44
|
-
"@elliemae/ds-spinner": "3.2.1-rc.
|
|
45
|
-
"@elliemae/ds-utilities": "3.2.1-rc.
|
|
42
|
+
"@elliemae/ds-classnames": "3.2.1-rc.6",
|
|
43
|
+
"@elliemae/ds-overlay": "3.2.1-rc.6",
|
|
44
|
+
"@elliemae/ds-spinner": "3.2.1-rc.6",
|
|
45
|
+
"@elliemae/ds-utilities": "3.2.1-rc.6"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "^17.0.2",
|