@autobusal/common 0.0.21 → 0.0.22

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.
Files changed (2) hide show
  1. package/Loading/Loading.tsx +18 -12
  2. package/package.json +1 -1
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/common",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }