@autobusal/common 0.0.19 → 0.0.21
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 +16 -18
- package/Loading/styles.ts +8 -8
- package/index.ts +2 -1
- package/package.json +2 -16
package/Loading/Loading.tsx
CHANGED
|
@@ -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,22 @@ export const General = (): JSX.Element => {
|
|
|
26
24
|
)
|
|
27
25
|
};
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
// />
|
|
27
|
+
interface InlineProps {
|
|
28
|
+
text: string
|
|
29
|
+
}
|
|
41
30
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
+
);
|
|
45
43
|
|
|
46
44
|
interface ParagraphProps {
|
|
47
45
|
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
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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,20 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autobusal/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "index.ts"
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@autobusal/hooks": "^0.0.3",
|
|
8
|
-
"@autobusal/providers": "^1.0.16",
|
|
9
|
-
"@autobusal/utilities": "^0.0.3",
|
|
10
|
-
"i18next": "^23.7.18",
|
|
11
|
-
"react": "^18.2.0",
|
|
12
|
-
"react-helmet": "^6.1.0",
|
|
13
|
-
"react-hook-form": "^7.49.3",
|
|
14
|
-
"react-icons": "^5.0.1",
|
|
15
|
-
"react-loading-skeleton": "^3.3.1",
|
|
16
|
-
"react-router-dom": "^6.21.3",
|
|
17
|
-
"spinners-react": "^1.0.7",
|
|
18
|
-
"styled-components": "^6.1.8"
|
|
19
|
-
}
|
|
5
|
+
"main": "index.ts"
|
|
20
6
|
}
|