@elice/material-assignment 1.240718.3 → 1.240719.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 (29) hide show
  1. package/cjs/_virtual/_rollupPluginBabelHelpers.js +383 -0
  2. package/cjs/components/index.js +9 -0
  3. package/cjs/components/material-assignment/MaterialAssignment.js +23 -17
  4. package/cjs/components/material-assignment/MaterialAssignmentContent.js +281 -194
  5. package/cjs/components/material-assignment/MaterialAssignmentUploadModal.js +181 -138
  6. package/cjs/components/material-assignment/constants/color.js +1 -1
  7. package/cjs/components/material-assignment/index.js +7 -0
  8. package/cjs/components/material-assignment/locales/index.js +13 -0
  9. package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.js +32 -24
  10. package/cjs/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +19 -9
  11. package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContent.js +774 -548
  12. package/cjs/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +436 -303
  13. package/cjs/components/material-assignment-admin/index.js +7 -0
  14. package/cjs/components/shared/MaterialAssignmentContainer.js +23 -13
  15. package/es/_virtual/_rollupPluginBabelHelpers.js +374 -0
  16. package/es/components/index.js +2 -0
  17. package/es/components/material-assignment/MaterialAssignment.js +18 -17
  18. package/es/components/material-assignment/MaterialAssignmentContent.js +276 -194
  19. package/es/components/material-assignment/MaterialAssignmentUploadModal.js +177 -139
  20. package/es/components/material-assignment/constants/color.js +1 -1
  21. package/es/components/material-assignment/index.js +1 -0
  22. package/es/components/material-assignment/locales/index.js +4 -0
  23. package/es/components/material-assignment-admin/MaterialAssignmentAdmin.js +29 -25
  24. package/es/components/material-assignment-admin/MaterialAssignmentAdmin.styled.js +15 -9
  25. package/es/components/material-assignment-admin/MaterialAssignmentAdminContent.js +770 -549
  26. package/es/components/material-assignment-admin/MaterialAssignmentAdminContentTa.js +432 -304
  27. package/es/components/material-assignment-admin/index.js +1 -0
  28. package/es/components/shared/MaterialAssignmentContainer.js +19 -13
  29. package/package.json +9 -12
@@ -2,6 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
6
+ var jsxRuntime = require('react/jsx-runtime');
5
7
  var React = require('react');
6
8
  var reactHookForm = require('react-hook-form');
7
9
  var apiClient = require('@elice/api-client');
@@ -11,71 +13,101 @@ var intl = require('@elice/intl');
11
13
  var utils = require('@elice/utils');
12
14
  var styled = require('styled-components');
13
15
 
14
- const StyledAssignmentContentFiles = styled(blocks.Files).withConfig({
16
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
+
18
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
+ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
20
+
21
+ var StyledAssignmentContentFiles = styled__default.default(blocks.Files).withConfig({
15
22
  componentId: "sc-9bizrf-0"
16
23
  })(["width:100%;.eb-files__choose-button{border-color:", ";background-color:", ";}"], designTokens.base.color.primary5, designTokens.base.color.primary5);
17
- const MaterialAssignmentUploadModal = ({
18
- materialAssignment,
19
- onClose,
20
- onSubmitCallback
21
- }) => {
22
- const intl$1 = intl.useRawEliceIntl();
23
- const abortCtrl = React.useRef(new AbortController());
24
+ var MaterialAssignmentUploadModal = function MaterialAssignmentUploadModal(_ref) {
25
+ var materialAssignment = _ref.materialAssignment,
26
+ onClose = _ref.onClose,
27
+ onSubmitCallback = _ref.onSubmitCallback;
28
+ var intl$1 = intl.useRawEliceIntl();
29
+ var abortCtrl = React__default.default.useRef(new AbortController());
24
30
  /** Select submission method */
25
- const [assignmentMode, setAssignmentMode] = React.useState('attachment');
31
+ var _React$useState = React__default.default.useState('attachment'),
32
+ _React$useState2 = _rollupPluginBabelHelpers.slicedToArray(_React$useState, 2),
33
+ assignmentMode = _React$useState2[0],
34
+ setAssignmentMode = _React$useState2[1];
26
35
  /** Check "Once you submit it, you cannot submit it again." */
27
- const [isAgreedSubmit, setAgreedSubmit] = React.useState(false);
36
+ var _React$useState3 = React__default.default.useState(false),
37
+ _React$useState4 = _rollupPluginBabelHelpers.slicedToArray(_React$useState3, 2),
38
+ isAgreedSubmit = _React$useState4[0],
39
+ setAgreedSubmit = _React$useState4[1];
28
40
  /** Check if the submission time is past */
29
- const isAssignmentClosed = Boolean(materialAssignment.closeDatetime < Date.now());
41
+ var isAssignmentClosed = Boolean(materialAssignment.closeDatetime < Date.now());
30
42
  /** Check if it is possible to resubmit */
31
- const isAssignmentResubmitEnabled = Boolean(materialAssignment.isResubmitEnabled);
32
- const {
33
- control,
34
- formState,
35
- handleSubmit,
36
- reset
37
- } = reactHookForm.useForm({
38
- mode: 'onChange'
39
- });
43
+ var isAssignmentResubmitEnabled = Boolean(materialAssignment.isResubmitEnabled);
44
+ var _useForm = reactHookForm.useForm({
45
+ mode: 'onChange'
46
+ }),
47
+ control = _useForm.control,
48
+ formState = _useForm.formState,
49
+ handleSubmit = _useForm.handleSubmit,
50
+ reset = _useForm.reset;
40
51
  /**
41
52
  * Submit assignment.
42
53
  */
43
- const submitAssignment = handleSubmit(async data => {
44
- var _a;
45
- try {
46
- await apiClient.postOrgMaterialAssignmentSubmissionAdd(Object.assign(Object.assign({}, data), {
47
- materialAssignmentId: (_a = materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.id) !== null && _a !== void 0 ? _a : 0
48
- }), {
49
- signal: abortCtrl.current.signal
50
- });
51
- onClose();
52
- blocks.Notification.success(intl$1.formatMessage({
53
- id: 'materialAssignment.notification.submit.success'
54
- }));
55
- if (typeof onSubmitCallback === 'function') {
56
- onSubmitCallback();
57
- }
58
- } catch (error) {
59
- if (error.name === 'AbortError') {
60
- return blocks.Notification.error(intl$1.formatMessage({
61
- id: 'materialAssignment.notification.submit.cancel'
62
- }));
63
- }
64
- blocks.Notification.error(intl$1.formatMessage({
65
- id: 'materialAssignment.notification.submit.failure'
66
- }));
67
- }
68
- });
54
+ var submitAssignment = handleSubmit( /*#__PURE__*/function () {
55
+ var _ref2 = _rollupPluginBabelHelpers.asyncToGenerator( /*#__PURE__*/_rollupPluginBabelHelpers.regeneratorRuntime().mark(function _callee(data) {
56
+ var _a;
57
+ return _rollupPluginBabelHelpers.regeneratorRuntime().wrap(function _callee$(_context) {
58
+ while (1) switch (_context.prev = _context.next) {
59
+ case 0:
60
+ _context.prev = 0;
61
+ _context.next = 3;
62
+ return apiClient.postOrgMaterialAssignmentSubmissionAdd(Object.assign(Object.assign({}, data), {
63
+ materialAssignmentId: (_a = materialAssignment === null || materialAssignment === void 0 ? void 0 : materialAssignment.id) !== null && _a !== void 0 ? _a : 0
64
+ }), {
65
+ signal: abortCtrl.current.signal
66
+ });
67
+ case 3:
68
+ onClose();
69
+ blocks.Notification.success(intl$1.formatMessage({
70
+ id: 'materialAssignment.notification.submit.success'
71
+ }));
72
+ if (typeof onSubmitCallback === 'function') {
73
+ onSubmitCallback();
74
+ }
75
+ _context.next = 13;
76
+ break;
77
+ case 8:
78
+ _context.prev = 8;
79
+ _context.t0 = _context["catch"](0);
80
+ if (!(_context.t0.name === 'AbortError')) {
81
+ _context.next = 12;
82
+ break;
83
+ }
84
+ return _context.abrupt("return", blocks.Notification.error(intl$1.formatMessage({
85
+ id: 'materialAssignment.notification.submit.cancel'
86
+ })));
87
+ case 12:
88
+ blocks.Notification.error(intl$1.formatMessage({
89
+ id: 'materialAssignment.notification.submit.failure'
90
+ }));
91
+ case 13:
92
+ case "end":
93
+ return _context.stop();
94
+ }
95
+ }, _callee, null, [[0, 8]]);
96
+ }));
97
+ return function (_x) {
98
+ return _ref2.apply(this, arguments);
99
+ };
100
+ }());
69
101
  //
70
102
  //
71
103
  //
72
- React.useEffect(() => {
73
- const _abortCtrl = abortCtrl.current;
74
- return () => {
104
+ React__default.default.useEffect(function () {
105
+ var _abortCtrl = abortCtrl.current;
106
+ return function () {
75
107
  _abortCtrl.abort();
76
108
  };
77
109
  }, []);
78
- return React.createElement(blocks.Modal, {
110
+ return jsxRuntime.jsxs(blocks.Modal, {
79
111
  title: intl$1.formatMessage({
80
112
  id: 'materialAssignment.modal.title'
81
113
  }),
@@ -93,97 +125,108 @@ const MaterialAssignmentUploadModal = ({
93
125
  role: 'gray1',
94
126
  onClick: onClose
95
127
  }],
96
- onHide: onClose
97
- }, React.createElement(blocks.Alert, {
98
- role: isAssignmentResubmitEnabled ? 'primary' : 'warning'
99
- }, intl$1.formatMessage({
100
- id: isAssignmentResubmitEnabled ? 'materialAssignment.alert.oftenSubmit' : 'materialAssignment.alert.onceSubmit'
101
- })), React.createElement(blocks.Vspace, {
102
- height: 1.5
103
- }), React.createElement(blocks.Radio, {
104
- purpleWhite: true,
105
- borderRound: true,
106
- value: assignmentMode,
107
- onChange: value => {
108
- reset();
109
- setAgreedSubmit(false);
110
- setAssignmentMode(value);
111
- }
112
- }, React.createElement(blocks.RadioButton, {
113
- value: "attachment"
114
- }, intl$1.formatMessage({
115
- id: 'materialAssignment.radio.option.attachment'
116
- })), React.createElement(blocks.RadioButton, {
117
- value: "url"
118
- }, intl$1.formatMessage({
119
- id: 'materialAssignment.radio.option.url'
120
- }))), React.createElement(blocks.Vspace, {
121
- height: 1
122
- }), assignmentMode === 'attachment' ? React.createElement(reactHookForm.Controller, {
123
- control: control,
124
- name: "assignmentFile",
125
- rules: {
126
- required: true
127
- },
128
- render: ({
129
- field
130
- }) => React.createElement(StyledAssignmentContentFiles, Object.assign({}, field, {
131
- ref: null,
132
- files: field.value ? [field.value] : undefined,
133
- accept: "*",
134
- maxCount: 1,
135
- maxSize: 300,
136
- disabled: isAssignmentClosed,
137
- dropMessage: intl$1.formatMessage({
138
- id: 'materialAssignment.attachment.dropMessage'
139
- }),
140
- buttonMessage: intl$1.formatMessage({
141
- id: 'materialAssignment.attachment.button'
142
- }),
143
- maxSizeMessage: intl$1.formatMessage({
144
- id: 'materialAssignment.attachment.maxSizeMessage'
145
- }),
146
- onChange: newFiles => {
147
- if (Array.isArray(newFiles) && newFiles[0] instanceof File) {
148
- field.onChange(newFiles[0]);
149
- } else {
150
- field.onChange(undefined);
128
+ onHide: onClose,
129
+ children: [jsxRuntime.jsx(blocks.Alert, {
130
+ role: isAssignmentResubmitEnabled ? 'primary' : 'warning',
131
+ children: intl$1.formatMessage({
132
+ id: isAssignmentResubmitEnabled ? 'materialAssignment.alert.oftenSubmit' : 'materialAssignment.alert.onceSubmit'
133
+ })
134
+ }), jsxRuntime.jsx(blocks.Vspace, {
135
+ height: 1.5
136
+ }), jsxRuntime.jsxs(blocks.Radio, {
137
+ purpleWhite: true,
138
+ borderRound: true,
139
+ value: assignmentMode,
140
+ onChange: function onChange(value) {
141
+ reset();
142
+ setAgreedSubmit(false);
143
+ setAssignmentMode(value);
144
+ },
145
+ children: [jsxRuntime.jsx(blocks.RadioButton, {
146
+ value: "attachment",
147
+ children: intl$1.formatMessage({
148
+ id: 'materialAssignment.radio.option.attachment'
149
+ })
150
+ }), jsxRuntime.jsx(blocks.RadioButton, {
151
+ value: "url",
152
+ children: intl$1.formatMessage({
153
+ id: 'materialAssignment.radio.option.url'
154
+ })
155
+ })]
156
+ }), jsxRuntime.jsx(blocks.Vspace, {
157
+ height: 1
158
+ }), assignmentMode === 'attachment' ? jsxRuntime.jsx(reactHookForm.Controller, {
159
+ control: control,
160
+ name: "assignmentFile",
161
+ rules: {
162
+ required: true
163
+ },
164
+ render: function render(_ref3) {
165
+ var field = _ref3.field;
166
+ return jsxRuntime.jsx(StyledAssignmentContentFiles, Object.assign({}, field, {
167
+ ref: null,
168
+ files: field.value ? [field.value] : undefined,
169
+ accept: "*",
170
+ maxCount: 1,
171
+ maxSize: 300,
172
+ disabled: isAssignmentClosed,
173
+ dropMessage: intl$1.formatMessage({
174
+ id: 'materialAssignment.attachment.dropMessage'
175
+ }),
176
+ buttonMessage: intl$1.formatMessage({
177
+ id: 'materialAssignment.attachment.button'
178
+ }),
179
+ maxSizeMessage: intl$1.formatMessage({
180
+ id: 'materialAssignment.attachment.maxSizeMessage'
181
+ }),
182
+ onChange: function onChange(newFiles) {
183
+ if (Array.isArray(newFiles) && newFiles[0] instanceof File) {
184
+ field.onChange(newFiles[0]);
185
+ } else {
186
+ field.onChange(undefined);
187
+ }
188
+ }
189
+ }));
190
+ }
191
+ }) : jsxRuntime.jsx(reactHookForm.Controller, {
192
+ control: control,
193
+ name: "assignmentUrl",
194
+ rules: {
195
+ required: true,
196
+ validate: function validate(url) {
197
+ return utils.validateUrl(url !== null && url !== void 0 ? url : '') ? true : intl$1.formatMessage({
198
+ id: 'materialAssignment.input.invalid'
199
+ });
151
200
  }
201
+ },
202
+ render: function render(_ref4) {
203
+ var field = _ref4.field,
204
+ fieldState = _ref4.fieldState;
205
+ var _a;
206
+ return jsxRuntime.jsx(blocks.Input, Object.assign({}, field, {
207
+ width: "full",
208
+ size: "small",
209
+ placeholder: "http(s)://",
210
+ invalid: fieldState.invalid,
211
+ invalidText: (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message
212
+ }));
152
213
  }
153
- }))
154
- }) : React.createElement(reactHookForm.Controller, {
155
- control: control,
156
- name: "assignmentUrl",
157
- rules: {
158
- required: true,
159
- validate: url => utils.validateUrl(url !== null && url !== void 0 ? url : '') ? true : intl$1.formatMessage({
160
- id: 'materialAssignment.input.invalid'
161
- })
162
- },
163
- render: ({
164
- field,
165
- fieldState
166
- }) => {
167
- var _a;
168
- return React.createElement(blocks.Input, Object.assign({}, field, {
169
- width: "full",
214
+ }), isAssignmentResubmitEnabled ? null : jsxRuntime.jsxs(jsxRuntime.Fragment, {
215
+ children: [jsxRuntime.jsx(blocks.Vspace, {
216
+ height: 1
217
+ }), jsxRuntime.jsx(blocks.Checkbox, {
170
218
  size: "small",
171
- placeholder: "http(s)://",
172
- invalid: fieldState.invalid,
173
- invalidText: (_a = fieldState.error) === null || _a === void 0 ? void 0 : _a.message
174
- }));
175
- }
176
- }), isAssignmentResubmitEnabled ? null : React.createElement(React.Fragment, null, React.createElement(blocks.Vspace, {
177
- height: 1
178
- }), React.createElement(blocks.Checkbox, {
179
- size: "small",
180
- value: isAgreedSubmit,
181
- onChange: setAgreedSubmit
182
- }, React.createElement(blocks.Text, {
183
- size: "small"
184
- }, intl$1.formatMessage({
185
- id: 'materialAssignment.attachment.checkbox.onceSubmit'
186
- })))));
219
+ value: isAgreedSubmit,
220
+ onChange: setAgreedSubmit,
221
+ children: jsxRuntime.jsx(blocks.Text, {
222
+ size: "small",
223
+ children: intl$1.formatMessage({
224
+ id: 'materialAssignment.attachment.checkbox.onceSubmit'
225
+ })
226
+ })
227
+ })]
228
+ })]
229
+ });
187
230
  };
188
231
 
189
232
  exports.default = MaterialAssignmentUploadModal;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const DARK_TEXT_TERTIARY_COLOR = 'rgba(255, 255, 255, 0.7)';
3
+ var DARK_TEXT_TERTIARY_COLOR = 'rgba(255, 255, 255, 0.7)';
4
4
 
5
5
  exports.DARK_TEXT_TERTIARY_COLOR = DARK_TEXT_TERTIARY_COLOR;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var MaterialAssignment = require('./MaterialAssignment.js');
4
+
5
+
6
+
7
+ exports.MaterialAssignment = MaterialAssignment.default;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var en = require('./en.json.js');
4
+ var ko = require('./ko.json.js');
5
+ var th = require('./th.json.js');
6
+ var ja = require('./ja.json.js');
7
+
8
+
9
+
10
+ exports.messageEn = en.default;
11
+ exports.messageKo = ko.default;
12
+ exports.messageTh = th.default;
13
+ exports.messageJa = ja.default;
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var jsxRuntime = require('react/jsx-runtime');
5
6
  var React = require('react');
6
7
  var apiClient = require('@elice/api-client');
7
8
  var blocks = require('@elice/blocks');
@@ -13,46 +14,53 @@ var MaterialAssignmentAdminContent = require('./MaterialAssignmentAdminContent.j
13
14
  var MaterialAssignmentAdminContentTa = require('./MaterialAssignmentAdminContentTa.js');
14
15
  var MaterialAssignmentAdmin_styled = require('./MaterialAssignmentAdmin.styled.js');
15
16
 
16
- const MaterialAssignmentAdmin = React.forwardRef(({
17
- locale = 'en',
18
- className,
19
- materialAssignmentId,
20
- userId,
21
- adminUserId,
22
- courseRole,
23
- updateMaterialUserBrowserResponse
24
- }, ref) => {
25
- const prefixCls = 'em-material-assignment-admin';
17
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
18
+
19
+ var classnames__default = /*#__PURE__*/_interopDefaultCompat(classnames);
20
+
21
+ var MaterialAssignmentAdmin = React.forwardRef(function (_ref, ref) {
22
+ var _ref$locale = _ref.locale,
23
+ locale = _ref$locale === void 0 ? 'en' : _ref$locale,
24
+ className = _ref.className,
25
+ materialAssignmentId = _ref.materialAssignmentId,
26
+ userId = _ref.userId,
27
+ adminUserId = _ref.adminUserId,
28
+ courseRole = _ref.courseRole,
29
+ updateMaterialUserBrowserResponse = _ref.updateMaterialUserBrowserResponse;
30
+ var prefixCls = 'em-material-assignment-admin';
26
31
  // TODO: initialize in custom hook or withMaterial hoc.
27
- const isReady = materialSharedUtils.useMaterialConfigApiClientUpdate(apiClient.config.init);
28
- const isCourseRoleAboveTa = courseRole > types.enums.CourseRole.TA;
29
- const renderContent = () => {
32
+ var isReady = materialSharedUtils.useMaterialConfigApiClientUpdate(apiClient.config.init);
33
+ var isCourseRoleAboveTa = courseRole > types.enums.CourseRole.TA;
34
+ var renderContent = function renderContent() {
30
35
  if (!isReady) {
31
- return React.createElement(blocks.Flex, {
36
+ return jsxRuntime.jsx(blocks.Flex, {
32
37
  align: "center",
33
38
  justify: "center",
34
39
  width: "100%",
35
- height: "100%"
36
- }, React.createElement(blocks.Spinner, null));
40
+ height: "100%",
41
+ children: jsxRuntime.jsx(blocks.Spinner, {})
42
+ });
37
43
  }
38
- return isCourseRoleAboveTa ? React.createElement(MaterialAssignmentAdminContent.default, {
44
+ return isCourseRoleAboveTa ? jsxRuntime.jsx(MaterialAssignmentAdminContent.default, {
39
45
  ref: ref,
40
46
  userId: userId,
41
47
  adminUserId: adminUserId,
42
48
  materialAssignmentId: materialAssignmentId,
43
49
  updateMaterialUserBrowserResponse: updateMaterialUserBrowserResponse
44
- }) : React.createElement(MaterialAssignmentAdminContentTa.default, {
50
+ }) : jsxRuntime.jsx(MaterialAssignmentAdminContentTa.default, {
45
51
  userId: userId,
46
52
  adminUserId: adminUserId,
47
53
  materialAssignmentId: materialAssignmentId
48
54
  });
49
55
  };
50
- return React.createElement(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminContainer, {
51
- className: classnames(prefixCls, className)
52
- }, React.createElement(intl.IntlProvider, {
53
- locale: locale,
54
- defaultLocale: "en"
55
- }, renderContent()));
56
+ return jsxRuntime.jsx(MaterialAssignmentAdmin_styled.StyledMaterialAssignmentAdminContainer, {
57
+ className: classnames__default.default(prefixCls, className),
58
+ children: jsxRuntime.jsx(intl.IntlProvider, {
59
+ locale: locale,
60
+ defaultLocale: "en",
61
+ children: renderContent()
62
+ })
63
+ });
56
64
  });
57
65
 
58
66
  exports.default = MaterialAssignmentAdmin;
@@ -4,27 +4,37 @@ var blocks = require('@elice/blocks');
4
4
  var designTokens = require('@elice/design-tokens');
5
5
  var styled = require('styled-components');
6
6
 
7
- const StyledMaterialAssignmentAdminContainer = styled.div.withConfig({
7
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
8
+
9
+ var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
10
+
11
+ var StyledMaterialAssignmentAdminContainer = styled__default.default.div.withConfig({
8
12
  componentId: "sc-1czd3o6-0"
9
13
  })(["display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:", ";"], designTokens.base.color.navy9);
10
- const StyledMaterialAssignmentAdminHeader = styled(blocks.Flex).withConfig({
14
+ var StyledMaterialAssignmentAdminHeader = styled__default.default(blocks.Flex).withConfig({
11
15
  componentId: "sc-1czd3o6-1"
12
16
  })(["background-color:", ";"], designTokens.base.color.navy8);
13
- const StyledMaterialAssignmentAdminHeaderCell = styled.div.withConfig({
17
+ var StyledMaterialAssignmentAdminHeaderCell = styled__default.default.div.withConfig({
14
18
  componentId: "sc-1czd3o6-2"
15
19
  })(["display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;padding:0 1.5rem;height:100%;border-right:1px solid ", ";&:last-of-type{border-right:none;}"], designTokens.base.color.gray6);
16
- const StyledMaterialAssignmentAdminGradeWrapper = styled(blocks.Flex).withConfig({
20
+ var StyledMaterialAssignmentAdminGradeWrapper = styled__default.default(blocks.Flex).withConfig({
17
21
  componentId: "sc-1czd3o6-3"
18
22
  })(["background-color:", ";width:100%;padding:0 1.5rem;height:4.5rem;border:1px solid ", ";border-radius:0.5rem;"], designTokens.base.color.navy7, designTokens.base.color.navy6);
19
- const StyledMaterialAssignmentAdminTextareaWrapper = styled.div.withConfig({
23
+ var StyledMaterialAssignmentAdminTextareaWrapper = styled__default.default.div.withConfig({
20
24
  componentId: "sc-1czd3o6-4"
21
25
  })(["background-color:", ";"], designTokens.base.color.gray2);
22
- const StyledMaterialAssignmentAdminManualScoreEditButtonWrapper = styled.div.withConfig({
26
+ var StyledMaterialAssignmentAdminManualScoreEditButtonWrapper = styled__default.default.div.withConfig({
23
27
  componentId: "sc-1czd3o6-5"
24
- })(["cursor:", ";opacity:", ";"], props => props.disabled ? 'not-allowed' : 'pointer', props => props.disabled ? 0.5 : 1);
25
- const StyledMaterialAssignmentAdminManualScoreEditButton = styled(blocks.Text).withConfig({
28
+ })(["cursor:", ";opacity:", ";"], function (props) {
29
+ return props.disabled ? 'not-allowed' : 'pointer';
30
+ }, function (props) {
31
+ return props.disabled ? 0.5 : 1;
32
+ });
33
+ var StyledMaterialAssignmentAdminManualScoreEditButton = styled__default.default(blocks.Text).withConfig({
26
34
  componentId: "sc-1czd3o6-6"
27
- })(["pointer-events:", ";"], props => props.disabled ? 'none' : 'auto');
35
+ })(["pointer-events:", ";"], function (props) {
36
+ return props.disabled ? 'none' : 'auto';
37
+ });
28
38
 
29
39
  exports.StyledMaterialAssignmentAdminContainer = StyledMaterialAssignmentAdminContainer;
30
40
  exports.StyledMaterialAssignmentAdminGradeWrapper = StyledMaterialAssignmentAdminGradeWrapper;