@ringcentral/juno 1.12.4-beta.5864-e73e0ffc → 1.12.4-beta.5873-31100a7c
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.
|
@@ -63,7 +63,7 @@ export interface PortalController<P extends {} = {}, F = any, D extends {} = {}>
|
|
|
63
63
|
*/
|
|
64
64
|
readonly data?: D;
|
|
65
65
|
}
|
|
66
|
-
export declare type UpdatePropsHandler<P extends {} = {}> = (preProps?: UncontrolledProps<P>) => UncontrolledProps<P
|
|
66
|
+
export declare type UpdatePropsHandler<P extends {} = {}> = (preProps?: UncontrolledProps<P>) => Partial<UncontrolledProps<P>>;
|
|
67
67
|
export declare type ControlledProps<P extends {} = {}, F = undefined> = P & {
|
|
68
68
|
onClose: (feedback?: F) => void;
|
|
69
69
|
open: boolean;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import 'focus-visible';
|
|
2
2
|
import { FunctionComponent, ReactNode } from 'react';
|
|
3
3
|
import { RcThemeInput } from './theme.type';
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type RcSubThemeProviderProps = {
|
|
5
5
|
/** custom theme */
|
|
6
6
|
theme?: RcThemeInput;
|
|
7
7
|
children?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare type RcThemeProviderProps = {
|
|
8
10
|
/** prefix the mui global class */
|
|
9
11
|
prefixGlobalClass?: string;
|
|
10
|
-
};
|
|
12
|
+
} & RcSubThemeProviderProps;
|
|
11
13
|
/**
|
|
12
14
|
* sub theme provider,
|
|
13
15
|
* that will use when you want use multiple theme in one app
|
|
14
16
|
* that will user parent's theme when not set theme
|
|
15
17
|
*/
|
|
16
|
-
export declare const RcSubThemeProvider: FunctionComponent<
|
|
18
|
+
export declare const RcSubThemeProvider: FunctionComponent<RcSubThemeProviderProps>;
|
|
17
19
|
/**
|
|
18
20
|
* theme wrapper, apply in root,
|
|
19
21
|
* each app should always have one `RcThemeProvider` at root,
|