ui-soxo-bootstrap-core 2.5.1 → 2.5.3
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/core/components/extra-info/extra-info-details.js +109 -126
- package/core/lib/components/sidemenu/sidemenu.js +193 -238
- package/core/lib/components/sidemenu/sidemenu.scss +39 -26
- package/core/lib/elements/basic/rangepicker/rangepicker.js +1 -0
- package/core/lib/elements/basic/rangepicker/rangepicker.scss +6 -0
- package/core/lib/pages/login/login.js +19 -17
- package/core/lib/pages/profile/theme-config.js +1 -1
- package/core/models/users/components/user-add/user-add.js +98 -411
- package/package.json +1 -1
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
width: 17%;
|
|
44
44
|
background: #fff;
|
|
45
45
|
// border-bottom: 1.5px solid #24aeb8;
|
|
46
|
-
&.close{
|
|
47
|
-
width:6% !important
|
|
46
|
+
&.close {
|
|
47
|
+
width: 6% !important;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.logo-wrapper {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
@media only screen and (max-width: 500px) {
|
|
72
72
|
margin-right: 0px;
|
|
73
|
-
// margin: 10px;
|
|
73
|
+
// margin: 10px;
|
|
74
74
|
width: 150px;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
|
|
161
161
|
/* Pseudo-element (as before) */
|
|
162
162
|
.menu-collapsed::after {
|
|
163
|
-
content:
|
|
163
|
+
content: '';
|
|
164
164
|
position: absolute;
|
|
165
165
|
top: -100%;
|
|
166
166
|
left: 0;
|
|
@@ -175,26 +175,26 @@
|
|
|
175
175
|
// background-color: #E0EBFF;
|
|
176
176
|
// transform: scale(0.95); /* Apply scale effect on hover */
|
|
177
177
|
}
|
|
178
|
-
/* Style selected item */
|
|
179
|
-
.ant-menu{
|
|
180
|
-
|
|
181
|
-
}
|
|
182
|
-
// .ant-menu-inline .ant-menu-item::after{
|
|
183
|
-
// border-right: none;
|
|
184
|
-
// }
|
|
185
|
-
// .ant-menu-item-selected {
|
|
186
|
-
// background-color: var(--selected-bg-color) !important;
|
|
187
|
-
// color: var(--selected-text-color) !important;
|
|
188
|
-
// border-radius: 12px;
|
|
189
|
-
// // font-weight: 600;
|
|
190
|
-
// // margin: 4px 8px;
|
|
191
|
-
// }
|
|
192
|
-
|
|
193
|
-
// /* Optional: remove hover effects */
|
|
194
|
-
// .ant-menu-item:hover {
|
|
195
|
-
// background-color: transparent !important;
|
|
196
|
-
// color: transparent !important;
|
|
197
|
-
// }
|
|
178
|
+
/* Style selected item */
|
|
179
|
+
.ant-menu {
|
|
180
|
+
background-color: transparent !important;
|
|
181
|
+
}
|
|
182
|
+
// .ant-menu-inline .ant-menu-item::after{
|
|
183
|
+
// border-right: none;
|
|
184
|
+
// }
|
|
185
|
+
// .ant-menu-item-selected {
|
|
186
|
+
// background-color: var(--selected-bg-color) !important;
|
|
187
|
+
// color: var(--selected-text-color) !important;
|
|
188
|
+
// border-radius: 12px;
|
|
189
|
+
// // font-weight: 600;
|
|
190
|
+
// // margin: 4px 8px;
|
|
191
|
+
// }
|
|
192
|
+
|
|
193
|
+
// /* Optional: remove hover effects */
|
|
194
|
+
// .ant-menu-item:hover {
|
|
195
|
+
// background-color: transparent !important;
|
|
196
|
+
// color: transparent !important;
|
|
197
|
+
// }
|
|
198
198
|
|
|
199
199
|
/* River flow effect */
|
|
200
200
|
.menu-collapsed:hover::after {
|
|
@@ -248,9 +248,7 @@
|
|
|
248
248
|
padding: 0px;
|
|
249
249
|
// width: 100% !important;
|
|
250
250
|
// padding: 10px 16px;
|
|
251
|
-
|
|
252
251
|
}
|
|
253
|
-
|
|
254
252
|
|
|
255
253
|
.menu-item {
|
|
256
254
|
width: 100% !important;
|
|
@@ -262,3 +260,18 @@
|
|
|
262
260
|
}
|
|
263
261
|
}
|
|
264
262
|
}
|
|
263
|
+
|
|
264
|
+
.ant-menu-item:hover {
|
|
265
|
+
background-color: #e6f7ff !important;
|
|
266
|
+
color: #1677ff !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Tooltip styling if needed */
|
|
270
|
+
.ant-tooltip-inner {
|
|
271
|
+
max-width: 200px;
|
|
272
|
+
white-space: nowrap;
|
|
273
|
+
overflow: hidden;
|
|
274
|
+
text-overflow: ellipsis;
|
|
275
|
+
background-color: #ffffff !important;
|
|
276
|
+
color: #000000 !important;
|
|
277
|
+
}
|
|
@@ -121,9 +121,11 @@ function LoginPhone({ history, appSettings }) {
|
|
|
121
121
|
.then((result) => {
|
|
122
122
|
setLoading(false);
|
|
123
123
|
|
|
124
|
-
const { user, access_token, refresh_token } = result;
|
|
124
|
+
const { user, access_token, refresh_token, insider_token } = result;
|
|
125
125
|
if (access_token) localStorage.access_token = access_token;
|
|
126
126
|
|
|
127
|
+
if (insider_token) localStorage.insider_token = insider_token;
|
|
128
|
+
|
|
127
129
|
if (result.success) {
|
|
128
130
|
//two_factor_authentication variable is present then proceed Two factor authentication
|
|
129
131
|
if (result.data && result.data.two_factor_authentication) {
|
|
@@ -516,28 +518,28 @@ function LoginPhone({ history, appSettings }) {
|
|
|
516
518
|
return user.username;
|
|
517
519
|
};
|
|
518
520
|
|
|
519
|
-
const { globalCustomerHeader = () => {} } = appSettings;
|
|
521
|
+
const { globalCustomerHeader = () => { } } = appSettings;
|
|
520
522
|
|
|
521
523
|
const themeName = process.env.REACT_APP_THEME; // e.g., 'purple'
|
|
522
524
|
const isPurple = themeName === 'purple';
|
|
523
525
|
|
|
524
526
|
const sectionStyle = isPurple
|
|
525
527
|
? {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
528
|
+
width: '100%',
|
|
529
|
+
height: '100vh',
|
|
530
|
+
backgroundImage: `${state.theme.colors.loginPageBackground}`,
|
|
531
|
+
backgroundPosition: 'center bottom, center',
|
|
532
|
+
backgroundRepeat: 'no-repeat, no-repeat',
|
|
533
|
+
backgroundSize: 'cover, cover',
|
|
534
|
+
}
|
|
533
535
|
: {
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
536
|
+
width: '100%',
|
|
537
|
+
height: '100vh',
|
|
538
|
+
backgroundImage: `url(${backgroundImage}), ${state.theme.colors.loginPageBackground}`,
|
|
539
|
+
backgroundPosition: 'center bottom, center',
|
|
540
|
+
backgroundRepeat: 'no-repeat, no-repeat',
|
|
541
|
+
backgroundSize: 'cover, cover',
|
|
542
|
+
};
|
|
541
543
|
|
|
542
544
|
return (
|
|
543
545
|
<section className="full-page" style={sectionStyle}>
|
|
@@ -613,7 +615,7 @@ function LoginPhone({ history, appSettings }) {
|
|
|
613
615
|
Email <MailOutlined className="otp-icon" style={{ marginLeft: 6 }} />
|
|
614
616
|
</Radio>
|
|
615
617
|
<Radio checked={communicationMode === 'mobile'} onChange={() => setCommunicationMode('mobile')}>
|
|
616
|
-
SMS <MessageOutlined
|
|
618
|
+
SMS <MessageOutlined className="otp-icon" style={{ marginLeft: 6 }} />
|
|
617
619
|
</Radio>
|
|
618
620
|
</div>
|
|
619
621
|
{modeError && <p className="otp-mode-error">Please select a communication mode.</p>}
|