skillgrid 0.0.78 → 0.0.79

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.
@@ -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
  }
@@ -1,4 +1,4 @@
1
- export type TypographyStyle = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'accent-secondary' | 'positive' | 'positive-secondary' | 'negative' | 'negative-secondary' | 'warning' | 'warning-secondary' | 'special' | 'special-secondary' | 'contrast' | 'contrast-secondary';
1
+ export type TypographyStyle = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'accent-secondary' | 'positive' | 'positive-secondary' | 'negative' | 'negative-secondary' | 'warning' | 'warning-secondary' | 'special' | 'special-secondary' | 'contrast' | 'contrast-secondary' | 'custom';
2
2
  export type TypographySize = 1 | 2 | 3 | 4 | 5;
3
3
  export type TypographyTitleFontWeight = 'semibold';
4
4
  export type TypographyTitleVariant = 'title' | 'subtitle';