@nualang/nualang-ui-components 0.1.1316 → 0.1.1317
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/Assignments/AssignmentBotSelection/AssignmentBotSelection.js +6 -1
- package/dist/Assignments/AssignmentRoleplaySelection/AssignmentRoleplaySelection.js +1 -1
- package/dist/Dialogs/GroupedFeedbackDialog/GroupedFeedbackDialog.js +43 -16
- package/dist/Misc/HoverText/HoverText.js +1 -0
- package/dist/Screens/Classrooms/ViewClassroom/ViewClassroom.js +9 -6
- package/package.json +1 -1
|
@@ -123,7 +123,12 @@ function Bot({
|
|
|
123
123
|
sm: "85%"
|
|
124
124
|
},
|
|
125
125
|
children: [/*#__PURE__*/_jsx(Avatar, {
|
|
126
|
-
src: bot.picture
|
|
126
|
+
src: bot.picture || bot.botAvatar,
|
|
127
|
+
sx: {
|
|
128
|
+
display: "flex",
|
|
129
|
+
width: 32,
|
|
130
|
+
height: 32
|
|
131
|
+
}
|
|
127
132
|
}), /*#__PURE__*/_jsx(ListItemText, {
|
|
128
133
|
sx: {
|
|
129
134
|
marginLeft: 2
|
|
@@ -206,7 +206,7 @@ function Roleplay({
|
|
|
206
206
|
sm: "85%"
|
|
207
207
|
},
|
|
208
208
|
children: [/*#__PURE__*/_jsx(Avatar, {
|
|
209
|
-
src: roleplay.picture,
|
|
209
|
+
src: roleplay.picture || roleplay.actor1 && roleplay.actor1.picture || roleplay.actor2 && roleplay.actor2.picture,
|
|
210
210
|
sx: {
|
|
211
211
|
display: "flex",
|
|
212
212
|
width: 32,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { Dialog, DialogContent, IconButton, Box, Typography, AppBar, Toolbar, CircularProgress } from "@mui/material";
|
|
2
|
+
import { Dialog, DialogContent, IconButton, Box, Typography, AppBar, Toolbar, CircularProgress, Skeleton } from "@mui/material";
|
|
3
3
|
import CloseIcon from "@mui/icons-material/Close";
|
|
4
4
|
import { red, orange, green, grey } from "@mui/material/colors";
|
|
5
5
|
import FeedbackCard from "../../Cards/FeedbackCard/FeedbackCard";
|
|
@@ -162,23 +162,50 @@ export default function GroupFeedbackDialog({
|
|
|
162
162
|
},
|
|
163
163
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
164
164
|
sx: {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
justifyContent: "center",
|
|
169
|
-
maxWidth: "25%"
|
|
165
|
+
position: "relative",
|
|
166
|
+
width: "100%",
|
|
167
|
+
maxWidth: "300px"
|
|
170
168
|
},
|
|
171
|
-
children: /*#__PURE__*/
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
style: {
|
|
169
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
170
|
+
sx: {
|
|
171
|
+
position: "relative",
|
|
175
172
|
width: "100%",
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
173
|
+
paddingTop: "56.25%",
|
|
174
|
+
borderRadius: "8px",
|
|
175
|
+
overflow: "hidden"
|
|
176
|
+
},
|
|
177
|
+
children: [/*#__PURE__*/_jsx(Skeleton, {
|
|
178
|
+
variant: "rectangular",
|
|
179
|
+
sx: {
|
|
180
|
+
position: "absolute",
|
|
181
|
+
top: 0,
|
|
182
|
+
left: 0,
|
|
183
|
+
width: "100%",
|
|
184
|
+
height: "100%",
|
|
185
|
+
borderRadius: "8px",
|
|
186
|
+
zIndex: 0
|
|
187
|
+
}
|
|
188
|
+
}), /*#__PURE__*/_jsx("img", {
|
|
189
|
+
src: editMeetingImages || editBackgroundImages || NualaHeadphonesBackground,
|
|
190
|
+
alt: "Meeting Image",
|
|
191
|
+
onLoad: e => {
|
|
192
|
+
setTimeout(() => {
|
|
193
|
+
e.target.style.opacity = 1;
|
|
194
|
+
}, 500);
|
|
195
|
+
},
|
|
196
|
+
style: {
|
|
197
|
+
position: "absolute",
|
|
198
|
+
top: 0,
|
|
199
|
+
left: 0,
|
|
200
|
+
width: "100%",
|
|
201
|
+
height: "100%",
|
|
202
|
+
objectFit: "cover",
|
|
203
|
+
borderRadius: "8px",
|
|
204
|
+
opacity: 0,
|
|
205
|
+
transition: "opacity 0.5s ease",
|
|
206
|
+
zIndex: 1
|
|
207
|
+
}
|
|
208
|
+
})]
|
|
182
209
|
})
|
|
183
210
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
184
211
|
sx: {
|
|
@@ -111,7 +111,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
111
111
|
position: "relative",
|
|
112
112
|
"@media print": {
|
|
113
113
|
display: "none"
|
|
114
|
-
}
|
|
114
|
+
},
|
|
115
|
+
paddingBottom: "60px"
|
|
115
116
|
},
|
|
116
117
|
moreOptions: {
|
|
117
118
|
"@media print": {
|
|
@@ -1204,7 +1205,6 @@ function Classroom({
|
|
|
1204
1205
|
onClick: () => {
|
|
1205
1206
|
setIsCreateMeetingDialogOpen(true);
|
|
1206
1207
|
},
|
|
1207
|
-
title: t("schedule_discussion"),
|
|
1208
1208
|
tabIndex: tabs.findIndex(tab => tab.id === "Discuss"),
|
|
1209
1209
|
variant: "extended",
|
|
1210
1210
|
disabled: !members || members.length === 0
|
|
@@ -1223,7 +1223,6 @@ function Classroom({
|
|
|
1223
1223
|
onClick: () => {
|
|
1224
1224
|
handleCreateAssignment();
|
|
1225
1225
|
},
|
|
1226
|
-
title: t("create_assignment"),
|
|
1227
1226
|
tabIndex: tabs.findIndex(tab => tab.id === "Assignments"),
|
|
1228
1227
|
variant: "extended",
|
|
1229
1228
|
disabled: !members || members.length === 0 || !courses || courses.length === 0
|
|
@@ -1231,12 +1230,16 @@ function Classroom({
|
|
|
1231
1230
|
const fabs = [[{
|
|
1232
1231
|
color: "primary",
|
|
1233
1232
|
className: null,
|
|
1234
|
-
icon: /*#__PURE__*/_jsx(Add, {
|
|
1233
|
+
icon: /*#__PURE__*/_jsx(Add, {
|
|
1234
|
+
sx: {
|
|
1235
|
+
mr: 1
|
|
1236
|
+
}
|
|
1237
|
+
}),
|
|
1235
1238
|
id: "add-courses-fab",
|
|
1239
|
+
buttonText: t("add_courses"),
|
|
1236
1240
|
onClick: handleOpenCoursesModal,
|
|
1237
|
-
title: t("add_courses"),
|
|
1238
1241
|
tabIndex: tabs.findIndex(tab => tab.id === "Courses"),
|
|
1239
|
-
variant: "
|
|
1242
|
+
variant: "extended"
|
|
1240
1243
|
}, vchatFab, assignmentsFab]];
|
|
1241
1244
|
const initialTabValue = useMemo(() => {
|
|
1242
1245
|
if (window.location.hash) {
|