@isi-ui7/corporate-themes 0.2.0 → 0.2.2

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.
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { Ui7Labels } from './labels';
3
+
4
+ export declare function LabelsProvider({ labels, children, }: {
5
+ labels?: Partial<Ui7Labels>;
6
+ children: ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export declare function useLabels(): Ui7Labels;
@@ -1,5 +1,6 @@
1
1
  import { ElementType, ReactElement, ReactNode } from 'react';
2
2
  import { CarbonThemeVariant } from '../types';
3
+ import { Ui7Labels } from '../labels';
3
4
 
4
5
  type CorporateThemeProps<T extends ElementType> = {
5
6
  as?: T;
@@ -11,6 +12,7 @@ type CorporateThemeProps<T extends ElementType> = {
11
12
  type GlobalCorporateThemeProps = {
12
13
  corporateId?: string;
13
14
  variant?: CarbonThemeVariant;
15
+ labels?: Partial<Ui7Labels>;
14
16
  children: ReactElement;
15
17
  };
16
18
  /**
@@ -22,5 +24,5 @@ export declare function CorporateTheme<T extends ElementType = "div">({ as, clas
22
24
  * Global theme provider, analogous to Carbon's <GlobalTheme>.
23
25
  * It sets the corporate/variant in context (and root classes via ThemeContextProvider).
24
26
  */
25
- export declare function GlobalCorporateTheme({ corporateId, variant, children }: GlobalCorporateThemeProps): import("react/jsx-runtime").JSX.Element;
27
+ export declare function GlobalCorporateTheme({ corporateId, variant, labels, children }: GlobalCorporateThemeProps): import("react/jsx-runtime").JSX.Element;
26
28
  export {};