@rango-dev/ui 0.29.1-next.16 → 0.29.1-next.17
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 +6 -6
- package/dist/index.js.map +4 -4
- package/dist/translations/de.d.ts +2 -0
- package/dist/translations/de.d.ts.map +1 -0
- package/dist/translations/el.d.ts +2 -0
- package/dist/translations/el.d.ts.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/dist/translations/es.d.ts.map +1 -1
- package/dist/translations/fi.d.ts +2 -0
- package/dist/translations/fi.d.ts.map +1 -0
- package/dist/translations/fr.d.ts.map +1 -1
- package/dist/translations/it.d.ts +2 -0
- package/dist/translations/it.d.ts.map +1 -0
- package/dist/translations/ja.d.ts.map +1 -1
- package/dist/translations/nl.d.ts +2 -0
- package/dist/translations/nl.d.ts.map +1 -0
- package/dist/translations/pl.d.ts +2 -0
- package/dist/translations/pl.d.ts.map +1 -0
- package/dist/translations/pt.d.ts.map +1 -1
- package/dist/translations/ru.d.ts +2 -0
- package/dist/translations/ru.d.ts.map +1 -0
- package/dist/translations/sv.d.ts +2 -0
- package/dist/translations/sv.d.ts.map +1 -0
- package/dist/translations/uk.d.ts +2 -0
- package/dist/translations/uk.d.ts.map +1 -0
- package/dist/translations/zh.d.ts +2 -0
- package/dist/translations/zh.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Bengali.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Bengali.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Chinese.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Chinese.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Finland.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Finland.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/German.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/German.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Greece.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Greece.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Hindi.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Hindi.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Indonesian.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Indonesian.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Italian.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Italian.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Malay.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Malay.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Netherlands.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Netherlands.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Poland.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Poland.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Russian.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Russian.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Swedish.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Swedish.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Thai.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Thai.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Turkish.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Turkish.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Ukrainian.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Ukrainian.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Vietnamese.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Vietnamese.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/index.d.ts +18 -1
- package/dist/widget/ui/src/components/Flags/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts +10 -0
- package/dist/widget/ui/src/components/I18nManager/I18nManager.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Flags/Bengali.tsx +25 -0
- package/src/components/Flags/Chinese.tsx +28 -0
- package/src/components/Flags/Finland.tsx +31 -0
- package/src/components/Flags/German.tsx +26 -0
- package/src/components/Flags/Greece.tsx +31 -0
- package/src/components/Flags/Hindi.tsx +29 -0
- package/src/components/Flags/Indonesian.tsx +25 -0
- package/src/components/Flags/Italian.tsx +26 -0
- package/src/components/Flags/Malay.tsx +29 -0
- package/src/components/Flags/Netherlands.tsx +29 -0
- package/src/components/Flags/Poland.tsx +25 -0
- package/src/components/Flags/Russian.tsx +26 -0
- package/src/components/Flags/Swedish.tsx +31 -0
- package/src/components/Flags/Thai.tsx +32 -0
- package/src/components/Flags/Turkish.tsx +28 -0
- package/src/components/Flags/Ukrainian.tsx +25 -0
- package/src/components/Flags/Vietnamese.tsx +28 -0
- package/src/components/Flags/index.ts +41 -1
- package/src/components/I18nManager/I18nManager.tsx +20 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Netherlands(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path
|
|
21
|
+
fill="#eee"
|
|
22
|
+
d="m0 167 253.8-19.3L512 167v178l-254.9 32.3L0 345z"
|
|
23
|
+
/>
|
|
24
|
+
<path fill="#a2001d" d="M0 0h512v167H0z" />
|
|
25
|
+
<path fill="#0052b4" d="M0 345h512v167H0z" />
|
|
26
|
+
</g>
|
|
27
|
+
</svg>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Poland(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#d80027" d="m0 256 256.4-44.3L512 256v256H0z" />
|
|
21
|
+
<path fill="#eee" d="M0 0h512v256H0z" />
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Russian(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#0052b4" d="M512 170v172l-256 32L0 342V170l256-32z" />
|
|
21
|
+
<path fill="#eee" d="M512 0v170H0V0Z" />
|
|
22
|
+
<path fill="#d80027" d="M512 342v170H0V342Z" />
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Swedish(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path
|
|
21
|
+
fill="#0052b4"
|
|
22
|
+
d="M0 0h133.6l35.3 16.7L200.3 0H512v222.6l-22.6 31.7 22.6 35.1V512H200.3l-32-19.8-34.7 19.8H0V289.4l22.1-33.3L0 222.6z"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
fill="#ffda44"
|
|
26
|
+
d="M133.6 0v222.6H0v66.8h133.6V512h66.7V289.4H512v-66.8H200.3V0z"
|
|
27
|
+
/>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Thai(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path
|
|
21
|
+
fill="#d80027"
|
|
22
|
+
d="M0 0h512v89l-79.2 163.7L512 423v89H0v-89l82.7-169.6L0 89z"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
fill="#eee"
|
|
26
|
+
d="M0 89h512v78l-42.6 91.2L512 345v78H0v-78l40-92.5L0 167z"
|
|
27
|
+
/>
|
|
28
|
+
<path fill="#0052b4" d="M0 167h512v178H0z" />
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Turkish(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#d80027" d="M0 0h512v512H0z" />
|
|
21
|
+
<g fill="#eee">
|
|
22
|
+
<path d="m245.5 209.2 21 29 34-11.1-21 29 21 28.9-34-11.1-21 29V267l-34-11.1 34-11z" />
|
|
23
|
+
<path d="M188.2 328.3a72.3 72.3 0 1 1 34.4-136 89 89 0 1 0 0 127.3 72 72 0 0 1-34.4 8.7z" />
|
|
24
|
+
</g>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Ukrainian(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#ffda44" d="m0 256 258-39.4L512 256v256H0z" />
|
|
21
|
+
<path fill="#338af3" d="M0 0h512v256H0z" />
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants';
|
|
6
|
+
|
|
7
|
+
export default function Vietnamese(props: FlagPropTypes) {
|
|
8
|
+
const { size = DEFAULT_SIZE } = props;
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<svg
|
|
12
|
+
width={size}
|
|
13
|
+
height={size}
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
viewBox="0 0 512 512">
|
|
16
|
+
<mask id="a">
|
|
17
|
+
<circle cx={256} cy={256} r={256} fill="#fff" />
|
|
18
|
+
</mask>
|
|
19
|
+
<g mask="url(#a)">
|
|
20
|
+
<path fill="#d80027" d="M0 0h512v512H0z" />
|
|
21
|
+
<path
|
|
22
|
+
fill="#ffda44"
|
|
23
|
+
d="m256 133.6 27.6 85H373L300.7 271l27.6 85-72.3-52.5-72.3 52.6 27.6-85-72.3-52.6h89.4z"
|
|
24
|
+
/>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -1,9 +1,49 @@
|
|
|
1
|
+
import Bengali from './Bengali';
|
|
2
|
+
import Chinese from './Chinese';
|
|
1
3
|
import English from './English';
|
|
4
|
+
import Finland from './Finland';
|
|
2
5
|
import French from './French';
|
|
6
|
+
import German from './German';
|
|
7
|
+
import Greece from './Greece';
|
|
8
|
+
import Hindi from './Hindi';
|
|
9
|
+
import Indonesian from './Indonesian';
|
|
10
|
+
import Italian from './Italian';
|
|
3
11
|
import Japanese from './Japanese';
|
|
12
|
+
import Malay from './Malay';
|
|
13
|
+
import Netherlands from './Netherlands';
|
|
14
|
+
import Poland from './Poland';
|
|
4
15
|
import Portuguese from './Portuguese';
|
|
16
|
+
import Russian from './Russian';
|
|
5
17
|
import Spanish from './Spanish';
|
|
18
|
+
import Swedish from './Swedish';
|
|
19
|
+
import Thai from './Thai';
|
|
20
|
+
import Turkish from './Turkish';
|
|
21
|
+
import Ukrainian from './Ukrainian';
|
|
22
|
+
import Vietnamese from './Vietnamese';
|
|
6
23
|
|
|
7
24
|
export type { FlagPropTypes } from './Flags.types';
|
|
8
25
|
|
|
9
|
-
export {
|
|
26
|
+
export {
|
|
27
|
+
English,
|
|
28
|
+
Spanish,
|
|
29
|
+
Japanese,
|
|
30
|
+
French,
|
|
31
|
+
Portuguese,
|
|
32
|
+
Hindi,
|
|
33
|
+
Chinese,
|
|
34
|
+
Bengali,
|
|
35
|
+
Russian,
|
|
36
|
+
Indonesian,
|
|
37
|
+
German,
|
|
38
|
+
Malay,
|
|
39
|
+
Swedish,
|
|
40
|
+
Thai,
|
|
41
|
+
Turkish,
|
|
42
|
+
Ukrainian,
|
|
43
|
+
Vietnamese,
|
|
44
|
+
Finland,
|
|
45
|
+
Netherlands,
|
|
46
|
+
Greece,
|
|
47
|
+
Italian,
|
|
48
|
+
Poland,
|
|
49
|
+
};
|
|
@@ -11,11 +11,21 @@ import React, { useEffect, useReducer } from 'react';
|
|
|
11
11
|
* "translations/*": ["../../translations/*"]
|
|
12
12
|
*}
|
|
13
13
|
*/
|
|
14
|
+
import { messages as deMessages } from '../../../../../translations/de';
|
|
15
|
+
import { messages as elMessages } from '../../../../../translations/el';
|
|
14
16
|
import { messages as enMessages } from '../../../../../translations/en';
|
|
15
17
|
import { messages as esMessages } from '../../../../../translations/es';
|
|
18
|
+
import { messages as fiMessages } from '../../../../../translations/fi';
|
|
16
19
|
import { messages as frMessages } from '../../../../../translations/fr';
|
|
20
|
+
import { messages as itMessages } from '../../../../../translations/it';
|
|
17
21
|
import { messages as jaMessages } from '../../../../../translations/ja';
|
|
22
|
+
import { messages as nlMessages } from '../../../../../translations/nl';
|
|
23
|
+
import { messages as plMessages } from '../../../../../translations/pl';
|
|
18
24
|
import { messages as ptMessages } from '../../../../../translations/pt';
|
|
25
|
+
import { messages as ruMessages } from '../../../../../translations/ru';
|
|
26
|
+
import { messages as svMessages } from '../../../../../translations/sv';
|
|
27
|
+
import { messages as ukMessages } from '../../../../../translations/uk';
|
|
28
|
+
import { messages as zhMessages } from '../../../../../translations/zh';
|
|
19
29
|
|
|
20
30
|
const messages = {
|
|
21
31
|
en: enMessages,
|
|
@@ -23,6 +33,16 @@ const messages = {
|
|
|
23
33
|
ja: jaMessages,
|
|
24
34
|
fr: frMessages,
|
|
25
35
|
pt: ptMessages,
|
|
36
|
+
zh: zhMessages,
|
|
37
|
+
ru: ruMessages,
|
|
38
|
+
de: deMessages,
|
|
39
|
+
uk: ukMessages,
|
|
40
|
+
sv: svMessages,
|
|
41
|
+
fi: fiMessages,
|
|
42
|
+
nl: nlMessages,
|
|
43
|
+
el: elMessages,
|
|
44
|
+
it: itMessages,
|
|
45
|
+
pl: plMessages,
|
|
26
46
|
};
|
|
27
47
|
|
|
28
48
|
i18n.load(messages);
|