@elliemae/ds-loading-indicator 3.1.0-next.1 → 3.1.0-next.4

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.
@@ -53,7 +53,7 @@ __export(DSLoadingIndicator_exports, {
53
53
  module.exports = __toCommonJS(DSLoadingIndicator_exports);
54
54
  var React = __toESM(require("react"));
55
55
  var import_react = __toESM(require("react"));
56
- var import_react_desc = require("react-desc");
56
+ var import_ds_utilities = require("@elliemae/ds-utilities");
57
57
  var import_ds_classnames = require("@elliemae/ds-classnames");
58
58
  var import_ds_spinner = __toESM(require("@elliemae/ds-spinner"));
59
59
  var import_ds_overlay = __toESM(require("@elliemae/ds-overlay"));
@@ -90,17 +90,17 @@ const DSLoadingIndicator = (_a) => {
90
90
  }, /* @__PURE__ */ import_react.default.createElement(Container, null, spinnerComponent));
91
91
  };
92
92
  const loadingIndicatorProps = {
93
- innerRef: import_react_desc.PropTypes.func.description("Get spinner reference"),
94
- size: import_react_desc.PropTypes.oneOf(["s", "m", "l"]).description("Size of the spinner").defaultValue("l"),
95
- loading: import_react_desc.PropTypes.bool.description("Whether to show the spinner or not").defaultValue(false),
96
- message: import_react_desc.PropTypes.string.description("Message below the spinner"),
97
- hasBackdrop: import_react_desc.PropTypes.bool.description("Show a backdrop besides the spinner").defaultValue(true),
98
- onClickOutside: import_react_desc.PropTypes.func.description("Handler when a user clicks the outside the spinner"),
99
- spinner: import_react_desc.PropTypes.element.description("Render a custom spinner (JSX)")
93
+ innerRef: import_ds_utilities.PropTypes.func.description("Get spinner reference"),
94
+ size: import_ds_utilities.PropTypes.oneOf(["s", "m", "l"]).description("Size of the spinner").defaultValue("l"),
95
+ loading: import_ds_utilities.PropTypes.bool.description("Whether to show the spinner or not").defaultValue(false),
96
+ message: import_ds_utilities.PropTypes.string.description("Message below the spinner"),
97
+ hasBackdrop: import_ds_utilities.PropTypes.bool.description("Show a backdrop besides the spinner").defaultValue(true),
98
+ onClickOutside: import_ds_utilities.PropTypes.func.description("Handler when a user clicks the outside the spinner"),
99
+ spinner: import_ds_utilities.PropTypes.element.description("Render a custom spinner (JSX)")
100
100
  };
101
101
  DSLoadingIndicator.propTypes = loadingIndicatorProps;
102
102
  DSLoadingIndicator.displayName = "DSLoadingIndicator";
103
- const LoadingIndicatorWithSchema = (0, import_react_desc.describe)(DSLoadingIndicator);
103
+ const LoadingIndicatorWithSchema = (0, import_ds_utilities.describe)(DSLoadingIndicator);
104
104
  LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
105
105
  var DSLoadingIndicator_default = DSLoadingIndicator;
106
106
  //# sourceMappingURL=DSLoadingIndicator.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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;\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;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,KAAK,EAAE,SAAS;AAEpD,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;AAAA,IAAU;AAAA,IAAoB;AAAA,IAAkB;AAAA,KAAgB,KAAM;AAEzE,SACE,mDAAC;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;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,gCAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAAoC;AACpC,2BAAkC;AAClC,wBAAsB;AACtB,wBAAsB;AAEtB,MAAM,YAAY;AAElB,MAAM,YAAY,4CAAkB,KAAK,EAAE,SAAS;AAEpD,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;AAAA,IAAU;AAAA,IAAoB;AAAA,IAAkB;AAAA,KAAgB,KAAM;AAEzE,SACE,mDAAC;AAAA,IACC,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,KAEA,mDAAC,iBAAW,gBAAiB,CAC/B;AAEJ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,UAAU,8BAAU,KAAK,YAAY,uBAAuB;AAAA,EAC5D,MAAM,8BAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAClC,YAAY,qBAAqB,EACjC,aAAa,GAAG;AAAA,EACnB,SAAS,8BAAU,KAChB,YAAY,oCAAoC,EAChD,aAAa,KAAK;AAAA,EACrB,SAAS,8BAAU,OAAO,YAAY,2BAA2B;AAAA,EACjE,aAAa,8BAAU,KACpB,YAAY,qCAAqC,EACjD,aAAa,IAAI;AAAA,EACpB,gBAAgB,8BAAU,KAAK,YAC7B,oDACF;AAAA,EACA,SAAS,8BAAU,QAAQ,YAAY,+BAA+B;AACxE;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,6BAA6B,kCAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
6
6
  "names": []
7
7
  }
@@ -28,7 +28,7 @@ var __objRest = (source, exclude) => {
28
28
  };
29
29
  import * as React from "react";
30
30
  import React2 from "react";
31
- import { describe, PropTypes } from "react-desc";
31
+ import { describe, PropTypes } from "@elliemae/ds-utilities";
32
32
  import { aggregatedClasses } from "@elliemae/ds-classnames";
33
33
  import DSSpinner from "@elliemae/ds-spinner";
34
34
  import DSOverlay from "@elliemae/ds-overlay";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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;\nDSLoadingIndicator.displayName = 'DSLoadingIndicator';\nconst LoadingIndicatorWithSchema = describe(DSLoadingIndicator);\nLoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;\n\nexport { DSLoadingIndicator, LoadingIndicatorWithSchema };\nexport default DSLoadingIndicator;\n"],
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
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AACA;AACA;AACA;AAEA,MAAM,YAAY;AAElB,MAAM,YAAY,kBAAkB,KAAK,EAAE,SAAS;AAEpD,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;AAAA,IAAU;AAAA,IAAoB;AAAA,IAAkB;AAAA,KAAgB,KAAM;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.1.0-next.1",
3
+ "version": "3.1.0-next.4",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Loading Indicator",
6
6
  "files": [
@@ -38,18 +38,11 @@
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
- },
48
41
  "dependencies": {
49
- "@elliemae/ds-classnames": "3.1.0-next.1",
50
- "@elliemae/ds-overlay": "3.1.0-next.1",
51
- "@elliemae/ds-spinner": "3.1.0-next.1",
52
- "react-desc": "~4.1.3"
42
+ "@elliemae/ds-classnames": "3.1.0-next.4",
43
+ "@elliemae/ds-overlay": "3.1.0-next.4",
44
+ "@elliemae/ds-spinner": "3.1.0-next.4",
45
+ "@elliemae/ds-utilities": "3.1.0-next.4"
53
46
  },
54
47
  "peerDependencies": {
55
48
  "react": "^17.0.2",
@@ -58,5 +51,13 @@
58
51
  "publishConfig": {
59
52
  "access": "public",
60
53
  "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
+ "checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
61
62
  }
62
- }
63
+ }