@rango-dev/ui 0.40.0 → 0.40.1-next.1
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/CHANGELOG.md +18 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/ui.build.json +1 -1
- package/dist/widget/ui/src/components/Flags/Catalonia.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Catalonia.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Cyprus.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Cyprus.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Denmark.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Denmark.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Hungary.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Hungary.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/India.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/India.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Korea.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Korea.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Lithuania.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Lithuania.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Pakistan.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Pakistan.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Philippines.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Philippines.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/SaudiArabia.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/SaudiArabia.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Serbia.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Serbia.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Slovakia.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Slovakia.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/SouthAfrica.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/SouthAfrica.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/Swahili.d.ts +4 -0
- package/dist/widget/ui/src/components/Flags/Swahili.d.ts.map +1 -0
- package/dist/widget/ui/src/components/Flags/index.d.ts +15 -1
- package/dist/widget/ui/src/components/Flags/index.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts +1 -0
- package/dist/widget/ui/src/components/Tooltip/Tooltip.types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/Flags/Catalonia.tsx +31 -0
- package/src/components/Flags/Cyprus.tsx +32 -0
- package/src/components/Flags/Denmark.tsx +31 -0
- package/src/components/Flags/Hungary.tsx +29 -0
- package/src/components/Flags/India.tsx +29 -0
- package/src/components/Flags/Korea.tsx +32 -0
- package/src/components/Flags/Lithuania.tsx +29 -0
- package/src/components/Flags/Pakistan.tsx +29 -0
- package/src/components/Flags/Philippines.tsx +30 -0
- package/src/components/Flags/SaudiArabia.tsx +29 -0
- package/src/components/Flags/Serbia.tsx +41 -0
- package/src/components/Flags/Slovakia.tsx +42 -0
- package/src/components/Flags/SouthAfrica.tsx +35 -0
- package/src/components/Flags/Swahili.tsx +46 -0
- package/src/components/Flags/index.ts +28 -0
- package/src/components/Tooltip/Tooltip.tsx +2 -0
- package/src/components/Tooltip/Tooltip.types.ts +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types.js';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants.js';
|
|
6
|
+
|
|
7
|
+
export default function SouthAfrica(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 0 192 256L0 512h47l465-189v-34l-32-33 32-33v-34L47 0Z"
|
|
23
|
+
/>
|
|
24
|
+
<path fill="#333" d="M0 142v228l140-114z" />
|
|
25
|
+
<path fill="#ffda44" d="M192 256 0 95v47l114 114L0 370v47z" />
|
|
26
|
+
<path
|
|
27
|
+
fill="#6da544"
|
|
28
|
+
d="M512 223H223L0 0v94l161 162L0 418v94l223-223h289z"
|
|
29
|
+
/>
|
|
30
|
+
<path fill="#d80027" d="M512 0H47l189 189h276z" />
|
|
31
|
+
<path fill="#0052b4" d="M512 512H47l189-189h276z" />
|
|
32
|
+
</g>
|
|
33
|
+
</svg>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FlagPropTypes } from './Flags.types.js';
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
import { DEFAULT_SIZE } from './Flags.constants.js';
|
|
6
|
+
|
|
7
|
+
export default function Swahili(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 144.7 253.4-28.2L512 144.7V178l-36 76.4 36 79.6v33.3L254.7 400 0 367.3V334l39-78-39-78z"
|
|
23
|
+
/>
|
|
24
|
+
<path fill="#333" d="M0 0h512v144.7H0z" />
|
|
25
|
+
<path fill="#a2001d" d="M0 178h512v156H0z" />
|
|
26
|
+
<path fill="#496e2d" d="M0 367.3h512V512H0z" />
|
|
27
|
+
<path
|
|
28
|
+
fill="#eee"
|
|
29
|
+
d="m335.9 118.3-30.3-14-49.4 111.9-49.4-111.9-30.3 14L237.8 256l-61.3 137.7 30.3 14 49.4-111.9 49.4 111.9 30.3-14L274.6 256z"
|
|
30
|
+
/>
|
|
31
|
+
<path
|
|
32
|
+
fill="#eee"
|
|
33
|
+
d="M256.2 111.3s-7 5.8-16.7 16l-16 127.6 16 129.8c9.7 10.2 16.7 16 16.7 16s7-5.8 16.7-16l15-130.7-15-126.7c-9.7-10.2-16.7-16-16.7-16z"
|
|
34
|
+
/>
|
|
35
|
+
<path
|
|
36
|
+
fill="#333"
|
|
37
|
+
d="m311.9 179.2-10 75.5 10 78.1A158.6 158.6 0 0 0 334 256c0-28.2-9.7-54.5-22.2-76.8zm-111.4 0 8.9 74.3-9 79.3a158.6 158.6 0 0 1-22.1-76.8c0-28.2 9.7-54.5 22.2-76.8z"
|
|
38
|
+
/>
|
|
39
|
+
<path
|
|
40
|
+
fill="#a2001d"
|
|
41
|
+
d="M200.5 179.2v153.6a269 269 0 0 0 39 51.9V127.3c-11.4 12-26.6 30-39 52zm111.4 0a269 269 0 0 0-39-51.9v257.4c11.4-12 26.5-30 39-52V179.3z"
|
|
42
|
+
/>
|
|
43
|
+
</g>
|
|
44
|
+
</svg>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
1
|
import Bengali from './Bengali.js';
|
|
2
|
+
import Catalonia from './Catalonia.js';
|
|
2
3
|
import Chinese from './Chinese.js';
|
|
4
|
+
import Cyprus from './Cyprus.js';
|
|
5
|
+
import Denmark from './Denmark.js';
|
|
3
6
|
import English from './English.js';
|
|
4
7
|
import Finland from './Finland.js';
|
|
5
8
|
import French from './French.js';
|
|
6
9
|
import German from './German.js';
|
|
7
10
|
import Greece from './Greece.js';
|
|
8
11
|
import Hindi from './Hindi.js';
|
|
12
|
+
import Hungary from './Hungary.js';
|
|
13
|
+
import India from './India.js';
|
|
9
14
|
import Indonesian from './Indonesian.js';
|
|
10
15
|
import Italian from './Italian.js';
|
|
11
16
|
import Japanese from './Japanese.js';
|
|
17
|
+
import Korea from './Korea.js';
|
|
18
|
+
import Lithuania from './Lithuania.js';
|
|
12
19
|
import Malay from './Malay.js';
|
|
13
20
|
import Netherlands from './Netherlands.js';
|
|
21
|
+
import Pakistan from './Pakistan.js';
|
|
22
|
+
import Philippines from './Philippines.js';
|
|
14
23
|
import Poland from './Poland.js';
|
|
15
24
|
import Portuguese from './Portuguese.js';
|
|
16
25
|
import Russian from './Russian.js';
|
|
26
|
+
import SaudiArabia from './SaudiArabia.js';
|
|
27
|
+
import Serbia from './Serbia.js';
|
|
28
|
+
import Slovakia from './Slovakia.js';
|
|
29
|
+
import SouthAfrica from './SouthAfrica.js';
|
|
17
30
|
import Spanish from './Spanish.js';
|
|
31
|
+
import Swahili from './Swahili.js';
|
|
18
32
|
import Swedish from './Swedish.js';
|
|
19
33
|
import Thai from './Thai.js';
|
|
20
34
|
import Turkish from './Turkish.js';
|
|
@@ -46,4 +60,18 @@ export {
|
|
|
46
60
|
Greece,
|
|
47
61
|
Italian,
|
|
48
62
|
Poland,
|
|
63
|
+
Catalonia,
|
|
64
|
+
Cyprus,
|
|
65
|
+
Denmark,
|
|
66
|
+
Hungary,
|
|
67
|
+
India,
|
|
68
|
+
Korea,
|
|
69
|
+
Lithuania,
|
|
70
|
+
Pakistan,
|
|
71
|
+
Philippines,
|
|
72
|
+
SaudiArabia,
|
|
73
|
+
Serbia,
|
|
74
|
+
Slovakia,
|
|
75
|
+
SouthAfrica,
|
|
76
|
+
Swahili,
|
|
49
77
|
};
|
|
@@ -22,6 +22,7 @@ export function Tooltip(props: PropsWithChildren<TooltipPropTypes>) {
|
|
|
22
22
|
styles,
|
|
23
23
|
align,
|
|
24
24
|
alignOffset,
|
|
25
|
+
collisionPadding,
|
|
25
26
|
} = props;
|
|
26
27
|
|
|
27
28
|
return (
|
|
@@ -36,6 +37,7 @@ export function Tooltip(props: PropsWithChildren<TooltipPropTypes>) {
|
|
|
36
37
|
align={align}
|
|
37
38
|
side={side}
|
|
38
39
|
sideOffset={sideOffset}
|
|
40
|
+
collisionPadding={collisionPadding}
|
|
39
41
|
collisionBoundary={container}>
|
|
40
42
|
<TooltipTypography
|
|
41
43
|
css={styles?.content}
|