@nualang/nualang-ui-components 0.1.1258 → 0.1.1260

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.
@@ -47,6 +47,7 @@ function CardVisibility({
47
47
  icon: icon,
48
48
  label: t(visibility),
49
49
  sx: theme => ({
50
+ border: "1px solid",
50
51
  position: "absolute",
51
52
  bottom: "8px",
52
53
  right: "8px",
@@ -66,6 +67,7 @@ function CardVisibility({
66
67
  }),
67
68
  label: t("hidden"),
68
69
  sx: theme => ({
70
+ border: "1px solid",
69
71
  position: "absolute",
70
72
  bottom: "8px",
71
73
  right: "108px",
@@ -73,10 +75,8 @@ function CardVisibility({
73
75
  textTransform: "capitalize",
74
76
  pointerEvents: "none",
75
77
  boxShadow: theme.shadows[1],
76
- backgroundColor: theme.palette.mode === "light" ? _colors.blue[700] : _colors.blue[500],
77
- ...(theme.palette.mode === "light" && {
78
- color: "white"
79
- })
78
+ backgroundColor: theme.palette.background.paper,
79
+ color: theme.palette.text.secondary
80
80
  })
81
81
  })]
82
82
  });
@@ -125,15 +125,6 @@ function OverflowMenu({
125
125
  })
126
126
  })
127
127
  })
128
- }), handleRemoveCourse && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
129
- onClick: () => handleRemoveCourse(courseId),
130
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardElements.CardMenuIcon, {
131
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close.default, {
132
- fontSize: "small"
133
- })
134
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
135
- children: t("remove_course")
136
- })]
137
128
  }), handleHideCourse && !hiddenCourses.includes(courseId) && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
138
129
  onClick: () => handleHideCourse(courseId),
139
130
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardElements.CardMenuIcon, {
@@ -141,7 +132,7 @@ function OverflowMenu({
141
132
  fontSize: "small"
142
133
  })
143
134
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
144
- children: t("hide_course")
135
+ children: t("hide_from_students")
145
136
  })]
146
137
  }), handleUnhideCourse && hiddenCourses.includes(courseId) && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
147
138
  onClick: () => handleUnhideCourse(courseId),
@@ -150,7 +141,16 @@ function OverflowMenu({
150
141
  fontSize: "small"
151
142
  })
152
143
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
153
- children: t("show_course")
144
+ children: t("show_to_students")
145
+ })]
146
+ }), handleRemoveCourse && !isClassroomArchived && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.MenuItem, {
147
+ onClick: () => handleRemoveCourse(courseId),
148
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CardElements.CardMenuIcon, {
149
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close.default, {
150
+ fontSize: "small"
151
+ })
152
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
153
+ children: t("remove_course")
154
154
  })]
155
155
  })]
156
156
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nualang/nualang-ui-components",
3
- "version": "0.1.1258",
3
+ "version": "0.1.1260",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",