@devtron-labs/devtron-fe-common-lib 0.0.6-beta-16 → 0.0.6-beta-18

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.
@@ -1,8 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { TagType } from '../Types';
3
- export default function TagDetails({ index, tagData, setTagData, removeTag, }: {
4
- index: number;
5
- tagData: TagType;
6
- setTagData: (index: number, tagData: TagType) => void;
7
- removeTag: (index: number) => void;
8
- }): JSX.Element;
2
+ import { TagDetailType } from '../Types';
3
+ export default function TagDetails({ index, tagData, setTagData, removeTag }: TagDetailType): JSX.Element;
@@ -1,6 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { TagType } from '../Types';
3
- export declare const TagLabelSelect: ({ labelTags, setLabelTags, }: {
4
- labelTags: TagType[];
5
- setLabelTags: (tagList: TagType[]) => void;
6
- }) => JSX.Element;
2
+ import { TagLabelSelectType } from '../Types';
3
+ export declare const TagLabelSelect: ({ labelTags, setLabelTags }: TagLabelSelectType) => JSX.Element;
@@ -1,10 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { OptionType, TagType } from '../Types';
3
- export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, type, }: {
4
- selectedTagIndex: number;
5
- tagData: TagType;
6
- setTagData: (index: number, tagData: TagType) => void;
7
- tagOptions?: OptionType[];
8
- isRequired?: boolean;
9
- type?: string;
10
- }) => JSX.Element;
2
+ import { TagLabelValueSelectorType } from '../Types';
3
+ export declare const TagLabelValueSelector: ({ selectedTagIndex, tagData, setTagData, tagOptions, isRequired, type, placeholder, }: TagLabelValueSelectorType) => JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import './infoColourBar.scss';
3
+ interface InfoColourBarType {
4
+ message: React.ReactNode;
5
+ classname: string;
6
+ Icon: any;
7
+ iconClass?: string;
8
+ iconSize?: number;
9
+ renderActionButton?: () => JSX.Element;
10
+ linkText?: React.ReactNode;
11
+ redirectLink?: string;
12
+ linkOnClick?: () => void;
13
+ linkClass?: string;
14
+ internalLink?: boolean;
15
+ styles?: CSSProperties;
16
+ }
17
+ declare function InfoColourBar({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType): JSX.Element;
18
+ export default InfoColourBar;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ export declare const Option: (props: any) => JSX.Element;
3
+ export declare const SingleSelectOption: (props: any) => JSX.Element;
4
+ export declare const MultiValueContainer: (props: any) => JSX.Element;
5
+ export declare const ClearIndicator: (props: any) => JSX.Element;
6
+ export declare const MultiValueRemove: (props: any) => JSX.Element;
7
+ export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
8
+ [x: string]: any;
9
+ validator: any;
10
+ isAllSelected?: boolean;
11
+ }) => JSX.Element;
12
+ export declare const multiSelectStyles: {
13
+ control: (base: any, state: any) => any;
14
+ menu: (base: any, state: any) => any;
15
+ option: (base: any, state: any) => any;
16
+ container: (base: any, state: any) => any;
17
+ valueContainer: (base: any, state: any) => any;
18
+ };
19
+ interface CustomSelect {
20
+ sortSelected?: boolean;
21
+ options: any[];
22
+ onChange: (...args: any[]) => void;
23
+ value?: any;
24
+ name?: string;
25
+ placeholder?: string;
26
+ className?: string;
27
+ classNamePrefix?: string;
28
+ menuPortalTarget?: any;
29
+ components?: object;
30
+ styles?: object;
31
+ isMulti?: boolean;
32
+ isDisabled?: boolean;
33
+ closeMenuOnSelect?: boolean;
34
+ hideSelectedOptions?: boolean;
35
+ formatOptionLabel?: (...args: any[]) => any;
36
+ }
37
+ export declare const CustomSelect: React.FC<CustomSelect>;
38
+ export {};
@@ -14,6 +14,7 @@ export interface TagType {
14
14
  value?: string;
15
15
  description?: string;
16
16
  propagate: boolean;
17
+ mandatoryProjectIdsCsv?: string[];
17
18
  isInvalidKey?: boolean;
18
19
  isInvalidValue?: boolean;
19
20
  }
@@ -25,3 +26,22 @@ export declare enum TippyTheme {
25
26
  black = "black",
26
27
  white = "white"
27
28
  }
29
+ export interface TagLabelSelectType {
30
+ labelTags: TagType[];
31
+ setLabelTags: (tagList: TagType[]) => void;
32
+ }
33
+ export interface TagDetailType {
34
+ index: number;
35
+ tagData: TagType;
36
+ setTagData: (index: number, tagData: TagType) => void;
37
+ removeTag: (index: number) => void;
38
+ }
39
+ export interface TagLabelValueSelectorType {
40
+ selectedTagIndex: number;
41
+ tagData: TagType;
42
+ setTagData: (index: number, tagData: TagType) => void;
43
+ tagOptions?: OptionType[];
44
+ isRequired?: boolean;
45
+ type?: string;
46
+ placeholder?: string;
47
+ }
@@ -20,3 +20,5 @@ export { default as PopupMenu } from './PopupMenu';
20
20
  export * from './TippyCustomized';
21
21
  export * from './CustomTagSelector';
22
22
  export * from './Dialogs';
23
+ export * from './MultiSelectCustomization';
24
+ export * from './InfoColorBar/InfoColourbar';