l-min-components 1.0.943 → 1.0.949

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.0.943",
3
+ "version": "1.0.949",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -128,7 +128,7 @@ const DropDownComponent = (props) => {
128
128
  setSelected(dropdownItem);
129
129
  setDropdown();
130
130
  }}>
131
- <span>{props?.findText(dropdownItem?.name)}</span>
131
+ <span>{props?.findText ? props?.findText(dropdownItem?.name) : dropdownItem?.name}</span>
132
132
  {(props?.valueSelect || selected) === dropdownItem && (
133
133
  <Tick />
134
134
  )}
@@ -147,7 +147,7 @@ const DropDownComponent = (props) => {
147
147
  setSelected(dropdownItem);
148
148
  setDropdown();
149
149
  }}>
150
- <span>{props?.findText(dropdownItem?.name)}</span>
150
+ <span>{props?.findText ? props?.findText(dropdownItem?.name) : dropdownItem?.name}</span>
151
151
  {(props?.valueSelect || selected) === dropdownItem && (
152
152
  <Tick />
153
153
  )}
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import styled, { css } from 'styled-components';
3
- import Loader from './loader';
1
+ import React from "react";
2
+ import styled, { css } from "styled-components";
3
+ import Loader from "./loader";
4
4
 
5
5
  /**
6
6
  * @param {{
7
- * loaderAsset: object,
8
- * isSectionLoader: boolean,
9
- * hasBackground: boolean,
10
- * fixed: boolean,
11
- * loaderHeight: number,
12
- * loaderWidth: number,
13
- * zIndex: number,
14
- * }} props - properties of the dropdown component
15
- */
7
+ * loaderAsset: object,
8
+ * isSectionLoader: boolean,
9
+ * hasBackground: boolean,
10
+ * fixed: boolean,
11
+ * loaderHeight: number,
12
+ * loaderWidth: number,
13
+ * zIndex: number,
14
+ * }} props - properties of the dropdown component
15
+ */
16
16
 
17
17
  const Backdrop = styled.div`
18
18
  ${({ isSectionLoader, hasBackground, fixed, zIndex }) =>
@@ -24,12 +24,14 @@ const Backdrop = styled.div`
24
24
  background: transparent;
25
25
  `
26
26
  : css`
27
- position: ${fixed ? 'fixed' : 'absolute'};
27
+ position: ${fixed ? "fixed" : "absolute"};
28
28
  top: 0;
29
29
  left: 0;
30
30
  width: 100vw;
31
31
  height: 100vh;
32
- background: ${hasBackground ? 'rgba(110, 62, 62, 0.4)' : 'transparent'};
32
+ background: ${hasBackground
33
+ ? "rgba(110, 62, 62, 0.4)"
34
+ : "transparent"};
33
35
  z-index: ${zIndex};
34
36
  `}
35
37
  `;
@@ -45,7 +47,7 @@ const LoaderWrapper = styled.div`
45
47
  z-index: 10;
46
48
  `
47
49
  : css`
48
- position: ${fixed ? 'fixed' : 'absolute'};
50
+ position: ${fixed ? "fixed" : "absolute"};
49
51
  top: 50%;
50
52
  left: 50%;
51
53
  transform: translate(-50%, -50%);
@@ -57,20 +59,32 @@ const LoaderWrapper = styled.div`
57
59
  }
58
60
  `;
59
61
 
60
- const FullPageLoader = ({
61
- isSectionLoader = false,
62
- hasBackground = false,
63
- loaderAsset,
64
- fixed,
62
+ const FullPageLoader = ({
63
+ isSectionLoader = false,
64
+ hasBackground = false,
65
+ loaderAsset,
66
+ fixed,
65
67
  loaderWidth = 400,
66
68
  loaderHeight = 400,
67
- zIndex = 999
69
+ zIndex = 999999999999,
68
70
  }) => {
69
-
70
71
  return (
71
- <Backdrop isSectionLoader={isSectionLoader} hasBackground={hasBackground} fixed={fixed} zIndex={zIndex}>
72
- <LoaderWrapper isSectionLoader={isSectionLoader} fixed={fixed} zIndex={zIndex}>
73
- <Loader loaderAsset={loaderAsset} width={loaderWidth} height={loaderHeight}/>
72
+ <Backdrop
73
+ isSectionLoader={isSectionLoader}
74
+ hasBackground={hasBackground}
75
+ fixed={fixed}
76
+ zIndex={zIndex}
77
+ >
78
+ <LoaderWrapper
79
+ isSectionLoader={isSectionLoader}
80
+ fixed={fixed}
81
+ zIndex={zIndex}
82
+ >
83
+ <Loader
84
+ loaderAsset={loaderAsset}
85
+ width={loaderWidth}
86
+ height={loaderHeight}
87
+ />
74
88
  </LoaderWrapper>
75
89
  </Backdrop>
76
90
  );
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import avatar from "./assets/Subtract.png";
3
3
  import { Card } from "./index.styled";
4
4
  import ButtonComponent from "../button";
5
+ import ImageComponent from "../ImageComponent";
5
6
 
6
7
  /**
7
8
  * @param {{
@@ -13,7 +14,15 @@ import ButtonComponent from "../button";
13
14
  const SuccessCard = (props) => {
14
15
  return (
15
16
  <Card style={props.style}>
16
- <img src={props.image || avatar} alt="Partying Face" />
17
+ <div className="img_wrap">
18
+ <ImageComponent
19
+ src={props.image || avatar}
20
+ width="150px"
21
+ height="185px"
22
+ alt="Partying Face"
23
+ style={{ objectFit: "contain" }}
24
+ />
25
+ </div>
17
26
  <h1>{props.title} </h1>
18
27
  <h2>{props.subtitle} </h2>
19
28
  <h6> {props.info} </h6>
@@ -9,11 +9,13 @@ export const Card = styled.div`
9
9
  max-width: 458px;
10
10
  border-radius: 35px;
11
11
  text-align: center;
12
-
13
- img {
12
+ .img_wrap {
14
13
  margin-bottom: 30px;
15
- width: 166px;
14
+ display: flex;
15
+ justify-content: center;
16
+ width: 100%;
16
17
  }
18
+
17
19
  h1 {
18
20
  font-weight: 700;
19
21
  font-size: 22px;