@devtron-labs/devtron-fe-common-lib 0.0.6-beta-8 → 0.0.6-beta-9

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 (39) hide show
  1. package/dist/Common/Drawer/Drawer.d.ts +16 -0
  2. package/dist/Common/EmptyState/EmptyState.d.ts +24 -0
  3. package/dist/Common/Error.d.ts +15 -0
  4. package/dist/Common/Helper.d.ts +1 -0
  5. package/dist/Common/Modals/Modal.d.ts +9 -0
  6. package/dist/Common/Modals/OpaqueModal.d.ts +12 -0
  7. package/dist/Common/Modals/VisibleModal.d.ts +15 -0
  8. package/dist/Common/Modals/VisibleModal2.d.ts +12 -0
  9. package/dist/Common/Progressing.d.ts +13 -0
  10. package/dist/Common/Reload.d.ts +5 -0
  11. package/dist/Common/ToastBody.d.ts +23 -0
  12. package/dist/Common/index.d.ts +11 -0
  13. package/dist/b5d52f036bdcd3ed.png +0 -0
  14. package/dist/index.js +1 -1
  15. package/package.json +44 -39
  16. package/rollup.config.js +16 -14
  17. package/src/Assets/Icon/ic-close.svg +9 -0
  18. package/src/Assets/Icon/ic-progressing.svg +6 -0
  19. package/src/Assets/Img/ic-loading-failure.png +0 -0
  20. package/src/Assets/Img/ic-not-authorized.svg +62 -0
  21. package/src/Common/Constants.ts +1 -1
  22. package/src/Common/Drawer/Drawer.scss +39 -0
  23. package/src/Common/Drawer/Drawer.tsx +51 -0
  24. package/src/Common/EmptyState/EmptyState.tsx +42 -0
  25. package/src/Common/EmptyState/emptyState.scss +83 -0
  26. package/src/Common/Error.tsx +55 -0
  27. package/src/Common/Helper.tsx +31 -0
  28. package/src/Common/Modals/Modal.tsx +53 -0
  29. package/src/Common/Modals/OpaqueModal.tsx +36 -0
  30. package/src/Common/Modals/VisibleModal.tsx +55 -0
  31. package/src/Common/Modals/VisibleModal2.tsx +35 -0
  32. package/src/Common/Progressing.tsx +60 -0
  33. package/src/Common/Reload.tsx +18 -0
  34. package/src/Common/ServerError.ts +19 -18
  35. package/src/Common/ToastBody.tsx +64 -0
  36. package/src/Common/Types.ts +8 -9
  37. package/src/Common/index.ts +12 -1
  38. package/src/custom.d.ts +13 -0
  39. package/tsconfig.json +2 -1
@@ -1,13 +1,12 @@
1
-
2
1
  export interface ResponseType {
3
- code: number;
4
- status: string;
5
- result?: any;
6
- errors?: any;
2
+ code: number
3
+ status: string
4
+ result?: any
5
+ errors?: any
7
6
  }
8
7
 
9
8
  export interface APIOptions {
10
- timeout?: number;
11
- signal?: AbortSignal;
12
- preventAutoLogout?: boolean;
13
- }
9
+ timeout?: number
10
+ signal?: AbortSignal
11
+ preventAutoLogout?: boolean
12
+ }
@@ -1,4 +1,15 @@
1
1
  export * from './Constants'
2
2
  export * from './ServerError'
3
3
  export * from './Types'
4
- export * from './Api'
4
+ export * from './Api'
5
+ export * from './EmptyState/EmptyState'
6
+ export * from './ToastBody'
7
+ export * from './Reload'
8
+ export * from './Error'
9
+ export * from './Helper'
10
+ export * from './Progressing'
11
+ export * from './Drawer/Drawer'
12
+ export * from './Modals/Modal'
13
+ export * from './Modals/OpaqueModal'
14
+ export * from './Modals/VisibleModal'
15
+ export * from './Modals/VisibleModal2'
@@ -0,0 +1,13 @@
1
+ declare module '*.svg' {
2
+ import * as React from 'react';
3
+
4
+ export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
5
+
6
+ const src: string;
7
+ export default src;
8
+ }
9
+
10
+ declare module '*.png' {
11
+ const src: string;
12
+ export default src;
13
+ }
package/tsconfig.json CHANGED
@@ -34,6 +34,7 @@
34
34
  "build"
35
35
  ],
36
36
  "include": [
37
- "src"
37
+ "src",
38
+ "src/custom.d.ts"
38
39
  ]
39
40
  }