@team-monolith/cds 1.46.2 → 1.46.3
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.
|
@@ -19,7 +19,7 @@ const TYPE_TO_INDEX_ICON = (type) => ({
|
|
|
19
19
|
` })),
|
|
20
20
|
})[type];
|
|
21
21
|
export function SelectBoxView(props) {
|
|
22
|
-
const { index, isSelected,
|
|
22
|
+
const { index, isSelected, isAnswer, image, text, onClick } = props;
|
|
23
23
|
const selectBoxType = isSelected
|
|
24
24
|
? isAnswer === undefined
|
|
25
25
|
? "primary"
|
|
@@ -31,8 +31,7 @@ export function SelectBoxView(props) {
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
`, type: selectBoxType, index: selectBoxType ? TYPE_TO_INDEX_ICON(selectBoxType) : index, image: image, text: text, onClick: onClick,
|
|
33
33
|
// 선택되지 않았으나 정답일 때 정답 태그를 표시
|
|
34
|
-
endIcon:
|
|
35
|
-
isAnswer &&
|
|
34
|
+
endIcon: isAnswer &&
|
|
36
35
|
!isSelected && (_jsx(Tag, { label: "\uC815\uB2F5", icon: _jsx(CheckboxCircleFillIcon, {}), color: "green", css: css `
|
|
37
36
|
span {
|
|
38
37
|
font-weight: 700;
|
|
@@ -35,7 +35,7 @@ export function SelectComponent(props) {
|
|
|
35
35
|
return (_jsxs(_Fragment, { children: [hasMultipleAnswers && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
|
|
36
36
|
width: 14px;
|
|
37
37
|
height: 14px;
|
|
38
|
-
` }), "\uC9C8\uBB38\uC5D0 \uD574\uB2F9\uD558\uB294 \uB2F5\uC744 \uBAA8\uB450 \uACE0\uB974\uB294 \uBB38\uC81C\uC785\uB2C8\uB2E4."] })), selections.map((selection, index) => (_jsx(SelectBoxView, { index: index + 1,
|
|
38
|
+
` }), "\uC9C8\uBB38\uC5D0 \uD574\uB2F9\uD558\uB294 \uB2F5\uC744 \uBAA8\uB450 \uACE0\uB974\uB294 \uBB38\uC81C\uC785\uB2C8\uB2E4."] })), selections.map((selection, index) => (_jsx(SelectBoxView, { index: index + 1, isAnswer: showQuizSolution ? selection.isAnswer : undefined, isSelected: selected.includes(selection.value), image: selection.show.image, text: selection.show.text, onClick: freezeProblemNode
|
|
39
39
|
? undefined
|
|
40
40
|
: () => {
|
|
41
41
|
const isSelected = selected.includes(selection.value);
|