@selfcommunity/react-core 0.7.0-react-17.0.1.7 → 0.7.0
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/lib/cjs/components/provider/SCLocaleProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.d.ts +1 -1
- package/lib/cjs/components/router/index.d.ts +2 -2
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts +1 -1
- package/lib/esm/components/router/index.d.ts +2 -2
- package/lib/umd/258.js +2 -0
- package/lib/umd/{0.js.LICENSE.txt → 258.js.LICENSE.txt} +0 -2
- package/lib/umd/react-core.js +1 -1
- package/lib/umd/react-core.js.LICENSE.txt +1 -1
- package/package.json +7 -7
- package/lib/umd/0.js +0 -2
|
@@ -33,7 +33,7 @@ export default function SCLocaleProvider({ children }: {
|
|
|
33
33
|
* Export hoc to inject the base theme to components
|
|
34
34
|
* @param Component
|
|
35
35
|
*/
|
|
36
|
-
export declare const withSCLocale: (Component: any) => (props: any) =>
|
|
36
|
+
export declare const withSCLocale: (Component: any) => (props: any) => JSX.Element;
|
|
37
37
|
/**
|
|
38
38
|
* Let's only export the `useSCLocale` hook instead of the context.
|
|
39
39
|
* We only want to use the hook directly and never the context component.
|
|
@@ -40,7 +40,7 @@ export default function SCThemeProvider({ children }: {
|
|
|
40
40
|
* Export hoc to inject the base theme to components
|
|
41
41
|
* @param Component
|
|
42
42
|
*/
|
|
43
|
-
export declare const withSCTheme: (Component: any) => (props: any) =>
|
|
43
|
+
export declare const withSCTheme: (Component: any) => (props: any) => JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* Let's only export the `useSCTheme` hook instead of the context.
|
|
46
46
|
* We only want to use the hook directly and never the context component.
|
|
@@ -26,8 +26,8 @@ const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
|
26
26
|
|
|
27
27
|
:::
|
|
28
28
|
*/
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
29
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
children: any;
|
|
32
|
-
},
|
|
32
|
+
}, string | number> & React.RefAttributes<unknown>>;
|
|
33
33
|
export default _default;
|
|
@@ -33,7 +33,7 @@ export default function SCLocaleProvider({ children }: {
|
|
|
33
33
|
* Export hoc to inject the base theme to components
|
|
34
34
|
* @param Component
|
|
35
35
|
*/
|
|
36
|
-
export declare const withSCLocale: (Component: any) => (props: any) =>
|
|
36
|
+
export declare const withSCLocale: (Component: any) => (props: any) => JSX.Element;
|
|
37
37
|
/**
|
|
38
38
|
* Let's only export the `useSCLocale` hook instead of the context.
|
|
39
39
|
* We only want to use the hook directly and never the context component.
|
|
@@ -40,7 +40,7 @@ export default function SCThemeProvider({ children }: {
|
|
|
40
40
|
* Export hoc to inject the base theme to components
|
|
41
41
|
* @param Component
|
|
42
42
|
*/
|
|
43
|
-
export declare const withSCTheme: (Component: any) => (props: any) =>
|
|
43
|
+
export declare const withSCTheme: (Component: any) => (props: any) => JSX.Element;
|
|
44
44
|
/**
|
|
45
45
|
* Let's only export the `useSCTheme` hook instead of the context.
|
|
46
46
|
* We only want to use the hook directly and never the context component.
|
|
@@ -26,8 +26,8 @@ const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
|
26
26
|
|
|
27
27
|
:::
|
|
28
28
|
*/
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
29
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<{
|
|
30
30
|
[x: string]: any;
|
|
31
31
|
children: any;
|
|
32
|
-
},
|
|
32
|
+
}, string | number> & React.RefAttributes<unknown>>;
|
|
33
33
|
export default _default;
|