skillgrid 0.0.74 → 0.0.75-dev-59508-dark-theme.1676808
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/components/ConfigProvider/ConfigProvider.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.hook.d.ts +1 -0
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +5 -0
- package/dist/index.cjs.js +12 -12
- package/dist/index.css +1 -1
- package/dist/index.es.js +2939 -2921
- package/package.json +2 -2
|
@@ -12,4 +12,4 @@ import { ConfigProviderProps } from './ConfigProvider.type.ts';
|
|
|
12
12
|
* <Button mode="primary" buttonStyle="accent">Primary</Button>
|
|
13
13
|
* </ConfigProvider>
|
|
14
14
|
*/
|
|
15
|
-
export declare const ConfigProvider: ({ locale, theme, children, className, }: ConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const ConfigProvider: ({ locale, theme, children, className, darkTheme, }: ConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,3 +2,4 @@ import { ConfigContextType } from './ConfigProvider.type';
|
|
|
2
2
|
export declare const ConfigContext: import('react').Context<ConfigContextType>;
|
|
3
3
|
export declare const useConfig: () => ConfigContextType;
|
|
4
4
|
export declare const useLocale: () => import('../..').Locale;
|
|
5
|
+
export declare const useDarkTheme: () => boolean;
|
|
@@ -17,7 +17,12 @@ export interface ConfigProviderProps {
|
|
|
17
17
|
* Дополнительный className для wrapper
|
|
18
18
|
*/
|
|
19
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Включена ли темная тема @default false
|
|
22
|
+
*/
|
|
23
|
+
darkTheme?: boolean;
|
|
20
24
|
}
|
|
21
25
|
export interface ConfigContextType {
|
|
22
26
|
locale: Locale;
|
|
27
|
+
darkTheme: boolean;
|
|
23
28
|
}
|