dce-reactkit 2.0.2 → 2.0.5

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.
Files changed (45) hide show
  1. package/lib/components/AppWrapper.d.ts +19 -0
  2. package/lib/components/AppWrapper.js +127 -0
  3. package/lib/components/AppWrapper.js.map +1 -0
  4. package/lib/components/ErrorBox.d.ts +12 -0
  5. package/lib/components/ErrorBox.js +65 -0
  6. package/lib/components/ErrorBox.js.map +1 -0
  7. package/lib/helpers/handleError.d.ts +14 -0
  8. package/lib/helpers/handleError.js +54 -0
  9. package/lib/helpers/handleError.js.map +1 -0
  10. package/lib/helpers/handleSuccess.d.ts +8 -0
  11. package/lib/helpers/handleSuccess.js +20 -0
  12. package/lib/helpers/handleSuccess.js.map +1 -0
  13. package/lib/helpers/parseRequest.d.ts +21 -0
  14. package/lib/helpers/parseRequest.js +240 -0
  15. package/lib/helpers/parseRequest.js.map +1 -0
  16. package/lib/helpers/showFatalError.d.ts +2 -0
  17. package/lib/helpers/showFatalError.js +5 -0
  18. package/lib/helpers/showFatalError.js.map +1 -0
  19. package/lib/helpers/visitServerEndpoint.d.ts +7 -1
  20. package/lib/helpers/visitServerEndpoint.js +57 -6
  21. package/lib/helpers/visitServerEndpoint.js.map +1 -1
  22. package/lib/types/ParamType.d.ts +17 -0
  23. package/lib/types/ParamType.js +21 -0
  24. package/lib/types/ParamType.js.map +1 -0
  25. package/lib/types/ReactKitErrorCode.d.ts +5 -1
  26. package/lib/types/ReactKitErrorCode.js +4 -0
  27. package/lib/types/ReactKitErrorCode.js.map +1 -1
  28. package/package.json +2 -1
  29. package/tsconfig.json +1 -1
  30. package/src/components/LoadingSpinner.tsx +0 -105
  31. package/src/components/Modal.tsx +0 -447
  32. package/src/errors/ErrorWithCode.tsx +0 -15
  33. package/src/helpers/abbreviate.tsx +0 -23
  34. package/src/helpers/avg.tsx +0 -22
  35. package/src/helpers/ceilToNumDecimals.tsx +0 -13
  36. package/src/helpers/floorToNumDecimals.tsx +0 -13
  37. package/src/helpers/forceNumIntoBounds.tsx +0 -19
  38. package/src/helpers/padDecimalZeros.tsx +0 -32
  39. package/src/helpers/padZerosLeft.tsx +0 -21
  40. package/src/helpers/roundToNumDecimals.tsx +0 -13
  41. package/src/helpers/sum.tsx +0 -16
  42. package/src/helpers/visitServerEndpoint.tsx +0 -59
  43. package/src/helpers/waitMs.tsx +0 -12
  44. package/src/types/ReactKitErrorCode.tsx +0 -12
  45. package/src/types/Variant.tsx +0 -16
@@ -1,12 +0,0 @@
1
- /**
2
- * Wait for a certain number of ms
3
- * @author Gabe Abrams
4
- * @param ms number of ms to wait
5
- */
6
- const waitMs = async (ms = 0) => {
7
- return new Promise((resolve) => {
8
- setTimeout(resolve, ms);
9
- });
10
- };
11
-
12
- export default waitMs;
@@ -1,12 +0,0 @@
1
- // Highest error code = DRK2
2
-
3
- /**
4
- * List of error codes built into the react kit
5
- * @author Gabe Abrams
6
- */
7
- enum ReactKitErrorCode {
8
- NoResponse = 'DRK1',
9
- NoCode = 'DRK2',
10
- }
11
-
12
- export default ReactKitErrorCode;
@@ -1,16 +0,0 @@
1
- /**
2
- * Bootstrap variants
3
- * @author Gabe Abrams
4
- */
5
- enum Variant {
6
- Primary = 'primary',
7
- Secondary = 'secondary',
8
- Success = 'success',
9
- Warning = 'warning',
10
- Info = 'info',
11
- Danger = 'danger',
12
- Light = 'light',
13
- Dark = 'dark',
14
- }
15
-
16
- export default Variant;