@elliemae/ds-loading-indicator 2.2.0-alpha.4 → 3.0.0-next.2
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/cjs/DSLoadingIndicator.js +71 -73
- package/cjs/index.js +11 -36
- package/esm/DSLoadingIndicator.js +56 -43
- package/esm/index.js +1 -7
- package/package.json +4 -4
- package/cjs/DSLoadingIndicator.js.map +0 -7
- package/cjs/index.js.map +0 -7
- package/esm/DSLoadingIndicator.js.map +0 -7
- package/esm/index.js.map +0 -7
|
@@ -1,79 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var import_ds_spinner = __toESM(require("@elliemae/ds-spinner"));
|
|
39
|
-
var import_ds_overlay = __toESM(require("@elliemae/ds-overlay"));
|
|
40
|
-
const blockName = "loading-indicator";
|
|
41
|
-
const Container = (0, import_ds_classnames.aggregatedClasses)("div")(blockName);
|
|
42
|
-
const DSLoadingIndicator = ({
|
|
43
|
-
innerRef,
|
|
44
|
-
size = "l",
|
|
45
|
-
loading = false,
|
|
46
|
-
message = null,
|
|
47
|
-
hasBackdrop = true,
|
|
48
|
-
onClickOutside = () => null,
|
|
49
|
-
spinner,
|
|
50
|
-
...rest
|
|
51
|
-
}) => {
|
|
52
|
-
const spinnerComponent = spinner || /* @__PURE__ */ import_react.default.createElement(import_ds_spinner.default, {
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('core-js/modules/esnext.async-iterator.filter.js');
|
|
6
|
+
require('core-js/modules/esnext.iterator.constructor.js');
|
|
7
|
+
require('core-js/modules/esnext.iterator.filter.js');
|
|
8
|
+
require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
9
|
+
require('core-js/modules/esnext.iterator.for-each.js');
|
|
10
|
+
var _jsx2 = require('@babel/runtime/helpers/jsx');
|
|
11
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
12
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
13
|
+
require('react');
|
|
14
|
+
var reactDesc = require('react-desc');
|
|
15
|
+
var dsClassnames = require('@elliemae/ds-classnames');
|
|
16
|
+
var DSSpinner = require('@elliemae/ds-spinner');
|
|
17
|
+
var DSOverlay = require('@elliemae/ds-overlay');
|
|
18
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
19
|
+
|
|
20
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
|
+
|
|
22
|
+
var _jsx2__default = /*#__PURE__*/_interopDefaultLegacy(_jsx2);
|
|
23
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
24
|
+
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
25
|
+
var DSSpinner__default = /*#__PURE__*/_interopDefaultLegacy(DSSpinner);
|
|
26
|
+
var DSOverlay__default = /*#__PURE__*/_interopDefaultLegacy(DSOverlay);
|
|
27
|
+
|
|
28
|
+
const _excluded = ["innerRef", "size", "loading", "message", "hasBackdrop", "onClickOutside", "spinner"];
|
|
29
|
+
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
|
|
32
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
+
const blockName = 'loading-indicator';
|
|
34
|
+
const Container = dsClassnames.aggregatedClasses('div')(blockName);
|
|
35
|
+
|
|
36
|
+
const DSLoadingIndicator = _ref => {
|
|
37
|
+
let {
|
|
53
38
|
innerRef,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
39
|
+
size = 'l',
|
|
40
|
+
loading = false,
|
|
41
|
+
message = null,
|
|
42
|
+
hasBackdrop = true,
|
|
43
|
+
onClickOutside = () => null,
|
|
44
|
+
spinner
|
|
45
|
+
} = _ref,
|
|
46
|
+
rest = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
47
|
+
|
|
48
|
+
const spinnerComponent = spinner || /*#__PURE__*/jsxRuntime.jsx(DSSpinner__default["default"], _objectSpread({
|
|
49
|
+
innerRef: innerRef,
|
|
50
|
+
message: message,
|
|
51
|
+
size: size
|
|
52
|
+
}, rest));
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/_jsx2__default["default"](DSOverlay__default["default"], {
|
|
55
|
+
backDropZIndex: 200 // https://jira.elliemae.io/browse/PUI-1712
|
|
56
|
+
,
|
|
57
|
+
hasBackdrop: hasBackdrop,
|
|
61
58
|
isOpen: loading,
|
|
62
|
-
onClickOutside
|
|
63
|
-
},
|
|
59
|
+
onClickOutside: onClickOutside
|
|
60
|
+
}, void 0, /*#__PURE__*/_jsx2__default["default"](Container, {}, void 0, spinnerComponent));
|
|
64
61
|
};
|
|
62
|
+
|
|
65
63
|
const loadingIndicatorProps = {
|
|
66
|
-
innerRef:
|
|
67
|
-
size:
|
|
68
|
-
loading:
|
|
69
|
-
message:
|
|
70
|
-
hasBackdrop:
|
|
71
|
-
onClickOutside:
|
|
72
|
-
spinner:
|
|
64
|
+
innerRef: reactDesc.PropTypes.func.description('Get spinner reference'),
|
|
65
|
+
size: reactDesc.PropTypes.oneOf(['s', 'm', 'l']).description('Size of the spinner').defaultValue('l'),
|
|
66
|
+
loading: reactDesc.PropTypes.bool.description('Whether to show the spinner or not').defaultValue(false),
|
|
67
|
+
message: reactDesc.PropTypes.string.description('Message below the spinner'),
|
|
68
|
+
hasBackdrop: reactDesc.PropTypes.bool.description('Show a backdrop besides the spinner').defaultValue(true),
|
|
69
|
+
onClickOutside: reactDesc.PropTypes.func.description('Handler when a user clicks the outside the spinner'),
|
|
70
|
+
spinner: reactDesc.PropTypes.element.description('Render a custom spinner (JSX)')
|
|
73
71
|
};
|
|
74
|
-
|
|
75
|
-
const LoadingIndicatorWithSchema = (0, import_react_desc.describe)(DSLoadingIndicator);
|
|
72
|
+
const LoadingIndicatorWithSchema = reactDesc.describe(DSLoadingIndicator);
|
|
76
73
|
LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
|
|
75
|
+
exports.DSLoadingIndicator = DSLoadingIndicator;
|
|
76
|
+
exports.LoadingIndicatorWithSchema = LoadingIndicatorWithSchema;
|
|
77
|
+
exports["default"] = DSLoadingIndicator;
|
package/cjs/index.js
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
-
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(module2))
|
|
15
|
-
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
-
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (module2, isNodeMode) => {
|
|
21
|
-
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
-
};
|
|
23
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
-
return (module2, temp) => {
|
|
25
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
-
};
|
|
27
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
-
var src_exports = {};
|
|
29
|
-
__export(src_exports, {
|
|
30
|
-
default: () => import_DSLoadingIndicator.default
|
|
31
|
-
});
|
|
32
|
-
var React = __toESM(require("react"));
|
|
33
|
-
__reExport(src_exports, require("./DSLoadingIndicator"));
|
|
34
|
-
var import_DSLoadingIndicator = require("./DSLoadingIndicator");
|
|
35
|
-
module.exports = __toCommonJS(src_exports);
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var DSLoadingIndicator = require('./DSLoadingIndicator.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.DSLoadingIndicator = DSLoadingIndicator.DSLoadingIndicator;
|
|
10
|
+
exports.LoadingIndicatorWithSchema = DSLoadingIndicator.LoadingIndicatorWithSchema;
|
|
11
|
+
exports["default"] = DSLoadingIndicator.DSLoadingIndicator;
|
|
@@ -1,50 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx2 from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';
|
|
9
|
+
import 'react';
|
|
10
|
+
import { PropTypes, describe } from 'react-desc';
|
|
11
|
+
import { aggregatedClasses } from '@elliemae/ds-classnames';
|
|
12
|
+
import DSSpinner from '@elliemae/ds-spinner';
|
|
13
|
+
import DSOverlay from '@elliemae/ds-overlay';
|
|
14
|
+
import { jsx } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
const _excluded = ["innerRef", "size", "loading", "message", "hasBackdrop", "onClickOutside", "spinner"];
|
|
17
|
+
|
|
18
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
19
|
+
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
const blockName = 'loading-indicator';
|
|
22
|
+
const Container = aggregatedClasses('div')(blockName);
|
|
23
|
+
|
|
24
|
+
const DSLoadingIndicator = _ref => {
|
|
25
|
+
let {
|
|
20
26
|
innerRef,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
size = 'l',
|
|
28
|
+
loading = false,
|
|
29
|
+
message = null,
|
|
30
|
+
hasBackdrop = true,
|
|
31
|
+
onClickOutside = () => null,
|
|
32
|
+
spinner
|
|
33
|
+
} = _ref,
|
|
34
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
+
|
|
36
|
+
const spinnerComponent = spinner || /*#__PURE__*/jsx(DSSpinner, _objectSpread({
|
|
37
|
+
innerRef: innerRef,
|
|
38
|
+
message: message,
|
|
39
|
+
size: size
|
|
40
|
+
}, rest));
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/_jsx2(DSOverlay, {
|
|
43
|
+
backDropZIndex: 200 // https://jira.elliemae.io/browse/PUI-1712
|
|
44
|
+
,
|
|
45
|
+
hasBackdrop: hasBackdrop,
|
|
28
46
|
isOpen: loading,
|
|
29
|
-
onClickOutside
|
|
30
|
-
},
|
|
47
|
+
onClickOutside: onClickOutside
|
|
48
|
+
}, void 0, /*#__PURE__*/_jsx2(Container, {}, void 0, spinnerComponent));
|
|
31
49
|
};
|
|
50
|
+
|
|
32
51
|
const loadingIndicatorProps = {
|
|
33
|
-
innerRef: PropTypes.func.description(
|
|
34
|
-
size: PropTypes.oneOf([
|
|
35
|
-
loading: PropTypes.bool.description(
|
|
36
|
-
message: PropTypes.string.description(
|
|
37
|
-
hasBackdrop: PropTypes.bool.description(
|
|
38
|
-
onClickOutside: PropTypes.func.description(
|
|
39
|
-
spinner: PropTypes.element.description(
|
|
52
|
+
innerRef: PropTypes.func.description('Get spinner reference'),
|
|
53
|
+
size: PropTypes.oneOf(['s', 'm', 'l']).description('Size of the spinner').defaultValue('l'),
|
|
54
|
+
loading: PropTypes.bool.description('Whether to show the spinner or not').defaultValue(false),
|
|
55
|
+
message: PropTypes.string.description('Message below the spinner'),
|
|
56
|
+
hasBackdrop: PropTypes.bool.description('Show a backdrop besides the spinner').defaultValue(true),
|
|
57
|
+
onClickOutside: PropTypes.func.description('Handler when a user clicks the outside the spinner'),
|
|
58
|
+
spinner: PropTypes.element.description('Render a custom spinner (JSX)')
|
|
40
59
|
};
|
|
41
|
-
DSLoadingIndicator.propTypes = loadingIndicatorProps;
|
|
42
60
|
const LoadingIndicatorWithSchema = describe(DSLoadingIndicator);
|
|
43
61
|
LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
|
|
44
|
-
|
|
45
|
-
export {
|
|
46
|
-
DSLoadingIndicator,
|
|
47
|
-
LoadingIndicatorWithSchema,
|
|
48
|
-
DSLoadingIndicator_default as default
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=DSLoadingIndicator.js.map
|
|
62
|
+
|
|
63
|
+
export { DSLoadingIndicator, LoadingIndicatorWithSchema, DSLoadingIndicator as default };
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export * from "./DSLoadingIndicator";
|
|
3
|
-
import { default as default2 } from "./DSLoadingIndicator";
|
|
4
|
-
export {
|
|
5
|
-
default2 as default
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { DSLoadingIndicator, LoadingIndicatorWithSchema, DSLoadingIndicator as default } from './DSLoadingIndicator.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-loading-indicator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Loading Indicator",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"build": "node ../../scripts/build/build.js"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-classnames": "
|
|
40
|
-
"@elliemae/ds-overlay": "
|
|
41
|
-
"@elliemae/ds-spinner": "
|
|
39
|
+
"@elliemae/ds-classnames": "3.0.0-next.2",
|
|
40
|
+
"@elliemae/ds-overlay": "3.0.0-next.2",
|
|
41
|
+
"@elliemae/ds-spinner": "3.0.0-next.2",
|
|
42
42
|
"react-desc": "~4.1.3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/DSLoadingIndicator.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from 'react-desc';\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;\n\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,wBAAoC;AACpC,2BAAkC;AAClC,wBAAsB;AACtB,wBAAsB;AAEtB,MAAM,YAAY;AAElB,MAAM,YAAY,4CAAkB,OAAO;AAE3C,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,mDAAC,2BAAD;AAAA,IAAW;AAAA,IAAoB;AAAA,IAAkB;AAAA,OAAgB;AAAA;AAEnE,SACE,mDAAC,2BAAD;AAAA,IACE,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,KAEA,mDAAC,WAAD,MAAY;AAAA;AAKlB,MAAM,wBAAwB;AAAA,EAC5B,UAAU,4BAAU,KAAK,YAAY;AAAA,EACrC,MAAM,4BAAU,MAAM,CAAC,KAAK,KAAK,MAC9B,YAAY,uBACZ,aAAa;AAAA,EAChB,SAAS,4BAAU,KAChB,YAAY,sCACZ,aAAa;AAAA,EAChB,SAAS,4BAAU,OAAO,YAAY;AAAA,EACtC,aAAa,4BAAU,KACpB,YAAY,uCACZ,aAAa;AAAA,EAChB,gBAAgB,4BAAU,KAAK,YAC7B;AAAA,EAEF,SAAS,4BAAU,QAAQ,YAAY;AAAA;AAGzC,mBAAmB,YAAY;AAE/B,MAAM,6BAA6B,gCAAS;AAC5C,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/cjs/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export * from './DSLoadingIndicator';\n\nexport { default } from './DSLoadingIndicator';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc;AAEd,gCAAwB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLoadingIndicator.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe, PropTypes } from 'react-desc';\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;\n\nconst LoadingIndicatorWithSchema = describe(DSLoadingIndicator);\nLoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;\n\nexport { DSLoadingIndicator, LoadingIndicatorWithSchema };\nexport default DSLoadingIndicator;\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,YAAY,kBAAkB,OAAO;AAE3C,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,WAAD;AAAA,IAAW;AAAA,IAAoB;AAAA,IAAkB;AAAA,OAAgB;AAAA;AAEnE,SACE,qCAAC,WAAD;AAAA,IACE,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,KAEA,qCAAC,WAAD,MAAY;AAAA;AAKlB,MAAM,wBAAwB;AAAA,EAC5B,UAAU,UAAU,KAAK,YAAY;AAAA,EACrC,MAAM,UAAU,MAAM,CAAC,KAAK,KAAK,MAC9B,YAAY,uBACZ,aAAa;AAAA,EAChB,SAAS,UAAU,KAChB,YAAY,sCACZ,aAAa;AAAA,EAChB,SAAS,UAAU,OAAO,YAAY;AAAA,EACtC,aAAa,UAAU,KACpB,YAAY,uCACZ,aAAa;AAAA,EAChB,gBAAgB,UAAU,KAAK,YAC7B;AAAA,EAEF,SAAS,UAAU,QAAQ,YAAY;AAAA;AAGzC,mBAAmB,YAAY;AAE/B,MAAM,6BAA6B,SAAS;AAC5C,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
package/esm/index.js.map
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSLoadingIndicator';\n\nexport { default } from './DSLoadingIndicator';\n"],
|
|
5
|
-
"mappings": "AAAA;ACAA;AAEA;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|