l-min-components 1.0.488 → 1.0.491
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/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import Loader from "../loader";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
|
|
4
|
+
const LoaderCustom = ({
|
|
5
|
+
zoom = 0.3,
|
|
6
|
+
color = "#00c2c2",
|
|
7
|
+
position,
|
|
8
|
+
fitHeight,
|
|
9
|
+
}) => {
|
|
10
|
+
return (
|
|
11
|
+
<Container
|
|
12
|
+
style={{
|
|
13
|
+
height: fitHeight ? "fit-content" : undefined,
|
|
14
|
+
}}
|
|
15
|
+
positionValue={
|
|
16
|
+
position === "left"
|
|
17
|
+
? "flex-start"
|
|
18
|
+
: position === "right"
|
|
19
|
+
? "flex-end"
|
|
20
|
+
: "center"
|
|
21
|
+
}
|
|
22
|
+
>
|
|
23
|
+
<Loader
|
|
24
|
+
color={color}
|
|
25
|
+
zoom={zoom}
|
|
26
|
+
style={{
|
|
27
|
+
textAlign: "center",
|
|
28
|
+
}}
|
|
29
|
+
/>
|
|
30
|
+
</Container>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default LoaderCustom;
|
|
35
|
+
|
|
36
|
+
const Container = styled.div`
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: ${({ positionValue }) => positionValue};
|
|
41
|
+
align-items: center;
|
|
42
|
+
`;
|