@instructure/quiz-core 20.38.0 → 21.0.1-rc.0
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/theme.js +1 -1
- package/es/banks/components/BankEntry/theme.js +5 -5
- package/es/banks/components/BankEntryRow/styles.js +0 -1
- package/es/banks/components/BankEntryRow/theme.js +4 -4
- package/es/banks/components/Banks/theme.js +2 -2
- package/es/banks/components/BanksList/theme.js +4 -4
- package/es/banks/components/CreateBankModal/presenter.js +22 -24
- package/es/banks/components/EditBankModal/presenter.js +24 -22
- package/es/banks/components/NavWrapper/theme.js +3 -3
- package/es/banks/components/SharingModal/presenter.js +0 -4
- package/es/banks/components/SharingModal/theme.js +1 -1
- package/es/building/components/resources/ActionButtons/theme.js +1 -1
- package/es/building/components/resources/AddToBankOptions/theme.js +2 -2
- package/es/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/es/building/components/resources/quiz/title/Edit/theme.js +1 -1
- package/es/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
- package/es/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
- package/es/common/components/ConfirmationModal/presenter.js +10 -7
- package/es/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
- package/es/common/components/PrintFontSizeModal/theme.js +1 -1
- package/es/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
- package/es/common/components/layout/header/Timer/theme.js +3 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/es/common/components/layout/navbar/index.js +0 -3
- package/es/common/components/layout/navbar/theme.js +1 -1
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Sidebar/theme.js +10 -10
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
- package/es/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
- package/es/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -4
- package/es/common/components/resources/WarningWrapper/theme.js +1 -1
- package/es/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/es/common/components/resources/positionBox/theme.js +2 -2
- package/es/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/es/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
- package/es/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/es/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
- package/es/common/components/resources/stimulus/Stimulus/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
- package/es/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
- package/es/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/es/common/components/shared/Card/CardContent/theme.js +2 -2
- package/es/common/components/shared/InteractionTypes/theme.js +1 -1
- package/es/common/components/shared/PaginatedCollection/theme.js +1 -1
- package/es/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
- package/es/common/components/shared/errors/theme.js +1 -1
- package/es/common/components/shared/file_selector/theme.js +2 -2
- package/es/common/components/shared/overlay/theme.js +1 -1
- package/es/moderating/components/events/theme.js +1 -1
- package/es/moderating/components/resources/ModerateTable/theme.js +1 -1
- package/es/reporting/components/charts/Distribution/theme.js +2 -2
- package/es/reporting/components/charts/Legend/theme.js +2 -2
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/es/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
- package/lib/banks/components/Bank/theme.js +1 -1
- package/lib/banks/components/BankEntry/theme.js +5 -5
- package/lib/banks/components/BankEntryRow/styles.js +0 -1
- package/lib/banks/components/BankEntryRow/theme.js +4 -4
- package/lib/banks/components/Banks/theme.js +2 -2
- package/lib/banks/components/BanksList/theme.js +4 -4
- package/lib/banks/components/CreateBankModal/presenter.js +23 -24
- package/lib/banks/components/EditBankModal/presenter.js +25 -22
- package/lib/banks/components/NavWrapper/theme.js +3 -3
- package/lib/banks/components/SharingModal/presenter.js +0 -4
- package/lib/banks/components/SharingModal/theme.js +1 -1
- package/lib/building/components/resources/ActionButtons/theme.js +1 -1
- package/lib/building/components/resources/AddToBankOptions/theme.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/theme.js +1 -1
- package/lib/building/components/resources/quiz/title/Edit/theme.js +1 -1
- package/lib/building/components/resources/quiz/title/Title/theme.js +3 -3
- package/lib/building/components/resources/quizEntry/QuizEntry/theme.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/theme.js +3 -3
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/theme.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/theme.js +5 -5
- package/lib/common/components/ConfirmationModal/presenter.js +10 -7
- package/lib/common/components/ImportModal/ImportFileSelector/theme.js +4 -4
- package/lib/common/components/PrintFontSizeModal/theme.js +1 -1
- package/lib/common/components/layout/header/HeaderMenuButton/theme.js +1 -1
- package/lib/common/components/layout/header/Timer/theme.js +3 -3
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/lib/common/components/layout/navbar/index.js +0 -3
- package/lib/common/components/layout/navbar/theme.js +1 -1
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +2 -2
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +10 -10
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +5 -5
- package/lib/common/components/layout/sidebar/Stimulus/Collection/theme.js +1 -1
- package/lib/common/components/layout/sidebar/Stimulus/Summary/theme.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +4 -4
- package/lib/common/components/resources/WarningWrapper/theme.js +1 -1
- package/lib/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/lib/common/components/resources/positionBox/theme.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Body/theme.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Button/theme.js +4 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/lib/common/components/resources/quiz/AddContent/Popover/theme.js +1 -1
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/theme.js +4 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/theme.js +4 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/theme.js +1 -1
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +11 -5
- package/lib/common/components/resources/stimulus/Stimulus/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +17 -9
- package/lib/common/components/resources/stimulus/StimulusEdit/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/theme.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusShowInfo/index.js +7 -5
- package/lib/common/components/shared/Card/CardContent/theme.js +2 -2
- package/lib/common/components/shared/InteractionTypes/theme.js +1 -1
- package/lib/common/components/shared/PaginatedCollection/theme.js +1 -1
- package/lib/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +5 -5
- package/lib/common/components/shared/errors/theme.js +1 -1
- package/lib/common/components/shared/file_selector/theme.js +2 -2
- package/lib/common/components/shared/overlay/theme.js +1 -1
- package/lib/moderating/components/events/theme.js +1 -1
- package/lib/moderating/components/resources/ModerateTable/theme.js +1 -1
- package/lib/reporting/components/charts/Distribution/theme.js +2 -2
- package/lib/reporting/components/charts/Legend/theme.js +2 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/theme.js +8 -8
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/theme.js +4 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/theme.js +5 -5
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/theme.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/theme.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js +2 -2
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/lib/reporting/components/resources/QuizAndItemAnalysis/theme.js +1 -1
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/theme.js +1 -1
- package/package.json +78 -78
- package/es/banks/components/CreateBankModal/styles.js +0 -15
- package/es/banks/components/CreateBankModal/theme.js +0 -10
- package/es/banks/components/EditBankModal/styles.js +0 -12
- package/es/banks/components/EditBankModal/theme.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -10
- package/lib/banks/components/CreateBankModal/styles.js +0 -22
- package/lib/banks/components/CreateBankModal/theme.js +0 -17
- package/lib/banks/components/EditBankModal/styles.js +0 -19
- package/lib/banks/components/EditBankModal/theme.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -17
|
@@ -5,7 +5,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
5
5
|
return {
|
|
6
6
|
emptyPadding: spacing.small,
|
|
7
7
|
emptyFontSize: typography.fontSizeLarge,
|
|
8
|
-
emptyColor: colors.
|
|
8
|
+
emptyColor: colors.contrasts.grey4570
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export default generateComponentTheme;
|
|
@@ -8,7 +8,6 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { Overlay, Mask } from '@instructure/ui-overlays';
|
|
9
9
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
10
10
|
import { QuizzesSpinner as Spinner } from "../spinner/Spinner.js";
|
|
11
|
-
import elementsForSelectors from "../../../util/ElementsForSelectors.js";
|
|
12
11
|
import CustomPropTypes from "../../../util/CustomPropTypes.js";
|
|
13
12
|
import { printWithCss, ensureImagesLoaded } from "../../../util/printUtils.js";
|
|
14
13
|
import PrintFontSizeModal from "../../PrintFontSizeModal/index.js";
|
|
@@ -74,9 +73,6 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
74
73
|
});
|
|
75
74
|
_this.props.openPrintFontSizeModal();
|
|
76
75
|
};
|
|
77
|
-
_this.applicationElement = function () {
|
|
78
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
79
|
-
};
|
|
80
76
|
_this.onExited = function () {};
|
|
81
77
|
_this.fontSize = '';
|
|
82
78
|
return _this;
|
|
@@ -85,7 +81,6 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
85
81
|
key: "render",
|
|
86
82
|
value: function render() {
|
|
87
83
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Overlay, {
|
|
88
|
-
applicationElement: this.applicationElement,
|
|
89
84
|
open: this.state.waitingForPrintingToBeReady,
|
|
90
85
|
shouldContainFocus: true,
|
|
91
86
|
transition: "fade",
|
|
@@ -4,16 +4,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
borders = _ref.borders;
|
|
5
5
|
return {
|
|
6
6
|
DnDZoneBorderWidth: borders.widthSmall,
|
|
7
|
-
DnDZoneBorderColor: colors.
|
|
8
|
-
DnDZoneBackgroundColor: colors.
|
|
7
|
+
DnDZoneBorderColor: colors.contrasts.grey1214,
|
|
8
|
+
DnDZoneBackgroundColor: colors.contrasts.grey1111,
|
|
9
9
|
DnDZonePadding: spacing.medium,
|
|
10
10
|
// sidebar:
|
|
11
11
|
sidebarDnDZoneBorderWidth: borders.widthSmall,
|
|
12
|
-
sidebarDnDZoneBorderColor: colors.
|
|
13
|
-
sidebarDnDZoneBackgroundColor: colors.
|
|
12
|
+
sidebarDnDZoneBorderColor: colors.contrasts.grey100100,
|
|
13
|
+
sidebarDnDZoneBackgroundColor: colors.contrasts.grey1111,
|
|
14
14
|
sidebarDnDZonePadding: spacing.small,
|
|
15
15
|
sidebarDnDZoneMargin: spacing.xSmall,
|
|
16
|
-
sidebarDnDZoneColor: colors.
|
|
16
|
+
sidebarDnDZoneColor: colors.contrasts.grey125125
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
export default generateComponentTheme;
|
|
@@ -4,7 +4,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
return {
|
|
5
5
|
errorFontFamily: typography.fontFamily,
|
|
6
6
|
errorFontSize: typography.fontSizeSmall,
|
|
7
|
-
errorColor: colors.
|
|
7
|
+
errorColor: colors.contrasts.red4570
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default generateComponentTheme;
|
|
@@ -3,9 +3,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
spacing = _ref.spacing,
|
|
4
4
|
borders = _ref.borders;
|
|
5
5
|
return {
|
|
6
|
-
dropzoneBackgroundColor: colors.
|
|
6
|
+
dropzoneBackgroundColor: colors.contrasts.grey1111,
|
|
7
7
|
dropzoneBorderWidth: borders.widthSmall,
|
|
8
|
-
dropzoneBorderColor: colors.
|
|
8
|
+
dropzoneBorderColor: colors.contrasts.grey4570,
|
|
9
9
|
dropzonePadding: spacing.medium
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -6,7 +6,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
embeddedImageMargin: spacing.xSmall,
|
|
7
7
|
embeddedImagePadding: spacing.small,
|
|
8
8
|
mediaToggleMargin: spacing.xSmall,
|
|
9
|
-
mediaToggleColor: colors.
|
|
9
|
+
mediaToggleColor: colors.contrasts.grey1214
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
export default generateComponentTheme;
|
|
@@ -3,7 +3,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
colors = _ref.colors;
|
|
4
4
|
return {
|
|
5
5
|
emptyTextMargin: spacing.small,
|
|
6
|
-
pageBackgroundColor: colors.
|
|
6
|
+
pageBackgroundColor: colors.contrasts.white1010
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export default generateComponentTheme;
|
|
@@ -2,8 +2,8 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
2
2
|
var colors = _ref.colors,
|
|
3
3
|
typography = _ref.typography;
|
|
4
4
|
return {
|
|
5
|
-
barFillColor: colors.
|
|
6
|
-
barStarFillColor: colors.
|
|
5
|
+
barFillColor: colors.contrasts.blue4570,
|
|
6
|
+
barStarFillColor: colors.contrasts.orange4570,
|
|
7
7
|
barLabelColor: colors.textDarkest,
|
|
8
8
|
barLabelFontFamily: typography.fontFamily,
|
|
9
9
|
barLabelFontSize: typography.fontSizeSmall,
|
|
@@ -5,11 +5,11 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
5
5
|
typography = _ref.typography;
|
|
6
6
|
return {
|
|
7
7
|
containerBorderWidth: borders.widthSmall,
|
|
8
|
-
containerBorderColor: colors.
|
|
8
|
+
containerBorderColor: colors.contrasts.grey1214,
|
|
9
9
|
seriesContainerMargin: spacing.small,
|
|
10
10
|
seriesContainerRowMargin: spacing.medium,
|
|
11
11
|
seriesSwatchMargin: spacing.small,
|
|
12
|
-
seriesSwatchBackgroundColor: colors.
|
|
12
|
+
seriesSwatchBackgroundColor: colors.contrasts.blue4570,
|
|
13
13
|
seriesLabelFontFamily: typography.fontFamily,
|
|
14
14
|
seriesLabelFontSize: typography.fontSizeXSmall,
|
|
15
15
|
seriesLabelColor: colors.textDarkest
|
|
@@ -6,20 +6,20 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
borders = _ref.borders,
|
|
7
7
|
transitions = _ref.transitions;
|
|
8
8
|
return {
|
|
9
|
-
contentCellBorderColor: colors.
|
|
9
|
+
contentCellBorderColor: colors.contrasts.grey1214,
|
|
10
10
|
answerRowCellPadding: spacing.xSmall,
|
|
11
|
-
answerRowCorrectBackgroundColor: colors.
|
|
12
|
-
answerRowAnswerIconColor: colors.
|
|
11
|
+
answerRowCorrectBackgroundColor: colors.contrasts.white1010,
|
|
12
|
+
answerRowAnswerIconColor: colors.contrasts.green4570,
|
|
13
13
|
answerRowCorrectTextFieldFontWeight: typography.fontWeightBold,
|
|
14
|
-
answerRowCorrectBarBackgroundColor: colors.
|
|
14
|
+
answerRowCorrectBarBackgroundColor: colors.contrasts.green4570,
|
|
15
15
|
answerIconFontSize: typography.fontSizeXSmall,
|
|
16
|
-
answerIconColor: colors.
|
|
16
|
+
answerIconColor: colors.contrasts.grey4570,
|
|
17
17
|
answerTextfieldFontWeight: typography.fontWeightNormal,
|
|
18
|
-
respondentLinkColor: colors.
|
|
19
|
-
respondentLinkPresentColor: colors.
|
|
18
|
+
respondentLinkColor: colors.contrasts.grey4570,
|
|
19
|
+
respondentLinkPresentColor: colors.contrasts.blue4570,
|
|
20
20
|
answerRatioPaddingLeft: spacing.small,
|
|
21
21
|
barMinWidth: borders.widthSmall,
|
|
22
|
-
barBackgroundColor: colors.
|
|
22
|
+
barBackgroundColor: colors.contrasts.grey125125,
|
|
23
23
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
24
24
|
barTransition: "width ".concat(transitions.duration)
|
|
25
25
|
};
|
|
@@ -6,20 +6,20 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
return {
|
|
7
7
|
itemAnalysisRowPadding: spacing.small,
|
|
8
8
|
itemAnalysisRowMargin: spacing.small,
|
|
9
|
-
headerTextColor: colors.
|
|
9
|
+
headerTextColor: colors.contrasts.grey4570,
|
|
10
10
|
headerTextFontSize: typography.fontSizeXSmall,
|
|
11
11
|
metricNoteFontSize: typography.fontSizeMedium,
|
|
12
|
-
metricNoteColor: colors.
|
|
12
|
+
metricNoteColor: colors.contrasts.grey4570,
|
|
13
13
|
metricsRowLowerPadding: spacing.large,
|
|
14
14
|
stemFontSize: typography.fontSizeXSmall,
|
|
15
15
|
stemLineHeight: typography.lineHeight,
|
|
16
16
|
stemMargin: spacing.small,
|
|
17
17
|
emptyTextPadding: spacing.small,
|
|
18
|
-
emptyTextColor: colors.
|
|
18
|
+
emptyTextColor: colors.contrasts.grey4570,
|
|
19
19
|
answerDistributionPadding: spacing.small,
|
|
20
20
|
answerDistributionChartPadding: spacing.small,
|
|
21
21
|
answerDistributionLegendPadding: spacing.small,
|
|
22
|
-
answerDistributionSwatchColor: colors.
|
|
22
|
+
answerDistributionSwatchColor: colors.contrasts.blue4570,
|
|
23
23
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
2
|
var colors = _ref.colors;
|
|
3
3
|
return {
|
|
4
|
-
colorGreen: colors.
|
|
5
|
-
colorBlue: colors.
|
|
6
|
-
colorRed: colors.
|
|
7
|
-
colorGrey: colors.
|
|
8
|
-
colorHeaderBottomBorder: colors.
|
|
4
|
+
colorGreen: colors.contrasts.green4570,
|
|
5
|
+
colorBlue: colors.contrasts.blue4570,
|
|
6
|
+
colorRed: colors.contrasts.red4570,
|
|
7
|
+
colorGrey: colors.contrasts.grey4570,
|
|
8
|
+
colorHeaderBottomBorder: colors.contrasts.grey1214,
|
|
9
9
|
cellPadding: '13.5px 13.5px;'
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -3,8 +3,8 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
colors = _ref.colors;
|
|
4
4
|
return {
|
|
5
5
|
tableBottomPadding: spacing.medium,
|
|
6
|
-
colorGreen: colors.
|
|
7
|
-
colorGray: colors.
|
|
6
|
+
colorGreen: colors.contrasts.green4570,
|
|
7
|
+
colorGray: colors.contrasts.grey1214,
|
|
8
8
|
cellPadding: '0.75rem 0.75rem'
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -9,7 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
viewPaddingRight: spacing.xxSmall,
|
|
10
10
|
metricNumberContextFontSize: typography.fontSizeMedium,
|
|
11
11
|
metricNumberContextFontWeight: typography.fontWeightNormal,
|
|
12
|
-
blankBorderColor: colors.
|
|
12
|
+
blankBorderColor: colors.contrasts.grey1214,
|
|
13
13
|
blankBorderRadius: '14px',
|
|
14
14
|
blankMinWidth: '20px',
|
|
15
15
|
blankHeight: '20px'
|
|
@@ -7,7 +7,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
7
7
|
cardWidth: '19.5rem',
|
|
8
8
|
cardPadding: spacing.medium,
|
|
9
9
|
cardMargin: spacing.xSmall,
|
|
10
|
-
quizSummaryBorderBottomColor: colors.
|
|
10
|
+
quizSummaryBorderBottomColor: colors.contrasts.grey1214
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export default generateComponentTheme;
|
package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/theme.js
CHANGED
|
@@ -3,9 +3,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
spacing = _ref.spacing,
|
|
4
4
|
typography = _ref.typography;
|
|
5
5
|
return {
|
|
6
|
-
legendRectFillColor: colors.
|
|
6
|
+
legendRectFillColor: colors.contrasts.blue4570,
|
|
7
7
|
legendPadding: spacing.small,
|
|
8
|
-
legendBorderColor: colors.
|
|
8
|
+
legendBorderColor: colors.contrasts.grey4570,
|
|
9
9
|
legendFontSize: typography.fontSizeXSmall,
|
|
10
10
|
legendMargin: spacing.medium
|
|
11
11
|
};
|
|
@@ -7,21 +7,12 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import OutcomesPerStudentReport from '@instructure/outcomes-ui/es/containers/OutcomesPerStudentReport';
|
|
8
8
|
import { liveRegion } from '@instructure/quiz-common';
|
|
9
9
|
import CustomPropTypes from "../../../../common/util/CustomPropTypes.js";
|
|
10
|
-
import elementsForSelectors from "../../../../common/util/ElementsForSelectors.js";
|
|
11
10
|
export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
12
11
|
_inherits(OutcomeAnalysis, _Component);
|
|
13
12
|
var _super = _createSuper(OutcomeAnalysis);
|
|
14
13
|
function OutcomeAnalysis() {
|
|
15
|
-
var _this;
|
|
16
14
|
_classCallCheck(this, OutcomeAnalysis);
|
|
17
|
-
|
|
18
|
-
args[_key] = arguments[_key];
|
|
19
|
-
}
|
|
20
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
21
|
-
_this.applicationElement = function () {
|
|
22
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
23
|
-
};
|
|
24
|
-
return _this;
|
|
15
|
+
return _super.apply(this, arguments);
|
|
25
16
|
}
|
|
26
17
|
_createClass(OutcomeAnalysis, [{
|
|
27
18
|
key: "render",
|
|
@@ -34,7 +25,6 @@ export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
|
34
25
|
loadUsersOverride = _this$props.loadUsersOverride,
|
|
35
26
|
showRollups = _this$props.showRollups;
|
|
36
27
|
return /*#__PURE__*/React.createElement(OutcomesPerStudentReport, {
|
|
37
|
-
applicationElement: this.applicationElement,
|
|
38
28
|
artifactType: "quizzes.quiz",
|
|
39
29
|
artifactId: quizId,
|
|
40
30
|
contextUuid: contextUuid,
|
|
@@ -8,7 +8,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
titleMarginBottom: spacing.xSmall,
|
|
9
9
|
emptyTextPadding: spacing.small,
|
|
10
10
|
emptyTextFontSize: typography.fontSizeLarge,
|
|
11
|
-
emptyTextColor: colors.
|
|
11
|
+
emptyTextColor: colors.contrasts.grey4570
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export default generateComponentTheme;
|
|
@@ -9,6 +9,6 @@ export var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
cardWidth: '19.5rem',
|
|
10
10
|
cardPadding: spacing.medium,
|
|
11
11
|
cardMargin: spacing.xSmall,
|
|
12
|
-
quizSummaryBorderBottomColor: colors.
|
|
12
|
+
quizSummaryBorderBottomColor: colors.contrasts.grey1214
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -9,7 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
colors = _ref.colors,
|
|
10
10
|
breakpoints = _ref.breakpoints;
|
|
11
11
|
return {
|
|
12
|
-
contentBackgroundColor: colors.
|
|
12
|
+
contentBackgroundColor: colors.contrasts.white1010,
|
|
13
13
|
contentPaddingTopBottom: spacing.medium,
|
|
14
14
|
contentPaddingLeftRight: spacing.medium,
|
|
15
15
|
breadCrumbMarginBottom: spacing.large,
|
|
@@ -10,17 +10,17 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
10
10
|
typography = _ref.typography,
|
|
11
11
|
borders = _ref.borders;
|
|
12
12
|
return {
|
|
13
|
-
contentBackgroundColor: colors.
|
|
13
|
+
contentBackgroundColor: colors.contrasts.white1010,
|
|
14
14
|
contentPaddingTopBottom: 0,
|
|
15
15
|
contentPaddingLeftRight: 0,
|
|
16
16
|
breadCrumbMarginBottom: spacing.large,
|
|
17
17
|
entryRowMargin: spacing.small,
|
|
18
|
-
headerRowColor: colors.
|
|
18
|
+
headerRowColor: colors.contrasts.grey4570,
|
|
19
19
|
headerRowPadding: spacing.small,
|
|
20
20
|
headerTextFontSize: typography.fontSizeSmall,
|
|
21
21
|
leftHeaderMargin: spacing.small,
|
|
22
|
-
headerBackgroundColor: colors.
|
|
23
|
-
headerColor: colors.
|
|
22
|
+
headerBackgroundColor: colors.contrasts.grey1111,
|
|
23
|
+
headerColor: colors.contrasts.grey125125,
|
|
24
24
|
headerPaddingTopBottom: spacing.xSmall,
|
|
25
25
|
headerPaddingLeftRight: spacing.small,
|
|
26
26
|
footerPaddingBottom: spacing.xSmall,
|
|
@@ -28,7 +28,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
28
28
|
rightHeaderPaddingLeft: spacing.xSmall,
|
|
29
29
|
rightFooterPaddingLeftRight: spacing.small,
|
|
30
30
|
entryEditBorderWidth: borders.widthSmall,
|
|
31
|
-
entryEditBorderColor: colors.
|
|
31
|
+
entryEditBorderColor: colors.contrasts.grey1214
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
var _default = generateComponentTheme;
|
|
@@ -11,18 +11,18 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
typography = _ref.typography;
|
|
12
12
|
return {
|
|
13
13
|
entryDetailPadding: spacing.small,
|
|
14
|
-
headerRowColor: colors.
|
|
14
|
+
headerRowColor: colors.contrasts.grey4570,
|
|
15
15
|
buttonsZIndex: '3333',
|
|
16
16
|
expandButtonContainerBorderWidth: borders.widthMedium,
|
|
17
|
-
expandButtonContainerBorderColor: colors.
|
|
17
|
+
expandButtonContainerBorderColor: colors.contrasts.grey1214,
|
|
18
18
|
addButtonMargin: spacing.small,
|
|
19
|
-
headerTextColor: colors.
|
|
19
|
+
headerTextColor: colors.contrasts.grey4570,
|
|
20
20
|
headerTextFontSize: typography.fontSizeXSmall,
|
|
21
21
|
stemFontSize: typography.fontSizeMedium,
|
|
22
22
|
stemLineHeight: typography.lineHeight,
|
|
23
23
|
footerPadding: spacing.medium,
|
|
24
24
|
footerBorderWidth: borders.widthSmall,
|
|
25
|
-
footerBorderColor: colors.
|
|
25
|
+
footerBorderColor: colors.contrasts.grey1214,
|
|
26
26
|
footerFontSize: typography.fontSizeXSmall,
|
|
27
27
|
deletePrefaceMargin: spacing.xxSmall
|
|
28
28
|
};
|
|
@@ -9,13 +9,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
spacing = _ref.spacing,
|
|
10
10
|
borders = _ref.borders;
|
|
11
11
|
return {
|
|
12
|
-
contentBackgroundColor: colors.
|
|
12
|
+
contentBackgroundColor: colors.contrasts.white1010,
|
|
13
13
|
contentPaddingTopBottom: spacing.medium,
|
|
14
14
|
contentPaddingLeftRight: spacing.xLarge,
|
|
15
15
|
breadCrumbMarginBottom: spacing.large,
|
|
16
16
|
headerPaddingBottom: spacing.large,
|
|
17
17
|
headerBorderWidth: borders.widthSmall,
|
|
18
|
-
headerBorderColor: colors.
|
|
18
|
+
headerBorderColor: colors.contrasts.grey1214
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
var _default = generateComponentTheme;
|
|
@@ -11,13 +11,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
spacing = _ref.spacing;
|
|
12
12
|
return {
|
|
13
13
|
bankRowBorderWidth: borders.widthSmall,
|
|
14
|
-
bankRowBorderColor: colors.
|
|
14
|
+
bankRowBorderColor: colors.contrasts.grey1214,
|
|
15
15
|
bankInfoMargin: spacing.small,
|
|
16
16
|
bankTitleFontSize: typography.fontSizeSmall,
|
|
17
17
|
bankTitlePadding: spacing.xSmall,
|
|
18
|
-
bankTitleLinkColor: colors.
|
|
19
|
-
bankTitleLinkHoverColor: colors.
|
|
20
|
-
bankDetailsColor: colors.
|
|
18
|
+
bankTitleLinkColor: colors.contrasts.grey125125,
|
|
19
|
+
bankTitleLinkHoverColor: colors.contrasts.grey125125,
|
|
20
|
+
bankDetailsColor: colors.contrasts.grey4570,
|
|
21
21
|
bankDetailsFontSize: typography.fontSizeXSmall,
|
|
22
22
|
bankOptionsMargin: spacing.small,
|
|
23
23
|
BankOptionIconMargin: spacing.xSmall,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -9,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
15
16
|
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
@@ -20,20 +21,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
20
21
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
21
22
|
var _instUIMessages = require("../../../common/util/instUIMessages.js");
|
|
22
23
|
var _quizCommon = require("@instructure/quiz-common");
|
|
23
|
-
var
|
|
24
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
25
|
-
var _dec, _class, _CreateBankModal;
|
|
24
|
+
var _CreateBankModal;
|
|
26
25
|
/** @jsx jsx */
|
|
27
|
-
var CreateBankModal =
|
|
26
|
+
var CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
28
27
|
(0, _inherits2.default)(CreateBankModal, _Component);
|
|
29
28
|
var _super = (0, _createSuper2.default)(CreateBankModal);
|
|
30
|
-
function CreateBankModal() {
|
|
29
|
+
function CreateBankModal(props) {
|
|
31
30
|
var _this;
|
|
32
31
|
(0, _classCallCheck2.default)(this, CreateBankModal);
|
|
33
|
-
|
|
34
|
-
args[_key] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
32
|
+
_this = _super.call(this, props);
|
|
37
33
|
_this.state = {
|
|
38
34
|
shareWithCourse: false
|
|
39
35
|
};
|
|
@@ -45,7 +41,8 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
45
41
|
_this.props.onCreateBank();
|
|
46
42
|
_this.closeAction();
|
|
47
43
|
} else {
|
|
48
|
-
_this
|
|
44
|
+
var _this$bankNameInput$c;
|
|
45
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
49
46
|
}
|
|
50
47
|
};
|
|
51
48
|
_this.closeAction = function () {
|
|
@@ -75,6 +72,7 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
75
72
|
shareWithCourse: event.target.checked
|
|
76
73
|
});
|
|
77
74
|
};
|
|
75
|
+
_this.bankNameInput = /*#__PURE__*/_react.default.createRef();
|
|
78
76
|
return _this;
|
|
79
77
|
}
|
|
80
78
|
(0, _createClass2.default)(CreateBankModal, [{
|
|
@@ -99,17 +97,14 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
99
97
|
}, {
|
|
100
98
|
key: "renderContent",
|
|
101
99
|
value: function renderContent() {
|
|
102
|
-
return (0, _emotion.jsx)("div", {
|
|
103
|
-
css: this.props.styles.bankNameInput
|
|
104
|
-
}, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
100
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
105
101
|
messages: this.getErrors(),
|
|
106
102
|
onChange: this.onNameChange,
|
|
107
|
-
renderLabel: (0,
|
|
108
|
-
|
|
109
|
-
}, (0, _formatMessage.default)('Bank Name')),
|
|
103
|
+
renderLabel: (0, _formatMessage.default)('Bank Name'),
|
|
104
|
+
isRequired: true,
|
|
110
105
|
type: "text",
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
"data-automation": "sdk-create-bank-name-textinput",
|
|
107
|
+
ref: this.bankNameInput
|
|
113
108
|
}), this.renderCheckbox());
|
|
114
109
|
}
|
|
115
110
|
}, {
|
|
@@ -141,7 +136,6 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
141
136
|
label: (0, _formatMessage.default)('Item Bank'),
|
|
142
137
|
"data-automation": "sdk-create-bank-modal"
|
|
143
138
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
144
|
-
level: "reset",
|
|
145
139
|
as: "h2"
|
|
146
140
|
}, (0, _formatMessage.default)('New Item Bank')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
147
141
|
onClick: this.closeAction,
|
|
@@ -153,7 +147,12 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
153
147
|
}]);
|
|
154
148
|
CreateBankModal.displayName = "CreateBankModal";
|
|
155
149
|
return CreateBankModal;
|
|
156
|
-
}(_react.Component)
|
|
150
|
+
}(_react.Component);
|
|
151
|
+
exports.CreateBankModal = CreateBankModal;
|
|
152
|
+
_CreateBankModal = CreateBankModal;
|
|
153
|
+
CreateBankModal.displayName = 'CreateBankModal';
|
|
154
|
+
CreateBankModal.componentId = "Quizzes".concat(_CreateBankModal.displayName);
|
|
155
|
+
CreateBankModal.propTypes = {
|
|
157
156
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
158
157
|
modalTrigger: _propTypes.default.instanceOf(_react.Component),
|
|
159
158
|
temporaryBank: _propTypes.default.instanceOf(_Bank.default).isRequired,
|
|
@@ -176,13 +175,13 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
176
175
|
root_account_name: _propTypes.default.string
|
|
177
176
|
}),
|
|
178
177
|
styles: _propTypes.default.object
|
|
179
|
-
}
|
|
178
|
+
};
|
|
179
|
+
CreateBankModal.defaultProps = {
|
|
180
180
|
displayError: false,
|
|
181
181
|
modalTrigger: null,
|
|
182
182
|
showShareBankOnCreate: false,
|
|
183
183
|
itemBanksScope: {},
|
|
184
184
|
onCreateBank: function onCreateBank() {}
|
|
185
|
-
}
|
|
186
|
-
exports.CreateBankModal = CreateBankModal;
|
|
185
|
+
};
|
|
187
186
|
var _default = CreateBankModal;
|
|
188
187
|
exports.default = _default;
|