@devtron-labs/devtron-fe-common-lib 1.6.13-beta-5 → 1.6.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.6.13-beta-5",
3
+ "version": "1.6.14",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { InfoBlockProps } from './types';
2
- declare const InfoBlock: ({ layout, variant, size, customIcon, buttonProps, heading, description, borderRadiusConfig, borderConfig, }: InfoBlockProps) => JSX.Element;
3
- export default InfoBlock;
@@ -1,3 +0,0 @@
1
- import { InfoBlockProps } from './types';
2
- export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
3
- export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
@@ -1,2 +0,0 @@
1
- export { default as InfoBlock } from './InfoBlock.component';
2
- export * from './types';
@@ -1,40 +0,0 @@
1
- import { ComponentSizeType } from '../../constants';
2
- import { BorderConfigType, ComponentLayoutType } from '../../types';
3
- import { ReactElement, ReactNode } from 'react';
4
- import { ButtonProps } from '../Button';
5
- export type InfoBlockProps = {
6
- /**
7
- * @default 'row'
8
- */
9
- layout?: ComponentLayoutType;
10
- /**
11
- * @default 'information'
12
- */
13
- variant?: 'error' | 'help' | 'information' | 'success' | 'warning';
14
- /**
15
- * @default ComponentSizeType.medium
16
- */
17
- size?: Extract<ComponentSizeType, ComponentSizeType.large | ComponentSizeType.medium>;
18
- /**
19
- * If given would override the default icon derived from type
20
- */
21
- customIcon?: ReactElement;
22
- buttonProps?: ButtonProps;
23
- borderConfig?: BorderConfigType;
24
- borderRadiusConfig?: BorderConfigType;
25
- } & ({
26
- /**
27
- * If string, would apply h tag with necessary classes
28
- */
29
- heading: ReactNode;
30
- /**
31
- * If string, would apply p tag with necessary classes
32
- */
33
- description: ReactNode;
34
- } | {
35
- heading?: never;
36
- description: ReactNode;
37
- } | {
38
- heading: ReactNode;
39
- description?: never;
40
- });