@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.
@@ -28,18 +28,24 @@ interface InlineProps {
28
28
  text: string
29
29
  }
30
30
 
31
- export const Inline = ({ text }: InlineProps): JSX.Element => (
32
- <ContainerInline>
33
- <SpinnerRoundFilled
34
- size="30px"
35
- color="#FBC02D"
36
- speed={ 75 }
37
- thickness={ 120 }
38
- />
39
-
40
- { text }
41
- </ContainerInline>
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/common",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }