@superbuilders/incept-renderer 0.1.7 → 0.1.8
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/components/index.js
CHANGED
|
@@ -615,18 +615,18 @@ function ChoiceInteractionRenderer({
|
|
|
615
615
|
if (!isImagesOnly) return "space-y-2";
|
|
616
616
|
switch (choiceCount) {
|
|
617
617
|
case 4:
|
|
618
|
-
return "
|
|
618
|
+
return "qti-image-grid-4";
|
|
619
619
|
case 3:
|
|
620
|
-
return "grid
|
|
620
|
+
return "qti-image-grid-3";
|
|
621
621
|
case 2:
|
|
622
|
-
return "
|
|
622
|
+
return "qti-image-grid-2";
|
|
623
623
|
default:
|
|
624
|
-
return "
|
|
624
|
+
return "qti-image-grid-many";
|
|
625
625
|
}
|
|
626
626
|
}, [isImagesOnly, choiceCount]);
|
|
627
627
|
const imageCardClass = React3.useMemo(() => {
|
|
628
628
|
if (!isImagesOnly) return "";
|
|
629
|
-
return choiceCount === 2 ? "
|
|
629
|
+
return choiceCount === 2 ? "qti-image-card qti-image-card-large" : "qti-image-card";
|
|
630
630
|
}, [isImagesOnly, choiceCount]);
|
|
631
631
|
const handleSingleChoice = (value) => {
|
|
632
632
|
if (!disabled && onAnswerSelect) {
|