@devtron-labs/devtron-fe-common-lib 1.15.3-pre-2 → 1.15.3-pre-3
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-DqPc1fti.js → @code-editor-BqrKjHnF.js} +5519 -5440
- package/dist/{@common-rjsf-DgAyhT9d.js → @common-rjsf-BouEdO2I.js} +1 -1
- package/dist/{@framer-motion-DjiCMNqQ.js → @framer-motion-BhKAac90.js} +785 -855
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +1 -0
- package/dist/index.js +852 -852
- package/package.json +1 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
import { ComponentSizeType } from '../../constants';
|
2
|
+
import { IconBaseColorType } from '../../types';
|
3
|
+
import { IconsProps } from '../Icon';
|
4
|
+
export type BadgeVariants = 'default' | 'negative' | 'negative-grey' | 'positive' | 'warning' | 'neutral' | 'custom';
|
5
|
+
export type BadgeProps = {
|
6
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.xs | ComponentSizeType.xxs | ComponentSizeType.xxxs>;
|
7
|
+
startIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
8
|
+
endIconProps?: Omit<IconsProps, 'color' | 'size'>;
|
9
|
+
label: string;
|
10
|
+
} & ({
|
11
|
+
variant?: Exclude<BadgeVariants, 'custom'>;
|
12
|
+
fontColor?: never;
|
13
|
+
bgColor?: never;
|
14
|
+
} | {
|
15
|
+
variant: 'custom';
|
16
|
+
fontColor: IconBaseColorType;
|
17
|
+
bgColor: IconBaseColorType;
|
18
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { IconBaseColorType } from '../../types';
|
2
|
+
import { BadgeProps } from './types';
|
3
|
+
export declare const getClassNameAccToVariant: (variant: BadgeProps["variant"]) => {
|
4
|
+
styles: string;
|
5
|
+
iconColor: IconBaseColorType;
|
6
|
+
};
|
7
|
+
export declare const getClassNameAccToSize: (size: BadgeProps["size"]) => "fs-11 lh-16 px-4 py-1" | "fs-12 lh-16 px-6 py-2" | "fs-13 lh-20 px-6 py-2";
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { animate, AnimatePresence, motion,
|
2
|
-
export { animate, AnimatePresence, motion,
|
1
|
+
import { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue } from 'framer-motion';
|
2
|
+
export { animate, AnimatePresence, motion, useMotionTemplate, useMotionValue };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
1
|
+
import { CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, ScanResultDTO, SecurityModalStateType, SeveritiesDTO, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -10,7 +10,7 @@ export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"
|
|
10
10
|
headerText: string;
|
11
11
|
isSortable: boolean;
|
12
12
|
width: number;
|
13
|
-
compareFunc: (a:
|
13
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
14
14
|
defaultSortOrder: import('../types').SortOrderEnum;
|
15
15
|
})[];
|
16
16
|
rows: {
|
@@ -34,7 +34,7 @@ export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
|
|
34
34
|
headerText: string;
|
35
35
|
isSortable: boolean;
|
36
36
|
width: number;
|
37
|
-
compareFunc: (a:
|
37
|
+
compareFunc: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
38
38
|
defaultSortOrder: import('../types').SortOrderEnum;
|
39
39
|
})[];
|
40
40
|
rows: {
|
@@ -57,7 +57,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
57
57
|
headerText: string;
|
58
58
|
isSortable: boolean;
|
59
59
|
width: number;
|
60
|
-
compareFunc: (a: Record<
|
60
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
61
61
|
})[];
|
62
62
|
rows: {
|
63
63
|
id: number;
|
@@ -67,7 +67,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
|
|
67
67
|
cellContent: string;
|
68
68
|
} | {
|
69
69
|
component: JSX.Element;
|
70
|
-
cellContent: Partial<Record<
|
70
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
71
71
|
})[];
|
72
72
|
}[];
|
73
73
|
};
|
@@ -81,7 +81,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
81
81
|
headerText: string;
|
82
82
|
isSortable: boolean;
|
83
83
|
width: number;
|
84
|
-
compareFunc: (a: Record<
|
84
|
+
compareFunc: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
85
85
|
})[];
|
86
86
|
rows: {
|
87
87
|
id: number;
|
@@ -91,7 +91,7 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
91
91
|
cellContent: string;
|
92
92
|
} | {
|
93
93
|
component: JSX.Element;
|
94
|
-
cellContent: Partial<Record<
|
94
|
+
cellContent: Partial<Record<SeveritiesDTO, number>>;
|
95
95
|
})[];
|
96
96
|
}[];
|
97
97
|
};
|
@@ -7,6 +7,7 @@ export * from './APIResponseHandler';
|
|
7
7
|
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
|
+
export * from './Badge';
|
10
11
|
export * from './BulkOperations';
|
11
12
|
export * from './BulkSelection';
|
12
13
|
export * from './Button';
|