@instructure/quiz-core 20.11.3-rc.2 → 20.11.3-rc.21
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.
- package/es/banks/components/Bank/presenter.js +12 -6
- package/es/banks/components/HeaderMenu/presenter.js +40 -1
- package/es/banks/components/HeaderMenu/styles.js +3 -0
- package/es/banks/components/NavWrapper/presenter.js +6 -1
- package/es/banks/components/SharingModal/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntry/index.js +2 -1
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +23 -29
- package/es/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +39 -0
- package/es/building/components/resources/quizEntry/QuizEntry/styles.js +23 -0
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +35 -43
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +30 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +25 -31
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +19 -0
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +27 -33
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +28 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +32 -37
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +49 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +23 -23
- package/es/building/components/resources/quizEntry/QuizEntryEdit/styles.js +21 -0
- package/es/building/components/resources/quizEntry/QuizEntryEdit/theme.js +4 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +36 -50
- package/es/building/components/resources/quizEntry/QuizEntryShow/styles.js +84 -0
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +4 -2
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +1 -1
- package/es/common/components/layout/navbar/index.js +135 -38
- package/es/common/components/layout/navbar/styles.js +8 -0
- package/es/common/components/layout/navbar/theme.js +10 -0
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +40 -50
- package/es/common/components/resources/stimulus/Stimulus/styles.js +58 -0
- package/es/common/components/resources/stimulus/Stimulus/theme.js +4 -2
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +37 -46
- package/es/common/components/resources/stimulus/StimulusEdit/styles.js +46 -0
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +4 -2
- package/es/common/components/shared/overlayEmotion/index.js +1 -1
- package/es/common/components/shared/return_button/ReturnButton.js +4 -1
- package/es/moderating/components/resources/ModerateTable/presenter.js +44 -46
- package/es/moderating/components/resources/ModerateTable/styles.js +23 -0
- package/es/moderating/components/resources/ModerateTable/theme.js +4 -2
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +63 -68
- package/es/moderating/components/resources/ModerateTableRow/styles.js +25 -0
- package/es/moderating/components/resources/ModerateTableRow/theme.js +4 -2
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +34 -41
- package/es/reporting/components/quizAnalysis/styles.js +27 -0
- package/es/reporting/components/quizAnalysis/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +43 -43
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +41 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +6 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +20 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +19 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +45 -47
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +52 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +32 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +14 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +38 -53
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +141 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +10 -7
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +80 -61
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +93 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +8 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +31 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +15 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +80 -79
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +75 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +4 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +47 -49
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +14 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +4 -2
- package/lib/banks/components/Bank/presenter.js +10 -5
- package/lib/banks/components/HeaderMenu/presenter.js +42 -1
- package/lib/banks/components/HeaderMenu/styles.js +3 -0
- package/lib/banks/components/NavWrapper/presenter.js +6 -1
- package/lib/banks/components/SharingModal/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/index.js +3 -1
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +22 -30
- package/lib/building/components/resources/quizEntry/QuizEntry/quizEntryPresenterWrapper.js +51 -0
- package/lib/building/components/resources/quizEntry/QuizEntry/styles.js +33 -0
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +34 -45
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/styles.js +38 -0
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +24 -33
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/styles.js +27 -0
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +26 -35
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/styles.js +38 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +30 -38
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +57 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +20 -22
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/styles.js +29 -0
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/theme.js +6 -3
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +36 -53
- package/lib/building/components/resources/quizEntry/QuizEntryShow/styles.js +95 -0
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +6 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +1 -1
- package/lib/common/components/layout/navbar/index.js +130 -39
- package/lib/common/components/layout/navbar/styles.js +16 -0
- package/lib/common/components/layout/navbar/theme.js +18 -0
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +38 -52
- package/lib/common/components/resources/stimulus/Stimulus/styles.js +70 -0
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +6 -3
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +36 -47
- package/lib/common/components/resources/stimulus/StimulusEdit/styles.js +54 -0
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +6 -3
- package/lib/common/components/shared/overlayEmotion/index.js +1 -1
- package/lib/common/components/shared/return_button/ReturnButton.js +4 -1
- package/lib/moderating/components/resources/ModerateTable/presenter.js +43 -50
- package/lib/moderating/components/resources/ModerateTable/styles.js +33 -0
- package/lib/moderating/components/resources/ModerateTable/theme.js +6 -3
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +61 -70
- package/lib/moderating/components/resources/ModerateTableRow/styles.js +33 -0
- package/lib/moderating/components/resources/ModerateTableRow/theme.js +6 -3
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +33 -43
- package/lib/reporting/components/quizAnalysis/styles.js +37 -0
- package/lib/reporting/components/quizAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +42 -47
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/styles.js +51 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +8 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +19 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/styles.js +27 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +45 -52
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/styles.js +62 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/ChoiceTypeWithInfo/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +28 -26
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/styles.js +24 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +37 -55
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/styles.js +149 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +12 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +81 -65
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/styles.js +103 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +10 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +30 -28
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/styles.js +23 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +82 -84
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/styles.js +85 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +6 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +43 -48
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/styles.js +22 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/theme.js +6 -3
- package/package.json +9 -9
- package/es/common/components/layout/navbar/presenter.js +0 -114
- package/lib/common/components/layout/navbar/presenter.js +0 -136
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var generateStyle = function generateStyle(componentTheme, props) {
|
|
13
|
+
var answerSummary = props.answerSummary;
|
|
14
|
+
var questions = answerSummary.questions;
|
|
15
|
+
var questionKeys = Object.keys(questions);
|
|
16
|
+
var exampleAnswers = questions[questionKeys[0]].answers;
|
|
17
|
+
var answerKeys = Object.keys(exampleAnswers).sort();
|
|
18
|
+
var tableHalfWidth = answerKeys.length <= 3;
|
|
19
|
+
return {
|
|
20
|
+
tableWrapper: {
|
|
21
|
+
display: 'flex',
|
|
22
|
+
flexBasis: '100%',
|
|
23
|
+
flexDirection: 'column',
|
|
24
|
+
paddingBottom: componentTheme.tableBottomPadding
|
|
25
|
+
},
|
|
26
|
+
iconWrapper: {
|
|
27
|
+
display: 'flex',
|
|
28
|
+
height: '100%',
|
|
29
|
+
minHeight: '47px',
|
|
30
|
+
width: '46px',
|
|
31
|
+
justifyContent: 'center',
|
|
32
|
+
alignItems: 'center'
|
|
33
|
+
},
|
|
34
|
+
iconCorrect: {
|
|
35
|
+
backgroundColor: componentTheme.colorGreen,
|
|
36
|
+
'svg': {
|
|
37
|
+
fill: 'white'
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
correctAnswerRow: {
|
|
41
|
+
borderColor: componentTheme.colorGreen,
|
|
42
|
+
borderStyle: 'solid',
|
|
43
|
+
'> span > span:nth-of-type(2)': {
|
|
44
|
+
minWidth: '46px',
|
|
45
|
+
padding: '12px 12px 12px 12px'
|
|
46
|
+
},
|
|
47
|
+
borderWidth: '2px 2px 2px 2px',
|
|
48
|
+
borderRadius: '4px 4px 4px 4px'
|
|
49
|
+
},
|
|
50
|
+
tableContainer: (0, _objectSpread2.default)({
|
|
51
|
+
'table tbody tr th': {
|
|
52
|
+
fontWeight: '400'
|
|
53
|
+
}
|
|
54
|
+
}, tableHalfWidth && {
|
|
55
|
+
width: 'calc(25% + 350px)',
|
|
56
|
+
maxWidth: '100%'
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var _default = generateStyle;
|
|
62
|
+
exports.default = _default;
|
|
@@ -3,12 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var spacing = _ref.spacing;
|
|
10
10
|
return {
|
|
11
11
|
tableBottomPadding: spacing.medium,
|
|
12
12
|
colorGreen: '#0b874b'
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var _default = generateComponentTheme;
|
|
17
|
+
exports.default = _default;
|
|
@@ -51,11 +51,11 @@ var ChoiceTypeWithInfo = /*#__PURE__*/function (_Component) {
|
|
|
51
51
|
choices = _this$props.choices,
|
|
52
52
|
index = _this$props.index;
|
|
53
53
|
var tableId = "".concat(itemId, "_").concat(index, "_choiceGroup");
|
|
54
|
-
var
|
|
54
|
+
var tableContainerSizeStyles = {};
|
|
55
55
|
return /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
56
56
|
itemId: tableId,
|
|
57
57
|
choices: choices,
|
|
58
|
-
|
|
58
|
+
tableContainerStyles: tableContainerSizeStyles
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
|
|
@@ -67,11 +67,11 @@ var NumericType = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
|
|
|
67
67
|
answerSummary = _this$props.answerSummary;
|
|
68
68
|
var incorrect_answer_choices = answerSummary.requirements.incorrect_answer_choices;
|
|
69
69
|
var tableId = "".concat(itemId, "_incorrect_choices");
|
|
70
|
-
var
|
|
70
|
+
var tableContainerStyles = {};
|
|
71
71
|
return (0, _emotion.jsx)(_index4.default, {
|
|
72
72
|
itemId: tableId,
|
|
73
73
|
choices: incorrect_answer_choices,
|
|
74
|
-
|
|
74
|
+
tableContainerStyles: tableContainerStyles
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -100,11 +100,11 @@ var ChoiceGroupTypeTable = (_dec = (0, _emotion.withStyle)(_styles.default, _the
|
|
|
100
100
|
index = _this$props.index;
|
|
101
101
|
var choices = blank.choices;
|
|
102
102
|
var tableId = "".concat(itemId, "_").concat(index, "_choiceGroup");
|
|
103
|
-
var
|
|
103
|
+
var tableContainerStyles = {};
|
|
104
104
|
return (0, _emotion.jsx)(_index.default, {
|
|
105
105
|
itemId: tableId,
|
|
106
106
|
choices: choices,
|
|
107
|
-
|
|
107
|
+
tableContainerStyles: tableContainerStyles
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
});
|
|
10
10
|
exports.AfsPartsContainer = void 0;
|
|
11
11
|
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
13
|
|
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
15
|
+
|
|
16
16
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
17
17
|
|
|
18
18
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
@@ -21,23 +21,15 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
21
21
|
|
|
22
22
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _emotion = require("@instructure/emotion");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
27
27
|
|
|
28
28
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
29
29
|
|
|
30
30
|
var _dec, _class, _class2, _temp;
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
componentId: 'DjkQc',
|
|
34
|
-
template: function template(theme) {
|
|
35
|
-
return "\n\n.DjkQc_SVtU{max-width:100%;width:calc(25% + 350px)}\n\n.DjkQc_ellB{margin-top:".concat(theme.marginOfTables || 'inherit', "}");
|
|
36
|
-
},
|
|
37
|
-
'tableContainer': 'DjkQc_SVtU',
|
|
38
|
-
'aggregateContainer': 'DjkQc_ellB'
|
|
39
|
-
};
|
|
40
|
-
var AfsPartsContainer = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
32
|
+
var AfsPartsContainer = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
41
33
|
(0, _inherits2.default)(AfsPartsContainer, _Component);
|
|
42
34
|
|
|
43
35
|
var _super = (0, _createSuper2.default)(AfsPartsContainer);
|
|
@@ -54,34 +46,44 @@ var AfsPartsContainer = (_dec = (0, _uiThemeable.themeable)(_theme.default, styl
|
|
|
54
46
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
55
47
|
|
|
56
48
|
_this.renderAggregationTable = function () {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
61
|
-
className: (0, _classnames.default)(styles.tableContainer, (0, _defineProperty2.default)({}, styles.aggregateContainer, afsTable))
|
|
62
|
-
}, aggregationTable);
|
|
49
|
+
return (0, _emotion.jsx)("div", {
|
|
50
|
+
css: _this.props.styles.tableContainer
|
|
51
|
+
}, _this.props.aggregationTable);
|
|
63
52
|
};
|
|
64
53
|
|
|
65
54
|
_this.renderAfsTable = function () {
|
|
66
55
|
var afsTable = _this.props.afsTable;
|
|
67
|
-
return
|
|
56
|
+
return (0, _emotion.jsx)("div", null, afsTable);
|
|
68
57
|
};
|
|
69
58
|
|
|
70
59
|
_this.render = function () {
|
|
71
|
-
var _this$
|
|
72
|
-
afsTable = _this$
|
|
73
|
-
aggregationTable = _this$
|
|
74
|
-
return
|
|
60
|
+
var _this$props = _this.props,
|
|
61
|
+
afsTable = _this$props.afsTable,
|
|
62
|
+
aggregationTable = _this$props.aggregationTable;
|
|
63
|
+
return (0, _emotion.jsx)(_react.default.Fragment, null, afsTable && _this.renderAfsTable(), aggregationTable && _this.renderAggregationTable());
|
|
75
64
|
};
|
|
76
65
|
|
|
77
66
|
return _this;
|
|
78
67
|
}
|
|
79
68
|
|
|
69
|
+
(0, _createClass2.default)(AfsPartsContainer, [{
|
|
70
|
+
key: "componentDidMount",
|
|
71
|
+
value: function componentDidMount() {
|
|
72
|
+
this.props.makeStyles();
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
key: "componentDidUpdate",
|
|
76
|
+
value: function componentDidUpdate() {
|
|
77
|
+
this.props.makeStyles();
|
|
78
|
+
}
|
|
79
|
+
}]);
|
|
80
80
|
return AfsPartsContainer;
|
|
81
81
|
}(_react.Component), _class2.propTypes = {
|
|
82
82
|
afsTable: _propTypes.default.node,
|
|
83
|
-
aggregationTable: _propTypes.default.node
|
|
84
|
-
|
|
83
|
+
aggregationTable: _propTypes.default.node,
|
|
84
|
+
styles: _propTypes.default.object,
|
|
85
|
+
makeStyles: _propTypes.default.func
|
|
86
|
+
}, _class2.defaultProps = {
|
|
85
87
|
afsTable: null,
|
|
86
88
|
aggregationTable: null
|
|
87
89
|
}, _temp)) || _class);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var generateStyle = function generateStyle(componentTheme, props) {
|
|
13
|
+
return {
|
|
14
|
+
tableContainer: (0, _objectSpread2.default)({
|
|
15
|
+
width: 'calc(25% + 350px)',
|
|
16
|
+
maxWidth: '100%'
|
|
17
|
+
}, props.afsTable && {
|
|
18
|
+
marginTop: componentTheme.marginOfTables
|
|
19
|
+
})
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var _default = generateStyle;
|
|
24
|
+
exports.default = _default;
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var spacing = _ref.spacing;
|
|
10
10
|
return {
|
|
11
11
|
marginOfTables: spacing.medium
|
|
12
12
|
};
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
var _default = generateComponentTheme;
|
|
16
|
+
exports.default = _default;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -15,7 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
15
13
|
|
|
16
14
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
17
15
|
|
|
18
|
-
var _react =
|
|
16
|
+
var _react = require("react");
|
|
19
17
|
|
|
20
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
21
19
|
|
|
@@ -27,52 +25,32 @@ var _propTypes2 = _interopRequireDefault(require("prop-types"));
|
|
|
27
25
|
|
|
28
26
|
var _uiIcons = require("@instructure/ui-icons");
|
|
29
27
|
|
|
30
|
-
var
|
|
28
|
+
var _emotion = require("@instructure/emotion");
|
|
31
29
|
|
|
32
30
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
33
31
|
|
|
34
|
-
var
|
|
32
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
35
33
|
|
|
36
|
-
var
|
|
34
|
+
var _uiFlex = require("@instructure/ui-flex");
|
|
37
35
|
|
|
38
36
|
var _uiText = require("@instructure/ui-text");
|
|
39
37
|
|
|
40
38
|
var _dec, _class, _class2, _temp;
|
|
41
39
|
|
|
42
|
-
var styles = {
|
|
43
|
-
componentId: 'fMmrG',
|
|
44
|
-
template: function template(theme) {
|
|
45
|
-
return "\n\n.fMmrG_cvRx{align-items:center;display:flex;height:100%;justify-content:center;min-height:47px;width:46px}\n\n.fMmrG_fPIL{min-width:500px}\n\n.fMmrG_fPIL table{border-collapse:separate;border-spacing:0 12px}\n\n.fMmrG_fPIL thead th{border-color:".concat(theme.colorHeaderBottomBorder || 'inherit', ";border-style:solid;border-width:0 0 1px 0}\n\n.fMmrG_fPIL table tbody tr td{border-style:solid;border-width:2px 0 2px 0;width:33.33%}\n\n.fMmrG_fPIL table tbody tr th:first-child{border-radius:4px 0 0 4px;border-style:solid;border-width:2px 0 2px 2px;font-weight:400}\n\n.fMmrG_fPIL table tbody tr td:last-child{border-radius:0 4px 4px 0;border-style:solid;border-width:2px 2px 2px 0}\n\n.fMmrG_dzqP table tbody tr:first-child td,.fMmrG_dzqP table tbody tr:first-child th{border-color:").concat(theme.colorGrey || 'inherit', "}\n\n.fMmrG_fZpZ table tbody tr:first-child td,.fMmrG_fZpZ table tbody tr:first-child th{border-color:").concat(theme.colorGreen || 'inherit', "}\n\n.fMmrG_fZpZ table tbody tr:nth-child(2) td,.fMmrG_fZpZ table tbody tr:nth-child(2) th{border-color:").concat(theme.colorRed || 'inherit', "}\n\n.fMmrG_dgTJ table tbody tr:first-child td,.fMmrG_dgTJ table tbody tr:first-child th{border-color:").concat(theme.colorGreen || 'inherit', "}\n\n.fMmrG_dgTJ table tbody tr:nth-child(2) td,.fMmrG_dgTJ table tbody tr:nth-child(2) th{border-color:").concat(theme.colorRed || 'inherit', "}\n\n.fMmrG_dgTJ table tbody tr:nth-child(3) td,.fMmrG_dgTJ table tbody tr:nth-child(3) th{border-color:").concat(theme.colorGrey || 'inherit', "}\n\n.fMmrG_bYLj table tbody tr:first-child td,.fMmrG_bYLj table tbody tr:first-child th{border-color:").concat(theme.colorGreen || 'inherit', "}\n\n.fMmrG_bYLj table tbody tr:nth-child(2) td,.fMmrG_bYLj table tbody tr:nth-child(2) th{border-color:").concat(theme.colorBlue || 'inherit', "}\n\n.fMmrG_bYLj table tbody tr:nth-child(3) td,.fMmrG_bYLj table tbody tr:nth-child(3) th{border-color:").concat(theme.colorRed || 'inherit', "}\n\n.fMmrG_bYLj table tbody tr:nth-child(4) td,.fMmrG_bYLj table tbody tr:nth-child(4) th{border-color:").concat(theme.colorGrey || 'inherit', "}\n\n.fMmrG_bvau{background-color:").concat(theme.colorGreen || 'inherit', "}\n\n.fMmrG_cxOH{background-color:").concat(theme.colorRed || 'inherit', "}\n\n.fMmrG_dsqS{background-color:").concat(theme.colorBlue || 'inherit', "}\n\n.fMmrG_eKcq{background-color:").concat(theme.colorGrey || 'inherit', "}\n\n.fMmrG_euQM{padding:12px 0 12px 10px}\n\n.fMmrG_fuuc{padding-left:45px}\n\n.fMmrG_vDgC svg{fill:#fff}\n\n.fMmrG_fHMm{border-color:").concat(theme.colorHeaderBottomBorder || 'inherit', ";border-style:solid;border-width:0 0 1px 0}");
|
|
46
|
-
},
|
|
47
|
-
'iconWrapper': 'fMmrG_cvRx',
|
|
48
|
-
'collapsingTable': 'fMmrG_fPIL',
|
|
49
|
-
'onlyNoanswer': 'fMmrG_dzqP',
|
|
50
|
-
'correctIncorrect': 'fMmrG_fZpZ',
|
|
51
|
-
'correctIncorrectNoanswer': 'fMmrG_dgTJ',
|
|
52
|
-
'correctIncorrectNoanswerGraded': 'fMmrG_bYLj',
|
|
53
|
-
'correctBackground': 'fMmrG_bvau',
|
|
54
|
-
'incorrectBackground': 'fMmrG_cxOH',
|
|
55
|
-
'gradedBackground': 'fMmrG_dsqS',
|
|
56
|
-
'noAnswerBackground': 'fMmrG_eKcq',
|
|
57
|
-
'labelWrapper': 'fMmrG_euQM',
|
|
58
|
-
'firstHeaderCell': 'fMmrG_fuuc',
|
|
59
|
-
'iconWhite': 'fMmrG_vDgC',
|
|
60
|
-
'headerCell': 'fMmrG_fHMm'
|
|
61
|
-
};
|
|
62
40
|
var noAnswerKey = 'noAnswer';
|
|
63
41
|
var incorrectKey = 'incorrect';
|
|
64
42
|
var correctKey = 'correct';
|
|
65
43
|
var gradedKey = 'graded';
|
|
66
44
|
|
|
67
|
-
var _ref =
|
|
45
|
+
var _ref = (0, _emotion.jsx)(_uiIcons.IconCheckSolid, null);
|
|
68
46
|
|
|
69
|
-
var _ref2 =
|
|
47
|
+
var _ref2 = (0, _emotion.jsx)(_uiIcons.IconGradebookSolid, null);
|
|
70
48
|
|
|
71
|
-
var _ref3 =
|
|
49
|
+
var _ref3 = (0, _emotion.jsx)(_uiIcons.IconXSolid, null);
|
|
72
50
|
|
|
73
|
-
var _ref4 =
|
|
51
|
+
var _ref4 = (0, _emotion.jsx)(_uiIcons.IconNoSolid, null);
|
|
74
52
|
|
|
75
|
-
var AggregationTable = (_dec = (0,
|
|
53
|
+
var AggregationTable = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
76
54
|
(0, _inherits2.default)(AggregationTable, _Component);
|
|
77
55
|
|
|
78
56
|
var _super = (0, _createSuper2.default)(AggregationTable);
|
|
@@ -94,52 +72,54 @@ var AggregationTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
|
|
|
94
72
|
var answerHeaderId = "answer-frequency-summary-aggregate-answer-".concat(itemId);
|
|
95
73
|
var respondentsHeaderId = "answer-frequency-summary-aggregate-respondents-".concat(itemId);
|
|
96
74
|
var percentageHeaderId = "answer-frequency-summary-aggregate-percentage-".concat(itemId);
|
|
97
|
-
return
|
|
75
|
+
return (0, _emotion.jsx)(_uiTable.Table.Head, null, (0, _emotion.jsx)(_uiTable.Table.Row, null, (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
98
76
|
id: answerHeaderId
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
}, (0, _formatMessage.default)('Result'))),
|
|
77
|
+
}, (0, _emotion.jsx)("span", {
|
|
78
|
+
css: _this.props.styles.firstHeaderCell
|
|
79
|
+
}, (0, _formatMessage.default)('Result'))), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
102
80
|
id: respondentsHeaderId,
|
|
103
81
|
textAlign: "center"
|
|
104
|
-
}, (0, _formatMessage.default)('Respondents')),
|
|
82
|
+
}, (0, _formatMessage.default)('Respondents')), (0, _emotion.jsx)(_uiTable.Table.ColHeader, {
|
|
105
83
|
id: percentageHeaderId,
|
|
106
84
|
textAlign: "center"
|
|
107
85
|
}, (0, _formatMessage.default)('Percentage'))));
|
|
108
86
|
};
|
|
109
87
|
|
|
110
88
|
_this.renderRow = function (key, icon, label, count, percentage) {
|
|
111
|
-
var backgroundColor = styles["".concat(key, "Background")];
|
|
89
|
+
var backgroundColor = _this.props.styles["".concat(key, "Background")];
|
|
90
|
+
|
|
112
91
|
var concatenatedPercentage = "".concat(percentage, "%");
|
|
113
|
-
return
|
|
92
|
+
return (0, _emotion.jsx)(_uiTable.Table.Row, {
|
|
114
93
|
key: key
|
|
115
|
-
},
|
|
94
|
+
}, (0, _emotion.jsx)(_uiTable.Table.RowHeader, {
|
|
116
95
|
themeOverride: {
|
|
117
96
|
padding: '0px'
|
|
118
97
|
}
|
|
119
|
-
},
|
|
98
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
120
99
|
direction: "row",
|
|
121
100
|
alignItems: "center"
|
|
122
|
-
},
|
|
101
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
123
102
|
width: "46px",
|
|
124
103
|
textAlign: "center",
|
|
125
104
|
align: "stretch"
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
}, icon)),
|
|
105
|
+
}, (0, _emotion.jsx)("div", {
|
|
106
|
+
css: [_this.props.styles.iconWrapper, backgroundColor]
|
|
107
|
+
}, icon)), (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
129
108
|
shouldShrink: true
|
|
130
|
-
},
|
|
131
|
-
|
|
132
|
-
|
|
109
|
+
}, (0, _emotion.jsx)("div", {
|
|
110
|
+
"data-testid": "label-wrapper",
|
|
111
|
+
css: _this.props.styles.labelWrapper
|
|
112
|
+
}, (0, _emotion.jsx)(_uiText.Text, null, label))))), (0, _emotion.jsx)(_uiTable.Table.Cell, {
|
|
133
113
|
themeOverride: {
|
|
134
114
|
padding: '0px'
|
|
135
115
|
},
|
|
136
116
|
textAlign: "center"
|
|
137
|
-
},
|
|
117
|
+
}, (0, _emotion.jsx)(_uiText.Text, null, count)), (0, _emotion.jsx)(_uiTable.Table.Cell, {
|
|
138
118
|
themeOverride: {
|
|
139
119
|
padding: '0px'
|
|
140
120
|
},
|
|
141
121
|
textAlign: "center"
|
|
142
|
-
},
|
|
122
|
+
}, (0, _emotion.jsx)(_uiText.Text, null, concatenatedPercentage)));
|
|
143
123
|
};
|
|
144
124
|
|
|
145
125
|
_this.gradedExist = function () {
|
|
@@ -216,11 +196,12 @@ var AggregationTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
|
|
|
216
196
|
|
|
217
197
|
_this.render = function () {
|
|
218
198
|
var popover = !_this.noAnswerExist();
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
199
|
+
var tableStyles = [_this.props.styles.collapsingTable, _this.props.styles[_this.getColorProfile()]];
|
|
200
|
+
return (0, _emotion.jsx)("div", {
|
|
201
|
+
css: tableStyles
|
|
202
|
+
}, (0, _emotion.jsx)(_uiTable.Table, {
|
|
222
203
|
caption: (0, _formatMessage.default)('Answer Frequency Summary Aggregates')
|
|
223
|
-
}, _this.renderHeaderRow(popover),
|
|
204
|
+
}, _this.renderHeaderRow(popover), (0, _emotion.jsx)(_uiTable.Table.Body, null, _this.correctExist() && _this.renderCorrect(), _this.gradedExist() && _this.renderGraded(), _this.incorrectExist() && _this.renderIncorrect(), _this.noAnswerExist() && _this.renderNoAnswer())));
|
|
224
205
|
};
|
|
225
206
|
|
|
226
207
|
return _this;
|
|
@@ -229,6 +210,7 @@ var AggregationTable = (_dec = (0, _uiThemeable.themeable)(_theme.default, style
|
|
|
229
210
|
return AggregationTable;
|
|
230
211
|
}(_react.Component), _class2.propTypes = {
|
|
231
212
|
itemId: _propTypes2.default.number.isRequired,
|
|
232
|
-
answerSummary: _propTypes.onlyAggregatePropType
|
|
233
|
-
|
|
213
|
+
answerSummary: _propTypes.onlyAggregatePropType.isRequired,
|
|
214
|
+
styles: _propTypes2.default.object
|
|
215
|
+
}, _temp)) || _class);
|
|
234
216
|
exports.AggregationTable = AggregationTable;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var generateStyle = function generateStyle(componentTheme) {
|
|
9
|
+
return {
|
|
10
|
+
iconWrapper: {
|
|
11
|
+
display: 'flex',
|
|
12
|
+
height: '100%',
|
|
13
|
+
minHeight: '47px',
|
|
14
|
+
width: '46px',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
'svg': {
|
|
18
|
+
fill: 'white'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
collapsingTable: {
|
|
22
|
+
minWidth: '500px',
|
|
23
|
+
'table': {
|
|
24
|
+
borderCollapse: 'separate',
|
|
25
|
+
borderSpacing: '0 12px'
|
|
26
|
+
},
|
|
27
|
+
'thead th': {
|
|
28
|
+
borderWidth: '0 0 1px 0',
|
|
29
|
+
borderStyle: 'solid',
|
|
30
|
+
borderColor: componentTheme.colorHeaderBottomBorder
|
|
31
|
+
},
|
|
32
|
+
'table tbody tr td': {
|
|
33
|
+
width: '33.33%',
|
|
34
|
+
borderStyle: 'solid',
|
|
35
|
+
borderWidth: '2px 0 2px 0'
|
|
36
|
+
},
|
|
37
|
+
'table tbody tr th:first-of-type': {
|
|
38
|
+
borderStyle: 'solid',
|
|
39
|
+
borderRadius: '4px 0 0 4px',
|
|
40
|
+
borderWidth: '2px 0 2px 2px',
|
|
41
|
+
fontWeight: '400'
|
|
42
|
+
},
|
|
43
|
+
'table tbody tr td:last-child': {
|
|
44
|
+
borderStyle: 'solid',
|
|
45
|
+
borderWidth: '2px 2px 2px 0',
|
|
46
|
+
borderRadius: '0 4px 4px 0'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
onlyNoanswer: {
|
|
50
|
+
'tbody tr:nth-of-type(1) td': {
|
|
51
|
+
borderColor: componentTheme.colorGrey
|
|
52
|
+
},
|
|
53
|
+
'table tbody tr:nth-of-type(1) th': {
|
|
54
|
+
borderColor: componentTheme.colorGrey
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
correctIncorrect: {
|
|
58
|
+
'table tbody tr:nth-of-type(1) td': {
|
|
59
|
+
borderColor: componentTheme.colorGreen
|
|
60
|
+
},
|
|
61
|
+
'table tbody tr:nth-of-type(1) th': {
|
|
62
|
+
borderColor: componentTheme.colorGreen
|
|
63
|
+
},
|
|
64
|
+
'table tbody tr:nth-of-type(2) td': {
|
|
65
|
+
borderColor: componentTheme.colorRed
|
|
66
|
+
},
|
|
67
|
+
'table tbody tr:nth-of-type(2) th': {
|
|
68
|
+
borderColor: componentTheme.colorRed
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
correctIncorrectNoanswer: {
|
|
72
|
+
'table tbody tr:nth-of-type(1) td': {
|
|
73
|
+
borderColor: componentTheme.colorGreen
|
|
74
|
+
},
|
|
75
|
+
'table tbody tr:nth-of-type(1) th': {
|
|
76
|
+
borderColor: componentTheme.colorGreen
|
|
77
|
+
},
|
|
78
|
+
'table tbody tr:nth-of-type(2) td': {
|
|
79
|
+
borderColor: componentTheme.colorRed
|
|
80
|
+
},
|
|
81
|
+
'table tbody tr:nth-of-type(2) th': {
|
|
82
|
+
borderColor: componentTheme.colorRed
|
|
83
|
+
},
|
|
84
|
+
'table tbody tr:nth-of-type(3) td': {
|
|
85
|
+
borderColor: componentTheme.colorGrey
|
|
86
|
+
},
|
|
87
|
+
'table tbody tr:nth-of-type(3) th': {
|
|
88
|
+
borderColor: componentTheme.colorGrey
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
correctIncorrectNoanswerGraded: {
|
|
92
|
+
'table tbody tr:nth-of-type(1) td': {
|
|
93
|
+
borderColor: componentTheme.colorGreen
|
|
94
|
+
},
|
|
95
|
+
'table tbody tr:nth-of-type(1) th': {
|
|
96
|
+
borderColor: componentTheme.colorGreen
|
|
97
|
+
},
|
|
98
|
+
'table tbody tr:nth-of-type(2) td': {
|
|
99
|
+
borderColor: componentTheme.colorBlue
|
|
100
|
+
},
|
|
101
|
+
'table tbody tr:nth-of-type(2) th': {
|
|
102
|
+
borderColor: componentTheme.colorBlue
|
|
103
|
+
},
|
|
104
|
+
'table tbody tr:nth-of-type(3) td': {
|
|
105
|
+
borderColor: componentTheme.colorRed
|
|
106
|
+
},
|
|
107
|
+
'table tbody tr:nth-of-type(3) th': {
|
|
108
|
+
borderColor: componentTheme.colorRed
|
|
109
|
+
},
|
|
110
|
+
'table tbody tr:nth-of-type(4) td': {
|
|
111
|
+
borderColor: componentTheme.colorGrey
|
|
112
|
+
},
|
|
113
|
+
'table tbody tr:nth-of-type(4) th': {
|
|
114
|
+
borderColor: componentTheme.colorGrey
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
correctBackground: {
|
|
118
|
+
backgroundColor: componentTheme.colorGreen
|
|
119
|
+
},
|
|
120
|
+
incorrectBackground: {
|
|
121
|
+
backgroundColor: componentTheme.colorRed
|
|
122
|
+
},
|
|
123
|
+
gradedBackground: {
|
|
124
|
+
backgroundColor: componentTheme.colorBlue
|
|
125
|
+
},
|
|
126
|
+
noAnswerBackground: {
|
|
127
|
+
backgroundColor: componentTheme.colorGrey
|
|
128
|
+
},
|
|
129
|
+
labelWrapper: {
|
|
130
|
+
padding: '12px 0 12px 10px'
|
|
131
|
+
},
|
|
132
|
+
firstHeaderCell: {
|
|
133
|
+
paddingLeft: '45px'
|
|
134
|
+
},
|
|
135
|
+
iconWhite: {
|
|
136
|
+
'svg': {
|
|
137
|
+
fill: 'white'
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
headerCell: {
|
|
141
|
+
borderWidth: '0 0 1px 0',
|
|
142
|
+
borderStyle: 'solid',
|
|
143
|
+
borderColor: componentTheme.colorHeaderBottomBorder
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
var _default = generateStyle;
|
|
149
|
+
exports.default = _default;
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
|
+
var colors = _ref.colors;
|
|
9
10
|
return {
|
|
10
|
-
colorGreen:
|
|
11
|
-
colorBlue:
|
|
12
|
-
colorRed:
|
|
13
|
-
colorGrey:
|
|
14
|
-
colorHeaderBottomBorder:
|
|
11
|
+
colorGreen: colors.shamrock,
|
|
12
|
+
colorBlue: colors.brand,
|
|
13
|
+
colorRed: colors.crimson,
|
|
14
|
+
colorGrey: colors.ash,
|
|
15
|
+
colorHeaderBottomBorder: colors.tiara,
|
|
15
16
|
cellPadding: '13.5px 13.5px;'
|
|
16
17
|
};
|
|
17
|
-
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var _default = generateComponentTheme;
|
|
21
|
+
exports.default = _default;
|