@ef2/react
Advanced tools
Comparing version 1.0.32 to 1.0.33
import { PropsWithChildren } from 'react'; | ||
import { DeepPartial, Theme } from '../../theme/types'; | ||
import { i18n } from 'i18next'; | ||
interface ThemeContextValue { | ||
theme: Theme; | ||
lng?: string; | ||
} | ||
@@ -12,6 +10,4 @@ export declare const useThemeContext: () => ThemeContextValue; | ||
theme?: PartialTheme; | ||
i18n?: i18n; | ||
lng?: string; | ||
} | ||
declare const ThemeProvider: ({ theme, lng, i18n, children }: PropsWithChildren<ThemeProviderProps>) => JSX.Element; | ||
declare const ThemeProvider: ({ theme, children }: PropsWithChildren<ThemeProviderProps>) => JSX.Element; | ||
export default ThemeProvider; |
@@ -1,2 +0,1 @@ | ||
import { ResourceKey } from 'i18next'; | ||
import { ElementType } from 'react'; | ||
@@ -36,18 +35,2 @@ export declare type Attribute<T = string> = { | ||
} | ||
export interface Resource { | ||
nl: ResourceLanguage; | ||
en: ResourceLanguage; | ||
[language: string]: ResourceLanguage; | ||
} | ||
export interface ResourceLanguage { | ||
input: { | ||
rating: { | ||
rating: string; | ||
star_one: string; | ||
star_other: string; | ||
}; | ||
}; | ||
common: ResourceKey; | ||
[namespace: string]: ResourceKey; | ||
} | ||
export interface Theme { | ||
@@ -58,3 +41,2 @@ button: Button; | ||
icon: Icon; | ||
localization: Resource; | ||
copyright: Copyright; | ||
@@ -61,0 +43,0 @@ modal: Modal; |
{ | ||
"name": "@ef2/react", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"main": "lib/index.js", | ||
@@ -52,5 +52,2 @@ "module": "lib/index.esm.js", | ||
"graphql": "^16.6.0", | ||
"i18next": "^21.10.0", | ||
"i18next-browser-languagedetector": "^6.1.8", | ||
"i18next-http-backend": "^1.4.4", | ||
"lodash-es": "^4.17.21", | ||
@@ -61,3 +58,2 @@ "next": "^12.3.0", | ||
"react-dom": "^18.2.0", | ||
"react-i18next": "^11.18.6", | ||
"react-intersection-observer": "^9.4.0", | ||
@@ -64,0 +60,0 @@ "rollup": "^2.79.0", |
import button from './button'; | ||
import toggle from './toggle'; | ||
import icon from './icon'; | ||
import localization from './localization'; | ||
import rating from './rating'; | ||
@@ -16,3 +15,2 @@ import copyright from './copyright'; | ||
rating, | ||
localization, | ||
copyright, | ||
@@ -19,0 +17,0 @@ modal, |
@@ -1,2 +0,1 @@ | ||
import { ResourceKey } from 'i18next'; | ||
import { ElementType } from 'react'; | ||
@@ -36,20 +35,2 @@ | ||
export interface Resource { | ||
nl: ResourceLanguage; | ||
en: ResourceLanguage; | ||
[language: string]: ResourceLanguage; | ||
} | ||
export interface ResourceLanguage { | ||
input: { | ||
rating: { | ||
rating: string; | ||
star_one: string; | ||
star_other: string; | ||
}; | ||
}; | ||
common: ResourceKey; | ||
[namespace: string]: ResourceKey; | ||
} | ||
export interface Theme { | ||
@@ -60,3 +41,2 @@ button: Button; | ||
icon: Icon; | ||
localization: Resource; | ||
copyright: Copyright; | ||
@@ -63,0 +43,0 @@ modal: Modal; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
45
4
3758348
65
40625