@nualang/nualang-ui-components 0.1.1406 → 0.1.1408

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.
@@ -13,6 +13,8 @@ import HearingIcon from "@mui/icons-material/Hearing";
13
13
  import SwapHorizIcon from "@mui/icons-material/SwapHoriz";
14
14
  import RecordVoiceOverIcon from "@mui/icons-material/RecordVoiceOver";
15
15
  import ExtensionIcon from "@mui/icons-material/Extension";
16
+ import EditNoteIcon from "@mui/icons-material/EditNote";
17
+ import HeadphonesIcon from "@mui/icons-material/Headphones";
16
18
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
17
19
  const useStyles = makeStyles()(theme => ({
18
20
  listItemSelected: {
@@ -361,10 +363,14 @@ function PhraseList({
361
363
  children: /*#__PURE__*/_jsx(RecordVoiceOverIcon, {})
362
364
  }), game.name.toLowerCase() === "meaning" && /*#__PURE__*/_jsx(ListItemIcon, {
363
365
  children: /*#__PURE__*/_jsx(ExtensionIcon, {})
364
- }), game.name.toLowerCase() === "meaning-listen-and-speak" && /*#__PURE__*/_jsx(ListItemIcon, {
365
- children: /*#__PURE__*/_jsx(ExtensionIcon, {})
366
+ }), game.name.toLowerCase() === "meaning-listen-and-speak" && /*#__PURE__*/_jsxs(ListItemIcon, {
367
+ children: [/*#__PURE__*/_jsx(HeadphonesIcon, {
368
+ fontSize: "small"
369
+ }), /*#__PURE__*/_jsx(RecordVoiceOverIcon, {
370
+ fontSize: "small"
371
+ })]
366
372
  }), game.name.toLowerCase() === "meaning-read-and-write" && /*#__PURE__*/_jsx(ListItemIcon, {
367
- children: /*#__PURE__*/_jsx(ExtensionIcon, {})
373
+ children: /*#__PURE__*/_jsx(EditNoteIcon, {})
368
374
  }), /*#__PURE__*/_jsx(ListItemText, {
369
375
  primary: t(game.name),
370
376
  secondary: t(game.description)
@@ -168,6 +168,10 @@ export default function CreateAssignmentDialog({
168
168
  setMembers(formattedMembers);
169
169
  };
170
170
  useEffect(() => {
171
+ if (!uniqueClassroomMembers.length) {
172
+ setMembers([]);
173
+ return;
174
+ }
171
175
  classroomMembers(uniqueClassroomMembers);
172
176
  }, [uniqueClassroomMembers]);
173
177
  useEffect(() => {
@@ -5,12 +5,15 @@ import { makeStyles } from "tss-react/mui";
5
5
  import MedalSelector from "../../../Misc/MedalSelector/MedalSelector";
6
6
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
7
7
  const NualaCelebratingContainer = styled("div")(() => ({
8
- display: "block",
8
+ display: "flex",
9
+ justifyContent: "flex-end",
10
+ alignItems: "flex-end",
9
11
  position: "absolute",
10
- top: -160,
12
+ bottom: "100%",
11
13
  right: 16,
12
- bottom: 0,
13
- zIndex: 1300,
14
+ width: 420,
15
+ height: 320,
16
+ overflow: "hidden",
14
17
  lineHeight: 0
15
18
  }));
16
19
  const useStyles = makeStyles()(theme => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1406",
3
+ "version": "0.1.1408",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "files": [