l-min-components 1.0.1089 → 1.0.1091

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.1089",
3
+ "version": "1.0.1091",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -6,6 +6,7 @@ export const SettingIcon = ({ width, height, fill }) => (
6
6
  viewBox="0 0 23 22"
7
7
  fill="none"
8
8
  xmlns="http://www.w3.org/2000/svg"
9
+ className="setting_icon"
9
10
  >
10
11
  <path
11
12
  d="M11.3219 20.5016L2.85352 15.5988V5.79336L11.3219 0.890625L19.7902 5.79336V15.5988L11.3219 20.5016ZM11.3219 2.95156L4.63633 6.82115V14.571L11.3219 18.4415L18.0074 14.571V6.82115L11.3219 2.95066V2.95156ZM11.3219 14.2617C10.3765 14.259 9.47037 13.8836 8.80008 13.217C7.78053 12.1971 7.47568 10.6635 8.02766 9.33127C8.57965 7.99901 9.87979 7.13047 11.3219 7.13047C12.267 7.133 13.1729 7.50844 13.8428 8.17519C15.2347 9.56757 15.2347 11.8246 13.8428 13.217C13.1728 13.8835 12.2669 14.2589 11.3219 14.2617ZM11.3219 8.91327C10.4713 8.9131 9.7391 9.51377 9.573 10.3479C9.40691 11.1821 9.8532 12.0174 10.6389 12.3431C11.4247 12.6687 12.331 12.3939 12.8037 11.6868C13.2763 10.9797 13.1837 10.0372 12.5823 9.43564C12.2487 9.10027 11.7949 8.9122 11.3219 8.91327Z"
@@ -299,7 +299,9 @@ const HeaderComponent = (props) => {
299
299
  }, []);
300
300
 
301
301
  // Determine home page for active style purpose
302
- const isHomePage = () => window.location.pathname === "/";
302
+ const isHomePage = () =>
303
+ window.location.pathname === "/" ||
304
+ window.location.pathname.includes("developer");
303
305
 
304
306
  // Determine the label based on the current path
305
307
  const getNavLinkLabel = () => {
@@ -72,92 +72,6 @@ export const NavGroup = styled.div`
72
72
  }
73
73
  `;
74
74
 
75
- // export const Nav = styled.ul`
76
- // display: flex;
77
- // list-style: none;
78
- // align-items: center;
79
- // margin: 0 10px;
80
- // padding: 0 5px;
81
- // width: 57%;
82
- // @media screen and (max-width: 1530px) {
83
- // width: 40%;
84
- // }
85
-
86
- // & li {
87
- // display: flex;
88
- // align-items: center;
89
- // margin: 0 10px;
90
- // }
91
-
92
- // & li:nth-of-type(1) {
93
- // margin-right: 75px;
94
- // margin-left: 35px;
95
- // }
96
-
97
- // & a {
98
- // text-decoration: none;
99
- // display: flex;
100
- // align-items: center;
101
- // color: #4a4d4d;
102
- // font-size: 15px;
103
- // font-weight: 600;
104
- // position: relative;
105
-
106
- // &:hover,
107
- // &.active {
108
- // color: rgba(0, 194, 194, 1);
109
- // font-weight: 600;
110
- // &::after {
111
- // content: "";
112
- // position: absolute;
113
- // left: 0;
114
- // bottom: -9px;
115
- // width: 40px;
116
- // height: 4px;
117
- // background-color: rgba(0, 194, 194, 1);
118
- // transition: width 0.3s ease-in-out;
119
- // }
120
- // }
121
-
122
- // & svg {
123
- // margin-right: 12px;
124
- // }
125
-
126
- // & svg path {
127
- // stroke: ${({ isActive }) =>
128
- // isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"};
129
- // }
130
-
131
-
132
- // &.disabled {
133
- // color: #d3d3d3 !important;
134
- // cursor: not-allowed;
135
-
136
- // &::before {
137
- // display: none;
138
- // }
139
-
140
- // &:hover {
141
- // color: #d3d3d3 !important;
142
- // cursor: not-allowed;
143
-
144
- // &::before {
145
- // content: "";
146
- // height: 30px;
147
- // width: 3px;
148
- // border-radius: 10px;
149
- // position: absolute;
150
- // top: 15px;
151
- // left: 50%;
152
- // display: block;
153
- // background: #fff !important;
154
- // transform: rotate(90deg);
155
- // }
156
- // }
157
- // }
158
- // }
159
- // `;
160
-
161
75
  export const Nav = styled.ul`
162
76
  display: flex;
163
77
  list-style: none;
@@ -210,13 +124,15 @@ export const Nav = styled.ul`
210
124
  & svg {
211
125
  margin-right: 12px;
212
126
  }
127
+ .setting_icon path {
128
+ fill: ${({ isActive }) =>
129
+ isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"};
130
+ stroke: none !important;
131
+ }
213
132
 
214
133
  & svg path {
215
134
  stroke: ${({ isActive }) =>
216
135
  isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"};
217
- /* fill: ${({ isActive }) =>
218
- isActive ? "rgba(0, 194, 194, 1)" : "currentcolor"}; */
219
-
220
136
  }
221
137
 
222
138
  &.disabled {
@@ -232,15 +148,15 @@ export const Nav = styled.ul`
232
148
  cursor: not-allowed;
233
149
 
234
150
  &::after {
235
- content: "";
236
- position: absolute;
237
- left: 0;
238
- bottom: -9px;
239
- width: 40px;
240
- height: 4px;
241
- background-color: #fff;
242
- transition: width 0.3s ease-in-out;
243
- }
151
+ content: "";
152
+ position: absolute;
153
+ left: 0;
154
+ bottom: -9px;
155
+ width: 40px;
156
+ height: 4px;
157
+ background-color: #fff;
158
+ transition: width 0.3s ease-in-out;
159
+ }
244
160
  }
245
161
  }
246
162
  }
@@ -847,7 +763,6 @@ export const LanguageDropdownContainer = styled.div`
847
763
  }
848
764
  `;
849
765
 
850
-
851
766
  export const Help = styled.div`
852
767
  display: flex;
853
768
  align-items: center;
@@ -857,7 +772,7 @@ export const Help = styled.div`
857
772
  font-weight: 600;
858
773
  color: #4a4d4d;
859
774
 
860
- svg{
775
+ svg {
861
776
  margin-right: 5px;
862
777
  }
863
- `
778
+ `;
@@ -6,9 +6,9 @@ import styled from "styled-components";
6
6
  * @param {{zoom: number, color: string}} param0
7
7
  * @returns
8
8
  */
9
- const Loader = ({ zoom, color }) => {
9
+ const Loader = ({ zoom, color, isOpen }) => {
10
10
  return (
11
- <Wrap zoom={zoom}>
11
+ <Wrap zoom={zoom} isOpen={isOpen}>
12
12
  <Container zoom={zoom} color={color}>
13
13
  <div></div>
14
14
  <div></div>
@@ -19,8 +19,10 @@ const Loader = ({ zoom, color }) => {
19
19
  };
20
20
 
21
21
  const Wrap = styled.div`
22
- width: ${({ zoom }) => (zoom ? (zoom * 100 * 80) / 100 : 80)}px;
23
- height: ${({ zoom }) => (zoom ? (zoom * 100 * 80) / 100 : 80)}px;
22
+ width: ${({ zoom, isOpen }) =>
23
+ zoom && isOpen ? (zoom * 100 * 80) / 100 : 30}px;
24
+ height: ${({ zoom, isOpen }) =>
25
+ zoom && isOpen ? (zoom * 100 * 80) / 100 : 30}px;
24
26
  display: flex;
25
27
  align-items: center;
26
28
  justify-content: "center";
@@ -64,7 +64,7 @@ const UserCard = ({ user, isOpen, findText }) => {
64
64
  return (
65
65
  <UserCardContainer isOpen={isOpen}>
66
66
  {userDetails?.loading && !organizationName ? (
67
- <Loader zoom={0.3} />
67
+ <Loader zoom={0.3} isOpen={isOpen} />
68
68
  ) : (
69
69
  <>
70
70
  <Avatar
@@ -94,14 +94,16 @@ const UserCard = ({ user, isOpen, findText }) => {
94
94
  if (window.location.pathname.includes("instructor")) {
95
95
  window.location.href = `${window.location.protocol}//${window.location.hostname}/instructor/profile`;
96
96
  }
97
- }}>
97
+ }}
98
+ >
98
99
  <UserName>{findText("Hello")}</UserName>
99
100
  <Handle
100
101
  style={{
101
102
  textTransform: "capitalize",
102
103
  fontWeight: 700,
103
104
  fontSize: 15,
104
- }}>{`${
105
+ }}
106
+ >{`${
105
107
  organizationName
106
108
  ? organizationName
107
109
  : generalData?.selectedAccount?.display_name ?? ""