@charlesgomes/leafcode-shared-lib-react 1.0.59 → 1.0.60

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/dist/index.d.mts CHANGED
@@ -313,10 +313,17 @@ interface LeafcodeTheme {
313
313
  };
314
314
  }
315
315
 
316
- declare const LeafcodeThemeProvider: ({ children, theme, }: {
316
+ type DeepPartial<T> = {
317
+ [K in keyof T]?: T[K] extends object
318
+ ? DeepPartial<T[K]>
319
+ : T[K];
320
+ };
321
+
322
+ interface LeafcodeThemeProviderProps {
317
323
  children: React.ReactNode;
318
- theme?: Partial<LeafcodeTheme>;
319
- }) => react_jsx_runtime.JSX.Element;
324
+ theme?: DeepPartial<LeafcodeTheme>;
325
+ }
326
+ declare const LeafcodeThemeProvider: ({ children, theme, }: LeafcodeThemeProviderProps) => react_jsx_runtime.JSX.Element;
320
327
 
321
328
  declare const defaultTheme: LeafcodeTheme;
322
329
 
package/dist/index.d.ts CHANGED
@@ -313,10 +313,17 @@ interface LeafcodeTheme {
313
313
  };
314
314
  }
315
315
 
316
- declare const LeafcodeThemeProvider: ({ children, theme, }: {
316
+ type DeepPartial<T> = {
317
+ [K in keyof T]?: T[K] extends object
318
+ ? DeepPartial<T[K]>
319
+ : T[K];
320
+ };
321
+
322
+ interface LeafcodeThemeProviderProps {
317
323
  children: React.ReactNode;
318
- theme?: Partial<LeafcodeTheme>;
319
- }) => react_jsx_runtime.JSX.Element;
324
+ theme?: DeepPartial<LeafcodeTheme>;
325
+ }
326
+ declare const LeafcodeThemeProvider: ({ children, theme, }: LeafcodeThemeProviderProps) => react_jsx_runtime.JSX.Element;
320
327
 
321
328
  declare const defaultTheme: LeafcodeTheme;
322
329
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",