@devtron-labs/devtron-fe-common-lib 1.13.0 → 1.14.0-pre-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 (190) hide show
  1. package/dist/{@common-rjsf-BUC7SZkT.js → @code-editor-Bk1EiJbr.js} +15787 -15105
  2. package/dist/@common-rjsf-N-B6bUkj.js +617 -0
  3. package/dist/{@framer-motion-BL6-Hrrc.js → @framer-motion-u7P-WzAO.js} +1 -1
  4. package/dist/{@react-dates-CIHHgq4p.js → @react-dates-B9MPAm_X.js} +14 -14
  5. package/dist/{@react-select-BVKpsqGO.js → @react-select-BjvVd-sE.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CjKfeUxB.js → @react-virtualized-sticky-tree-B8m_4lZW.js} +1 -1
  7. package/dist/{@vendor-CekuMgQx.js → @vendor-BtL2Znh4.js} +45811 -45821
  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 +1 -11
  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/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  16. package/dist/Common/RJSF/Form.d.ts +1 -1
  17. package/dist/Common/SegmentedBarChart/types.d.ts +11 -2
  18. package/dist/Common/TippyCustomized.d.ts +1 -1
  19. package/dist/Common/Toggle/Toggle.d.ts +4 -1
  20. package/dist/Common/Types.d.ts +12 -6
  21. package/dist/Common/index.d.ts +3 -3
  22. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -0
  23. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +8 -0
  24. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  25. package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
  26. package/dist/Pages/ResourceBrowser/types.d.ts +43 -0
  27. package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +1 -2
  28. package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +2 -0
  29. package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
  30. package/dist/Shared/Components/ActionMenu/types.d.ts +88 -11
  31. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +275 -0
  32. package/dist/Shared/Components/ActionMenu/utils.d.ts +7 -0
  33. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
  34. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
  35. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
  36. package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
  37. package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
  38. package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
  39. package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
  40. package/dist/Shared/Components/AppStatusModal/types.d.ts +84 -0
  41. package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
  42. package/dist/Shared/Components/BulkOperations/types.d.ts +2 -2
  43. package/dist/Shared/Components/Button/types.d.ts +3 -1
  44. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
  45. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
  46. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  47. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
  48. package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
  49. package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
  50. package/dist/Shared/Components/CICDHistory/types.d.ts +11 -77
  51. package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
  52. package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
  53. package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
  54. package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
  55. package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
  56. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  57. package/dist/Shared/Components/Error/types.d.ts +4 -0
  58. package/dist/Shared/Components/Error/utils.d.ts +1 -0
  59. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +1 -1
  60. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  61. package/dist/Shared/Components/FeatureDescription/types.d.ts +5 -2
  62. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  63. package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
  64. package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
  65. package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
  66. package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
  67. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -3
  68. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +10 -0
  69. package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +2 -0
  70. package/dist/Shared/Components/Header/HelpButton.d.ts +2 -0
  71. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  72. package/dist/Shared/Components/Header/constants.d.ts +5 -4
  73. package/dist/Shared/Components/Header/types.d.ts +20 -14
  74. package/dist/Shared/Components/Header/utils.d.ts +5 -1
  75. package/dist/Shared/Components/Icon/Icon.d.ts +40 -1
  76. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  77. package/dist/Shared/Components/Icon/types.d.ts +30 -8
  78. package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
  79. package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
  80. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  81. package/dist/Shared/Components/License/index.d.ts +1 -1
  82. package/dist/Shared/Components/License/utils.d.ts +2 -1
  83. package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +3 -0
  84. package/dist/Shared/Components/LoginBanner/index.d.ts +2 -0
  85. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +1 -1
  86. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +4 -2
  87. package/dist/Shared/Components/Popover/Popover.component.d.ts +8 -0
  88. package/dist/Shared/Components/Popover/index.d.ts +3 -0
  89. package/dist/Shared/Components/Popover/types.d.ts +105 -0
  90. package/dist/Shared/Components/Popover/usePopover.hook.d.ts +2 -0
  91. package/dist/Shared/Components/Popover/utils.d.ts +92 -0
  92. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +2 -2
  93. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  94. package/dist/Shared/Components/SelectPicker/common.d.ts +2 -0
  95. package/dist/Shared/Components/SelectPicker/index.d.ts +1 -0
  96. package/dist/Shared/Components/SelectPicker/type.d.ts +4 -0
  97. package/dist/Shared/Components/StatusComponent/types.d.ts +2 -1
  98. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
  99. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
  100. package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
  101. package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -2
  102. package/dist/Shared/Components/index.d.ts +2 -2
  103. package/dist/Shared/DocLink/DocLink.d.ts +2 -0
  104. package/dist/Shared/DocLink/constants.d.ts +91 -0
  105. package/dist/Shared/DocLink/index.d.ts +3 -0
  106. package/dist/Shared/DocLink/types.d.ts +11 -0
  107. package/dist/Shared/DocLink/utils.d.ts +2 -0
  108. package/dist/Shared/Helpers.d.ts +2 -2
  109. package/dist/Shared/Providers/index.d.ts +1 -1
  110. package/dist/Shared/Providers/types.d.ts +11 -1
  111. package/dist/Shared/constants.d.ts +18 -24
  112. package/dist/Shared/types.d.ts +110 -2
  113. package/dist/assets/@code-editor.css +1 -0
  114. package/dist/assets/@common-rjsf.css +1 -1
  115. package/dist/assets/empty-create.661d9355.png +0 -0
  116. package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
  117. package/dist/assets/ic-app-template.82736707.svg +23 -0
  118. package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
  119. package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
  120. package/dist/assets/{ic-arrow-square-out.3d1a0d41.svg → ic-bulk-check.0f698efa.svg} +4 -2
  121. package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
  122. package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
  123. package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
  124. package/dist/assets/ic-celebration.77350694.svg +238 -0
  125. package/dist/assets/ic-chat-circle-online.51348da5.svg +4 -0
  126. package/dist/assets/{ic-medal.a2e911f5.svg → ic-checkbox-hover.0151d832.svg} +4 -3
  127. package/dist/assets/{ic-k8s-job.f4414c10.svg → ic-checkbox-hover.93e8d66a.svg} +4 -3
  128. package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
  129. package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
  130. package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
  131. package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
  132. package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
  133. package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
  134. package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
  135. package/dist/assets/ic-cluster.71ba9e26.svg +3 -0
  136. package/dist/assets/ic-delete-dots.5380e0d0.svg +62 -0
  137. package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
  138. package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
  139. package/dist/assets/ic-disconnect.2ad261fc.svg +3 -0
  140. package/dist/assets/ic-discord-fill.103b579a.svg +3 -0
  141. package/dist/assets/ic-edit.3249ed32.svg +3 -0
  142. package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +3 -0
  143. package/dist/assets/ic-enterprise-tag.209dd129.svg +43 -0
  144. package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
  145. package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
  146. package/dist/assets/ic-file-edit.96a172c7.svg +3 -0
  147. package/dist/assets/ic-file.c3c45e13.svg +3 -0
  148. package/dist/assets/ic-files.b0ebea46.svg +3 -0
  149. package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
  150. package/dist/assets/ic-gift.9b048fc7.svg +3 -0
  151. package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
  152. package/dist/assets/ic-google-gke.07314724.svg +9 -0
  153. package/dist/assets/ic-install.28c3beec.svg +3 -0
  154. package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
  155. package/dist/assets/ic-kind.bd8ee992.svg +9 -0
  156. package/dist/assets/ic-laptop.485e21b4.svg +3 -0
  157. package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
  158. package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
  159. package/dist/assets/ic-megaphone-right.9d6bcd36.svg +3 -0
  160. package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
  161. package/dist/assets/ic-mobile.7c649251.svg +4 -0
  162. package/dist/assets/ic-path.d4fef3b0.svg +3 -0
  163. package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
  164. package/dist/assets/ic-terminal.d875cce7.svg +3 -0
  165. package/dist/assets/ic-thermometer.1bc48079.svg +3 -0
  166. package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
  167. package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
  168. package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
  169. package/dist/index.d.ts +7 -0
  170. package/dist/index.js +885 -850
  171. package/package.json +1 -1
  172. package/dist/Common/Checkbox.d.ts +0 -5
  173. package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +0 -3
  174. package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
  175. package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
  176. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
  177. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
  178. package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +0 -2
  179. package/dist/Shared/Components/EnterpriseTag/index.d.ts +0 -1
  180. package/dist/Shared/Components/Header/HelpNav.d.ts +0 -3
  181. package/dist/assets/ic-charts.f41e185f.svg +0 -19
  182. package/dist/assets/ic-chat-circle-dots.e15514f8.svg +0 -23
  183. package/dist/assets/ic-disconnected.551d6161.svg +0 -29
  184. package/dist/assets/ic-discord-fill.1a1b291d.svg +0 -19
  185. package/dist/assets/ic-feedback.d32fa6b0.svg +0 -19
  186. package/dist/assets/ic-files.fc290dee.svg +0 -19
  187. package/dist/assets/ic-login-devtron-logo.702a1d04.svg +0 -22
  188. package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
  189. package/dist/assets/ic-onboarding.c98f9ef9.svg +0 -19
  190. package/dist/assets/ic-timeout-red.5eda1010.svg +0 -21
@@ -0,0 +1,10 @@
1
+ import { DEPLOYMENT_STATUS } from '../../constants';
2
+ import { DeploymentPhaseType, DeploymentStatusTimelineType } from '../../types';
3
+ import { WorkflowRunnerStatusDTO } from './types';
4
+ export declare const DEPLOYMENT_STATUS_TEXT_MAP: Readonly<Record<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS], string>>;
5
+ export declare const WFR_STATUS_DTO_TO_DEPLOYMENT_STATUS_MAP: Readonly<Record<WorkflowRunnerStatusDTO, (typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS]>>;
6
+ export declare const PROGRESSING_DEPLOYMENT_STATUS: Readonly<(typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS][]>;
7
+ export declare const SUCCESSFUL_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
8
+ export declare const FAILED_DEPLOYMENT_STATUS: typeof PROGRESSING_DEPLOYMENT_STATUS;
9
+ export declare const PHYSICAL_ENV_DEPLOYMENT_TIMELINE_ORDER: Readonly<DeploymentStatusTimelineType[]>;
10
+ export declare const DEPLOYMENT_PHASES: Readonly<DeploymentPhaseType[]>;
@@ -0,0 +1,3 @@
1
+ export * from './constants';
2
+ export * from './types';
3
+ export * from './utils';
@@ -0,0 +1,22 @@
1
+ import { DEPLOYMENT_STATUS } from '../../constants';
2
+ import { DeploymentStatusBreakdownItemType, DeploymentStatusDetailsType, DeploymentStatusTimelineType } from '../../types';
3
+ export declare enum WorkflowRunnerStatusDTO {
4
+ PROGRESSING = "Progressing",
5
+ ABORTED = "Aborted",
6
+ FAILED = "Failed",
7
+ SUCCEEDED = "Succeeded",
8
+ TIMED_OUT = "TimedOut",
9
+ UNABLE_TO_FETCH = "UnableToFetch",
10
+ STARTING = "Starting",
11
+ QUEUED = "Queued",
12
+ INITIATING = "Initiating",
13
+ HEALTHY = "Healthy",
14
+ DEGRADED = "Degraded"
15
+ }
16
+ export interface ProcessUnableToFetchOrTimedOutStatusType {
17
+ timelineData: DeploymentStatusBreakdownItemType;
18
+ timelineStatusType: DeploymentStatusTimelineType;
19
+ deploymentStatus: typeof DEPLOYMENT_STATUS.UNABLE_TO_FETCH | typeof DEPLOYMENT_STATUS.TIMED_OUT;
20
+ statusLastFetchedAt: DeploymentStatusDetailsType['statusLastFetchedAt'] | null;
21
+ statusFetchCount: DeploymentStatusDetailsType['statusFetchCount'] | null;
22
+ }
@@ -0,0 +1,20 @@
1
+ import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType } from '../../types';
2
+ /**
3
+ * @description
4
+ * This function processes the deployment status details data and returns a breakdown of the deployment status.
5
+ * Cases it handles:
6
+ * 1. If timelines are not present, say the case of helm deployment, we will parse the wfrStatus and put the status and basic deployment info [triggeredBy, deploymentStartedOn, deploymentFinishedOn] into the breakdown data and return it.
7
+ * 2. In case of gitops:
8
+ * - There are five timelines in chronological order:
9
+ * - Deployment Initiated
10
+ * - Git commit
11
+ * - ArgoCD Sync
12
+ * - Kubectl Apply
13
+ * - App Health
14
+ * - Basic flow is we traverse the timelines in order, if find the last status for that specific timeline from response by traversing the timelines in reverse order.
15
+ * - If element is found, we will parse the status and set the icon, display text, time, etc. for that timeline and set the next timeline to inprogress.
16
+ * - If element is not found, we will parse on basis of factors like:
17
+ * - If this timeline is not inprogress and deploymentStatus is progressing, we will set the current timeline to waiting.
18
+ * - In similar fashion based on the deploymentStatus we will set the icon and display text for the timeline.
19
+ */
20
+ export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
@@ -1,3 +1,3 @@
1
1
  import { ErrorBarType } from './types';
2
- declare const ErrorBar: ({ appDetails }: ErrorBarType) => JSX.Element;
2
+ declare const ErrorBar: ({ appDetails, useParentMargin }: ErrorBarType) => JSX.Element;
3
3
  export default ErrorBar;
@@ -1,6 +1,10 @@
1
1
  import { AppDetails } from '../../types';
2
2
  export interface ErrorBarType {
3
3
  appDetails: AppDetails;
4
+ /**
5
+ * @default true
6
+ */
7
+ useParentMargin?: boolean;
4
8
  }
5
9
  export declare enum AppDetailsErrorType {
6
10
  ERRIMAGEPULL = "errimagepull",
@@ -1,2 +1,3 @@
1
1
  import { AppDetails } from '../../types';
2
+ export declare const getIsImagePullBackOff: (appDetails: AppDetails) => boolean;
2
3
  export declare const renderErrorHeaderMessage: (appDetails: AppDetails, key: string, onClickActionButton?: any) => JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { FeatureDescriptionModalProps } from './types';
2
- export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, }: FeatureDescriptionModalProps) => JSX.Element;
2
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, tabsConfig, isEnterprise, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, isEnterprise, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,9 +1,10 @@
1
1
  import { default as React, ReactNode } from 'react';
2
+ import { DocLinkProps } from '@Shared/DocLink/types';
2
3
  import { ImageType } from '../../../Common';
3
4
  import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
4
- interface BaseFeatureDescriptionModalProps {
5
+ interface BaseFeatureDescriptionModalProps<T extends boolean = false> {
5
6
  renderDescriptionContent?: () => ReactNode;
6
- docLink?: string;
7
+ docLink?: DocLinkProps<T>['docLinkKey'];
7
8
  imageVariant?: ImageType;
8
9
  SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
9
10
  imageStyles?: React.CSSProperties;
@@ -33,6 +34,7 @@ export type FeatureDescriptionModalProps = {
33
34
  title: string;
34
35
  closeModalText?: string;
35
36
  closeModal?: () => void;
37
+ isEnterprise?: boolean;
36
38
  } & ((BaseFeatureDescriptionModalProps & {
37
39
  tabsConfig?: never;
38
40
  }) | FeatureDescriptionModalWithTabsConfig);
@@ -53,5 +55,6 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
53
55
  * @default false
54
56
  */
55
57
  showInfoIcon?: boolean;
58
+ isEnterprise?: boolean;
56
59
  };
57
60
  export {};
@@ -1,3 +1,3 @@
1
- import { AnimatePresence } from 'framer-motion';
1
+ import { AnimatePresence, motion } from 'framer-motion';
2
2
  export * from './MotionDiv';
3
- export { AnimatePresence };
3
+ export { AnimatePresence, motion };
@@ -0,0 +1,2 @@
1
+ import { GenericInfoCardListingProps } from './types';
2
+ export declare const GenericInfoCardListing: ({ isLoading, error, list, searchKey, reloadList, borderVariant, handleClearFilters, emptyStateConfig, }: GenericInfoCardListingProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { GenericInfoListSkeletonProps } from './types';
2
+ export declare const GenericInfoListSkeleton: ({ borderVariant }: GenericInfoListSkeletonProps) => JSX.Element;
@@ -1,2 +1,4 @@
1
1
  export { default as GenericInfoCard } from './GenericInfoCard.component';
2
- export { GenericInfoCardBorderVariant, type GenericInfoCardProps } from './types';
2
+ export * from './GenericInfoCardListing';
3
+ export { GenericInfoListSkeleton } from './GenericInfoListSkeleton';
4
+ export { GenericInfoCardBorderVariant, type GenericInfoCardListingProps, type GenericInfoCardProps } from './types';
@@ -1,5 +1,8 @@
1
1
  import { MouseEventHandler, ReactElement } from 'react';
2
2
  import { LinkProps } from 'react-router-dom';
3
+ import { GenericFilterEmptyStateProps } from '@Common/EmptyState/types';
4
+ import { GenericEmptyStateType } from '../../../Common/Types';
5
+ import { APIResponseHandlerProps } from '../APIResponseHandler';
3
6
  type BaseGenericInfoCardProps = {
4
7
  title: string;
5
8
  description: string;
@@ -23,4 +26,14 @@ export type GenericInfoCardProps = {
23
26
  } & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
24
27
  isLoading?: boolean;
25
28
  } & BaseGenericInfoCardProps));
29
+ export interface GenericInfoCardListingProps extends Pick<GenericInfoCardProps, 'borderVariant'>, Pick<GenericFilterEmptyStateProps, 'handleClearFilters'> {
30
+ list: (Pick<GenericInfoCardProps, 'Icon' | 'author' | 'description' | 'linkProps' | 'onClick' | 'title'> & Record<'id', string>)[];
31
+ emptyStateConfig: Pick<GenericEmptyStateType, 'title' | 'subTitle' | 'image' | 'renderButton' | 'renderButton'>;
32
+ searchKey?: string;
33
+ reloadList: () => void;
34
+ error?: APIResponseHandlerProps['error'];
35
+ isLoading?: boolean;
36
+ }
37
+ export interface GenericInfoListSkeletonProps extends Partial<Pick<GenericInfoCardProps, 'borderVariant'>> {
38
+ }
26
39
  export {};
@@ -1,5 +1,3 @@
1
- export interface HeaderWithCreateButtonProps {
2
- headerName: string;
3
- }
1
+ import { HeaderWithCreateButtonProps } from './types';
4
2
  export declare const HeaderWithCreateButton: ({ headerName }: HeaderWithCreateButtonProps) => JSX.Element;
5
3
  export default HeaderWithCreateButton;
@@ -0,0 +1,10 @@
1
+ import { ActionMenuProps } from '@Shared/Components/ActionMenu';
2
+ export interface HeaderWithCreateButtonProps {
3
+ headerName: string;
4
+ }
5
+ export declare enum CreateActionMenuItems {
6
+ CUSTOM_APP = "create-custom-app",
7
+ CHART_STORE = "create-from-chart-store",
8
+ JOB = "create-job"
9
+ }
10
+ export type CreateActionMenuProps = ActionMenuProps<CreateActionMenuItems>;
@@ -0,0 +1,2 @@
1
+ import { CreateActionMenuProps } from './types';
2
+ export declare const getCreateActionMenuOptions: (createCustomAppURL: string) => CreateActionMenuProps["options"];
@@ -0,0 +1,2 @@
1
+ import { HelpButtonProps } from './types';
2
+ export declare const HelpButton: ({ serverInfo, fetchingServerInfo, onClick }: HelpButtonProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, isEnterprise, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -1,4 +1,5 @@
1
- import { HelpOptionType } from './types';
2
- export declare const EnterpriseHelpOptions: HelpOptionType[];
3
- export declare const OSSHelpOptions: HelpOptionType[];
4
- export declare const TrialHelpOptions: HelpOptionType[];
1
+ import { HelpButtonActionMenuProps } from './types';
2
+ export declare const COMMON_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
3
+ export declare const OSS_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
4
+ export declare const ENTERPRISE_TRIAL_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
5
+ export declare const ENTERPRISE_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
@@ -1,11 +1,12 @@
1
1
  import { ModuleStatus } from '../../types';
2
- import { ResponseType, TippyCustomizedProps } from '../../../Common';
2
+ import { DOCUMENTATION, ResponseType, TippyCustomizedProps } from '../../../Common';
3
+ import { ActionMenuProps } from '../ActionMenu';
3
4
  export declare enum InstallationType {
4
5
  OSS_KUBECTL = "oss_kubectl",
5
6
  OSS_HELM = "oss_helm",
6
7
  ENTERPRISE = "enterprise"
7
8
  }
8
- export interface PageHeaderType {
9
+ export interface PageHeaderType<T extends boolean = false> {
9
10
  headerName?: string;
10
11
  showTabs?: boolean;
11
12
  additionalHeaderInfo?: () => JSX.Element;
@@ -16,14 +17,14 @@ export interface PageHeaderType {
16
17
  showCloseButton?: boolean;
17
18
  onClose?: () => void;
18
19
  markAsBeta?: boolean;
19
- showAnnouncementHeader?: boolean;
20
- tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
20
+ tippyProps?: Pick<TippyCustomizedProps<T>, 'additionalContent'> & {
21
21
  isTippyCustomized?: boolean;
22
- tippyRedirectLink?: string;
22
+ tippyRedirectLink?: keyof typeof DOCUMENTATION;
23
23
  TippyIcon?: React.FunctionComponent<any>;
24
24
  tippyMessage?: string;
25
25
  onClickTippyButton?: () => void;
26
26
  };
27
+ isEnterprise?: boolean;
27
28
  }
28
29
  export interface ServerInfo {
29
30
  currentVersion: string;
@@ -34,16 +35,21 @@ export interface ServerInfo {
34
35
  export interface ServerInfoResponse extends ResponseType {
35
36
  result?: ServerInfo;
36
37
  }
37
- export interface HelpNavType {
38
- className: string;
39
- setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
38
+ export interface HelpButtonProps {
40
39
  serverInfo: ServerInfo;
41
40
  fetchingServerInfo: boolean;
42
- setGettingStartedClicked: (isClicked: boolean) => void;
43
- showHelpCard: boolean;
41
+ onClick: () => void;
44
42
  }
45
- export interface HelpOptionType {
46
- name: string;
47
- link: string;
48
- icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
43
+ export declare enum HelpMenuItems {
44
+ GETTING_STARTED = "getting-started",
45
+ VIEW_DOCUMENTATION = "view-documentation",
46
+ JOIN_DISCORD_COMMUNITY = "join-discord-community",
47
+ ABOUT_DEVTRON = "about-devtron",
48
+ REQUEST_SUPPORT = "request-support",
49
+ OPEN_NEW_TICKET = "open-new-ticket",
50
+ VIEW_ALL_TICKETS = "view-all-tickets",
51
+ GIVE_FEEDBACK = "give-feedback",
52
+ CHAT_WITH_SUPPORT = "chat-with-support",
53
+ RAISE_ISSUE_REQUEST = "raise-issue-request"
49
54
  }
55
+ export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
@@ -1,6 +1,10 @@
1
1
  import { DevtronLicenseInfo } from '../License';
2
+ import { HelpButtonActionMenuProps } from './types';
2
3
  export declare const getDateInMilliseconds: (days: any) => number;
3
4
  export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
4
5
  export declare const setActionWithExpiry: (key: string, days: number) => void;
5
6
  export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
6
- export declare const getHelpOptions: (isEnterprise: boolean, isTrial: boolean) => import('./types').HelpOptionType[];
7
+ export declare const getHelpActionMenuOptions: ({ isEnterprise, isTrial, }: {
8
+ isEnterprise: boolean;
9
+ isTrial: boolean;
10
+ }) => HelpButtonActionMenuProps["options"];
@@ -3,12 +3,16 @@ 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>>;
9
+ 'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
10
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
11
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
+ 'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
13
  'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
14
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
15
+ 'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
16
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
17
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
18
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -19,9 +23,12 @@ export declare const iconMap: {
19
23
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
24
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
25
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
+ 'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
27
  'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
+ 'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
29
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
30
  'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
+ 'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
32
  'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
33
  'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
34
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -30,6 +37,8 @@ export declare const iconMap: {
30
37
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
38
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
32
39
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
+ 'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
+ 'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
42
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
34
43
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
44
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -37,24 +46,40 @@ export declare const iconMap: {
37
46
  'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
47
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
39
48
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
+ 'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
40
50
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
41
51
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
52
  'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
+ 'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
54
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
+ 'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
56
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
+ 'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
+ 'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
59
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
60
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
+ 'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
62
+ 'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
+ 'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
64
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
65
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
+ 'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
+ 'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
68
  'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
+ 'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
70
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
+ 'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
+ 'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
73
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
74
  'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
+ 'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
76
+ 'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
77
  'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
78
  'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
79
  'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
80
  'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
81
  'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
+ 'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
83
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
84
  'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
85
  'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -68,20 +93,27 @@ export declare const iconMap: {
68
93
  'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
94
  'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
95
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
+ 'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
97
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
98
+ 'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
99
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
100
  'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
101
+ 'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
+ 'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
74
103
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
104
  'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
76
105
  'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
77
106
  'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
78
- 'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
79
107
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
80
108
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
81
109
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
+ 'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
+ 'ic-megaphone-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
82
112
  'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
83
113
  'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
+ 'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
115
  'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
+ 'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
85
117
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
86
118
  'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
87
119
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,6 +123,7 @@ export declare const iconMap: {
91
123
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
124
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
125
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
126
+ 'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
127
  'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
128
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
129
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -101,6 +134,7 @@ export declare const iconMap: {
101
134
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
102
135
  'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
103
136
  'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
+ 'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
104
138
  'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
105
139
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
106
140
  'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -108,15 +142,20 @@ export declare const iconMap: {
108
142
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
143
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
144
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
145
+ 'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
146
+ 'ic-thermometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
147
  'ic-thumb-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
148
  'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
149
  'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
150
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
151
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
+ 'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
153
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
154
+ 'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
117
155
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
118
156
  'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
119
157
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
158
+ 'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
120
159
  };
121
160
  export type IconName = keyof typeof iconMap;
122
161
  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: <T extends boolean = false>({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, isEnterprise, isExternalLink, }: InfoIconTippyProps<T>) => 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';
@@ -1,3 +1,3 @@
1
1
  import { ModalSidebarPanelProps } from './types';
2
- declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
2
+ declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, isEnterprise, }: ModalSidebarPanelProps) => JSX.Element;
3
3
  export default ModalSidebarPanel;
@@ -1,8 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
- export interface ModalSidebarPanelProps {
2
+ import { DocLinkProps } from '@Shared/DocLink/types';
3
+ import { PageHeaderType } from '../Header/types';
4
+ export interface ModalSidebarPanelProps<T extends boolean = false> extends Pick<PageHeaderType, 'isEnterprise'> {
3
5
  rootClassName?: string;
4
6
  heading: string | null;
5
7
  icon?: JSX.Element;
6
8
  children?: ReactNode;
7
- documentationLink: string;
9
+ documentationLink: DocLinkProps<T>['docLinkKey'];
8
10
  }
@@ -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';