@devtron-labs/devtron-fe-common-lib 0.0.91-beta-5 → 0.0.91-beta-6
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/BreadCrumb/BreadcrumbStore.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +4 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
- package/dist/Common/MultiSelectCustomization.d.ts +8 -0
- package/dist/Common/RJSF/common/FieldRow.d.ts +4 -1
- package/dist/Common/RJSF/common/types.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +1 -4
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/Description.d.ts +3 -0
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/RJSF/templates/index.d.ts +1 -0
- package/dist/Common/RJSF/utils.d.ts +1 -3
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-ca30972b.js → cssMode-30528ab8.js} +1 -1
- package/dist/{freemarker2-8efb5f10.js → freemarker2-b33829a1.js} +1 -1
- package/dist/{handlebars-881fb06c.js → handlebars-f6cb2200.js} +1 -1
- package/dist/{html-2f2c6515.js → html-dd23535a.js} +1 -1
- package/dist/{htmlMode-7fb13d77.js → htmlMode-7c348c34.js} +1 -1
- package/dist/{index-27a11224.js → index-440ae6eb.js} +15538 -15459
- package/dist/index.js +403 -400
- package/dist/{javascript-3ee0a858.js → javascript-9128b5a6.js} +1 -1
- package/dist/{jsonMode-dee25418.js → jsonMode-28dbccd1.js} +1 -1
- package/dist/{liquid-90634c1b.js → liquid-a70bcd0e.js} +1 -1
- package/dist/{mdx-bfccab0e.js → mdx-a4c7252c.js} +1 -1
- package/dist/{python-655432b2.js → python-dca2163f.js} +1 -1
- package/dist/{razor-3a0b59c1.js → razor-9775cf93.js} +1 -1
- package/dist/{tsMode-f220e0c7.js → tsMode-25965564.js} +1 -1
- package/dist/{typescript-901a82e2.js → typescript-74fdc1f9.js} +1 -1
- package/dist/{xml-d92ad752.js → xml-ce45edc7.js} +1 -1
- package/dist/{yaml-68e1d484.js → yaml-aeb3e4a4.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { BreadcrumbTextProps } from './Types';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
|
|
4
|
+
export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
|
|
3
5
|
declare const Store: ({ children }: {
|
|
4
6
|
children: any;
|
|
5
7
|
}) => JSX.Element;
|
|
@@ -2,5 +2,8 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
|
2
2
|
|
|
3
3
|
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
4
|
}
|
|
5
|
-
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch'> {
|
|
6
|
+
}
|
|
7
|
+
export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
|
|
8
|
+
pageNumber: number;
|
|
6
9
|
}
|
|
@@ -2,7 +2,15 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export declare const Option: (props: any) => JSX.Element;
|
|
4
4
|
export declare const SingleSelectOption: (props: any) => JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Multi value container
|
|
7
|
+
*/
|
|
5
8
|
export declare const MultiValueContainer: (props: any) => JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* Multi value container with count
|
|
12
|
+
*/
|
|
13
|
+
export declare const MultiValueContainerWithCount: (props: any) => JSX.Element;
|
|
6
14
|
export declare const ClearIndicator: (props: any) => JSX.Element;
|
|
7
15
|
export declare const MultiValueRemove: (props: any) => JSX.Element;
|
|
8
16
|
export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { DO_NOT_SHOW_LABEL } from '../constants';
|
|
1
2
|
import { FieldRowProps } from './types';
|
|
2
3
|
|
|
3
|
-
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id,
|
|
4
|
+
export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
|
|
5
|
+
label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
|
|
6
|
+
}) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldTemplateProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'
|
|
3
|
+
export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
|
|
4
4
|
showLabel?: boolean;
|
|
5
5
|
/**
|
|
6
6
|
* @default true
|
|
@@ -4,7 +4,4 @@ export declare const PLACEHOLDERS: {
|
|
|
4
4
|
OBJECT_KEY: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const DEFAULT_FIELD_TITLE = "Key not available";
|
|
7
|
-
export declare const
|
|
8
|
-
MAX_WIDTH_VALUE: number;
|
|
9
|
-
MAX_WIDTH_CLASSNAME: string;
|
|
10
|
-
};
|
|
7
|
+
export declare const DO_NOT_SHOW_LABEL: unique symbol;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const AddButton: ({
|
|
3
|
+
export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required
|
|
3
|
+
export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
|
|
@@ -2,6 +2,7 @@ export { ArrayFieldTemplate } from './ArrayFieldTemplate';
|
|
|
2
2
|
export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
|
|
3
3
|
export { BaseInput as BaseInputTemplate } from './BaseInput';
|
|
4
4
|
export * from './ButtonTemplates';
|
|
5
|
+
export { Description as DescriptionFieldTemplate } from './Description';
|
|
5
6
|
export { Field as FieldTemplate } from './Field';
|
|
6
7
|
export { FieldErrorTemplate } from './FieldErrorTemplate';
|
|
7
8
|
export { ObjectFieldTemplate } from './ObjectFieldTemplate';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as Tippy } from '@tippyjs/react';
|
|
2
1
|
import { TranslatableString } from '@rjsf/utils';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -13,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
|
|
|
13
12
|
valueContainer: (base: any, state: any) => any;
|
|
14
13
|
loadingMessage: (base: any) => any;
|
|
15
14
|
noOptionsMessage: (base: any) => any;
|
|
16
|
-
multiValue: (base: any) => any;
|
|
15
|
+
multiValue: (base: any, state: any) => any;
|
|
17
16
|
};
|
|
18
17
|
/**
|
|
19
18
|
* Returns the redirection props for a url
|
|
@@ -25,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
25
24
|
* Infers the type for json schema from value type
|
|
26
25
|
*/
|
|
27
26
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
28
|
-
export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
|
|
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
|
|
|
34
34
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
|
@@ -32,6 +32,10 @@ export interface SearchBarProps {
|
|
|
32
32
|
* Timeout for the debounce handler to be triggered
|
|
33
33
|
*/
|
|
34
34
|
debounceTimeout?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Data test id for the search input
|
|
37
|
+
*/
|
|
38
|
+
dataTestId?: string;
|
|
35
39
|
/**
|
|
36
40
|
* Hide the background and border of the search
|
|
37
41
|
*/
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export * from './Modals/Modal';
|
|
|
13
13
|
export * from './Modals/VisibleModal';
|
|
14
14
|
export * from './Modals/VisibleModal2';
|
|
15
15
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
|
|
16
|
-
export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
|
|
16
|
+
export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
|
|
17
17
|
export { default as RadioGroup } from './RadioGroup';
|
|
18
18
|
export { default as RadioGroupItem } from './RadioGroupItem';
|
|
19
19
|
export { default as PopupMenu } from './PopupMenu';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const CommonGroupedDropdownStyles: {
|
|
2
|
+
container: (base: any, state: any) => any;
|
|
3
|
+
control: (base: any, state: any) => any;
|
|
4
|
+
singleValue: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
valueContainer: (base: any) => any;
|
|
7
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
8
|
+
group: (base: any) => any;
|
|
9
|
+
groupHeading: (base: any) => any;
|
|
10
|
+
menuList: (base: any) => any;
|
|
11
|
+
multiValue: (base: any) => any;
|
|
12
|
+
multiValueLabel: (base: any) => any;
|
|
13
|
+
placeholder: (base: any) => any;
|
|
14
|
+
};
|