@elliemae/ds-loading-indicator 3.22.0-next.8 → 3.22.0-rc.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/DSLoadingIndicator.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/DSLoadingIndicator.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { describe, PropTypes } from '@elliemae/ds-props-helpers';\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
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD+BjB;AA9BN,8BAAoC;AACpC,2BAAkC;AAClC,wBAAsB;AACtB,wBAAsB;AAEtB,MAAM,YAAY;AAElB,MAAM,gBAAY,wCAAkB,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,EAC1B,GAAG;AACL,MACE;AAAA,EAAC,kBAAAA;AAAA,EAAA;AAAA,IACC,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IACZ;AAAA,IAEA,sDAAC,aACC,sDAAC,kBAAAC,SAAA,EAAU,WAAsB,SAAkB,UAAoB,SAAkB,MAAa,GAAG,MAAM,GACjH;AAAA;AACF;AAGF,MAAM,wBAAwB;AAAA,EAC5B,UAAU,kCAAU,KAAK,YAAY,uBAAuB;AAAA,EAC5D,MAAM,kCAAU,MAAM,CAAC,KAAK,KAAK,GAAG,CAAC,EAAE,YAAY,qBAAqB,EAAE,aAAa,GAAG;AAAA,EAC1F,SAAS,kCAAU,KAAK,YAAY,oCAAoC,EAAE,aAAa,KAAK;AAAA,EAC5F,SAAS,kCAAU,OAAO,YAAY,2BAA2B;AAAA,EACjE,aAAa,kCAAU,KAAK,YAAY,qCAAqC,EAAE,aAAa,IAAI;AAAA,EAChG,gBAAgB,kCAAU,KAAK,YAAY,oDAAoD;AAAA,EAC/F,SAAS,kCAAU,QAAQ,YAAY,+BAA+B;AACxE;AAEA,mBAAmB,YAAY;AAC/B,mBAAmB,cAAc;AACjC,MAAM,iCAA6B,kCAAS,kBAAkB;AAC9D,2BAA2B,YAAY;AAGvC,IAAO,6BAAQ;",
6
6
  "names": ["DSOverlay", "DSSpinner"]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export * from './DSLoadingIndicator.js';\n\nexport { default } from './DSLoadingIndicator.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAAc,oCAAd;AAEA,gCAAwB;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSLoadingIndicator.tsx"],
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-props-helpers';\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
5
  "mappings": "AAAA,YAAY,WAAW;AC+BjB;AA9BN,SAAS,UAAU,iBAAiB;AACpC,SAAS,yBAAyB;AAClC,OAAO,eAAe;AACtB,OAAO,eAAe;AAEtB,MAAM,YAAY;AAElB,MAAM,YAAY,kBAAkB,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,EAC1B,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC,gBAAgB;AAAA,IAChB;AAAA,IACA,QAAQ;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,UAAU;AAAA,IACZ;AAAA,IAEA,8BAAC,aACC,8BAAC,aAAU,WAAsB,SAAkB,UAAoB,SAAkB,MAAa,GAAG,MAAM,GACjH;AAAA;AACF;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
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSLoadingIndicator.js';\n\nexport { default } from './DSLoadingIndicator.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AAEd,SAAS,WAAAA,gBAAe;",
6
6
  "names": ["default"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-loading-indicator",
3
- "version": "3.22.0-next.8",
3
+ "version": "3.22.0-rc.1",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Loading Indicator",
6
6
  "files": [
@@ -39,14 +39,18 @@
39
39
  "indent": 4
40
40
  },
41
41
  "dependencies": {
42
- "@elliemae/ds-classnames": "3.22.0-next.8",
43
- "@elliemae/ds-overlay": "3.22.0-next.8",
44
- "@elliemae/ds-props-helpers": "3.22.0-next.8",
45
- "@elliemae/ds-spinner": "3.22.0-next.8"
42
+ "@elliemae/ds-classnames": "3.22.0-rc.1",
43
+ "@elliemae/ds-overlay": "3.22.0-rc.1",
44
+ "@elliemae/ds-props-helpers": "3.22.0-rc.1",
45
+ "@elliemae/ds-spinner": "3.22.0-rc.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@elliemae/pui-cli": "~9.0.0-next.17",
49
- "@elliemae/ds-monorepo-devops": "3.22.0-next.8"
48
+ "@elliemae/pui-cli": "~9.0.0-next.22",
49
+ "@testing-library/jest-dom": "~5.16.5",
50
+ "@testing-library/react": "~12.1.3",
51
+ "@testing-library/user-event": "~13.5.0",
52
+ "styled-components": "~5.3.9",
53
+ "@elliemae/ds-monorepo-devops": "3.22.0-rc.1"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "react": "^17.0.2",
@@ -57,14 +61,14 @@
57
61
  "typeSafety": false
58
62
  },
59
63
  "scripts": {
60
- "dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
64
+ "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
61
65
  "test": "pui-cli test --passWithNoTests",
62
- "lint": "node ../../scripts/lint.mjs",
63
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
64
- "dts": "node ../../scripts/dts.mjs",
65
- "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
66
+ "lint": "node ../../../scripts/lint.mjs",
67
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
68
+ "dts": "node ../../../scripts/dts.mjs",
69
+ "build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
66
70
  "dev:build": "pnpm --filter {.}... build",
67
71
  "dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
68
- "checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
72
+ "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
69
73
  }
70
74
  }