@rango-dev/ui 0.40.1-next.1 → 0.40.1-next.3
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/translations/{zh.d.ts → af.d.ts} +1 -1
- package/dist/translations/af.d.ts.map +1 -0
- package/dist/translations/ar.d.ts +2 -0
- package/dist/translations/ar.d.ts.map +1 -0
- package/dist/translations/bn.d.ts +2 -0
- package/dist/translations/bn.d.ts.map +1 -0
- package/dist/translations/ca.d.ts +2 -0
- package/dist/translations/ca.d.ts.map +1 -0
- package/dist/translations/da.d.ts +2 -0
- package/dist/translations/da.d.ts.map +1 -0
- package/dist/translations/el.d.ts.map +1 -1
- package/dist/translations/fi.d.ts.map +1 -1
- package/dist/translations/fil.d.ts +2 -0
- package/dist/translations/fil.d.ts.map +1 -0
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/hi.d.ts +2 -0
- package/dist/translations/hi.d.ts.map +1 -0
- package/dist/translations/hu.d.ts +2 -0
- package/dist/translations/hu.d.ts.map +1 -0
- package/dist/translations/id.d.ts +2 -0
- package/dist/translations/id.d.ts.map +1 -0
- package/dist/translations/it.d.ts.map +1 -1
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/translations/ko.d.ts +2 -0
- package/dist/translations/ko.d.ts.map +1 -0
- package/dist/translations/lt.d.ts +2 -0
- package/dist/translations/lt.d.ts.map +1 -0
- package/dist/translations/ms.d.ts +2 -0
- package/dist/translations/ms.d.ts.map +1 -0
- package/dist/translations/sk.d.ts +2 -0
- package/dist/translations/sk.d.ts.map +1 -0
- package/dist/translations/sr.d.ts +2 -0
- package/dist/translations/sr.d.ts.map +1 -0
- package/dist/translations/sw.d.ts +2 -0
- package/dist/translations/sw.d.ts.map +1 -0
- package/dist/translations/th.d.ts +2 -0
- package/dist/translations/th.d.ts.map +1 -0
- package/dist/translations/tr.d.ts +2 -0
- package/dist/translations/tr.d.ts.map +1 -0
- package/dist/translations/uk.d.ts.map +1 -1
- package/dist/translations/ur.d.ts +2 -0
- package/dist/translations/ur.d.ts.map +1 -0
- package/dist/translations/vi.d.ts +2 -0
- package/dist/translations/vi.d.ts.map +1 -0
- package/dist/translations/zh-CN.d.ts +2 -0
- package/dist/translations/zh-CN.d.ts.map +1 -0
- package/dist/translations/zh-TW.d.ts +2 -0
- package/dist/translations/zh-TW.d.ts.map +1 -0
- package/dist/ui.build.json +1 -1
- package/dist/widget/ui/src/components/Button/Button.d.ts +1 -1
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +29 -9
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tabs/Tabs.styles.d.ts +1 -1
- package/dist/widget/ui/src/containers/Notifications/Notifications.styles.d.ts +1 -1
- package/dist/widget/ui/src/containers/SwapInput/SwapInput.styles.d.ts +1 -1
- package/dist/widget/ui/src/containers/SwapInput/TokenSection.styles.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/src/components/I18nManager/I18nManager.tsx +50 -10
- package/dist/translations/zh.d.ts.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="trusted-types" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const Button: React.ForwardRefExoticComponent<{
|
|
4
|
+
id?: string | undefined;
|
|
4
5
|
slot?: string | undefined;
|
|
5
6
|
style?: React.CSSProperties | undefined;
|
|
6
7
|
title?: string | undefined;
|
|
@@ -20,7 +21,6 @@ declare const Button: React.ForwardRefExoticComponent<{
|
|
|
20
21
|
contextMenu?: string | undefined;
|
|
21
22
|
dir?: string | undefined;
|
|
22
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
23
|
-
id?: string | undefined;
|
|
24
24
|
lang?: string | undefined;
|
|
25
25
|
nonce?: string | undefined;
|
|
26
26
|
placeholder?: string | undefined;
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const messages: {
|
|
4
|
+
af: any;
|
|
5
|
+
ar: any;
|
|
6
|
+
bn: any;
|
|
7
|
+
ca: any;
|
|
8
|
+
da: any;
|
|
9
|
+
de: any;
|
|
10
|
+
el: any;
|
|
4
11
|
en: any;
|
|
5
12
|
es: any;
|
|
6
|
-
|
|
13
|
+
fi: any;
|
|
14
|
+
fil: any;
|
|
7
15
|
fr: any;
|
|
16
|
+
hi: any;
|
|
17
|
+
hu: any;
|
|
18
|
+
id: any;
|
|
19
|
+
it: any;
|
|
20
|
+
ja: any;
|
|
21
|
+
ko: any;
|
|
22
|
+
lt: any;
|
|
23
|
+
ms: any;
|
|
24
|
+
nl: any;
|
|
25
|
+
pl: any;
|
|
8
26
|
pt: any;
|
|
9
|
-
zh: any;
|
|
10
27
|
ru: any;
|
|
11
|
-
|
|
12
|
-
|
|
28
|
+
sk: any;
|
|
29
|
+
sr: any;
|
|
13
30
|
sv: any;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
sw: any;
|
|
32
|
+
th: any;
|
|
33
|
+
tr: any;
|
|
34
|
+
uk: any;
|
|
35
|
+
ur: any;
|
|
36
|
+
vi: any;
|
|
37
|
+
'zh-CN': any;
|
|
38
|
+
'zh-TW': any;
|
|
19
39
|
};
|
|
20
40
|
export type Language = keyof typeof messages;
|
|
21
41
|
interface PropTypes {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18nManager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/I18nManager/I18nManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"I18nManager.d.ts","sourceRoot":"","sources":["../../../../../../src/components/I18nManager/I18nManager.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAgC,MAAM,OAAO,CAAC;AA6CrD,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCb,CAAC;AAIF,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAC7C,UAAU,SAAS;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,qBAgBvD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1138,6 +1138,7 @@ export declare const Tabs: import("@stitches/react/types/styled-component.js").S
|
|
|
1138
1138
|
transitions: {};
|
|
1139
1139
|
}, import("@stitches/react/types/config.js").DefaultThemeMap, {}>>;
|
|
1140
1140
|
export declare const Tab: import("@stitches/react/types/styled-component.js").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
1141
|
+
id?: string | undefined;
|
|
1141
1142
|
slot?: string | undefined;
|
|
1142
1143
|
style?: import("react").CSSProperties | undefined;
|
|
1143
1144
|
title?: string | undefined;
|
|
@@ -1157,7 +1158,6 @@ export declare const Tab: import("@stitches/react/types/styled-component.js").St
|
|
|
1157
1158
|
contextMenu?: string | undefined;
|
|
1158
1159
|
dir?: string | undefined;
|
|
1159
1160
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
1160
|
-
id?: string | undefined;
|
|
1161
1161
|
lang?: string | undefined;
|
|
1162
1162
|
nonce?: string | undefined;
|
|
1163
1163
|
placeholder?: string | undefined;
|
|
@@ -325,6 +325,7 @@ export declare const Header: import("@stitches/react/types/styled-component.js")
|
|
|
325
325
|
transitions: {};
|
|
326
326
|
}, import("@stitches/react/types/config.js").DefaultThemeMap, {}>>;
|
|
327
327
|
export declare const ClearAllButton: import("@stitches/react/types/styled-component.js").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
328
|
+
id?: string | undefined;
|
|
328
329
|
slot?: string | undefined;
|
|
329
330
|
style?: import("react").CSSProperties | undefined;
|
|
330
331
|
title?: string | undefined;
|
|
@@ -344,7 +345,6 @@ export declare const ClearAllButton: import("@stitches/react/types/styled-compon
|
|
|
344
345
|
contextMenu?: string | undefined;
|
|
345
346
|
dir?: string | undefined;
|
|
346
347
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
347
|
-
id?: string | undefined;
|
|
348
348
|
lang?: string | undefined;
|
|
349
349
|
nonce?: string | undefined;
|
|
350
350
|
placeholder?: string | undefined;
|
|
@@ -501,6 +501,7 @@ export declare const InputAmount: import("@stitches/react/types/styled-component
|
|
|
501
501
|
transitions: {};
|
|
502
502
|
}, import("@stitches/react/types/config.js").DefaultThemeMap, {}>>;
|
|
503
503
|
export declare const MaxButton: import("@stitches/react/types/styled-component.js").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
504
|
+
id?: string | undefined;
|
|
504
505
|
slot?: string | undefined;
|
|
505
506
|
style?: import("react").CSSProperties | undefined;
|
|
506
507
|
title?: string | undefined;
|
|
@@ -520,7 +521,6 @@ export declare const MaxButton: import("@stitches/react/types/styled-component.j
|
|
|
520
521
|
contextMenu?: string | undefined;
|
|
521
522
|
dir?: string | undefined;
|
|
522
523
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
523
|
-
id?: string | undefined;
|
|
524
524
|
lang?: string | undefined;
|
|
525
525
|
nonce?: string | undefined;
|
|
526
526
|
placeholder?: string | undefined;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
/// <reference types="trusted-types" />
|
|
4
4
|
export declare const Container: import("@stitches/react/types/styled-component.js").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
5
|
+
id?: string | undefined;
|
|
5
6
|
slot?: string | undefined;
|
|
6
7
|
style?: import("react").CSSProperties | undefined;
|
|
7
8
|
title?: string | undefined;
|
|
@@ -21,7 +22,6 @@ export declare const Container: import("@stitches/react/types/styled-component.j
|
|
|
21
22
|
contextMenu?: string | undefined;
|
|
22
23
|
dir?: string | undefined;
|
|
23
24
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
|
-
id?: string | undefined;
|
|
25
25
|
lang?: string | undefined;
|
|
26
26
|
nonce?: string | undefined;
|
|
27
27
|
placeholder?: string | undefined;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,38 +11,78 @@ import React, { useEffect, useReducer } from 'react';
|
|
|
11
11
|
* "translations/*": ["../../translations/*"]
|
|
12
12
|
*}
|
|
13
13
|
*/
|
|
14
|
+
import { messages as afMessages } from '../../../../../translations/af.js';
|
|
15
|
+
import { messages as arMessages } from '../../../../../translations/ar.js';
|
|
16
|
+
import { messages as bnMessages } from '../../../../../translations/bn.js';
|
|
17
|
+
import { messages as caMessages } from '../../../../../translations/ca.js';
|
|
18
|
+
import { messages as daMessages } from '../../../../../translations/da.js';
|
|
14
19
|
import { messages as deMessages } from '../../../../../translations/de.js';
|
|
15
20
|
import { messages as elMessages } from '../../../../../translations/el.js';
|
|
16
21
|
import { messages as enMessages } from '../../../../../translations/en.js';
|
|
17
22
|
import { messages as esMessages } from '../../../../../translations/es.js';
|
|
18
23
|
import { messages as fiMessages } from '../../../../../translations/fi.js';
|
|
24
|
+
import { messages as filMessages } from '../../../../../translations/fil.js';
|
|
19
25
|
import { messages as frMessages } from '../../../../../translations/fr.js';
|
|
26
|
+
import { messages as hiMessages } from '../../../../../translations/hi.js';
|
|
27
|
+
import { messages as huMessages } from '../../../../../translations/hu.js';
|
|
28
|
+
import { messages as idMessages } from '../../../../../translations/id.js';
|
|
20
29
|
import { messages as itMessages } from '../../../../../translations/it.js';
|
|
21
30
|
import { messages as jaMessages } from '../../../../../translations/ja.js';
|
|
31
|
+
import { messages as koMessages } from '../../../../../translations/ko.js';
|
|
32
|
+
import { messages as ltMessages } from '../../../../../translations/lt.js';
|
|
33
|
+
import { messages as msMessages } from '../../../../../translations/ms.js';
|
|
22
34
|
import { messages as nlMessages } from '../../../../../translations/nl.js';
|
|
23
35
|
import { messages as plMessages } from '../../../../../translations/pl.js';
|
|
24
36
|
import { messages as ptMessages } from '../../../../../translations/pt.js';
|
|
25
37
|
import { messages as ruMessages } from '../../../../../translations/ru.js';
|
|
38
|
+
import { messages as skMessages } from '../../../../../translations/sk.js';
|
|
39
|
+
import { messages as srMessages } from '../../../../../translations/sr.js';
|
|
26
40
|
import { messages as svMessages } from '../../../../../translations/sv.js';
|
|
41
|
+
import { messages as swMessages } from '../../../../../translations/sw.js';
|
|
42
|
+
import { messages as thMessages } from '../../../../../translations/th.js';
|
|
43
|
+
import { messages as trMessages } from '../../../../../translations/tr.js';
|
|
27
44
|
import { messages as ukMessages } from '../../../../../translations/uk.js';
|
|
28
|
-
import { messages as
|
|
45
|
+
import { messages as urMessages } from '../../../../../translations/ur.js';
|
|
46
|
+
import { messages as viMessages } from '../../../../../translations/vi.js';
|
|
47
|
+
import { messages as zh_CNMessages } from '../../../../../translations/zh-CN.js';
|
|
48
|
+
import { messages as zh_TWMessages } from '../../../../../translations/zh-TW.js';
|
|
29
49
|
|
|
30
50
|
const messages = {
|
|
51
|
+
af: afMessages,
|
|
52
|
+
ar: arMessages,
|
|
53
|
+
bn: bnMessages,
|
|
54
|
+
ca: caMessages,
|
|
55
|
+
da: daMessages,
|
|
56
|
+
de: deMessages,
|
|
57
|
+
el: elMessages,
|
|
31
58
|
en: enMessages,
|
|
32
59
|
es: esMessages,
|
|
33
|
-
|
|
60
|
+
fi: fiMessages,
|
|
61
|
+
fil: filMessages,
|
|
34
62
|
fr: frMessages,
|
|
63
|
+
hi: hiMessages,
|
|
64
|
+
hu: huMessages,
|
|
65
|
+
id: idMessages,
|
|
66
|
+
it: itMessages,
|
|
67
|
+
ja: jaMessages,
|
|
68
|
+
ko: koMessages,
|
|
69
|
+
lt: ltMessages,
|
|
70
|
+
ms: msMessages,
|
|
71
|
+
nl: nlMessages,
|
|
72
|
+
pl: plMessages,
|
|
35
73
|
pt: ptMessages,
|
|
36
|
-
zh: zhMessages,
|
|
37
74
|
ru: ruMessages,
|
|
38
|
-
|
|
39
|
-
|
|
75
|
+
sk: skMessages,
|
|
76
|
+
sr: srMessages,
|
|
40
77
|
sv: svMessages,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
78
|
+
sw: swMessages,
|
|
79
|
+
th: thMessages,
|
|
80
|
+
tr: trMessages,
|
|
81
|
+
uk: ukMessages,
|
|
82
|
+
ur: urMessages,
|
|
83
|
+
vi: viMessages,
|
|
84
|
+
'zh-CN': zh_CNMessages,
|
|
85
|
+
'zh-TW': zh_TWMessages,
|
|
46
86
|
};
|
|
47
87
|
|
|
48
88
|
i18n.load(messages);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../translations/zh.ts"],"names":[],"mappings":"AAAkB,eAAO,MAAM,QAAQ,KAAy/Z,CAAC"}
|