@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.
@@ -2,7 +2,6 @@ import { ImageProps } from "../ProblemSelectNode";
2
2
  export interface SelectBoxViewProps {
3
3
  index: number;
4
4
  isSelected: boolean;
5
- showQuizSolution: boolean;
6
5
  isAnswer?: boolean;
7
6
  image?: ImageProps | null;
8
7
  text: string;
@@ -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, showQuizSolution, isAnswer, image, text, onClick, } = props;
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: showQuizSolution &&
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, showQuizSolution: showQuizSolution, isAnswer: selection.isAnswer, isSelected: selected.includes(selection.value), image: selection.show.image, text: selection.show.text, onClick: freezeProblemNode
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.46.2",
3
+ "version": "1.46.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,