l-min-components 1.0.230 → 1.0.237

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.230",
3
+ "version": "1.0.237",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -19,10 +19,6 @@ import { leftNavMenu, user, sideMenuOptions } from "../../hooks/leftNavMenu";
19
19
  const AppMainLayout = () => {
20
20
  const [isOpen, setIsOpen] = useState(true);
21
21
  const location = useLocation();
22
-
23
- useEffect(() => {
24
- if (location.pathname === "/documentation") setIsOpen(false);
25
- }, [isOpen]);
26
22
  const [rightLayout, setRightLayout] = useState(true);
27
23
  const [rightComponent, setRightComponent] = useState();
28
24
  const [generalData, setGeneralData] = useState({});
@@ -24,7 +24,7 @@ export const BannerWrapper = styled.div`
24
24
  `;
25
25
 
26
26
  export const BannerTitle = styled.h1`
27
- font-size: 32px;
27
+ font-size: 30px;
28
28
  margin: 0;
29
29
  font-weight: 800;
30
30
  line-height: 42px;
@@ -42,8 +42,8 @@ export const BannerSubtitle = styled.p`
42
42
  export const BannerImage = styled.img`
43
43
  width: 100%;
44
44
  max-width: 800px;
45
- margin-bottom: -5px;
46
- margin-top: 22px;
45
+ margin-bottom: -15px;
46
+ margin-top: -10px;
47
47
  opacity: 2;
48
48
  display: block;
49
49
  opacity: 1.0;
@@ -59,7 +59,7 @@ export const BannerCTA = styled.button`
59
59
  display: flex;
60
60
  align-items: center;
61
61
  transition: all 0.2s ease-in-out;
62
- margin: auto 0 30px;
62
+ margin: auto 0 10px;
63
63
  opacity: 1.0;
64
64
 
65
65
  &:hover {
@@ -3,16 +3,16 @@ import { BsCheck } from "react-icons/bs";
3
3
  import { PropTypes } from 'prop-types';
4
4
  import { CheckboxControl, CheckboxInput, CheckboxLabel, CheckboxWrapper } from "./styles";
5
5
 
6
-
7
6
  const Checkbox = ({
8
7
  label,
9
8
  color,
10
9
  defaultValue,
11
10
  onChange,
12
11
  size,
12
+ checked,
13
13
  ...props
14
14
  }) => {
15
- const [checked, setChecked] = useState(defaultValue);
15
+ // const [checked, setChecked] = useState(defaultValue);
16
16
 
17
17
  const handleChange = (event) => {
18
18
  const newValue = event.target.checked;
@@ -22,7 +22,8 @@ const Checkbox = ({
22
22
 
23
23
  return (
24
24
  <CheckboxWrapper {...props}>
25
- <CheckboxInput checked={checked} onChange={handleChange} />
25
+ {/* <CheckboxInput checked={checked} onChange={handleChange} /> */}
26
+ <CheckboxInput checked={checked} onChange={onChange} />
26
27
  <CheckboxControl
27
28
  checked={checked}
28
29
  color={color}
@@ -0,0 +1,53 @@
1
+ import React, { useState } from "react";
2
+ import { BsCheck } from "react-icons/bs";
3
+ import { PropTypes } from 'prop-types';
4
+ import { CheckboxControl, CheckboxInput, CheckboxLabel, CheckboxWrapper } from "./styles";
5
+
6
+
7
+ const Checkbox = ({
8
+ label,
9
+ color,
10
+ defaultValue,
11
+ onChange,
12
+ size,
13
+ ...props
14
+ }) => {
15
+ const [checked, setChecked] = useState(defaultValue);
16
+
17
+ const handleChange = (event) => {
18
+ const newValue = event.target.checked;
19
+ setChecked(newValue);
20
+ onChange && onChange(newValue);
21
+ };
22
+
23
+ return (
24
+ <CheckboxWrapper {...props}>
25
+ <CheckboxInput checked={checked} onChange={handleChange} />
26
+ <CheckboxControl
27
+ checked={checked}
28
+ color={color}
29
+ size={size}
30
+ >
31
+ <BsCheck />
32
+ </CheckboxControl>
33
+ <CheckboxLabel checked={checked} color={color}>
34
+ {label}
35
+ </CheckboxLabel>
36
+ </CheckboxWrapper>
37
+ );
38
+ };
39
+
40
+ Checkbox.propTypes = {
41
+ label: PropTypes.string,
42
+ color: PropTypes.string,
43
+ size: PropTypes.string,
44
+ onChange: PropTypes.func,
45
+ defaultValue: PropTypes.bool,
46
+
47
+ };
48
+
49
+ Checkbox.defaultProps = {
50
+ defaultValue: false,
51
+ };
52
+
53
+ export default Checkbox;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import Checkbox from "../checkbox";
3
+ import Checkbox from "../checkbox/index2";
4
4
  import { Container } from "./styles";
5
5
 
6
6
  const CheckboxGroup = ({ color, options, selectedValues, onChange, size, }) => {
@@ -7,6 +7,7 @@ import { DatePickerWrapper, DateCont } from "./style";
7
7
 
8
8
  const DatePickerCalender = ({
9
9
  borderColor,
10
+ opacity,
10
11
  ...props
11
12
  }) => {
12
13
  const [dateRange, setDateRange] = useState({
@@ -16,7 +17,7 @@ const DatePickerCalender = ({
16
17
 
17
18
  return(
18
19
  <DatePickerWrapper {...props}>
19
- <DateCont className="datepicker__wrapper" borderColor={borderColor}>
20
+ <DateCont className="datepicker__wrapper" borderColor={borderColor} opacity={opacity} >
20
21
  <DatePicker
21
22
  selected={dateRange.endDate}
22
23
  endDate={dateRange.endDate}
@@ -4,6 +4,7 @@ export const DatePickerWrapper = styled.div`
4
4
  `;
5
5
 
6
6
  export const DateCont = styled.div`
7
+
7
8
  display: flex;
8
9
  align-items: center;
9
10
  width: 120px;
@@ -27,6 +28,18 @@ export const DateCont = styled.div`
27
28
  border: none;
28
29
 
29
30
  }
31
+
32
+ .react-datepicker__input-container{
33
+ margin-left: 12px;
34
+ // margin-left: 50px;
35
+ opacity: ${(props) => (props.opacity ? props.opacity : 0.7)};
36
+
37
+ input{
38
+ border: none;
39
+ width: 78px;
40
+ }
41
+ }
42
+
30
43
  .react-datepicker__current-month{
31
44
  display: flex;
32
45
  justify-content: space-between;
@@ -128,7 +128,6 @@ const AccountDropdown = (props) => {
128
128
  {props?.selectedAccount?.type || props.activeAccountType}{" "}
129
129
  </h2>
130
130
  </div>
131
- <CloseIcon onClick={(e) => props.setIsOpen(!props.isOpen)} />
132
131
  </AccountDropdownHeader>
133
132
  <AccountDropdownBody>
134
133
  {/* {props.apiAccountType === `${props.accountType}` && ( */}
@@ -181,7 +181,9 @@ const HeaderComponent = (props) => {
181
181
 
182
182
  <CountryFlagGroup>
183
183
  <ReactFlagsSelect
184
- disabled
184
+ // disabled
185
+ // countries={["US", "GB", "FR", "DE", "IT"]}
186
+ countries={["US",]}
185
187
  selected={"US"}
186
188
  onSelect={(code) => setSelected(code)}
187
189
  showOptionLabel={true}
@@ -189,7 +191,7 @@ const HeaderComponent = (props) => {
189
191
  <ArrowDownIcon />
190
192
  </CountryFlagGroup>
191
193
 
192
- <UserProfile onClick={() => setIsOpen(true)}>
194
+ <UserProfile onClick={() => setIsOpen(!isOpen)}>
193
195
  <div className="user-img-container">
194
196
  <img src={props.avatar} alt="profile" />
195
197
  </div>
@@ -5,7 +5,7 @@ export { default as SideNav } from "./sideNav";
5
5
  export { default as SideMenu } from "./sideBar/sideMenu";
6
6
  export { default as ProgressBar } from "./progressBar";
7
7
  export { default as Radio } from "./radio";
8
- export { default as Checkbox } from "./checkBoxes/checkbox";
8
+ export { default as Checkbox } from "./checkBoxes/checkbox/index2";
9
9
  export { default as CheckboxGroup } from "./checkBoxes/checkboxGroup";
10
10
  export { default as RequestList } from "./friendRequest/friendRequestList";
11
11
  export { default as CourseList } from "./course/courseList";
@@ -5,7 +5,7 @@ export const SideMenuContainer = styled.div`
5
5
  position: fixed;
6
6
 
7
7
  width: ${({ isOpen }) => (isOpen ? "239px" : "48px")};
8
- height: 609px;
8
+ height: 60vh;
9
9
  max-height: 609px;
10
10
  display: flex;
11
11
  flex-direction: column;
@@ -5,6 +5,7 @@ export const NavWrapper = styled.nav`
5
5
  background-color: #ffffff;
6
6
  width: 57px;
7
7
  position: fixed;
8
+ height: 60vh;
8
9
  /* top: 10%; */
9
10
  left: 0;
10
11
  overflow-x: hidden;