@charlesgomes/leafcode-shared-lib-react 1.0.59 → 1.0.61
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 +10 -3
- package/dist/index.d.ts +10 -3
- package/package.json +4 -3
package/dist/index.d.mts
CHANGED
|
@@ -313,10 +313,17 @@ interface LeafcodeTheme {
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
|
|
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?:
|
|
319
|
-
}
|
|
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
|
-
|
|
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?:
|
|
319
|
-
}
|
|
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.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"description": "Lib de componentes react",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@tanstack/react-query": "^5.85.9",
|
|
39
39
|
"primereact": "^10.9.7",
|
|
40
|
+
"react-hook-form": "^7.70.0",
|
|
40
41
|
"react": ">=17",
|
|
41
42
|
"react-dom": ">=17"
|
|
42
43
|
},
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"@types/react": "^19.1.12",
|
|
49
50
|
"@types/react-dom": "^19.1.9",
|
|
50
51
|
"@vitejs/plugin-react": "^5.0.2",
|
|
52
|
+
"react-hook-form": "^7.70.0",
|
|
51
53
|
"postcss": "^8.5.6",
|
|
52
54
|
"react": "^19.1.1",
|
|
53
55
|
"react-dom": "^19.1.1",
|
|
@@ -63,9 +65,8 @@
|
|
|
63
65
|
"lodash.merge": "^4.6.2",
|
|
64
66
|
"moment": "^2.30.1",
|
|
65
67
|
"primereact": "^10.9.7",
|
|
66
|
-
"react-hook-form": "^7.70.0",
|
|
67
68
|
"react-select": "^5.10.2",
|
|
68
69
|
"react-tooltip": "^5.29.1",
|
|
69
70
|
"tailwind-merge": "^3.3.1"
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|