@team-monolith/cds 1.125.0 → 1.125.1

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.
Files changed (193) hide show
  1. package/@types/emotion.d.ts +194 -194
  2. package/README.md +37 -37
  3. package/dist/CdsProvider.js +4 -4
  4. package/dist/components/AlertDialog/AlertDialog.js +54 -54
  5. package/dist/components/AlertDialog/AlertDialogActions.js +7 -7
  6. package/dist/components/AlertDialog/AlertDialogContent.js +8 -8
  7. package/dist/components/AlertDialog/AlertDialogTitle.js +34 -34
  8. package/dist/components/AnimatedButton.js +32 -32
  9. package/dist/components/Banner.js +45 -45
  10. package/dist/components/Book/Book.js +174 -174
  11. package/dist/components/Button.js +179 -179
  12. package/dist/components/CheckboxInput.js +148 -148
  13. package/dist/components/FileTypeAlertDialog.js +4 -4
  14. package/dist/components/Input.js +53 -53
  15. package/dist/components/InputBase.js +72 -72
  16. package/dist/components/Modal.js +4 -4
  17. package/dist/components/OverflowTooltip.js +4 -4
  18. package/dist/components/Pagination.js +56 -56
  19. package/dist/components/PinInput.js +64 -64
  20. package/dist/components/Popover.js +27 -27
  21. package/dist/components/RadioInput.js +73 -73
  22. package/dist/components/Slider.js +58 -58
  23. package/dist/components/SquareButton.js +109 -109
  24. package/dist/components/Switch.js +69 -69
  25. package/dist/components/SwitchButton.js +107 -107
  26. package/dist/components/Tag.js +72 -72
  27. package/dist/components/Tooltip.js +19 -19
  28. package/dist/foundation/breakpoints.js +16 -16
  29. package/dist/foundation/typography.js +186 -186
  30. package/dist/icons/custom/colored/Microsoft.d.ts +5 -0
  31. package/dist/icons/custom/colored/Microsoft.js +7 -0
  32. package/dist/icons/custom/colored/ai-helper.svg +4 -4
  33. package/dist/icons/custom/colored/ai-quiz-color.svg +20 -20
  34. package/dist/icons/custom/colored/ai-socroom-color.svg +14 -14
  35. package/dist/icons/custom/colored/badge-color.svg +4 -4
  36. package/dist/icons/custom/colored/badge-gold.svg +11 -11
  37. package/dist/icons/custom/colored/badge-green.svg +11 -11
  38. package/dist/icons/custom/colored/badge-silver.svg +11 -11
  39. package/dist/icons/custom/colored/basic-plus.svg +31 -31
  40. package/dist/icons/custom/colored/basic.svg +3 -3
  41. package/dist/icons/custom/colored/board-color.svg +5 -5
  42. package/dist/icons/custom/colored/cast-cloudy-color.svg +6 -6
  43. package/dist/icons/custom/colored/cast-partly-color.svg +7 -7
  44. package/dist/icons/custom/colored/cast-rainbow-color.svg +13 -13
  45. package/dist/icons/custom/colored/cast-sunny-color.svg +4 -4
  46. package/dist/icons/custom/colored/clap-bronze.svg +8 -8
  47. package/dist/icons/custom/colored/clap-gold.svg +8 -8
  48. package/dist/icons/custom/colored/clap-silver.svg +8 -8
  49. package/dist/icons/custom/colored/class.svg +13 -13
  50. package/dist/icons/custom/colored/codap-color.svg +13 -13
  51. package/dist/icons/custom/colored/ebook-color.svg +5 -5
  52. package/dist/icons/custom/colored/embedded-color.svg +38 -38
  53. package/dist/icons/custom/colored/emo-clap-color.svg +252 -252
  54. package/dist/icons/custom/colored/emo-good-color.svg +68 -68
  55. package/dist/icons/custom/colored/emo-great-color.svg +67 -67
  56. package/dist/icons/custom/colored/emo-heart-color.svg +239 -239
  57. package/dist/icons/custom/colored/emo-hundred-color.svg +194 -194
  58. package/dist/icons/custom/colored/emo-neutral-color.svg +76 -76
  59. package/dist/icons/custom/colored/emo-stars-color.svg +121 -121
  60. package/dist/icons/custom/colored/emo-thumbup-color.svg +238 -238
  61. package/dist/icons/custom/colored/empty.svg +1 -1
  62. package/dist/icons/custom/colored/entry-color.svg +4 -4
  63. package/dist/icons/custom/colored/filename-all-color.svg +4 -4
  64. package/dist/icons/custom/colored/filename-doc-color.svg +5 -5
  65. package/dist/icons/custom/colored/filename-hwp-color.svg +6 -6
  66. package/dist/icons/custom/colored/filename-img-color.svg +6 -6
  67. package/dist/icons/custom/colored/filename-mp4-color.svg +5 -5
  68. package/dist/icons/custom/colored/filename-pdf-color.svg +12 -12
  69. package/dist/icons/custom/colored/filename-ppt-color.svg +6 -6
  70. package/dist/icons/custom/colored/filename-xls-color.svg +5 -5
  71. package/dist/icons/custom/colored/filename-zip-color.svg +5 -5
  72. package/dist/icons/custom/colored/google.svg +13 -13
  73. package/dist/icons/custom/colored/hand-fill.svg +4 -4
  74. package/dist/icons/custom/colored/index.d.ts +1 -0
  75. package/dist/icons/custom/colored/index.js +1 -0
  76. package/dist/icons/custom/colored/judge-color.svg +6 -6
  77. package/dist/icons/custom/colored/makecode-color.svg +4 -4
  78. package/dist/icons/custom/colored/master.svg +12 -12
  79. package/dist/icons/custom/colored/material.svg +6 -6
  80. package/dist/icons/custom/colored/medal-bronze.svg +9 -9
  81. package/dist/icons/custom/colored/medal-gold.svg +9 -9
  82. package/dist/icons/custom/colored/medal-silver.svg +9 -9
  83. package/dist/icons/custom/colored/microsoft.svg +6 -0
  84. package/dist/icons/custom/colored/pro.svg +4 -4
  85. package/dist/icons/custom/colored/problem.svg +7 -7
  86. package/dist/icons/custom/colored/python-color.svg +4 -4
  87. package/dist/icons/custom/colored/quiz-color.svg +12 -12
  88. package/dist/icons/custom/colored/resource-color.svg +13 -13
  89. package/dist/icons/custom/colored/scratch-color.svg +6 -6
  90. package/dist/icons/custom/colored/type-helper.svg +9 -9
  91. package/dist/icons/custom/colored/whale.svg +7 -7
  92. package/dist/icons/custom/colored/worksheet-color.svg +5 -5
  93. package/dist/icons/custom/default/ai-quiz.svg +8 -8
  94. package/dist/icons/custom/default/ai-socroom.svg +13 -13
  95. package/dist/icons/custom/default/badge.svg +4 -4
  96. package/dist/icons/custom/default/board.svg +5 -5
  97. package/dist/icons/custom/default/cast-cloudy.svg +3 -3
  98. package/dist/icons/custom/default/cast-partly.svg +4 -4
  99. package/dist/icons/custom/default/cast-rainbow.svg +12 -12
  100. package/dist/icons/custom/default/cast-sunny.svg +3 -3
  101. package/dist/icons/custom/default/codap.svg +11 -11
  102. package/dist/icons/custom/default/ebook.svg +3 -3
  103. package/dist/icons/custom/default/embedded.svg +4 -4
  104. package/dist/icons/custom/default/emo-clap.svg +6 -6
  105. package/dist/icons/custom/default/emo-good.svg +12 -12
  106. package/dist/icons/custom/default/emo-great.svg +12 -12
  107. package/dist/icons/custom/default/emo-heart.svg +5 -5
  108. package/dist/icons/custom/default/emo-hundred.svg +3 -3
  109. package/dist/icons/custom/default/emo-neutral.svg +14 -14
  110. package/dist/icons/custom/default/emo-stars.svg +14 -14
  111. package/dist/icons/custom/default/emo-thumbup.svg +3 -3
  112. package/dist/icons/custom/default/entry.svg +4 -4
  113. package/dist/icons/custom/default/fab.svg +10 -10
  114. package/dist/icons/custom/default/grant-alt.svg +5 -5
  115. package/dist/icons/custom/default/grant.svg +4 -4
  116. package/dist/icons/custom/default/hand-line.svg +3 -3
  117. package/dist/icons/custom/default/judge.svg +3 -3
  118. package/dist/icons/custom/default/makecode.svg +5 -5
  119. package/dist/icons/custom/default/pdf.svg +3 -3
  120. package/dist/icons/custom/default/python.svg +7 -7
  121. package/dist/icons/custom/default/quiz.svg +4 -4
  122. package/dist/icons/custom/default/resource.svg +11 -11
  123. package/dist/icons/custom/default/scratch.svg +3 -3
  124. package/dist/icons/custom/default/scroll-alt.svg +5 -5
  125. package/dist/icons/custom/default/scroll-fill.svg +4 -4
  126. package/dist/icons/custom/default/scroll-line.svg +5 -5
  127. package/dist/icons/custom/default/symbol.svg +4 -4
  128. package/dist/icons/custom/default/worksheet.svg +4 -4
  129. package/dist/icons/custom/svgrColoredTemplate.js +26 -26
  130. package/dist/icons/custom/svgrDefaultTemplate.js +26 -26
  131. package/dist/patterns/Accordion.js +20 -20
  132. package/dist/patterns/Dropdown/DropdownItem/DropdownItem.js +58 -58
  133. package/dist/patterns/Dropdown/DropdownMenu/DropdownMenu.js +27 -27
  134. package/dist/patterns/Dropdown/DropdownMenu/style.js +19 -19
  135. package/dist/patterns/LexicalEditor/Plugins.js +36 -36
  136. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +23 -23
  137. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +4 -4
  138. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +15 -15
  139. package/dist/patterns/LexicalEditor/components/InsertVideoDialog/InsertVideoDialog.js +17 -17
  140. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +2 -2
  141. package/dist/patterns/LexicalEditor/hr.svg +3 -3
  142. package/dist/patterns/LexicalEditor/nodes/FileNode/FileComponent.js +44 -44
  143. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +25 -25
  144. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +8 -8
  145. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageResizer.js +60 -60
  146. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +19 -19
  147. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SegmentedInput.js +49 -49
  148. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +7 -7
  149. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +73 -73
  150. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +5 -5
  151. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/TextInput.js +7 -7
  152. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxComponent.js +69 -69
  153. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxEdit.js +3 -3
  154. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  155. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  156. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +54 -54
  157. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +61 -61
  158. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/Evaluation.js +75 -75
  159. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +17 -17
  160. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +7 -7
  161. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +28 -28
  162. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +52 -52
  163. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +7 -7
  164. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +25 -25
  165. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +53 -53
  166. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxComponent.js +54 -54
  167. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +5 -5
  168. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +21 -21
  169. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +42 -42
  170. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +71 -71
  171. package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +7 -7
  172. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdder.js +51 -51
  173. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +11 -11
  174. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/menu.svg +7 -7
  175. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/plus.svg +2 -2
  176. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuItem.js +32 -32
  177. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuList.js +32 -32
  178. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +12 -12
  179. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/componentPickerOptionUtils.js +2 -2
  180. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +49 -49
  181. package/dist/patterns/LexicalEditor/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatPopup.js +36 -36
  182. package/dist/patterns/LexicalEditor/plugins/ParagraphPlaceholderPlugin/index.js +7 -7
  183. package/dist/patterns/LexicalEditor/theme.js +243 -243
  184. package/dist/patterns/SegmentedControl/SegmentedControlButton.js +10 -10
  185. package/dist/patterns/SegmentedControl/SegmentedControlGroup.js +8 -8
  186. package/dist/patterns/SegmentedControl/SegmentedControlSquareButton.js +2 -2
  187. package/dist/patterns/Tabs.js +43 -43
  188. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +40 -40
  189. package/dist/patterns/ToggleButtonGroup/ToggleButtonGroup.js +11 -11
  190. package/dist/utils/hover.js +12 -12
  191. package/dist/utils/reset.js +19 -19
  192. package/dist/utils/visuallyHidden.js +10 -10
  193. package/package.json +109 -109
@@ -26,16 +26,16 @@ export function SelectComponent(props) {
26
26
  selections.filter((s) => "isAnswer" in s && s.isAnswer).length > 1);
27
27
  // view
28
28
  if (!isEditable) {
29
- return (_jsxs("fieldset", { css: css `
30
- display: flex;
31
- flex-direction: column;
32
- gap: 4px;
33
- border: none;
34
- margin: 0;
35
- padding: 0;
36
- `, children: [multipleSelectionsEnabled && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
37
- width: 14px;
38
- height: 14px;
29
+ return (_jsxs("fieldset", { css: css `
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 4px;
33
+ border: none;
34
+ margin: 0;
35
+ padding: 0;
36
+ `, children: [multipleSelectionsEnabled && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
37
+ width: 14px;
38
+ height: 14px;
39
39
  ` }), getTexts(t, "multipleChoicesProblem")] })), selections.map((selection, index) => (_jsx(SelectBoxView, { multipleSelectionsEnabled: multipleSelectionsEnabled, index: index + 1, isAnswer: showQuizSolution && "isAnswer" in selection
40
40
  ? selection.isAnswer
41
41
  : undefined, isSelected: selected.includes(selection.value), image: selection.show.image, text: selection.show.text, onClick: freezeProblemNode
@@ -68,13 +68,13 @@ export function SelectComponent(props) {
68
68
  } }, index)))] }));
69
69
  }
70
70
  // 교사 edit view
71
- return (_jsxs(_Fragment, { children: [_jsxs("div", { css: css `
72
- display: flex;
73
- gap: 4px;
74
- `, children: [_jsx("div", { css: css `
75
- display: flex;
76
- flex-direction: column;
77
- gap: 4px;
71
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { css: css `
72
+ display: flex;
73
+ gap: 4px;
74
+ `, children: [_jsx("div", { css: css `
75
+ display: flex;
76
+ flex-direction: column;
77
+ gap: 4px;
78
78
  `, children: selections.map((selection, index) => (_jsx(SelectBoxEdit, { index: index + 1, isAnswer: "isAnswer" in selection && selection.isAnswer, image: selection.show.image, text: selection.show.text === "" && selection.show.image === null
79
79
  ? t("{{index}}번 선택지", {
80
80
  index: index + 1,
@@ -84,15 +84,15 @@ export function SelectComponent(props) {
84
84
  setSettingOpen(true);
85
85
  }, "aria-label": t("선택지 설정", { context: "렉시컬 선택지 도구" }) })] }), settingOpen && (_jsx(SettingForm, { selections: selections, nodeKey: nodeKey, onClose: () => setSettingOpen(false) }))] }));
86
86
  }
87
- const Alert = styled.div(({ theme }) => css `
88
- display: flex;
89
- gap: 4px;
90
- margin-bottom: 12px;
91
- color: ${theme.color.foreground.neutralBaseDisabled};
92
- /* Default/Label/12px-Md */
93
- font-family: ${theme.fontFamily.ui};
94
- font-size: 12px;
95
- font-style: normal;
96
- font-weight: 500;
97
- line-height: 16px; /* 133.333% */
87
+ const Alert = styled.div(({ theme }) => css `
88
+ display: flex;
89
+ gap: 4px;
90
+ margin-bottom: 12px;
91
+ color: ${theme.color.foreground.neutralBaseDisabled};
92
+ /* Default/Label/12px-Md */
93
+ font-family: ${theme.fontFamily.ui};
94
+ font-size: 12px;
95
+ font-style: normal;
96
+ font-weight: 500;
97
+ line-height: 16px; /* 133.333% */
98
98
  `);
@@ -21,11 +21,11 @@ export function FormSelection(props) {
21
21
  name: `selections.${index}`,
22
22
  rules,
23
23
  });
24
- return (_jsxs(Container, { children: [_jsx(Index, { children: index + 1 }), _jsxs("div", { css: css `
25
- display: flex;
26
- flex: 1;
27
- flex-direction: column;
28
- gap: 4px;
24
+ return (_jsxs(Container, { children: [_jsx(Index, { children: index + 1 }), _jsxs("div", { css: css `
25
+ display: flex;
26
+ flex: 1;
27
+ flex-direction: column;
28
+ gap: 4px;
29
29
  `, children: [_jsx(InsertImageDialog, { title: value.show.image
30
30
  ? t("이미지 바꾸기", { context: "제목, 이미지 삽입 다이얼로그" })
31
31
  : t("이미지 삽입하기", {
@@ -34,12 +34,12 @@ export function FormSelection(props) {
34
34
  ? () => {
35
35
  onChange(Object.assign(Object.assign({}, value), { show: Object.assign(Object.assign({}, value.show), { image: null }) }));
36
36
  }
37
- : undefined }), value.show.image && (_jsx("img", { src: value.show.image.src, alt: value.show.image.altText, css: css `
38
- height: auto;
39
- // 이미지로 인해 좌우로 스크롤이 생기는 것을 방지
40
- max-width: min(400px, 100%);
41
- width: fit-content;
42
- border-radius: 6px;
37
+ : undefined }), value.show.image && (_jsx("img", { src: value.show.image.src, alt: value.show.image.altText, css: css `
38
+ height: auto;
39
+ // 이미지로 인해 좌우로 스크롤이 생기는 것을 방지
40
+ max-width: min(400px, 100%);
41
+ width: fit-content;
42
+ border-radius: 6px;
43
43
  `, draggable: "false" })), _jsx(Input, { size: "small", color: invalid
44
44
  ? "activeDanger"
45
45
  : inputFocused
@@ -54,13 +54,13 @@ export function FormSelection(props) {
54
54
  }, placeholder: t("{{index}}번 선택지", {
55
55
  index: index + 1,
56
56
  context: "렉시컬 선택지 도구",
57
- }), hintIcon: invalid ? _jsx(ErrorWarningFillIcon, {}) : undefined, hintText: error === null || error === void 0 ? void 0 : error.message, multiline: true, fullWidth: true, css: css `
58
- flex: 1;
59
- ` })] }), _jsxs("div", { css: css `
60
- display: flex;
61
- height: 36px;
62
- gap: 8px;
63
- align-items: center;
57
+ }), hintIcon: invalid ? _jsx(ErrorWarningFillIcon, {}) : undefined, hintText: error === null || error === void 0 ? void 0 : error.message, multiline: true, fullWidth: true, css: css `
58
+ flex: 1;
59
+ ` })] }), _jsxs("div", { css: css `
60
+ display: flex;
61
+ height: 36px;
62
+ gap: 8px;
63
+ align-items: center;
64
64
  `, children: [_jsx(SquareButton, { color: "icon", size: "xsmall", icon: value.show.image ? _jsx(ImageEditFillIcon, {}) : _jsx(ImageAddFillIcon, {}), onClick: () => {
65
65
  setImageOpen(true);
66
66
  }, "aria-label": value.show.image
@@ -77,42 +77,42 @@ export function FormSelection(props) {
77
77
  context: "스퀘어버튼, 렉시컬 객관식 설정창",
78
78
  }) }))] })] }));
79
79
  }
80
- const Container = styled.div(({ theme }) => css `
81
- display: flex;
82
- padding: 4px 12px;
83
- gap: 8px;
84
- border-radius: 8px;
85
- background: ${theme.color.background.neutralAlt};
80
+ const Container = styled.div(({ theme }) => css `
81
+ display: flex;
82
+ padding: 4px 12px;
83
+ gap: 8px;
84
+ border-radius: 8px;
85
+ background: ${theme.color.background.neutralAlt};
86
86
  `);
87
- const Index = styled.div(({ theme }) => css `
88
- display: flex;
89
- box-sizing: border-box;
90
- width: 20px;
91
- height: 20px;
92
- padding: 4px;
93
- margin-top: 8px;
94
- justify-content: center;
95
- align-items: center;
96
- border-radius: 4px;
97
- border: 1px solid ${theme.color.background.neutralAltActive};
98
- background: ${theme.color.background.neutralBase};
99
- color: ${theme.color.foreground.neutralBaseDisabled};
100
- font-family: ${theme.fontFamily.ui};
101
- font-size: 14px;
102
- font-weight: 800;
103
- line-height: 16px;
87
+ const Index = styled.div(({ theme }) => css `
88
+ display: flex;
89
+ box-sizing: border-box;
90
+ width: 20px;
91
+ height: 20px;
92
+ padding: 4px;
93
+ margin-top: 8px;
94
+ justify-content: center;
95
+ align-items: center;
96
+ border-radius: 4px;
97
+ border: 1px solid ${theme.color.background.neutralAltActive};
98
+ background: ${theme.color.background.neutralBase};
99
+ color: ${theme.color.foreground.neutralBaseDisabled};
100
+ font-family: ${theme.fontFamily.ui};
101
+ font-size: 14px;
102
+ font-weight: 800;
103
+ line-height: 16px;
104
104
  `);
105
- const Answer = styled.label(({ theme }) => css `
106
- display: flex;
107
- align-items: center;
108
- padding-right: 4px;
109
- gap: 8px;
110
- color: ${theme.color.foreground.neutralBase};
111
- cursor: pointer;
112
- /* Default/Label/14px-Md */
113
- font-family: ${theme.fontFamily.ui};
114
- font-size: 14px;
115
- font-style: normal;
116
- font-weight: 500;
117
- line-height: 16px; /* 114.286% */
105
+ const Answer = styled.label(({ theme }) => css `
106
+ display: flex;
107
+ align-items: center;
108
+ padding-right: 4px;
109
+ gap: 8px;
110
+ color: ${theme.color.foreground.neutralBase};
111
+ cursor: pointer;
112
+ /* Default/Label/14px-Md */
113
+ font-family: ${theme.fontFamily.ui};
114
+ font-size: 14px;
115
+ font-style: normal;
116
+ font-weight: 500;
117
+ line-height: 16px; /* 114.286% */
118
118
  `);
@@ -62,9 +62,9 @@ export function SettingForm(props) {
62
62
  const answersCount = watch("selections").filter((selection) => selection.isAnswer).length;
63
63
  const hasMultipleAnswers = answersCount > 1;
64
64
  const hasAnswer = answersCount > 0;
65
- return (_jsxs(Form, { onSubmit: handleSubmit(onSettingSubmit), children: [_jsxs(Title, { children: [_jsx(ListRadioIcon, { css: css `
66
- width: 12px;
67
- height: 12px;
65
+ return (_jsxs(Form, { onSubmit: handleSubmit(onSettingSubmit), children: [_jsxs(Title, { children: [_jsx(ListRadioIcon, { css: css `
66
+ width: 12px;
67
+ height: 12px;
68
68
  ` }), t("객관식 입력 칸", { context: "렉시컬 도구 설정창" })] }), _jsxs(Content, { children: [_jsxs(FormArea, { children: [_jsx(Label, { children: t("답안") }), fields.map((field, index) => (_jsx(FormSelection, { index: index, control: control, rules: {
69
69
  validate: {
70
70
  validateRequired,
@@ -87,70 +87,70 @@ export function SettingForm(props) {
87
87
  },
88
88
  value: uid(),
89
89
  });
90
- }, disabled: fields.length >= 9 }), hasMultipleAnswers && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
91
- width: 14px;
92
- height: 14px;
90
+ }, disabled: fields.length >= 9 }), hasMultipleAnswers && (_jsxs(Alert, { children: [_jsx(AlarmWarningFillIcon, { css: css `
91
+ width: 14px;
92
+ height: 14px;
93
93
  ` }), t("정답이 여러 개인 문제에는 정답을 모두 선택해야 한다는 안내가 제공됩니다.")] }))] }), _jsxs(Buttons, { children: [_jsx(Button, { color: "grey", size: "xsmall", label: t("닫기", { context: "렉시컬 도구 설정창" }), onClick: onClose }), _jsx(Tooltip, { open: !hasAnswer && tooltipOpen, text: t("선택지 중 정답을 표시해주세요."), onOpen: () => setTooltipOpen(true), onClose: () => setTooltipOpen(false), placement: "top-end", children: _jsx("span", { children: _jsx(Button, { color: "primary", size: "xsmall", label: t("이대로 넣기", { context: "렉시컬 도구 설정창" }), type: "submit", disabled: !hasAnswer }) }) })] })] }));
94
94
  }
95
- const Form = styled.form(({ theme }) => css `
96
- display: flex;
97
- width: 620px;
98
- flex-direction: column;
99
- border-radius: 6px;
100
- border: 1px solid ${theme.color.background.neutralAltActive};
101
- background: ${theme.color.background.neutralBase};
102
- box-shadow: ${shadows.shadow08};
95
+ const Form = styled.form(({ theme }) => css `
96
+ display: flex;
97
+ width: 620px;
98
+ flex-direction: column;
99
+ border-radius: 6px;
100
+ border: 1px solid ${theme.color.background.neutralAltActive};
101
+ background: ${theme.color.background.neutralBase};
102
+ box-shadow: ${shadows.shadow08};
103
103
  `);
104
- const Title = styled.div(({ theme }) => css `
105
- display: flex;
106
- padding: 8px 12px;
107
- gap: 4px;
108
- align-items: center;
109
- color: ${theme.color.foreground.neutralBase};
110
- /* Default/Label/12px-Md */
111
- font-family: ${theme.fontFamily.ui};
112
- font-size: 12px;
113
- font-style: normal;
114
- font-weight: 500;
115
- line-height: 16px; /* 133.333% */
104
+ const Title = styled.div(({ theme }) => css `
105
+ display: flex;
106
+ padding: 8px 12px;
107
+ gap: 4px;
108
+ align-items: center;
109
+ color: ${theme.color.foreground.neutralBase};
110
+ /* Default/Label/12px-Md */
111
+ font-family: ${theme.fontFamily.ui};
112
+ font-size: 12px;
113
+ font-style: normal;
114
+ font-weight: 500;
115
+ line-height: 16px; /* 133.333% */
116
116
  `);
117
- const Content = styled.div(({ theme }) => css `
118
- display: flex;
119
- flex-direction: column;
120
- gap: 12px;
121
- padding: 12px;
122
- border-top: 1px solid ${theme.color.background.neutralAltActive};
123
- border-bottom: 1px solid ${theme.color.background.neutralAltActive};
117
+ const Content = styled.div(({ theme }) => css `
118
+ display: flex;
119
+ flex-direction: column;
120
+ gap: 12px;
121
+ padding: 12px;
122
+ border-top: 1px solid ${theme.color.background.neutralAltActive};
123
+ border-bottom: 1px solid ${theme.color.background.neutralAltActive};
124
124
  `);
125
- const FormArea = styled.div `
126
- display: flex;
127
- flex-direction: column;
128
- gap: 8px;
125
+ const FormArea = styled.div `
126
+ display: flex;
127
+ flex-direction: column;
128
+ gap: 8px;
129
129
  `;
130
- const Label = styled.div(({ theme }) => css `
131
- color: ${theme.color.foreground.neutralBaseDisabled};
132
- /* Default/Label/12px-Md */
133
- font-family: ${theme.fontFamily.ui};
134
- font-size: 12px;
135
- font-style: normal;
136
- font-weight: 500;
137
- line-height: 16px; /* 133.333% */
130
+ const Label = styled.div(({ theme }) => css `
131
+ color: ${theme.color.foreground.neutralBaseDisabled};
132
+ /* Default/Label/12px-Md */
133
+ font-family: ${theme.fontFamily.ui};
134
+ font-size: 12px;
135
+ font-style: normal;
136
+ font-weight: 500;
137
+ line-height: 16px; /* 133.333% */
138
138
  `);
139
- const Buttons = styled.div `
140
- display: flex;
141
- padding: 12px;
142
- justify-content: flex-end;
143
- align-items: center;
144
- gap: 8px;
139
+ const Buttons = styled.div `
140
+ display: flex;
141
+ padding: 12px;
142
+ justify-content: flex-end;
143
+ align-items: center;
144
+ gap: 8px;
145
145
  `;
146
- const Alert = styled.div(({ theme }) => css `
147
- display: flex;
148
- gap: 4px;
149
- color: ${theme.color.foreground.neutralBaseDisabled};
150
- /* Default/Label/12px-Md */
151
- font-family: ${theme.fontFamily.ui};
152
- font-size: 12px;
153
- font-style: normal;
154
- font-weight: 500;
155
- line-height: 16px; /* 133.333% */
146
+ const Alert = styled.div(({ theme }) => css `
147
+ display: flex;
148
+ gap: 4px;
149
+ color: ${theme.color.foreground.neutralBaseDisabled};
150
+ /* Default/Label/12px-Md */
151
+ font-family: ${theme.fontFamily.ui};
152
+ font-size: 12px;
153
+ font-style: normal;
154
+ font-weight: 500;
155
+ line-height: 16px; /* 133.333% */
156
156
  `);
@@ -18,86 +18,86 @@ export function Evaluation(props) {
18
18
  onChange(newEvaluations);
19
19
  } })] }, index)))] }));
20
20
  }
21
- const Container = styled.div(({ onClick }) => css `
22
- ${onClick && "cursor: pointer;"}
23
- display: flex;
24
- flex-direction: column;
25
- align-items: flex-start;
26
- align-self: stretch;
21
+ const Container = styled.div(({ onClick }) => css `
22
+ ${onClick && "cursor: pointer;"}
23
+ display: flex;
24
+ flex-direction: column;
25
+ align-items: flex-start;
26
+ align-self: stretch;
27
27
  `);
28
- const Header = styled.div(({ theme }) => css `
29
- border-bottom: 1px solid ${theme.color.background.neutralAltActive};
30
- display: flex;
31
- padding: 8px 0px;
32
- justify-content: flex-end;
33
- align-items: center;
34
- gap: 8px;
35
- align-self: stretch;
28
+ const Header = styled.div(({ theme }) => css `
29
+ border-bottom: 1px solid ${theme.color.background.neutralAltActive};
30
+ display: flex;
31
+ padding: 8px 0px;
32
+ justify-content: flex-end;
33
+ align-items: center;
34
+ gap: 8px;
35
+ align-self: stretch;
36
36
  `);
37
- const LabelArea = styled.div `
38
- display: flex;
39
- width: ${TOGGLE_BUTTON_GROUP_WIDTH}px;
40
- justify-content: space-between;
41
- align-items: flex-start;
37
+ const LabelArea = styled.div `
38
+ display: flex;
39
+ width: ${TOGGLE_BUTTON_GROUP_WIDTH}px;
40
+ justify-content: space-between;
41
+ align-items: flex-start;
42
42
  `;
43
- const Label = styled.span(({ theme }) => css `
44
- color: ${theme.color.foreground.neutralBaseDisabled};
45
- text-align: center;
46
- /* Default/Label/12px-Md */
47
- font-family: Pretendard;
48
- font-size: 12px;
49
- font-style: normal;
50
- font-weight: 500;
51
- line-height: 16px; /* 133.333% */
43
+ const Label = styled.span(({ theme }) => css `
44
+ color: ${theme.color.foreground.neutralBaseDisabled};
45
+ text-align: center;
46
+ /* Default/Label/12px-Md */
47
+ font-family: Pretendard;
48
+ font-size: 12px;
49
+ font-style: normal;
50
+ font-weight: 500;
51
+ line-height: 16px; /* 133.333% */
52
52
  `);
53
- const Item = styled.div(({ theme }) => css `
54
- display: flex;
55
- padding: 4px 0px;
56
- align-items: center;
57
- gap: 8px;
58
- align-self: stretch;
59
- border-bottom: 1px solid ${theme.color.background.neutralAltActive};
53
+ const Item = styled.div(({ theme }) => css `
54
+ display: flex;
55
+ padding: 4px 0px;
56
+ align-items: center;
57
+ gap: 8px;
58
+ align-self: stretch;
59
+ border-bottom: 1px solid ${theme.color.background.neutralAltActive};
60
60
  `);
61
- const Index = styled.div(({ theme }) => css `
62
- display: flex;
63
- width: 20px;
64
- height: 20px;
65
- padding: 4px;
66
-
67
- user-select: none; /* Standard syntax */
68
-
69
- border-radius: 4px;
70
- background: ${theme.color.background.neutralBase};
71
- border: 1px solid ${theme.color.background.neutralAltActive};
72
-
73
- justify-content: center;
74
- align-items: center;
75
-
76
- color: ${theme.color.foreground.neutralBaseDisabled};
77
- font-family: ${theme.fontFamily.ui};
78
- font-size: 14px;
79
- font-weight: 800;
80
- line-height: 16px;
61
+ const Index = styled.div(({ theme }) => css `
62
+ display: flex;
63
+ width: 20px;
64
+ height: 20px;
65
+ padding: 4px;
66
+
67
+ user-select: none; /* Standard syntax */
68
+
69
+ border-radius: 4px;
70
+ background: ${theme.color.background.neutralBase};
71
+ border: 1px solid ${theme.color.background.neutralAltActive};
72
+
73
+ justify-content: center;
74
+ align-items: center;
75
+
76
+ color: ${theme.color.foreground.neutralBaseDisabled};
77
+ font-family: ${theme.fontFamily.ui};
78
+ font-size: 14px;
79
+ font-weight: 800;
80
+ line-height: 16px;
81
81
  `);
82
- const Question = styled.div(({ theme }) => css `
83
- display: flex;
84
- padding: 4px 8px;
85
- flex-direction: column;
86
- justify-content: center;
87
- align-items: flex-start;
88
- gap: 8px;
89
- flex: 1 0 0;
90
- align-self: stretch;
91
-
92
- color: ${theme.color.foreground.neutralBase};
93
- /* Default/Paragraph/16px-Rg */
94
- font-family: ${theme.fontFamily.ui};
95
- font-size: 16px;
96
- font-style: normal;
97
- font-weight: 400;
98
- line-height: 24px; /* 150% */
82
+ const Question = styled.div(({ theme }) => css `
83
+ display: flex;
84
+ padding: 4px 8px;
85
+ flex-direction: column;
86
+ justify-content: center;
87
+ align-items: flex-start;
88
+ gap: 8px;
89
+ flex: 1 0 0;
90
+ align-self: stretch;
91
+
92
+ color: ${theme.color.foreground.neutralBase};
93
+ /* Default/Paragraph/16px-Rg */
94
+ font-family: ${theme.fontFamily.ui};
95
+ font-size: 16px;
96
+ font-style: normal;
97
+ font-weight: 400;
98
+ line-height: 24px; /* 150% */
99
99
  `);
100
- const StyledToggleButtonGroup = styled(ToggleButtonGroup) `
101
- flex: none;
102
- width: ${TOGGLE_BUTTON_GROUP_WIDTH}px;
100
+ const StyledToggleButtonGroup = styled(ToggleButtonGroup) `
101
+ flex: none;
102
+ width: ${TOGGLE_BUTTON_GROUP_WIDTH}px;
103
103
  `;
@@ -15,8 +15,8 @@ export function FormIconAndLabel(props) {
15
15
  return (_jsx(Controller, { control: control, name: "iconType", render: ({ field: { value, onChange } }) => {
16
16
  const { startIcon, title, icons } = getIconData(value, theme, t);
17
17
  return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { label: t("아이콘: {{title}}", { title }), size: "small", color: "grey", closeOnItemClick: true, bold: true, startIcon: startIcon, endIcon: _jsx(ArrowDownSFillIcon, {}), menuProps: {
18
- menuCss: css `
19
- width: 216px;
18
+ menuCss: css `
19
+ width: 216px;
20
20
  `,
21
21
  anchorOrigin: {
22
22
  vertical: "bottom",
@@ -34,20 +34,20 @@ export function FormIconAndLabel(props) {
34
34
  }) }), Array.from({ length: labelsLength }).map((_, index) => (_jsxs(LabelLine, { children: [_jsx(Icon, { children: icons[index].onIcon }), _jsx(FormLabel, { control: control, index: index })] }, index)))] }));
35
35
  } }));
36
36
  }
37
- const LabelLine = styled.div `
38
- display: flex;
39
- align-items: flex-start;
40
- gap: 4px;
41
- align-self: stretch;
37
+ const LabelLine = styled.div `
38
+ display: flex;
39
+ align-items: flex-start;
40
+ gap: 4px;
41
+ align-self: stretch;
42
42
  `;
43
- const Icon = styled.div(({ theme }) => css `
44
- display: flex;
45
- min-width: 36px;
46
- min-height: 36px;
47
- justify-content: center;
48
- align-items: center;
49
- gap: 10px;
50
-
51
- border-radius: 8px;
52
- border: 0.5px solid ${theme.color.background.neutralAltActive};
43
+ const Icon = styled.div(({ theme }) => css `
44
+ display: flex;
45
+ min-width: 36px;
46
+ min-height: 36px;
47
+ justify-content: center;
48
+ align-items: center;
49
+ gap: 10px;
50
+
51
+ border-radius: 8px;
52
+ border: 0.5px solid ${theme.color.background.neutralAltActive};
53
53
  `);
@@ -22,13 +22,13 @@ export function FormLabel(props) {
22
22
  });
23
23
  return (_jsx(FormInput, { control: control, name: `labels.${index}`, rules: labelRules, size: "small", endIcon: _jsx(Counter, { error: Boolean(error), children: value.length + "/" + labelRules.maxLength }), fullWidth: true }));
24
24
  }
25
- const Counter = styled.span(({ theme, error }) => css `
25
+ const Counter = styled.span(({ theme, error }) => css `
26
26
  color: ${error
27
27
  ? theme.color.foreground.dangerActive
28
- : theme.color.foreground.neutralBase};
29
- font-family: ${theme.fontFamily.ui};
30
- font-size: 14px;
31
- font-style: normal;
32
- font-weight: 700;
33
- line-height: 20px; /* 142.857% */
28
+ : theme.color.foreground.neutralBase};
29
+ font-family: ${theme.fontFamily.ui};
30
+ font-size: 14px;
31
+ font-style: normal;
32
+ font-weight: 700;
33
+ line-height: 20px; /* 142.857% */
34
34
  `);
@@ -15,33 +15,33 @@ export function FormQuestion(props) {
15
15
  context: "스퀘어버튼, 렉시컬 3단계 평가 입력칸 도구 설정창",
16
16
  }) }))] }));
17
17
  }
18
- const Item = styled.div(({ theme }) => css `
19
- display: flex;
20
- padding: 4px 12px;
21
- align-items: center;
22
- gap: 4px;
23
- align-self: stretch;
24
- border-radius: 8px;
25
- background: ${theme.color.background.neutralAlt};
18
+ const Item = styled.div(({ theme }) => css `
19
+ display: flex;
20
+ padding: 4px 12px;
21
+ align-items: center;
22
+ gap: 4px;
23
+ align-self: stretch;
24
+ border-radius: 8px;
25
+ background: ${theme.color.background.neutralAlt};
26
26
  `);
27
- const Index = styled.div(({ theme }) => css `
28
- display: flex;
29
- width: 20px;
30
- height: 20px;
31
- padding: 4px;
32
-
33
- user-select: none; /* Standard syntax */
34
-
35
- border-radius: 4px;
36
- background: ${theme.color.background.neutralBase};
37
- border: 1px solid ${theme.color.background.neutralAltActive};
38
-
39
- justify-content: center;
40
- align-items: center;
41
-
42
- color: ${theme.color.foreground.neutralBaseDisabled};
43
- font-family: ${theme.fontFamily.ui};
44
- font-size: 14px;
45
- font-weight: 800;
46
- line-height: 16px;
27
+ const Index = styled.div(({ theme }) => css `
28
+ display: flex;
29
+ width: 20px;
30
+ height: 20px;
31
+ padding: 4px;
32
+
33
+ user-select: none; /* Standard syntax */
34
+
35
+ border-radius: 4px;
36
+ background: ${theme.color.background.neutralBase};
37
+ border: 1px solid ${theme.color.background.neutralAltActive};
38
+
39
+ justify-content: center;
40
+ align-items: center;
41
+
42
+ color: ${theme.color.foreground.neutralBaseDisabled};
43
+ font-family: ${theme.fontFamily.ui};
44
+ font-size: 14px;
45
+ font-weight: 800;
46
+ line-height: 16px;
47
47
  `);