@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.
Files changed (39) hide show
  1. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  2. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  3. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  4. package/dist/Common/SearchBar/types.d.ts +4 -0
  5. package/dist/Common/Types.d.ts +2 -1
  6. package/dist/Common/index.d.ts +1 -1
  7. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  8. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  9. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  10. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  11. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  12. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  13. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  14. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  15. package/dist/Shared/Components/index.d.ts +1 -0
  16. package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +8 -0
  17. package/dist/Shared/Hooks/UsePrompt/index.d.ts +1 -0
  18. package/dist/Shared/Hooks/UsePrompt/types.d.ts +6 -0
  19. package/dist/Shared/Hooks/index.d.ts +1 -0
  20. package/dist/Shared/index.d.ts +1 -0
  21. package/dist/assets/index.css +1 -1
  22. package/dist/{cssMode-fc8027c0.js → cssMode-433c1c77.js} +1 -1
  23. package/dist/{freemarker2-a1b77c94.js → freemarker2-9d4953cc.js} +1 -1
  24. package/dist/{handlebars-600385ac.js → handlebars-80e74344.js} +1 -1
  25. package/dist/{html-4b43d01e.js → html-3a6ce8dd.js} +1 -1
  26. package/dist/{htmlMode-30202b19.js → htmlMode-76955cac.js} +1 -1
  27. package/dist/{index-b4fe7092.js → index-f7613a22.js} +16517 -16304
  28. package/dist/index.js +312 -307
  29. package/dist/{javascript-a5c9dc03.js → javascript-3f1091bb.js} +1 -1
  30. package/dist/{jsonMode-913910ff.js → jsonMode-d88fac37.js} +1 -1
  31. package/dist/{liquid-e3f21e09.js → liquid-9c30dfd2.js} +1 -1
  32. package/dist/{mdx-7a771bd1.js → mdx-6ffb8bdf.js} +1 -1
  33. package/dist/{python-ae59b55f.js → python-8b9641b2.js} +1 -1
  34. package/dist/{razor-679f6ece.js → razor-ade53e47.js} +1 -1
  35. package/dist/{tsMode-1536b46f.js → tsMode-9e595afc.js} +1 -1
  36. package/dist/{typescript-92e07346.js → typescript-89ff900d.js} +1 -1
  37. package/dist/{xml-eb691a67.js → xml-275e33dc.js} +1 -1
  38. package/dist/{yaml-a92d5973.js → yaml-2595db97.js} +1 -1
  39. 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;
@@ -26,3 +26,7 @@ export interface Breadcrumbs {
26
26
  className?: string;
27
27
  }
28
28
  export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
29
+ export interface BreadcrumbTextProps {
30
+ heading: string;
31
+ isActive?: boolean;
32
+ }
@@ -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
  */
@@ -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;
@@ -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,3 @@
1
+ import { FeatureDescriptionModalProps } from './types';
2
+
3
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -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,8 @@
1
+ export declare enum BUTTON_TEXT {
2
+ GOT_IT = "Got it",
3
+ VIEW_DOCUMENTATION = "View Documentation"
4
+ }
5
+ export declare enum IMAGE_VARIANT {
6
+ SMALL = "small",
7
+ LARGE = "large"
8
+ }
@@ -0,0 +1,2 @@
1
+ export * from './FeatureDescriptionModal';
2
+ export { default as FeatureTitleWithInfo } from './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,6 @@
1
+ import { ImageType } from '../../../Common';
2
+
3
+ export declare const getImageSize: (imageType: ImageType) => {
4
+ width: string;
5
+ height: string;
6
+ };
@@ -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
+ };
@@ -1 +1,2 @@
1
1
  export * from './utils';
2
+ export * from './constants';
@@ -17,3 +17,4 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
+ export * from './FeatureDescription';
@@ -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,6 @@
1
+ export interface UsePromptProps {
2
+ /**
3
+ * If true the prompt will be shown
4
+ */
5
+ shouldPrompt: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './UsePrompt';
@@ -5,3 +5,4 @@ export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
7
  export * from './constants';
8
+ export * from './Hooks';