@devtron-labs/devtron-fe-common-lib 1.13.0-beta-8 → 1.13.0-beta-9
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-DfxVL5Vn.js → @common-rjsf-CFz7q72H.js} +14106 -14719
- package/dist/{@framer-motion-DyOLEeMN.js → @framer-motion-CR14HVwJ.js} +1 -1
- package/dist/{@react-dates-B7d8RWU9.js → @react-dates-z_WnuIha.js} +14 -14
- package/dist/{@react-select-Coo19Q6a.js → @react-select-C1KOG39W.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BPjPJDIR.js → @react-virtualized-sticky-tree-DE3LznCK.js} +1 -1
- package/dist/{@vendor-D9q4wrnL.js → @vendor-0Z6AwxJy.js} +13157 -13167
- package/dist/Common/Checkbox.d.ts +5 -0
- package/dist/Common/Common.service.d.ts +2 -2
- package/dist/Common/Constants.d.ts +2 -2
- package/dist/Common/Helper.d.ts +1 -5
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -4
- package/dist/Common/Types.d.ts +3 -4
- package/dist/Common/index.d.ts +3 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Pages/ResourceBrowser/service.d.ts +1 -1
- package/dist/Pages/ResourceBrowser/types.d.ts +0 -38
- package/dist/Shared/Components/ActionMenu/ActionMenu.component.d.ts +2 -1
- package/dist/Shared/Components/ActionMenu/ActionMenuOption.d.ts +3 -0
- package/dist/Shared/Components/ActionMenu/index.d.ts +2 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +11 -88
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +1 -3
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/service.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/types.d.ts +77 -12
- package/dist/Shared/Components/CICDHistory/utils.d.ts +3 -7
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +0 -4
- package/dist/Shared/Components/Error/utils.d.ts +0 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +3 -1
- package/dist/Shared/Components/Header/HelpNav.d.ts +3 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/constants.d.ts +4 -5
- package/dist/Shared/Components/Header/types.d.ts +10 -15
- package/dist/Shared/Components/Header/utils.d.ts +1 -5
- package/dist/Shared/Components/Icon/Icon.d.ts +17 -35
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +8 -30
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +1 -2
- package/dist/Shared/Components/LoadingCard.d.ts +5 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -2
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -4
- package/dist/Shared/Components/StatusComponent/types.d.ts +1 -2
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +7 -33
- package/dist/Shared/Components/TargetPlatforms/TargetPlatformListTooltip.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +3 -3
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +1 -11
- package/dist/Shared/constants.d.ts +24 -18
- package/dist/Shared/types.d.ts +5 -110
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-arrows-clockwise.5858ba0a.svg +3 -0
- package/dist/assets/ic-charts.f41e185f.svg +19 -0
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +23 -0
- package/dist/assets/{ic-checkbox-unselected.8054e3d7.svg → ic-check-grey.f556e371.svg} +4 -2
- package/dist/assets/ic-disconnected.551d6161.svg +29 -0
- package/dist/assets/ic-discord-fill.1a1b291d.svg +19 -0
- package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
- package/dist/assets/ic-feedback.d32fa6b0.svg +19 -0
- package/dist/assets/ic-files.fc290dee.svg +19 -0
- package/dist/assets/ic-filter-applied.56f397cb.svg +4 -0
- package/dist/assets/{ic-caret-down-small.7c4f88bf.svg → ic-filter.d6f03b78.svg} +1 -1
- package/dist/assets/ic-flask.d0624c30.svg +3 -0
- package/dist/assets/ic-hibernate-circle.7c32c56e.svg +3 -0
- package/dist/assets/{ic-checkbox-unselected.ab91cdba.svg → ic-hibernate.263ffcea.svg} +1 -1
- package/dist/assets/{ic-checkbox-selected.c5539d6f.svg → ic-k8s-job.f4414c10.svg} +3 -4
- package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
- package/dist/assets/ic-login-devtron-logo.702a1d04.svg +22 -0
- package/dist/assets/{ic-caret-right.0ff813c2.svg → ic-magnifying-glass.cf47bce0.svg} +1 -1
- package/dist/assets/{ic-checkbox-hover.93e8d66a.svg → ic-medal.a2e911f5.svg} +3 -4
- package/dist/assets/ic-megaphone.b9f9a901.svg +19 -0
- package/dist/assets/ic-more-vertical.6b4cc903.svg +3 -0
- package/dist/assets/ic-onboarding.c98f9ef9.svg +19 -0
- package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
- package/dist/assets/ic-strategy-blue-green.0b348d03.svg +6 -0
- package/dist/assets/ic-strategy-canary.db010ee7.svg +5 -0
- package/dist/assets/ic-strategy-recreate.f0acddaa.svg +4 -0
- package/dist/assets/ic-strategy-rolling.1c356cdb.svg +6 -0
- package/dist/assets/ic-sun.47c14f53.svg +3 -0
- package/dist/assets/{ic-hibernate.f75c1e70.svg → ic-timeout-red.5eda1010.svg} +3 -1
- package/dist/assets/ic-traffic-signal.f23a1086.svg +3 -0
- package/dist/index.d.ts +6 -3
- package/dist/index.js +850 -883
- package/package.json +1 -1
- package/dist/@common-rjsf-6fcCPJuJ.js +0 -617
- package/dist/Common/Checkbox/Checkbox.d.ts +0 -2
- package/dist/Common/Checkbox/index.d.ts +0 -1
- package/dist/Common/Drawer/index.d.ts +0 -1
- package/dist/Common/EmptyState/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/index.d.ts +0 -1
- package/dist/Pages/GlobalConfigurations/ClustersAndEnvironments/types.d.ts +0 -8
- package/dist/Shared/Components/ActionMenu/ActionMenuItem.d.ts +0 -2
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +0 -275
- package/dist/Shared/Components/ActionMenu/utils.d.ts +0 -7
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +0 -2
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/index.d.ts +0 -3
- package/dist/Shared/Components/AppStatusModal/service.d.ts +0 -4
- package/dist/Shared/Components/AppStatusModal/types.d.ts +0 -84
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +0 -8
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +0 -10
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +0 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +0 -22
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +0 -20
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +0 -10
- package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +0 -2
- package/dist/Shared/Components/Header/HelpButton.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/Testimonials.components.d.ts +0 -3
- package/dist/Shared/Components/Popover/Popover.component.d.ts +0 -8
- package/dist/Shared/Components/Popover/index.d.ts +0 -3
- package/dist/Shared/Components/Popover/types.d.ts +0 -105
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +0 -2
- package/dist/Shared/Components/Popover/utils.d.ts +0 -92
- package/dist/Shared/Components/Switch/Switch.component.d.ts +0 -3
- package/dist/Shared/Components/Switch/constants.d.ts +0 -14
- package/dist/Shared/Components/Switch/index.d.ts +0 -3
- package/dist/Shared/Components/Switch/types.d.ts +0 -101
- package/dist/Shared/Components/Switch/utils.d.ts +0 -10
- package/dist/assets/@code-editor.css +0 -1
- package/dist/assets/ic-amazon-eks.13404569.svg +0 -5
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +0 -3
- package/dist/assets/ic-azure-aks.a9e437d5.svg +0 -46
- package/dist/assets/ic-bulk-check.0f698efa.svg +0 -21
- package/dist/assets/ic-bulk-check.99e92f7a.svg +0 -21
- package/dist/assets/ic-celebration.77350694.svg +0 -238
- package/dist/assets/ic-chat-circle-online.51348da5.svg +0 -4
- package/dist/assets/ic-checkbox-hover.0151d832.svg +0 -20
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +0 -22
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +0 -22
- package/dist/assets/ic-checkbox-selected.47444fab.svg +0 -20
- package/dist/assets/ic-cloud-vms.27ea954e.svg +0 -5
- package/dist/assets/ic-cluster.71ba9e26.svg +0 -3
- package/dist/assets/ic-delete-dots.5380e0d0.svg +0 -62
- package/dist/assets/ic-disconnect.2ad261fc.svg +0 -3
- package/dist/assets/ic-discord-fill.103b579a.svg +0 -3
- package/dist/assets/ic-edit.3249ed32.svg +0 -3
- package/dist/assets/ic-enterprise-feat.5ee25d5b.svg +0 -3
- package/dist/assets/ic-enterprise-tag.209dd129.svg +0 -43
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +0 -3
- package/dist/assets/ic-expand-sm.a9a724f8.svg +0 -3
- package/dist/assets/ic-file-edit.96a172c7.svg +0 -3
- package/dist/assets/ic-file.c3c45e13.svg +0 -3
- package/dist/assets/ic-files.b0ebea46.svg +0 -3
- package/dist/assets/ic-gift-gradient.7690a246.svg +0 -9
- package/dist/assets/ic-gift.9b048fc7.svg +0 -3
- package/dist/assets/ic-gitlab.ac331d67.svg +0 -31
- package/dist/assets/ic-google-gke.07314724.svg +0 -9
- package/dist/assets/ic-install.28c3beec.svg +0 -3
- package/dist/assets/ic-k3s.7f4bf72d.svg +0 -3
- package/dist/assets/ic-kind.bd8ee992.svg +0 -9
- package/dist/assets/ic-laptop.485e21b4.svg +0 -3
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +0 -94
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +0 -3
- package/dist/assets/ic-megaphone-right.9d6bcd36.svg +0 -3
- package/dist/assets/ic-minikube.d9ff1575.svg +0 -9
- package/dist/assets/ic-mobile.7c649251.svg +0 -4
- package/dist/assets/ic-path.d4fef3b0.svg +0 -3
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/ic-ubuntu.fa47508f.svg +0 -4
- package/dist/assets/ic-user-circle.7d7152fa.svg +0 -3
- package/dist/assets/ic-wifi-slash.d0390749.svg +0 -3
@@ -1,3 +1,3 @@
|
|
1
|
-
import { AnimatePresence
|
1
|
+
import { AnimatePresence } from 'framer-motion';
|
2
2
|
export * from './MotionDiv';
|
3
|
-
export { AnimatePresence
|
3
|
+
export { AnimatePresence };
|
@@ -1,3 +1,5 @@
|
|
1
|
-
|
1
|
+
export interface HeaderWithCreateButtonProps {
|
2
|
+
headerName: string;
|
3
|
+
}
|
2
4
|
export declare const HeaderWithCreateButton: ({ headerName }: HeaderWithCreateButtonProps) => JSX.Element;
|
3
5
|
export default HeaderWithCreateButton;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PageHeaderType } from './types';
|
2
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, tippyProps, }: PageHeaderType) => JSX.Element;
|
2
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
|
3
3
|
export default PageHeader;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export declare const
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const ENTERPRISE_HELP_ACTION_MENU_ITEMS: HelpButtonActionMenuProps['options'][number]['items'];
|
1
|
+
import { HelpOptionType } from './types';
|
2
|
+
export declare const EnterpriseHelpOptions: HelpOptionType[];
|
3
|
+
export declare const OSSHelpOptions: HelpOptionType[];
|
4
|
+
export declare const TrialHelpOptions: HelpOptionType[];
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ModuleStatus } from '../../types';
|
2
2
|
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
3
|
-
import { ActionMenuProps } from '../ActionMenu';
|
4
3
|
export declare enum InstallationType {
|
5
4
|
OSS_KUBECTL = "oss_kubectl",
|
6
5
|
OSS_HELM = "oss_helm",
|
@@ -17,6 +16,7 @@ export interface PageHeaderType {
|
|
17
16
|
showCloseButton?: boolean;
|
18
17
|
onClose?: () => void;
|
19
18
|
markAsBeta?: boolean;
|
19
|
+
showAnnouncementHeader?: boolean;
|
20
20
|
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
21
21
|
isTippyCustomized?: boolean;
|
22
22
|
tippyRedirectLink?: string;
|
@@ -34,21 +34,16 @@ export interface ServerInfo {
|
|
34
34
|
export interface ServerInfoResponse extends ResponseType {
|
35
35
|
result?: ServerInfo;
|
36
36
|
}
|
37
|
-
export interface
|
37
|
+
export interface HelpNavType {
|
38
|
+
className: string;
|
39
|
+
setShowHelpCard: React.Dispatch<React.SetStateAction<boolean>>;
|
38
40
|
serverInfo: ServerInfo;
|
39
41
|
fetchingServerInfo: boolean;
|
40
|
-
|
42
|
+
setGettingStartedClicked: (isClicked: boolean) => void;
|
43
|
+
showHelpCard: boolean;
|
41
44
|
}
|
42
|
-
export
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
ABOUT_DEVTRON = "about-devtron",
|
47
|
-
REQUEST_SUPPORT = "request-support",
|
48
|
-
OPEN_NEW_TICKET = "open-new-ticket",
|
49
|
-
VIEW_ALL_TICKETS = "view-all-tickets",
|
50
|
-
GIVE_FEEDBACK = "give-feedback",
|
51
|
-
CHAT_WITH_SUPPORT = "chat-with-support",
|
52
|
-
RAISE_ISSUE_REQUEST = "raise-issue-request"
|
45
|
+
export interface HelpOptionType {
|
46
|
+
name: string;
|
47
|
+
link: string;
|
48
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
53
49
|
}
|
54
|
-
export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
|
@@ -1,10 +1,6 @@
|
|
1
1
|
import { DevtronLicenseInfo } from '../License';
|
2
|
-
import { HelpButtonActionMenuProps } from './types';
|
3
2
|
export declare const getDateInMilliseconds: (days: any) => number;
|
4
3
|
export declare const handlePostHogEventUpdate: (eventName: string) => Promise<void>;
|
5
4
|
export declare const setActionWithExpiry: (key: string, days: number) => void;
|
6
5
|
export declare const getIsShowingLicenseData: (licenseData: DevtronLicenseInfo) => boolean;
|
7
|
-
export declare const
|
8
|
-
isEnterprise: boolean;
|
9
|
-
isTrial: boolean;
|
10
|
-
}) => HelpButtonActionMenuProps["options"];
|
6
|
+
export declare const getHelpOptions: (isEnterprise: boolean, isTrial: boolean) => import('./types').HelpOptionType[];
|
@@ -3,15 +3,13 @@ export declare const iconMap: {
|
|
3
3
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
5
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
|
-
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
6
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
7
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
8
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
-
'ic-
|
10
|
+
'ic-arrows-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
11
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
12
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
|
-
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
13
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
14
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
15
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -22,12 +20,9 @@ export declare const iconMap: {
|
|
22
20
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
21
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
22
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
-
'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
23
|
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
|
-
'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
24
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
25
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
|
-
'ic-chat-circle-online': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
26
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
27
|
'ic-checks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
28
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -36,8 +31,6 @@ export declare const iconMap: {
|
|
36
31
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
37
32
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
33
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
39
|
-
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
40
|
-
'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
41
34
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
42
35
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
36
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -45,38 +38,28 @@ export declare const iconMap: {
|
|
45
38
|
'ic-cpu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
39
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
40
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
|
-
'ic-delete-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
41
|
'ic-delete-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
42
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
43
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
44
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
45
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
-
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
-
'ic-discord-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
46
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
47
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
|
-
'ic-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
|
-
'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
|
-
'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
48
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
49
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
|
-
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
64
|
-
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
65
50
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
66
|
-
'ic-
|
51
|
+
'ic-fast-forward': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
52
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
|
-
'ic-
|
69
|
-
'ic-
|
53
|
+
'ic-filter-applied': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
|
+
'ic-filter': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
|
+
'ic-flask': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
56
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
57
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
|
-
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
|
-
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
58
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
59
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
60
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
61
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
62
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
79
|
-
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
63
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
64
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
65
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -86,32 +69,29 @@ export declare const iconMap: {
|
|
86
69
|
'ic-helm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
70
|
'ic-help-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
71
|
'ic-help-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
|
+
'ic-hibernate-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
73
|
'ic-hibernate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
90
74
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
91
75
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
92
76
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
93
|
-
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
77
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
95
|
-
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
96
78
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
97
79
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
|
-
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
99
|
-
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
100
80
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
|
+
'ic-lego': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
82
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
83
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
84
|
'ic-livspace': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
|
+
'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
86
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
|
+
'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
88
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
89
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
107
|
-
'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
108
|
-
'ic-megaphone-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
109
90
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
110
91
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
111
|
-
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
112
92
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
113
|
-
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
93
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
94
|
+
'ic-more-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
95
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
96
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
97
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -120,8 +100,8 @@ export declare const iconMap: {
|
|
120
100
|
'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
121
101
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
102
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
|
-
'ic-path': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
124
103
|
'ic-pencil': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
|
+
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
125
105
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
126
106
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
127
107
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -131,11 +111,15 @@ export declare const iconMap: {
|
|
131
111
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
132
112
|
'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
133
113
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
134
|
-
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
135
114
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
115
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
137
116
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
|
+
'ic-strategy-blue-green': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
118
|
+
'ic-strategy-canary': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
119
|
+
'ic-strategy-recreate': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
|
+
'ic-strategy-rolling': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
121
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
122
|
+
'ic-sun': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
139
123
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
140
124
|
'ic-tata1mg': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
141
125
|
'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -143,14 +127,12 @@ export declare const iconMap: {
|
|
143
127
|
'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
144
128
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
145
129
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
130
|
+
'ic-traffic-signal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
146
131
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
147
|
-
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
148
132
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
149
|
-
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
150
133
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
151
134
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
152
135
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
153
|
-
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
154
136
|
};
|
155
137
|
export type IconName = keyof typeof iconMap;
|
156
138
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color }: IconBaseProps) => JSX.Element;
|
@@ -3,44 +3,22 @@ import { TooltipProps } from '@Common/Tooltip/types';
|
|
3
3
|
import { IconBaseColorType, IconBaseSizeType } from '../../index';
|
4
4
|
type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
|
5
5
|
export interface IconBaseProps {
|
6
|
-
/**
|
7
|
-
* The name of the icon to render.
|
8
|
-
*/
|
6
|
+
/** The name of the icon to render. */
|
9
7
|
name: keyof IconMap;
|
10
|
-
/**
|
11
|
-
* A map containing all available icons.
|
12
|
-
*/
|
8
|
+
/** The map containing all available icons. */
|
13
9
|
iconMap: IconMap;
|
14
10
|
/**
|
15
|
-
* The size of the icon in pixels.
|
16
|
-
*
|
11
|
+
* The size of the icon in pixels.
|
17
12
|
* @default 16
|
18
13
|
*/
|
19
|
-
size?: IconBaseSizeType
|
20
|
-
/**
|
21
|
-
* Configuration for the tooltip displayed when hovering over the icon.
|
22
|
-
*/
|
14
|
+
size?: IconBaseSizeType;
|
15
|
+
/** Props to configure the tooltip when hovering over the icon. */
|
23
16
|
tooltipProps?: TooltipProps;
|
24
17
|
/**
|
25
|
-
* The color of the icon
|
26
|
-
* If
|
27
|
-
*
|
28
|
-
* @example 'B500', 'N200', 'G50', 'R700'
|
18
|
+
* The color of the icon (color tokens). \
|
19
|
+
* If `null`, the default color present in icon is used.
|
20
|
+
* @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
|
29
21
|
*/
|
30
22
|
color: IconBaseColorType;
|
31
|
-
/**
|
32
|
-
* A unique identifier for testing purposes, typically used in test automation.
|
33
|
-
*/
|
34
|
-
dataTestId?: string;
|
35
|
-
/**
|
36
|
-
* Rotates the icon by the specified number of degrees.
|
37
|
-
*
|
38
|
-
* @example 90, 180, 270
|
39
|
-
*/
|
40
|
-
rotateBy?: number;
|
41
|
-
/**
|
42
|
-
* If true, the icon will expand to fill the available space of its container.
|
43
|
-
*/
|
44
|
-
fillSpace?: boolean;
|
45
23
|
}
|
46
24
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { InfoBlockVariant } from '../../constants';
|
2
1
|
import { ButtonProps } from '../Button';
|
3
2
|
import { InfoBlockProps } from './types';
|
4
|
-
export declare const
|
3
|
+
export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
|
4
|
+
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
|
5
5
|
export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
6
6
|
export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
7
7
|
export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import { ComponentSizeType
|
2
|
+
import { ComponentSizeType } from '../../constants';
|
3
3
|
import { BorderConfigType, ComponentLayoutType } from '../../types';
|
4
4
|
import { ButtonComponentType, ButtonProps } from '../Button';
|
5
5
|
export type InfoBlockProps = {
|
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
|
|
10
10
|
/**
|
11
11
|
* @default 'information'
|
12
12
|
*/
|
13
|
-
variant?:
|
13
|
+
variant?: 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
14
14
|
/**
|
15
15
|
* @default ComponentSizeType.large
|
16
16
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo,
|
2
|
+
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -2,4 +2,4 @@ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
|
|
2
2
|
export { default as DevtronLicenseCard } from './DevtronLicenseCard';
|
3
3
|
export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
|
4
4
|
export * from './types';
|
5
|
-
export { parseDevtronLicenseData
|
5
|
+
export { parseDevtronLicenseData } from './utils';
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
2
|
-
import {
|
2
|
+
import { DevtronLicenseInfo, LicenseStatus } from './types';
|
3
3
|
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
4
4
|
bgColor: string;
|
5
5
|
textColor: string;
|
6
6
|
};
|
7
|
-
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
|
8
7
|
export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
|
9
8
|
export declare const getGateKeeperUrl: (fingerprint: string) => string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -8,10 +8,8 @@ export declare const SelectPickerControl: <OptionValue>(props: ControlProps<Sele
|
|
8
8
|
export declare const SelectPickerInput: <OptionValue>(props: InputProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
9
9
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
10
10
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
11
|
-
export declare const SelectPickerMenuListFooter: ({ menuListFooterConfig, }: Required<Pick<SelectPickerProps, "menuListFooterConfig">>) => JSX.Element;
|
12
11
|
export declare const SelectPickerMenuList: <OptionValue>(props: MenuListProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
13
12
|
export declare const SelectPickerMultiValueLabel: <OptionValue, IsMulti extends boolean>({ getIsOptionValid, ...props }: MultiValueProps<SelectPickerOptionType<OptionValue>, true> & Pick<SelectPickerProps<OptionValue, IsMulti>["multiSelectProps"], "getIsOptionValid">) => JSX.Element;
|
14
13
|
export declare const SelectPickerMultiValueRemove: (props: MultiValueRemoveProps) => JSX.Element;
|
15
14
|
export declare const SelectPickerGroupHeading: <OptionValue>({ isGroupHeadingSelectable, ...props }: SelectPickerGroupHeadingProps<OptionValue>) => JSX.Element;
|
16
15
|
export declare const renderLoadingMessage: () => JSX.Element;
|
17
|
-
export declare const ValueContainerWithLoadingShimmer: (props: ValueContainerProps) => JSX.Element;
|
@@ -40,10 +40,6 @@ type MenuListFooterConfigType = {
|
|
40
40
|
buttonProps: {
|
41
41
|
variant: ButtonVariantType.primary | ButtonVariantType.borderLess;
|
42
42
|
} & Omit<ButtonProps<ButtonComponentType>, 'size' | 'fullWidth' | 'icon' | 'endIcon' | 'variant' | 'style'>;
|
43
|
-
} | {
|
44
|
-
type: 'customNode';
|
45
|
-
value: ReactElement;
|
46
|
-
buttonProps?: never;
|
47
43
|
};
|
48
44
|
declare module 'react-select/base' {
|
49
45
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
@@ -16,8 +16,7 @@ export declare enum StatusType {
|
|
16
16
|
PROGRESSING = "PROGRESSING",
|
17
17
|
INPROGRESS = "INPROGRESS",
|
18
18
|
HIBERNATING = "HIBERNATING",
|
19
|
-
TIMED_OUT = "TIMED_OUT"
|
20
|
-
DELETING = "DELETING"
|
19
|
+
TIMED_OUT = "TIMED_OUT"
|
21
20
|
}
|
22
21
|
export interface StatusComponentProps {
|
23
22
|
/** The status to display, either a predefined StatusType or a custom string. */
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TabGroupProps, TabProps } from './TabGroup.types';
|
2
|
-
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active,
|
2
|
+
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
|
3
3
|
className: string;
|
4
4
|
}) => JSX.Element;
|
5
5
|
export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
|
@@ -65,38 +65,6 @@ type TabTooltipProps = {
|
|
65
65
|
shouldWrapTooltip?: never;
|
66
66
|
tooltipProps?: never;
|
67
67
|
};
|
68
|
-
/**
|
69
|
-
* Represents the properties for defining an icon in a tab group.
|
70
|
-
* This type allows for three configurations:
|
71
|
-
*
|
72
|
-
* 1. **Icon as a functional component or string**:
|
73
|
-
* - Use the `icon` property to specify either a functional component that renders an SVG or a string representing the name of the icon.
|
74
|
-
* - The `iconElement` property must not be provided in this case.
|
75
|
-
*
|
76
|
-
* 2. **Icon as a JSX element**:
|
77
|
-
* - Use the `iconElement` property to specify a JSX element representing the icon.
|
78
|
-
* - The `icon` property must not be provided in this case.
|
79
|
-
*
|
80
|
-
* 3. **No icon**:
|
81
|
-
* - Neither `icon` nor `iconElement` is provided, resulting in no icon being displayed.
|
82
|
-
*
|
83
|
-
*/
|
84
|
-
type TabGroupIconProp = {
|
85
|
-
/**
|
86
|
-
* A functional component rendering an SVG or a string representing the icon name. Mutually exclusive with `iconElement`.
|
87
|
-
*/
|
88
|
-
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
89
|
-
iconElement?: never;
|
90
|
-
} | {
|
91
|
-
icon?: never;
|
92
|
-
/**
|
93
|
-
* A JSX element representing the icon. Mutually exclusive with `icon`.
|
94
|
-
*/
|
95
|
-
iconElement: JSX.Element;
|
96
|
-
} | {
|
97
|
-
icon?: never;
|
98
|
-
iconElement?: never;
|
99
|
-
};
|
100
68
|
export type TabProps = {
|
101
69
|
/**
|
102
70
|
* Unique identifier for the tab.
|
@@ -111,6 +79,12 @@ export type TabProps = {
|
|
111
79
|
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
112
80
|
*/
|
113
81
|
description?: string | string[];
|
82
|
+
/**
|
83
|
+
* Icon to be displayed in the tab.
|
84
|
+
* This can either be a functional component that renders a SVG
|
85
|
+
* or a string representing the name of the icon to be rendered by the Icon component.
|
86
|
+
*/
|
87
|
+
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
114
88
|
/**
|
115
89
|
* Badge number to be displayed on the tab, typically for notifications.
|
116
90
|
*/
|
@@ -133,7 +107,7 @@ export type TabProps = {
|
|
133
107
|
* Disables the tab, preventing interaction and indicating an inactive state.
|
134
108
|
*/
|
135
109
|
disabled?: boolean;
|
136
|
-
} & ConditionalTabType & TabTooltipProps
|
110
|
+
} & ConditionalTabType & TabTooltipProps;
|
137
111
|
export interface TabGroupProps {
|
138
112
|
/**
|
139
113
|
* Array of tabs to be rendered.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { TargetPlatformListTooltipProps } from './types';
|
2
|
-
declare const TargetPlatformListTooltip: ({ targetPlatforms, children
|
2
|
+
declare const TargetPlatformListTooltip: ({ targetPlatforms, children }: TargetPlatformListTooltipProps) => JSX.Element;
|
3
3
|
export default TargetPlatformListTooltip;
|
@@ -2,5 +2,6 @@ import { TooltipProps } from '@Common/Tooltip/types';
|
|
2
2
|
import { TargetPlatformsDTO } from '../../types';
|
3
3
|
export interface TargetPlatformBadgeListProps extends Required<Pick<TargetPlatformsDTO, 'targetPlatforms'>> {
|
4
4
|
}
|
5
|
-
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'
|
5
|
+
export interface TargetPlatformListTooltipProps extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
6
|
+
children: TooltipProps['children'];
|
6
7
|
}
|
@@ -3,8 +3,8 @@ export * from './ActionMenu';
|
|
3
3
|
export * from './ActivityIndicator';
|
4
4
|
export * from './AnimatedDeployButton';
|
5
5
|
export * from './AnimatedTimer';
|
6
|
+
export * from './AnnouncementBanner';
|
6
7
|
export * from './APIResponseHandler';
|
7
|
-
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
10
|
export * from './BulkOperations';
|
@@ -24,12 +24,12 @@ export * from './CountrySelect';
|
|
24
24
|
export * from './CustomInput';
|
25
25
|
export * from './DatePicker';
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
|
-
export * from './DeploymentStatusBreakdown';
|
28
27
|
export * from './DetectBottom';
|
29
28
|
export * from './DiffViewer';
|
30
29
|
export * from './DynamicDataTable';
|
31
30
|
export * from './EditableTextArea';
|
32
31
|
export * from './EditImageFormField';
|
32
|
+
export * from './EnterpriseTag';
|
33
33
|
export * from './EnvironmentSelector';
|
34
34
|
export * from './Error';
|
35
35
|
export * from './ExcludedImageNode';
|
@@ -56,6 +56,7 @@ export * from './InfoIconTippy';
|
|
56
56
|
export * from './InvalidYAMLTippy';
|
57
57
|
export * from './KeyValueTable';
|
58
58
|
export * from './License';
|
59
|
+
export { default as LoadingCard } from './LoadingCard';
|
59
60
|
export * from './LoginBanner';
|
60
61
|
export * from './MaterialHistory';
|
61
62
|
export * from './ModalSidebarPanel';
|
@@ -71,7 +72,6 @@ export * from './SelectPicker';
|
|
71
72
|
export * from './ShowMoreText';
|
72
73
|
export * from './SSOProviderIcon';
|
73
74
|
export * from './StatusComponent';
|
74
|
-
export * from './Switch';
|
75
75
|
export * from './TabGroup';
|
76
76
|
export * from './Table';
|
77
77
|
export * from './TagsKeyValueTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
import { Pair } from 'yaml';
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
|
-
import { AggregatedNodes, PodMetadatum } from './Components';
|
7
|
+
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
@@ -36,6 +36,7 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
36
36
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
37
37
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
38
38
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
39
|
+
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
39
40
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
40
41
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
41
42
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
@@ -100,5 +101,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
100
101
|
}) => string;
|
101
102
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
102
103
|
export declare const clearCookieOnLogout: () => void;
|
103
|
-
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export {};
|