@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
|
@@ -21,7 +21,6 @@ var _componentForItem = _interopRequireDefault(require("../../../../util/compone
|
|
|
21
21
|
var _quizCommon = require("@instructure/quiz-common");
|
|
22
22
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
23
|
var _interactionTypePropsHelper = require("../../../../util/interactionTypePropsHelper.js");
|
|
24
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../common/util/ElementsForSelectors.js"));
|
|
25
24
|
var _instUIMessages = require("../../../../util/instUIMessages.js");
|
|
26
25
|
var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
27
26
|
(0, _inherits2.default)(ItemEdit, _Component);
|
|
@@ -40,9 +39,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
40
39
|
}
|
|
41
40
|
return null;
|
|
42
41
|
};
|
|
43
|
-
_this.applicationElement = function () {
|
|
44
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
45
|
-
};
|
|
46
42
|
_this.onModalOpen = function () {
|
|
47
43
|
_this.props.occludeQuizEntries(true);
|
|
48
44
|
};
|
|
@@ -105,7 +101,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
105
101
|
component: /*#__PURE__*/_react.default.createElement(_OutcomeAlignments.default, Object.assign({
|
|
106
102
|
artifactType: "quizEntry",
|
|
107
103
|
artifactId: itemId,
|
|
108
|
-
applicationElement: this.applicationElement,
|
|
109
104
|
alignmentSetId: outcomeAlignmentSetGuid,
|
|
110
105
|
contextUuid: this.props.contextUuid
|
|
111
106
|
}, launchContexts.length > 0 && {
|
|
@@ -11,10 +11,10 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
return {
|
|
12
12
|
positionMargin: spacing.xSmall,
|
|
13
13
|
positionPadding: spacing.xSmall,
|
|
14
|
-
positionBackgroundColor: colors.
|
|
14
|
+
positionBackgroundColor: colors.contrasts.grey125125,
|
|
15
15
|
positionZIndex: '3333',
|
|
16
16
|
positionDimension: '2em',
|
|
17
|
-
positionTextColor: colors.
|
|
17
|
+
positionTextColor: colors.contrasts.grey1111,
|
|
18
18
|
positionTextFontSize: typography.fontSizeMedium
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
14
14
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
15
15
|
popoverContentMargin: spacing.medium,
|
|
16
16
|
popoverHeaderBoxBorderWidth: borders.widthSmall,
|
|
17
|
-
popoverHeaderBoxBorderColor: colors.
|
|
17
|
+
popoverHeaderBoxBorderColor: colors.contrasts.grey1214
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
var _default = generateComponentTheme;
|
|
@@ -14,16 +14,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
14
14
|
attachQuestionButtonHolderZIndex: '2222',
|
|
15
15
|
newItemButtonMargin: spacing.xSmall,
|
|
16
16
|
newItemButtonPadding: spacing.xSmall,
|
|
17
|
-
newItemButtonBackgroundColor: colors.
|
|
17
|
+
newItemButtonBackgroundColor: colors.contrasts.blue4570,
|
|
18
18
|
newItemButtonBorderRadius: spacing.large,
|
|
19
|
-
newItemButtonColor: colors.
|
|
20
|
-
newItemButtonFocusOutline: "2px solid ".concat(colors.
|
|
19
|
+
newItemButtonColor: colors.contrasts.white1010,
|
|
20
|
+
newItemButtonFocusOutline: "2px solid ".concat(colors.contrasts.blue4570),
|
|
21
21
|
newItemButtonFocusOutlineOffset: spacing.xxxSmall,
|
|
22
22
|
newItemButtonFontSize: typography.fontSizeMedium,
|
|
23
23
|
newItemButtonFontWeight: typography.fontWeightBold,
|
|
24
24
|
newItemButtonZIndex: '4444',
|
|
25
25
|
newItemButtonBoxShadow: '2px 2px 3px #ddd',
|
|
26
|
-
newItemButtonEditingBackgroundColor: colors.
|
|
26
|
+
newItemButtonEditingBackgroundColor: colors.contrasts.red4570,
|
|
27
27
|
newItemButtonHolderZIndex: '2222',
|
|
28
28
|
newItemButtonTransition: "background-color ".concat(transitions.duration, " linear, transform ").concat(transitions.duration, " ease")
|
|
29
29
|
};
|
|
@@ -14,7 +14,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _uiPopover = require("@instructure/ui-popover");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
16
|
var _CustomPropTypes = _interopRequireDefault(require("../../../../../util/CustomPropTypes.js"));
|
|
17
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../util/ElementsForSelectors.js"));
|
|
18
17
|
var _windowChecks = require("../../../../../util/windowChecks.js");
|
|
19
18
|
var _index = _interopRequireDefault(require("../Button/index.js"));
|
|
20
19
|
var _index2 = _interopRequireDefault(require("../Body/index.js"));
|
|
@@ -33,9 +32,6 @@ var AddContentPopover = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
33
32
|
args[_key] = arguments[_key];
|
|
34
33
|
}
|
|
35
34
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36
|
-
_this.applicationElement = function () {
|
|
37
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
38
|
-
};
|
|
39
35
|
_this.showContent = function () {
|
|
40
36
|
_this.props.switchOnEditing();
|
|
41
37
|
};
|
|
@@ -9,7 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
borders = _ref.borders;
|
|
10
10
|
return {
|
|
11
11
|
borderLineBorderWidth: borders.widthMedium,
|
|
12
|
-
borderLineBorderColor: colors.
|
|
12
|
+
borderLineBorderColor: colors.contrasts.grey1111
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
var _default = generateComponentTheme;
|
|
@@ -12,16 +12,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
breakpoints = _ref.breakpoints;
|
|
13
13
|
return {
|
|
14
14
|
rootBorderWidth: borders.widthSmall,
|
|
15
|
-
rootBorderColor: colors.
|
|
15
|
+
rootBorderColor: colors.contrasts.grey1111,
|
|
16
16
|
instructionsPaddingTopBottom: spacing.medium,
|
|
17
17
|
instructionsPaddingLeftRight: spacing.large,
|
|
18
18
|
instructionsBorderWidth: borders.widthSmall,
|
|
19
|
-
instructionsBorderColor: colors.
|
|
19
|
+
instructionsBorderColor: colors.contrasts.grey1111,
|
|
20
20
|
instructionsHeaderPadding: spacing.xSmall,
|
|
21
21
|
instructionsHeaderFontWeight: typography.fontWeightBold,
|
|
22
22
|
infoPaddingTopBottom: spacing.small,
|
|
23
23
|
infoPaddingLeftRight: spacing.medium,
|
|
24
|
-
infoBackgroundColor: colors.
|
|
24
|
+
infoBackgroundColor: colors.contrasts.grey1111,
|
|
25
25
|
headerPaddingTop: spacing.xSmall,
|
|
26
26
|
headerPaddingBottom: spacing.small,
|
|
27
27
|
titleFontSize: typography.fontSizeMedium,
|
|
@@ -32,7 +32,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
32
32
|
phoneInstructionsPaddingLeftRight: spacing.small,
|
|
33
33
|
phoneInfoPadding: spacing.small,
|
|
34
34
|
phoneConnectingLinesBorderWidth: borders.widthSmall,
|
|
35
|
-
phoneConnectingLinesBorderColor: colors.
|
|
35
|
+
phoneConnectingLinesBorderColor: colors.contrasts.grey1214,
|
|
36
36
|
phoneConnectingLinesMargin: spacing.small
|
|
37
37
|
};
|
|
38
38
|
};
|
|
@@ -115,7 +115,7 @@ var SessionItemResult = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
115
115
|
size: "small",
|
|
116
116
|
margin: "small"
|
|
117
117
|
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
118
|
-
color: "
|
|
118
|
+
color: "alert"
|
|
119
119
|
}, (0, _formatMessage.default)("Regrade score { possible, plural,\n one {{points, number} / # point}\n other {{points, number} / # points}\n }", {
|
|
120
120
|
points: this.props.sessionItemResult.regradeInfo.get('newScore') || 0,
|
|
121
121
|
possible: this.props.sessionItemResult.regradeInfo.get('newPointsPossible')
|
|
@@ -12,9 +12,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
return {
|
|
13
13
|
sessionItemResultPadding: spacing.small,
|
|
14
14
|
topBorderWidth: borders.widthSmall,
|
|
15
|
-
topBorderColor: colors.
|
|
15
|
+
topBorderColor: colors.contrasts.grey1214,
|
|
16
16
|
resultMargin: spacing.small,
|
|
17
|
-
pointsColor: colors.
|
|
17
|
+
pointsColor: colors.contrasts.grey4570,
|
|
18
18
|
pointFontSize: typography.fontSizeXSmall,
|
|
19
19
|
questionFontSize: typography.fontSizeMedium,
|
|
20
20
|
itemFeedbackWrapperMargin: spacing.small,
|
|
@@ -23,9 +23,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
23
23
|
itemFeedbackWrapperFontSize: typography.fontSizeSmall,
|
|
24
24
|
itemFeedbackWrapperBorderStyle: borders.borderStyle,
|
|
25
25
|
itemFeedbackWrapperBorderWidth: borders.widthSmall,
|
|
26
|
-
itemFeedbackWrapperBorderColor: colors.
|
|
26
|
+
itemFeedbackWrapperBorderColor: colors.contrasts.grey1214,
|
|
27
27
|
itemFeedbackWrapperStyle: borders.style,
|
|
28
|
-
itemFeedbackLabelColor: colors.
|
|
28
|
+
itemFeedbackLabelColor: colors.contrasts.grey100100,
|
|
29
29
|
itemFeedbackLabelFontSize: typography.fontSizeXSmall,
|
|
30
30
|
itemFeedbackMargin: spacing.xxSmall,
|
|
31
31
|
itemFeedbackTextSize: typography.fontSizeMedium,
|
|
@@ -14,7 +14,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
14
14
|
sessionItemResultsListHeaderWrapperMarginLeftRight: spacing.large,
|
|
15
15
|
sessionItemResultsListHeaderFontSize: typography.fontSizeXLarge,
|
|
16
16
|
sessionItemResultsListMargin: spacing.xSmall,
|
|
17
|
-
sessionItemResultsListBorderColor: colors.
|
|
17
|
+
sessionItemResultsListBorderColor: colors.contrasts.grey1214,
|
|
18
18
|
sessionItemResultsListBorderWidth: borders.widthSmall
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -74,6 +74,11 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
74
74
|
lockBlueprintContentEnabled = _this$props2.lockBlueprintContentEnabled;
|
|
75
75
|
return lockBlueprintContentEnabled && isContentLockedByBlueprint;
|
|
76
76
|
}
|
|
77
|
+
}, {
|
|
78
|
+
key: "isPassage",
|
|
79
|
+
value: function isPassage() {
|
|
80
|
+
return this.props.stimulus.passage;
|
|
81
|
+
}
|
|
77
82
|
}, {
|
|
78
83
|
key: "renderChildQuizEntries",
|
|
79
84
|
value: function renderChildQuizEntries() {
|
|
@@ -101,9 +106,10 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
101
106
|
key: "renderStimulusPanel",
|
|
102
107
|
value: function renderStimulusPanel() {
|
|
103
108
|
var StimulusComponent = this.props.isEditing ? _index2.default : _index3.default;
|
|
109
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
104
110
|
var connectDragPreview = this.props.connectDragPreview;
|
|
105
111
|
return connectDragPreview((0, _emotion.jsx)("div", {
|
|
106
|
-
"data-automation": "sdk-
|
|
112
|
+
"data-automation": "sdk-".concat(automationPrefix, "-LeftPanelShow")
|
|
107
113
|
}, (0, _emotion.jsx)(StimulusComponent, {
|
|
108
114
|
bankEntryWarningWrapperProps: this.props.bankEntryWarningWrapperProps,
|
|
109
115
|
connectDragSource: this.props.connectDragSource,
|
|
@@ -128,18 +134,18 @@ var Stimulus = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _the
|
|
|
128
134
|
}, {
|
|
129
135
|
key: "renderPanels",
|
|
130
136
|
value: function renderPanels(propsForDnDZone) {
|
|
131
|
-
var
|
|
137
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
132
138
|
return (0, _emotion.jsx)("div", {
|
|
133
139
|
css: this.props.styles.stimulus,
|
|
134
140
|
ref: this.props.dndRef,
|
|
135
|
-
"data-automation": "sdk-
|
|
141
|
+
"data-automation": "sdk-".concat(automationPrefix)
|
|
136
142
|
}, (0, _emotion.jsx)("div", {
|
|
137
143
|
css: this.props.styles.leftPanel
|
|
138
144
|
}, this.renderStimulusPanel()), (0, _emotion.jsx)("div", {
|
|
139
145
|
css: this.props.styles.itemPanel
|
|
140
|
-
}, (0, _emotion.jsx)("div", null), this.renderChildQuizEntries(), !isPassage && (0, _emotion.jsx)(_index4.default, Object.assign({}, propsForDnDZone, {
|
|
146
|
+
}, (0, _emotion.jsx)("div", null), this.renderChildQuizEntries(), !this.isPassage() && (0, _emotion.jsx)(_index4.default, Object.assign({}, propsForDnDZone, {
|
|
141
147
|
location: "in"
|
|
142
|
-
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !isPassage && (0, _emotion.jsx)(_index.default, {
|
|
148
|
+
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !this.isPassage() && (0, _emotion.jsx)(_index.default, {
|
|
143
149
|
allowStimulusCreation: false,
|
|
144
150
|
stimulusId: this.props.stimulus.id,
|
|
145
151
|
parentEntryId: this.props.quizEntry.id,
|
|
@@ -12,7 +12,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
return {
|
|
13
13
|
leftPanelPadding: spacing.xxSmall,
|
|
14
14
|
leftPanelBorderWidth: borders.widthSmall,
|
|
15
|
-
leftPanelBorderColor: colors.
|
|
15
|
+
leftPanelBorderColor: colors.contrasts.grey1214,
|
|
16
16
|
rightPanelPadding: spacing.xSmall,
|
|
17
17
|
dragAndDropHandleZIndex: '3333',
|
|
18
18
|
dragAndDropHandleFontSize: typography.fontSizeMedium,
|
|
@@ -65,6 +65,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
65
65
|
_this.props.setUi(_quizCommon.SHOULD_CLONE_ITEM, false);
|
|
66
66
|
};
|
|
67
67
|
_this.handleDeleteTemporary = function () {
|
|
68
|
+
var isPassage = _this.isPassage();
|
|
68
69
|
_this.props.withConfirm(function () {
|
|
69
70
|
_this.onCancel();
|
|
70
71
|
_this.props.setUi(_quizCommon.DELETED_QUIZ_ENTRY, {
|
|
@@ -72,10 +73,11 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
72
73
|
inStimulus: false
|
|
73
74
|
});
|
|
74
75
|
}, {
|
|
75
|
-
title: (0, _formatMessage.default)('Confirm Stimulus Removal'),
|
|
76
|
-
text: (0, _formatMessage.default)('Are you sure you want to remove this stimulus?'),
|
|
77
|
-
continueText: (0, _formatMessage.default)('Remove Stimulus'),
|
|
78
|
-
cancelText: (0, _formatMessage.default)('Keep Stimulus')
|
|
76
|
+
title: isPassage ? (0, _formatMessage.default)('Confirm Passage Removal') : (0, _formatMessage.default)('Confirm Stimulus Removal'),
|
|
77
|
+
text: isPassage ? (0, _formatMessage.default)('Are you sure you want to remove this passage?') : (0, _formatMessage.default)('Are you sure you want to remove this stimulus?'),
|
|
78
|
+
continueText: isPassage ? (0, _formatMessage.default)('Remove Passage') : (0, _formatMessage.default)('Remove Stimulus'),
|
|
79
|
+
cancelText: isPassage ? (0, _formatMessage.default)('Keep Passage ') : (0, _formatMessage.default)('Keep Stimulus'),
|
|
80
|
+
automationPrefix: isPassage ? 'passage' : 'stimulus'
|
|
79
81
|
});
|
|
80
82
|
};
|
|
81
83
|
_this.handleDeleteStimulus = function () {
|
|
@@ -300,6 +302,12 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
300
302
|
outsideApp = _checkClickedNode.outsideApp;
|
|
301
303
|
return outsideApp || !isEndEditingTrigger;
|
|
302
304
|
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "isPassage",
|
|
307
|
+
value: function isPassage() {
|
|
308
|
+
var _this$props$stimulus;
|
|
309
|
+
return (_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage;
|
|
310
|
+
}
|
|
303
311
|
}, {
|
|
304
312
|
key: "afterSubmit",
|
|
305
313
|
value: function afterSubmit() {
|
|
@@ -327,8 +335,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
327
335
|
}, {
|
|
328
336
|
key: "renderAddToBankOptions",
|
|
329
337
|
value: function renderAddToBankOptions() {
|
|
330
|
-
var
|
|
331
|
-
var paddingTopStyle = ((_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage) ? {
|
|
338
|
+
var paddingTopStyle = this.isPassage() ? {
|
|
332
339
|
padding: 'small 0 0'
|
|
333
340
|
} : {};
|
|
334
341
|
return (0, _emotion.jsx)(_uiView.View, Object.assign({
|
|
@@ -353,7 +360,8 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
353
360
|
}, {
|
|
354
361
|
key: "renderStimulusEdit",
|
|
355
362
|
value: function renderStimulusEdit() {
|
|
356
|
-
var stimulusLabel = this.
|
|
363
|
+
var stimulusLabel = this.isPassage() ? (0, _formatMessage.default)('Passage') : (0, _formatMessage.default)('Stimulus');
|
|
364
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
357
365
|
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)("div", {
|
|
358
366
|
css: this.props.styles.stimulus,
|
|
359
367
|
ref: this.handleRef
|
|
@@ -387,7 +395,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
387
395
|
}, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
388
396
|
type: "button",
|
|
389
397
|
onClick: this.onCancel,
|
|
390
|
-
"data-automation": "sdk-
|
|
398
|
+
"data-automation": "sdk-".concat(automationPrefix, "-discardButton")
|
|
391
399
|
}, (0, _formatMessage.default)('Cancel'))), (0, _emotion.jsx)("div", {
|
|
392
400
|
className: "submitButtonWrapper",
|
|
393
401
|
css: this.props.styles.buttonWrapper
|
|
@@ -396,7 +404,7 @@ var StimulusEdit = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
396
404
|
color: "primary",
|
|
397
405
|
disabled: !this.state.canSubmit,
|
|
398
406
|
onClick: this.onSubmit,
|
|
399
|
-
"data-automation": "sdk-
|
|
407
|
+
"data-automation": "sdk-".concat(automationPrefix, "-done-button")
|
|
400
408
|
}, (0, _formatMessage.default)('Done')))));
|
|
401
409
|
}
|
|
402
410
|
}, {
|
|
@@ -15,7 +15,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
15
15
|
optionPadding: spacing.small,
|
|
16
16
|
stimulusContentPadding: spacing.small,
|
|
17
17
|
stimulusContentPaddingBottom: spacing.small,
|
|
18
|
-
stimulusButtonsColor: colors.
|
|
18
|
+
stimulusButtonsColor: colors.contrasts.grey100100,
|
|
19
19
|
stimulusButtonsZIndex: '3333'
|
|
20
20
|
};
|
|
21
21
|
};
|
|
@@ -146,6 +146,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
146
146
|
var stimulus = this.props.workingStimulus;
|
|
147
147
|
var textAreaId = "stimulusBodyEdit_".concat(stimulus.id, "_").concat(this.props.isBankedContent);
|
|
148
148
|
var stimulusBodyId = "stimulusBodyEdit_".concat(stimulus.id, "_body");
|
|
149
|
+
var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
|
|
149
150
|
return (0, _emotion.jsx)(_quizCommon.FormFieldGroup, {
|
|
150
151
|
messages: this.inputErrors('onSelf'),
|
|
151
152
|
description: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit Stimulus'))
|
|
@@ -161,7 +162,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
161
162
|
ref: this.props.setTitleRef,
|
|
162
163
|
onChange: this.onTextInputChange('title'),
|
|
163
164
|
value: stimulus.get('title'),
|
|
164
|
-
"data-automation": "sdk-
|
|
165
|
+
"data-automation": "sdk-".concat(automationPrefix, "-title-input")
|
|
165
166
|
})), this.renderInstructions(stimulus), (0, _emotion.jsx)("div", {
|
|
166
167
|
css: this.props.styles.section
|
|
167
168
|
}, (0, _emotion.jsx)(_quizCommon.FormField, {
|
|
@@ -10,7 +10,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
10
10
|
colors = _ref.colors;
|
|
11
11
|
return {
|
|
12
12
|
sectionPadding: spacing.small,
|
|
13
|
-
optionalLabelColor: colors.
|
|
13
|
+
optionalLabelColor: colors.contrasts.grey4570,
|
|
14
14
|
optionalLabelFontSize: typography.fontSizeXSmall,
|
|
15
15
|
urlLabelMargin: spacing.xSmall
|
|
16
16
|
};
|
|
@@ -27,7 +27,9 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
27
27
|
(0, _createClass2.default)(StimulusShowInfo, [{
|
|
28
28
|
key: "render",
|
|
29
29
|
value: function render() {
|
|
30
|
-
var
|
|
30
|
+
var stimulus = this.props.stimulus;
|
|
31
|
+
var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
|
|
32
|
+
var instructions = stimulus.instructions && /*#__PURE__*/_react.default.createElement(_uiView.View, {
|
|
31
33
|
as: "div",
|
|
32
34
|
padding: "small",
|
|
33
35
|
margin: "x-small 0 0 0",
|
|
@@ -46,10 +48,10 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
46
48
|
color: "primary",
|
|
47
49
|
size: "small",
|
|
48
50
|
weight: "bold"
|
|
49
|
-
},
|
|
51
|
+
}, stimulus.instructions))));
|
|
50
52
|
return /*#__PURE__*/_react.default.createElement(_uiView.View, {
|
|
51
53
|
as: "div"
|
|
52
|
-
},
|
|
54
|
+
}, stimulus.title && /*#__PURE__*/_react.default.createElement(_uiHeading.Heading, {
|
|
53
55
|
level: "h3",
|
|
54
56
|
as: "h2",
|
|
55
57
|
color: "primary",
|
|
@@ -57,8 +59,8 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
57
59
|
themeOverride: {
|
|
58
60
|
h2FontWeight: '700'
|
|
59
61
|
}
|
|
60
|
-
},
|
|
61
|
-
"data-automation": "sdk-
|
|
62
|
+
}, stimulus.title), instructions, /*#__PURE__*/_react.default.createElement("div", {
|
|
63
|
+
"data-automation": "sdk-".concat(automationPrefix, "-LeftPanelShow-content")
|
|
62
64
|
}, /*#__PURE__*/_react.default.createElement(_quizRce.RichContentRenderer, {
|
|
63
65
|
content: this.props.stimulus.body
|
|
64
66
|
})));
|
|
@@ -12,13 +12,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
transitions = _ref.transitions;
|
|
13
13
|
return {
|
|
14
14
|
contentTransitionDuration: transitions.duration,
|
|
15
|
-
contentBackgroundColor: colors.
|
|
15
|
+
contentBackgroundColor: colors.contrasts.white1010,
|
|
16
16
|
contentMaxWidth: '79.5rem',
|
|
17
17
|
contentMargin: spacing.medium,
|
|
18
18
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
19
19
|
phoneContentMargin: spacing.xSmall,
|
|
20
20
|
contentBoxShadow: shadows.depth1,
|
|
21
|
-
contentBorderColor: colors.
|
|
21
|
+
contentBorderColor: colors.contrasts.grey1214,
|
|
22
22
|
contentBorderRadius: '4px'
|
|
23
23
|
};
|
|
24
24
|
};
|
|
@@ -10,7 +10,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
10
10
|
spacing = _ref.spacing;
|
|
11
11
|
return {
|
|
12
12
|
stimulusDividerBorderWidth: borders.widthSmall,
|
|
13
|
-
stimulusDividerBorderColor: colors.
|
|
13
|
+
stimulusDividerBorderColor: colors.contrasts.grey4570,
|
|
14
14
|
stimulusDividerMarginTop: spacing.xSmall,
|
|
15
15
|
stimulusDividerMarginBottom: spacing.small
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
return {
|
|
12
12
|
emptyPadding: spacing.small,
|
|
13
13
|
emptyFontSize: typography.fontSizeLarge,
|
|
14
|
-
emptyColor: colors.
|
|
14
|
+
emptyColor: colors.contrasts.grey4570
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
var _default = generateComponentTheme;
|
|
@@ -16,7 +16,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
16
16
|
var _uiOverlays = require("@instructure/ui-overlays");
|
|
17
17
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
18
18
|
var _Spinner = require("../spinner/Spinner.js");
|
|
19
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../util/ElementsForSelectors.js"));
|
|
20
19
|
var _CustomPropTypes = _interopRequireDefault(require("../../../util/CustomPropTypes.js"));
|
|
21
20
|
var _printUtils = require("../../../util/printUtils.js");
|
|
22
21
|
var _index = _interopRequireDefault(require("../../PrintFontSizeModal/index.js"));
|
|
@@ -82,9 +81,6 @@ var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
82
81
|
});
|
|
83
82
|
_this.props.openPrintFontSizeModal();
|
|
84
83
|
};
|
|
85
|
-
_this.applicationElement = function () {
|
|
86
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
87
|
-
};
|
|
88
84
|
_this.onExited = function () {};
|
|
89
85
|
_this.fontSize = '';
|
|
90
86
|
return _this;
|
|
@@ -93,7 +89,6 @@ var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
93
89
|
key: "render",
|
|
94
90
|
value: function render() {
|
|
95
91
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_uiOverlays.Overlay, {
|
|
96
|
-
applicationElement: this.applicationElement,
|
|
97
92
|
open: this.state.waitingForPrintingToBeReady,
|
|
98
93
|
shouldContainFocus: true,
|
|
99
94
|
transition: "fade",
|
|
@@ -10,16 +10,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
10
10
|
borders = _ref.borders;
|
|
11
11
|
return {
|
|
12
12
|
DnDZoneBorderWidth: borders.widthSmall,
|
|
13
|
-
DnDZoneBorderColor: colors.
|
|
14
|
-
DnDZoneBackgroundColor: colors.
|
|
13
|
+
DnDZoneBorderColor: colors.contrasts.grey1214,
|
|
14
|
+
DnDZoneBackgroundColor: colors.contrasts.grey1111,
|
|
15
15
|
DnDZonePadding: spacing.medium,
|
|
16
16
|
// sidebar:
|
|
17
17
|
sidebarDnDZoneBorderWidth: borders.widthSmall,
|
|
18
|
-
sidebarDnDZoneBorderColor: colors.
|
|
19
|
-
sidebarDnDZoneBackgroundColor: colors.
|
|
18
|
+
sidebarDnDZoneBorderColor: colors.contrasts.grey100100,
|
|
19
|
+
sidebarDnDZoneBackgroundColor: colors.contrasts.grey1111,
|
|
20
20
|
sidebarDnDZonePadding: spacing.small,
|
|
21
21
|
sidebarDnDZoneMargin: spacing.xSmall,
|
|
22
|
-
sidebarDnDZoneColor: colors.
|
|
22
|
+
sidebarDnDZoneColor: colors.contrasts.grey125125
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
var _default = generateComponentTheme;
|
|
@@ -10,7 +10,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
10
10
|
return {
|
|
11
11
|
errorFontFamily: typography.fontFamily,
|
|
12
12
|
errorFontSize: typography.fontSizeSmall,
|
|
13
|
-
errorColor: colors.
|
|
13
|
+
errorColor: colors.contrasts.red4570
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
var _default = generateComponentTheme;
|
|
@@ -9,9 +9,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
spacing = _ref.spacing,
|
|
10
10
|
borders = _ref.borders;
|
|
11
11
|
return {
|
|
12
|
-
dropzoneBackgroundColor: colors.
|
|
12
|
+
dropzoneBackgroundColor: colors.contrasts.grey1111,
|
|
13
13
|
dropzoneBorderWidth: borders.widthSmall,
|
|
14
|
-
dropzoneBorderColor: colors.
|
|
14
|
+
dropzoneBorderColor: colors.contrasts.grey4570,
|
|
15
15
|
dropzonePadding: spacing.medium
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -12,7 +12,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
embeddedImageMargin: spacing.xSmall,
|
|
13
13
|
embeddedImagePadding: spacing.small,
|
|
14
14
|
mediaToggleMargin: spacing.xSmall,
|
|
15
|
-
mediaToggleColor: colors.
|
|
15
|
+
mediaToggleColor: colors.contrasts.grey1214
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
var _default = generateComponentTheme;
|
|
@@ -9,7 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
colors = _ref.colors;
|
|
10
10
|
return {
|
|
11
11
|
emptyTextMargin: spacing.small,
|
|
12
|
-
pageBackgroundColor: colors.
|
|
12
|
+
pageBackgroundColor: colors.contrasts.white1010
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
var _default = generateComponentTheme;
|
|
@@ -8,8 +8,8 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
var colors = _ref.colors,
|
|
9
9
|
typography = _ref.typography;
|
|
10
10
|
return {
|
|
11
|
-
barFillColor: colors.
|
|
12
|
-
barStarFillColor: colors.
|
|
11
|
+
barFillColor: colors.contrasts.blue4570,
|
|
12
|
+
barStarFillColor: colors.contrasts.orange4570,
|
|
13
13
|
barLabelColor: colors.textDarkest,
|
|
14
14
|
barLabelFontFamily: typography.fontFamily,
|
|
15
15
|
barLabelFontSize: typography.fontSizeSmall,
|
|
@@ -11,11 +11,11 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
11
11
|
typography = _ref.typography;
|
|
12
12
|
return {
|
|
13
13
|
containerBorderWidth: borders.widthSmall,
|
|
14
|
-
containerBorderColor: colors.
|
|
14
|
+
containerBorderColor: colors.contrasts.grey1214,
|
|
15
15
|
seriesContainerMargin: spacing.small,
|
|
16
16
|
seriesContainerRowMargin: spacing.medium,
|
|
17
17
|
seriesSwatchMargin: spacing.small,
|
|
18
|
-
seriesSwatchBackgroundColor: colors.
|
|
18
|
+
seriesSwatchBackgroundColor: colors.contrasts.blue4570,
|
|
19
19
|
seriesLabelFontFamily: typography.fontFamily,
|
|
20
20
|
seriesLabelFontSize: typography.fontSizeXSmall,
|
|
21
21
|
seriesLabelColor: colors.textDarkest
|
|
@@ -12,20 +12,20 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
borders = _ref.borders,
|
|
13
13
|
transitions = _ref.transitions;
|
|
14
14
|
return {
|
|
15
|
-
contentCellBorderColor: colors.
|
|
15
|
+
contentCellBorderColor: colors.contrasts.grey1214,
|
|
16
16
|
answerRowCellPadding: spacing.xSmall,
|
|
17
|
-
answerRowCorrectBackgroundColor: colors.
|
|
18
|
-
answerRowAnswerIconColor: colors.
|
|
17
|
+
answerRowCorrectBackgroundColor: colors.contrasts.white1010,
|
|
18
|
+
answerRowAnswerIconColor: colors.contrasts.green4570,
|
|
19
19
|
answerRowCorrectTextFieldFontWeight: typography.fontWeightBold,
|
|
20
|
-
answerRowCorrectBarBackgroundColor: colors.
|
|
20
|
+
answerRowCorrectBarBackgroundColor: colors.contrasts.green4570,
|
|
21
21
|
answerIconFontSize: typography.fontSizeXSmall,
|
|
22
|
-
answerIconColor: colors.
|
|
22
|
+
answerIconColor: colors.contrasts.grey4570,
|
|
23
23
|
answerTextfieldFontWeight: typography.fontWeightNormal,
|
|
24
|
-
respondentLinkColor: colors.
|
|
25
|
-
respondentLinkPresentColor: colors.
|
|
24
|
+
respondentLinkColor: colors.contrasts.grey4570,
|
|
25
|
+
respondentLinkPresentColor: colors.contrasts.blue4570,
|
|
26
26
|
answerRatioPaddingLeft: spacing.small,
|
|
27
27
|
barMinWidth: borders.widthSmall,
|
|
28
|
-
barBackgroundColor: colors.
|
|
28
|
+
barBackgroundColor: colors.contrasts.grey125125,
|
|
29
29
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
30
30
|
barTransition: "width ".concat(transitions.duration)
|
|
31
31
|
};
|
|
@@ -12,20 +12,20 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
12
12
|
return {
|
|
13
13
|
itemAnalysisRowPadding: spacing.small,
|
|
14
14
|
itemAnalysisRowMargin: spacing.small,
|
|
15
|
-
headerTextColor: colors.
|
|
15
|
+
headerTextColor: colors.contrasts.grey4570,
|
|
16
16
|
headerTextFontSize: typography.fontSizeXSmall,
|
|
17
17
|
metricNoteFontSize: typography.fontSizeMedium,
|
|
18
|
-
metricNoteColor: colors.
|
|
18
|
+
metricNoteColor: colors.contrasts.grey4570,
|
|
19
19
|
metricsRowLowerPadding: spacing.large,
|
|
20
20
|
stemFontSize: typography.fontSizeXSmall,
|
|
21
21
|
stemLineHeight: typography.lineHeight,
|
|
22
22
|
stemMargin: spacing.small,
|
|
23
23
|
emptyTextPadding: spacing.small,
|
|
24
|
-
emptyTextColor: colors.
|
|
24
|
+
emptyTextColor: colors.contrasts.grey4570,
|
|
25
25
|
answerDistributionPadding: spacing.small,
|
|
26
26
|
answerDistributionChartPadding: spacing.small,
|
|
27
27
|
answerDistributionLegendPadding: spacing.small,
|
|
28
|
-
answerDistributionSwatchColor: colors.
|
|
28
|
+
answerDistributionSwatchColor: colors.contrasts.blue4570,
|
|
29
29
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium)
|
|
30
30
|
};
|
|
31
31
|
};
|
|
@@ -7,11 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
8
|
var colors = _ref.colors;
|
|
9
9
|
return {
|
|
10
|
-
colorGreen: colors.
|
|
11
|
-
colorBlue: colors.
|
|
12
|
-
colorRed: colors.
|
|
13
|
-
colorGrey: colors.
|
|
14
|
-
colorHeaderBottomBorder: colors.
|
|
10
|
+
colorGreen: colors.contrasts.green4570,
|
|
11
|
+
colorBlue: colors.contrasts.blue4570,
|
|
12
|
+
colorRed: colors.contrasts.red4570,
|
|
13
|
+
colorGrey: colors.contrasts.grey4570,
|
|
14
|
+
colorHeaderBottomBorder: colors.contrasts.grey1214,
|
|
15
15
|
cellPadding: '13.5px 13.5px;'
|
|
16
16
|
};
|
|
17
17
|
};
|