@devtron-labs/devtron-fe-common-lib 1.20.2-pre-0 → 1.20.2-pre-1

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 (143) hide show
  1. package/dist/{@code-editor-D4gUoqHX.js → @code-editor-Bouc81xr.js} +10715 -9557
  2. package/dist/{@common-rjsf-Cy_tMIQf.js → @common-rjsf-Dz2q-K7t.js} +46 -46
  3. package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
  4. package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
  5. package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
  7. package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
  8. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  9. package/dist/Common/Common.service.d.ts +3 -1
  10. package/dist/Common/Constants.d.ts +41 -14
  11. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
  12. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  13. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  14. package/dist/Common/SearchBar/types.d.ts +8 -0
  15. package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
  16. package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
  17. package/dist/Common/Types.d.ts +12 -4
  18. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
  19. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
  20. package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
  21. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +1 -0
  22. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +2 -0
  23. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +1 -0
  24. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +12 -0
  25. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +2 -0
  26. package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
  27. package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
  28. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
  29. package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
  30. package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
  31. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
  32. package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
  33. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
  34. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +11 -0
  35. package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
  36. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
  37. package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
  38. package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
  39. package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
  40. package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
  41. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
  42. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
  43. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
  44. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
  45. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -0
  46. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
  47. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
  48. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
  49. package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +2 -0
  50. package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
  51. package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
  52. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
  53. package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
  54. package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
  55. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
  56. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
  57. package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
  58. package/dist/Pages-Devtron-2.0/index.d.ts +3 -0
  59. package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
  60. package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
  61. package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
  62. package/dist/Shared/Components/Badge/utils.d.ts +2 -1
  63. package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
  64. package/dist/Shared/Components/Charts/constants.d.ts +16 -0
  65. package/dist/Shared/Components/Charts/index.d.ts +4 -0
  66. package/dist/Shared/Components/Charts/plugins.d.ts +5 -0
  67. package/dist/Shared/Components/Charts/types.d.ts +95 -0
  68. package/dist/Shared/Components/Charts/utils.d.ts +15 -0
  69. package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
  70. package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
  71. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  72. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  73. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
  74. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
  75. package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
  76. package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
  77. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  78. package/dist/Shared/Components/Header/types.d.ts +2 -0
  79. package/dist/Shared/Components/Icon/Icon.d.ts +28 -0
  80. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  81. package/dist/Shared/Components/Icon/types.d.ts +6 -0
  82. package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -0
  83. package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
  84. package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
  85. package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
  86. package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
  87. package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
  88. package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
  89. package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
  90. package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
  91. package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
  92. package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
  93. package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
  94. package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
  95. package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
  96. package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
  97. package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
  98. package/dist/Shared/Components/TreeView/types.d.ts +17 -3
  99. package/dist/Shared/Components/index.d.ts +4 -0
  100. package/dist/Shared/Helpers.d.ts +1 -0
  101. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
  102. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
  103. package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
  104. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
  105. package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
  106. package/dist/Shared/Services/common.service.d.ts +2 -0
  107. package/dist/Shared/Services/types.d.ts +6 -0
  108. package/dist/Shared/constants.d.ts +2 -1
  109. package/dist/Shared/types.d.ts +20 -0
  110. package/dist/assets/@code-editor.css +1 -1
  111. package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
  112. package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
  113. package/dist/assets/ic-aws.b094356f.svg +11 -0
  114. package/dist/assets/ic-bg-build.7de825b3.svg +13 -0
  115. package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
  116. package/dist/assets/ic-bg-production-pipelines.5965401c.svg +21 -0
  117. package/dist/assets/ic-bg-project.84658405.svg +12 -0
  118. package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
  119. package/dist/assets/ic-bot.65f403dd.svg +3 -0
  120. package/dist/assets/ic-building.2405d07b.svg +3 -0
  121. package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
  122. package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
  123. package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
  124. package/dist/assets/ic-coins.2c15f406.svg +3 -0
  125. package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
  126. package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
  127. package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
  128. package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
  129. package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
  130. package/dist/assets/ic-google-cloud.a0198038.svg +6 -0
  131. package/dist/assets/ic-graph-negative.d49ba2b7.svg +4 -0
  132. package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
  133. package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
  134. package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
  135. package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
  136. package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
  137. package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
  138. package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
  139. package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
  140. package/dist/index.d.ts +5 -0
  141. package/dist/index.js +1020 -956
  142. package/package.json +2 -1
  143. package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
@@ -0,0 +1,95 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChartOptions, TooltipOptions } from 'chart.js';
3
+ import { TooltipProps } from '../../../Common/Tooltip';
4
+ import { AppThemeType } from '../../Providers';
5
+ import { Never } from '../../types';
6
+ export type ChartType = 'area' | 'pie' | 'stackedBar' | 'stackedBarHorizontal' | 'line';
7
+ export type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
8
+ export type VariantsType = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
9
+ export type ChartColorKey = `${ColorTokensType}${VariantsType}`;
10
+ export type ChartTypeWithoutPie = Exclude<ChartType, 'pie'>;
11
+ interface BaseSimpleDataset {
12
+ datasetName: string;
13
+ yAxisValues: number[];
14
+ }
15
+ export interface SimpleDataset extends BaseSimpleDataset {
16
+ backgroundColor: ChartColorKey;
17
+ }
18
+ export interface SimpleDatasetForPie extends BaseSimpleDataset {
19
+ backgroundColor: Array<ChartColorKey>;
20
+ }
21
+ export interface SimpleDatasetForLine extends BaseSimpleDataset {
22
+ borderColor: ChartColorKey;
23
+ }
24
+ type XYAxisMax = {
25
+ xAxisMax?: number;
26
+ yAxisMax?: number;
27
+ };
28
+ type TypeAndDatasetsType = ({
29
+ type: 'pie';
30
+ /**
31
+ * Needs to be memoized
32
+ */
33
+ datasets: SimpleDatasetForPie;
34
+ separatorIndex?: never;
35
+ averageLineValue?: never;
36
+ } & Never<XYAxisMax>) | ({
37
+ type: 'line';
38
+ datasets: SimpleDatasetForLine[];
39
+ separatorIndex?: never;
40
+ averageLineValue?: number;
41
+ } & XYAxisMax) | ({
42
+ type: 'area';
43
+ datasets: SimpleDataset[];
44
+ separatorIndex?: never;
45
+ averageLineValue?: number;
46
+ } & XYAxisMax) | ({
47
+ type: Exclude<ChartType, 'pie' | 'line' | 'area'>;
48
+ datasets: SimpleDataset[];
49
+ separatorIndex?: number;
50
+ averageLineValue?: never;
51
+ } & XYAxisMax);
52
+ export type ChartProps = {
53
+ id: string;
54
+ /**
55
+ * The x-axis labels. Needs to be memoized
56
+ */
57
+ xAxisLabels: string[];
58
+ /**
59
+ * Hide the x and y axis and grid lines
60
+ * @default false
61
+ */
62
+ hideAxis?: boolean;
63
+ /**
64
+ * Callback function for chart click events
65
+ */
66
+ onChartClick?: ChartOptions['onClick'];
67
+ tooltipConfig?: {
68
+ getTooltipContent?: (args: Parameters<TooltipOptions['external']>[0]) => ReactNode;
69
+ /**
70
+ * @default 'top'
71
+ */
72
+ placement?: TooltipProps['placement'];
73
+ };
74
+ } & TypeAndDatasetsType;
75
+ export type TransformDatasetProps = {
76
+ appTheme: AppThemeType;
77
+ } & ({
78
+ type: 'pie';
79
+ dataset: SimpleDatasetForPie;
80
+ } | {
81
+ type: 'line';
82
+ dataset: SimpleDatasetForLine;
83
+ } | {
84
+ type: Exclude<ChartType, 'pie' | 'line'>;
85
+ dataset: SimpleDataset;
86
+ });
87
+ export type GetBackgroundAndBorderColorProps = TransformDatasetProps;
88
+ export type TransformDataForChartProps = {
89
+ appTheme: AppThemeType;
90
+ } & TypeAndDatasetsType;
91
+ export interface GetDefaultOptionsParams extends Pick<ChartProps, 'hideAxis' | 'onChartClick' | 'type' | 'xAxisMax' | 'yAxisMax'> {
92
+ appTheme: AppThemeType;
93
+ externalTooltipHandler: TooltipOptions['external'];
94
+ }
95
+ export {};
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ import { ChartDataset, ChartOptions, ChartType as ChartJSChartType, TooltipOptions } from 'chart.js';
3
+ import { ChartType, GetDefaultOptionsParams, TransformDataForChartProps } from './types';
4
+ export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
5
+ export declare const getDefaultOptions: ({ type, appTheme, hideAxis, xAxisMax, yAxisMax, onChartClick, externalTooltipHandler, }: GetDefaultOptionsParams) => ChartOptions;
6
+ export declare const transformDataForChart: (props: TransformDataForChartProps) => (ChartDataset<"line"> | {
7
+ label: string;
8
+ data: number[];
9
+ backgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
10
+ borderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
11
+ pointBackgroundColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
12
+ pointBorderColor: string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern> | readonly (string | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasGradient> | import('chart.js/dist/types/utils')._DeepPartialObject<CanvasPattern>)[] | ((ctx: import('chart.js').ScriptableContext<"line">, options: import('chart.js/dist/types/basic').AnyObject) => import('chart.js').Color);
13
+ })[];
14
+ export declare function chartColorGenerator(): Generator<"DeepPlum500" | "DeepPlum300" | "DeepPlum100" | "DeepPlum50" | "DeepPlum600" | "DeepPlum400" | "DeepPlum200" | "DeepPlum700" | "DeepPlum800" | "DeepPlum900" | "DeepPlum950" | "Magenta500" | "Magenta300" | "Magenta100" | "Magenta50" | "Magenta600" | "Magenta400" | "Magenta200" | "Magenta700" | "Magenta800" | "Magenta900" | "Magenta950" | "Slate500" | "Slate300" | "Slate100" | "Slate50" | "Slate600" | "Slate400" | "Slate200" | "Slate700" | "Slate800" | "Slate900" | "Slate950" | "Lavender500" | "Lavender300" | "Lavender100" | "Lavender50" | "Lavender600" | "Lavender400" | "Lavender200" | "Lavender700" | "Lavender800" | "Lavender900" | "Lavender950" | "SkyBlue500" | "SkyBlue300" | "SkyBlue100" | "SkyBlue50" | "SkyBlue600" | "SkyBlue400" | "SkyBlue200" | "SkyBlue700" | "SkyBlue800" | "SkyBlue900" | "SkyBlue950" | "AquaTeal500" | "AquaTeal300" | "AquaTeal100" | "AquaTeal50" | "AquaTeal600" | "AquaTeal400" | "AquaTeal200" | "AquaTeal700" | "AquaTeal800" | "AquaTeal900" | "AquaTeal950" | "LimeGreen500" | "LimeGreen300" | "LimeGreen100" | "LimeGreen50" | "LimeGreen600" | "LimeGreen400" | "LimeGreen200" | "LimeGreen700" | "LimeGreen800" | "LimeGreen900" | "LimeGreen950" | "CoralRed500" | "CoralRed300" | "CoralRed100" | "CoralRed50" | "CoralRed600" | "CoralRed400" | "CoralRed200" | "CoralRed700" | "CoralRed800" | "CoralRed900" | "CoralRed950" | "GoldenYellow500" | "GoldenYellow300" | "GoldenYellow100" | "GoldenYellow50" | "GoldenYellow600" | "GoldenYellow400" | "GoldenYellow200" | "GoldenYellow700" | "GoldenYellow800" | "GoldenYellow900" | "GoldenYellow950" | "CharcoalGray500" | "CharcoalGray300" | "CharcoalGray100" | "CharcoalGray50" | "CharcoalGray600" | "CharcoalGray400" | "CharcoalGray200" | "CharcoalGray700" | "CharcoalGray800" | "CharcoalGray900" | "CharcoalGray950" | "Gray500" | "Gray300" | "Gray100" | "Gray50" | "Gray600" | "Gray400" | "Gray200" | "Gray700" | "Gray800" | "Gray900" | "Gray950", void, unknown>;
15
+ export declare const buildChartTooltipFromContext: ({ title, body, labelColors: labelColorsProp, }: Pick<Parameters<TooltipOptions["external"]>[0]["tooltip"], "title" | "body" | "labelColors">) => ReactNode;
@@ -4,5 +4,5 @@ export declare const useFocusTrapControl: () => {
4
4
  disableFocusTrap: typeof noop;
5
5
  resumeFocusTrap: typeof noop;
6
6
  };
7
- declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, }: DTFocusTrapType) => JSX.Element;
7
+ declare const DTFocusTrap: ({ onEscape, deactivateFocusOnEscape, children, initialFocus, returnFocusOnDeactivate, }: DTFocusTrapType) => JSX.Element;
8
8
  export default DTFocusTrap;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { Props as FocusTrapProps } from 'focus-trap-react';
2
3
  type FocusTargetValue = HTMLElement | SVGElement | string;
3
4
  type FocusTargetValueOrFalse = FocusTargetValue | false;
4
5
  /**
@@ -7,7 +8,7 @@ type FocusTargetValueOrFalse = FocusTargetValue | false;
7
8
  * an opt-out, or a function that returns a DOM node or `false`.
8
9
  */
9
10
  type FocusTargetOrFalse = FocusTargetValueOrFalse | (() => FocusTargetValueOrFalse);
10
- export interface DTFocusTrapType {
11
+ export interface DTFocusTrapType extends Pick<FocusTrapProps['focusTrapOptions'], 'returnFocusOnDeactivate'> {
11
12
  /**
12
13
  * Callback function that gets triggered when the Escape key is pressed. \
13
14
  * Should be wrapped in useCallback to prevent unnecessary re-renders.
@@ -31,7 +31,7 @@ type FeatureDescriptionModalWithTabsConfig = {
31
31
  imageStyles?: never;
32
32
  };
33
33
  export type FeatureDescriptionModalProps = {
34
- title: string;
34
+ title: React.ReactNode;
35
35
  closeModalText?: string;
36
36
  closeModal?: () => void;
37
37
  } & ((BaseFeatureDescriptionModalProps & {
@@ -1,2 +1,2 @@
1
- import { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
2
- export { animate, AnimatePresence, motion, useAnimationControls, useMotionTemplate, useMotionValue };
1
+ import { animate, AnimatePresence, motion, useAnimation, useAnimationControls, useMotionTemplate, useMotionValue } from 'framer-motion';
2
+ export { animate, AnimatePresence, motion, useAnimation, useAnimationControls, useMotionTemplate, useMotionValue };
@@ -1,3 +1,4 @@
1
+ import { ButtonComponentType } from '../Button';
1
2
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
3
+ declare const GenericSectionErrorState: <T extends ButtonComponentType = ButtonComponentType.button>({ reload, buttonProps, customIcon, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps<T>) => JSX.Element;
3
4
  export default GenericSectionErrorState;
@@ -1,10 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ButtonComponentType, ButtonProps } from '../Button';
2
3
  import { IconsProps } from '../Icon';
3
- export type GenericSectionErrorStateProps = {
4
- /**
5
- * Handler for reloading the section
6
- */
7
- reload?: () => void;
4
+ export type GenericSectionErrorStateProps<ButtonType extends ButtonComponentType = ButtonComponentType.button> = {
8
5
  /**
9
6
  * If true, border is added to the section
10
7
  *
@@ -37,6 +34,7 @@ export type GenericSectionErrorStateProps = {
37
34
  */
38
35
  progressingProps: Omit<IconsProps, 'name'>;
39
36
  useInfoIcon?: false;
37
+ customIcon?: never;
40
38
  } | {
41
39
  progressingProps?: never;
42
40
  /**
@@ -45,7 +43,25 @@ export type GenericSectionErrorStateProps = {
45
43
  * @default false
46
44
  */
47
45
  useInfoIcon: true;
46
+ customIcon?: never;
47
+ } | {
48
+ progressingProps?: never;
49
+ useInfoIcon?: never;
50
+ customIcon?: never;
48
51
  } | {
52
+ customIcon: JSX.Element;
49
53
  progressingProps?: never;
50
54
  useInfoIcon?: never;
55
+ }) & ({
56
+ /**
57
+ * Handler for reloading the section
58
+ */
59
+ reload: () => void;
60
+ buttonProps?: never;
61
+ } | {
62
+ reload?: never;
63
+ buttonProps: ButtonProps<ButtonType>;
64
+ } | {
65
+ reload?: never;
66
+ buttonProps?: never;
51
67
  });
@@ -1,3 +1,3 @@
1
1
  import { HeaderWithCreateButtonProps } from './types';
2
- export declare const HeaderWithCreateButton: ({ headerName, additionalHeaderInfo }: HeaderWithCreateButtonProps) => JSX.Element;
2
+ export declare const HeaderWithCreateButton: ({ isJobView }: HeaderWithCreateButtonProps) => JSX.Element;
3
3
  export default HeaderWithCreateButton;
@@ -1,8 +1,6 @@
1
1
  import { ActionMenuProps } from '../../ActionMenu';
2
- import { PageHeaderType } from '../types';
3
2
  export interface HeaderWithCreateButtonProps {
4
- headerName: string;
5
- additionalHeaderInfo: PageHeaderType['additionalHeaderInfo'];
3
+ isJobView?: boolean;
6
4
  }
7
5
  export declare enum CreateActionMenuItems {
8
6
  CUSTOM_APP = "create-custom-app",
@@ -1,3 +1,3 @@
1
1
  import { PageHeaderType } from './types';
2
- declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, }: PageHeaderType) => JSX.Element;
2
+ declare const PageHeader: ({ headerName, headerImage, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, onClose, tippyProps, closeIcon, }: PageHeaderType) => JSX.Element;
3
3
  export default PageHeader;
@@ -17,8 +17,10 @@ export interface PageHeaderType {
17
17
  TippyIcon?: React.FunctionComponent<any>;
18
18
  tippyMessage?: string;
19
19
  onClickTippyButton?: () => void;
20
+ tippyHeader?: string;
20
21
  };
21
22
  onClose?: () => void;
23
+ closeIcon?: JSX.Element;
22
24
  }
23
25
  export interface ServerInfo {
24
26
  currentVersion: string;
@@ -4,9 +4,11 @@ export declare const iconMap: {
4
4
  'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
5
5
  'ic-activity': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
6
  'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
+ 'ic-alibaba': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
7
8
  'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
8
9
  'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
9
10
  'ic-app-template': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
+ 'ic-argocd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
12
  'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
13
  'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
14
  'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -15,17 +17,25 @@ export declare const iconMap: {
15
17
  'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
18
  'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
17
19
  'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
+ 'ic-aws': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
18
21
  'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
22
  'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
+ 'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
24
  'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
+ 'ic-bg-deploy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
26
  'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
+ 'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
+ 'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
+ 'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
30
  'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
31
  'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
32
  'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
33
+ 'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
25
34
  'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
35
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
36
  'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
28
37
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
38
+ 'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
29
39
  'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
30
40
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
31
41
  'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -42,13 +52,17 @@ export declare const iconMap: {
42
52
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
53
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
54
  'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
+ 'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
+ 'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
57
  'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
58
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
59
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
60
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
+ 'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
62
  'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
63
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
64
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
+ 'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
52
66
  'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
67
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
68
  'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -56,6 +70,7 @@ export declare const iconMap: {
56
70
  'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
71
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
72
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
73
+ 'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
74
  'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
60
75
  'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
61
76
  'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -66,6 +81,7 @@ export declare const iconMap: {
66
81
  'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
82
  'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
83
  'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
84
+ 'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
85
  'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
86
  'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
87
  'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -91,10 +107,13 @@ export declare const iconMap: {
91
107
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
92
108
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
93
109
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
+ 'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
94
111
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
95
112
  'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
96
113
  'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
97
114
  'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
+ 'ic-floppy-disk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
+ 'ic-fluxcd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
98
117
  'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
99
118
  'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
100
119
  'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -108,9 +127,11 @@ export declare const iconMap: {
108
127
  'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
109
128
  'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
110
129
  'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
130
+ 'ic-google-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
111
131
  'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
112
132
  'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
113
133
  'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
134
+ 'ic-graph-negative': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
114
135
  'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
115
136
  'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
116
137
  'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -136,6 +157,7 @@ export declare const iconMap: {
136
157
  'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
158
  'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
159
  'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
160
+ 'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
161
  'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
162
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
163
  'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -148,6 +170,7 @@ export declare const iconMap: {
148
170
  'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
171
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
172
  'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
173
+ 'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
174
  'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
175
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
176
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -169,6 +192,8 @@ export declare const iconMap: {
169
192
  'ic-open-in-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
170
193
  'ic-openai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
171
194
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
195
+ 'ic-oracle-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
196
+ 'ic-otc-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
172
197
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
173
198
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
174
199
  'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -180,6 +205,7 @@ export declare const iconMap: {
180
205
  'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
181
206
  'ic-ratings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
182
207
  'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
208
+ 'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
183
209
  'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
184
210
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
185
211
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -210,6 +236,7 @@ export declare const iconMap: {
210
236
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
211
237
  'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
212
238
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
239
+ 'ic-symbol-greater-than': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
213
240
  'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
214
241
  'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
215
242
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -221,6 +248,7 @@ export declare const iconMap: {
221
248
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
222
249
  'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
223
250
  'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
251
+ 'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
224
252
  'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
225
253
  'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
226
254
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,2 +1,2 @@
1
1
  import { IconBaseProps } from './types';
2
- export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, }: IconBaseProps) => JSX.Element;
2
+ export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId, rotateBy, fillSpace, flip, }: IconBaseProps) => JSX.Element;
@@ -38,6 +38,12 @@ export interface IconBaseProps {
38
38
  * @example 90, 180, 270
39
39
  */
40
40
  rotateBy?: number;
41
+ /**
42
+ * Flips the icon in the specified direction
43
+ *
44
+ * @default undefined
45
+ */
46
+ flip?: 'horizontal' | 'vertical';
41
47
  /**
42
48
  * If true, the icon will expand to fill the available space of its container.
43
49
  */
@@ -5,6 +5,7 @@ export declare const illustrationMap: {
5
5
  'img-devtron-freemium': string;
6
6
  'img-man-on-rocket': string;
7
7
  'img-no-result': string;
8
+ 'no-cluster-cost-enabled': string;
8
9
  };
9
10
  export type IllustrationName = keyof typeof illustrationMap;
10
11
  export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
@@ -0,0 +1,3 @@
1
+ import { KeyboardShortcutProps } from './types';
2
+ declare const KeyboardShortcut: ({ keyboardKey }: KeyboardShortcutProps) => JSX.Element;
3
+ export default KeyboardShortcut;
@@ -0,0 +1,3 @@
1
+ import { SupportedKeyboardKeysType } from '../../../Common/Hooks';
2
+ import { IconsProps } from '../Icon';
3
+ export declare const KEY_TO_UI_MAP: Record<SupportedKeyboardKeysType, string | Pick<IconsProps, 'name' | 'rotateBy'>>;
@@ -0,0 +1 @@
1
+ export { default as KeyboardShortcut } from './KeyboardShortcut.component';
@@ -0,0 +1,4 @@
1
+ import { SupportedKeyboardKeysType } from '../../../Common/Hooks/UseRegisterShortcut/types';
2
+ export interface KeyboardShortcutProps {
3
+ keyboardKey: SupportedKeyboardKeysType;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { PromoetheusConfigProps } from './types';
2
+ declare const PromoetheusConfigCard: ({ prometheusConfig, isCostPrometheus, handleOnChange, onPrometheusAuthTypeChange, }: PromoetheusConfigProps) => JSX.Element;
3
+ export default PromoetheusConfigCard;
@@ -0,0 +1,2 @@
1
+ export { default as PromoetheusConfigCard } from './PrometheusConfigCard';
2
+ export { type PromoetheusConfig } from './types';
@@ -0,0 +1,21 @@
1
+ import { SyntheticEvent } from 'react';
2
+ import { AuthenticationType } from '../../types';
3
+ interface ValueErrorType<T = string> {
4
+ value: T;
5
+ error: string;
6
+ }
7
+ export interface PromoetheusConfig {
8
+ endpoint: ValueErrorType;
9
+ authType: ValueErrorType<AuthenticationType>;
10
+ userName: ValueErrorType;
11
+ password: ValueErrorType;
12
+ prometheusTlsClientKey: ValueErrorType;
13
+ prometheusTlsClientCert: ValueErrorType;
14
+ }
15
+ export interface PromoetheusConfigProps {
16
+ prometheusConfig: PromoetheusConfig;
17
+ handleOnChange: (event: SyntheticEvent) => void;
18
+ onPrometheusAuthTypeChange: (event: SyntheticEvent) => void;
19
+ isCostPrometheus?: boolean;
20
+ }
21
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SideNavigationProps } from './types';
2
+ export declare const SideNavigation: ({ list }: SideNavigationProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './SideNavigation';
2
+ export type { SideNavigationProps } from './types';
@@ -0,0 +1,19 @@
1
+ import { TooltipProps } from '../../../Common/Tooltip';
2
+ export type SideNavigationItemBase = {
3
+ id: string;
4
+ title: string;
5
+ dataTestId: string;
6
+ };
7
+ export type SideNavigationItemLink = SideNavigationItemBase & {
8
+ href: string;
9
+ items?: never;
10
+ tooltipProps?: TooltipProps;
11
+ };
12
+ export type SideNavigationItemGroup = SideNavigationItemBase & {
13
+ items: Omit<SideNavigationItemLink, 'items'>[];
14
+ href?: never;
15
+ tooltipProps?: never;
16
+ };
17
+ export interface SideNavigationProps {
18
+ list: (SideNavigationItemLink | SideNavigationItemGroup)[];
19
+ }
@@ -1,3 +1,3 @@
1
1
  import { FiltersTypeEnum, InternalTableProps } from './types';
2
- declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
2
+ declare const InternalTable: <RowData extends unknown, FilterVariant extends FiltersTypeEnum, AdditionalProps extends Record<string, any>>({ filtersVariant, filterData, rows, getRows, columns, ViewWrapper, resizableConfig, emptyStateConfig, additionalProps, areColumnsConfigurable, filter, setVisibleColumns, visibleColumns, stylesConfig, loading, bulkSelectionConfig, bulkSelectionReturnValue, id, handleClearBulkSelection, handleToggleBulkSelectionOnRow, paginationVariant, RowActionsOnHoverComponent, pageSizeOptions, clearFilters: userGivenUrlClearFilters, }: InternalTableProps<RowData, FilterVariant, AdditionalProps>) => JSX.Element;
3
3
  export default InternalTable;
@@ -1,5 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { OmitNever } from '../../types';
3
+ import { ActionMenuProps } from '../ActionMenu';
3
4
  import { ButtonProps } from '../Button';
4
5
  import { IconsProps } from '../Icon';
5
6
  import { NumbersCountProps } from '../NumbersCount';
@@ -30,6 +31,9 @@ export type TrailingItemType = {
30
31
  config: OmitNever<Omit<Extract<ButtonProps, {
31
32
  icon: ReactElement;
32
33
  }>, 'size' | 'variant'>>;
34
+ } | {
35
+ type: 'action-menu';
36
+ config: ActionMenuProps;
33
37
  };
34
38
  export type TrailingItemProps = TrailingItemType & {
35
39
  /**
@@ -1,3 +1,3 @@
1
1
  import { TreeViewProps } from './types';
2
- declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, }: TreeViewProps<DataAttributeType>) => JSX.Element;
2
+ declare const TreeView: <DataAttributeType = null>({ nodes, isControlled, expandedMap: expandedMapProp, selectedId, onToggle: onToggleProp, onSelect, depth, mode, flatNodeList: flatNodeListProp, getUpdateItemsRefMap: getUpdateItemsRefMapProp, variant, defaultExpandedMap, highlightSelectedHeadingOnlyWhenCollapsed, useOverflowAuto, }: TreeViewProps<DataAttributeType>) => JSX.Element;
3
3
  export default TreeView;
@@ -1,3 +1,3 @@
1
1
  import { TreeViewNodeContentProps } from './types';
2
- declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, }: TreeViewNodeContentProps) => JSX.Element;
2
+ declare const TreeViewNodeContent: ({ startIconConfig, title, subtitle, type, customTooltipConfig, strikeThrough, isSelected, variant, }: TreeViewNodeContentProps) => JSX.Element;
3
3
  export default TreeViewNodeContent;
@@ -2,3 +2,6 @@ import { TreeViewProps } from './types';
2
2
  export declare const DEFAULT_NO_ITEMS_TEXT = "No items found";
3
3
  export declare const VARIANT_TO_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
4
4
  export declare const VARIANT_TO_HOVER_CLASS_MAP: Record<TreeViewProps['variant'], string>;
5
+ export declare const VARIANT_TO_SELECTED_CLASS_MAP: Record<TreeViewProps['variant'], string>;
6
+ export declare const VARIANT_TO_TEXT_CLASS_MAP: Record<TreeViewProps['variant'], string>;
7
+ export declare const VARIANT_TO_TREE_ITEM_ACTIVE_BG_CLASS_MAP: Record<TreeViewProps['variant'], string>;
@@ -96,9 +96,11 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
96
96
  onClick?: (e: SyntheticEvent) => void;
97
97
  href?: never;
98
98
  clearQueryParamsOnNavigation?: never;
99
+ activeClassName?: never;
99
100
  } | {
100
101
  as: 'link';
101
102
  href: string;
103
+ activeClassName?: string;
102
104
  /**
103
105
  * The callback function to handle click events on the nav link.
104
106
  */
@@ -113,6 +115,7 @@ export type TreeItem<DataAttributeType = null> = BaseNode<DataAttributeType> & {
113
115
  href?: never;
114
116
  onClick?: never;
115
117
  clearQueryParamsOnNavigation?: never;
118
+ activeClassName?: never;
116
119
  });
117
120
  /**
118
121
  * Props for the TreeView component.
@@ -151,14 +154,25 @@ export type TreeViewProps<DataAttributeType = null> = {
151
154
  */
152
155
  mode?: 'navigation' | 'form';
153
156
  /**
154
- * If primary the background color will be bg__primary and bg__hover--opaque, if secondary the background color will be bg__secondary bg__hover-secondary--opaque.
157
+ * If primary the background color will be bg__primary and bg__hover--opaque \
158
+ * if secondary the background color will be bg__secondary bg__hover-secondary--opaque,
159
+ * if sidenav the background color will be bg__transparent bg__hover-sidebar-item.
155
160
  * @default 'primary'
156
161
  */
157
- variant?: 'primary' | 'secondary';
162
+ variant?: 'primary' | 'secondary' | 'sidenav';
158
163
  /**
159
164
  * @default {}
160
165
  */
161
166
  defaultExpandedMap?: Record<string, boolean>;
167
+ /**
168
+ * When true, the selected heading (`selectedId`) will be highlighted only when it is collapsed.
169
+ * @default false
170
+ */
171
+ highlightSelectedHeadingOnlyWhenCollapsed?: boolean;
172
+ /**
173
+ * @default true
174
+ */
175
+ useOverflowAuto?: boolean;
162
176
  } /**
163
177
  * WARNING: For internal use only.
164
178
  */ & ({
@@ -188,7 +202,7 @@ export type TreeViewProps<DataAttributeType = null> = {
188
202
  expandedMap?: never;
189
203
  isControlled?: false;
190
204
  });
191
- export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'> {
205
+ export interface TreeViewNodeContentProps extends Pick<BaseNode, 'startIconConfig' | 'title' | 'subtitle' | 'customTooltipConfig' | 'strikeThrough'>, Required<Pick<TreeViewProps, 'variant'>> {
192
206
  type: 'heading' | 'item';
193
207
  isSelected: boolean;
194
208
  }