@devtron-labs/devtron-fe-common-lib 1.20.4 → 1.20.5-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.
- package/dist/{@code-editor-DLmaobU2.js → @code-editor-BGXCszwe.js} +10742 -9633
- package/dist/{@common-rjsf-DS5LSU3C.js → @common-rjsf-9BW9CuqO.js} +46 -46
- package/dist/{@framer-motion-DZveCoIL.js → @framer-motion-D-YaCAW-.js} +92 -90
- package/dist/{@react-dates-CZ1bNWJM.js → @react-dates-Bo3yT8LF.js} +1 -1
- package/dist/{@react-select-DS68hCUM.js → @react-select-DTi_5fIc.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-V-8klKy9.js → @react-virtualized-sticky-tree-CuvDiqTo.js} +1 -1
- package/dist/{@vendor-3ORIJA0h.js → @vendor-DMIFbFhR.js} +26068 -17978
- package/dist/Common/API/CoreAPI.d.ts +6 -1
- package/dist/Common/API/index.d.ts +1 -1
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Common.service.d.ts +3 -1
- package/dist/Common/Constants.d.ts +45 -14
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +8 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +2 -0
- package/dist/Common/SegmentedBarChart/utils.d.ts +2 -0
- package/dist/Common/Types.d.ts +12 -4
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/VirtualClusterSidebar.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/PageHeader.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/constants.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/types.d.ts +12 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/PageHeader/utils.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/ApplicationManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/ApplicationManagementIcon/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/InfrastructureManagementIcon.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/InfrastructureManagementIcon/utils.d.ts +6 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Shared/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +2 -0
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +11 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/index.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/types.d.ts +2 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/types.d.ts +1 -1
- package/dist/Shared/Components/Badge/utils.d.ts +2 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +102 -0
- package/dist/Shared/Components/Charts/constants.d.ts +16 -0
- package/dist/Shared/Components/Charts/index.d.ts +3 -0
- package/dist/Shared/Components/Charts/plugins.d.ts +5 -0
- package/dist/Shared/Components/Charts/types.d.ts +85 -0
- package/dist/Shared/Components/Charts/utils.d.ts +12 -0
- package/dist/Shared/Components/ConfirmationModal/ForceDeleteConfirmationModal.d.ts +1 -1
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +1 -1
- package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
- package/dist/Shared/Components/ContextSwitcher/types.d.ts +0 -1
- package/dist/Shared/Components/DTFocusTrap/DTFocusTrap.d.ts +1 -1
- package/dist/Shared/Components/DTFocusTrap/types.d.ts +2 -1
- package/dist/Shared/Components/DocLink/constants.d.ts +0 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +2 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -5
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +1 -3
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +44 -3
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +7 -1
- package/dist/Shared/Components/Illustration/Illustration.d.ts +1 -1
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/constants.d.ts +3 -0
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +1 -0
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +4 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +3 -0
- package/dist/Shared/Components/PrometheusConfigurations/index.d.ts +2 -0
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +21 -0
- package/dist/Shared/Components/SelectPicker/GroupedFilterSelectPicker.example.d.ts +0 -0
- package/dist/Shared/Components/SideNavigation/SideNavigation.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/index.d.ts +2 -0
- package/dist/Shared/Components/SideNavigation/types.d.ts +19 -0
- package/dist/Shared/Components/Table/InternalTable.d.ts +1 -1
- package/dist/Shared/Components/TrailingItem/types.d.ts +4 -0
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +3 -0
- package/dist/Shared/Components/TreeView/types.d.ts +17 -3
- package/dist/Shared/Components/index.d.ts +4 -0
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -5
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +5 -20
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +32 -2
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +9 -0
- package/dist/Shared/Services/common.service.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/Shared/constants.d.ts +2 -1
- package/dist/Shared/types.d.ts +20 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-alibaba.518d61a4.svg +3 -0
- package/dist/assets/ic-argocd-app.9c5eba79.svg +61 -0
- package/dist/assets/ic-arrow-white.c5174353.svg +3 -0
- package/dist/assets/ic-aws.b094356f.svg +11 -0
- package/dist/assets/ic-bg-build.7de825b3.svg +13 -0
- package/dist/assets/ic-bg-deploy.266711fe.svg +22 -0
- package/dist/assets/ic-bg-production-pipelines.5965401c.svg +21 -0
- package/dist/assets/ic-bg-project.84658405.svg +12 -0
- package/dist/assets/ic-bg-scan.2249360c.svg +28 -0
- package/dist/assets/ic-bot.65f403dd.svg +3 -0
- package/dist/assets/ic-building.2405d07b.svg +3 -0
- package/dist/assets/ic-bulb.3906a732.svg +7 -0
- package/dist/assets/ic-circle-progress.0875625d.svg +6 -0
- package/dist/assets/ic-clipboard.2869fa7d.svg +3 -0
- package/dist/assets/ic-clock-counterclockwise.3d7c2ef1.svg +3 -0
- package/dist/assets/ic-cloud.aa7acc8a.svg +3 -0
- package/dist/assets/ic-coins.a06dce22.svg +3 -0
- package/dist/assets/ic-database-backup.b9e7c558.svg +3 -0
- package/dist/assets/ic-devtron-text.67a413b6.svg +3 -0
- package/dist/assets/ic-dot-circle.5ce1fccf.svg +3 -0
- package/dist/assets/ic-failure-color.e167df98.svg +4 -0
- package/dist/assets/ic-files-changed.04e6de3f.svg +3 -0
- package/dist/assets/ic-floppy-disk.6d392bcd.svg +3 -0
- package/dist/assets/ic-fluxcd-app.7bf7dce5.svg +22 -0
- package/dist/assets/ic-google-cloud.a0198038.svg +6 -0
- package/dist/assets/ic-graph-negative.d49ba2b7.svg +4 -0
- package/dist/assets/ic-kubernetes.7e04c3d2.svg +4 -0
- package/dist/assets/ic-line.4e8fa046.svg +3 -0
- package/dist/assets/ic-magic-wand.2c29cd4e.svg +10 -0
- package/dist/assets/ic-new-chat.f7c90f8e.svg +5 -0
- package/dist/assets/ic-oracle-cloud.5a8ee45d.svg +3 -0
- package/dist/assets/ic-otc-cloud.43b31bd8.svg +5 -0
- package/dist/assets/ic-piggybank.3a4839d7.svg +3 -0
- package/dist/assets/ic-priority-high-fill.53755d8f.svg +3 -0
- package/dist/assets/ic-priority-low-fill.79e781ae.svg +4 -0
- package/dist/assets/ic-priority-medium-fill.9abcdc4e.svg +4 -0
- package/dist/assets/ic-priority-urgent-fill.78d42fa0.svg +10 -0
- package/dist/assets/ic-red-bulb.25e01bfc.svg +9 -0
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +3 -0
- package/dist/assets/ic-spider.99b77bd8.svg +3 -0
- package/dist/assets/ic-symbol-greater-than.8f71342d.svg +3 -0
- package/dist/assets/ic-trend-up.5752ef30.svg +3 -0
- package/dist/assets/ic-vector.4530b03c.svg +3 -0
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1020 -957
- package/package.json +2 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/assets/ic-gift-animated.d848dfa3.svg +0 -1
- package/dist/assets/ic-ratings.a1d31244.svg +0 -13
- package/dist/assets/ic-success-blue.7b3a2720.svg +0 -4
- package/dist/assets/img-devtron-freemium.d0657c61.webp +0 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
import { ChartOptions } from 'chart.js';
|
2
|
+
import { AppThemeType } from '../../Providers';
|
3
|
+
import { Never } from '../../types';
|
4
|
+
export type ChartType = 'area' | 'pie' | 'stackedBar' | 'stackedBarHorizontal' | 'line';
|
5
|
+
type ColorTokensType = 'DeepPlum' | 'Magenta' | 'Slate' | 'Lavender' | 'SkyBlue' | 'AquaTeal' | 'LimeGreen' | 'CoralRed' | 'GoldenYellow' | 'CharcoalGray' | 'Gray';
|
6
|
+
type VariantsType = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
7
|
+
export type ChartColorKey = `${ColorTokensType}${VariantsType}`;
|
8
|
+
export type ChartTypeWithoutPie = Exclude<ChartType, 'pie'>;
|
9
|
+
interface BaseSimpleDataset {
|
10
|
+
datasetName: string;
|
11
|
+
yAxisValues: number[];
|
12
|
+
}
|
13
|
+
export interface SimpleDataset extends BaseSimpleDataset {
|
14
|
+
backgroundColor: ChartColorKey;
|
15
|
+
}
|
16
|
+
export interface SimpleDatasetForPie extends BaseSimpleDataset {
|
17
|
+
backgroundColor: Array<ChartColorKey>;
|
18
|
+
}
|
19
|
+
export interface SimpleDatasetForLine extends BaseSimpleDataset {
|
20
|
+
borderColor: ChartColorKey;
|
21
|
+
}
|
22
|
+
type XYAxisMax = {
|
23
|
+
xAxisMax?: number;
|
24
|
+
yAxisMax?: number;
|
25
|
+
};
|
26
|
+
type TypeAndDatasetsType = ({
|
27
|
+
type: 'pie';
|
28
|
+
/**
|
29
|
+
* Needs to be memoized
|
30
|
+
*/
|
31
|
+
datasets: SimpleDatasetForPie;
|
32
|
+
separatorIndex?: never;
|
33
|
+
averageLineValue?: never;
|
34
|
+
} & Never<XYAxisMax>) | ({
|
35
|
+
type: 'line';
|
36
|
+
datasets: SimpleDatasetForLine[];
|
37
|
+
separatorIndex?: never;
|
38
|
+
averageLineValue?: number;
|
39
|
+
} & XYAxisMax) | ({
|
40
|
+
type: 'area';
|
41
|
+
datasets: SimpleDataset[];
|
42
|
+
separatorIndex?: never;
|
43
|
+
averageLineValue?: number;
|
44
|
+
} & XYAxisMax) | ({
|
45
|
+
type: Exclude<ChartType, 'pie' | 'line' | 'area'>;
|
46
|
+
datasets: SimpleDataset[];
|
47
|
+
separatorIndex?: number;
|
48
|
+
averageLineValue?: never;
|
49
|
+
} & XYAxisMax);
|
50
|
+
export type ChartProps = {
|
51
|
+
id: string;
|
52
|
+
/**
|
53
|
+
* The x-axis labels. Needs to be memoized
|
54
|
+
*/
|
55
|
+
xAxisLabels: string[];
|
56
|
+
/**
|
57
|
+
* Hide the x and y axis and grid lines
|
58
|
+
* @default false
|
59
|
+
*/
|
60
|
+
hideAxis?: boolean;
|
61
|
+
/**
|
62
|
+
* Callback function for chart click events
|
63
|
+
*/
|
64
|
+
onChartClick?: ChartOptions['onClick'];
|
65
|
+
} & TypeAndDatasetsType;
|
66
|
+
export type TransformDatasetProps = {
|
67
|
+
appTheme: AppThemeType;
|
68
|
+
} & ({
|
69
|
+
type: 'pie';
|
70
|
+
dataset: SimpleDatasetForPie;
|
71
|
+
} | {
|
72
|
+
type: 'line';
|
73
|
+
dataset: SimpleDatasetForLine;
|
74
|
+
} | {
|
75
|
+
type: Exclude<ChartType, 'pie' | 'line'>;
|
76
|
+
dataset: SimpleDataset;
|
77
|
+
});
|
78
|
+
export type GetBackgroundAndBorderColorProps = TransformDatasetProps;
|
79
|
+
export type TransformDataForChartProps = {
|
80
|
+
appTheme: AppThemeType;
|
81
|
+
} & TypeAndDatasetsType;
|
82
|
+
export interface GetDefaultOptionsParams extends Pick<ChartProps, 'hideAxis' | 'onChartClick' | 'type' | 'xAxisMax' | 'yAxisMax'> {
|
83
|
+
appTheme: AppThemeType;
|
84
|
+
}
|
85
|
+
export {};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ChartDataset, ChartOptions, ChartType as ChartJSChartType } from 'chart.js';
|
2
|
+
import { ChartType, GetDefaultOptionsParams, TransformDataForChartProps } from './types';
|
3
|
+
export declare const getChartJSType: (type: ChartType) => ChartJSChartType;
|
4
|
+
export declare const getDefaultOptions: ({ type, appTheme, hideAxis, xAxisMax, yAxisMax, onChartClick, }: GetDefaultOptionsParams) => ChartOptions;
|
5
|
+
export declare const transformDataForChart: (props: TransformDataForChartProps) => (ChartDataset<"line"> | {
|
6
|
+
label: string;
|
7
|
+
data: number[];
|
8
|
+
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);
|
9
|
+
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);
|
10
|
+
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);
|
11
|
+
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);
|
12
|
+
})[];
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ForceDeleteConfirmationProps } from './types';
|
2
|
-
export declare const ForceDeleteConfirmationModal: ({ title, subtitle, onDelete, closeConfirmationModal,
|
2
|
+
export declare const ForceDeleteConfirmationModal: ({ title, subtitle, onDelete, closeConfirmationModal, }: ForceDeleteConfirmationProps) => JSX.Element;
|
@@ -135,7 +135,7 @@ export interface CannotDeleteModalProps extends Partial<Pick<DeleteConfirmationM
|
|
135
135
|
* This interface extends selected properties from `DeleteConfirmationModalProps`
|
136
136
|
* and `ConfirmationModalProps` to configure the force delete confirmation modal.
|
137
137
|
*/
|
138
|
-
export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteConfirmationModalProps, 'onDelete' | 'closeConfirmationModal'
|
138
|
+
export interface ForceDeleteConfirmationProps extends Partial<Pick<DeleteConfirmationModalProps, 'onDelete' | 'closeConfirmationModal'>>, Partial<Pick<ConfirmationModalProps, 'title' | 'subtitle'>> {
|
139
139
|
}
|
140
140
|
export interface ConfirmationModalContextType {
|
141
141
|
settersRef: MutableRefObject<{
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ContextSwitcherTypes } from './types';
|
2
|
-
export declare const ContextSwitcher: ({ inputId, options, inputValue, onInputChange, isLoading, value, onChange, placeholder, filterOption, formatOptionLabel, optionListError, reloadOptionList, classNamePrefix,
|
2
|
+
export declare const ContextSwitcher: ({ inputId, options, inputValue, onInputChange, isLoading, value, onChange, placeholder, filterOption, formatOptionLabel, optionListError, reloadOptionList, classNamePrefix, }: ContextSwitcherTypes) => JSX.Element;
|
@@ -3,7 +3,6 @@ import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
|
|
3
3
|
export interface ContextSwitcherTypes extends Pick<SelectPickerProps, 'placeholder' | 'onChange' | 'value' | 'isLoading' | 'onInputChange' | 'inputValue' | 'inputId' | 'formatOptionLabel' | 'filterOption' | 'optionListError' | 'reloadOptionList' | 'classNamePrefix'> {
|
4
4
|
options: GroupBase<SelectPickerOptionType<string | number>>[];
|
5
5
|
isAppDataAvailable?: boolean;
|
6
|
-
resource: 'Cluster' | 'Release' | 'Tenant' | 'Application' | 'Job' | 'Application Group' | 'Chart Store';
|
7
6
|
}
|
8
7
|
export interface RecentlyVisitedOptions extends SelectPickerOptionType<number> {
|
9
8
|
isDisabled?: boolean;
|
@@ -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.
|
@@ -86,7 +86,6 @@ export declare const DOCUMENTATION: {
|
|
86
86
|
readonly GLOBAL_CONFIG_PLUGINS_POLICY: "global-configurations/plugins-policy";
|
87
87
|
readonly GLOBAL_CONFIG_APPROVAL_POLICY: "global-configurations/approval-policy";
|
88
88
|
readonly GLOBAL_CONFIG_SSO_LOGIN_LDAP: "global-configurations/authorization/sso-login/ldap";
|
89
|
-
readonly GLOBAL_CONFIG_SSO_LOGIN_OIDC: "global-configurations/authorization/sso-login/oidc";
|
90
89
|
readonly GLOBAL_CONFIG_SSO_LOGIN_MICROSOFT: "global-configurations/authorization/sso-login/microsoft";
|
91
90
|
readonly GLOBAL_CONFIG_PULL_IMAGE_DIGEST: "global-configurations/pull-image-digest";
|
92
91
|
readonly GLOBAL_CONFIG_TAGS: "getting-started/global-configurations/tags-policy";
|
@@ -31,7 +31,7 @@ type FeatureDescriptionModalWithTabsConfig = {
|
|
31
31
|
imageStyles?: never;
|
32
32
|
};
|
33
33
|
export type FeatureDescriptionModalProps = {
|
34
|
-
title:
|
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 };
|
package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts
CHANGED
@@ -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: ({
|
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
|
-
|
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,28 +4,40 @@ 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
|
+
'ic-arrow-white': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
16
|
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
17
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
18
|
'ic-asterisk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
19
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
20
|
'ic-aws-codecommit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
|
+
'ic-aws': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
22
|
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
23
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
|
+
'ic-bg-build': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
25
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
|
+
'ic-bg-deploy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
27
|
'ic-bg-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
|
+
'ic-bg-production-pipelines': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
|
+
'ic-bg-project': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
|
+
'ic-bg-scan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
31
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
32
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
33
|
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
34
|
+
'ic-bot': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
35
|
'ic-brain': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
36
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
37
|
'ic-bug': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
38
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
|
+
'ic-building': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
|
+
'ic-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
41
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
42
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
43
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -41,14 +53,20 @@ export declare const iconMap: {
|
|
41
53
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
54
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
55
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
|
+
'ic-circle-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
57
|
'ic-clean-brush': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
|
+
'ic-clipboard': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
|
+
'ic-clock-counterclockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
60
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
61
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
62
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
|
+
'ic-close': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
64
|
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
|
+
'ic-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
66
|
'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
67
|
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
68
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
|
+
'ic-coins': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
70
|
'ic-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
71
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
72
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -56,6 +74,7 @@ export declare const iconMap: {
|
|
56
74
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
75
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
76
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
|
+
'ic-database-backup': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
78
|
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
79
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
80
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -66,6 +85,7 @@ export declare const iconMap: {
|
|
66
85
|
'ic-devtron-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
86
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
87
|
'ic-devtron-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
|
+
'ic-devtron-text': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
89
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
90
|
'ic-diff-added': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
91
|
'ic-diff-deleted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -73,6 +93,7 @@ export declare const iconMap: {
|
|
73
93
|
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
94
|
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
95
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
|
+
'ic-dot-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
97
|
'ic-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
98
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
99
|
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -85,22 +106,25 @@ export declare const iconMap: {
|
|
85
106
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
107
|
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
108
|
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
|
+
'ic-failure-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
110
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
111
|
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
112
|
'ic-file-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
113
|
'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
114
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
115
|
'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
|
+
'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
117
|
'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
118
|
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
119
|
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
120
|
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
|
+
'ic-floppy-disk': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
|
+
'ic-fluxcd-app': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
123
|
'ic-folder-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
124
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
125
|
'ic-folder': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
126
|
'ic-gavel': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
127
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
|
-
'ic-gift-animated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
128
|
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
129
|
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
130
|
'ic-git-branch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -108,9 +132,11 @@ export declare const iconMap: {
|
|
108
132
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
133
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
134
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
|
+
'ic-google-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
136
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
137
|
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
138
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
|
+
'ic-graph-negative': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
140
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
141
|
'ic-group-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
142
|
'ic-group-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -136,11 +162,13 @@ export declare const iconMap: {
|
|
136
162
|
'ic-key-enter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
163
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
164
|
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
|
+
'ic-kubernetes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
166
|
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
167
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
141
168
|
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
169
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
143
170
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
171
|
+
'ic-line': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
172
|
'ic-link': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
145
173
|
'ic-linked-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
174
|
'ic-list-bullets': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -148,6 +176,7 @@ export declare const iconMap: {
|
|
148
176
|
'ic-locked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
177
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
178
|
'ic-logs': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
179
|
+
'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
180
|
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
152
181
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
153
182
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -162,6 +191,7 @@ export declare const iconMap: {
|
|
162
191
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
163
192
|
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
164
193
|
'ic-namespace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
194
|
+
'ic-new-chat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
165
195
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
166
196
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
167
197
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -169,17 +199,25 @@ export declare const iconMap: {
|
|
169
199
|
'ic-open-in-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
170
200
|
'ic-openai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
171
201
|
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
202
|
+
'ic-oracle-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
203
|
+
'ic-otc-cloud': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
172
204
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
173
205
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
174
206
|
'ic-paper-plane': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
175
207
|
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
176
208
|
'ic-pause-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
177
209
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
|
+
'ic-piggybank': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
178
211
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
212
|
+
'ic-priority-high-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
213
|
+
'ic-priority-low-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
214
|
+
'ic-priority-medium-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
215
|
+
'ic-priority-urgent-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
179
216
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
180
217
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
181
|
-
'ic-
|
218
|
+
'ic-red-bulb': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
182
219
|
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
220
|
+
'ic-right-panel-collapse': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
183
221
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
184
222
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
185
223
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -192,6 +230,7 @@ export declare const iconMap: {
|
|
192
230
|
'ic-sparkle-ai-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
193
231
|
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
194
232
|
'ic-speedometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
233
|
+
'ic-spider': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
195
234
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
196
235
|
'ic-spray-can': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
197
236
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -206,10 +245,10 @@ export declare const iconMap: {
|
|
206
245
|
'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
207
246
|
'ic-strategy-rolling-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
208
247
|
'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
209
|
-
'ic-success-blue': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
210
248
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
211
249
|
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
212
250
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
251
|
+
'ic-symbol-greater-than': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
213
252
|
'ic-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
214
253
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
215
254
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -221,6 +260,7 @@ export declare const iconMap: {
|
|
221
260
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
222
261
|
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
223
262
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
263
|
+
'ic-trend-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
224
264
|
'ic-two-cubes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
225
265
|
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
226
266
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -228,6 +268,7 @@ export declare const iconMap: {
|
|
228
268
|
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
229
269
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
230
270
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
271
|
+
'ic-vector': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
231
272
|
'ic-view-variable-toggle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
232
273
|
'ic-visibility-off': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
233
274
|
'ic-visibility-on': 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;
|
@@ -27,7 +27,7 @@ export interface IconBaseProps {
|
|
27
27
|
*
|
28
28
|
* @example 'B500', 'N200', 'G50', 'R700'
|
29
29
|
*/
|
30
|
-
color
|
30
|
+
color?: IconBaseColorType;
|
31
31
|
/**
|
32
32
|
* A unique identifier for testing purposes, typically used in test automation.
|
33
33
|
*/
|
@@ -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
|
*/
|
@@ -2,9 +2,9 @@ import { IllustrationBaseProps } from './types';
|
|
2
2
|
export declare const illustrationMap: {
|
3
3
|
'img-mechanical-operation': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'img-code': string;
|
5
|
-
'img-devtron-freemium': string;
|
6
5
|
'img-man-on-rocket': string;
|
7
6
|
'img-no-result': string;
|
7
|
+
'no-cluster-cost-enabled': string;
|
8
8
|
};
|
9
9
|
export type IllustrationName = keyof typeof illustrationMap;
|
10
10
|
export interface IllustrationProps extends Omit<IllustrationBaseProps, 'name' | 'illustrationMap'> {
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as KeyboardShortcut } from './KeyboardShortcut.component';
|
@@ -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 {};
|
File without changes
|