@elliemae/ds-loading-indicator 3.0.0-next.5 → 3.0.0-next.53

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.
@@ -18,7 +18,6 @@ var __spreadValues = (a, b) => {
18
18
  }
19
19
  return a;
20
20
  };
21
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
22
21
  var __objRest = (source, exclude) => {
23
22
  var target = {};
24
23
  for (var prop in source)
@@ -35,28 +34,23 @@ var __export = (target, all) => {
35
34
  for (var name in all)
36
35
  __defProp(target, name, { get: all[name], enumerable: true });
37
36
  };
38
- var __reExport = (target, module2, copyDefault, desc) => {
39
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
40
- for (let key of __getOwnPropNames(module2))
41
- if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
42
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
37
+ var __copyProps = (to, from, except, desc) => {
38
+ if (from && typeof from === "object" || typeof from === "function") {
39
+ for (let key of __getOwnPropNames(from))
40
+ if (!__hasOwnProp.call(to, key) && key !== except)
41
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
43
42
  }
44
- return target;
45
- };
46
- var __toESM = (module2, isNodeMode) => {
47
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
43
+ return to;
48
44
  };
49
- var __toCommonJS = /* @__PURE__ */ ((cache) => {
50
- return (module2, temp) => {
51
- return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
52
- };
53
- })(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
45
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
46
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
54
47
  var DSLoadingIndicator_exports = {};
55
48
  __export(DSLoadingIndicator_exports, {
56
49
  DSLoadingIndicator: () => DSLoadingIndicator,
57
50
  LoadingIndicatorWithSchema: () => LoadingIndicatorWithSchema,
58
51
  default: () => DSLoadingIndicator_default
59
52
  });
53
+ module.exports = __toCommonJS(DSLoadingIndicator_exports);
60
54
  var React = __toESM(require("react"));
61
55
  var import_react = __toESM(require("react"));
62
56
  var import_react_desc = require("react-desc");
@@ -108,5 +102,4 @@ DSLoadingIndicator.propTypes = loadingIndicatorProps;
108
102
  const LoadingIndicatorWithSchema = (0, import_react_desc.describe)(DSLoadingIndicator);
109
103
  LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
110
104
  var DSLoadingIndicator_default = DSLoadingIndicator;
111
- module.exports = __toCommonJS(DSLoadingIndicator_exports);
112
105
  //# sourceMappingURL=DSLoadingIndicator.js.map
@@ -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 '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,OAStB;AATsB,eAC1B;AAAA;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,IACV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,iBAAiB,MAAM;AAAA,IACvB;AAAA,MAP0B,IAQvB,iBARuB,IAQvB;AAAA,IAPH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,mBAAmB,WACvB,mDAAC,2BAAD;AAAA,IAAW;AAAA,IAAoB;AAAA,IAAkB;AAA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AC;AAAA,IACC,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,KAEA,mDAAC,iBAAW,gBAAiB,CAC/B;AAEJ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,UAAU,4BAAU,KAAK,YAAY,uBAAuB;AAAA,EAC5D,MAAM,4BAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAClC,YAAY,qBAAqB,EACjC,aAAa,GAAG;AAAA,EACnB,SAAS,4BAAU,KAChB,YAAY,oCAAoC,EAChD,aAAa,KAAK;AAAA,EACrB,SAAS,4BAAU,OAAO,YAAY,2BAA2B;AAAA,EACjE,aAAa,4BAAU,KACpB,YAAY,qCAAqC,EACjD,aAAa,IAAI;AAAA,EACpB,gBAAgB,4BAAU,KAAK,YAC7B,oDACF;AAAA,EACA,SAAS,4BAAU,QAAQ,YAAY,+BAA+B;AACxE;AAEA,mBAAmB,YAAY;AAE/B,MAAM,6BAA6B,gCAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
6
6
  "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -4,33 +4,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
8
7
  var __export = (target, all) => {
9
8
  for (var name in all)
10
9
  __defProp(target, name, { get: all[name], enumerable: true });
11
10
  };
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 });
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
16
  }
18
- return target;
17
+ return to;
19
18
  };
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);
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
22
  var src_exports = {};
29
23
  __export(src_exports, {
30
24
  default: () => import_DSLoadingIndicator.default
31
25
  });
26
+ module.exports = __toCommonJS(src_exports);
32
27
  var React = __toESM(require("react"));
33
- __reExport(src_exports, require("./DSLoadingIndicator"));
28
+ __reExport(src_exports, require("./DSLoadingIndicator"), module.exports);
34
29
  var import_DSLoadingIndicator = __toESM(require("./DSLoadingIndicator"));
35
- module.exports = __toCommonJS(src_exports);
36
30
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
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;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,iCAAd;AAEA,gCAAwB;",
6
6
  "names": []
7
7
  }
@@ -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 '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,OAStB;AATsB,eAC1B;AAAA;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,IACV,UAAU;AAAA,IACV,cAAc;AAAA,IACd,iBAAiB,MAAM;AAAA,IACvB;AAAA,MAP0B,IAQvB,iBARuB,IAQvB;AAAA,IAPH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,QAAM,mBAAmB,WACvB,qCAAC,WAAD;AAAA,IAAW;AAAA,IAAoB;AAAA,IAAkB;AAAA,KAAgB;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,mBAAm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C,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.0.0-next.5",
3
+ "version": "3.0.0-next.53",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Loading Indicator",
6
6
  "files": [
@@ -38,10 +38,17 @@
38
38
  "reportFile": "tests.xml",
39
39
  "indent": 4
40
40
  },
41
+ "scripts": {
42
+ "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
43
+ "test": "node ../../scripts/testing/test.mjs",
44
+ "lint": "node ../../scripts/lint.mjs",
45
+ "dts": "node ../../scripts/dts.mjs",
46
+ "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
47
+ },
41
48
  "dependencies": {
42
- "@elliemae/ds-classnames": "3.0.0-next.5",
43
- "@elliemae/ds-overlay": "3.0.0-next.5",
44
- "@elliemae/ds-spinner": "3.0.0-next.5",
49
+ "@elliemae/ds-classnames": "workspace:*",
50
+ "@elliemae/ds-overlay": "workspace:*",
51
+ "@elliemae/ds-spinner": "workspace:*",
45
52
  "react-desc": "~4.1.3"
46
53
  },
47
54
  "peerDependencies": {
@@ -51,12 +58,5 @@
51
58
  "publishConfig": {
52
59
  "access": "public",
53
60
  "typeSafety": false
54
- },
55
- "scripts": {
56
- "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
57
- "test": "node ../../scripts/testing/test.mjs",
58
- "lint": "node ../../scripts/lint.mjs",
59
- "dts": "node ../../scripts/dts.mjs",
60
- "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
61
61
  }
62
- }
62
+ }