@elice/material-quiz 1.240718.0-trasncript.0 → 1.240718.0-trasncript.2

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 (127) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +423 -0
  2. package/cjs/components/eb-sortable/EbDraggable.js +42 -33
  3. package/cjs/components/eb-sortable/EbDroppable.js +27 -20
  4. package/cjs/components/markdown-editor/index.d.ts +1 -2
  5. package/cjs/components/markdown-editor/index.js +19 -10
  6. package/cjs/components/material-quiz/MaterialQuiz.js +114 -83
  7. package/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +36 -29
  8. package/cjs/components/material-quiz/MaterialQuizInfo.js +151 -149
  9. package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +175 -127
  10. package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +360 -286
  11. package/cjs/components/material-quiz/MaterialQuizSelectOne.js +172 -126
  12. package/cjs/components/material-quiz/MaterialQuizShimmer.js +46 -39
  13. package/cjs/components/material-quiz/MaterialQuizText.js +163 -115
  14. package/cjs/components/material-quiz/QuizResultBadge.js +32 -22
  15. package/cjs/components/material-quiz/QuizSubmitStatusText.js +21 -16
  16. package/cjs/components/material-quiz/constants/color.js +5 -5
  17. package/cjs/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
  18. package/cjs/components/material-quiz/context/MaterialQuizContext.js +156 -93
  19. package/cjs/components/material-quiz/index.js +9 -0
  20. package/cjs/components/material-quiz/locales/index.js +13 -0
  21. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +259 -161
  22. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +134 -100
  23. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +130 -101
  24. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +64 -52
  25. package/cjs/components/material-quiz/material-quiz-group/context/context.js +5 -1
  26. package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +47 -36
  27. package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +280 -232
  28. package/cjs/components/material-quiz-edit/context.js +8 -2
  29. package/cjs/components/material-quiz-edit/index.js +7 -0
  30. package/cjs/components/material-quiz-edit/locales/index.js +13 -0
  31. package/cjs/components/material-quiz-edit/options/OptionEditor.js +70 -46
  32. package/cjs/components/material-quiz-edit/options/OptionSelectMultiple.js +174 -148
  33. package/cjs/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +175 -149
  34. package/cjs/components/material-quiz-edit/options/OptionSelectOne.js +164 -144
  35. package/cjs/components/material-quiz-edit/options/OptionText.js +90 -82
  36. package/cjs/components/material-quiz-edit/options/options-group/OptionGroup.js +9 -8
  37. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +156 -112
  38. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +288 -196
  39. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +88 -75
  40. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +108 -92
  41. package/cjs/components/material-quiz-edit/utils/checkTwoDimensionArray.js +5 -1
  42. package/cjs/components/material-quiz-edit/utils/editValue.js +21 -12
  43. package/cjs/components/shared/QuestionBox.js +198 -165
  44. package/cjs/components/shared/QuizDraggbleDroppedOption.js +11 -12
  45. package/cjs/components/shared/QuizDraggbleDummyOption.js +23 -16
  46. package/cjs/components/shared/QuizDraggbleOption.js +65 -59
  47. package/cjs/components/shared/StyledMarkdown.js +5 -1
  48. package/cjs/components/shared/index.js +19 -0
  49. package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +13 -7
  50. package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
  51. package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.js +24 -17
  52. package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +59 -68
  53. package/cjs/components/shared/question-radio/QuestionRadio.js +13 -7
  54. package/cjs/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
  55. package/cjs/components/shared/question-radio/QuestionRadioContext.js +24 -17
  56. package/cjs/components/shared/question-radio/QuestionRadioOption.js +52 -59
  57. package/cjs/components/shared/utils/getQuestionStatusStyle.js +7 -9
  58. package/cjs/components/shared/utils/mergeRefs.js +15 -6
  59. package/cjs/constant/element.js +3 -3
  60. package/cjs/constant/index.js +9 -0
  61. package/cjs/helpers/index.js +8 -10
  62. package/cjs/hooks/index.js +7 -0
  63. package/cjs/hooks/useCaculatePassage.js +21 -20
  64. package/es/_virtual/_rollupPluginBabelHelpers.js +408 -0
  65. package/es/components/eb-sortable/EbDraggable.js +37 -33
  66. package/es/components/eb-sortable/EbDroppable.js +22 -20
  67. package/es/components/markdown-editor/index.d.ts +1 -2
  68. package/es/components/markdown-editor/index.js +15 -10
  69. package/es/components/material-quiz/MaterialQuiz.js +109 -83
  70. package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +32 -29
  71. package/es/components/material-quiz/MaterialQuizInfo.js +148 -150
  72. package/es/components/material-quiz/MaterialQuizSelectMultiple.js +171 -127
  73. package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +356 -287
  74. package/es/components/material-quiz/MaterialQuizSelectOne.js +168 -126
  75. package/es/components/material-quiz/MaterialQuizShimmer.js +42 -39
  76. package/es/components/material-quiz/MaterialQuizText.js +158 -115
  77. package/es/components/material-quiz/QuizResultBadge.js +27 -22
  78. package/es/components/material-quiz/QuizSubmitStatusText.js +17 -16
  79. package/es/components/material-quiz/constants/color.js +5 -5
  80. package/es/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
  81. package/es/components/material-quiz/context/MaterialQuizContext.js +153 -94
  82. package/es/components/material-quiz/index.js +2 -0
  83. package/es/components/material-quiz/locales/index.js +4 -0
  84. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +253 -161
  85. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +129 -100
  86. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +125 -101
  87. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +60 -52
  88. package/es/components/material-quiz/material-quiz-group/context/context.js +1 -1
  89. package/es/components/material-quiz-edit/MaterialQuizEdit.js +43 -36
  90. package/es/components/material-quiz-edit/MaterialQuizEditContent.js +272 -229
  91. package/es/components/material-quiz-edit/context.js +4 -2
  92. package/es/components/material-quiz-edit/index.js +1 -0
  93. package/es/components/material-quiz-edit/locales/index.js +4 -0
  94. package/es/components/material-quiz-edit/options/OptionEditor.js +64 -46
  95. package/es/components/material-quiz-edit/options/OptionSelectMultiple.js +170 -148
  96. package/es/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +171 -149
  97. package/es/components/material-quiz-edit/options/OptionSelectOne.js +159 -144
  98. package/es/components/material-quiz-edit/options/OptionText.js +86 -82
  99. package/es/components/material-quiz-edit/options/options-group/OptionGroup.js +9 -8
  100. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +151 -112
  101. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +283 -197
  102. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +83 -75
  103. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +103 -92
  104. package/es/components/material-quiz-edit/utils/checkTwoDimensionArray.js +5 -1
  105. package/es/components/material-quiz-edit/utils/editValue.js +17 -12
  106. package/es/components/shared/QuestionBox.js +192 -165
  107. package/es/components/shared/QuizDraggbleDroppedOption.js +11 -12
  108. package/es/components/shared/QuizDraggbleDummyOption.js +19 -16
  109. package/es/components/shared/QuizDraggbleOption.js +61 -59
  110. package/es/components/shared/StyledMarkdown.js +1 -1
  111. package/es/components/shared/index.js +7 -0
  112. package/es/components/shared/question-checkbox/QuestionCheckbox.js +9 -7
  113. package/es/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
  114. package/es/components/shared/question-checkbox/QuestionCheckboxContext.js +20 -17
  115. package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +54 -68
  116. package/es/components/shared/question-radio/QuestionRadio.js +9 -7
  117. package/es/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
  118. package/es/components/shared/question-radio/QuestionRadioContext.js +20 -17
  119. package/es/components/shared/question-radio/QuestionRadioOption.js +47 -59
  120. package/es/components/shared/utils/getQuestionStatusStyle.js +7 -9
  121. package/es/components/shared/utils/mergeRefs.js +15 -6
  122. package/es/constant/element.js +3 -3
  123. package/es/constant/index.js +1 -0
  124. package/es/helpers/index.js +8 -10
  125. package/es/hooks/index.js +1 -0
  126. package/es/hooks/useCaculatePassage.js +21 -20
  127. package/package.json +12 -15
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var React = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
6
  var reactHookForm = require('react-hook-form');
7
7
  var reactSortableHoc = require('react-sortable-hoc');
8
8
  var blocks = require('@elice/blocks');
@@ -15,63 +15,80 @@ var checkTwoDimensionArray = require('../../utils/checkTwoDimensionArray.js');
15
15
  var randomId = require('../../utils/randomId.js');
16
16
  var OptionGroupAnswerListItem = require('./OptionGroupAnswerListItem.js');
17
17
 
18
- const MAX_OPTION_INFO_COUNT = 20;
19
- const StyledSortableList = styled.div.withConfig({
18
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
19
+
20
+ var cloneDeep__default = /*#__PURE__*/_interopDefaultCompat(cloneDeep);
21
+ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
22
+
23
+ var MAX_OPTION_INFO_COUNT = 20;
24
+ var StyledSortableList = styled__default.default.div.withConfig({
20
25
  componentId: "sc-14yoda7-0"
21
26
  })(["margin:1rem 0;padding:0;"]);
22
- const StyledOptionTitle = styled.div.withConfig({
27
+ var StyledOptionTitle = styled__default.default.div.withConfig({
23
28
  componentId: "sc-14yoda7-1"
24
29
  })(["display:flex;width:calc(100% - 2rem - 1.5rem);"]);
25
30
  //
26
31
  //
27
32
  //
28
- const OptionGroupAnswerInfo = () => {
29
- const intl$1 = intl.useRawEliceIntl();
30
- const {
31
- setValue,
32
- watch
33
- } = reactHookForm.useFormContext();
34
- const {
35
- disabled
36
- } = context.useMaterialQuizEditContext();
37
- const {
38
- append: appendOptionInfoFieldItem,
39
- remove: removeOptionInfoFieldItem
40
- } = reactHookForm.useFieldArray({
41
- name: 'optionsDefault',
42
- keyName: 'id',
43
- shouldUnregister: true
44
- });
45
- const watchedAnswerInfo = watch('answerInfoDefault');
46
- const watchedOptions = watch('optionsDefault');
47
- const isMaximumOptions = (watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.length) >= MAX_OPTION_INFO_COUNT;
33
+ var OptionGroupAnswerInfo = function OptionGroupAnswerInfo() {
34
+ var intl$1 = intl.useRawEliceIntl();
35
+ var _useFormContext = reactHookForm.useFormContext(),
36
+ setValue = _useFormContext.setValue,
37
+ watch = _useFormContext.watch;
38
+ var _useMaterialQuizEditC = context.useMaterialQuizEditContext(),
39
+ disabled = _useMaterialQuizEditC.disabled;
40
+ var _useFieldArray = reactHookForm.useFieldArray({
41
+ name: 'optionsDefault',
42
+ keyName: 'id',
43
+ shouldUnregister: true
44
+ }),
45
+ appendOptionInfoFieldItem = _useFieldArray.append,
46
+ removeOptionInfoFieldItem = _useFieldArray.remove;
47
+ var watchedAnswerInfo = watch('answerInfoDefault');
48
+ var watchedOptions = watch('optionsDefault');
49
+ var isMaximumOptions = (watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.length) >= MAX_OPTION_INFO_COUNT;
48
50
  /**
49
51
  *
50
52
  */
51
- const handleRemoveItem = index => {
53
+ var handleRemoveItem = function handleRemoveItem(index) {
52
54
  var _a;
53
- const cloneAnswerList = cloneDeep(watchedAnswerInfo);
54
- const answerIndex = cloneAnswerList.findIndex(answers => answers.includes(index));
55
+ var cloneAnswerList = cloneDeep__default.default(watchedAnswerInfo);
56
+ var answerIndex = cloneAnswerList.findIndex(function (answers) {
57
+ return answers.includes(index);
58
+ });
55
59
  if (!cloneAnswerList[answerIndex]) {
56
60
  return removeOptionInfoFieldItem(index);
57
61
  }
58
- cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(answer => answer !== index);
59
- const recalculationAnswerList = cloneAnswerList.map(answers => answers.map(answer => answer > index ? answer - 1 : answer));
62
+ cloneAnswerList[answerIndex] = (_a = cloneAnswerList[answerIndex]) === null || _a === void 0 ? void 0 : _a.filter(function (answer) {
63
+ return answer !== index;
64
+ });
65
+ var recalculationAnswerList = cloneAnswerList.map(function (answers) {
66
+ return answers.map(function (answer) {
67
+ return answer > index ? answer - 1 : answer;
68
+ });
69
+ });
60
70
  removeOptionInfoFieldItem(index);
61
71
  setValue('answerInfoDefault', recalculationAnswerList);
62
72
  };
63
73
  /**
64
74
  *
65
75
  */
66
- const onSortEnd = ({
67
- oldIndex,
68
- newIndex
69
- }) => {
70
- const prevOptions = cloneDeep(watchedOptions).map((option, index) => Object.assign(Object.assign({}, option), {
71
- originIndex: index
72
- }));
73
- const updatedOptions = reactSortableHoc.arrayMove(prevOptions, oldIndex, newIndex);
74
- const updatedAnswerInfo = watchedAnswerInfo.map(answerList => answerList.map(answer => updatedOptions.findIndex(option => option.originIndex === answer)));
76
+ var onSortEnd = function onSortEnd(_ref) {
77
+ var oldIndex = _ref.oldIndex,
78
+ newIndex = _ref.newIndex;
79
+ var prevOptions = cloneDeep__default.default(watchedOptions).map(function (option, index) {
80
+ return Object.assign(Object.assign({}, option), {
81
+ originIndex: index
82
+ });
83
+ });
84
+ var updatedOptions = reactSortableHoc.arrayMove(prevOptions, oldIndex, newIndex);
85
+ var updatedAnswerInfo = watchedAnswerInfo.map(function (answerList) {
86
+ return answerList.map(function (answer) {
87
+ return updatedOptions.findIndex(function (option) {
88
+ return option.originIndex === answer;
89
+ });
90
+ });
91
+ });
75
92
  setValue('answerInfoDefault', updatedAnswerInfo);
76
93
  setValue('optionsDefault', updatedOptions, {
77
94
  shouldDirty: true
@@ -80,86 +97,112 @@ const OptionGroupAnswerInfo = () => {
80
97
  /**
81
98
  *
82
99
  */
83
- const renderAnswerTitle = () => {
84
- return React.createElement(StyledOptionTitle, null, React.createElement(blocks.Flex, {
85
- width: "33.3%",
86
- auto: true
87
- }, React.createElement(blocks.Text, {
88
- size: "small",
89
- bold: true
90
- }, intl$1.formatMessage({
91
- id: 'answer.option.title.text'
92
- }))), React.createElement(blocks.Flex, {
93
- width: "33.3%"
94
- }, React.createElement(blocks.Text, {
95
- size: "small",
96
- bold: true
97
- }, intl$1.formatMessage({
98
- id: 'answer.option.title.file'
99
- }))), React.createElement(blocks.Flex, {
100
- width: "calc(33.3% - 1.5rem)"
101
- }, React.createElement(blocks.Text, {
102
- size: "small",
103
- bold: true
104
- }, intl$1.formatMessage({
105
- id: 'answer.option.title.group'
106
- }))));
100
+ var renderAnswerTitle = function renderAnswerTitle() {
101
+ return jsxRuntime.jsxs(StyledOptionTitle, {
102
+ children: [jsxRuntime.jsx(blocks.Flex, {
103
+ width: "33.3%",
104
+ auto: true,
105
+ children: jsxRuntime.jsx(blocks.Text, {
106
+ size: "small",
107
+ bold: true,
108
+ children: intl$1.formatMessage({
109
+ id: 'answer.option.title.text'
110
+ })
111
+ })
112
+ }), jsxRuntime.jsx(blocks.Flex, {
113
+ width: "33.3%",
114
+ children: jsxRuntime.jsx(blocks.Text, {
115
+ size: "small",
116
+ bold: true,
117
+ children: intl$1.formatMessage({
118
+ id: 'answer.option.title.file'
119
+ })
120
+ })
121
+ }), jsxRuntime.jsx(blocks.Flex, {
122
+ width: "calc(33.3% - 1.5rem)",
123
+ children: jsxRuntime.jsx(blocks.Text, {
124
+ size: "small",
125
+ bold: true,
126
+ children: intl$1.formatMessage({
127
+ id: 'answer.option.title.group'
128
+ })
129
+ })
130
+ })]
131
+ });
107
132
  };
108
133
  /**
109
134
  *
110
135
  */
111
- const renderAnswerOptionList = () => {
112
- return React.createElement(blocks.SortableListGroup, {
136
+ var renderAnswerOptionList = function renderAnswerOptionList() {
137
+ return jsxRuntime.jsx(blocks.SortableListGroup, {
113
138
  onSortEnd: onSortEnd,
114
- useDragHandle: true
115
- }, React.createElement(StyledSortableList, null, watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.map((option, index) => React.createElement(OptionGroupAnswerListItem.default, {
116
- key: option.id,
117
- optionId: index,
118
- disabled: disabled,
119
- onRemoveItem: () => handleRemoveItem(index)
120
- }))));
139
+ useDragHandle: true,
140
+ children: jsxRuntime.jsx(StyledSortableList, {
141
+ children: watchedOptions === null || watchedOptions === void 0 ? void 0 : watchedOptions.map(function (option, index) {
142
+ return jsxRuntime.jsx(OptionGroupAnswerListItem.default, {
143
+ optionId: index,
144
+ disabled: disabled,
145
+ onRemoveItem: function onRemoveItem() {
146
+ return handleRemoveItem(index);
147
+ }
148
+ }, option.id);
149
+ })
150
+ })
151
+ });
121
152
  };
122
153
  /**
123
154
  *
124
155
  */
125
- const renderAnswerOptionAddButton = () => {
126
- return React.createElement(React.Fragment, null, React.createElement(blocks.Tooltip, {
127
- title: isMaximumOptions ? intl$1.formatMessage({
128
- id: 'answer.option.tooltip.maxDisabled'
129
- }) : undefined,
130
- placement: "top"
131
- }, React.createElement("span", null, React.createElement(blocks.Button, {
132
- borderDashed: true,
133
- block: true,
134
- transparent: true,
135
- disabled: isMaximumOptions || disabled,
136
- icon: React.createElement(blocks.Icon, {
137
- icon: icons.eilMathsignAddBasic
138
- }),
139
- onClick: () => appendOptionInfoFieldItem({
140
- id: randomId.createRandomId(),
141
- title: '',
142
- content: ''
143
- })
144
- }, intl$1.formatMessage({
145
- id: 'answer.option.addButton'
146
- })))), React.createElement(blocks.Vspace, {
147
- height: 0.5
148
- }), React.createElement(blocks.Flex, {
149
- column: true
150
- }, React.createElement(blocks.StatusText, {
151
- role: "description"
152
- }, intl$1.formatMessage({
153
- id: 'answer.option.file.description.imageSize'
154
- })), React.createElement(blocks.StatusText, {
155
- role: "description"
156
- }, intl$1.formatMessage({
157
- id: 'answer.option.file.description.fileSize'
158
- })), React.createElement(blocks.StatusText, {
159
- role: "description"
160
- }, intl$1.formatMessage({
161
- id: 'answer.option.file.description.extension'
162
- }))));
156
+ var renderAnswerOptionAddButton = function renderAnswerOptionAddButton() {
157
+ return jsxRuntime.jsxs(jsxRuntime.Fragment, {
158
+ children: [jsxRuntime.jsx(blocks.Tooltip, {
159
+ title: isMaximumOptions ? intl$1.formatMessage({
160
+ id: 'answer.option.tooltip.maxDisabled'
161
+ }) : undefined,
162
+ placement: "top",
163
+ children: jsxRuntime.jsx("span", {
164
+ children: jsxRuntime.jsx(blocks.Button, {
165
+ borderDashed: true,
166
+ block: true,
167
+ transparent: true,
168
+ disabled: isMaximumOptions || disabled,
169
+ icon: jsxRuntime.jsx(blocks.Icon, {
170
+ icon: icons.eilMathsignAddBasic
171
+ }),
172
+ onClick: function onClick() {
173
+ return appendOptionInfoFieldItem({
174
+ id: randomId.createRandomId(),
175
+ title: '',
176
+ content: ''
177
+ });
178
+ },
179
+ children: intl$1.formatMessage({
180
+ id: 'answer.option.addButton'
181
+ })
182
+ })
183
+ })
184
+ }), jsxRuntime.jsx(blocks.Vspace, {
185
+ height: 0.5
186
+ }), jsxRuntime.jsxs(blocks.Flex, {
187
+ column: true,
188
+ children: [jsxRuntime.jsx(blocks.StatusText, {
189
+ role: "description",
190
+ children: intl$1.formatMessage({
191
+ id: 'answer.option.file.description.imageSize'
192
+ })
193
+ }), jsxRuntime.jsx(blocks.StatusText, {
194
+ role: "description",
195
+ children: intl$1.formatMessage({
196
+ id: 'answer.option.file.description.fileSize'
197
+ })
198
+ }), jsxRuntime.jsx(blocks.StatusText, {
199
+ role: "description",
200
+ children: intl$1.formatMessage({
201
+ id: 'answer.option.file.description.extension'
202
+ })
203
+ })]
204
+ })]
205
+ });
163
206
  };
164
207
  //
165
208
  //
@@ -167,9 +210,10 @@ const OptionGroupAnswerInfo = () => {
167
210
  if (!checkTwoDimensionArray.checkTwoDimensionArray(watchedAnswerInfo)) {
168
211
  return null;
169
212
  }
170
- return React.createElement(blocks.Flex, {
171
- column: true
172
- }, renderAnswerTitle(), renderAnswerOptionList(), renderAnswerOptionAddButton());
213
+ return jsxRuntime.jsxs(blocks.Flex, {
214
+ column: true,
215
+ children: [renderAnswerTitle(), renderAnswerOptionList(), renderAnswerOptionAddButton()]
216
+ });
173
217
  };
174
218
 
175
219
  exports.default = OptionGroupAnswerInfo;