@autobusal/common 0.0.20 → 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.
@@ -1,9 +1,7 @@
1
1
  import { SpinnerRoundFilled, SpinnerCircularFixed } from 'spinners-react';
2
2
  import { useSystemTheme } from '@autobusal/providers';
3
3
  import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
4
- import { ContainerGeneral
5
- // , ContainerInline
6
- , ContainerParagraph } from './styles';
4
+ import { ContainerGeneral, ContainerInline, ContainerParagraph } from './styles';
7
5
  import 'react-loading-skeleton/dist/skeleton.css';
8
6
 
9
7
  export const General = (): JSX.Element => {
@@ -26,22 +24,28 @@ export const General = (): JSX.Element => {
26
24
  )
27
25
  };
28
26
 
29
- // interface InlineProps {
30
- // text: string
31
- // }
27
+ interface InlineProps {
28
+ text: string
29
+ }
30
+
31
+ export const Inline = ({ text }: InlineProps): JSX.Element => {
32
+ const theme = useSystemTheme();
32
33
 
33
- // export const Inline = ({ text }: InlineProps): JSX.Element => (
34
- // <ContainerInline>
35
- // <SpinnerRoundFilled
36
- // size="30px"
37
- // color="#FBC02D"
38
- // speed={ 75 }
39
- // thickness={ 120 }
40
- // />
34
+ const color = (theme === 'light' ? '#CECECE' : '#F2F2F2');
41
35
 
42
- // { text }
43
- // </ContainerInline>
44
- // );
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
+ };
45
49
 
46
50
  interface ParagraphProps {
47
51
  count?: number
package/Loading/styles.ts CHANGED
@@ -8,14 +8,14 @@ export const ContainerGeneral = styled.div`
8
8
  justify-content: center;
9
9
  `;
10
10
 
11
- // export const ContainerInline = styled.div`
12
- // display: flex;
13
- // gap: 10px;
14
- // align-items: center;
15
- // justify-content: center;
16
- // font-size: ${ props => props.theme.size.info };
17
- // color: ${ props => props.theme.faded };
18
- // `;
11
+ export const ContainerInline = styled.div`
12
+ display: flex;
13
+ gap: 10px;
14
+ align-items: center;
15
+ justify-content: center;
16
+ font-size: ${ props => props.theme.size.s };
17
+ color: ${ props => props.theme.font.faded };
18
+ `;
19
19
 
20
20
  export const ContainerParagraph = styled.div`
21
21
  padding: 15px 0;
package/index.ts CHANGED
@@ -4,7 +4,7 @@ import Calendar from './Calendar/Calendar';
4
4
  import CookieNotification from './CookieNotification/CookieNotification';
5
5
  import ChangeLanguage from './ChangeLanguage/ChangeLanguage';
6
6
  import { Button } from './Button/Button';
7
- import { General, Paragraph } from './Loading/Loading';
7
+ import { General, Inline, Paragraph } from './Loading/Loading';
8
8
  import Modal from './Modal/Modal';
9
9
  import Meta from './Meta';
10
10
  import Pagination from './Pagination/Pagination';
@@ -19,6 +19,7 @@ export {
19
19
  CookieNotification,
20
20
  ChangeLanguage,
21
21
  General,
22
+ Inline,
22
23
  Meta,
23
24
  Modal,
24
25
  Pagination,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/common",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }