@devtron-labs/devtron-fe-common-lib 0.0.84-beta-8 → 0.0.84-beta-10
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/EmptyState/GenericFilterEmptyState.d.ts +5 -2
- package/dist/Common/EmptyState/types.d.ts +13 -0
- package/dist/Common/Types.d.ts +2 -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/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-6a1f7423.js → cssMode-d5ecd877.js} +1 -1
- package/dist/{freemarker2-9760ca6d.js → freemarker2-1e613604.js} +1 -1
- package/dist/{handlebars-9eedc82a.js → handlebars-0788e37a.js} +1 -1
- package/dist/{html-b1cc5f95.js → html-25aeb167.js} +1 -1
- package/dist/{htmlMode-ccd66896.js → htmlMode-d3fcde21.js} +1 -1
- package/dist/{index-ac6c66a9.js → index-7657031c.js} +11523 -11404
- package/dist/index.js +239 -237
- package/dist/{javascript-7725d02c.js → javascript-00cf774f.js} +1 -1
- package/dist/{jsonMode-b05959fb.js → jsonMode-9b94e2f1.js} +1 -1
- package/dist/{liquid-45c43981.js → liquid-6111b445.js} +1 -1
- package/dist/{mdx-cb86fc8b.js → mdx-fcae9a1e.js} +1 -1
- package/dist/{python-f607d204.js → python-8e5b890d.js} +1 -1
- package/dist/{razor-6d5ed9ce.js → razor-2a6eddf2.js} +1 -1
- package/dist/{tsMode-b1270315.js → tsMode-b51b509f.js} +1 -1
- package/dist/{typescript-f3fdaa7d.js → typescript-4983e576.js} +1 -1
- package/dist/{xml-1ad0105a.js → xml-735dc1f8.js} +1 -1
- package/dist/{yaml-a6d99078.js → yaml-0ba07936.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GenericFilterEmptyStateProps } from './types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Empty state when no filters are applied
|
|
5
|
+
*/
|
|
6
|
+
declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
|
|
4
7
|
export default GenericFilterEmptyState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GenericEmptyStateType } from '../Types';
|
|
2
|
+
|
|
3
|
+
export type GenericFilterEmptyStateProps = Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'isButtonAvailable' | 'renderButton'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>> & ({
|
|
4
|
+
/**
|
|
5
|
+
* If provided, it will have priority over the isButtonAvailable prop
|
|
6
|
+
* and render clear filter button
|
|
7
|
+
*/
|
|
8
|
+
handleClearFilters?: () => void;
|
|
9
|
+
isButtonAvailable?: never;
|
|
10
|
+
renderButton?: never;
|
|
11
|
+
} | (Pick<GenericEmptyStateType, 'isButtonAvailable' | 'renderButton'> & {
|
|
12
|
+
handleClearFilters?: never;
|
|
13
|
+
}));
|
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;
|
|
@@ -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
|
+
}
|