@televet/kibble-ui 4.0.0-beta.14 → 4.0.0-beta.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export { KibbleThemeProvider } from './providers/theme.provider';
|
|
2
|
+
export type { KibbleTheme } from './theme.types.d';
|
|
3
3
|
export { system, themeConfig } from './theme.config';
|
|
4
4
|
export { themeConfig as kibbleThemeConfig } from './theme.config';
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { ChakraProviderProps
|
|
2
|
+
import { ChakraProviderProps } from '@chakra-ui/react';
|
|
3
|
+
import { SystemContext } from '@chakra-ui/react/styled-system';
|
|
3
4
|
import { ColorModeProviderProps } from './colorMode.provider';
|
|
5
|
+
import { Token } from '../tokens/generated/token.gen';
|
|
6
|
+
type TokenValue = string | number | {
|
|
7
|
+
value: string | number;
|
|
8
|
+
};
|
|
9
|
+
export interface KibbleTheme {
|
|
10
|
+
tokens: Record<Token, TokenValue>;
|
|
11
|
+
}
|
|
4
12
|
interface KibbleThemeProviderProps extends Omit<ChakraProviderProps, "value">, Omit<ColorModeProviderProps, "children"> {
|
|
5
13
|
customTheme?: SystemContext;
|
|
6
14
|
}
|
|
@@ -20,18 +20,6 @@ declare module "@chakra-ui/styled-system" {
|
|
|
20
20
|
|
|
21
21
|
declare module "@chakra-ui/theme-tools" {
|
|
22
22
|
export interface CustomThemeTypings {
|
|
23
|
-
|
|
24
|
-
fonts: KibbleThemeBase["fonts"];
|
|
25
|
-
fontSizes: KibbleThemeBase["fontSizes"];
|
|
26
|
-
fontWeights: KibbleThemeBase["fontWeights"];
|
|
27
|
-
letterSpacings: KibbleThemeBase["letterSpacings"];
|
|
28
|
-
lineHeights: KibbleThemeBase["lineHeights"];
|
|
29
|
-
radii: KibbleThemeBase["radii"];
|
|
30
|
-
shadows: KibbleThemeBase["shadows"];
|
|
31
|
-
sizes: KibbleThemeBase["sizes"];
|
|
32
|
-
space: KibbleThemeBase["spacing"];
|
|
33
|
-
borders: KibbleThemeBase["borders"];
|
|
34
|
-
blurs: KibbleThemeBase["blurs"];
|
|
35
|
-
zIndex: KibbleThemeBase["zIndex"];
|
|
23
|
+
tokens: Record<Token, TokenValue>;
|
|
36
24
|
}
|
|
37
25
|
}
|