@devtron-labs/devtron-fe-common-lib 1.7.5 → 1.7.6-beta-2
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-Ce2Y0B1i.js → @code-editor-bSjHzyZp.js} +4100 -4216
- package/dist/{@common-rjsf-D9r-JRFj.js → @common-rjsf-BSvSLfAC.js} +1 -1
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +2 -0
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -0
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-help-outline.39f5e779.svg +3 -0
- package/dist/assets/ic-warning.59b0a11a.svg +5 -0
- package/dist/index.js +515 -517
- package/package.json +1 -1
- package/dist/Shared/Components/KeyValueList/KeyValueList.d.ts +0 -3
- package/dist/Shared/Components/KeyValueList/constants.d.ts +0 -5
- package/dist/Shared/Components/KeyValueList/index.d.ts +0 -2
- package/dist/Shared/Components/KeyValueList/types.d.ts +0 -52
- package/dist/assets/ic-help-filled.b7ae284e.svg +0 -20
package/package.json
CHANGED
@@ -1,52 +0,0 @@
|
|
1
|
-
export declare enum KeyValueListActionType {
|
2
|
-
ADD = "ADD_KEY_VALUE",
|
3
|
-
DELETE = "DELETE_KEY_VALUE",
|
4
|
-
UPDATE_KEY = "UPDATE",
|
5
|
-
UPDATE_VALUE = "UPDATE_VALUE"
|
6
|
-
}
|
7
|
-
export type KeyValueListType = {
|
8
|
-
key: string;
|
9
|
-
value: string;
|
10
|
-
};
|
11
|
-
export interface KeyValueHandlerDataType {
|
12
|
-
/**
|
13
|
-
* Used to identify the key-value pair.
|
14
|
-
* Optional - only for ADD action else it is mandatory
|
15
|
-
*/
|
16
|
-
index?: number;
|
17
|
-
value?: string;
|
18
|
-
}
|
19
|
-
export interface HandleKeyValueChangeType {
|
20
|
-
action: KeyValueListActionType;
|
21
|
-
data?: KeyValueHandlerDataType;
|
22
|
-
}
|
23
|
-
export interface KeyValueListProps {
|
24
|
-
keyValueList: KeyValueListType[];
|
25
|
-
handleKeyValueChange: ({ action, data }: HandleKeyValueChangeType) => void;
|
26
|
-
/**
|
27
|
-
* Would disable adding/deleting/updating parameters
|
28
|
-
*/
|
29
|
-
isDisabled?: boolean;
|
30
|
-
disabledInfo?: string;
|
31
|
-
/**
|
32
|
-
* @default - Add Parameter
|
33
|
-
*/
|
34
|
-
addButtonText?: string;
|
35
|
-
/**
|
36
|
-
* @default - Enter Key
|
37
|
-
*/
|
38
|
-
keyPlaceholder?: string;
|
39
|
-
/**
|
40
|
-
* @default - Enter Value
|
41
|
-
*/
|
42
|
-
valuePlaceholder?: string;
|
43
|
-
/**
|
44
|
-
* to be applied on each item
|
45
|
-
*/
|
46
|
-
itemClassName?: string;
|
47
|
-
}
|
48
|
-
export interface KeyValueItemProps extends Omit<KeyValueListProps, 'addButtonText' | 'keyValueList' | 'disabledInfo'> {
|
49
|
-
itemKey: string;
|
50
|
-
itemValue: string;
|
51
|
-
index: number;
|
52
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
- Copyright (c) 2024. Devtron Inc.
|
3
|
-
-
|
4
|
-
- Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
-
- you may not use this file except in compliance with the License.
|
6
|
-
- You may obtain a copy of the License at
|
7
|
-
-
|
8
|
-
- http://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
-
|
10
|
-
- Unless required by applicable law or agreed to in writing, software
|
11
|
-
- distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
- See the License for the specific language governing permissions and
|
14
|
-
- limitations under the License.
|
15
|
-
-->
|
16
|
-
|
17
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
18
|
-
<circle cx="12" cy="12" r="10" fill="#3B444C"/>
|
19
|
-
<path fill="#fff" d="M12.84 5.583A4.3 4.3 0 0 0 7.7 9.8a1 1 0 1 0 2 0 2.3 2.3 0 1 1 2.3 2.3 1 1 0 0 0-1 1v1.4a1 1 0 1 0 2 0v-.518a4.299 4.299 0 0 0-.16-8.4ZM12 18.5a.983.983 0 0 0 1-1 .968.968 0 0 0-.291-.705A.959.959 0 0 0 12 16.5a.959.959 0 0 0-.709.295.968.968 0 0 0-.291.705c0 .282.093.521.278.718A.996.996 0 0 0 12 18.5Z"/>
|
20
|
-
</svg>
|