@nualang/nualang-ui-components 0.1.1333 → 0.1.1334
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/dist/Chat/BottomBar/BottomBar.js +1 -2
- package/dist/Editors/Bot/Bot.js +12 -1
- package/dist/Editors/Roleplay/Roleplay.js +12 -1
- package/dist/Forms/AppContact/AppContact.js +1 -0
- package/dist/Navigation/ResponsiveTabs/ResponsiveTabs.js +0 -20
- package/dist/Screens/Courses/ViewCourse/ViewCourse.js +4 -3
- package/dist/Screens/Courses/ViewCourse/ViewTopic/ViewTopic.js +4 -3
- package/package.json +1 -1
|
@@ -145,9 +145,8 @@ export default function BottomBar({
|
|
|
145
145
|
placeholder: browserSupportsSpeechRecognition && handleRecord ? isSmallScreen ? t("bot_input_mobile_placeholder") : t("bot_input_placeholder") : placeholder,
|
|
146
146
|
inputProps: {
|
|
147
147
|
maxLength: isChallengeBot ? 600 : 200,
|
|
148
|
-
sx:
|
|
148
|
+
sx: () => ({
|
|
149
149
|
"&::placeholder": {
|
|
150
|
-
color: theme.palette.mode === "light" ? grey[200] : grey[800],
|
|
151
150
|
opacity: 1
|
|
152
151
|
}
|
|
153
152
|
})
|
package/dist/Editors/Bot/Bot.js
CHANGED
|
@@ -729,7 +729,18 @@ function Bot({
|
|
|
729
729
|
return !hidden ? /*#__PURE__*/_jsx(Tab, {
|
|
730
730
|
id: keyId,
|
|
731
731
|
label: label,
|
|
732
|
-
disabled: disabled
|
|
732
|
+
disabled: disabled,
|
|
733
|
+
sx: {
|
|
734
|
+
color: "#fff !important",
|
|
735
|
+
"&.Mui-selected": {
|
|
736
|
+
color: "#fff !important"
|
|
737
|
+
},
|
|
738
|
+
"&:hover": {
|
|
739
|
+
...(theme.palette.mode === "light" && {
|
|
740
|
+
backgroundColor: "rgba(144, 238, 144, 0.20) !important"
|
|
741
|
+
})
|
|
742
|
+
}
|
|
743
|
+
}
|
|
733
744
|
}, keyId) : null;
|
|
734
745
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
|
735
746
|
title: hidden ? t("show_menu") : t("hide_menu"),
|
|
@@ -758,7 +758,18 @@ function Roleplay({
|
|
|
758
758
|
}, i) => !hidden ? /*#__PURE__*/_jsx(Tab, {
|
|
759
759
|
id: i,
|
|
760
760
|
label: label,
|
|
761
|
-
disabled: disabled
|
|
761
|
+
disabled: disabled,
|
|
762
|
+
sx: {
|
|
763
|
+
color: "#fff !important",
|
|
764
|
+
"&.Mui-selected": {
|
|
765
|
+
color: "#fff !important"
|
|
766
|
+
},
|
|
767
|
+
"&:hover": {
|
|
768
|
+
...(theme.palette.mode === "light" && {
|
|
769
|
+
backgroundColor: "rgba(144, 238, 144, 0.20) !important"
|
|
770
|
+
})
|
|
771
|
+
}
|
|
772
|
+
}
|
|
762
773
|
}, i) : null), /*#__PURE__*/_jsx(Tooltip, {
|
|
763
774
|
title: hidden ? t("show_menu") : t("hide_menu"),
|
|
764
775
|
children: /*#__PURE__*/_jsx(IconButton, {
|
|
@@ -97,26 +97,6 @@ function ResponsiveTabs({
|
|
|
97
97
|
sx: {
|
|
98
98
|
"@media print": {
|
|
99
99
|
display: "none"
|
|
100
|
-
},
|
|
101
|
-
"& .MuiTab-root": {
|
|
102
|
-
transition: theme.transitions.create(["background-color", "color"], {
|
|
103
|
-
duration: theme.transitions.duration.shorter
|
|
104
|
-
}),
|
|
105
|
-
"&:hover": {
|
|
106
|
-
backgroundColor: theme.palette.action.hover
|
|
107
|
-
},
|
|
108
|
-
"&.Mui-selected": {
|
|
109
|
-
color: theme.palette.primary.main,
|
|
110
|
-
"&:hover": {
|
|
111
|
-
backgroundColor: theme.palette.primary.light + "20"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"&.Mui-focusVisible": {
|
|
115
|
-
backgroundColor: theme.palette.action.focus
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"& .MuiTabs-indicator": {
|
|
119
|
-
height: 3
|
|
120
100
|
}
|
|
121
101
|
},
|
|
122
102
|
children: tabs.map(({
|
|
@@ -1023,16 +1023,17 @@ export default function ViewCourse({
|
|
|
1023
1023
|
const {
|
|
1024
1024
|
classes
|
|
1025
1025
|
} = useStyles();
|
|
1026
|
+
const safeCourse = course || {};
|
|
1026
1027
|
return /*#__PURE__*/_jsxs("div", {
|
|
1027
1028
|
className: classes.root,
|
|
1028
|
-
children: [isLoading && Object.keys(
|
|
1029
|
+
children: [isLoading && Object.keys(safeCourse).length === 0 && /*#__PURE__*/_jsx(_Fragment, {
|
|
1029
1030
|
children: /*#__PURE__*/_jsx(Course, {
|
|
1030
1031
|
t: t,
|
|
1031
1032
|
isLoading: isLoading,
|
|
1032
1033
|
isStudent: isStudent,
|
|
1033
1034
|
...otherProps
|
|
1034
1035
|
})
|
|
1035
|
-
}), !isLoading && course && Object.keys(
|
|
1036
|
+
}), !isLoading && course && Object.keys(safeCourse).length && /*#__PURE__*/_jsx(_Fragment, {
|
|
1036
1037
|
children: /*#__PURE__*/_jsx(Course, {
|
|
1037
1038
|
t: t,
|
|
1038
1039
|
isLoading: isLoading,
|
|
@@ -1043,7 +1044,7 @@ export default function ViewCourse({
|
|
|
1043
1044
|
isStudent: isStudent,
|
|
1044
1045
|
...otherProps
|
|
1045
1046
|
})
|
|
1046
|
-
}), !isLoading && Object.keys(
|
|
1047
|
+
}), !isLoading && Object.keys(safeCourse).length === 0 && /*#__PURE__*/_jsx(CourseNotFound, {
|
|
1047
1048
|
t: t,
|
|
1048
1049
|
placeholderImageUrl: placeholderImageUrl,
|
|
1049
1050
|
handleSearch: handleSearch
|
|
@@ -1323,16 +1323,17 @@ export default function ViewTopic({
|
|
|
1323
1323
|
const {
|
|
1324
1324
|
classes
|
|
1325
1325
|
} = useStyles();
|
|
1326
|
+
const safeTopic = topic || {};
|
|
1326
1327
|
return /*#__PURE__*/_jsxs("div", {
|
|
1327
1328
|
className: classes.root,
|
|
1328
|
-
children: [isLoading && Object.keys(
|
|
1329
|
+
children: [isLoading && Object.keys(safeTopic).length === 0 && /*#__PURE__*/_jsx(_Fragment, {
|
|
1329
1330
|
children: /*#__PURE__*/_jsx(Topic, {
|
|
1330
1331
|
t: t,
|
|
1331
1332
|
isLoading: isLoading,
|
|
1332
1333
|
courseSettings: courseSettings,
|
|
1333
1334
|
...otherProps
|
|
1334
1335
|
})
|
|
1335
|
-
}), !isLoading && topic && Object.keys(
|
|
1336
|
+
}), !isLoading && topic && Object.keys(safeTopic).length && /*#__PURE__*/_jsx(_Fragment, {
|
|
1336
1337
|
children: /*#__PURE__*/_jsx(Topic, {
|
|
1337
1338
|
t: t,
|
|
1338
1339
|
isLoading: isLoading,
|
|
@@ -1358,7 +1359,7 @@ export default function ViewTopic({
|
|
|
1358
1359
|
isClassroomCreator: isClassroomCreator,
|
|
1359
1360
|
...otherProps
|
|
1360
1361
|
})
|
|
1361
|
-
}), !isLoading && Object.keys(
|
|
1362
|
+
}), !isLoading && Object.keys(safeTopic).length === 0 && /*#__PURE__*/_jsx(TopicNotFound, {
|
|
1362
1363
|
t: t,
|
|
1363
1364
|
isLoading: isLoading,
|
|
1364
1365
|
handleViewCourse: handleViewCourse
|