@kwantis-id3/frontend-library 0.2.3 → 0.2.5

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.
@@ -12,7 +12,7 @@ export type KwantisColorsObject = {
12
12
  statusCritical: string;
13
13
  statusNeutral: string;
14
14
  };
15
- export declare function KwantisThemeContextProvider(props: React.PropsWithChildren<{
15
+ export declare const KwantisThemeContextProvider: (props: React.PropsWithChildren<{
16
16
  theme?: KwantisColorsObject;
17
- }>): JSX.Element;
17
+ }>) => JSX.Element;
18
18
  export declare const useKwantisThemeContext: () => KwantisColorsObject;
package/dist/esm/index.js CHANGED
@@ -4924,11 +4924,11 @@ const defaultThemeColors = {
4924
4924
  statusNeutral: "#CCCCCC",
4925
4925
  };
4926
4926
  const KwantisThemeContext = React.createContext(defaultThemeColors);
4927
- function KwantisThemeContextProvider(props) {
4928
- const [themeColors] = React.useState(props.theme || defaultThemeColors);
4927
+ const KwantisThemeContextProvider = (props) => {
4928
+ const [themeColors] = reactExports.useState(props.theme || defaultThemeColors);
4929
4929
  return (React.createElement(KwantisThemeContext.Provider, { value: themeColors },
4930
4930
  React.createElement(ThemeProvider, { theme: themeColors }, props.children)));
4931
- }
4931
+ };
4932
4932
  const isEmpty = (obj) => {
4933
4933
  return Object.keys(obj).length === 0;
4934
4934
  };