@devtron-labs/devtron-fe-common-lib 0.1.7-beta-2 → 0.1.7-beta-4
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/AppStatus/constants.d.ts +5 -0
- package/dist/Common/Types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +26 -9
- package/dist/Shared/types.d.ts +9 -1
- package/dist/{cssMode-24971faa.js → cssMode-fc2be6d5.js} +1 -1
- package/dist/{freemarker2-2f506bf9.js → freemarker2-ab57a29d.js} +1 -1
- package/dist/{handlebars-704be48e.js → handlebars-871e6835.js} +1 -1
- package/dist/{html-e64f9cf8.js → html-670d22ac.js} +1 -1
- package/dist/{htmlMode-0bf0510a.js → htmlMode-f5102733.js} +1 -1
- package/dist/{index-0117514b.js → index-b430b2a2.js} +20293 -20553
- package/dist/index.d.ts +2 -1
- package/dist/index.js +268 -269
- package/dist/{javascript-d97fb954.js → javascript-58e5b3f5.js} +1 -1
- package/dist/{jsonMode-b051cf88.js → jsonMode-2cc430f9.js} +1 -1
- package/dist/{liquid-9326ab12.js → liquid-9977f727.js} +1 -1
- package/dist/{mdx-9bace22d.js → mdx-d6d3e9d4.js} +1 -1
- package/dist/{python-369d66c5.js → python-890444de.js} +1 -1
- package/dist/{razor-94c0e3af.js → razor-28b18835.js} +1 -1
- package/dist/{tsMode-e4644dfa.js → tsMode-ec7004ab.js} +1 -1
- package/dist/{typescript-626fc7fb.js → typescript-d5a6cd11.js} +1 -1
- package/dist/{xml-044e00e2.js → xml-c48d9e49.js} +1 -1
- package/dist/{yaml-546b76b4.js → yaml-c3b03264.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +0 -90
- package/dist/Shared/Components/SelectPicker/common.d.ts +0 -10
- package/dist/Shared/Components/SelectPicker/index.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -74
- package/dist/Shared/Components/SelectPicker/utils.d.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-b430b2a2.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var R = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var _ = (e, t, r) => (R(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { t as K, m as E } from "./index-
|
|
4
|
+
import { t as K, m as E } from "./index-b430b2a2.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as a } from "./index-
|
|
1
|
+
import { m as a } from "./index-b430b2a2.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m } from "./index-
|
|
1
|
+
import { m } from "./index-b430b2a2.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-b430b2a2.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare const AppListConstants: {
|
|
2
|
-
SAMPLE_NODE_REPO_URL: string;
|
|
3
|
-
CREATE_DEVTRON_APP_URL: string;
|
|
4
|
-
AppTabs: {
|
|
5
|
-
DEVTRON_APPS: string;
|
|
6
|
-
HELM_APPS: string;
|
|
7
|
-
ARGO_APPS: string;
|
|
8
|
-
};
|
|
9
|
-
AppType: {
|
|
10
|
-
DEVTRON_APPS: string;
|
|
11
|
-
HELM_APPS: string;
|
|
12
|
-
ARGO_APPS: string;
|
|
13
|
-
};
|
|
14
|
-
FilterType: {
|
|
15
|
-
PROJECT: string;
|
|
16
|
-
CLUTSER: string;
|
|
17
|
-
NAMESPACE: string;
|
|
18
|
-
ENVIRONMENT: string;
|
|
19
|
-
APP_STATUS: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default AppListConstants;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { SelectPickerProps } from './type';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Generic component for select picker
|
|
5
|
-
*
|
|
6
|
-
* @example With icon in control
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <SelectPicker ... icon={<CustomIcon />} />
|
|
9
|
-
* ```
|
|
10
|
-
*
|
|
11
|
-
* @example Medium menu list width
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <SelectPicker ... menuSize={ComponentSizeType.medium} />
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @example Large menu list width
|
|
17
|
-
* ```tsx
|
|
18
|
-
* <SelectPicker ... menuSize={ComponentSizeType.large} />
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @example Required label
|
|
22
|
-
* ```tsx
|
|
23
|
-
* <SelectPicker ... required label="Label" />
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* @example Custom label
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <SelectPicker ... label={<div>Label</div>} />
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @example Error state
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <SelectPicker ... error="Something went wrong" />
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @example Custom label
|
|
37
|
-
* ```tsx
|
|
38
|
-
* <SelectPicker ... label={<div>Label</div>} />
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @example Helper text
|
|
42
|
-
* ```tsx
|
|
43
|
-
* <SelectPicker ... helperText="Help information" />
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @example Menu list footer
|
|
47
|
-
* The footer is sticky by default
|
|
48
|
-
* ```tsx
|
|
49
|
-
* <SelectPicker
|
|
50
|
-
* ...
|
|
51
|
-
* renderMenuListFooter={() => (
|
|
52
|
-
* <div className="px-8 py-6 dc__border-top bcn-50 cn-6">
|
|
53
|
-
* <div>Foot note</div>
|
|
54
|
-
* </div>
|
|
55
|
-
* )}
|
|
56
|
-
* />
|
|
57
|
-
* ```
|
|
58
|
-
*
|
|
59
|
-
* @example Loading state
|
|
60
|
-
* ```tsx
|
|
61
|
-
* <SelectPicker ... isLoading />
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @example Disabled state
|
|
65
|
-
* ```tsx
|
|
66
|
-
* <SelectPicker ... isDisabled />
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @example Loading & disabled state
|
|
70
|
-
* ```tsx
|
|
71
|
-
* <SelectPicker ... isLoading isDisabled />
|
|
72
|
-
* ```
|
|
73
|
-
*
|
|
74
|
-
* @example Hide selected option icon in control
|
|
75
|
-
* ```tsx
|
|
76
|
-
* <SelectPicker ... showSelectedOptionIcon={false} />
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @example Selected option clearable
|
|
80
|
-
* ```tsx
|
|
81
|
-
* <SelectPicker ... isClearable />
|
|
82
|
-
* ```
|
|
83
|
-
*
|
|
84
|
-
* @example Selected option clearable
|
|
85
|
-
* ```tsx
|
|
86
|
-
* <SelectPicker ... showSelectedOptionsCount />
|
|
87
|
-
* ```
|
|
88
|
-
*/
|
|
89
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
90
|
-
export default SelectPicker;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps, ValueContainerProps, MenuListProps } from 'react-select';
|
|
2
|
-
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
|
-
|
|
4
|
-
export declare const SelectPickerDropdownIndicator: (props: DropdownIndicatorProps<SelectPickerOptionType>) => JSX.Element;
|
|
5
|
-
export declare const SelectPickerClearIndicator: (props: ClearIndicatorProps<SelectPickerOptionType>) => JSX.Element;
|
|
6
|
-
export declare const SelectPickerControl: ({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'icon' | 'showSelectedOptionIcon'>) => JSX.Element;
|
|
7
|
-
export declare const SelectPickerValueContainer: ({ showSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'showSelectedOptionsCount'>) => JSX.Element;
|
|
8
|
-
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
9
|
-
export declare const SelectPickerOption: (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
10
|
-
export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { OptionType } from '../../../Common/Types';
|
|
2
|
-
import { ComponentSizeType } from '../../constants';
|
|
3
|
-
import { ReactElement, ReactNode } from 'react';
|
|
4
|
-
import { Props as ReactSelectProps } from 'react-select';
|
|
5
|
-
|
|
6
|
-
export interface SelectPickerOptionType extends OptionType<number | string, ReactNode> {
|
|
7
|
-
/**
|
|
8
|
-
* Description to be displayed for the option
|
|
9
|
-
*/
|
|
10
|
-
description?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Icon at the start of the option
|
|
13
|
-
*/
|
|
14
|
-
startIcon?: ReactElement;
|
|
15
|
-
/**
|
|
16
|
-
* Icon at the end of the option
|
|
17
|
-
*/
|
|
18
|
-
endIcon?: ReactElement;
|
|
19
|
-
}
|
|
20
|
-
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
21
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
22
|
-
/**
|
|
23
|
-
* Icon to be rendered in the control
|
|
24
|
-
*/
|
|
25
|
-
icon?: ReactElement;
|
|
26
|
-
/**
|
|
27
|
-
* Error message for the select
|
|
28
|
-
*/
|
|
29
|
-
error?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Render function for the footer at the bottom of menu list. It is sticky by default
|
|
32
|
-
*/
|
|
33
|
-
renderMenuListFooter?: () => ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Info text for the select, if any
|
|
36
|
-
*/
|
|
37
|
-
helperText?: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Label for the select. if required is added, the corresponding * is also added
|
|
40
|
-
*/
|
|
41
|
-
label?: ReactNode;
|
|
42
|
-
/**
|
|
43
|
-
* If true, the selected option icon is shown in the container.
|
|
44
|
-
* startIcon has higher priority than endIcon.
|
|
45
|
-
*
|
|
46
|
-
* @default 'true'
|
|
47
|
-
*/
|
|
48
|
-
showSelectedOptionIcon?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* Height of the dropdown
|
|
51
|
-
*
|
|
52
|
-
* @default 'ComponentSizeType.medium'
|
|
53
|
-
*/
|
|
54
|
-
size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
|
|
55
|
-
/**
|
|
56
|
-
* Content to be shown in a tippy when disabled
|
|
57
|
-
*/
|
|
58
|
-
disabledTippyContent?: ReactNode;
|
|
59
|
-
/**
|
|
60
|
-
* If true, the selected options count is shown in a chip inside ValueContainer
|
|
61
|
-
*
|
|
62
|
-
* @default 'false'
|
|
63
|
-
*/
|
|
64
|
-
showSelectedOptionsCount?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Width of the menu list
|
|
67
|
-
*
|
|
68
|
-
* Note: the overflow needs to be handled explicitly for non-small variants
|
|
69
|
-
*
|
|
70
|
-
* @default 'ComponentSizeType.small'
|
|
71
|
-
*/
|
|
72
|
-
menuSize?: ComponentSizeType;
|
|
73
|
-
}
|
|
74
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StylesConfig } from 'react-select';
|
|
2
|
-
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
|
-
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
|