@0xsequence/design-system
Advanced tools
Comparing version 0.1.22 to 0.1.23
@@ -25,4 +25,4 @@ export { Box } from './Box'; | ||
export { ControlledTextInput, TextInput } from './TextInput'; | ||
export { ThemeProvider } from './ThemeProvider'; | ||
export { ThemeProvider, useTheme } from './ThemeProvider'; | ||
export { TokenImage } from './TokenImage'; | ||
export { Tooltip } from './Tooltip'; |
import { PropsWithChildren } from 'react'; | ||
declare const THEMES: readonly ["dark", "light"]; | ||
declare type Theme = typeof THEMES[number]; | ||
interface ThemeContextValue { | ||
theme: 'light' | 'dark'; | ||
theme: Theme; | ||
setTheme: (mode: Theme) => void; | ||
} | ||
interface ThemeProviderProps { | ||
theme?: 'light' | 'dark'; | ||
theme?: Theme; | ||
} | ||
export declare const ThemeProvider: (props: PropsWithChildren<ThemeProviderProps>) => JSX.Element; | ||
export declare const useTheme: () => ThemeContextValue | null; | ||
export declare const useTheme: () => ThemeContextValue; | ||
export {}; |
{ | ||
"name": "@0xsequence/design-system", | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2152203
32917