@devtron-labs/devtron-fe-common-lib 1.8.11 → 1.9.1

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.
@@ -0,0 +1,2 @@
1
+ declare const Confetti: () => JSX.Element;
2
+ export default Confetti;
@@ -0,0 +1 @@
1
+ export { default as Confetti } from './Confetti.component';
@@ -63,6 +63,10 @@ export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWith
63
63
  * @deprecated Used to extend the width to 500px and remove gap between title and subTitle.
64
64
  */
65
65
  isLandscapeView?: boolean;
66
+ /**
67
+ * @default false
68
+ */
69
+ showConfetti?: boolean;
66
70
  }> & ButtonConfigAndVariantType<isConfig> & (isConfig extends false ? {
67
71
  /**
68
72
  * Function to handle modal close action.
@@ -5,6 +5,6 @@ interface LogoutCardType {
5
5
  setShowLogOutCard: React.Dispatch<React.SetStateAction<boolean>>;
6
6
  showLogOutCard: boolean;
7
7
  }
8
- export declare const LOGOUT_CARD_BASE_BUTTON_CLASS = "dc__unset-button-styles dc__content-space px-12 py-6 fs-13 fw-4 lh-20 cursor w-100 flex left br-4";
8
+ export declare const LOGOUT_CARD_BASE_BUTTON_CLASS = "dc__unset-button-styles dc__content-space px-12 py-8 fs-13 fw-4 lh-20 cursor w-100 flex left br-4";
9
9
  declare const LogoutCard: ({ className, userFirstLetter, setShowLogOutCard, showLogOutCard }: LogoutCardType) => JSX.Element;
10
10
  export default LogoutCard;
@@ -67,3 +67,4 @@ export * from './CustomInput';
67
67
  export * from './InfoBlock';
68
68
  export * from './CodeEditorWrapper';
69
69
  export * from './SSOProviderIcon';
70
+ export * from './Confetti';
@@ -1,3 +1,4 @@
1
1
  export * from './ThemeProvider';
2
2
  export { AppThemeType } from './types';
3
3
  export { getComponentSpecificThemeClass, getThemePreferenceText } from './utils';
4
+ export { THEME_PREFERENCE_STORAGE_KEY } from './constants';
@@ -30,7 +30,11 @@ export interface ThemeContextType extends ThemeConfigType {
30
30
  handleShowSwitchThemeLocationTippyChange: (isVisible: boolean) => void;
31
31
  showThemeSwitcherDialog: boolean;
32
32
  handleThemeSwitcherDialogVisibilityChange: (isVisible: boolean) => void;
33
- handleThemePreferenceChange: (updatedThemePreference: ThemePreferenceType) => void;
33
+ handleThemePreferenceChange: (updatedThemePreference: ThemePreferenceType,
34
+ /**
35
+ * @description If update is local we won't update local storage and analytics
36
+ * */
37
+ isLocalUpdate?: boolean) => void;
34
38
  }
35
39
  export interface ThemeProviderProps {
36
40
  children: ReactNode;