@devtron-labs/devtron-fe-common-lib 0.0.75-beta-29 → 0.0.75-beta-31
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/Common/Api.d.ts +0 -1
- package/dist/Common/Constants.d.ts +25 -2
- package/dist/Common/ErrorPage.d.ts +3 -0
- package/dist/Common/ErrorScreenManager.d.ts +3 -0
- package/dist/Common/ErrorScreenNotAuthorized.d.ts +3 -0
- package/dist/Common/Helper.d.ts +3 -1
- package/dist/Common/Types.d.ts +13 -0
- package/dist/Common/index.d.ts +2 -1
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +0 -61
- package/dist/Shared/validations.d.ts +0 -10
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8127 -8025
- package/package.json +1 -1
- package/dist/Common/Error.d.ts +0 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +0 -2
- package/dist/Shared/constants.d.ts +0 -4
package/dist/Common/Api.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { MutableRefObject } from 'react';
|
|
|
2
2
|
import { ResponseType, APIOptions } from './Types';
|
|
3
3
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
4
4
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
5
|
-
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
5
|
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
|
|
7
6
|
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
8
7
|
/**
|
|
@@ -2,6 +2,7 @@ import { RegistryTypeDetailType } from './Types';
|
|
|
2
2
|
export declare const FALLBACK_REQUEST_TIMEOUT = 60000;
|
|
3
3
|
export declare const Host: string;
|
|
4
4
|
export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
5
|
+
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
5
6
|
export declare const DOCUMENTATION: {
|
|
6
7
|
APP_TAGS: string;
|
|
7
8
|
APP_OVERVIEW_TAGS: string;
|
|
@@ -31,6 +32,7 @@ export declare const ROUTES: {
|
|
|
31
32
|
CD_MATERIAL_GET: string;
|
|
32
33
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
|
33
34
|
INFRA_CONFIG_PROFILE: string;
|
|
35
|
+
APP_LIST: string;
|
|
34
36
|
TELEMETRY_EVENT: string;
|
|
35
37
|
SERVER_INFO_API: string;
|
|
36
38
|
ATTRIBUTES_USER: string;
|
|
@@ -48,6 +50,16 @@ export declare const DEFAULT_TAG_DATA: {
|
|
|
48
50
|
isInvalidValue: boolean;
|
|
49
51
|
isSuggested: boolean;
|
|
50
52
|
};
|
|
53
|
+
export declare enum ERROR_STATUS_CODE {
|
|
54
|
+
BAD_REQUEST = 400,
|
|
55
|
+
UNAUTHORIZED = 401,
|
|
56
|
+
PERMISSION_DENIED = 403,
|
|
57
|
+
NOT_FOUND = 404,
|
|
58
|
+
EXPECTATION_FAILED = 417,
|
|
59
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
60
|
+
BAD_GATEWAY = 502,
|
|
61
|
+
SERVICE_TEMPORARY_UNAVAILABLE = 503
|
|
62
|
+
}
|
|
51
63
|
export declare const TOAST_ACCESS_DENIED: {
|
|
52
64
|
TITLE: string;
|
|
53
65
|
SUBTITLE: string;
|
|
@@ -56,11 +68,23 @@ export declare const ERROR_EMPTY_SCREEN: {
|
|
|
56
68
|
PAGE_NOT_FOUND: string;
|
|
57
69
|
PAGE_NOT_EXIST: string;
|
|
58
70
|
TAKE_BACK_HOME: string;
|
|
71
|
+
REPORT_ISSUE: string;
|
|
59
72
|
ONLY_FOR_SUPERADMIN: string;
|
|
60
73
|
NOT_AUTHORIZED: string;
|
|
74
|
+
REQUIRED_MANAGER_ACCESS: string;
|
|
75
|
+
BAD_REQUEST: string;
|
|
76
|
+
BAD_REQUEST_MESSAGE: string;
|
|
77
|
+
TRY_AGAIN: string;
|
|
61
78
|
UNAUTHORIZED: string;
|
|
79
|
+
UNAUTHORIZED_MESSAGE: string;
|
|
62
80
|
FORBIDDEN: string;
|
|
63
|
-
|
|
81
|
+
FORBIDDEN_MESSAGE: string;
|
|
82
|
+
INTERNAL_SERVER_ERROR: string;
|
|
83
|
+
INTERNAL_SERVER_ERROR_MESSAGE: string;
|
|
84
|
+
BAD_GATEWAY: string;
|
|
85
|
+
BAD_GATEWAY_MESSAGE: string;
|
|
86
|
+
SERVICE_TEMPORARY_UNAVAILABLE: string;
|
|
87
|
+
SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE: string;
|
|
64
88
|
};
|
|
65
89
|
export declare const TOKEN_COOKIE_NAME = "argocd.token";
|
|
66
90
|
export declare const TriggerTypeMap: {
|
|
@@ -176,7 +200,6 @@ export declare enum SERVER_MODE {
|
|
|
176
200
|
EA_ONLY = "EA_ONLY",
|
|
177
201
|
FULL = "FULL"
|
|
178
202
|
}
|
|
179
|
-
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
180
203
|
export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
181
204
|
PREVIEW: string;
|
|
182
205
|
DEPLOY_CUSTOM_APP_CI_CD: string;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export declare const getAlphabetIcon: (str: string, rootClassName?: string) => J
|
|
|
15
15
|
export declare const getEmptyArrayOfLength: (length: number) => unknown[];
|
|
16
16
|
export declare function noop(...args: any[]): any;
|
|
17
17
|
export declare function not(e: any): boolean;
|
|
18
|
+
export declare const refresh: () => void;
|
|
19
|
+
export declare const reportIssue: () => void;
|
|
18
20
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
|
19
21
|
export declare function getCookie(sKey: any): string;
|
|
20
22
|
export declare function getLoginInfo(): any;
|
|
@@ -44,7 +46,7 @@ export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: a
|
|
|
44
46
|
* @param url URL to which the search params needs to be added
|
|
45
47
|
* @param params Object for the search parameters
|
|
46
48
|
*/
|
|
47
|
-
export declare const getUrlWithSearchParams: (url: string, params
|
|
49
|
+
export declare const getUrlWithSearchParams: (url: string, params: Record<string | number, any>) => string;
|
|
48
50
|
/**
|
|
49
51
|
* Custom exception logger function for logging errors to sentry
|
|
50
52
|
*/
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -108,6 +108,19 @@ export interface GenericEmptyStateType {
|
|
|
108
108
|
layout?: 'row' | 'column';
|
|
109
109
|
contentClassName?: string;
|
|
110
110
|
}
|
|
111
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
|
|
112
|
+
code: number;
|
|
113
|
+
}
|
|
114
|
+
export interface ErrorScreenManagerProps {
|
|
115
|
+
code?: number;
|
|
116
|
+
reload?: (...args: any[]) => any;
|
|
117
|
+
subtitle?: React.ReactChild;
|
|
118
|
+
reloadClass?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ErrorScreenNotAuthorizedProps {
|
|
121
|
+
subtitle?: React.ReactChild;
|
|
122
|
+
title?: string;
|
|
123
|
+
}
|
|
111
124
|
export declare enum ImageType {
|
|
112
125
|
Large = "large",
|
|
113
126
|
Medium = "medium"
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ export * from './Types';
|
|
|
4
4
|
export * from './Api';
|
|
5
5
|
export * from './ToastBody';
|
|
6
6
|
export { default as Reload } from './Reload';
|
|
7
|
-
export
|
|
7
|
+
export { default as ErrorScreenManager } from './ErrorScreenManager';
|
|
8
|
+
export { default as ErrorScreenNotAuthorized } from './ErrorScreenNotAuthorized';
|
|
8
9
|
export * from './Helper';
|
|
9
10
|
export * from './Progressing';
|
|
10
11
|
export * from './Drawer/Drawer';
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { PatchOperationType } from './constants';
|
|
2
1
|
export interface RuntimeParamsAPIResponseType {
|
|
3
2
|
envVariables: Record<string, string>;
|
|
4
3
|
}
|
|
@@ -9,63 +8,3 @@ export declare enum CIMaterialSidebarType {
|
|
|
9
8
|
CODE_SOURCE = "Code Source",
|
|
10
9
|
PARAMETERS = "Parameters"
|
|
11
10
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @example Usage with specific enum for path & `unknown` type for value
|
|
14
|
-
* ```ts
|
|
15
|
-
* enum PatchKeys {
|
|
16
|
-
* name = 'name',
|
|
17
|
-
* description = 'description',
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* const query: PatchQueryType<PatchKeys> = {
|
|
21
|
-
* op: PatchOperationType.replace,
|
|
22
|
-
* path: PatchKeys.name,
|
|
23
|
-
* value: '1'
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @example Usage with specific enum for path & custom type for value
|
|
28
|
-
* ```ts
|
|
29
|
-
* enum PatchKeys {
|
|
30
|
-
* name = 'name',
|
|
31
|
-
* description = 'description',
|
|
32
|
-
* }
|
|
33
|
-
*
|
|
34
|
-
* const query: PatchQueryType<PatchKeys, number> = {
|
|
35
|
-
* op: PatchOperationType.replace,
|
|
36
|
-
* path: PatchKeys.name,
|
|
37
|
-
* value: 1
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @example Usage with `PatchOperationType.remove`
|
|
42
|
-
* Note: We cannot add value to remove operation
|
|
43
|
-
*
|
|
44
|
-
* ```ts
|
|
45
|
-
* const query: PatchQueryType<string> = {
|
|
46
|
-
* op: PatchOperationType.remove,
|
|
47
|
-
* path: 'name'
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
export type PatchQueryType<T extends string, K = unknown> = {
|
|
52
|
-
/**
|
|
53
|
-
* The path of the json to be patched
|
|
54
|
-
*/
|
|
55
|
-
path: T;
|
|
56
|
-
} & ({
|
|
57
|
-
/**
|
|
58
|
-
* Operation type for patch
|
|
59
|
-
*/
|
|
60
|
-
op: PatchOperationType.replace;
|
|
61
|
-
/**
|
|
62
|
-
* Corresponding value for the operation
|
|
63
|
-
*/
|
|
64
|
-
value: K;
|
|
65
|
-
} | {
|
|
66
|
-
/**
|
|
67
|
-
* Operation type for patch
|
|
68
|
-
*/
|
|
69
|
-
op: PatchOperationType.remove;
|
|
70
|
-
value?: never;
|
|
71
|
-
});
|
|
@@ -2,16 +2,6 @@ export interface ValidationResponseType {
|
|
|
2
2
|
isValid: boolean;
|
|
3
3
|
message?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const MESSAGES: {
|
|
6
|
-
PROVIDE_A_NUMBER: string;
|
|
7
|
-
LOWERCASE_ALPHANUMERIC: string;
|
|
8
|
-
CAN_NOT_START_END_WITH_SEPARATORS: string;
|
|
9
|
-
getMinMaxCharMessage: (min: number, max: number) => string;
|
|
10
|
-
getMaxCharMessage: (max: number) => string;
|
|
11
|
-
VALID_POSITIVE_NUMBER: string;
|
|
12
|
-
VALID_POSITIVE_INTEGER: string;
|
|
13
|
-
MAX_SAFE_INTEGER: string;
|
|
14
|
-
};
|
|
15
5
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
16
6
|
export declare const validateDescription: (description: string) => ValidationResponseType;
|
|
17
7
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.empty-state{height:100%}.empty-state img{height:40%;max-height:200px;width:auto;max-width:250px}.empty-state svg{height:40%;max-height:200px;width:auto}.empty-state h1,.empty-state h2,.empty-state h3,.empty-state h4,.empty-state h5,.empty-state h6{color:var(--N900)}.empty-state .subtitle{font-size:13px;font-weight:400;text-align:center;line-height:1.5;margin-bottom:6px}.empty-state .subtitle--text-start{text-align:start}.empty-state .cta{height:36px}.empty-state p{text-align:center;font-size:13px;color:var(--N700)}.empty-state strong{font-size:16px;margin-bottom:4px;color:var(--N900);font-weight:400}.empty-state .select-popup{height:min-content;max-height:250px;overflow:auto;padding:8px 0}.empty-state .empty-state__loader{width:34px;height:34px;margin-bottom:16px}.empty-state .empty-state__loading-text{font-size:12px;width:200px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:var(--N900)}.empty-state .button__icon{width:16px;height:16px;margin-left:8px}.drawer{position:absolute;overflow:hidden}.drawer.left,.drawer.right{top:0;bottom:0;width:0;transition:width .2s}.drawer.left.show,.drawer.right.show{min-width:var(--minWidth);width:var(--width);max-width:var(--maxWidth)}.drawer.top,.drawer.bottom{left:0;right:0;height:0;transition:height .2s}.drawer.top.show,.drawer.bottom.show{height:var(--height)}.drawer.right{right:0}.drawer.left{left:0}.drawer.top{top:0}.drawer.bottom{bottom:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translate(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translate(5px)}.info-bar-container .info_text .success{background-color:var(--G100)}.info-bar-container .warn{background:var(--Y100);border:solid var(--Y200)}.info-bar-container .warn .warning-icon path:nth-child(2){fill:var(--Y700)}.info-bar-container .info_bar{background-color:var(--B100);border:1px solid var(--B200)}.info-bar-container .error_bar{background-color:var(--R100);border:1px solid var(--R200)}.info-bar-container .question-bar{background-color:var(--V100);border:1px solid var(--V200)}.search-bar:focus,.search-bar:focus-within{outline:none;border:solid 1px var(--B500)!important}.search-bar__input:focus,.search-bar__input:focus-visible{border:none;outline:none}.search-bar__icon{z-index:1;top:50%;left:8px;transform:translateY(-50%)}.search-bar__clear-button{right:0;top:50%;transform:translateY(-50%);z-index:1}.toggle__switch{position:relative;display:inline-block;width:100%;height:100%}.toggle__switch.disabled,.toggle__switch.disabled .toggle__slider{cursor:not-allowed}.toggle__switch input{opacity:0;width:0;height:0}.toggle__slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:all .4s ease}.toggle__slider.round{border-radius:34px}.toggle__slider.round:before{border-radius:50%}.toggle__slider:before{position:absolute;content:"";height:calc(100% - 8px);width:calc(50% - 4px);left:4px;bottom:4px;background-color:#fff;transition:all .4s ease}.toggle__slider.with-icon{background-color:var(--N000)!important}.toggle__slider.with-icon svg{position:absolute;content:"";top:-1px;left:-1px;background-color:var(--N300);transition:all .4s ease}input:checked+.toggle__slider{background-color:var(--color)}input:checked+.toggle__slider:before{transform:translate(100%)}input:checked+.toggle__slider.with-icon svg{transform:translate(100%);background-color:var(--color)}input:focus+.toggle__slider{box-shadow:0 0 1px var(--color)}.modal-body--scan-details{position:fixed;top:0;right:0;background:var(--N000);width:800px}.security-tab__table{width:100%}.security-tab__table-header{border-bottom:solid 1px var(--N200)}.security-cell-header{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:uppercase;color:var(--N500)}.dc__security-tab__table-row{font-size:13px;font-weight:400;line-height:1.54;letter-spacing:normal;color:var(--N900);box-shadow:inset 0 -1px #f5f5f5}.security-tab__cell-cve,.security-tab__cell-severity,.security-tab__cell-package,.security-tab__cell-current-ver,.security-tab__cell-fixed-ver,.security-tab__cell-policy{padding:10px;max-width:120px;word-wrap:break-word}.security-tab__cell-cve{padding-left:0;text-align:left;width:20%}.security-tab__cell-policy{padding-right:0}.security-tab__cell-policy--whitelist,.security-tab__cell-policy--whitelisted{color:var(--G500);text-transform:capitalize}.security-tab__cell-policy--block{color:var(--R500);text-transform:capitalize}.scanned-object__results{margin:0 20px}.radio-group{height:30px;background:white;display:flex;justify-content:center;align-items:center;padding:4px;border-radius:4px}.radio-group .label,.radio-group .radio,.radio-group .checkbox{margin:0}.radio-group .radio{height:100%;width:auto;color:var(--N400);display:flex;align-items:center}.radio-group .radio+.radio{margin-top:0}.radio-group input[type=checkbox]{display:contents;overflow:hidden;max-width:0px;height:0;opacity:0;margin:unset}.radio-group input+.radio__item-label{padding:4px 6px;height:100%;width:100%;display:flex;align-items:center;transition:all .5s;cursor:pointer}.radio-group input[type=checkbox]:checked+.radio__item-label{background:#2c3354;color:#fff;border-radius:4px}.select-button__arrow{position:absolute;right:5px}.select-button{border-radius:4px;justify-content:space-between}.select-button.default{height:40px;padding:12px 10px;background-color:#fff}.select-button:disabled{background-color:var(--N100)}.select-button--default{padding:8px 8px 8px 10px;width:100%;font-weight:500;background-color:var(--N000)}.select__label-container{display:inline-block;margin-left:auto}.select__options-container{max-height:220px;overflow:auto;color:var(--N900)}.select__option-with-subtitle{padding:9px 12px;margin-top:2px;display:flex;cursor:pointer;align-items:center}.select__option-with-subtitle--empty-state{color:var(--N500)}.select-popup{max-height:220px;overflow:auto;padding:4px 0;border-radius:4px;border:1px solid var(--N100)}.select__option{padding:10px 12px;line-height:1.5;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:var(--N000)}.select__option.selected{color:var(--B500);background-color:var(--B100)}.select-button__selected-option{display:inline-block;white-space:nowrap;text-align:left}.select__check-icon{width:16px;height:16px;margin-right:12px}.option-with-subtitle__subtitle{font-size:10px;font-weight:400;font-stretch:normal;line-height:1.33;letter-spacing:normal;color:#404040}.option-group__label{padding:8px 16px;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:var(--N400);text-transform:uppercase}.select__sticky-bottom{position:sticky;bottom:-8px;margin-bottom:-8px;box-shadow:0 -1px 0 0 var(--N200);background-color:inherit;padding:11px 12px;width:100%;display:flex;align-items:center;cursor:pointer;color:var(--B500);font-size:13px}.select__sticky-bottom svg path{fill:var(--B500)}.select__all{height:36px;padding:4px 12px 4px 40px;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:#f5f5f5}.popup-button:disabled .select-button{background-color:var(--N100)}.select__option-with-subtitle:hover,.select__option:hover{background-color:var(--window-bg)}.select__option-with-subtitle--empty-state:hover{background-color:unset}.rjsf-form-template__field{grid-template-columns:250px 1fr}.rjsf-form-template__additional-fields{grid-template-columns:1fr 1fr minmax(20px,auto)}.rjsf-form-template__array-field-item{grid-template-columns:1fr auto}.rjsf-form-template__array-field-item>:first-child{margin:0}.pagination-wrapper{display:flex;align-items:center;padding:0 24px;justify-content:space-between;margin:0;background-color:var(--white)}.pagination{margin-top:16px;margin-bottom:16px;padding:0}.select{display:flex;align-items:center;position:relative}.select__placeholder{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700);margin-right:8px}.pagination__select-menu{padding:0;list-style:none;overflow:hidden;border:solid 1px var(--N200);border-radius:4px;width:64px;position:absolute;bottom:31px;background-color:var(--white)}.select__button{width:64px;background-color:transparent;border-radius:4px;border:solid 1px var(--N200);padding:5px 10px;text-align:left}.select__item{padding:5px 10px;cursor:pointer}.select__icon{margin-left:18px}.page{margin:0 8px;display:inline-block}.page-number{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700)}.page__button{width:24px;height:24px;border-radius:8px;color:var(--B500);background-color:var(--white);padding:0;user-select:none}.page__button--icon{background-color:var(--white);color:var(--B500)}.page__button--selected{color:var(--white);background-color:var(--B500)}.page__button:disabled{opacity:.5}.select__item:hover{background-color:var(--N50)}.page__button:hover~:disabled{background-color:var(--B100)}.page__button--selected:hover{color:var(--white);background-color:var(--B500)}@media (min-width: 1024px){.pagination{margin:16px auto}}.help-card__more-option{top:42px;right:56px}.help-card__more-option.k8s-client-view{right:20px;grid-template-rows:36px 1px 36px 1px 36px 1px 36px auto}.logout-card__more-option{top:42px;right:20px}.getting-started-card{background-color:var(--tippy-card-black-bg);position:fixed;z-index:6;right:20px;top:54px}.arrow-up{width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid var(--tippy-card-black-bg);right:64px;position:fixed;top:42px}.getting_tippy__position{position:fixed}.create-modal-wrapper{position:fixed;right:24px;top:50px;overflow:hidden}.create-modal-wrapper .create-modal-child{padding:10px 15px;display:flex}.create-modal-wrapper .create-modal-child:first-child{border-bottom:1px solid var(--N100)}.create-modal-wrapper .create-modal-child:hover{background-color:var(--N100)}.user-role-groups__table-row{grid-template-rows:36px}.user-role-groups__table-header,.user-role-groups__table-row{grid-template-columns:20px 200px minmax(300px,1fr);column-gap:16px}.user-role-groups__table-header--with-status,.user-role-groups__table-row--with-status{grid-template-columns:20px 200px minmax(300px,1fr) 185px}.user-role-groups__table-header--with-delete,.user-role-groups__table-row--with-delete{grid-template-columns:20px 200px minmax(300px,1fr) 24px}.user-role-groups__table-header--with-status-and-delete,.user-role-groups__table-row--with-status-and-delete{grid-template-columns:20px 200px minmax(300px,1fr) 185px 24px}
|
|
1
|
+
.empty-state{height:100%}.empty-state img{height:40%;max-height:200px;width:auto;max-width:250px}.empty-state svg{height:40%;max-height:200px;width:auto}.empty-state h1,.empty-state h2,.empty-state h3,.empty-state h4,.empty-state h5,.empty-state h6{color:var(--N900)}.empty-state .subtitle{font-size:13px;font-weight:400;text-align:center;line-height:20px;margin-bottom:6px}.empty-state .subtitle--text-start{text-align:start}.empty-state .cta{height:36px}.empty-state p{text-align:center;font-size:13px;color:var(--N700)}.empty-state strong{font-size:16px;margin-bottom:4px;color:var(--N900);font-weight:400}.empty-state .select-popup{height:min-content;max-height:250px;overflow:auto;padding:8px 0}.empty-state .empty-state__loader{width:34px;height:34px;margin-bottom:16px}.empty-state .empty-state__loading-text{font-size:12px;width:200px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:var(--N900)}.empty-state .button__icon{width:16px;height:16px;margin-left:8px}.drawer{position:absolute;overflow:hidden}.drawer.left,.drawer.right{top:0;bottom:0;width:0;transition:width .2s}.drawer.left.show,.drawer.right.show{min-width:var(--minWidth);width:var(--width);max-width:var(--maxWidth)}.drawer.top,.drawer.bottom{left:0;right:0;height:0;transition:height .2s}.drawer.top.show,.drawer.bottom.show{height:var(--height)}.drawer.right{right:0}.drawer.left{left:0}.drawer.top{top:0}.drawer.bottom{bottom:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translate(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translate(5px)}.info-bar-container .info_text .success{background-color:var(--G100)}.info-bar-container .warn{background:var(--Y100);border:solid var(--Y200)}.info-bar-container .warn .warning-icon path:nth-child(2){fill:var(--Y700)}.info-bar-container .info_bar{background-color:var(--B100);border:1px solid var(--B200)}.info-bar-container .error_bar{background-color:var(--R100);border:1px solid var(--R200)}.info-bar-container .question-bar{background-color:var(--V100);border:1px solid var(--V200)}.search-bar:focus,.search-bar:focus-within{outline:none;border:solid 1px var(--B500)!important}.search-bar__input:focus,.search-bar__input:focus-visible{border:none;outline:none}.search-bar__icon{z-index:1;top:50%;left:8px;transform:translateY(-50%)}.search-bar__clear-button{right:0;top:50%;transform:translateY(-50%);z-index:1}.toggle__switch{position:relative;display:inline-block;width:100%;height:100%}.toggle__switch.disabled,.toggle__switch.disabled .toggle__slider{cursor:not-allowed}.toggle__switch input{opacity:0;width:0;height:0}.toggle__slider{position:absolute;cursor:pointer;inset:0;background-color:#ccc;transition:all .4s ease}.toggle__slider.round{border-radius:34px}.toggle__slider.round:before{border-radius:50%}.toggle__slider:before{position:absolute;content:"";height:calc(100% - 8px);width:calc(50% - 4px);left:4px;bottom:4px;background-color:#fff;transition:all .4s ease}.toggle__slider.with-icon{background-color:var(--N000)!important}.toggle__slider.with-icon svg{position:absolute;content:"";top:-1px;left:-1px;background-color:var(--N300);transition:all .4s ease}input:checked+.toggle__slider{background-color:var(--color)}input:checked+.toggle__slider:before{transform:translate(100%)}input:checked+.toggle__slider.with-icon svg{transform:translate(100%);background-color:var(--color)}input:focus+.toggle__slider{box-shadow:0 0 1px var(--color)}.modal-body--scan-details{position:fixed;top:0;right:0;background:var(--N000);width:800px}.security-tab__table{width:100%}.security-tab__table-header{border-bottom:solid 1px var(--N200)}.security-cell-header{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:normal;text-transform:uppercase;color:var(--N500)}.dc__security-tab__table-row{font-size:13px;font-weight:400;line-height:1.54;letter-spacing:normal;color:var(--N900);box-shadow:inset 0 -1px #f5f5f5}.security-tab__cell-cve,.security-tab__cell-severity,.security-tab__cell-package,.security-tab__cell-current-ver,.security-tab__cell-fixed-ver,.security-tab__cell-policy{padding:10px;max-width:120px;word-wrap:break-word}.security-tab__cell-cve{padding-left:0;text-align:left;width:20%}.security-tab__cell-policy{padding-right:0}.security-tab__cell-policy--whitelist,.security-tab__cell-policy--whitelisted{color:var(--G500);text-transform:capitalize}.security-tab__cell-policy--block{color:var(--R500);text-transform:capitalize}.scanned-object__results{margin:0 20px}.radio-group{height:30px;background:white;display:flex;justify-content:center;align-items:center;padding:4px;border-radius:4px}.radio-group .label,.radio-group .radio,.radio-group .checkbox{margin:0}.radio-group .radio{height:100%;width:auto;color:var(--N400);display:flex;align-items:center}.radio-group .radio+.radio{margin-top:0}.radio-group input[type=checkbox]{display:contents;overflow:hidden;max-width:0px;height:0;opacity:0;margin:unset}.radio-group input+.radio__item-label{padding:4px 6px;height:100%;width:100%;display:flex;align-items:center;transition:all .5s;cursor:pointer}.radio-group input[type=checkbox]:checked+.radio__item-label{background:#2c3354;color:#fff;border-radius:4px}.select-button__arrow{position:absolute;right:5px}.select-button{border-radius:4px;justify-content:space-between}.select-button.default{height:40px;padding:12px 10px;background-color:#fff}.select-button:disabled{background-color:var(--N100)}.select-button--default{padding:8px 8px 8px 10px;width:100%;font-weight:500;background-color:var(--N000)}.select__label-container{display:inline-block;margin-left:auto}.select__options-container{max-height:220px;overflow:auto;color:var(--N900)}.select__option-with-subtitle{padding:9px 12px;margin-top:2px;display:flex;cursor:pointer;align-items:center}.select__option-with-subtitle--empty-state{color:var(--N500)}.select-popup{max-height:220px;overflow:auto;padding:4px 0;border-radius:4px;border:1px solid var(--N100)}.select__option{padding:10px 12px;line-height:1.5;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:var(--N000)}.select__option.selected{color:var(--B500);background-color:var(--B100)}.select-button__selected-option{display:inline-block;white-space:nowrap;text-align:left}.select__check-icon{width:16px;height:16px;margin-right:12px}.option-with-subtitle__subtitle{font-size:10px;font-weight:400;font-stretch:normal;line-height:1.33;letter-spacing:normal;color:#404040}.option-group__label{padding:8px 16px;font-size:12px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.67;letter-spacing:normal;color:var(--N400);text-transform:uppercase}.select__sticky-bottom{position:sticky;bottom:-8px;margin-bottom:-8px;box-shadow:0 -1px 0 0 var(--N200);background-color:inherit;padding:11px 12px;width:100%;display:flex;align-items:center;cursor:pointer;color:var(--B500);font-size:13px}.select__sticky-bottom svg path{fill:var(--B500)}.select__all{height:36px;padding:4px 12px 4px 40px;display:flex;align-items:center;justify-content:flex-start;cursor:pointer;background-color:#f5f5f5}.popup-button:disabled .select-button{background-color:var(--N100)}.select__option-with-subtitle:hover,.select__option:hover{background-color:var(--window-bg)}.select__option-with-subtitle--empty-state:hover{background-color:unset}.rjsf-form-template__field{grid-template-columns:250px 1fr}.rjsf-form-template__additional-fields{grid-template-columns:1fr 1fr minmax(20px,auto)}.rjsf-form-template__array-field-item{grid-template-columns:1fr auto}.rjsf-form-template__array-field-item>:first-child{margin:0}.pagination-wrapper{display:flex;align-items:center;padding:0 24px;justify-content:space-between;margin:0;background-color:var(--white)}.pagination{margin-top:16px;margin-bottom:16px;padding:0}.select{display:flex;align-items:center;position:relative}.select__placeholder{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700);margin-right:8px}.pagination__select-menu{padding:0;list-style:none;overflow:hidden;border:solid 1px var(--N200);border-radius:4px;width:64px;position:absolute;bottom:31px;background-color:var(--white)}.select__button{width:64px;background-color:transparent;border-radius:4px;border:solid 1px var(--N200);padding:5px 10px;text-align:left}.select__item{padding:5px 10px;cursor:pointer}.select__icon{margin-left:18px}.page{margin:0 8px;display:inline-block}.page-number{font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:1.5;letter-spacing:normal;color:var(--N700)}.page__button{width:24px;height:24px;border-radius:8px;color:var(--B500);background-color:var(--white);padding:0;user-select:none}.page__button--icon{background-color:var(--white);color:var(--B500)}.page__button--selected{color:var(--white);background-color:var(--B500)}.page__button:disabled{opacity:.5}.select__item:hover{background-color:var(--N50)}.page__button:hover~:disabled{background-color:var(--B100)}.page__button--selected:hover{color:var(--white);background-color:var(--B500)}@media (min-width: 1024px){.pagination{margin:16px auto}}.help-card__more-option{top:42px;right:56px}.help-card__more-option.k8s-client-view{right:20px;grid-template-rows:36px 1px 36px 1px 36px 1px 36px auto}.logout-card__more-option{top:42px;right:20px}.getting-started-card{background-color:var(--tippy-card-black-bg);position:fixed;z-index:6;right:20px;top:54px}.arrow-up{width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid var(--tippy-card-black-bg);right:64px;position:fixed;top:42px}.getting_tippy__position{position:fixed}.create-modal-wrapper{position:fixed;right:24px;top:50px;overflow:hidden}.create-modal-wrapper .create-modal-child{padding:10px 15px;display:flex}.create-modal-wrapper .create-modal-child:first-child{border-bottom:1px solid var(--N100)}.create-modal-wrapper .create-modal-child:hover{background-color:var(--N100)}.user-role-groups__table-row{grid-template-rows:36px}.user-role-groups__table-header,.user-role-groups__table-row{grid-template-columns:20px 200px minmax(300px,1fr);column-gap:16px}.user-role-groups__table-header--with-status,.user-role-groups__table-row--with-status{grid-template-columns:20px 200px minmax(300px,1fr) 185px}.user-role-groups__table-header--with-delete,.user-role-groups__table-row--with-delete{grid-template-columns:20px 200px minmax(300px,1fr) 24px}.user-role-groups__table-header--with-status-and-delete,.user-role-groups__table-row--with-status-and-delete{grid-template-columns:20px 200px minmax(300px,1fr) 185px 24px}
|
package/dist/index.d.ts
CHANGED