@npm-questionpro/wick-ui-lib 1.30.1 → 1.31.0

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.
@@ -47,3 +47,4 @@ export * from './components/typography';
47
47
  export * from './components/useTranslation';
48
48
  export * from './components/virtualScroll';
49
49
  export * from './docs/ui/colorSystem.ts';
50
+ export * from './translate';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export interface IWuTranslateProps {
3
+ children: React.ReactNode;
4
+ __i18nKey: string;
5
+ }
6
+ export declare const WuTranslate: React.MemoExoticComponent<({ children, __i18nKey }: IWuTranslateProps) => React.JSX.Element>;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ type IWuDictionary = Record<string, string>;
3
+ interface IWuTranslateContextProps {
4
+ dictionary: IWuDictionary;
5
+ setDictionary: React.Dispatch<React.SetStateAction<IWuDictionary>>;
6
+ }
7
+ export declare const useWickuiTranslate: () => IWuTranslateContextProps;
8
+ export declare const WuTranslateProvider: ({ children, dictionary, }: {
9
+ children?: React.ReactNode;
10
+ dictionary?: IWuDictionary;
11
+ }) => React.JSX.Element;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ export { WuTranslate, type IWuTranslateProps } from './WuTranslate';
2
+ export { useWickuiTranslate, WuTranslateProvider } from './WuTranslateContext';