@devtron-labs/devtron-fe-common-lib 0.0.85 → 0.0.86-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/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
- package/dist/Common/BreadCrumb/Types.d.ts +4 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +2 -1
- package/dist/Common/index.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
- package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
- package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
- package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +8 -0
- package/dist/Shared/Hooks/UsePrompt/index.d.ts +1 -0
- package/dist/Shared/Hooks/UsePrompt/types.d.ts +6 -0
- package/dist/Shared/Hooks/index.d.ts +1 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-fc8027c0.js → cssMode-433c1c77.js} +1 -1
- package/dist/{freemarker2-a1b77c94.js → freemarker2-9d4953cc.js} +1 -1
- package/dist/{handlebars-600385ac.js → handlebars-80e74344.js} +1 -1
- package/dist/{html-4b43d01e.js → html-3a6ce8dd.js} +1 -1
- package/dist/{htmlMode-30202b19.js → htmlMode-76955cac.js} +1 -1
- package/dist/{index-b4fe7092.js → index-f7613a22.js} +16517 -16304
- package/dist/index.js +312 -307
- package/dist/{javascript-a5c9dc03.js → javascript-3f1091bb.js} +1 -1
- package/dist/{jsonMode-913910ff.js → jsonMode-d88fac37.js} +1 -1
- package/dist/{liquid-e3f21e09.js → liquid-9c30dfd2.js} +1 -1
- package/dist/{mdx-7a771bd1.js → mdx-6ffb8bdf.js} +1 -1
- package/dist/{python-ae59b55f.js → python-8b9641b2.js} +1 -1
- package/dist/{razor-679f6ece.js → razor-ade53e47.js} +1 -1
- package/dist/{tsMode-1536b46f.js → tsMode-9e595afc.js} +1 -1
- package/dist/{typescript-92e07346.js → typescript-89ff900d.js} +1 -1
- package/dist/{xml-eb691a67.js → xml-275e33dc.js} +1 -1
- package/dist/{yaml-a92d5973.js → yaml-2595db97.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;
|
|
@@ -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/Types.d.ts
CHANGED
|
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
|
|
|
140
140
|
}
|
|
141
141
|
export declare enum ImageType {
|
|
142
142
|
Large = "large",
|
|
143
|
-
Medium = "medium"
|
|
143
|
+
Medium = "medium",
|
|
144
|
+
SMALL = "small"
|
|
144
145
|
}
|
|
145
146
|
export interface InfoColourBarType {
|
|
146
147
|
message: React.ReactNode;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export * from './Modals/OpaqueModal';
|
|
|
14
14
|
export * from './Modals/VisibleModal';
|
|
15
15
|
export * from './Modals/VisibleModal2';
|
|
16
16
|
export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
|
|
17
|
-
export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
|
|
17
|
+
export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
|
|
18
18
|
export { default as RadioGroup } from './RadioGroup';
|
|
19
19
|
export { default as RadioGroupItem } from './RadioGroupItem';
|
|
20
20
|
export { default as PopupMenu } from './PopupMenu';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
|
+
export default FeatureTitleWithInfo;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
2
|
+
import { ImageType } from '../../../Common';
|
|
3
|
+
|
|
4
|
+
export interface FeatureDescriptionModalProps {
|
|
5
|
+
title: string;
|
|
6
|
+
renderDescriptionContent?: () => JSX.Element;
|
|
7
|
+
closeModalText?: string;
|
|
8
|
+
docLink?: string;
|
|
9
|
+
closeModal?: () => void;
|
|
10
|
+
imageVariant?: ImageType;
|
|
11
|
+
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
12
|
+
imageStyles?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
15
|
+
breadCrumbs: Breadcrumb[];
|
|
16
|
+
additionalContainerClasses?: string;
|
|
17
|
+
iconClassName?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UsePromptProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Hook that shows a prompt when shouldPrompt is true and the user tries to leave the page through refresh
|
|
5
|
+
* Meant to be used alongside the Prompt component from react-router-dom
|
|
6
|
+
*/
|
|
7
|
+
declare const usePrompt: ({ shouldPrompt }: UsePromptProps) => void;
|
|
8
|
+
export default usePrompt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as usePrompt } from './UsePrompt';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './UsePrompt';
|
package/dist/Shared/index.d.ts
CHANGED