File tree Expand file tree Collapse file tree 5 files changed +193
-126
lines changed Expand file tree Collapse file tree 5 files changed +193
-126
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- export { useMergedConfigContext } from './config-provider' ;
2
1
export { useMergedThemeContext } from './theme-provider' ;
3
2
4
- export type { GetConfigProviderContext } from './config-provider' ;
5
3
export type { GetThemeProviderContext } from './theme-provider' ;
Original file line number Diff line number Diff line change
1
+ export type UseCSP = ( ) => {
2
+ nonce ?: string ;
3
+ } ;
4
+
5
+ /**
6
+ * Provide a default hook since not everyone need config this.
7
+ */
8
+ const useDefaultCSP : UseCSP = ( ) => ( { } ) ;
9
+
10
+ export default useDefaultCSP ;
Original file line number Diff line number Diff line change
1
+ export type UsePrefix = ( ) => {
2
+ /**
3
+ * All the component use `@ant-design/cssinjs-utils` should have same `rootPrefixCls`.
4
+ */
5
+ rootPrefixCls : string ;
6
+ /**
7
+ * `iconPrefixCls` comes from the setting of `@ant-design/icons`.
8
+ * Here maybe little coupling but everyone need use this.
9
+ */
10
+ iconPrefixCls : string ;
11
+ } ;
You can’t perform that action at this time.
0 commit comments