@bigbinary/neeto-molecules 1.0.61 → 1.0.62

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": "@bigbinary/neeto-molecules",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "description": "A package of reusable molecular components for neeto products.",
5
5
  "repository": "git@github.com:bigbinary/neeto-molecules.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -41,6 +41,7 @@ interface Theme {
41
41
  buttonOptions: ButtonOptions;
42
42
  layout: Layout;
43
43
  }
44
+ type CreateThemeCallback = (createdTheme: Theme) => void;
44
45
  /**
45
46
  *
46
47
  * ThemeSidebar allows us to configure the themes of entities like forms, quizzes
@@ -69,10 +70,11 @@ const ThemeSidebar: React.FC<{
69
70
  defaultThemes: Theme[];
70
71
  customThemes: Theme[];
71
72
  currentTheme: Theme;
72
- createTheme: (value: Theme) => void;
73
+ createTheme: (value: Theme, createThemeCallback: CreateThemeCallback) => void;
73
74
  deleteTheme: (value: Theme) => void;
74
75
  editTheme: (value: Theme) => void;
75
76
  applyTheme: (value: Theme) => void;
76
77
  isLoadingThemes: boolean;
78
+ applyingThemeId?: string;
77
79
  }>;
78
80
  export default ThemeSidebar;