@elliemae/ds-loading-indicator 3.0.0-next.68 → 3.0.0-next.70
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.
|
@@ -99,6 +99,7 @@ const loadingIndicatorProps = {
|
|
|
99
99
|
spinner: import_react_desc.PropTypes.element.description("Render a custom spinner (JSX)")
|
|
100
100
|
};
|
|
101
101
|
DSLoadingIndicator.propTypes = loadingIndicatorProps;
|
|
102
|
+
DSLoadingIndicator.displayName = "DSLoadingIndicator";
|
|
102
103
|
const LoadingIndicatorWithSchema = (0, import_react_desc.describe)(DSLoadingIndicator);
|
|
103
104
|
LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
|
|
104
105
|
var DSLoadingIndicator_default = DSLoadingIndicator;
|
|
@@ -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;\
|
|
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;
|
|
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;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -74,6 +74,7 @@ const loadingIndicatorProps = {
|
|
|
74
74
|
spinner: PropTypes.element.description("Render a custom spinner (JSX)")
|
|
75
75
|
};
|
|
76
76
|
DSLoadingIndicator.propTypes = loadingIndicatorProps;
|
|
77
|
+
DSLoadingIndicator.displayName = "DSLoadingIndicator";
|
|
77
78
|
const LoadingIndicatorWithSchema = describe(DSLoadingIndicator);
|
|
78
79
|
LoadingIndicatorWithSchema.propTypes = loadingIndicatorProps;
|
|
79
80
|
var DSLoadingIndicator_default = DSLoadingIndicator;
|
|
@@ -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;\
|
|
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;
|
|
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"],
|
|
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
|
}
|