@elice/material-quiz 1.240718.0-trasncript.2 → 1.240718.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 (127) hide show
  1. package/cjs/components/eb-sortable/EbDraggable.js +33 -42
  2. package/cjs/components/eb-sortable/EbDroppable.js +20 -27
  3. package/cjs/components/markdown-editor/index.d.ts +2 -1
  4. package/cjs/components/markdown-editor/index.js +10 -19
  5. package/cjs/components/material-quiz/MaterialQuiz.js +83 -114
  6. package/cjs/components/material-quiz/MaterialQuizAnswerExplanation.js +29 -36
  7. package/cjs/components/material-quiz/MaterialQuizInfo.js +149 -151
  8. package/cjs/components/material-quiz/MaterialQuizSelectMultiple.js +127 -175
  9. package/cjs/components/material-quiz/MaterialQuizSelectMultipleOrder.js +286 -360
  10. package/cjs/components/material-quiz/MaterialQuizSelectOne.js +126 -172
  11. package/cjs/components/material-quiz/MaterialQuizShimmer.js +39 -46
  12. package/cjs/components/material-quiz/MaterialQuizText.js +115 -163
  13. package/cjs/components/material-quiz/QuizResultBadge.js +22 -32
  14. package/cjs/components/material-quiz/QuizSubmitStatusText.js +16 -21
  15. package/cjs/components/material-quiz/constants/color.js +5 -5
  16. package/cjs/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
  17. package/cjs/components/material-quiz/context/MaterialQuizContext.js +93 -156
  18. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +161 -259
  19. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +100 -134
  20. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +101 -130
  21. package/cjs/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +52 -64
  22. package/cjs/components/material-quiz/material-quiz-group/context/context.js +1 -5
  23. package/cjs/components/material-quiz-edit/MaterialQuizEdit.js +36 -47
  24. package/cjs/components/material-quiz-edit/MaterialQuizEditContent.js +232 -280
  25. package/cjs/components/material-quiz-edit/context.js +2 -8
  26. package/cjs/components/material-quiz-edit/options/OptionEditor.js +46 -70
  27. package/cjs/components/material-quiz-edit/options/OptionSelectMultiple.js +148 -174
  28. package/cjs/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +149 -175
  29. package/cjs/components/material-quiz-edit/options/OptionSelectOne.js +144 -164
  30. package/cjs/components/material-quiz-edit/options/OptionText.js +82 -90
  31. package/cjs/components/material-quiz-edit/options/options-group/OptionGroup.js +8 -9
  32. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +112 -156
  33. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +196 -288
  34. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +75 -88
  35. package/cjs/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +92 -108
  36. package/cjs/components/material-quiz-edit/utils/checkTwoDimensionArray.js +1 -5
  37. package/cjs/components/material-quiz-edit/utils/editValue.js +12 -21
  38. package/cjs/components/shared/QuestionBox.js +165 -198
  39. package/cjs/components/shared/QuizDraggbleDroppedOption.js +12 -11
  40. package/cjs/components/shared/QuizDraggbleDummyOption.js +16 -23
  41. package/cjs/components/shared/QuizDraggbleOption.js +59 -65
  42. package/cjs/components/shared/StyledMarkdown.js +1 -5
  43. package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +7 -13
  44. package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
  45. package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.js +17 -24
  46. package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +68 -59
  47. package/cjs/components/shared/question-radio/QuestionRadio.js +7 -13
  48. package/cjs/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
  49. package/cjs/components/shared/question-radio/QuestionRadioContext.js +17 -24
  50. package/cjs/components/shared/question-radio/QuestionRadioOption.js +59 -52
  51. package/cjs/components/shared/utils/getQuestionStatusStyle.js +9 -7
  52. package/cjs/components/shared/utils/mergeRefs.js +6 -15
  53. package/cjs/constant/element.js +3 -3
  54. package/cjs/helpers/index.js +10 -8
  55. package/cjs/hooks/useCaculatePassage.js +20 -21
  56. package/es/components/eb-sortable/EbDraggable.js +33 -37
  57. package/es/components/eb-sortable/EbDroppable.js +20 -22
  58. package/es/components/markdown-editor/index.d.ts +2 -1
  59. package/es/components/markdown-editor/index.js +10 -15
  60. package/es/components/material-quiz/MaterialQuiz.js +83 -109
  61. package/es/components/material-quiz/MaterialQuizAnswerExplanation.js +29 -32
  62. package/es/components/material-quiz/MaterialQuizInfo.js +150 -148
  63. package/es/components/material-quiz/MaterialQuizSelectMultiple.js +127 -171
  64. package/es/components/material-quiz/MaterialQuizSelectMultipleOrder.js +287 -356
  65. package/es/components/material-quiz/MaterialQuizSelectOne.js +126 -168
  66. package/es/components/material-quiz/MaterialQuizShimmer.js +39 -42
  67. package/es/components/material-quiz/MaterialQuizText.js +115 -158
  68. package/es/components/material-quiz/QuizResultBadge.js +22 -27
  69. package/es/components/material-quiz/QuizSubmitStatusText.js +16 -17
  70. package/es/components/material-quiz/constants/color.js +5 -5
  71. package/es/components/material-quiz/context/MaterialQuizContext.d.ts +1 -1
  72. package/es/components/material-quiz/context/MaterialQuizContext.js +94 -153
  73. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroup.js +161 -253
  74. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupDesktop.js +100 -129
  75. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupMobile.js +101 -125
  76. package/es/components/material-quiz/material-quiz-group/MaterialQuizGroupOptionItem.js +52 -60
  77. package/es/components/material-quiz/material-quiz-group/context/context.js +1 -1
  78. package/es/components/material-quiz-edit/MaterialQuizEdit.js +36 -43
  79. package/es/components/material-quiz-edit/MaterialQuizEditContent.js +229 -272
  80. package/es/components/material-quiz-edit/context.js +2 -4
  81. package/es/components/material-quiz-edit/options/OptionEditor.js +46 -64
  82. package/es/components/material-quiz-edit/options/OptionSelectMultiple.js +148 -170
  83. package/es/components/material-quiz-edit/options/OptionSelectMultipleOrder.js +149 -171
  84. package/es/components/material-quiz-edit/options/OptionSelectOne.js +144 -159
  85. package/es/components/material-quiz-edit/options/OptionText.js +82 -86
  86. package/es/components/material-quiz-edit/options/options-group/OptionGroup.js +8 -9
  87. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerInfo.js +112 -151
  88. package/es/components/material-quiz-edit/options/options-group/OptionGroupAnswerListItem.js +197 -283
  89. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupInfo.js +75 -83
  90. package/es/components/material-quiz-edit/options/options-group/OptionGroupGroupListItem.js +92 -103
  91. package/es/components/material-quiz-edit/utils/checkTwoDimensionArray.js +1 -5
  92. package/es/components/material-quiz-edit/utils/editValue.js +12 -17
  93. package/es/components/shared/QuestionBox.js +165 -192
  94. package/es/components/shared/QuizDraggbleDroppedOption.js +12 -11
  95. package/es/components/shared/QuizDraggbleDummyOption.js +16 -19
  96. package/es/components/shared/QuizDraggbleOption.js +59 -61
  97. package/es/components/shared/StyledMarkdown.js +1 -1
  98. package/es/components/shared/question-checkbox/QuestionCheckbox.js +7 -9
  99. package/es/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
  100. package/es/components/shared/question-checkbox/QuestionCheckboxContext.js +17 -20
  101. package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +68 -54
  102. package/es/components/shared/question-radio/QuestionRadio.js +7 -9
  103. package/es/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
  104. package/es/components/shared/question-radio/QuestionRadioContext.js +17 -20
  105. package/es/components/shared/question-radio/QuestionRadioOption.js +59 -47
  106. package/es/components/shared/utils/getQuestionStatusStyle.js +9 -7
  107. package/es/components/shared/utils/mergeRefs.js +6 -15
  108. package/es/constant/element.js +3 -3
  109. package/es/helpers/index.js +10 -8
  110. package/es/hooks/useCaculatePassage.js +20 -21
  111. package/package.json +15 -12
  112. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -423
  113. package/cjs/components/material-quiz/index.js +0 -9
  114. package/cjs/components/material-quiz/locales/index.js +0 -13
  115. package/cjs/components/material-quiz-edit/index.js +0 -7
  116. package/cjs/components/material-quiz-edit/locales/index.js +0 -13
  117. package/cjs/components/shared/index.js +0 -19
  118. package/cjs/constant/index.js +0 -9
  119. package/cjs/hooks/index.js +0 -7
  120. package/es/_virtual/_rollupPluginBabelHelpers.js +0 -408
  121. package/es/components/material-quiz/index.js +0 -2
  122. package/es/components/material-quiz/locales/index.js +0 -4
  123. package/es/components/material-quiz-edit/index.js +0 -1
  124. package/es/components/material-quiz-edit/locales/index.js +0 -4
  125. package/es/components/shared/index.js +0 -7
  126. package/es/constant/index.js +0 -1
  127. package/es/hooks/index.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var jsxRuntime = require('react/jsx-runtime');
5
+ var React = require('react');
6
6
  var blocks = require('@elice/blocks');
7
7
  var designTokens = require('@elice/design-tokens');
8
8
  var icons = require('@elice/icons');
@@ -11,63 +11,55 @@ var styled = require('styled-components');
11
11
  var EbDraggable = require('../../eb-sortable/EbDraggable.js');
12
12
  var MaterialQuizContext = require('../context/MaterialQuizContext.js');
13
13
 
14
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
-
16
- var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
17
-
18
- var StyledDraggbleOption = styled__default.default(EbDraggable.default).withConfig({
14
+ const StyledDraggbleOption = styled(EbDraggable.default).withConfig({
19
15
  componentId: "sc-1b3vxse-0"
20
- })(["display:flex;flex-direction:column;flex-shrink:", ";overflow:hidden;max-width:", ";height:fit-content;border-radius:0.5rem;background:", ";"], function (_ref) {
21
- var vertical = _ref.vertical;
22
- return vertical ? 0 : 1;
23
- }, function (_ref2) {
24
- var vertical = _ref2.vertical;
25
- return vertical ? '10.25rem' : '11.5rem';
26
- }, designTokens.base.color.navy8);
27
- var StyledOptionTitle = styled__default.default.div.withConfig({
16
+ })(["display:flex;flex-direction:column;flex-shrink:", ";overflow:hidden;max-width:", ";height:fit-content;border-radius:0.5rem;background:", ";"], ({
17
+ vertical
18
+ }) => vertical ? 0 : 1, ({
19
+ vertical
20
+ }) => vertical ? '10.25rem' : '11.5rem', designTokens.base.color.navy8);
21
+ const StyledOptionTitle = styled.div.withConfig({
28
22
  componentId: "sc-1b3vxse-1"
29
- })(["display:flex;justify-content:center;align-items:center;width:", ";height:", ";padding:0.5rem;background:", ";"], function (_ref3) {
30
- var vertical = _ref3.vertical,
31
- isOptionContent = _ref3.isOptionContent;
32
- return isOptionContent ? '100%' : vertical ? '10.25rem' : '11.5rem';
33
- }, function (_ref4) {
34
- var vertical = _ref4.vertical,
35
- isOptionContent = _ref4.isOptionContent;
36
- return isOptionContent ? 'auto' : vertical ? '10.25rem' : '11.5rem';
37
- }, designTokens.base.color.white);
38
- var StyledOptionContent = styled__default.default.div.withConfig({
23
+ })(["display:flex;justify-content:center;align-items:center;width:", ";height:", ";padding:0.5rem;background:", ";"], ({
24
+ vertical,
25
+ isOptionContent
26
+ }) => isOptionContent ? '100%' : vertical ? '10.25rem' : '11.5rem', ({
27
+ vertical,
28
+ isOptionContent
29
+ }) => isOptionContent ? 'auto' : vertical ? '10.25rem' : '11.5rem', designTokens.base.color.white);
30
+ const StyledOptionContent = styled.div.withConfig({
39
31
  componentId: "sc-1b3vxse-2"
40
- })(["display:flex;align-items:center;width:", ";height:", ";background:", ";& p{line-height:1;}"], function (_ref5) {
41
- var vertical = _ref5.vertical;
42
- return vertical ? '10.25rem' : '11.5rem';
43
- }, function (_ref6) {
44
- var vertical = _ref6.vertical;
45
- return vertical ? '10.25rem' : '11.5rem';
46
- }, designTokens.base.color.navy8);
47
- var StyledOptionRemoveIcon = styled__default.default(blocks.IconButton).withConfig({
32
+ })(["display:flex;align-items:center;width:", ";height:", ";background:", ";& p{line-height:1;}"], ({
33
+ vertical
34
+ }) => vertical ? '10.25rem' : '11.5rem', ({
35
+ vertical
36
+ }) => vertical ? '10.25rem' : '11.5rem', designTokens.base.color.navy8);
37
+ const StyledOptionRemoveIcon = styled(blocks.IconButton).withConfig({
48
38
  componentId: "sc-1b3vxse-3"
49
39
  })(["position:absolute;top:0.5rem;right:0.5rem;border-radius:1rem;"]);
50
- var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref7) {
51
- var option = _ref7.option,
52
- onClose = _ref7.onClose;
40
+ const MaterialQuizGroupOptionItem = ({
41
+ option,
42
+ onClose
43
+ }) => {
53
44
  var _a;
54
- var _useMaterialQuizState = MaterialQuizContext.useMaterialQuizState(),
55
- vertical = _useMaterialQuizState.vertical,
56
- userId = _useMaterialQuizState.userId;
57
- var isOptionTitle = Boolean(option.options.title);
58
- var isOptionContent = Boolean(option.options.content);
59
- var renderRemoveItem = function renderRemoveItem() {
45
+ const {
46
+ vertical,
47
+ userId
48
+ } = MaterialQuizContext.useMaterialQuizState();
49
+ const isOptionTitle = Boolean(option.options.title);
50
+ const isOptionContent = Boolean(option.options.content);
51
+ const renderRemoveItem = () => {
60
52
  if (typeof onClose !== 'function') {
61
53
  return null;
62
54
  }
63
55
  if (!!userId) {
64
56
  return null;
65
57
  }
66
- return jsxRuntime.jsx(StyledOptionRemoveIcon, {
58
+ return React.createElement(StyledOptionRemoveIcon, {
67
59
  icon: icons.eilMathsignMultiplyBasic,
68
60
  role: "gray1",
69
61
  size: "micro",
70
- onClick: function onClick(e) {
62
+ onClick: e => {
71
63
  e.stopPropagation();
72
64
  onClose();
73
65
  }
@@ -76,31 +68,27 @@ var MaterialQuizGroupOptionItem = function MaterialQuizGroupOptionItem(_ref7) {
76
68
  //
77
69
  //
78
70
  //
79
- return jsxRuntime.jsxs(StyledDraggbleOption, {
71
+ return React.createElement(StyledDraggbleOption, {
80
72
  disabled: !!userId || vertical,
81
73
  id: option.order.toString(),
82
74
  className: "quiz-answer",
75
+ vertical: vertical
76
+ }, isOptionContent ? React.createElement(StyledOptionContent, {
77
+ vertical: vertical
78
+ }, React.createElement(markdown.MarkdownSSR, {
79
+ children: (_a = option.options.content) !== null && _a !== void 0 ? _a : '',
80
+ paddingx: 0,
81
+ paddingy: 0,
82
+ dark: true
83
+ })) : null, isOptionTitle ? React.createElement(StyledOptionTitle, {
83
84
  vertical: vertical,
84
- children: [isOptionContent ? jsxRuntime.jsx(StyledOptionContent, {
85
- vertical: vertical,
86
- children: jsxRuntime.jsx(markdown.MarkdownSSR, {
87
- children: (_a = option.options.content) !== null && _a !== void 0 ? _a : '',
88
- paddingx: 0,
89
- paddingy: 0,
90
- dark: true
91
- })
92
- }) : null, isOptionTitle ? jsxRuntime.jsx(StyledOptionTitle, {
93
- vertical: vertical,
94
- isOptionContent: isOptionContent,
95
- children: jsxRuntime.jsx(blocks.Text, {
96
- size: vertical ? 'small' : 'default',
97
- textAlign: "center",
98
- wordBreak: "break-all",
99
- bold: true,
100
- children: option.options.title
101
- })
102
- }) : null, renderRemoveItem()]
103
- });
85
+ isOptionContent: isOptionContent
86
+ }, React.createElement(blocks.Text, {
87
+ size: vertical ? 'small' : 'default',
88
+ textAlign: "center",
89
+ wordBreak: "break-all",
90
+ bold: true
91
+ }, option.options.title)) : null, renderRemoveItem());
104
92
  };
105
93
 
106
94
  exports.default = MaterialQuizGroupOptionItem;
@@ -4,10 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
 
7
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
8
-
9
- var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
-
11
- var QuizGroupContext = React__default.default.createContext(null);
7
+ const QuizGroupContext = React.createContext(null);
12
8
 
13
9
  exports.default = QuizGroupContext;
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var jsxRuntime = require('react/jsx-runtime');
6
5
  var React = require('react');
7
6
  var reactHookForm = require('react-hook-form');
8
7
  var intl = require('@elice/intl');
@@ -13,32 +12,29 @@ var en = require('./locales/en.json.js');
13
12
  var ko = require('./locales/ko.json.js');
14
13
  var MaterialQuizEditContent = require('./MaterialQuizEditContent.js');
15
14
 
16
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
-
18
- var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
-
20
- var MaterialQuizEdit = React.forwardRef(function (_ref, ref) {
21
- var value = _ref.value,
22
- _ref$disabled = _ref.disabled,
23
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
24
- onChange = _ref.onChange,
25
- onFormStateChange = _ref.onFormStateChange,
26
- onFileUploadRequest = _ref.onFileUploadRequest,
27
- __intl = _ref.__intl;
28
- var formElRef = React__default.default.useRef(null);
29
- var useFormMethods = reactHookForm.useForm({
15
+ const MaterialQuizEdit = React.forwardRef(({
16
+ value,
17
+ disabled = false,
18
+ onChange,
19
+ onFormStateChange,
20
+ onFileUploadRequest,
21
+ __intl
22
+ }, ref) => {
23
+ const formElRef = React.useRef(null);
24
+ const useFormMethods = reactHookForm.useForm({
30
25
  defaultValues: editValue.manipulateValue(value),
31
26
  mode: 'onBlur'
32
27
  });
33
- var watchedMaterialQuizEditValue = useFormMethods.watch();
34
- var _useFormMethods$formS = useFormMethods.formState,
35
- isDirty = _useFormMethods$formS.isDirty,
36
- isValid = _useFormMethods$formS.isValid;
28
+ const watchedMaterialQuizEditValue = useFormMethods.watch();
29
+ const {
30
+ isDirty,
31
+ isValid
32
+ } = useFormMethods.formState;
37
33
  //
38
34
  // Reset from value, when `value` changes.
39
35
  // TODO: will be removed, since `CourseLecturesMaterialTemplate` removed at `elice-web`.
40
36
  //
41
- materialSharedUtils.useDeepClonedCompareEffect(function () {
37
+ materialSharedUtils.useDeepClonedCompareEffect(() => {
42
38
  useFormMethods.reset(editValue.manipulateValue(value), {
43
39
  keepDirty: true,
44
40
  keepErrors: true,
@@ -52,17 +48,17 @@ var MaterialQuizEdit = React.forwardRef(function (_ref, ref) {
52
48
  // Emit `onChange` handler when form value changed.
53
49
  // TODO: will be removed, since `CourseLecturesMaterialTemplate` removed at `elice-web`.
54
50
  //
55
- materialSharedUtils.useDeepClonedCompareEffect(function () {
51
+ materialSharedUtils.useDeepClonedCompareEffect(() => {
56
52
  onChange(editValue.restoreValue(watchedMaterialQuizEditValue));
57
53
  }, [watchedMaterialQuizEditValue]);
58
54
  //
59
55
  // Emit `onFormStateChange` handler when form state change.
60
56
  //
61
- React__default.default.useEffect(function () {
57
+ React.useEffect(() => {
62
58
  if (typeof onFormStateChange === 'function') {
63
59
  onFormStateChange({
64
- isDirty: isDirty,
65
- isValid: isValid
60
+ isDirty,
61
+ isValid
66
62
  });
67
63
  }
68
64
  },
@@ -71,32 +67,25 @@ var MaterialQuizEdit = React.forwardRef(function (_ref, ref) {
71
67
  //
72
68
  // Set ref.
73
69
  //
74
- React__default.default.useImperativeHandle(ref, function () {
75
- return Object.assign(Object.assign({}, formElRef.current), {
76
- reset: function reset() {
77
- useFormMethods.reset(editValue.manipulateValue(value));
78
- void useFormMethods.trigger();
79
- }
80
- });
81
- }, [useFormMethods, value]);
70
+ React.useImperativeHandle(ref, () => Object.assign(Object.assign({}, formElRef.current), {
71
+ reset: () => {
72
+ useFormMethods.reset(editValue.manipulateValue(value));
73
+ void useFormMethods.trigger();
74
+ }
75
+ }), [useFormMethods, value]);
82
76
  //
83
77
  //
84
78
  //
85
- return jsxRuntime.jsx(intl.RawEliceIntlProvider, {
86
- value: __intl,
87
- children: jsxRuntime.jsx("form", {
88
- ref: formElRef,
89
- children: jsxRuntime.jsx(context.default.Provider, {
90
- value: {
91
- disabled: disabled,
92
- onFileUploadRequest: onFileUploadRequest
93
- },
94
- children: jsxRuntime.jsx(reactHookForm.FormProvider, Object.assign({}, useFormMethods, {
95
- children: jsxRuntime.jsx(MaterialQuizEditContent.default, {})
96
- }))
97
- })
98
- })
99
- });
79
+ return React.createElement(intl.RawEliceIntlProvider, {
80
+ value: __intl
81
+ }, React.createElement("form", {
82
+ ref: formElRef
83
+ }, React.createElement(context.default.Provider, {
84
+ value: {
85
+ disabled,
86
+ onFileUploadRequest
87
+ }
88
+ }, React.createElement(reactHookForm.FormProvider, Object.assign({}, useFormMethods), React.createElement(MaterialQuizEditContent.default, null)))));
100
89
  });
101
90
  var MaterialQuizEdit$1 = new intl.IntlComponentBuilder(MaterialQuizEdit).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('./locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('./locales/ja.json.js'); })).build();
102
91