@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
|
@@ -2,17 +2,14 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
var
|
|
5
|
+
var _SecondaryNavBarButton;
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { TopNavBar } from '@instructure/ui-top-nav-bar';
|
|
10
|
-
import {
|
|
10
|
+
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
12
|
-
|
|
13
|
-
import generateComponentTheme from "./theme.js";
|
|
14
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
15
|
-
export var SecondaryNavBarButton = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
12
|
+
export var SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
16
13
|
_inherits(SecondaryNavBarButton, _Component);
|
|
17
14
|
var _super = _createSuper(SecondaryNavBarButton);
|
|
18
15
|
function SecondaryNavBarButton() {
|
|
@@ -20,37 +17,21 @@ export var SecondaryNavBarButton = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
20
17
|
return _super.apply(this, arguments);
|
|
21
18
|
}
|
|
22
19
|
_createClass(SecondaryNavBarButton, [{
|
|
23
|
-
key: "componentDidMount",
|
|
24
|
-
value: function componentDidMount() {
|
|
25
|
-
this.props.makeStyles();
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
key: "componentDidUpdate",
|
|
29
|
-
value: function componentDidUpdate() {
|
|
30
|
-
this.props.makeStyles();
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
33
20
|
key: "render",
|
|
34
21
|
value: function render() {
|
|
35
|
-
return jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
BaseButton: {
|
|
39
|
-
primaryColor: this.props.styles.textColor,
|
|
40
|
-
primaryBackground: this.props.styles.backgroundColor,
|
|
41
|
-
primaryHoverBackground: this.props.styles.backgroundHoverColor,
|
|
42
|
-
primaryBorderColor: this.props.styles.borderColor
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, jsx(TopNavBar.Item, omitProps(this.props, this.constructor.propTypes), this.props.children));
|
|
22
|
+
return jsx(TopNavBar.Item, Object.assign({
|
|
23
|
+
color: "secondary"
|
|
24
|
+
}, omitProps(this.props, this.constructor.propTypes)), this.props.children);
|
|
47
25
|
}
|
|
48
26
|
}]);
|
|
49
27
|
SecondaryNavBarButton.displayName = "SecondaryNavBarButton";
|
|
50
28
|
return SecondaryNavBarButton;
|
|
51
|
-
}(Component)
|
|
29
|
+
}(Component);
|
|
30
|
+
_SecondaryNavBarButton = SecondaryNavBarButton;
|
|
31
|
+
SecondaryNavBarButton.displayName = 'TopNavBarItem';
|
|
32
|
+
SecondaryNavBarButton.componentId = "Quizzes".concat(_SecondaryNavBarButton.displayName);
|
|
33
|
+
SecondaryNavBarButton.propTypes = {
|
|
52
34
|
children: PropTypes.string.isRequired,
|
|
53
|
-
styles: PropTypes.object
|
|
54
|
-
|
|
55
|
-
}, _SecondaryNavBarButton)) || _class);
|
|
35
|
+
styles: PropTypes.object
|
|
36
|
+
};
|
|
56
37
|
export default SecondaryNavBarButton;
|
|
@@ -93,9 +93,6 @@ export var NavBar = (_dec = withStyleOverrides(generateStyle, generateComponentT
|
|
|
93
93
|
desktopBottomBorderInverse: false
|
|
94
94
|
} : {}),
|
|
95
95
|
navLabel: t('Quizzes navigation bar'),
|
|
96
|
-
desktopConfig: {
|
|
97
|
-
hideActionsUserSeparator: true
|
|
98
|
-
},
|
|
99
96
|
smallViewportConfig: {
|
|
100
97
|
dropdownMenuToggleButtonLabel: t('Toggle Menu'),
|
|
101
98
|
dropdownMenuLabel: t('Main Menu')
|
|
@@ -2,7 +2,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
2
2
|
var breakpoints = _ref.breakpoints,
|
|
3
3
|
colors = _ref.colors;
|
|
4
4
|
return {
|
|
5
|
-
backgroundColor: colors.
|
|
5
|
+
backgroundColor: colors.contrasts.grey1111,
|
|
6
6
|
phoneBreakPoint: breakpoints.medium
|
|
7
7
|
};
|
|
8
8
|
};
|
|
@@ -4,13 +4,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
borders = _ref.borders,
|
|
5
5
|
typography = _ref.typography;
|
|
6
6
|
return {
|
|
7
|
-
numberSummaryColor: colors.
|
|
7
|
+
numberSummaryColor: colors.contrasts.grey125125,
|
|
8
8
|
numberSummaryFontSize: typography.fontSizeMedium,
|
|
9
9
|
numberSummaryFontWeight: typography.fontWeightBold,
|
|
10
10
|
firstNumberSummaryPadding: spacing.xxSmall,
|
|
11
11
|
secondNumberSummaryPadding: spacing.xxSmall,
|
|
12
12
|
verticalDotsBorderWidth: borders.widthSmall,
|
|
13
|
-
verticalDotsBorderColor: colors.
|
|
13
|
+
verticalDotsBorderColor: colors.contrasts.grey125125
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
export default generateComponentTheme;
|
|
@@ -9,30 +9,30 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
return {
|
|
10
10
|
sidebarWidthClosed: spacing.xxLarge,
|
|
11
11
|
sidebarWidthOpen: '22rem',
|
|
12
|
-
sidebarBackgroundColor: colors.
|
|
12
|
+
sidebarBackgroundColor: colors.contrasts.white1010,
|
|
13
13
|
sidebarBorderWidth: borders.widthSmall,
|
|
14
|
-
sidebarBorderColor: colors.
|
|
15
|
-
sidebarColor: colors.
|
|
14
|
+
sidebarBorderColor: colors.contrasts.grey1214,
|
|
15
|
+
sidebarColor: colors.contrasts.grey100100,
|
|
16
16
|
sidebarZIndex: '5555',
|
|
17
17
|
sidebarTransitionDuration: transitions.duration,
|
|
18
18
|
infoHolderFontSize: typography.fontSizeXSmall,
|
|
19
19
|
infoHolderBorderWidth: borders.widthSmall,
|
|
20
|
-
infoHolderBorderColor: colors.
|
|
20
|
+
infoHolderBorderColor: colors.contrasts.grey1214,
|
|
21
21
|
infoHolderPadding: spacing.small,
|
|
22
|
-
actionableInfoHoverBorderColor: colors.
|
|
22
|
+
actionableInfoHoverBorderColor: colors.contrasts.blue4570,
|
|
23
23
|
actionableInfoBorderWidth: borders.widthLarge,
|
|
24
24
|
questionNavigatorPadding: spacing.xxxSmall,
|
|
25
25
|
headerSpacingPadding: "".concat(spacing.small, " ").concat(spacing.xSmall),
|
|
26
|
-
pinnedSectionBackgroundColor: colors.
|
|
26
|
+
pinnedSectionBackgroundColor: colors.contrasts.grey1111,
|
|
27
27
|
pinnedQuestionSpacing: spacing.small,
|
|
28
28
|
pinnedQuestionFontSize: typography.fontSizeSmall,
|
|
29
29
|
sidebarHeaderBorderWidth: borders.widthSmall,
|
|
30
|
-
sidebarHeaderBorderColor: colors.
|
|
30
|
+
sidebarHeaderBorderColor: colors.contrasts.grey1214,
|
|
31
31
|
descriptionFontSize: typography.fontSizeXSmall,
|
|
32
|
-
descriptionFontColor: colors.
|
|
32
|
+
descriptionFontColor: colors.contrasts.grey4570,
|
|
33
33
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
34
|
-
focusBorderColor: colors.
|
|
35
|
-
focusOutlineColor: alpha(colors.
|
|
34
|
+
focusBorderColor: colors.contrasts.blue4570,
|
|
35
|
+
focusOutlineColor: alpha(colors.contrasts.blue4570, 50)
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export default generateComponentTheme;
|
|
@@ -4,13 +4,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
typography = _ref.typography,
|
|
5
5
|
spacing = _ref.spacing;
|
|
6
6
|
return {
|
|
7
|
-
borderColor: colors.
|
|
8
|
-
bottomBorderColor: colors.
|
|
7
|
+
borderColor: colors.contrasts.white1010,
|
|
8
|
+
bottomBorderColor: colors.contrasts.grey1214,
|
|
9
9
|
bottomBorderWidth: borders.widthSmall,
|
|
10
|
-
darkTextColor: colors.
|
|
11
|
-
hoverBorderColor: colors.
|
|
10
|
+
darkTextColor: colors.contrasts.grey125125,
|
|
11
|
+
hoverBorderColor: colors.contrasts.blue4570,
|
|
12
12
|
hoverBorderWidth: borders.widthLarge,
|
|
13
|
-
infoHeaderColor: colors.
|
|
13
|
+
infoHeaderColor: colors.contrasts.grey4570,
|
|
14
14
|
infoHeaderFontSize: typography.fontSizeXSmall,
|
|
15
15
|
itemBodyFontSize: typography.fontSizeSmall,
|
|
16
16
|
itemBodyMarginTop: spacing.xxSmall,
|
|
@@ -4,7 +4,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
borders = _ref.borders;
|
|
5
5
|
return {
|
|
6
6
|
columnPadding: spacing.xSmall,
|
|
7
|
-
sidebarIsOpenBottomBorderColor: colors.
|
|
7
|
+
sidebarIsOpenBottomBorderColor: colors.contrasts.grey4570,
|
|
8
8
|
sidebarIsOpenBottomBorderWidth: borders.widthSmall
|
|
9
9
|
};
|
|
10
10
|
};
|
|
@@ -3,10 +3,10 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
spacing = _ref.spacing,
|
|
4
4
|
borders = _ref.borders;
|
|
5
5
|
return {
|
|
6
|
-
itemContainerColor: colors.
|
|
6
|
+
itemContainerColor: colors.contrasts.grey125125,
|
|
7
7
|
itemContainerPadding: spacing.xSmall,
|
|
8
8
|
itemContainerBorderWidth: borders.widthSmall,
|
|
9
|
-
itemContainerBorderColor: colors.
|
|
9
|
+
itemContainerBorderColor: colors.contrasts.grey125125,
|
|
10
10
|
summaryMargin: spacing.small,
|
|
11
11
|
summaryMarginLeft: spacing.medium
|
|
12
12
|
};
|
|
@@ -4,17 +4,17 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
borders = _ref.borders,
|
|
5
5
|
typography = _ref.typography;
|
|
6
6
|
return {
|
|
7
|
-
borderColor: colors.
|
|
8
|
-
hoverBorderColor: colors.
|
|
7
|
+
borderColor: colors.contrasts.white1010,
|
|
8
|
+
hoverBorderColor: colors.contrasts.blue4570,
|
|
9
9
|
hoverBorderWidth: borders.widthLarge,
|
|
10
10
|
sidebarClosedButtonPadding: "".concat(spacing.xxSmall, " 0"),
|
|
11
11
|
sidebarHeaderPadding: spacing.small,
|
|
12
12
|
sidebarItemBorderWidth: borders.widthSmall,
|
|
13
|
-
sidebarItemBorderColor: colors.
|
|
13
|
+
sidebarItemBorderColor: colors.contrasts.grey1214,
|
|
14
14
|
sidebarIsOpenInfoHeaderFontSize: typography.fontSizeXSmall,
|
|
15
15
|
sidebarIsOpenInfoHeaderPadding: spacing.xSmall,
|
|
16
16
|
sidebarIsOpenInfoHeaderMargin: spacing.xSmall,
|
|
17
|
-
sidebarIsOpenInfoHeaderColor: colors.
|
|
17
|
+
sidebarIsOpenInfoHeaderColor: colors.contrasts.grey4570
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export default generateComponentTheme;
|
|
@@ -6,7 +6,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
alertPadding: spacing.medium,
|
|
7
7
|
alertZIndex: '8888',
|
|
8
8
|
containerPadding: spacing.medium,
|
|
9
|
-
disabledChildrenBackgroundColor: colors.
|
|
9
|
+
disabledChildrenBackgroundColor: colors.contrasts.grey1111,
|
|
10
10
|
disabledChildrenOpacity: '0.6',
|
|
11
11
|
disabledChildrenZIndex: '7777'
|
|
12
12
|
};
|
|
@@ -13,7 +13,6 @@ import componentForItem from "../../../../util/componentForItem.js";
|
|
|
13
13
|
import { liveRegion, COMPONENT_EDIT, FormFieldGroup } from '@instructure/quiz-common';
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import { propsForInteractionEdit } from "../../../../util/interactionTypePropsHelper.js";
|
|
16
|
-
import elementsForSelectors from "../../../../../common/util/ElementsForSelectors.js";
|
|
17
16
|
import { toErrors } from "../../../../util/instUIMessages.js";
|
|
18
17
|
export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
19
18
|
_inherits(ItemEdit, _Component);
|
|
@@ -32,9 +31,6 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
32
31
|
}
|
|
33
32
|
return null;
|
|
34
33
|
};
|
|
35
|
-
_this.applicationElement = function () {
|
|
36
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
37
|
-
};
|
|
38
34
|
_this.onModalOpen = function () {
|
|
39
35
|
_this.props.occludeQuizEntries(true);
|
|
40
36
|
};
|
|
@@ -97,7 +93,6 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
97
93
|
component: /*#__PURE__*/React.createElement(OutcomeAlignments, Object.assign({
|
|
98
94
|
artifactType: "quizEntry",
|
|
99
95
|
artifactId: itemId,
|
|
100
|
-
applicationElement: this.applicationElement,
|
|
101
96
|
alignmentSetId: outcomeAlignmentSetGuid,
|
|
102
97
|
contextUuid: this.props.contextUuid
|
|
103
98
|
}, launchContexts.length > 0 && {
|
|
@@ -5,10 +5,10 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
5
5
|
return {
|
|
6
6
|
positionMargin: spacing.xSmall,
|
|
7
7
|
positionPadding: spacing.xSmall,
|
|
8
|
-
positionBackgroundColor: colors.
|
|
8
|
+
positionBackgroundColor: colors.contrasts.grey125125,
|
|
9
9
|
positionZIndex: '3333',
|
|
10
10
|
positionDimension: '2em',
|
|
11
|
-
positionTextColor: colors.
|
|
11
|
+
positionTextColor: colors.contrasts.grey1111,
|
|
12
12
|
positionTextFontSize: typography.fontSizeMedium
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -8,7 +8,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
9
9
|
popoverContentMargin: spacing.medium,
|
|
10
10
|
popoverHeaderBoxBorderWidth: borders.widthSmall,
|
|
11
|
-
popoverHeaderBoxBorderColor: colors.
|
|
11
|
+
popoverHeaderBoxBorderColor: colors.contrasts.grey1214
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export default generateComponentTheme;
|
|
@@ -8,16 +8,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
attachQuestionButtonHolderZIndex: '2222',
|
|
9
9
|
newItemButtonMargin: spacing.xSmall,
|
|
10
10
|
newItemButtonPadding: spacing.xSmall,
|
|
11
|
-
newItemButtonBackgroundColor: colors.
|
|
11
|
+
newItemButtonBackgroundColor: colors.contrasts.blue4570,
|
|
12
12
|
newItemButtonBorderRadius: spacing.large,
|
|
13
|
-
newItemButtonColor: colors.
|
|
14
|
-
newItemButtonFocusOutline: "2px solid ".concat(colors.
|
|
13
|
+
newItemButtonColor: colors.contrasts.white1010,
|
|
14
|
+
newItemButtonFocusOutline: "2px solid ".concat(colors.contrasts.blue4570),
|
|
15
15
|
newItemButtonFocusOutlineOffset: spacing.xxxSmall,
|
|
16
16
|
newItemButtonFontSize: typography.fontSizeMedium,
|
|
17
17
|
newItemButtonFontWeight: typography.fontWeightBold,
|
|
18
18
|
newItemButtonZIndex: '4444',
|
|
19
19
|
newItemButtonBoxShadow: '2px 2px 3px #ddd',
|
|
20
|
-
newItemButtonEditingBackgroundColor: colors.
|
|
20
|
+
newItemButtonEditingBackgroundColor: colors.contrasts.red4570,
|
|
21
21
|
newItemButtonHolderZIndex: '2222',
|
|
22
22
|
newItemButtonTransition: "background-color ".concat(transitions.duration, " linear, transform ").concat(transitions.duration, " ease")
|
|
23
23
|
};
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Popover } from '@instructure/ui-popover';
|
|
10
10
|
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import CustomPropTypes from "../../../../../util/CustomPropTypes.js";
|
|
12
|
-
import elementsForSelectors from "../../../../../util/ElementsForSelectors.js";
|
|
13
12
|
import { onPhone, onTablet } from "../../../../../util/windowChecks.js";
|
|
14
13
|
import AddContentButton from "../Button/index.js";
|
|
15
14
|
import AddContentBody from "../Body/index.js";
|
|
@@ -26,9 +25,6 @@ export var AddContentPopover = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
26
25
|
args[_key] = arguments[_key];
|
|
27
26
|
}
|
|
28
27
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
29
|
-
_this.applicationElement = function () {
|
|
30
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
31
|
-
};
|
|
32
28
|
_this.showContent = function () {
|
|
33
29
|
_this.props.switchOnEditing();
|
|
34
30
|
};
|
|
@@ -3,7 +3,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
3
3
|
borders = _ref.borders;
|
|
4
4
|
return {
|
|
5
5
|
borderLineBorderWidth: borders.widthMedium,
|
|
6
|
-
borderLineBorderColor: colors.
|
|
6
|
+
borderLineBorderColor: colors.contrasts.grey1111
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export default generateComponentTheme;
|
|
@@ -6,16 +6,16 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
breakpoints = _ref.breakpoints;
|
|
7
7
|
return {
|
|
8
8
|
rootBorderWidth: borders.widthSmall,
|
|
9
|
-
rootBorderColor: colors.
|
|
9
|
+
rootBorderColor: colors.contrasts.grey1111,
|
|
10
10
|
instructionsPaddingTopBottom: spacing.medium,
|
|
11
11
|
instructionsPaddingLeftRight: spacing.large,
|
|
12
12
|
instructionsBorderWidth: borders.widthSmall,
|
|
13
|
-
instructionsBorderColor: colors.
|
|
13
|
+
instructionsBorderColor: colors.contrasts.grey1111,
|
|
14
14
|
instructionsHeaderPadding: spacing.xSmall,
|
|
15
15
|
instructionsHeaderFontWeight: typography.fontWeightBold,
|
|
16
16
|
infoPaddingTopBottom: spacing.small,
|
|
17
17
|
infoPaddingLeftRight: spacing.medium,
|
|
18
|
-
infoBackgroundColor: colors.
|
|
18
|
+
infoBackgroundColor: colors.contrasts.grey1111,
|
|
19
19
|
headerPaddingTop: spacing.xSmall,
|
|
20
20
|
headerPaddingBottom: spacing.small,
|
|
21
21
|
titleFontSize: typography.fontSizeMedium,
|
|
@@ -26,7 +26,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
26
26
|
phoneInstructionsPaddingLeftRight: spacing.small,
|
|
27
27
|
phoneInfoPadding: spacing.small,
|
|
28
28
|
phoneConnectingLinesBorderWidth: borders.widthSmall,
|
|
29
|
-
phoneConnectingLinesBorderColor: colors.
|
|
29
|
+
phoneConnectingLinesBorderColor: colors.contrasts.grey1214,
|
|
30
30
|
phoneConnectingLinesMargin: spacing.small
|
|
31
31
|
};
|
|
32
32
|
};
|
|
@@ -108,7 +108,7 @@ export var SessionItemResult = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
108
108
|
size: "small",
|
|
109
109
|
margin: "small"
|
|
110
110
|
}, jsx(Text, {
|
|
111
|
-
color: "
|
|
111
|
+
color: "alert"
|
|
112
112
|
}, t("Regrade score { possible, plural,\n one {{points, number} / # point}\n other {{points, number} / # points}\n }", {
|
|
113
113
|
points: this.props.sessionItemResult.regradeInfo.get('newScore') || 0,
|
|
114
114
|
possible: this.props.sessionItemResult.regradeInfo.get('newPointsPossible')
|
|
@@ -6,9 +6,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
return {
|
|
7
7
|
sessionItemResultPadding: spacing.small,
|
|
8
8
|
topBorderWidth: borders.widthSmall,
|
|
9
|
-
topBorderColor: colors.
|
|
9
|
+
topBorderColor: colors.contrasts.grey1214,
|
|
10
10
|
resultMargin: spacing.small,
|
|
11
|
-
pointsColor: colors.
|
|
11
|
+
pointsColor: colors.contrasts.grey4570,
|
|
12
12
|
pointFontSize: typography.fontSizeXSmall,
|
|
13
13
|
questionFontSize: typography.fontSizeMedium,
|
|
14
14
|
itemFeedbackWrapperMargin: spacing.small,
|
|
@@ -17,9 +17,9 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
17
17
|
itemFeedbackWrapperFontSize: typography.fontSizeSmall,
|
|
18
18
|
itemFeedbackWrapperBorderStyle: borders.borderStyle,
|
|
19
19
|
itemFeedbackWrapperBorderWidth: borders.widthSmall,
|
|
20
|
-
itemFeedbackWrapperBorderColor: colors.
|
|
20
|
+
itemFeedbackWrapperBorderColor: colors.contrasts.grey1214,
|
|
21
21
|
itemFeedbackWrapperStyle: borders.style,
|
|
22
|
-
itemFeedbackLabelColor: colors.
|
|
22
|
+
itemFeedbackLabelColor: colors.contrasts.grey100100,
|
|
23
23
|
itemFeedbackLabelFontSize: typography.fontSizeXSmall,
|
|
24
24
|
itemFeedbackMargin: spacing.xxSmall,
|
|
25
25
|
itemFeedbackTextSize: typography.fontSizeMedium,
|
|
@@ -8,7 +8,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
8
8
|
sessionItemResultsListHeaderWrapperMarginLeftRight: spacing.large,
|
|
9
9
|
sessionItemResultsListHeaderFontSize: typography.fontSizeXLarge,
|
|
10
10
|
sessionItemResultsListMargin: spacing.xSmall,
|
|
11
|
-
sessionItemResultsListBorderColor: colors.
|
|
11
|
+
sessionItemResultsListBorderColor: colors.contrasts.grey1214,
|
|
12
12
|
sessionItemResultsListBorderWidth: borders.widthSmall
|
|
13
13
|
};
|
|
14
14
|
};
|
|
@@ -67,6 +67,11 @@ export var Stimulus = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
67
67
|
lockBlueprintContentEnabled = _this$props2.lockBlueprintContentEnabled;
|
|
68
68
|
return lockBlueprintContentEnabled && isContentLockedByBlueprint;
|
|
69
69
|
}
|
|
70
|
+
}, {
|
|
71
|
+
key: "isPassage",
|
|
72
|
+
value: function isPassage() {
|
|
73
|
+
return this.props.stimulus.passage;
|
|
74
|
+
}
|
|
70
75
|
}, {
|
|
71
76
|
key: "renderChildQuizEntries",
|
|
72
77
|
value: function renderChildQuizEntries() {
|
|
@@ -94,9 +99,10 @@ export var Stimulus = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
94
99
|
key: "renderStimulusPanel",
|
|
95
100
|
value: function renderStimulusPanel() {
|
|
96
101
|
var StimulusComponent = this.props.isEditing ? StimulusEdit : StimulusShow;
|
|
102
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
97
103
|
var connectDragPreview = this.props.connectDragPreview;
|
|
98
104
|
return connectDragPreview(jsx("div", {
|
|
99
|
-
"data-automation": "sdk-
|
|
105
|
+
"data-automation": "sdk-".concat(automationPrefix, "-LeftPanelShow")
|
|
100
106
|
}, jsx(StimulusComponent, {
|
|
101
107
|
bankEntryWarningWrapperProps: this.props.bankEntryWarningWrapperProps,
|
|
102
108
|
connectDragSource: this.props.connectDragSource,
|
|
@@ -121,18 +127,18 @@ export var Stimulus = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
121
127
|
}, {
|
|
122
128
|
key: "renderPanels",
|
|
123
129
|
value: function renderPanels(propsForDnDZone) {
|
|
124
|
-
var
|
|
130
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
125
131
|
return jsx("div", {
|
|
126
132
|
css: this.props.styles.stimulus,
|
|
127
133
|
ref: this.props.dndRef,
|
|
128
|
-
"data-automation": "sdk-
|
|
134
|
+
"data-automation": "sdk-".concat(automationPrefix)
|
|
129
135
|
}, jsx("div", {
|
|
130
136
|
css: this.props.styles.leftPanel
|
|
131
137
|
}, this.renderStimulusPanel()), jsx("div", {
|
|
132
138
|
css: this.props.styles.itemPanel
|
|
133
|
-
}, jsx("div", null), this.renderChildQuizEntries(), !isPassage && jsx(DragAndDropZone, Object.assign({}, propsForDnDZone, {
|
|
139
|
+
}, jsx("div", null), this.renderChildQuizEntries(), !this.isPassage() && jsx(DragAndDropZone, Object.assign({}, propsForDnDZone, {
|
|
134
140
|
location: "in"
|
|
135
|
-
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !isPassage && jsx(AddContentPopover, {
|
|
141
|
+
})), this.props.childEntries.size === 0 && !this.isQuizContentLocked() && !this.isPassage() && jsx(AddContentPopover, {
|
|
136
142
|
allowStimulusCreation: false,
|
|
137
143
|
stimulusId: this.props.stimulus.id,
|
|
138
144
|
parentEntryId: this.props.quizEntry.id,
|
|
@@ -6,7 +6,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
return {
|
|
7
7
|
leftPanelPadding: spacing.xxSmall,
|
|
8
8
|
leftPanelBorderWidth: borders.widthSmall,
|
|
9
|
-
leftPanelBorderColor: colors.
|
|
9
|
+
leftPanelBorderColor: colors.contrasts.grey1214,
|
|
10
10
|
rightPanelPadding: spacing.xSmall,
|
|
11
11
|
dragAndDropHandleZIndex: '3333',
|
|
12
12
|
dragAndDropHandleFontSize: typography.fontSizeMedium,
|
|
@@ -58,6 +58,7 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
58
58
|
_this.props.setUi(SHOULD_CLONE_ITEM, false);
|
|
59
59
|
};
|
|
60
60
|
_this.handleDeleteTemporary = function () {
|
|
61
|
+
var isPassage = _this.isPassage();
|
|
61
62
|
_this.props.withConfirm(function () {
|
|
62
63
|
_this.onCancel();
|
|
63
64
|
_this.props.setUi(DELETED_QUIZ_ENTRY, {
|
|
@@ -65,10 +66,11 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
65
66
|
inStimulus: false
|
|
66
67
|
});
|
|
67
68
|
}, {
|
|
68
|
-
title: t('Confirm Stimulus Removal'),
|
|
69
|
-
text: t('Are you sure you want to remove this stimulus?'),
|
|
70
|
-
continueText: t('Remove Stimulus'),
|
|
71
|
-
cancelText: t('Keep Stimulus')
|
|
69
|
+
title: isPassage ? t('Confirm Passage Removal') : t('Confirm Stimulus Removal'),
|
|
70
|
+
text: isPassage ? t('Are you sure you want to remove this passage?') : t('Are you sure you want to remove this stimulus?'),
|
|
71
|
+
continueText: isPassage ? t('Remove Passage') : t('Remove Stimulus'),
|
|
72
|
+
cancelText: isPassage ? t('Keep Passage ') : t('Keep Stimulus'),
|
|
73
|
+
automationPrefix: isPassage ? 'passage' : 'stimulus'
|
|
72
74
|
});
|
|
73
75
|
};
|
|
74
76
|
_this.handleDeleteStimulus = function () {
|
|
@@ -293,6 +295,12 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
293
295
|
outsideApp = _checkClickedNode.outsideApp;
|
|
294
296
|
return outsideApp || !isEndEditingTrigger;
|
|
295
297
|
}
|
|
298
|
+
}, {
|
|
299
|
+
key: "isPassage",
|
|
300
|
+
value: function isPassage() {
|
|
301
|
+
var _this$props$stimulus;
|
|
302
|
+
return (_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage;
|
|
303
|
+
}
|
|
296
304
|
}, {
|
|
297
305
|
key: "afterSubmit",
|
|
298
306
|
value: function afterSubmit() {
|
|
@@ -320,8 +328,7 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
320
328
|
}, {
|
|
321
329
|
key: "renderAddToBankOptions",
|
|
322
330
|
value: function renderAddToBankOptions() {
|
|
323
|
-
var
|
|
324
|
-
var paddingTopStyle = ((_this$props$stimulus = this.props.stimulus) === null || _this$props$stimulus === void 0 ? void 0 : _this$props$stimulus.passage) ? {
|
|
331
|
+
var paddingTopStyle = this.isPassage() ? {
|
|
325
332
|
padding: 'small 0 0'
|
|
326
333
|
} : {};
|
|
327
334
|
return jsx(View, Object.assign({
|
|
@@ -346,7 +353,8 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
346
353
|
}, {
|
|
347
354
|
key: "renderStimulusEdit",
|
|
348
355
|
value: function renderStimulusEdit() {
|
|
349
|
-
var stimulusLabel = this.
|
|
356
|
+
var stimulusLabel = this.isPassage() ? t('Passage') : t('Stimulus');
|
|
357
|
+
var automationPrefix = this.isPassage() ? 'passage' : 'stimulus';
|
|
350
358
|
return jsx("div", null, jsx("div", {
|
|
351
359
|
css: this.props.styles.stimulus,
|
|
352
360
|
ref: this.handleRef
|
|
@@ -380,7 +388,7 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
380
388
|
}, jsx(Button, {
|
|
381
389
|
type: "button",
|
|
382
390
|
onClick: this.onCancel,
|
|
383
|
-
"data-automation": "sdk-
|
|
391
|
+
"data-automation": "sdk-".concat(automationPrefix, "-discardButton")
|
|
384
392
|
}, t('Cancel'))), jsx("div", {
|
|
385
393
|
className: "submitButtonWrapper",
|
|
386
394
|
css: this.props.styles.buttonWrapper
|
|
@@ -389,7 +397,7 @@ export var StimulusEdit = (_dec = withStyleOverrides(generateStyle, generateComp
|
|
|
389
397
|
color: "primary",
|
|
390
398
|
disabled: !this.state.canSubmit,
|
|
391
399
|
onClick: this.onSubmit,
|
|
392
|
-
"data-automation": "sdk-
|
|
400
|
+
"data-automation": "sdk-".concat(automationPrefix, "-done-button")
|
|
393
401
|
}, t('Done')))));
|
|
394
402
|
}
|
|
395
403
|
}, {
|
|
@@ -9,7 +9,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
9
9
|
optionPadding: spacing.small,
|
|
10
10
|
stimulusContentPadding: spacing.small,
|
|
11
11
|
stimulusContentPaddingBottom: spacing.small,
|
|
12
|
-
stimulusButtonsColor: colors.
|
|
12
|
+
stimulusButtonsColor: colors.contrasts.grey100100,
|
|
13
13
|
stimulusButtonsZIndex: '3333'
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -139,6 +139,7 @@ export var StimulusEditInfo = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
139
139
|
var stimulus = this.props.workingStimulus;
|
|
140
140
|
var textAreaId = "stimulusBodyEdit_".concat(stimulus.id, "_").concat(this.props.isBankedContent);
|
|
141
141
|
var stimulusBodyId = "stimulusBodyEdit_".concat(stimulus.id, "_body");
|
|
142
|
+
var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
|
|
142
143
|
return jsx(FormFieldGroup, {
|
|
143
144
|
messages: this.inputErrors('onSelf'),
|
|
144
145
|
description: jsx(ScreenReaderContent, null, t('Edit Stimulus'))
|
|
@@ -154,7 +155,7 @@ export var StimulusEditInfo = (_dec = withStyleOverrides(generateStyle, generate
|
|
|
154
155
|
ref: this.props.setTitleRef,
|
|
155
156
|
onChange: this.onTextInputChange('title'),
|
|
156
157
|
value: stimulus.get('title'),
|
|
157
|
-
"data-automation": "sdk-
|
|
158
|
+
"data-automation": "sdk-".concat(automationPrefix, "-title-input")
|
|
158
159
|
})), this.renderInstructions(stimulus), jsx("div", {
|
|
159
160
|
css: this.props.styles.section
|
|
160
161
|
}, jsx(FormField, {
|
|
@@ -4,7 +4,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
colors = _ref.colors;
|
|
5
5
|
return {
|
|
6
6
|
sectionPadding: spacing.small,
|
|
7
|
-
optionalLabelColor: colors.
|
|
7
|
+
optionalLabelColor: colors.contrasts.grey4570,
|
|
8
8
|
optionalLabelFontSize: typography.fontSizeXSmall,
|
|
9
9
|
urlLabelMargin: spacing.xSmall
|
|
10
10
|
};
|
|
@@ -19,7 +19,9 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
19
19
|
_createClass(StimulusShowInfo, [{
|
|
20
20
|
key: "render",
|
|
21
21
|
value: function render() {
|
|
22
|
-
var
|
|
22
|
+
var stimulus = this.props.stimulus;
|
|
23
|
+
var automationPrefix = stimulus.passage ? 'passage' : 'stimulus';
|
|
24
|
+
var instructions = stimulus.instructions && /*#__PURE__*/React.createElement(View, {
|
|
23
25
|
as: "div",
|
|
24
26
|
padding: "small",
|
|
25
27
|
margin: "x-small 0 0 0",
|
|
@@ -38,10 +40,10 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
38
40
|
color: "primary",
|
|
39
41
|
size: "small",
|
|
40
42
|
weight: "bold"
|
|
41
|
-
},
|
|
43
|
+
}, stimulus.instructions))));
|
|
42
44
|
return /*#__PURE__*/React.createElement(View, {
|
|
43
45
|
as: "div"
|
|
44
|
-
},
|
|
46
|
+
}, stimulus.title && /*#__PURE__*/React.createElement(Heading, {
|
|
45
47
|
level: "h3",
|
|
46
48
|
as: "h2",
|
|
47
49
|
color: "primary",
|
|
@@ -49,8 +51,8 @@ var StimulusShowInfo = /*#__PURE__*/function (_Component) {
|
|
|
49
51
|
themeOverride: {
|
|
50
52
|
h2FontWeight: '700'
|
|
51
53
|
}
|
|
52
|
-
},
|
|
53
|
-
"data-automation": "sdk-
|
|
54
|
+
}, stimulus.title), instructions, /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
"data-automation": "sdk-".concat(automationPrefix, "-LeftPanelShow-content")
|
|
54
56
|
}, /*#__PURE__*/React.createElement(RichContentRenderer, {
|
|
55
57
|
content: this.props.stimulus.body
|
|
56
58
|
})));
|
|
@@ -6,13 +6,13 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
6
6
|
transitions = _ref.transitions;
|
|
7
7
|
return {
|
|
8
8
|
contentTransitionDuration: transitions.duration,
|
|
9
|
-
contentBackgroundColor: colors.
|
|
9
|
+
contentBackgroundColor: colors.contrasts.white1010,
|
|
10
10
|
contentMaxWidth: '79.5rem',
|
|
11
11
|
contentMargin: spacing.medium,
|
|
12
12
|
phoneBreakPoint: "max-width: ".concat(breakpoints.medium),
|
|
13
13
|
phoneContentMargin: spacing.xSmall,
|
|
14
14
|
contentBoxShadow: shadows.depth1,
|
|
15
|
-
contentBorderColor: colors.
|
|
15
|
+
contentBorderColor: colors.contrasts.grey1214,
|
|
16
16
|
contentBorderRadius: '4px'
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
4
4
|
spacing = _ref.spacing;
|
|
5
5
|
return {
|
|
6
6
|
stimulusDividerBorderWidth: borders.widthSmall,
|
|
7
|
-
stimulusDividerBorderColor: colors.
|
|
7
|
+
stimulusDividerBorderColor: colors.contrasts.grey4570,
|
|
8
8
|
stimulusDividerMarginTop: spacing.xSmall,
|
|
9
9
|
stimulusDividerMarginBottom: spacing.small
|
|
10
10
|
};
|