@volvo-cars/ced-os-react-components
Advanced tools
Comparing version 1.0.0-alpha.10 to 1.0.0-alpha.11
@@ -43,3 +43,3 @@ // src/utils/classNames.ts | ||
var ConfigProvider = ({ config, ...props }) => { | ||
const direction = (config == null ? void 0 : config.direction) || isRtlLocale(config == null ? void 0 : config.locale) ? "rtl" : "ltr"; | ||
const direction = (config == null ? void 0 : config.direction) || (isRtlLocale(config == null ? void 0 : config.locale) ? "rtl" : "ltr"); | ||
return /* @__PURE__ */ jsx3(ConfigContext.Provider, { | ||
@@ -50,2 +50,3 @@ value: { ...config, direction }, | ||
}; | ||
var ConfigConsumer = ConfigContext.Consumer; | ||
var withOptionalConfigProvider = (component, config) => config ? /* @__PURE__ */ jsx3(ConfigProvider, { | ||
@@ -943,2 +944,5 @@ config, | ||
}); | ||
function useTheme() { | ||
return useContext3(ThemeContext); | ||
} | ||
@@ -1654,2 +1658,3 @@ // src/support/molecules/LegalDate/index.tsx | ||
Caption, | ||
ConfigConsumer, | ||
ConfigProvider, | ||
@@ -1692,2 +1697,3 @@ Disclaimer, | ||
TableRow, | ||
ThemeConsumer, | ||
ThemeProvider, | ||
@@ -1699,3 +1705,5 @@ Title, | ||
Video, | ||
createRenderer | ||
createRenderer, | ||
useConfig, | ||
useTheme | ||
}; |
@@ -42,6 +42,6 @@ export { Caption } from './support/atoms/Caption'; | ||
export { Video } from './support/molecules/Video'; | ||
export { ThemeProvider } from './themes/ThemeProvider'; | ||
export { ConfigProvider } from './support/ConfigProvider'; | ||
export { ThemeProvider, ThemeConsumer, useTheme } from './themes/ThemeProvider'; | ||
export { ConfigProvider, ConfigConsumer, useConfig, } from './support/ConfigProvider'; | ||
export { JSONArticle } from './support/organisms/JSONArticle'; | ||
export { RENDER_CONFIG } from './render/config'; | ||
export { createRenderer } from './render/createRenderer'; |
@@ -17,4 +17,5 @@ import React, { PropsWithChildren, ReactNode } from 'react'; | ||
export declare const ConfigProvider: ({ config, ...props }: ConfigProviderProps) => JSX.Element; | ||
export declare const ConfigConsumer: React.Consumer<Config>; | ||
export declare const withOptionalConfigProvider: (component: ReactNode, config?: Config) => JSX.Element; | ||
export declare const useConfig: () => Config; | ||
export {}; |
{ | ||
"name": "@volvo-cars/ced-os-react-components", | ||
"version": "1.0.0-alpha.10", | ||
"version": "1.0.0-alpha.11", | ||
"description": "Set of components for developing UIs in the onboarding and support apps", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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 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
1333084
31044