@devtron-labs/devtron-fe-common-lib 1.13.0-redfish-preview-beta-1 → 1.14.0

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 (164) hide show
  1. package/dist/{@common-rjsf-CWkKRfHL.js → @code-editor-YS-brIXD.js} +15167 -14664
  2. package/dist/@common-rjsf--YchCFEp.js +617 -0
  3. package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-eB9Rj-_8.js} +1 -1
  4. package/dist/{@react-dates-CIHHgq4p.js → @react-dates-CJpoumtu.js} +14 -14
  5. package/dist/{@react-select-BVKpsqGO.js → @react-select-CUbAbK6L.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-Ckb5S1RC.js} +1 -1
  7. package/dist/{@vendor-CekuMgQx.js → @vendor-4cEd9dja.js} +45804 -45814
  8. package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
  9. package/dist/Common/Checkbox/index.d.ts +1 -0
  10. package/dist/Common/Common.service.d.ts +2 -2
  11. package/dist/Common/Constants.d.ts +2 -2
  12. package/dist/Common/Drawer/index.d.ts +1 -0
  13. package/dist/Common/EmptyState/index.d.ts +2 -0
  14. package/dist/Common/Helper.d.ts +5 -1
  15. package/dist/Common/RJSF/Form.d.ts +1 -1
  16. package/dist/Common/Toggle/Toggle.d.ts +4 -1
  17. package/dist/Common/Types.d.ts +2 -0
  18. package/dist/Common/index.d.ts +2 -3
  19. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  20. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
  21. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  22. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  23. package/dist/Pages/ResourceBrowser/types.d.ts +38 -0
  24. package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -2
  25. package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +2 -0
  26. package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
  27. package/dist/Shared/Components/ActionMenu/types.d.ts +88 -11
  28. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +275 -0
  29. package/dist/Shared/Components/ActionMenu/utils.d.ts +7 -0
  30. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
  31. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
  32. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
  33. package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
  34. package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
  35. package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
  36. package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
  37. package/dist/Shared/Components/AppStatusModal/types.d.ts +84 -0
  38. package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
  39. package/dist/Shared/Components/Button/types.d.ts +3 -1
  40. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
  41. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
  42. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  43. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  44. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  45. package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
  46. package/dist/Shared/Components/CICDHistory/types.d.ts +11 -77
  47. package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
  48. package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
  49. package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
  50. package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
  51. package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
  52. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  53. package/dist/Shared/Components/Error/types.d.ts +4 -0
  54. package/dist/Shared/Components/Error/utils.d.ts +1 -0
  55. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  56. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -3
  57. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +10 -0
  58. package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +2 -0
  59. package/dist/Shared/Components/Header/HelpButton.d.ts +2 -0
  60. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  61. package/dist/Shared/Components/Header/constants.d.ts +5 -4
  62. package/dist/Shared/Components/Header/types.d.ts +15 -10
  63. package/dist/Shared/Components/Header/utils.d.ts +5 -1
  64. package/dist/Shared/Components/Icon/Icon.d.ts +35 -1
  65. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  66. package/dist/Shared/Components/Icon/types.d.ts +30 -8
  67. package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
  68. package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
  69. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  70. package/dist/Shared/Components/License/index.d.ts +1 -1
  71. package/dist/Shared/Components/License/utils.d.ts +2 -1
  72. package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
  73. package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
  74. package/dist/Shared/Components/Popover/Popover.component.d.ts +8 -0
  75. package/dist/Shared/Components/Popover/index.d.ts +3 -0
  76. package/dist/Shared/Components/Popover/types.d.ts +105 -0
  77. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +2 -0
  78. package/dist/Shared/Components/Popover/utils.d.ts +92 -0
  79. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  80. package/dist/Shared/Components/SelectPicker/common.d.ts +2 -0
  81. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
  82. package/dist/Shared/Components/SelectPicker/type.d.ts +4 -0
  83. package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
  84. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
  85. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
  86. package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
  87. package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -2
  88. package/dist/Shared/Components/index.d.ts +2 -2
  89. package/dist/Shared/Helpers.d.ts +2 -2
  90. package/dist/Shared/Providers/index.d.ts +1 -1
  91. package/dist/Shared/Providers/types.d.ts +11 -1
  92. package/dist/Shared/constants.d.ts +18 -24
  93. package/dist/Shared/types.d.ts +110 -2
  94. package/dist/assets/@code-editor.css +1 -0
  95. package/dist/assets/@common-rjsf.css +1 -1
  96. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  97. package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
  98. package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
  99. package/dist/assets/{ic-timeout-red.5eda1010.svg → ic-bulk-check.0f698efa.svg} +4 -4
  100. package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
  101. package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
  102. package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
  103. package/dist/assets/ic-celebration.77350694.svg +238 -0
  104. package/dist/assets/ic-chat-circle-online.51348da5.svg +4 -0
  105. package/dist/assets/{ic-medal.a2e911f5.svg → ic-checkbox-hover.0151d832.svg} +4 -3
  106. package/dist/assets/{ic-k8s-job.f4414c10.svg → ic-checkbox-hover.93e8d66a.svg} +4 -3
  107. package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
  108. package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
  109. package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
  110. package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
  111. package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
  112. package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
  113. package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
  114. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  115. package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
  116. package/dist/assets/ic-disconnect.2ad261fc.svg +3 -0
  117. package/dist/assets/ic-discord-fill.103b579a.svg +3 -0
  118. package/dist/assets/ic-edit.3249ed32.svg +3 -0
  119. package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
  120. package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
  121. package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
  122. package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
  123. package/dist/assets/ic-file-edit.96a172c7.svg +3 -0
  124. package/dist/assets/ic-file.c3c45e13.svg +3 -0
  125. package/dist/assets/ic-files.b0ebea46.svg +3 -0
  126. package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
  127. package/dist/assets/ic-gift.9b048fc7.svg +3 -0
  128. package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
  129. package/dist/assets/ic-google-gke.07314724.svg +9 -0
  130. package/dist/assets/ic-install.28c3beec.svg +3 -0
  131. package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
  132. package/dist/assets/ic-kind.bd8ee992.svg +9 -0
  133. package/dist/assets/ic-laptop.485e21b4.svg +3 -0
  134. package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
  135. package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
  136. package/dist/assets/ic-megaphone-right.9d6bcd36.svg +3 -0
  137. package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
  138. package/dist/assets/ic-mobile.7c649251.svg +4 -0
  139. package/dist/assets/ic-path.d4fef3b0.svg +3 -0
  140. package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
  141. package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
  142. package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
  143. package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
  144. package/dist/index.d.ts +3 -0
  145. package/dist/index.js +881 -850
  146. package/package.json +1 -1
  147. package/dist/Common/Checkbox.d.ts +0 -5
  148. package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +0 -3
  149. package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
  150. package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
  151. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
  152. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
  153. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
  154. package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
  155. package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
  156. package/dist/assets/ic-charts.f41e185f.svg +0 -19
  157. package/dist/assets/ic-chat-circle-dots.e15514f8.svg +0 -23
  158. package/dist/assets/ic-disconnected.551d6161.svg +0 -29
  159. package/dist/assets/ic-discord-fill.1a1b291d.svg +0 -19
  160. package/dist/assets/ic-feedback.d32fa6b0.svg +0 -19
  161. package/dist/assets/ic-files.fc290dee.svg +0 -19
  162. package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
  163. package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
  164. package/dist/assets/ic-onboarding.c98f9ef9.svg +0 -19
@@ -3,12 +3,15 @@ export declare const iconMap: {
3
3
  'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
4
4
  'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
5
  'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
+ 'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
7
  'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
8
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
9
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
10
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
+ 'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
12
  'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
13
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
+ 'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
15
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
16
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
17
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -19,9 +22,12 @@ export declare const iconMap: {
19
22
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
23
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
24
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
+ 'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
26
  'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
+ 'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
28
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
29
  'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
+ 'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
31
  'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
32
  'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
33
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -30,6 +36,8 @@ export declare const iconMap: {
30
36
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
37
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
38
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
+ 'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
+ 'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
41
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
42
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
43
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -37,24 +45,38 @@ export declare const iconMap: {
37
45
  'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
46
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
47
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
+ 'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
49
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
50
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
51
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
52
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
53
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
+ 'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
+ 'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
56
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
57
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
+ 'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
+ 'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
+ 'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
61
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
62
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
+ 'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
+ 'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
65
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
+ 'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
67
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
+ 'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
+ 'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
70
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
71
  'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
+ 'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
+ 'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
74
  'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
75
  'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
76
  'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
77
  'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
78
  'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
+ 'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
80
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
81
  'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
82
  'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -68,20 +90,27 @@ export declare const iconMap: {
68
90
  'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
91
  'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
92
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
+ 'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
94
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
+ 'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
96
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
97
  'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
98
+ 'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
+ 'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
100
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
101
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
76
102
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
77
103
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
78
- 'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
104
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
105
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
106
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
107
+ 'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
108
+ 'ic-megaphone-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
109
  'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
110
  'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
+ 'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
112
  'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
+ 'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
114
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
115
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
116
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,6 +120,7 @@ export declare const iconMap: {
91
120
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
121
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
122
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
123
+ 'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
124
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
125
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
126
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -101,6 +131,7 @@ export declare const iconMap: {
101
131
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
132
  'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
103
133
  'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
134
+ 'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
104
135
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
105
136
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
106
137
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -115,10 +146,13 @@ export declare const iconMap: {
115
146
  'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
147
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
117
148
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
+ 'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
118
150
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
+ 'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
119
152
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
120
153
  'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
121
154
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
155
+ 'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
122
156
  };
123
157
  export type IconName = keyof typeof iconMap;
124
158
  export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
@@ -1,2 +1,2 @@
1
1
  import { IconBaseProps } from './types';
2
- export declare const IconBase: ({ name, iconMap, size, tooltipProps, color }: IconBaseProps) => JSX.Element;
2
+ export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, }: IconBaseProps) => JSX.Element;
@@ -3,22 +3,44 @@ import { TooltipProps } from '@Common/Tooltip/types';
3
3
  import { IconBaseColorType, IconBaseSizeType } from '../../index';
4
4
  type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
5
5
  export interface IconBaseProps {
6
- /** The name of the icon to render. */
6
+ /**
7
+ * The name of the icon to render.
8
+ */
7
9
  name: keyof IconMap;
8
- /** The map containing all available icons. */
10
+ /**
11
+ * A map containing all available icons.
12
+ */
9
13
  iconMap: IconMap;
10
14
  /**
11
- * The size of the icon in pixels.
15
+ * The size of the icon in pixels. If not provided, the default size is `16px`.
16
+ *
12
17
  * @default 16
13
18
  */
14
- size?: IconBaseSizeType;
15
- /** Props to configure the tooltip when hovering over the icon. */
19
+ size?: IconBaseSizeType | null;
20
+ /**
21
+ * Configuration for the tooltip displayed when hovering over the icon.
22
+ */
16
23
  tooltipProps?: TooltipProps;
17
24
  /**
18
- * The color of the icon (color tokens). \
19
- * If `null`, the default color present in icon is used.
20
- * @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
25
+ * The color of the icon, specified using predefined color tokens.
26
+ * If set to `null`, the icon's default color will be used.
27
+ *
28
+ * @example 'B500', 'N200', 'G50', 'R700'
21
29
  */
22
30
  color: IconBaseColorType;
31
+ /**
32
+ * A unique identifier for testing purposes, typically used in test automation.
33
+ */
34
+ dataTestId?: string;
35
+ /**
36
+ * Rotates the icon by the specified number of degrees.
37
+ *
38
+ * @example 90, 180, 270
39
+ */
40
+ rotateBy?: number;
41
+ /**
42
+ * If true, the icon will expand to fill the available space of its container.
43
+ */
44
+ fillSpace?: boolean;
23
45
  }
24
46
  export {};
@@ -1,7 +1,7 @@
1
+ import { InfoBlockVariant } from '../../constants';
1
2
  import { ButtonProps } from '../Button';
2
3
  import { InfoBlockProps } from './types';
3
- export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
4
- export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
4
+ export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockVariant, InfoBlockProps['customIcon']>;
5
5
  export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
6
6
  export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
7
7
  export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
- import { ComponentSizeType } from '../../constants';
2
+ import { ComponentSizeType, InfoBlockVariantType } from '../../constants';
3
3
  import { BorderConfigType, ComponentLayoutType } from '../../types';
4
4
  import { ButtonComponentType, ButtonProps } from '../Button';
5
5
  export type InfoBlockProps = {
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
10
10
  /**
11
11
  * @default 'information'
12
12
  */
13
- variant?: 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
13
+ variant?: InfoBlockVariantType;
14
14
  /**
15
15
  * @default ComponentSizeType.large
16
16
  */
@@ -1,3 +1,3 @@
1
1
  import { InfoIconTippyProps } from '../../../Common/Types';
2
- declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
2
+ declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
3
3
  export default InfoIconTippy;
@@ -2,4 +2,4 @@ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
2
2
  export { default as DevtronLicenseCard } from './DevtronLicenseCard';
3
3
  export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
4
4
  export * from './types';
5
- export { parseDevtronLicenseData } from './utils';
5
+ export { parseDevtronLicenseData, parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
@@ -1,8 +1,9 @@
1
1
  import { DevtronLicenseDTO } from '../../types';
2
- import { DevtronLicenseInfo, LicenseStatus } from './types';
2
+ import { DevtronLicenseCardProps, DevtronLicenseInfo, LicenseStatus } from './types';
3
3
  export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
4
4
  bgColor: string;
5
5
  textColor: string;
6
6
  };
7
+ export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
7
8
  export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
8
9
  export declare const getGateKeeperUrl: (fingerprint: string) => string;
@@ -0,0 +1,3 @@
1
+ import { TestimonialCardConfig } from './types';
2
+ declare const TestimonialContent: ({ quote, name, designation, iconName }: TestimonialCardConfig) => JSX.Element;
3
+ export default TestimonialContent;
@@ -1 +1,3 @@
1
+ export { TESTIMONIAL_CARD_DATA } from './constants';
1
2
  export { default as LoginBanner } from './LoginBanner';
3
+ export { default as TestimonialContent } from './Testimonials.components';
@@ -0,0 +1,8 @@
1
+ import { PopoverProps } from './types';
2
+ /**
3
+ * Popover Component \
4
+ * This component serves as a base for creating popovers. It is not intended to be used directly.
5
+ * @note Use this component in conjunction with the `usePopover` hook to create a custom popover component. \
6
+ * For example, see the `ActionMenu` component for reference.
7
+ */
8
+ export declare const Popover: ({ open, popoverProps, overlayProps, triggerProps, buttonProps, triggerElement, children, }: PopoverProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './Popover.component';
2
+ export * from './types';
3
+ export * from './usePopover.hook';
@@ -0,0 +1,105 @@
1
+ import { DetailedHTMLProps, KeyboardEvent, MutableRefObject, ReactElement } from 'react';
2
+ import { HTMLMotionProps } from 'framer-motion';
3
+ import { ButtonProps } from '../Button';
4
+ export interface UsePopoverProps {
5
+ /**
6
+ * A unique identifier for the popover.
7
+ */
8
+ id: string;
9
+ /**
10
+ * The width of the popover.
11
+ * Can be a number representing the width in pixels or the string `'auto'` for automatic sizing (up to 250px).
12
+ * @default 'auto'
13
+ */
14
+ width?: number | 'auto';
15
+ /**
16
+ * The position of the popover relative to its trigger element.
17
+ * Possible values are:
18
+ * - `'bottom'`: Positions the popover below the trigger.
19
+ * - `'top'`: Positions the popover above the trigger.
20
+ * - `'left'`: Positions the popover to the left of the trigger.
21
+ * - `'right'`: Positions the popover to the right of the trigger.
22
+ * @default 'bottom'
23
+ */
24
+ position?: 'bottom' | 'top' | 'left' | 'right';
25
+ /**
26
+ * The alignment of the popover relative to its trigger element.
27
+ * Possible values are:
28
+ * - `'start'`: Aligns the popover to the start of the trigger.
29
+ * - `'middle'`: Aligns the popover to the center of the trigger.
30
+ * - `'end'`: Aligns the popover to the end of the trigger.
31
+ * @default 'start'
32
+ */
33
+ alignment?: 'start' | 'middle' | 'end';
34
+ /**
35
+ * Callback function triggered when the popover is opened or closed.
36
+ * @param open - A boolean indicating whether the popover is open.
37
+ */
38
+ onOpen?: (open: boolean) => void;
39
+ /**
40
+ * Callback function triggered when a key is pressed while the trigger element is focused.
41
+ * @param e - The keyboard event.
42
+ * @param openState - A boolean indicating whether the popover is currently open.
43
+ * @param closePopover - A function to close the popover.
44
+ */
45
+ onTriggerKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
46
+ /**
47
+ * Callback function triggered when a key is pressed while the popover is focused.
48
+ * @param e - The keyboard event.
49
+ * @param openState - A boolean indicating whether the popover is currently open.
50
+ * @param closePopover - A function to close the popover.
51
+ */
52
+ onPopoverKeyDown?: (e: KeyboardEvent, openState: boolean, closePopover: () => void) => void;
53
+ }
54
+ /**
55
+ * Represents the return type of the `usePopover` hook, providing properties and methods
56
+ * to manage and interact with a popover component.
57
+ */
58
+ export interface UsePopoverReturnType {
59
+ /**
60
+ * Indicates whether the popover is currently open.
61
+ */
62
+ open: boolean;
63
+ /**
64
+ * Props to be spread onto the trigger element that opens the popover.
65
+ * These props include standard HTML attributes for a `div` element.
66
+ */
67
+ triggerProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
68
+ /**
69
+ * Props to be spread onto the overlay element of the popover.
70
+ * These props include standard HTML attributes for a `div` element.
71
+ */
72
+ overlayProps: DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
73
+ /**
74
+ * Props to be spread onto the popover element itself.
75
+ * Includes motion-related props for animations and a `ref` to the popover's `div` element.
76
+ */
77
+ popoverProps: HTMLMotionProps<'div'> & {
78
+ ref: MutableRefObject<HTMLDivElement>;
79
+ };
80
+ /**
81
+ * A mutable reference to the scrollable element inside the popover. \
82
+ * This reference should be assigned to the element that is scrollable.
83
+ */
84
+ scrollableRef: MutableRefObject<HTMLElement>;
85
+ /**
86
+ * A function to close the popover.
87
+ */
88
+ closePopover: () => void;
89
+ }
90
+ export type PopoverProps = Pick<UsePopoverReturnType, 'open' | 'overlayProps' | 'popoverProps' | 'triggerProps'> & {
91
+ /**
92
+ * Popover contents.
93
+ * This can be any React element or JSX to render inside the popover.
94
+ */
95
+ children: ReactElement;
96
+ /**
97
+ * Properties for the button to which the Popover is attached.
98
+ */
99
+ buttonProps: ButtonProps | null;
100
+ /**
101
+ * The React element to which the Popover is attached.
102
+ * @note only use when `triggerElement` is not `Button` component otherwise use `buttonProps`.
103
+ */
104
+ triggerElement: ReactElement | null;
105
+ };
@@ -0,0 +1,2 @@
1
+ import { UsePopoverProps, UsePopoverReturnType } from './types';
2
+ export declare const usePopover: ({ id, position, alignment, width, onOpen, onPopoverKeyDown, onTriggerKeyDown, }: UsePopoverProps) => UsePopoverReturnType;
@@ -0,0 +1,92 @@
1
+ import { HTMLMotionProps } from 'framer-motion';
2
+ import { UsePopoverProps } from './types';
3
+ export declare const getPopoverAlignmentStyle: ({ position, alignment }: Pick<UsePopoverProps, "position" | "alignment">) => {
4
+ right: number;
5
+ left?: undefined;
6
+ bottom?: undefined;
7
+ top?: undefined;
8
+ } | {
9
+ left: string;
10
+ right?: undefined;
11
+ bottom?: undefined;
12
+ top?: undefined;
13
+ } | {
14
+ left: number;
15
+ right?: undefined;
16
+ bottom?: undefined;
17
+ top?: undefined;
18
+ } | {
19
+ bottom: number;
20
+ right?: undefined;
21
+ left?: undefined;
22
+ top?: undefined;
23
+ } | {
24
+ top: string;
25
+ right?: undefined;
26
+ left?: undefined;
27
+ bottom?: undefined;
28
+ } | {
29
+ top: number;
30
+ right?: undefined;
31
+ left?: undefined;
32
+ bottom?: undefined;
33
+ };
34
+ export declare const getPopoverPositionStyle: ({ position }: Pick<UsePopoverProps, "position">) => {
35
+ bottom: string;
36
+ marginBottom: number;
37
+ right?: undefined;
38
+ marginRight?: undefined;
39
+ left?: undefined;
40
+ marginLeft?: undefined;
41
+ top?: undefined;
42
+ marginTop?: undefined;
43
+ } | {
44
+ right: string;
45
+ marginRight: number;
46
+ bottom?: undefined;
47
+ marginBottom?: undefined;
48
+ left?: undefined;
49
+ marginLeft?: undefined;
50
+ top?: undefined;
51
+ marginTop?: undefined;
52
+ } | {
53
+ left: string;
54
+ marginLeft: number;
55
+ bottom?: undefined;
56
+ marginBottom?: undefined;
57
+ right?: undefined;
58
+ marginRight?: undefined;
59
+ top?: undefined;
60
+ marginTop?: undefined;
61
+ } | {
62
+ top: string;
63
+ marginTop: number;
64
+ bottom?: undefined;
65
+ marginBottom?: undefined;
66
+ right?: undefined;
67
+ marginRight?: undefined;
68
+ left?: undefined;
69
+ marginLeft?: undefined;
70
+ };
71
+ export declare const getPopoverFramerProps: ({ position, alignment }: Pick<UsePopoverProps, "position" | "alignment">) => {
72
+ initial: {
73
+ [x: string]: number;
74
+ opacity: number;
75
+ };
76
+ animate: {
77
+ [x: string]: number;
78
+ opacity: number;
79
+ };
80
+ exit: {
81
+ [x: string]: number;
82
+ opacity: number;
83
+ };
84
+ transformTemplate: HTMLMotionProps<"div">["transformTemplate"];
85
+ };
86
+ export declare const getPopoverActualPositionAlignment: ({ position, alignment, triggerRect, popoverRect, }: Pick<UsePopoverProps, "position" | "alignment"> & {
87
+ triggerRect: DOMRect;
88
+ popoverRect: DOMRect;
89
+ }) => {
90
+ fallbackPosition: "top" | "bottom" | "right" | "left";
91
+ fallbackAlignment: "start" | "middle" | "end";
92
+ };
@@ -1,7 +1,7 @@
1
1
  import { SEVERITIES } from './constants';
2
2
  import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
4
+ color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
5
5
  label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -8,8 +8,10 @@ export declare const SelectPickerControl: <OptionValue>(props: ControlProps<Sele
8
8
  export declare const SelectPickerInput: <OptionValue>(props: InputProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
9
9
  export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
10
10
  export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
11
+ export declare const SelectPickerMenuListFooter: ({ menuListFooterConfig, }: Required<Pick<SelectPickerProps, "menuListFooterConfig">>) => JSX.Element;
11
12
  export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
12
13
  export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
13
14
  export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
14
15
  export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
15
16
  export declare const renderLoadingMessage: () => JSX.Element;
17
+ export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ export { ValueContainerWithLoadingShimmer } from './common';
1
2
  export { default as FilterSelectPicker } from './FilterSelectPicker';
2
3
  export { default as SelectPicker } from './SelectPicker.component';
3
4
  export * from './SelectPickerTextArea.component';
@@ -40,6 +40,10 @@ type MenuListFooterConfigType = {
40
40
  buttonProps: {
41
41
  variant: ButtonVariantType.primary | ButtonVariantType.borderLess;
42
42
  } & Omit<ButtonProps<ButtonComponentType>, 'size' | 'fullWidth' | 'icon' | 'endIcon' | 'variant' | 'style'>;
43
+ } | {
44
+ type: 'customNode';
45
+ value: ReactElement;
46
+ buttonProps?: never;
43
47
  };
44
48
  declare module 'react-select/base' {
45
49
  interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
@@ -16,7 +16,8 @@ export declare enum StatusType {
16
16
  PROGRESSING = "PROGRESSING",
17
17
  INPROGRESS = "INPROGRESS",
18
18
  HIBERNATING = "HIBERNATING",
19
- TIMED_OUT = "TIMED_OUT"
19
+ TIMED_OUT = "TIMED_OUT",
20
+ DELETING = "DELETING"
20
21
  }
21
22
  export interface StatusComponentProps {
22
23
  /** The status to display, either a predefined StatusType or a custom string. */
@@ -1,5 +1,5 @@
1
1
  import { TabGroupProps, TabProps } from './TabGroup.types';
2
- export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
2
+ export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, iconElement, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active" | "iconElement"> & Pick<TabGroupProps, "size"> & {
3
3
  className: string;
4
4
  }) => JSX.Element;
5
5
  export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
@@ -65,6 +65,38 @@ type TabTooltipProps = {
65
65
  shouldWrapTooltip?: never;
66
66
  tooltipProps?: never;
67
67
  };
68
+ /**
69
+ * Represents the properties for defining an icon in a tab group.
70
+ * This type allows for three configurations:
71
+ *
72
+ * 1. **Icon as a functional component or string**:
73
+ * - Use the `icon` property to specify either a functional component that renders an SVG or a string representing the name of the icon.
74
+ * - The `iconElement` property must not be provided in this case.
75
+ *
76
+ * 2. **Icon as a JSX element**:
77
+ * - Use the `iconElement` property to specify a JSX element representing the icon.
78
+ * - The `icon` property must not be provided in this case.
79
+ *
80
+ * 3. **No icon**:
81
+ * - Neither `icon` nor `iconElement` is provided, resulting in no icon being displayed.
82
+ *
83
+ */
84
+ type TabGroupIconProp = {
85
+ /**
86
+ * A functional component rendering an SVG or a string representing the icon name. Mutually exclusive with `iconElement`.
87
+ */
88
+ icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
89
+ iconElement?: never;
90
+ } | {
91
+ icon?: never;
92
+ /**
93
+ * A JSX element representing the icon. Mutually exclusive with `icon`.
94
+ */
95
+ iconElement: JSX.Element;
96
+ } | {
97
+ icon?: never;
98
+ iconElement?: never;
99
+ };
68
100
  export type TabProps = {
69
101
  /**
70
102
  * Unique identifier for the tab.
@@ -79,12 +111,6 @@ export type TabProps = {
79
111
  * @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
80
112
  */
81
113
  description?: string | string[];
82
- /**
83
- * Icon to be displayed in the tab.
84
- * This can either be a functional component that renders a SVG
85
- * or a string representing the name of the icon to be rendered by the Icon component.
86
- */
87
- icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
88
114
  /**
89
115
  * Badge number to be displayed on the tab, typically for notifications.
90
116
  */
@@ -107,7 +133,7 @@ export type TabProps = {
107
133
  * Disables the tab, preventing interaction and indicating an inactive state.
108
134
  */
109
135
  disabled?: boolean;
110
- } & ConditionalTabType & TabTooltipProps;
136
+ } & ConditionalTabType & TabTooltipProps & TabGroupIconProp;
111
137
  export interface TabGroupProps {
112
138
  /**
113
139
  * Array of tabs to be rendered.
@@ -1,3 +1,3 @@
1
1
  import { TargetPlatformListTooltipProps } from './types';
2
- declare const TargetPlatformListTooltip: ({ targetPlatforms, children }: TargetPlatformListTooltipProps) => JSX.Element;
2
+ declare const TargetPlatformListTooltip: ({ targetPlatforms, children, appendTo }: TargetPlatformListTooltipProps) => JSX.Element;
3
3
  export default TargetPlatformListTooltip;
@@ -2,6 +2,5 @@ import { TooltipProps } from '@Common/Tooltip/types';
2
2
  import { TargetPlatformsDTO } from '../../types';
3
3
  export interface TargetPlatformBadgeListProps extends Required<Pick<TargetPlatformsDTO, 'targetPlatforms'>> {
4
4
  }
5
- export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
6
- children: TooltipProps['children'];
5
+ export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, Pick<TooltipProps, 'children' | 'appendTo'> {
7
6
  }