@devtron-labs/devtron-fe-common-lib 1.18.1-pre-3 → 1.18.1-pre-5
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-Cpy4hA_i.js → @code-editor-BzeAa_a8.js} +2888 -2883
- package/dist/{@common-rjsf-B_yuIRxG.js → @common-rjsf-B6-zgtfh.js} +136 -135
- package/dist/Pages/BulkEdit/index.d.ts +1 -0
- package/dist/Pages/BulkEdit/types.d.ts +50 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/Chip/Chip.component.d.ts +1 -1
- package/dist/Shared/Components/Chip/types.d.ts +7 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -3
- package/dist/assets/ic-resize-handle.b0afcd2d.svg +9 -0
- package/dist/index.js +868 -867
- package/package.json +1 -1
@@ -1,6 +1,7 @@
|
|
1
1
|
import { MouseEvent, PropsWithChildren } from 'react';
|
2
2
|
import { ComponentSizeType } from '../../constants';
|
3
3
|
import { IconsProps } from '../Icon';
|
4
|
+
import { SelectPickerOptionType } from '../SelectPicker';
|
4
5
|
export type ChipProps = {
|
5
6
|
/**
|
6
7
|
* The label to be displayed on the chip.
|
@@ -18,7 +19,6 @@ export type ChipProps = {
|
|
18
19
|
* @default 'neutral'
|
19
20
|
*/
|
20
21
|
style?: 'neutral' | 'error';
|
21
|
-
startIconProps?: Pick<IconsProps, 'name' | 'color'>;
|
22
22
|
capitalizeLabel?: boolean;
|
23
23
|
} & ({
|
24
24
|
type: 'button';
|
@@ -52,6 +52,12 @@ export type ChipProps = {
|
|
52
52
|
* This is optional and can be used to handle the removal of the chip.
|
53
53
|
*/
|
54
54
|
onRemove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
55
|
+
}) & ({
|
56
|
+
startIconProps?: Pick<IconsProps, 'name' | 'color'>;
|
57
|
+
startIcon?: never;
|
58
|
+
} | {
|
59
|
+
startIconProps?: never;
|
60
|
+
startIcon?: SelectPickerOptionType['startIcon'];
|
55
61
|
});
|
56
62
|
export interface GetIconPropsType extends Pick<ChipProps, 'style' | 'startIconProps' | 'size'> {
|
57
63
|
}
|
@@ -170,6 +170,7 @@ export declare const iconMap: {
|
|
170
170
|
'ic-play-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
171
171
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
172
172
|
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
173
|
+
'ic-resize-handle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
173
174
|
'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
174
175
|
'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
175
176
|
'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -9,7 +9,6 @@ import { ComponentSizeType } from '../../constants';
|
|
9
9
|
import { ActionMenuProps } from '../ActionMenu';
|
10
10
|
import { ButtonComponentType, ButtonProps, ButtonVariantType } from '../Button';
|
11
11
|
import { FormFieldWrapperProps } from '../FormFieldWrapper/types';
|
12
|
-
import { IconsProps } from '../Icon';
|
13
12
|
export interface SelectPickerOptionType<OptionValue = string | number, OptionLabel = ReactNode> extends OptionType<OptionValue, OptionLabel> {
|
14
13
|
/**
|
15
14
|
* Description to be displayed for the option
|
@@ -18,11 +17,11 @@ export interface SelectPickerOptionType<OptionValue = string | number, OptionLab
|
|
18
17
|
/**
|
19
18
|
* Icon at the start of the option
|
20
19
|
*/
|
21
|
-
startIcon?: ReactElement
|
20
|
+
startIcon?: ReactElement;
|
22
21
|
/**
|
23
22
|
* Icon at the end of the option
|
24
23
|
*/
|
25
|
-
endIcon?: ReactElement
|
24
|
+
endIcon?: ReactElement;
|
26
25
|
/**
|
27
26
|
* Props passed to show the tippy on option
|
28
27
|
*/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="11" viewBox="0 0 15 11" fill="none">
|
2
|
+
<rect data-style-override="false" y="0.5" width="14.5" height="10" rx="2" fill="#D0D4D9"/>
|
3
|
+
<circle data-style-override="false" cx="4.75" cy="4.25" r="0.75" fill="#000A14"/>
|
4
|
+
<circle data-style-override="false" cx="7.25" cy="4.25" r="0.75" fill="#000A14"/>
|
5
|
+
<circle data-style-override="false" cx="9.75" cy="4.25" r="0.75" fill="#000A14"/>
|
6
|
+
<circle data-style-override="false" cx="4.75" cy="6.75" r="0.75" fill="#000A14"/>
|
7
|
+
<circle data-style-override="false" cx="7.25" cy="6.75" r="0.75" fill="#000A14"/>
|
8
|
+
<circle data-style-override="false" cx="9.75" cy="6.75" r="0.75" fill="#000A14"/>
|
9
|
+
</svg>
|