@devtron-labs/devtron-fe-common-lib 0.0.58 → 0.0.59-beta-2

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 (88) hide show
  1. package/dist/Common/Api.d.ts +9 -0
  2. package/dist/Common/Constants.d.ts +1 -0
  3. package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
  4. package/dist/Common/CustomInput/Types.d.ts +2 -1
  5. package/dist/Common/SearchBar/types.d.ts +2 -2
  6. package/dist/Common/Types.d.ts +3 -2
  7. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +4 -0
  8. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +4 -0
  9. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +7 -0
  10. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +4 -0
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +4 -0
  12. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +4 -0
  13. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +4 -0
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +52 -0
  15. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +7 -0
  16. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +6 -0
  17. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +286 -0
  18. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +12 -0
  19. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  20. package/dist/Pages/index.d.ts +1 -0
  21. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +4 -0
  22. package/dist/Shared/Components/APIResponseHandler/constants.d.ts +4 -0
  23. package/dist/Shared/Components/APIResponseHandler/index.d.ts +2 -0
  24. package/dist/Shared/Components/APIResponseHandler/types.d.ts +37 -0
  25. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +4 -0
  26. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +4 -0
  27. package/dist/Shared/Components/BulkSelection/UseBulkSelection.d.ts +3 -0
  28. package/dist/Shared/Components/BulkSelection/constants.d.ts +8 -0
  29. package/dist/Shared/Components/BulkSelection/index.d.ts +4 -0
  30. package/dist/Shared/Components/BulkSelection/types.d.ts +50 -0
  31. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  32. package/dist/Shared/Components/ReactSelect/utils.d.ts +12 -0
  33. package/dist/Shared/Components/index.d.ts +3 -0
  34. package/dist/Shared/Helpers.d.ts +16 -0
  35. package/dist/Shared/index.d.ts +3 -0
  36. package/dist/Shared/validations.d.ts +7 -0
  37. package/dist/index.d.ts +3 -1
  38. package/dist/index.js +1342 -160
  39. package/package.json +1 -1
  40. package/src/Assets/Icon/ic-check-all.svg +5 -0
  41. package/src/Assets/Icon/ic-check-square.svg +4 -0
  42. package/src/Assets/Icon/ic-cpu.svg +4 -0
  43. package/src/Assets/Icon/ic-memory.svg +3 -0
  44. package/src/Assets/Icon/ic-timer.svg +3 -0
  45. package/src/Common/Api.ts +21 -0
  46. package/src/Common/BreadCrumb/Types.ts +0 -1
  47. package/src/Common/Checkbox.tsx +1 -0
  48. package/src/Common/Constants.ts +2 -1
  49. package/src/Common/CustomInput/CustomInput.tsx +6 -2
  50. package/src/Common/CustomInput/Types.ts +4 -3
  51. package/src/Common/DraggableWrapper/DraggableWrapper.tsx +3 -1
  52. package/src/Common/RJSF/utils.ts +2 -0
  53. package/src/Common/SearchBar/SearchBar.component.tsx +26 -15
  54. package/src/Common/SearchBar/searchBar.scss +1 -1
  55. package/src/Common/SearchBar/types.ts +1 -3
  56. package/src/Common/Types.ts +2 -1
  57. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.tsx +128 -0
  58. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.tsx +44 -0
  59. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.tsx +106 -0
  60. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.tsx +55 -0
  61. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.tsx +32 -0
  62. package/src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx +45 -0
  63. package/src/Pages/GlobalConfigurations/BuildInfra/Footer.tsx +55 -0
  64. package/src/Pages/GlobalConfigurations/BuildInfra/Readme.md +4 -0
  65. package/src/Pages/GlobalConfigurations/BuildInfra/constants.tsx +141 -0
  66. package/src/Pages/GlobalConfigurations/BuildInfra/index.ts +7 -0
  67. package/src/Pages/GlobalConfigurations/BuildInfra/services.tsx +167 -0
  68. package/src/Pages/GlobalConfigurations/BuildInfra/types.tsx +339 -0
  69. package/src/Pages/GlobalConfigurations/BuildInfra/utils.tsx +508 -0
  70. package/src/Pages/GlobalConfigurations/index.ts +1 -0
  71. package/src/Pages/index.ts +1 -0
  72. package/src/Shared/Components/APIResponseHandler/APIResponseHandler.tsx +41 -0
  73. package/src/Shared/Components/APIResponseHandler/constants.tsx +5 -0
  74. package/src/Shared/Components/APIResponseHandler/index.ts +2 -0
  75. package/src/Shared/Components/APIResponseHandler/types.tsx +39 -0
  76. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +81 -0
  77. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +31 -0
  78. package/src/Shared/Components/BulkSelection/UseBulkSelection.tsx +99 -0
  79. package/src/Shared/Components/BulkSelection/constants.tsx +12 -0
  80. package/src/Shared/Components/BulkSelection/index.ts +4 -0
  81. package/src/Shared/Components/BulkSelection/types.tsx +58 -0
  82. package/src/Shared/Components/ReactSelect/index.ts +1 -0
  83. package/src/Shared/Components/ReactSelect/utils.tsx +97 -0
  84. package/src/Shared/Components/index.ts +3 -0
  85. package/src/Shared/Helpers.tsx +29 -0
  86. package/src/Shared/index.ts +3 -0
  87. package/src/Shared/validations.tsx +72 -0
  88. package/src/index.ts +3 -1
@@ -0,0 +1,16 @@
1
+ interface HighlightSearchTextProps {
2
+ /**
3
+ * The text to be highlighted
4
+ */
5
+ searchText: string;
6
+ /**
7
+ * The whole text string
8
+ */
9
+ text: string;
10
+ /**
11
+ * The classes to be applied to the highlighted text
12
+ */
13
+ highlightClasses?: string;
14
+ }
15
+ export declare const highlightSearchText: ({ searchText, text, highlightClasses }: HighlightSearchTextProps) => string;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './Components';
2
+ export * from './validations';
3
+ export * from './Helpers';
@@ -0,0 +1,7 @@
1
+ export interface ValidationResponseType {
2
+ isValid: boolean;
3
+ message?: string;
4
+ }
5
+ export declare const validateName: (name: string) => ValidationResponseType;
6
+ export declare const validateDescription: (description: string) => ValidationResponseType;
7
+ export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export * from "./Common";
1
+ export * from './Common';
2
+ export * from './Pages';
3
+ export * from './Shared';