@devtron-labs/devtron-fe-common-lib 0.2.30-beta-4 → 0.2.30-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.
@@ -2,7 +2,5 @@ import { ProgressingProps } from '../../../Common/Types';
2
2
  import { ButtonProps } from './types';
3
3
  export declare const BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
4
4
  export declare const ICON_BUTTON_SIZE_TO_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
5
- export declare const BUTTON_SIZE_TO_ICON_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
6
- export declare const ICON_BUTTON_SIZE_TO_ICON_CLASS_NAME_MAP: Record<ButtonProps['size'], string>;
7
- export declare const BUTTON_SIZE_TO_LOADER_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
8
- export declare const ICON_BUTTON_SIZE_TO_LOADER_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
5
+ export declare const BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
6
+ export declare const ICON_BUTTON_SIZE_TO_ICON_SIZE_MAP: Record<ButtonProps['size'], ProgressingProps['size']>;
@@ -1,2 +1,2 @@
1
1
  import { ToastProps } from './types';
2
- export declare const ToastContent: ({ title, description, buttonProps }: Omit<ToastProps, "variant">) => JSX.Element;
2
+ export declare const ToastContent: ({ title, description, buttonProps, }: Pick<ToastProps, "title" | "description" | "buttonProps">) => JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { ToastOptions, ToastContainerProps } from 'react-toastify';
2
2
  import { ToastProps, ToastVariantType } from './types';
3
3
  export declare const TOAST_BASE_CONFIG: ToastContainerProps;
4
- export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title'>> & Pick<ToastOptions, 'type'>>;
4
+ export declare const TOAST_VARIANT_TO_CONFIG_MAP: Record<ToastVariantType, Required<Pick<ToastProps, 'icon' | 'title' | 'progressBarBg'>> & Pick<ToastOptions, 'type'>>;
@@ -3,7 +3,7 @@ import { ToastProps } from './types';
3
3
  declare class ToastManager {
4
4
  #private;
5
5
  static get instance(): ToastManager;
6
- showToast: ({ variant, icon: customIcon, title, description, buttonProps }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
6
+ showToast: ({ variant, icon: customIcon, title, description, buttonProps, progressBarBg: customProgressBarBg, }: ToastProps, options?: Pick<ToastOptions, "autoClose">) => import('react-toastify').Id;
7
7
  }
8
8
  export declare const ToastManagerContainer: () => JSX.Element;
9
9
  declare const _default: ToastManager;
@@ -13,4 +13,5 @@ export interface ToastProps {
13
13
  icon?: ReactElement;
14
14
  variant?: ToastVariantType;
15
15
  buttonProps?: ButtonProps;
16
+ progressBarBg?: `var(--${string})`;
16
17
  }