@elliemae/ds-loading-indicator 3.5.0-rc.9 → 3.6.0-next.0

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.
@@ -30,7 +30,7 @@ __export(DSLoadingIndicator_exports, {
30
30
  });
31
31
  module.exports = __toCommonJS(DSLoadingIndicator_exports);
32
32
  var React = __toESM(require("react"));
33
- var import_react = __toESM(require("react"));
33
+ var import_jsx_runtime = require("react/jsx-runtime");
34
34
  var import_ds_utilities = require("@elliemae/ds-utilities");
35
35
  var import_ds_classnames = require("@elliemae/ds-classnames");
36
36
  var import_ds_spinner = __toESM(require("@elliemae/ds-spinner"));
@@ -47,22 +47,25 @@ const DSLoadingIndicator = ({
47
47
  spinner = null,
48
48
  "aria-label": ariaLabel = "",
49
49
  ...rest
50
- }) => /* @__PURE__ */ import_react.default.createElement(import_ds_overlay.default, {
50
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_overlay.default, {
51
51
  backDropZIndex: 200,
52
52
  hasBackdrop,
53
53
  isOpen: loading,
54
54
  onClickOutside,
55
55
  style: {
56
56
  position: "fixed"
57
- }
58
- }, /* @__PURE__ */ import_react.default.createElement(Container, null, /* @__PURE__ */ import_react.default.createElement(import_ds_spinner.default, {
59
- ariaLabel,
60
- spinner,
61
- innerRef,
62
- message,
63
- size,
64
- ...rest
65
- })));
57
+ },
58
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, {
59
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_spinner.default, {
60
+ ariaLabel,
61
+ spinner,
62
+ innerRef,
63
+ message,
64
+ size,
65
+ ...rest
66
+ })
67
+ })
68
+ });
66
69
  const loadingIndicatorProps = {
67
70
  innerRef: import_ds_utilities.PropTypes.func.description("Get spinner reference"),
68
71
  size: import_ds_utilities.PropTypes.oneOf(["s", "m", "l"]).description("Size of the spinner").defaultValue("l"),
@@ -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 = null,\n 'aria-label': ariaLabel = '',\n ...rest\n}) => (\n <DSOverlay\n backDropZIndex={200} // https://jira.elliemae.io/browse/PUI-1712\n hasBackdrop={hasBackdrop}\n isOpen={loading}\n onClickOutside={onClickOutside}\n style={{\n position: 'fixed',\n }}\n >\n <Container>\n <DSSpinner ariaLabel={ariaLabel} spinner={spinner} innerRef={innerRef} message={message} size={size} {...rest} />\n </Container>\n </DSOverlay>\n);\n\nconst loadingIndicatorProps = {\n innerRef: PropTypes.func.description('Get spinner reference'),\n size: PropTypes.oneOf(['s', 'm', 'l']).description('Size of the spinner').defaultValue('l'),\n loading: PropTypes.bool.description('Whether to show the spinner or not').defaultValue(false),\n message: PropTypes.string.description('Message below the spinner'),\n hasBackdrop: PropTypes.bool.description('Show a backdrop besides the spinner').defaultValue(true),\n onClickOutside: PropTypes.func.description('Handler when a user clicks the outside the spinner'),\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": ";;;;;;;;;;;;;;;;;;;;;;;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,+BAA+B;AACxE;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,iCAA6B,8BAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
6
+ "names": ["DSOverlay", "DSSpinner"]
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React2 from "react";
2
+ import { jsx } from "react/jsx-runtime";
3
3
  import { describe, PropTypes } from "@elliemae/ds-utilities";
4
4
  import { aggregatedClasses } from "@elliemae/ds-classnames";
5
5
  import DSSpinner from "@elliemae/ds-spinner";
@@ -16,22 +16,25 @@ const DSLoadingIndicator = ({
16
16
  spinner = null,
17
17
  "aria-label": ariaLabel = "",
18
18
  ...rest
19
- }) => /* @__PURE__ */ React2.createElement(DSOverlay, {
19
+ }) => /* @__PURE__ */ jsx(DSOverlay, {
20
20
  backDropZIndex: 200,
21
21
  hasBackdrop,
22
22
  isOpen: loading,
23
23
  onClickOutside,
24
24
  style: {
25
25
  position: "fixed"
26
- }
27
- }, /* @__PURE__ */ React2.createElement(Container, null, /* @__PURE__ */ React2.createElement(DSSpinner, {
28
- ariaLabel,
29
- spinner,
30
- innerRef,
31
- message,
32
- size,
33
- ...rest
34
- })));
26
+ },
27
+ children: /* @__PURE__ */ jsx(Container, {
28
+ children: /* @__PURE__ */ jsx(DSSpinner, {
29
+ ariaLabel,
30
+ spinner,
31
+ innerRef,
32
+ message,
33
+ size,
34
+ ...rest
35
+ })
36
+ })
37
+ });
35
38
  const loadingIndicatorProps = {
36
39
  innerRef: PropTypes.func.description("Get spinner reference"),
37
40
  size: PropTypes.oneOf(["s", "m", "l"]).description("Size of the spinner").defaultValue("l"),
@@ -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 = null,\n 'aria-label': ariaLabel = '',\n ...rest\n}) => (\n <DSOverlay\n backDropZIndex={200} // https://jira.elliemae.io/browse/PUI-1712\n hasBackdrop={hasBackdrop}\n isOpen={loading}\n onClickOutside={onClickOutside}\n style={{\n position: 'fixed',\n }}\n >\n <Container>\n <DSSpinner ariaLabel={ariaLabel} spinner={spinner} innerRef={innerRef} message={message} size={size} {...rest} />\n </Container>\n </DSOverlay>\n);\n\nconst loadingIndicatorProps = {\n innerRef: PropTypes.func.description('Get spinner reference'),\n size: PropTypes.oneOf(['s', 'm', 'l']).description('Size of the spinner').defaultValue('l'),\n loading: PropTypes.bool.description('Whether to show the spinner or not').defaultValue(false),\n message: PropTypes.string.description('Message below the spinner'),\n hasBackdrop: PropTypes.bool.description('Show a backdrop besides the spinner').defaultValue(true),\n onClickOutside: PropTypes.func.description('Handler when a user clicks the outside the spinner'),\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": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAClB,SAAS,UAAU,iBAAiB;AACpC,SAAS,yBAAyB;AAClC,OAAO,eAAe;AACtB,OAAO,eAAe;AAEtB,MAAM,YAAY;AAElB,MAAM,YAAY,kBAAkB,KAAK,EAAE,S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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,UAAU;AAAA,EACV,cAAc,YAAY;AAAA,KACvB;AACL,MACE,oBAAC;AAAA,EACC,gBAAgB;AAAA,EAChB;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA,OAAO;AAAA,IACL,UAAU;AAAA,EACZ;AAAA,EAEA,8BAAC;AAAA,IACC,8BAAC;AAAA,MAAU;AAAA,MAAsB;AAAA,MAAkB;AAAA,MAAoB;AAAA,MAAkB;AAAA,MAAa,GAAG;AAAA,KAAM;AAAA,GACjH;AAAA,CACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,UAAU,UAAU,KAAK,YAAY,uBAAuB;AAAA,EAC5D,MAAM,UAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAAE,YAAY,qBAAqB,EAAE,aAAa,GAAG;AAAA,EAC1F,SAAS,UAAU,KAAK,YAAY,oCAAoC,EAAE,aAAa,KAAK;AAAA,EAC5F,SAAS,UAAU,OAAO,YAAY,2BAA2B;AAAA,EACjE,aAAa,UAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,IAAI;AAAA,EAChG,gBAAgB,UAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,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
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-loading-indicator",
3
- "version": "3.5.0-rc.9",
3
+ "version": "3.6.0-next.0",
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.5.0-rc.9",
43
- "@elliemae/ds-overlay": "3.5.0-rc.9",
44
- "@elliemae/ds-spinner": "3.5.0-rc.9",
45
- "@elliemae/ds-utilities": "3.5.0-rc.9"
42
+ "@elliemae/ds-classnames": "3.6.0-next.0",
43
+ "@elliemae/ds-overlay": "3.6.0-next.0",
44
+ "@elliemae/ds-spinner": "3.6.0-next.0",
45
+ "@elliemae/ds-utilities": "3.6.0-next.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": "^17.0.2",