catchup-library-web 1.2.3 → 1.2.4
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/src/components/activities/material-content/MCMAActivityMaterialContent.tsx +2 -2
- package/src/components/activities/material-content/MCSAActivityMaterialContent.tsx +2 -2
- package/src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx +2 -2
package/dist/index.js
CHANGED
|
@@ -5186,7 +5186,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5186
5186
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
5187
5187
|
"div",
|
|
5188
5188
|
{
|
|
5189
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5189
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5190
5190
|
onClick: () => {
|
|
5191
5191
|
onChange(answer, materialKey, materialSubKey);
|
|
5192
5192
|
},
|
|
@@ -5336,7 +5336,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5336
5336
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
5337
5337
|
"div",
|
|
5338
5338
|
{
|
|
5339
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5339
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5340
5340
|
onClick: () => {
|
|
5341
5341
|
onChange(answer, materialKey, materialSubKey);
|
|
5342
5342
|
},
|
|
@@ -5879,7 +5879,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5879
5879
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
5880
5880
|
"div",
|
|
5881
5881
|
{
|
|
5882
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5882
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5883
5883
|
children: [
|
|
5884
5884
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5885
5885
|
shuffleOption
|
package/dist/index.mjs
CHANGED
|
@@ -5007,7 +5007,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5007
5007
|
return /* @__PURE__ */ jsxs20(
|
|
5008
5008
|
"div",
|
|
5009
5009
|
{
|
|
5010
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5010
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5011
5011
|
onClick: () => {
|
|
5012
5012
|
onChange(answer, materialKey, materialSubKey);
|
|
5013
5013
|
},
|
|
@@ -5157,7 +5157,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5157
5157
|
return /* @__PURE__ */ jsxs22(
|
|
5158
5158
|
"div",
|
|
5159
5159
|
{
|
|
5160
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5160
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5161
5161
|
onClick: () => {
|
|
5162
5162
|
onChange(answer, materialKey, materialSubKey);
|
|
5163
5163
|
},
|
|
@@ -5700,7 +5700,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5700
5700
|
return /* @__PURE__ */ jsxs28(
|
|
5701
5701
|
"div",
|
|
5702
5702
|
{
|
|
5703
|
-
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
|
|
5703
|
+
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
5704
5704
|
children: [
|
|
5705
5705
|
/* @__PURE__ */ jsx37("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx37("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5706
5706
|
shuffleOption
|
package/package.json
CHANGED
|
@@ -78,9 +78,9 @@ const MCMAActivityMaterialContent = ({
|
|
|
78
78
|
className={`w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${
|
|
79
79
|
(learnerAnswerState === "EMPTY" && foundIndex !== -1) ||
|
|
80
80
|
learnerAnswerState === "CORRECT"
|
|
81
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
81
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
82
82
|
: learnerAnswerState === "INCORRECT"
|
|
83
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
83
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
84
84
|
: ""
|
|
85
85
|
}`}
|
|
86
86
|
onClick={() => {
|
|
@@ -77,9 +77,9 @@ const MCSAActivityMaterialContent = ({
|
|
|
77
77
|
(learnerAnswerState === "EMPTY" &&
|
|
78
78
|
materialSubKey === correctAnswer) ||
|
|
79
79
|
learnerAnswerState === "CORRECT"
|
|
80
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
80
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
81
81
|
: learnerAnswerState === "INCORRECT"
|
|
82
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
82
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
83
83
|
: ""
|
|
84
84
|
}`}
|
|
85
85
|
onClick={() => {
|
|
@@ -111,9 +111,9 @@ const TrueFalseActivityMaterialContent = ({
|
|
|
111
111
|
key={index}
|
|
112
112
|
className={`w-full flex flex-row items-center justify-center cursor-pointer my-2 ${
|
|
113
113
|
learnerAnswerState === "CORRECT"
|
|
114
|
-
? "border-2 border-catchup-green rounded-catchup-xlarge"
|
|
114
|
+
? "border-2 border-catchup-green rounded-catchup-xlarge p-2"
|
|
115
115
|
: learnerAnswerState === "INCORRECT"
|
|
116
|
-
? "border-2 border-catchup-red rounded-catchup-xlarge"
|
|
116
|
+
? "border-2 border-catchup-red rounded-catchup-xlarge p-2"
|
|
117
117
|
: ""
|
|
118
118
|
}`}
|
|
119
119
|
>
|