mario-core 1.1.40-es-layout → 1.1.42-es-layout

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.
@@ -0,0 +1,21 @@
1
+ export declare enum TypeLogin {
2
+ Google = 0
3
+ }
4
+ export interface IInformationUser {
5
+ firstName: string;
6
+ lastName: string;
7
+ fullName: string;
8
+ imageUrl: string | null;
9
+ email: string;
10
+ accessToken: string;
11
+ googleId: string;
12
+ }
13
+ export declare enum LoginType {
14
+ Default = 0,
15
+ Google = 1,
16
+ Impersonate = 2
17
+ }
18
+ export interface ISchool {
19
+ schoolName: string;
20
+ schoolLogo: string;
21
+ }
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { ISchool } from "../constant/types";
2
3
  declare type LoginInfo = {
3
4
  email: string;
4
5
  password: string;
5
6
  captcha: string;
6
7
  rememberMe: boolean;
8
+ isSessionUserBrowser?: boolean;
7
9
  };
8
10
  declare const useLogin: () => {
9
11
  defaultInfo: LoginInfo;
@@ -20,5 +22,6 @@ declare const useLogin: () => {
20
22
  setIsLoginGoogle: import("react").Dispatch<import("react").SetStateAction<boolean>>;
21
23
  googleClientId: string;
22
24
  googleRecaptchaId: string;
25
+ school: ISchool;
23
26
  };
24
27
  export default useLogin;
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ data: string[];
4
+ duration?: number;
5
+ }
6
+ declare const BlockBackground: FC<Props>;
7
+ export default BlockBackground;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const BlockForgetPassword: () => JSX.Element;
2
+ import { ISchool } from "../../constant/types";
3
+ interface Props {
4
+ school: ISchool;
5
+ }
6
+ declare const BlockForgetPassword: ({ school }: Props) => JSX.Element;
3
7
  export default BlockForgetPassword;
@@ -1,7 +1,9 @@
1
1
  import { FC } from "react";
2
+ import { ISchool } from "../../constant/types";
2
3
  interface Props {
3
4
  defaultInfo?: any;
4
5
  userLogin?: any;
6
+ school: ISchool;
5
7
  }
6
8
  declare const BlockLogin: FC<Props>;
7
9
  export default BlockLogin;
package/dist/index.css CHANGED
@@ -10,7 +10,33 @@
10
10
 
11
11
  ._2HqmH {
12
12
  width: 100%;
13
- justify-content: center; }
13
+ justify-content: center;
14
+ border-radius: 50px !important;
15
+ border: none !important;
16
+ box-shadow: none !important;
17
+ background-color: #EFF3FC !important; }
18
+ ._2HqmH > span {
19
+ color: #316CD9 !important;
20
+ line-height: 27px !important;
21
+ font-size: 18px !important;
22
+ font-weight: 700 !important; }
23
+ @media (max-width: 768px) {
24
+ ._2HqmH > span {
25
+ font-size: 14px !important;
26
+ line-height: 21px !important; } }
27
+ ._2HqmH > div {
28
+ padding: 0 !important; }
29
+ ._2HqmH > div > svg {
30
+ background: #EFF3FC !important;
31
+ transform: scale(1.5);
32
+ margin-right: 3px; }
33
+
34
+ ._2HqmH:hover {
35
+ background-color: #316CD9 !important; }
36
+ ._2HqmH:hover > span {
37
+ color: #ffffff !important; }
38
+ ._2HqmH:hover > div > svg {
39
+ background: #316CD9 !important; }
14
40
 
15
41
  ._2sew7 {
16
42
  top: -4px;
@@ -96,7 +122,7 @@
96
122
  line-height: 1.5; }
97
123
 
98
124
  ._38Lo1 {
99
- width: 826px; }
125
+ max-width: 524px; }
100
126
 
101
127
  ._1OzGy {
102
128
  width: 50%;
@@ -105,16 +131,18 @@
105
131
 
106
132
  ._wWIyO {
107
133
  width: 100%;
108
- height: 100%;
109
- background-color: #ffffff;
110
- border-radius: 5px 0 0 5px;
111
- box-shadow: 0 3px 6px #00000029; }
134
+ height: 100%; }
112
135
 
113
136
  ._3nuns {
114
- font-size: 24px;
137
+ font-size: 48px;
115
138
  font-weight: bold;
116
- line-height: 28px;
117
- margin-bottom: 30px; }
139
+ line-height: 56px;
140
+ margin-bottom: 15px;
141
+ font-family: "Montserrat-Bold" !important; }
142
+ @media (max-width: 768px) {
143
+ ._3nuns {
144
+ font-size: 32px;
145
+ line-height: 40px; } }
118
146
 
119
147
  ._21qb6 {
120
148
  margin-bottom: 5px; }
@@ -142,6 +170,30 @@
142
170
  border: none;
143
171
  outline: none;
144
172
  width: 100%; }
173
+ @media (max-width: 768px) {
174
+ ._3IL10 {
175
+ padding: 10px 27px; } }
176
+
177
+ ._2OUwW {
178
+ height: 56px; }
179
+
180
+ ._2Owso {
181
+ font-size: 16px;
182
+ font-family: "Poppins-Regular" !important;
183
+ line-height: 24px; }
184
+ @media (max-width: 768px) {
185
+ ._2Owso {
186
+ font-size: 14px; } }
187
+
188
+ ._fx-kA {
189
+ font-size: 16px;
190
+ font-weight: 400;
191
+ line-height: 24px;
192
+ text-align: left;
193
+ opacity: 0.6; }
194
+ @media (max-width: 768px) {
195
+ ._fx-kA {
196
+ font-size: 14px; } }
145
197
 
146
198
  ._Ce3Kg {
147
199
  color: #2196f3;
@@ -156,14 +208,34 @@
156
208
  font-size: 16px !important; }
157
209
 
158
210
  ._3bDsd {
159
- color: #2196f3;
211
+ color: #336dda;
160
212
  font-size: 16px;
161
213
  display: inline-block;
162
- font-weight: 500; }
214
+ font-weight: 500;
215
+ font-family: "Poppins-Regular" !important;
216
+ -webkit-text-decoration: revert;
217
+ text-decoration: revert; }
163
218
  ._3bDsd:hover {
164
- color: #0a4da2;
165
- -webkit-text-decoration: revert;
166
- text-decoration: revert; }
219
+ color: #336dda; }
220
+ @media (max-width: 768px) {
221
+ ._3bDsd {
222
+ font-size: 14px; } }
223
+
224
+ ._I4SVu {
225
+ color: #336dda;
226
+ font-size: 16px;
227
+ display: inline-block;
228
+ font-weight: 500;
229
+ font-family: "Poppins-Regular" !important;
230
+ -webkit-text-decoration: revert;
231
+ text-decoration: revert;
232
+ bottom: 20px;
233
+ position: absolute; }
234
+ ._I4SVu:hover {
235
+ color: #336dda; }
236
+ @media (max-width: 768px) {
237
+ ._I4SVu {
238
+ font-size: 14px; } }
167
239
 
168
240
  ._11FZt {
169
241
  font-weight: 500; }
@@ -215,41 +287,96 @@
215
287
  ._32V6L ._3OgWF {
216
288
  width: 70%; }
217
289
 
218
- ._wWIyO {
219
- padding: 60px 50px;
220
- position: relative; }
221
- ._wWIyO label:not(._11FZt) {
222
- color: #8f9bb3;
223
- text-transform: uppercase; }
224
- ._wWIyO input[type="text"],
225
- ._wWIyO input[type="password"] {
226
- width: 100%;
227
- border-radius: 4px;
228
- background-color: #f7f9fc;
229
- height: 50px;
230
- margin-bottom: 5px;
231
- padding: 4px; }
232
- ._wWIyO ._39BJD {
233
- margin-bottom: 30px; }
234
- ._wWIyO input[type="checkbox"]._2K9b2 {
235
- margin-left: 0; }
236
- ._wWIyO ._11FZt {
237
- padding-left: 20px; }
238
- ._wWIyO ._3IL10 {
239
- margin: 30px 0;
240
- color: rgba(0, 0, 0, 0.36);
241
- font-weight: 500; }
242
- ._wWIyO ._3IL10:hover {
243
- background-color: #2196f3;
244
- color: #ffffff; }
245
- ._wWIyO ._3LXoI {
246
- position: absolute;
247
- margin-left: auto;
248
- margin-right: auto;
249
- left: 0;
250
- right: 0;
251
- bottom: 0;
252
- text-align: center; }
290
+ ._wWIyO label:not(._11FZt) {
291
+ color: #8f9bb3;
292
+ text-transform: uppercase; }
293
+
294
+ ._wWIyO input[type="text"],
295
+ ._wWIyO input[type="password"] {
296
+ width: 100%;
297
+ border-radius: 8px;
298
+ border: 1px solid #D3D3D3;
299
+ height: 50px;
300
+ margin-bottom: 5px;
301
+ padding: 5px 15px; }
302
+
303
+ ._wWIyO input[type="text"]::-moz-placeholder, ._wWIyO input[type="password"]::-moz-placeholder {
304
+ color: #D3D3D3;
305
+ font-size: 16px;
306
+ font-weight: 400; }
307
+
308
+ ._wWIyO input[type="text"]:-ms-input-placeholder, ._wWIyO input[type="password"]:-ms-input-placeholder {
309
+ color: #D3D3D3;
310
+ font-size: 16px;
311
+ font-weight: 400; }
312
+
313
+ ._wWIyO input[type="text"]::placeholder,
314
+ ._wWIyO input[type="password"]::placeholder {
315
+ color: #D3D3D3;
316
+ font-size: 16px;
317
+ font-weight: 400; }
318
+
319
+ ._wWIyO ._1AiX0 {
320
+ transform: scale(1.3);
321
+ margin-left: 2px; }
322
+
323
+ ._wWIyO ._2uNvW {
324
+ font-size: 16px;
325
+ line-height: 27px; }
326
+ @media (max-width: 768px) {
327
+ ._wWIyO ._2uNvW {
328
+ font-size: 14px; } }
329
+
330
+ ._wWIyO ._pqn4y {
331
+ font-size: 18px;
332
+ opacity: 0.56; }
333
+ @media (max-width: 768px) {
334
+ ._wWIyO ._pqn4y {
335
+ font-size: 14px; } }
336
+
337
+ ._wWIyO ._39BJD {
338
+ margin-bottom: 30px; }
339
+ ._wWIyO ._39BJD ._ozRAq:disabled {
340
+ background: #E5E5E5; }
341
+
342
+ ._wWIyO input[type="checkbox"]._2K9b2 {
343
+ margin-left: 0; }
344
+
345
+ ._wWIyO ._11FZt {
346
+ padding-left: 20px; }
347
+
348
+ ._wWIyO ._3IL10 {
349
+ margin-top: 30px;
350
+ color: #ffffff;
351
+ font-weight: 500;
352
+ font-size: 18px;
353
+ font-weight: 700;
354
+ border-radius: 100px;
355
+ background-color: #316CD9;
356
+ line-height: 27px; }
357
+ ._wWIyO ._3IL10:hover {
358
+ background-color: #2196f3;
359
+ color: #ffffff; }
360
+ @media (max-width: 768px) {
361
+ ._wWIyO ._3IL10 {
362
+ font-size: 14px;
363
+ line-height: 21px; } }
364
+
365
+ ._wWIyO ._2VvIr {
366
+ border-radius: 50px; }
367
+
368
+ ._wWIyO ._2A0HF {
369
+ background: #316CD9;
370
+ color: #FFFFFF; }
371
+
372
+ ._wWIyO ._3LXoI {
373
+ position: absolute;
374
+ margin-left: auto;
375
+ margin-right: auto;
376
+ left: 0;
377
+ right: 0;
378
+ bottom: 0;
379
+ text-align: center; }
253
380
 
254
381
  ._23Sua {
255
382
  min-height: 40vh; }
@@ -278,7 +405,6 @@
278
405
  background-image: url("/images/home.png") !important; }
279
406
 
280
407
  ._F-hjL {
281
- background-color: #0a4da2;
282
408
  background-repeat: no-repeat;
283
409
  background-size: cover;
284
410
  width: 100%;
@@ -286,16 +412,17 @@
286
412
  background-position: center; }
287
413
  @media (max-width: 768px) {
288
414
  ._F-hjL {
289
- background-color: #0a4da2;
290
415
  overflow: hidden; } }
291
- ._F-hjL ._1TT1q {
292
- padding-top: 40px;
293
- padding-right: 60px;
294
- justify-content: flex-end; }
295
- ._F-hjL ._3Wmco {
296
- padding-top: 60px;
297
- padding-right: 50px;
298
- padding-left: 50px; }
416
+ ._F-hjL ._149oA {
417
+ position: relative;
418
+ z-index: 2;
419
+ background: rgba(0, 0, 0, 0.57);
420
+ height: 100%;
421
+ padding: 20px 100px; }
422
+ ._F-hjL ._149oA ._24U3W > img {
423
+ height: 60px; }
424
+ ._F-hjL ._149oA ._3Wmco {
425
+ padding-top: 70px; }
299
426
 
300
427
  ._2v-L_ {
301
428
  padding: 0 !important; }
@@ -358,7 +485,8 @@
358
485
  ._DNrus li > a {
359
486
  max-width: 200px; }
360
487
 
361
- ._3NEZj, ._1wUDG {
488
+ ._3NEZj,
489
+ ._1wUDG {
362
490
  background: #262626 !important; }
363
491
 
364
492
  ._1S7Px {
@@ -518,6 +646,9 @@
518
646
  width: 358px; }
519
647
  ._wWIyO {
520
648
  padding: 50px 20px !important; } }
649
+ @media (max-width: 575px) and (max-width: 768px) {
650
+ ._wWIyO {
651
+ padding-top: 30px !important; } }
521
652
 
522
653
  ._1ocBa {
523
654
  cursor: pointer;
@@ -570,6 +701,80 @@
570
701
  font-size: 20px;
571
702
  padding: 10px 20px; }
572
703
 
704
+ @media (max-width: 768px) {
705
+ ._2v-L_ {
706
+ display: none; }
707
+ ._wWIyO {
708
+ border-radius: 5px !important; }
709
+ ._38Lo1 {
710
+ width: 500px !important;
711
+ max-width: 95%; }
712
+ ._2yRc8 {
713
+ font-size: 30px;
714
+ color: #ffffff; }
715
+ ._149oA {
716
+ padding: 20px !important; }
717
+ ._13Rk0 ._1Swkw > p {
718
+ font-size: 40px;
719
+ font-weight: 700;
720
+ text-align: center; }
721
+ ._13Rk0 ._gi8vj > p {
722
+ font-size: 16px;
723
+ font-weight: 600;
724
+ text-align: center; }
725
+ ._141p1 {
726
+ right: 20px; }
727
+ ._ABUIP {
728
+ overflow-x: scroll;
729
+ -ms-overflow-style: none;
730
+ scrollbar-width: none; }
731
+ ._ABUIP::-webkit-scrollbar {
732
+ display: none; }
733
+ ._F-hjL ._1TT1q ._NszFe {
734
+ width: 70%;
735
+ border: #8b0000;
736
+ color: #ffffff;
737
+ max-width: 500px;
738
+ margin: 5px auto;
739
+ background-color: #8b0000;
740
+ border-radius: 10px;
741
+ padding: 5px 40px; }
742
+ ._F-hjL ._1TT1q ._MDjzH {
743
+ width: 70%;
744
+ border: #8b0000;
745
+ max-width: 500px;
746
+ margin: 5px auto;
747
+ border-radius: 10px;
748
+ color: #ffffff;
749
+ background-color: #8b0000;
750
+ padding: 5px 40px; }
751
+ ._F-hjL ._1TT1q ._r9cAh {
752
+ justify-content: center;
753
+ width: 70%;
754
+ max-width: 500px;
755
+ margin: 5px auto;
756
+ border: #8b0000;
757
+ color: #ffffff;
758
+ background-color: #8b0000; }
759
+ ._F-hjL ._1TT1q ._r9cAh :hover {
760
+ background-color: transparent;
761
+ color: #8b0000; }
762
+ ._1INnO {
763
+ display: none; }
764
+ ._WX97m {
765
+ padding: 10px 40px !important; }
766
+ ._WX97m {
767
+ background: #ffff;
768
+ padding: 20px;
769
+ margin-top: 10px; }
770
+ ._WX97m > ul > li > a {
771
+ width: 100% !important;
772
+ border: none !important;
773
+ color: #000000 !important;
774
+ background-color: #fff !important;
775
+ text-align: left;
776
+ padding: 0 !important; } }
777
+
573
778
  @media (max-width: 991px) {
574
779
  ._2v-L_ {
575
780
  display: none; }
package/dist/index.d.ts CHANGED
@@ -47,7 +47,7 @@ import useGalleryList from "./containers/Gallery/hooks/useGalleryList";
47
47
  import QuitPrompt from "./components/Others/QuitPrompt";
48
48
  import AcademicClassSelector from "./components/Selectors/AcademicClassSelector";
49
49
  import SchoolList from "./containers/DistrictSchools/views/SchoolList";
50
- import { isLocalhost, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE } from "./utils/constants";
50
+ import { isLocalhost, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, IS_USER_SESSION_BROWSER } from "./utils/constants";
51
51
  import store from "./store";
52
52
  import { api, apiUpload } from "./services/api";
53
53
  import editorConfig from "./configs/editorConfig";
@@ -107,4 +107,4 @@ import { setEnableIEP, setEnableSurvey, setConversationOneToOne } from "./redux/
107
107
  import useFilters from "./hooks/useFilters";
108
108
  import getStaticFileUrl from "./utils/getStaticFileUrl";
109
109
  import { setLanguage } from "./redux/commons/action";
110
- export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, isLocalhost, getStaticFileUrl, setLanguage, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE };
110
+ export { Login, Dashboard, TheLayout, TheContent, NotFound, EmailTemplateList, EmailTemplateDetail, FaqList, SkillList, UserContainer, UserDetail, Loading, NotificationModal, CommonHeader, CommonModal, AddButton, DeleteButtonIcon, EditButtonIcon, LinkEditButton, ToggleButton, EmptyDataAlert, CreatableSelector, CustomPagination, SearchBox, FileInput, QuitPrompt, QuestionTypeSelector, QuestionCategorySelector, SuggestionCategorySelector, ErrorHandler, DetailActionButtons, RequiredLabel, StarRatingSelector, ReactNotification, NotificationList, CustomSelector, UploadFileButton, SearchBoxContainer, CustomTab, CommonAlert, GalleryList, MediaList, useGalleryList, AcademicClassSelector, SchoolList, store, showMenuBar, showFontSize, setLoading, setModal, setAlert, setClassList, setConferenceRubricList, setSuggestionList, setStrategyList, setSubjectList, setLearningSupportCategoryList, setQuestionList, setUserList, setStudentList, setBadgeList, setGoalExampleList, setSemesterList, setFeedbackList, setAssessmentList, setQuestionByCategory, setSelectQuestion, setMoveItemQuestion, setReflectionList, setReflectionResultList, setEditItemQuesion, setResetQuestionList, setMailCategory, setUser, setAssignmentList, setAssistantList, setSessionTemplateList, setTutorialScreenList, setSessionTemplateGeneralClassList, setCustomAlertList, setCertificateList, closeTab, addTab, editTab, clearTab, changeNote, changeTags, answerQuestion, setSessionPlayer, setStartTime, setTurnOffPassWhenChangeMode, reset, setImproveMyClass, setSchoolBlankDayList, setEnableIEP, setEnableSurvey, setConversationOneToOne, i18n, useTranslation, I18nextProvider, api, apiUpload, uploadFile, systemStudentBadge, systemCertificateUpload, BASE_URL, DEFAULT_FILTER, LICENSE_AGGRID, TINY_MCE_API_KEY, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, ANSWER_EDITOR_HEIGHT, CHAT_CHANNEL, NOTIFICATION_CHANNEL, DATE_RESULT, DATE_FORMAT, FULL_DATE_RESULT, ACCESS_TOKEN, GOOGLE_RECAPTCHA_KEY, EMOTIONS, TAB_COLORS, Filter, Conversation, Message, ConversationMember, NavbarTab, editorConfig, generateRandomString, isInViewport, debounce, firstCheckToken, canAccessRoute, getFileUrl, getTextFromHTML, utcToLocalTime, getInfo, Images, setQuestionCateList, setMyStudent, setDataPlayer, answerQuestionDataPlayer, setCurrentStudentUserId, setCurrentStudentId, setCurrentStudentName, setFilterWidget, setBandScoreList, setStudentIdSelectedByTeacher, useFilters, ScrollToTop, isLocalhost, getStaticFileUrl, setLanguage, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, IS_USER_SESSION_BROWSER };