@autobusal/common 0.0.21 → 0.0.23
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/Loading/Loading.tsx +18 -12
- package/index.ts +2 -0
- package/package.json +1 -1
package/Loading/Loading.tsx
CHANGED
|
@@ -28,18 +28,24 @@ interface InlineProps {
|
|
|
28
28
|
text: string
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export const Inline = ({ text }: InlineProps): JSX.Element =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
export const Inline = ({ text }: InlineProps): JSX.Element => {
|
|
32
|
+
const theme = useSystemTheme();
|
|
33
|
+
|
|
34
|
+
const color = (theme === 'light' ? '#CECECE' : '#F2F2F2');
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<ContainerInline>
|
|
38
|
+
<SpinnerRoundFilled
|
|
39
|
+
size="30px"
|
|
40
|
+
color={ color }
|
|
41
|
+
speed={ 75 }
|
|
42
|
+
thickness={ 120 }
|
|
43
|
+
/>
|
|
44
|
+
|
|
45
|
+
{ text }
|
|
46
|
+
</ContainerInline>
|
|
47
|
+
);
|
|
48
|
+
};
|
|
43
49
|
|
|
44
50
|
interface ParagraphProps {
|
|
45
51
|
count?: number
|
package/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import Modal from './Modal/Modal';
|
|
|
9
9
|
import Meta from './Meta';
|
|
10
10
|
import Pagination from './Pagination/Pagination';
|
|
11
11
|
import Passengers from './Passengers/Passengers';
|
|
12
|
+
import RouteFeature from './RouteFeature/RouteFeature';
|
|
12
13
|
import RouteItem from './RouteItem/RouteItem';
|
|
13
14
|
|
|
14
15
|
export {
|
|
@@ -25,5 +26,6 @@ export {
|
|
|
25
26
|
Pagination,
|
|
26
27
|
Paragraph,
|
|
27
28
|
Passengers,
|
|
29
|
+
RouteFeature,
|
|
28
30
|
RouteItem
|
|
29
31
|
};
|