@instructure/quiz-core 20.34.1-snapshot.7 → 20.34.1-snapshot.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/banks/components/Bank/presenter.js +4 -4
- package/es/banks/components/BankEntriesList/presenter.js +4 -3
- package/es/banks/components/BankEntry/presenter.js +4 -4
- package/es/banks/components/BankEntryRow/presenter.js +4 -4
- package/es/banks/components/BankSearch/presenter.js +4 -3
- package/es/banks/components/Banks/presenter.js +4 -4
- package/es/banks/components/BanksList/presenter.js +4 -4
- package/es/banks/components/CreateBankModal/presenter.js +4 -4
- package/es/banks/components/EditBankModal/presenter.js +4 -4
- package/es/banks/components/HeaderMenu/presenter.js +4 -4
- package/es/banks/components/NavWrapper/presenter.js +4 -3
- package/es/banks/components/SharingModal/RootAccountSharing.js +3 -4
- package/es/banks/components/SharingModal/ShareList/index.js +4 -4
- package/es/banks/components/SharingModal/presenter.js +4 -4
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +4 -3
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +4 -3
- package/es/building/components/layout/Sidebar/presenter.js +4 -4
- package/es/building/components/layout/header/BuildingButtons/presenter.js +4 -4
- package/es/building/components/resources/ActionButtons/presenter.js +4 -4
- package/es/building/components/resources/AddToBankOptions/index.js +4 -4
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +4 -4
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +4 -4
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +4 -4
- package/es/building/components/resources/quiz/instructions/Instructions/presenter.js +4 -3
- package/es/building/components/resources/quiz/instructions/Show/index.js +4 -3
- package/es/building/components/resources/quiz/title/Edit/index.js +4 -3
- package/es/building/components/resources/quiz/title/Show/index.js +9 -4
- package/es/building/components/resources/quiz/title/Title/presenter.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntry/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +4 -3
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +4 -4
- package/es/building/components/resources/quizEntry/QuizEntryShow/presenter.js +4 -4
- package/es/common/components/ImportModal/ImportFileSelector/index.js +4 -3
- package/es/common/components/ImportModal/presenter.js +4 -4
- package/es/common/components/PrintFontSizeModal/presenter.js +4 -4
- package/es/common/components/SDKApp/index.js +4 -4
- package/es/common/components/alerts/presenter.js +4 -3
- package/es/common/components/layout/Page/index.js +4 -3
- package/es/common/components/layout/header/HeaderMenuButton/presenter.js +4 -3
- package/es/common/components/layout/header/Timer/presenter.js +4 -3
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +4 -3
- package/es/common/components/layout/navbar/index.js +4 -3
- package/es/common/components/layout/sidebar/PositionSummary/index.js +4 -3
- package/es/common/components/layout/sidebar/Sidebar/index.js +4 -4
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +4 -4
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Summary/presenter.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/Title/index.js +4 -3
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +4 -4
- package/es/common/components/resources/WarningWrapper/index.js +4 -3
- package/es/common/components/resources/positionBox/PositionBox.js +4 -3
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Button/index.js +4 -4
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +4 -4
- package/es/common/components/resources/quiz/instructions/Instructions.js +4 -3
- package/es/common/components/resources/quiz/title/Title.js +4 -3
- package/es/common/components/resources/quizSessionResult/Header/index.js +4 -3
- package/es/common/components/resources/quizSessionResult/Info/index.js +4 -4
- package/es/common/components/resources/sessionItemResult/ResultStimulus/index.js +4 -3
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +4 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +4 -3
- package/es/common/components/resources/stimulus/Stimulus/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -4
- package/es/common/components/resources/stimulus/StimulusShow/index.js +4 -3
- package/es/common/components/shared/Card/CardContent/index.js +4 -3
- package/es/common/components/shared/Card/CardWrapper/index.js +4 -3
- package/es/common/components/shared/ExpandButton/index.js +4 -3
- package/es/common/components/shared/InteractionTypes/presenter.js +4 -3
- package/es/common/components/shared/PaginatedCollection/presenter.js +4 -3
- package/es/common/components/shared/Paginator/index.js +4 -3
- package/es/common/components/shared/TagDisplay/index.js +4 -3
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +4 -3
- package/es/common/components/shared/errors/Errors.js +4 -3
- package/es/common/components/shared/file_selector/FileSelector.js +4 -3
- package/es/common/components/shared/overlay/index.js +4 -4
- package/es/common/components/shared/spinner/Spinner.js +4 -3
- package/es/index.js +4 -1
- package/es/moderating/components/events/Event.js +3 -0
- package/es/moderating/components/events/ResponseEvent.js +4 -3
- package/es/moderating/components/resources/ModerateTable/presenter.js +4 -4
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +4 -4
- package/es/reporting/api/fetchStudentAnalyses.js +9 -4
- package/es/reporting/api/getAnalysesExport.js +11 -4
- package/es/reporting/api/getAnalysesStatus.js +11 -4
- package/es/reporting/components/Caption/index.js +4 -3
- package/es/reporting/components/MetricsListItem/index.js +4 -3
- package/es/reporting/components/charts/CentileDistribution/presenter.js +4 -3
- package/es/reporting/components/charts/Distribution/presenter.js +4 -3
- package/es/reporting/components/charts/Legend/index.js +4 -3
- package/es/reporting/components/charts/QuintileDistribution/presenter.js +4 -3
- package/es/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +4 -3
- package/es/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +4 -4
- package/es/reporting/components/quizAnalysis/QuizAnalysisOverview.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +4 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +4 -3
- package/es/reporting/components/resources/QuizAndItemAnalysis/presenter.js +4 -4
- package/es/reporting/components/resources/ReportCard/index.js +4 -3
- package/es/reporting/components/resources/ReportList/index.js +4 -3
- package/es/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +8 -6
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
- package/es/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
- package/lib/banks/components/Bank/presenter.js +2 -2
- package/lib/banks/components/BankEntriesList/presenter.js +3 -2
- package/lib/banks/components/BankEntry/presenter.js +2 -2
- package/lib/banks/components/BankEntryRow/presenter.js +2 -2
- package/lib/banks/components/BankSearch/presenter.js +3 -2
- package/lib/banks/components/Banks/presenter.js +2 -2
- package/lib/banks/components/BanksList/presenter.js +2 -2
- package/lib/banks/components/CreateBankModal/presenter.js +2 -2
- package/lib/banks/components/EditBankModal/presenter.js +2 -2
- package/lib/banks/components/HeaderMenu/presenter.js +2 -2
- package/lib/banks/components/NavWrapper/presenter.js +3 -2
- package/lib/banks/components/SharingModal/RootAccountSharing.js +2 -3
- package/lib/banks/components/SharingModal/ShareList/index.js +2 -2
- package/lib/banks/components/SharingModal/presenter.js +2 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +3 -2
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +3 -2
- package/lib/building/components/layout/Sidebar/presenter.js +2 -2
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +2 -2
- package/lib/building/components/resources/ActionButtons/presenter.js +2 -2
- package/lib/building/components/resources/AddToBankOptions/index.js +2 -2
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +2 -2
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +2 -2
- package/lib/building/components/resources/quiz/instructions/Instructions/presenter.js +3 -2
- package/lib/building/components/resources/quiz/instructions/Show/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Edit/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Show/index.js +3 -2
- package/lib/building/components/resources/quiz/title/Title/presenter.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntry/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankShow/index.js +3 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/presenter.js +2 -2
- package/lib/building/components/resources/quizEntry/QuizEntryShow/presenter.js +2 -2
- package/lib/common/components/ImportModal/ImportFileSelector/index.js +3 -2
- package/lib/common/components/ImportModal/presenter.js +2 -2
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/lib/common/components/SDKApp/index.js +2 -2
- package/lib/common/components/alerts/presenter.js +3 -2
- package/lib/common/components/layout/Page/index.js +3 -2
- package/lib/common/components/layout/header/HeaderMenuButton/presenter.js +3 -2
- package/lib/common/components/layout/header/Timer/presenter.js +3 -2
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +3 -2
- package/lib/common/components/layout/navbar/index.js +3 -2
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +3 -2
- package/lib/common/components/layout/sidebar/Sidebar/index.js +2 -2
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Summary/presenter.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/Title/index.js +3 -2
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/WarningWrapper/index.js +3 -2
- package/lib/common/components/resources/positionBox/PositionBox.js +3 -2
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +2 -2
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +2 -2
- package/lib/common/components/resources/quiz/instructions/Instructions.js +3 -2
- package/lib/common/components/resources/quiz/title/Title.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Header/index.js +3 -2
- package/lib/common/components/resources/quizSessionResult/Info/index.js +2 -2
- package/lib/common/components/resources/sessionItemResult/ResultStimulus/index.js +3 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +2 -2
- package/lib/common/components/resources/sessionItemResult/SessionItemResultsList/index.js +3 -2
- package/lib/common/components/resources/stimulus/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +2 -2
- package/lib/common/components/resources/stimulus/StimulusShow/index.js +3 -2
- package/lib/common/components/shared/Card/CardContent/index.js +3 -2
- package/lib/common/components/shared/Card/CardWrapper/index.js +3 -2
- package/lib/common/components/shared/ExpandButton/index.js +3 -2
- package/lib/common/components/shared/InteractionTypes/presenter.js +3 -2
- package/lib/common/components/shared/PaginatedCollection/presenter.js +3 -2
- package/lib/common/components/shared/Paginator/index.js +3 -2
- package/lib/common/components/shared/TagDisplay/index.js +3 -2
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +3 -2
- package/lib/common/components/shared/errors/Errors.js +3 -2
- package/lib/common/components/shared/file_selector/FileSelector.js +3 -2
- package/lib/common/components/shared/overlay/index.js +2 -2
- package/lib/common/components/shared/spinner/Spinner.js +3 -2
- package/lib/index.js +43 -0
- package/lib/moderating/components/events/Event.js +4 -1
- package/lib/moderating/components/events/ResponseEvent.js +3 -2
- package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -2
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +2 -2
- package/lib/reporting/api/fetchStudentAnalyses.js +9 -4
- package/lib/reporting/api/getAnalysesExport.js +11 -4
- package/lib/reporting/api/getAnalysesStatus.js +11 -4
- package/lib/reporting/components/Caption/index.js +3 -2
- package/lib/reporting/components/MetricsListItem/index.js +3 -2
- package/lib/reporting/components/charts/CentileDistribution/presenter.js +3 -2
- package/lib/reporting/components/charts/Distribution/presenter.js +3 -2
- package/lib/reporting/components/charts/Legend/index.js +3 -2
- package/lib/reporting/components/charts/QuintileDistribution/presenter.js +3 -2
- package/lib/reporting/components/itemAnalysis/AnswerFrequencySummary/index.js +3 -2
- package/lib/reporting/components/itemAnalysis/ItemAnalysisRow/presenter.js +2 -2
- package/lib/reporting/components/quizAnalysis/QuizAnalysisOverview.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnalysisPopoverMetric/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/ChoiceTypeTableRow/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/LegacyChoiceType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/MatchingType/MatchingTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/NumericType/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/RichFillBlankType/ChoiceGroupTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ScoreDistributionType/Table/index.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsPartsContainer/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AfsTableWrapper/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/AggregationTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ChoiceTypeTable/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/shared/ExpandableCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/MetricPopover/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/BlankIcon/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewQuizAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/charts/ScoreDistribution/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +3 -2
- package/lib/reporting/components/resources/QuizAndItemAnalysis/presenter.js +2 -2
- package/lib/reporting/components/resources/ReportCard/index.js +3 -2
- package/lib/reporting/components/resources/ReportList/index.js +3 -2
- package/lib/reporting/components/resources/StudentAnalysis/ReportCard/presenter.js +7 -5
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportState.js +2 -1
- package/lib/reporting/components/resources/StudentAnalysis/withStudentAnalysisReportStatePresenter.js +19 -6
- package/package.json +9 -9
|
@@ -14,15 +14,15 @@ import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
|
14
14
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
15
15
|
import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
16
16
|
import { Heading } from '@instructure/ui-heading';
|
|
17
|
-
import {
|
|
17
|
+
import { jsx } from '@instructure/emotion';
|
|
18
18
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
19
19
|
import { extractTextFromHtml } from '@instructure/quiz-interactions';
|
|
20
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, DELETE_STIMULUS_MODAL_SELECTED_CHILDREN, DELETE_STIMULUS_MODAL_DELETION_MODE, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
20
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, DELETE_STIMULUS_MODAL_SELECTED_CHILDREN, DELETE_STIMULUS_MODAL_DELETION_MODE, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
21
21
|
import generateStyle from "./styles.js";
|
|
22
22
|
import generateComponentTheme from "./theme.js";
|
|
23
23
|
var _ref = jsx(PresentationContent, null, jsx("hr", null));
|
|
24
24
|
var _ref2 = jsx(PresentationContent, null, jsx("hr", null));
|
|
25
|
-
export var DeleteStimulusModal = (_dec =
|
|
25
|
+
export var DeleteStimulusModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_DeleteStimulusModal = /*#__PURE__*/function (_Component) {
|
|
26
26
|
_inherits(DeleteStimulusModal, _Component);
|
|
27
27
|
var _super = _createSuper(DeleteStimulusModal);
|
|
28
28
|
function DeleteStimulusModal() {
|
|
@@ -229,7 +229,7 @@ export var DeleteStimulusModal = (_dec = withStyle(generateStyle, generateCompon
|
|
|
229
229
|
}]);
|
|
230
230
|
DeleteStimulusModal.displayName = "DeleteStimulusModal";
|
|
231
231
|
return DeleteStimulusModal;
|
|
232
|
-
}(Component), _DeleteStimulusModal.propTypes = {
|
|
232
|
+
}(Component), _DeleteStimulusModal.displayName = 'DeleteStimulusModal', _DeleteStimulusModal.componentId = "Quizzes".concat(_DeleteStimulusModal.displayName), _DeleteStimulusModal.propTypes = {
|
|
233
233
|
childEntries: ImmutablePropTypes.list.isRequired,
|
|
234
234
|
closeModal: PropTypes.func.isRequired,
|
|
235
235
|
deletionMode: PropTypes.string,
|
|
@@ -9,14 +9,14 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
11
11
|
import { Heading } from '@instructure/ui-heading';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import { RichContentRenderer, RichContentInput, RCE_THREE_LINES_HEIGHT } from '@instructure/quiz-rce';
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, ITEM_FEEDBACK_MODAL_FEEDBACK, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
15
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, ITEM_FEEDBACK_MODAL_FEEDBACK, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
16
|
import generateStyle from "./styles.js";
|
|
17
17
|
import generateComponentTheme from "./theme.js";
|
|
18
18
|
var _ref = jsx("br", null);
|
|
19
|
-
export var ItemFeedbackModal = (_dec =
|
|
19
|
+
export var ItemFeedbackModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ItemFeedbackModal = /*#__PURE__*/function (_Component) {
|
|
20
20
|
_inherits(ItemFeedbackModal, _Component);
|
|
21
21
|
var _super = _createSuper(ItemFeedbackModal);
|
|
22
22
|
function ItemFeedbackModal() {
|
|
@@ -110,7 +110,7 @@ export var ItemFeedbackModal = (_dec = withStyle(generateStyle, generateComponen
|
|
|
110
110
|
}]);
|
|
111
111
|
ItemFeedbackModal.displayName = "ItemFeedbackModal";
|
|
112
112
|
return ItemFeedbackModal;
|
|
113
|
-
}(Component), _ItemFeedbackModal.propTypes = {
|
|
113
|
+
}(Component), _ItemFeedbackModal.displayName = 'ItemFeedbackModal', _ItemFeedbackModal.componentId = "Quizzes".concat(_ItemFeedbackModal.displayName), _ItemFeedbackModal.propTypes = {
|
|
114
114
|
changeItemFeedback: PropTypes.func.isRequired,
|
|
115
115
|
closeModal: PropTypes.func.isRequired,
|
|
116
116
|
feedback: ImmutablePropTypes.map.isRequired,
|
|
@@ -7,11 +7,11 @@ var _dec, _class, _QuizInstructionsEdit;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { Button } from '@instructure/ui-buttons';
|
|
10
|
-
import {
|
|
10
|
+
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
12
|
import CustomPropTypes from "../../../../../../common/util/CustomPropTypes.js";
|
|
13
13
|
import { checkClickedNode } from "../../../../../../common/util/clickHandlers.js";
|
|
14
|
-
import { INSTRUCTIONS_EDIT_ID } from '@instructure/quiz-common';
|
|
14
|
+
import { INSTRUCTIONS_EDIT_ID, withStyleOverrides } from '@instructure/quiz-common';
|
|
15
15
|
import { RichContentInput } from '@instructure/quiz-rce';
|
|
16
16
|
import generateStyle from "./styles.js";
|
|
17
17
|
import generateComponentTheme from "./theme.js";
|
|
@@ -20,7 +20,7 @@ import wrapWithOutsideClickEmotion from "../../../../../../common/components/sha
|
|
|
20
20
|
// is rendered & has actions that
|
|
21
21
|
// allow for canceling
|
|
22
22
|
// ===================================
|
|
23
|
-
var QuizInstructionsEdit = (_dec =
|
|
23
|
+
var QuizInstructionsEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizInstructionsEdit = /*#__PURE__*/function (_Component) {
|
|
24
24
|
_inherits(QuizInstructionsEdit, _Component);
|
|
25
25
|
var _super = _createSuper(QuizInstructionsEdit);
|
|
26
26
|
function QuizInstructionsEdit() {
|
|
@@ -67,7 +67,7 @@ var QuizInstructionsEdit = (_dec = withStyle(generateStyle, generateComponentThe
|
|
|
67
67
|
}]);
|
|
68
68
|
QuizInstructionsEdit.displayName = "QuizInstructionsEdit";
|
|
69
69
|
return QuizInstructionsEdit;
|
|
70
|
-
}(Component), _QuizInstructionsEdit.propTypes = {
|
|
70
|
+
}(Component), _QuizInstructionsEdit.displayName = 'QuizInstructionsEdit', _QuizInstructionsEdit.componentId = "Quizzes".concat(_QuizInstructionsEdit.displayName), _QuizInstructionsEdit.propTypes = {
|
|
71
71
|
endEditing: PropTypes.func.isRequired,
|
|
72
72
|
inputValue: PropTypes.string.isRequired,
|
|
73
73
|
onInputChange: PropTypes.func.isRequired,
|
|
@@ -8,13 +8,14 @@ import { Component } from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import { Heading } from '@instructure/ui-heading';
|
|
11
|
-
import {
|
|
11
|
+
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import QuizInstructionsEdit from "../Edit/index.js";
|
|
13
13
|
import QuizInstructionsShow from "../Show/index.js";
|
|
14
14
|
import EditButton from "../../editButton/EditButton.js";
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
18
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
19
|
|
|
19
20
|
// ======================================
|
|
20
21
|
|
|
@@ -23,7 +24,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
23
24
|
|
|
24
25
|
// ======================================
|
|
25
26
|
|
|
26
|
-
export var QuizInstructions = (_dec =
|
|
27
|
+
export var QuizInstructions = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizInstructions = /*#__PURE__*/function (_Component) {
|
|
27
28
|
_inherits(QuizInstructions, _Component);
|
|
28
29
|
var _super = _createSuper(QuizInstructions);
|
|
29
30
|
function QuizInstructions() {
|
|
@@ -162,7 +163,7 @@ export var QuizInstructions = (_dec = withStyle(generateStyle, generateComponent
|
|
|
162
163
|
}]);
|
|
163
164
|
QuizInstructions.displayName = "QuizInstructions";
|
|
164
165
|
return QuizInstructions;
|
|
165
|
-
}(Component), _QuizInstructions.propTypes = {
|
|
166
|
+
}(Component), _QuizInstructions.displayName = 'QuizInstructions', _QuizInstructions.componentId = "Quizzes".concat(_QuizInstructions.displayName), _QuizInstructions.propTypes = {
|
|
166
167
|
changeQuizInstructions: PropTypes.func.isRequired,
|
|
167
168
|
clearModifications: PropTypes.func.isRequired,
|
|
168
169
|
isEditing: PropTypes.bool.isRequired,
|
|
@@ -6,13 +6,14 @@ var _dec, _class, _QuizInstructionsShow;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import {
|
|
9
|
+
import { jsx } from '@instructure/emotion';
|
|
10
10
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
11
11
|
import Overlay from "../../../../../../common/components/shared/overlay/index.js";
|
|
12
12
|
import makeScrollable from "../../../../../../common/components/shared/functionality/makeScrollable.js";
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
16
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
16
17
|
|
|
17
18
|
// ==========================================
|
|
18
19
|
|
|
@@ -21,7 +22,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
21
22
|
// editing and hover which shows an overlay
|
|
22
23
|
|
|
23
24
|
// ==========================================
|
|
24
|
-
export var QuizInstructionsShow = (_dec =
|
|
25
|
+
export var QuizInstructionsShow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizInstructionsShow = /*#__PURE__*/function (_Component) {
|
|
25
26
|
_inherits(QuizInstructionsShow, _Component);
|
|
26
27
|
var _super = _createSuper(QuizInstructionsShow);
|
|
27
28
|
function QuizInstructionsShow() {
|
|
@@ -56,7 +57,7 @@ export var QuizInstructionsShow = (_dec = withStyle(generateStyle, generateCompo
|
|
|
56
57
|
}]);
|
|
57
58
|
QuizInstructionsShow.displayName = "QuizInstructionsShow";
|
|
58
59
|
return QuizInstructionsShow;
|
|
59
|
-
}(Component), _QuizInstructionsShow.propTypes = {
|
|
60
|
+
}(Component), _QuizInstructionsShow.displayName = 'QuizInstructionsShow', _QuizInstructionsShow.componentId = "Quizzes".concat(_QuizInstructionsShow.displayName), _QuizInstructionsShow.propTypes = {
|
|
60
61
|
instructions: PropTypes.string,
|
|
61
62
|
switchOnEditing: PropTypes.func.isRequired,
|
|
62
63
|
contentLocked: PropTypes.bool,
|
|
@@ -9,11 +9,12 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import defer from 'lodash/defer';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
15
|
import Errors from "../../../../../../common/components/shared/errors/Errors.js";
|
|
16
16
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
17
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
17
18
|
|
|
18
19
|
// =================================
|
|
19
20
|
|
|
@@ -23,7 +24,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
23
24
|
|
|
24
25
|
// =================================
|
|
25
26
|
|
|
26
|
-
export var TitleEdit = (_dec =
|
|
27
|
+
export var TitleEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_TitleEdit = /*#__PURE__*/function (_Component) {
|
|
27
28
|
_inherits(TitleEdit, _Component);
|
|
28
29
|
var _super = _createSuper(TitleEdit);
|
|
29
30
|
function TitleEdit() {
|
|
@@ -145,7 +146,7 @@ export var TitleEdit = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
145
146
|
}]);
|
|
146
147
|
TitleEdit.displayName = "TitleEdit";
|
|
147
148
|
return TitleEdit;
|
|
148
|
-
}(Component), _TitleEdit.propTypes = {
|
|
149
|
+
}(Component), _TitleEdit.displayName = 'TitleEdit', _TitleEdit.componentId = "Quizzes".concat(_TitleEdit.displayName), _TitleEdit.propTypes = {
|
|
149
150
|
value: PropTypes.string.isRequired,
|
|
150
151
|
isValid: PropTypes.bool.isRequired,
|
|
151
152
|
showError: PropTypes.func.isRequired,
|
|
@@ -6,19 +6,24 @@ var _dec, _class, _QuizTitleShow;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import {
|
|
9
|
+
import { jsx } from '@instructure/emotion';
|
|
10
10
|
import { TruncateText } from '@instructure/ui-truncate-text';
|
|
11
11
|
import { Text } from '@instructure/ui-text';
|
|
12
12
|
import Overlay from "../../../../../../common/components/shared/overlay/index.js";
|
|
13
13
|
import makeScrollable from "../../../../../../common/components/shared/functionality/makeScrollable.js";
|
|
14
14
|
import generateStyle from "./styles.js";
|
|
15
|
-
import generateComponentTheme from "./theme.js";
|
|
15
|
+
import generateComponentTheme from "./theme.js";
|
|
16
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
17
|
+
|
|
18
|
+
// ====================================
|
|
19
|
+
|
|
16
20
|
// this component shows the quiz title
|
|
17
21
|
// has events that allow for toggling
|
|
18
22
|
// editing and hover which shows an
|
|
19
23
|
// overlay
|
|
24
|
+
|
|
20
25
|
// ====================================
|
|
21
|
-
export var QuizTitleShow = (_dec =
|
|
26
|
+
export var QuizTitleShow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizTitleShow = /*#__PURE__*/function (_Component) {
|
|
22
27
|
_inherits(QuizTitleShow, _Component);
|
|
23
28
|
var _super = _createSuper(QuizTitleShow);
|
|
24
29
|
function QuizTitleShow() {
|
|
@@ -53,7 +58,7 @@ export var QuizTitleShow = (_dec = withStyle(generateStyle, generateComponentThe
|
|
|
53
58
|
}]);
|
|
54
59
|
QuizTitleShow.displayName = "QuizTitleShow";
|
|
55
60
|
return QuizTitleShow;
|
|
56
|
-
}(Component), _QuizTitleShow.propTypes = {
|
|
61
|
+
}(Component), _QuizTitleShow.displayName = 'QuizTitleShow', _QuizTitleShow.componentId = "Quizzes".concat(_QuizTitleShow.displayName), _QuizTitleShow.propTypes = {
|
|
57
62
|
defaultTitle: PropTypes.string.isRequired,
|
|
58
63
|
switchOnEditing: PropTypes.func.isRequired,
|
|
59
64
|
contentLocked: PropTypes.bool,
|
|
@@ -9,13 +9,14 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import partial from 'lodash/partial';
|
|
11
11
|
import { Heading } from '@instructure/ui-heading';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import EditButton from "../../editButton/EditButton.js";
|
|
14
14
|
import QuizTitleEdit from "../Edit/index.js";
|
|
15
15
|
import QuizTitleShow from "../Show/index.js";
|
|
16
16
|
import generateStyle from "./styles.js";
|
|
17
17
|
import generateComponentTheme from "./theme.js";
|
|
18
18
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
19
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
19
20
|
|
|
20
21
|
// ================================
|
|
21
22
|
|
|
@@ -24,7 +25,7 @@ import t from '@instructure/quiz-i18n/es/format-message';
|
|
|
24
25
|
|
|
25
26
|
// ================================
|
|
26
27
|
|
|
27
|
-
export var QuizTitlePresenter = (_dec =
|
|
28
|
+
export var QuizTitlePresenter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizTitlePresenter = /*#__PURE__*/function (_Component) {
|
|
28
29
|
_inherits(QuizTitlePresenter, _Component);
|
|
29
30
|
var _super = _createSuper(QuizTitlePresenter);
|
|
30
31
|
function QuizTitlePresenter() {
|
|
@@ -164,7 +165,7 @@ export var QuizTitlePresenter = (_dec = withStyle(generateStyle, generateCompone
|
|
|
164
165
|
}]);
|
|
165
166
|
QuizTitlePresenter.displayName = "QuizTitlePresenter";
|
|
166
167
|
return QuizTitlePresenter;
|
|
167
|
-
}(Component), _QuizTitlePresenter.propTypes = {
|
|
168
|
+
}(Component), _QuizTitlePresenter.displayName = 'QuizTitle', _QuizTitlePresenter.componentId = "Quizzes".concat(_QuizTitlePresenter.displayName), _QuizTitlePresenter.propTypes = {
|
|
168
169
|
changeQuizTitle: PropTypes.func.isRequired,
|
|
169
170
|
errorsShowing: ImmutablePropTypes.map.isRequired,
|
|
170
171
|
hideError: PropTypes.func.isRequired,
|
|
@@ -13,7 +13,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
13
13
|
import pick from 'lodash/pick';
|
|
14
14
|
import partial from 'lodash/partial';
|
|
15
15
|
import ReactDOM from 'react-dom';
|
|
16
|
-
import {
|
|
16
|
+
import { jsx } from '@instructure/emotion';
|
|
17
17
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
18
18
|
import WarningWrapper from "../../../../../common/components/resources/WarningWrapper/index.js";
|
|
19
19
|
import { propsForItemBankEntryEditPrompt, propsForStimulusBankEntryEditPrompt, propsForBankEntryUnauthorizedEdit, propsForItemVersioningWrapper, propsForBankEntryVersioningWrapper } from "../../../../../common/util/warningHelpers.js";
|
|
@@ -26,13 +26,13 @@ import ItemOverride from "../../../../../common/components/resources/item/ItemOv
|
|
|
26
26
|
import AddToBankOptions from "../../AddToBankOptions/index.js";
|
|
27
27
|
import TagDisplay from "../../../../../common/components/shared/TagDisplay/index.js";
|
|
28
28
|
import Item from "../../../../../common/records/Item.js";
|
|
29
|
-
import { BUILD_TRAY_OPEN, PARENT_TYPE_QUIZ, REGRADE_MODAL, SHOULD_CLONE_ITEM } from '@instructure/quiz-common';
|
|
29
|
+
import { BUILD_TRAY_OPEN, PARENT_TYPE_QUIZ, REGRADE_MODAL, SHOULD_CLONE_ITEM, withStyleOverrides } from '@instructure/quiz-common';
|
|
30
30
|
import QuizEntryShow from "../QuizEntryShow/index.js";
|
|
31
31
|
import QuizEntryEdit from "../QuizEntryEdit/index.js";
|
|
32
32
|
import Stimulus from "../../../../../common/components/resources/stimulus/Stimulus/index.js";
|
|
33
33
|
import generateStyle from "./styles.js";
|
|
34
34
|
import generateComponentTheme from "./theme.js";
|
|
35
|
-
export var QuizEntry = (_dec =
|
|
35
|
+
export var QuizEntry = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntry = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(QuizEntry, _Component);
|
|
37
37
|
var _super = _createSuper(QuizEntry);
|
|
38
38
|
function QuizEntry() {
|
|
@@ -311,7 +311,7 @@ export var QuizEntry = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
311
311
|
}]);
|
|
312
312
|
QuizEntry.displayName = "QuizEntry";
|
|
313
313
|
return QuizEntry;
|
|
314
|
-
}(Component), _QuizEntry.propTypes = {
|
|
314
|
+
}(Component), _QuizEntry.displayName = 'QuizEntry', _QuizEntry.componentId = "Quizzes".concat(_QuizEntry.displayName), _QuizEntry.propTypes = {
|
|
315
315
|
changeQuizEntryPoints: PropTypes.func.isRequired,
|
|
316
316
|
childEntries: ImmutablePropTypes.listOf(ImmutablePropTypes.record),
|
|
317
317
|
connectDropTarget: PropTypes.func.isRequired,
|
package/es/building/components/resources/quizEntry/QuizEntryBank/QuizEntryBankEdit/presenter.js
CHANGED
|
@@ -13,7 +13,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
13
13
|
import NumberInput from '@instructure/quiz-number-input';
|
|
14
14
|
import { Text } from '@instructure/ui-text';
|
|
15
15
|
import { Alert } from '@instructure/ui-alerts';
|
|
16
|
-
import {
|
|
16
|
+
import { jsx } from '@instructure/emotion';
|
|
17
17
|
import EntrySave from "../../../../../../common/components/resources/entry/EntrySave/index.js";
|
|
18
18
|
import BankSelection from "../../../../../../common/components/resources/BankSelection/index.js";
|
|
19
19
|
import QuizEntry from "../../../../../../common/records/QuizEntry.js";
|
|
@@ -21,9 +21,10 @@ import Bank from "../../../../../../common/records/Bank.js";
|
|
|
21
21
|
import generateStyle from "./styles.js";
|
|
22
22
|
import generateComponentTheme from "./theme.js";
|
|
23
23
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
24
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
24
25
|
var _ref = jsx("br", null);
|
|
25
26
|
var _ref2 = jsx("br", null);
|
|
26
|
-
export var QuizEntryBankEdit = (_dec =
|
|
27
|
+
export var QuizEntryBankEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBankEdit = /*#__PURE__*/function (_Component) {
|
|
27
28
|
_inherits(QuizEntryBankEdit, _Component);
|
|
28
29
|
var _super = _createSuper(QuizEntryBankEdit);
|
|
29
30
|
function QuizEntryBankEdit() {
|
|
@@ -201,7 +202,7 @@ export var QuizEntryBankEdit = (_dec = withStyle(generateStyle, generateComponen
|
|
|
201
202
|
}]);
|
|
202
203
|
QuizEntryBankEdit.displayName = "QuizEntryBankEdit";
|
|
203
204
|
return QuizEntryBankEdit;
|
|
204
|
-
}(Component), _QuizEntryBankEdit.propTypes = {
|
|
205
|
+
}(Component), _QuizEntryBankEdit.displayName = 'QuizEntryBankEdit', _QuizEntryBankEdit.componentId = "Quizzes".concat(_QuizEntryBankEdit.displayName), _QuizEntryBankEdit.propTypes = {
|
|
205
206
|
changeQuizEntryPoints: PropTypes.func.isRequired,
|
|
206
207
|
changeQuizEntryProperties: PropTypes.func.isRequired,
|
|
207
208
|
changeQuizEntryEntry: PropTypes.func.isRequired,
|
|
@@ -9,14 +9,15 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { View } from '@instructure/ui-view';
|
|
10
10
|
import { Alert } from '@instructure/ui-alerts';
|
|
11
11
|
import { Text } from '@instructure/ui-text';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import Bank from "../../../../../../common/records/Bank.js";
|
|
14
14
|
import QuizEntry from "../../../../../../common/records/QuizEntry.js";
|
|
15
15
|
import generateStyle from "./styles.js";
|
|
16
16
|
import generateComponentTheme from "./theme.js";
|
|
17
17
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
18
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
19
|
var _ref = jsx("br", null);
|
|
19
|
-
export var QuizEntryBank = (_dec =
|
|
20
|
+
export var QuizEntryBank = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryBank = /*#__PURE__*/function (_Component) {
|
|
20
21
|
_inherits(QuizEntryBank, _Component);
|
|
21
22
|
var _super = _createSuper(QuizEntryBank);
|
|
22
23
|
function QuizEntryBank() {
|
|
@@ -90,7 +91,7 @@ export var QuizEntryBank = (_dec = withStyle(generateStyle, generateComponentThe
|
|
|
90
91
|
}]);
|
|
91
92
|
QuizEntryBank.displayName = "QuizEntryBank";
|
|
92
93
|
return QuizEntryBank;
|
|
93
|
-
}(Component), _QuizEntryBank.propTypes = {
|
|
94
|
+
}(Component), _QuizEntryBank.displayName = 'QuizEntryBank', _QuizEntryBank.componentId = "Quizzes".concat(_QuizEntryBank.displayName), _QuizEntryBank.propTypes = {
|
|
94
95
|
entry: PropTypes.instanceOf(Bank).isRequired,
|
|
95
96
|
quizEntry: PropTypes.instanceOf(QuizEntry).isRequired,
|
|
96
97
|
styles: PropTypes.object
|
|
@@ -14,12 +14,12 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
14
14
|
import { Text } from '@instructure/ui-text';
|
|
15
15
|
import NumberInput from '@instructure/quiz-number-input';
|
|
16
16
|
import { IconButton } from '@instructure/ui-buttons';
|
|
17
|
-
import {
|
|
17
|
+
import { jsx } from '@instructure/emotion';
|
|
18
18
|
import { IconDiscussionLine, IconDiscussionSolid } from '@instructure/ui-icons';
|
|
19
19
|
import { interactionPoints } from '@instructure/quiz-interactions';
|
|
20
20
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
21
21
|
import EntrySave from "../../../../../../common/components/resources/entry/EntrySave/index.js";
|
|
22
|
-
import { ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK } from '@instructure/quiz-common';
|
|
22
|
+
import { ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK, withStyleOverrides } from '@instructure/quiz-common';
|
|
23
23
|
import generateStyle from "./styles.js";
|
|
24
24
|
import generateComponentTheme from "./theme.js";
|
|
25
25
|
function pointsAsFloat(pointsString) {
|
|
@@ -34,7 +34,7 @@ function countDecimals(normalizedPointsString) {
|
|
|
34
34
|
decimals = _normalizedPointsStri2[1];
|
|
35
35
|
return decimals ? decimals.length : 0;
|
|
36
36
|
}
|
|
37
|
-
export var QuizEntryEditFooter = (_dec =
|
|
37
|
+
export var QuizEntryEditFooter = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEditFooter = /*#__PURE__*/function (_Component) {
|
|
38
38
|
_inherits(QuizEntryEditFooter, _Component);
|
|
39
39
|
var _super = _createSuper(QuizEntryEditFooter);
|
|
40
40
|
function QuizEntryEditFooter() {
|
|
@@ -209,7 +209,7 @@ export var QuizEntryEditFooter = (_dec = withStyle(generateStyle, generateCompon
|
|
|
209
209
|
}]);
|
|
210
210
|
QuizEntryEditFooter.displayName = "QuizEntryEditFooter";
|
|
211
211
|
return QuizEntryEditFooter;
|
|
212
|
-
}(Component), _QuizEntryEditFooter.propTypes = {
|
|
212
|
+
}(Component), _QuizEntryEditFooter.displayName = 'QuizEntryEditFooter', _QuizEntryEditFooter.componentId = "Quizzes".concat(_QuizEntryEditFooter.displayName), _QuizEntryEditFooter.propTypes = {
|
|
213
213
|
alternativeRightFooter: PropTypes.func,
|
|
214
214
|
changeQuizEntryPoints: PropTypes.func.isRequired,
|
|
215
215
|
clearChanges: PropTypes.func.isRequired,
|
|
@@ -13,7 +13,7 @@ import partial from 'lodash/partial';
|
|
|
13
13
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
14
|
import { CondensedButton } from '@instructure/ui-buttons';
|
|
15
15
|
import { TextInput } from '@instructure/ui-text-input';
|
|
16
|
-
import {
|
|
16
|
+
import { jsx, Global } from '@instructure/emotion';
|
|
17
17
|
import { FillBlankInteractionType } from '@instructure/quiz-interactions';
|
|
18
18
|
import { IconBankLine } from '@instructure/ui-icons';
|
|
19
19
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
@@ -21,11 +21,11 @@ import { convertFITBtoRich } from "../../../../../../common/util/fitbCopyHelper.
|
|
|
21
21
|
import PositionBox from "../../../../../../common/components/resources/positionBox/PositionBox.js";
|
|
22
22
|
import Item from "../../../../../../common/records/Item.js";
|
|
23
23
|
import ActionButtons from "../../../ActionButtons/index.js";
|
|
24
|
-
import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN } from '@instructure/quiz-common';
|
|
24
|
+
import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN, withStyleOverrides } from '@instructure/quiz-common';
|
|
25
25
|
import generateStyle from "./styles.js";
|
|
26
26
|
import generateComponentTheme from "./theme.js";
|
|
27
27
|
var _ref2 = jsx(IconBankLine, null);
|
|
28
|
-
var QuizEntryHeader = (_dec =
|
|
28
|
+
var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryHeader = /*#__PURE__*/function (_Component) {
|
|
29
29
|
_inherits(QuizEntryHeader, _Component);
|
|
30
30
|
var _super = _createSuper(QuizEntryHeader);
|
|
31
31
|
function QuizEntryHeader() {
|
|
@@ -270,7 +270,7 @@ var QuizEntryHeader = (_dec = withStyle(generateStyle, generateComponentTheme),
|
|
|
270
270
|
}]);
|
|
271
271
|
QuizEntryHeader.displayName = "QuizEntryHeader";
|
|
272
272
|
return QuizEntryHeader;
|
|
273
|
-
}(Component), _QuizEntryHeader.propTypes = {
|
|
273
|
+
}(Component), _QuizEntryHeader.displayName = 'QuizEntryHeader', _QuizEntryHeader.componentId = "Quizzes".concat(_QuizEntryHeader.displayName), _QuizEntryHeader.propTypes = {
|
|
274
274
|
changeItemTitle: PropTypes.func.isRequired,
|
|
275
275
|
// from connected component
|
|
276
276
|
clearModifications: PropTypes.func.isRequired,
|
|
@@ -12,7 +12,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
|
12
12
|
import { DragSource } from 'react-dnd';
|
|
13
13
|
import pick from 'lodash/pick';
|
|
14
14
|
import first from 'lodash/first';
|
|
15
|
-
import {
|
|
15
|
+
import { jsx, Global } from '@instructure/emotion';
|
|
16
16
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
17
17
|
import CustomPropTypes from "../../../../../common/util/CustomPropTypes.js";
|
|
18
18
|
import AddToBankModal from "../../../../../banks/components/AddToBankModal/index.js";
|
|
@@ -21,11 +21,11 @@ import wrapWithOutsideClickEmotion from "../../../../../common/components/shared
|
|
|
21
21
|
import { checkClickedNode } from "../../../../../common/util/clickHandlers.js";
|
|
22
22
|
import QuizEntryEditHeader from "./Header/index.js";
|
|
23
23
|
import QuizEntryEditFooter from "./Footer/index.js";
|
|
24
|
-
import { SHOULD_CLONE_ITEM, TEMPORARY_ITEM_ID, DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, PARENT_TYPE_ADDING_TO_BANK } from '@instructure/quiz-common';
|
|
24
|
+
import { SHOULD_CLONE_ITEM, TEMPORARY_ITEM_ID, DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, PARENT_TYPE_ADDING_TO_BANK, withStyleOverrides } from '@instructure/quiz-common';
|
|
25
25
|
import { ItemTypes, dragSource, collectDrag } from "../../../../../common/components/shared/drag_and_drop/dragAndDropUtils.js";
|
|
26
26
|
import generateStyle from "./styles.js";
|
|
27
27
|
import generateComponentTheme from "./theme.js";
|
|
28
|
-
var QuizEntryEdit = (_dec =
|
|
28
|
+
var QuizEntryEdit = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryEdit = /*#__PURE__*/function (_Component) {
|
|
29
29
|
_inherits(QuizEntryEdit, _Component);
|
|
30
30
|
var _super = _createSuper(QuizEntryEdit);
|
|
31
31
|
function QuizEntryEdit() {
|
|
@@ -362,7 +362,7 @@ var QuizEntryEdit = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
362
362
|
}]);
|
|
363
363
|
QuizEntryEdit.displayName = "QuizEntryEdit";
|
|
364
364
|
return QuizEntryEdit;
|
|
365
|
-
}(Component), _QuizEntryEdit.propTypes = {
|
|
365
|
+
}(Component), _QuizEntryEdit.displayName = 'QuizEntryEdit', _QuizEntryEdit.componentId = "Quizzes".concat(_QuizEntryEdit.displayName), _QuizEntryEdit.propTypes = {
|
|
366
366
|
addContentPopoverOpen: PropTypes.bool.isRequired,
|
|
367
367
|
alternativeRightFooter: PropTypes.func,
|
|
368
368
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
@@ -11,9 +11,9 @@ import partial from 'lodash/partial';
|
|
|
11
11
|
import { DragSource } from 'react-dnd';
|
|
12
12
|
import { IconBankLine } from '@instructure/ui-icons';
|
|
13
13
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
|
-
import {
|
|
14
|
+
import { jsx } from '@instructure/emotion';
|
|
15
15
|
import { FillBlankInteractionType } from '@instructure/quiz-interactions';
|
|
16
|
-
import { TOP } from '@instructure/quiz-common';
|
|
16
|
+
import { TOP, withStyleOverrides } from '@instructure/quiz-common';
|
|
17
17
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
18
18
|
import { convertFITBtoRich } from "../../../../../common/util/fitbCopyHelper.js";
|
|
19
19
|
import Item from "../../../../../common/records/Item.js";
|
|
@@ -25,7 +25,7 @@ import DragAndDropZone from "../../../../../common/components/shared/drag_and_dr
|
|
|
25
25
|
import generateStyle from "./styles.js";
|
|
26
26
|
import generateComponentTheme from "./theme.js";
|
|
27
27
|
var _ref = jsx(IconBankLine, null);
|
|
28
|
-
var QuizEntryShow = (_dec =
|
|
28
|
+
var QuizEntryShow = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryShow = /*#__PURE__*/function (_Component) {
|
|
29
29
|
_inherits(QuizEntryShow, _Component);
|
|
30
30
|
var _super = _createSuper(QuizEntryShow);
|
|
31
31
|
function QuizEntryShow() {
|
|
@@ -278,7 +278,7 @@ var QuizEntryShow = (_dec = withStyle(generateStyle, generateComponentTheme), _d
|
|
|
278
278
|
}]);
|
|
279
279
|
QuizEntryShow.displayName = "QuizEntryShow";
|
|
280
280
|
return QuizEntryShow;
|
|
281
|
-
}(Component), _QuizEntryShow.propTypes = {
|
|
281
|
+
}(Component), _QuizEntryShow.displayName = 'QuizEntryShow', _QuizEntryShow.componentId = "Quizzes".concat(_QuizEntryShow.displayName), _QuizEntryShow.propTypes = {
|
|
282
282
|
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
|
|
283
283
|
connectDragPreview: PropTypes.func.isRequired,
|
|
284
284
|
connectDragSource: PropTypes.func.isRequired,
|
|
@@ -9,15 +9,16 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
10
10
|
import { Button } from '@instructure/ui-buttons';
|
|
11
11
|
import { Grid } from '@instructure/ui-grid';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import { IconUploadLine, IconCompleteLine } from '@instructure/ui-icons';
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import FileSelector from "../../../../common/components/shared/file_selector/FileSelector.js";
|
|
16
16
|
import generateStyle from "./styles.js";
|
|
17
17
|
import generateComponentTheme from "./theme.js";
|
|
18
|
+
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
18
19
|
var _ref = jsx(IconUploadLine, null);
|
|
19
20
|
var _ref2 = jsx(IconCompleteLine, null);
|
|
20
|
-
export var ImportFileSelector = (_dec =
|
|
21
|
+
export var ImportFileSelector = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ImportFileSelector = /*#__PURE__*/function (_Component) {
|
|
21
22
|
_inherits(ImportFileSelector, _Component);
|
|
22
23
|
var _super = _createSuper(ImportFileSelector);
|
|
23
24
|
function ImportFileSelector() {
|
|
@@ -121,7 +122,7 @@ export var ImportFileSelector = (_dec = withStyle(generateStyle, generateCompone
|
|
|
121
122
|
}]);
|
|
122
123
|
ImportFileSelector.displayName = "ImportFileSelector";
|
|
123
124
|
return ImportFileSelector;
|
|
124
|
-
}(Component), _ImportFileSelector.propTypes = {
|
|
125
|
+
}(Component), _ImportFileSelector.displayName = 'ImportFileSelector', _ImportFileSelector.componentId = "Quizzes".concat(_ImportFileSelector.displayName), _ImportFileSelector.propTypes = {
|
|
125
126
|
files: ImmutablePropTypes.list.isRequired,
|
|
126
127
|
receiveFile: PropTypes.func.isRequired,
|
|
127
128
|
acceptAttribute: PropTypes.string.isRequired,
|
|
@@ -15,13 +15,13 @@ import { Heading } from '@instructure/ui-heading';
|
|
|
15
15
|
import { Tabs } from '@instructure/ui-tabs';
|
|
16
16
|
import { ToggleDetails } from '@instructure/ui-toggle-details';
|
|
17
17
|
import { TextInput } from '@instructure/ui-text-input';
|
|
18
|
-
import {
|
|
19
|
-
import { ImportantModal, ModalHeader, ModalBody, ModalFooter, FILE_UPLOAD_SELECT, FILE_UPLOAD_IMPORTING, FILE_UPLOAD_SUCCESS, FILE_UPLOAD_FAILURE, FILE_UPLOAD_ERROR, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
18
|
+
import { jsx } from '@instructure/emotion';
|
|
19
|
+
import { ImportantModal, ModalHeader, ModalBody, ModalFooter, FILE_UPLOAD_SELECT, FILE_UPLOAD_IMPORTING, FILE_UPLOAD_SUCCESS, FILE_UPLOAD_FAILURE, FILE_UPLOAD_ERROR, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
20
20
|
import generateStyle from "./styles.js";
|
|
21
21
|
import generateComponentTheme from "./theme.js";
|
|
22
22
|
import ImportFileSelector from "./ImportFileSelector/index.js";
|
|
23
23
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
24
|
-
export var ImportModal = (_dec =
|
|
24
|
+
export var ImportModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_ImportModal = /*#__PURE__*/function (_Component) {
|
|
25
25
|
_inherits(ImportModal, _Component);
|
|
26
26
|
var _super = _createSuper(ImportModal);
|
|
27
27
|
function ImportModal() {
|
|
@@ -319,7 +319,7 @@ export var ImportModal = (_dec = withStyle(generateStyle, generateComponentTheme
|
|
|
319
319
|
}]);
|
|
320
320
|
ImportModal.displayName = "ImportModal";
|
|
321
321
|
return ImportModal;
|
|
322
|
-
}(Component), _ImportModal.propTypes = {
|
|
322
|
+
}(Component), _ImportModal.displayName = 'ImportModal', _ImportModal.componentId = "Quizzes".concat(_ImportModal.displayName), _ImportModal.propTypes = {
|
|
323
323
|
acceptFileType: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.shape({
|
|
324
324
|
fileType: PropTypes.string,
|
|
325
325
|
title: PropTypes.string
|
|
@@ -6,16 +6,16 @@ var _dec, _class, _PrintFontSizeModal;
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter } from '@instructure/quiz-common';
|
|
9
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, withStyleOverrides } from '@instructure/quiz-common';
|
|
10
10
|
import { Heading } from '@instructure/ui-heading';
|
|
11
11
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
12
|
-
import {
|
|
12
|
+
import { jsx } from '@instructure/emotion';
|
|
13
13
|
import generateStyle from "./styles.js";
|
|
14
14
|
import generateComponentTheme from "./theme.js";
|
|
15
15
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
16
16
|
import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
17
17
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
18
|
-
export var PrintFontSizeModal = (_dec =
|
|
18
|
+
export var PrintFontSizeModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_PrintFontSizeModal = /*#__PURE__*/function (_Component) {
|
|
19
19
|
_inherits(PrintFontSizeModal, _Component);
|
|
20
20
|
var _super = _createSuper(PrintFontSizeModal);
|
|
21
21
|
function PrintFontSizeModal() {
|
|
@@ -152,7 +152,7 @@ export var PrintFontSizeModal = (_dec = withStyle(generateStyle, generateCompone
|
|
|
152
152
|
}]);
|
|
153
153
|
PrintFontSizeModal.displayName = "PrintFontSizeModal";
|
|
154
154
|
return PrintFontSizeModal;
|
|
155
|
-
}(Component), _PrintFontSizeModal.propTypes = {
|
|
155
|
+
}(Component), _PrintFontSizeModal.displayName = 'PrintFontSizeModal', _PrintFontSizeModal.componentId = "Quizzes".concat(_PrintFontSizeModal.displayName), _PrintFontSizeModal.propTypes = {
|
|
156
156
|
isOpen: PropTypes.bool,
|
|
157
157
|
persistedPrintFontSize: PropTypes.string,
|
|
158
158
|
onSubmit: PropTypes.func.isRequired,
|
|
@@ -10,11 +10,11 @@ import { Component } from 'react';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import HTML5Backend from 'react-dnd-html5-backend';
|
|
12
12
|
import { DragDropContext } from 'react-dnd';
|
|
13
|
-
import {
|
|
13
|
+
import { jsx } from '@instructure/emotion';
|
|
14
14
|
import { ApplyLocale } from '@instructure/ui-i18n';
|
|
15
15
|
import { Provider } from "../../react-redux.js";
|
|
16
16
|
import store from "../../../reduxStore.js";
|
|
17
|
-
import { getLocale } from '@instructure/quiz-common';
|
|
17
|
+
import { getLocale, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
18
|
import { set } from "../../actions/ui.js";
|
|
19
19
|
import { addAlert } from "../../actions/alerts.js";
|
|
20
20
|
import { setAPIEndpoint, setCanvasOrigin, setUserToken } from "../../actions/config.js";
|
|
@@ -29,7 +29,7 @@ import setupFormatMessage from '@instructure/quiz-i18n/es/util/setupFormatMessag
|
|
|
29
29
|
import RceConfigProvider from "../RceConfigProvider/index.js";
|
|
30
30
|
import { ApiFeatureFlagInitializer } from "../ApiFeatureFlagInitializer/index.js";
|
|
31
31
|
var _ref = jsx(ConfirmationModal, null);
|
|
32
|
-
export var SDKApp = (_dec =
|
|
32
|
+
export var SDKApp = (_dec = withStyleOverrides(generateStyle, null), _dec(_class = (_SDKApp = /*#__PURE__*/function (_Component) {
|
|
33
33
|
_inherits(SDKApp, _Component);
|
|
34
34
|
var _super = _createSuper(SDKApp);
|
|
35
35
|
function SDKApp(props) {
|
|
@@ -140,7 +140,7 @@ export var SDKApp = (_dec = withStyle(generateStyle, null), _dec(_class = (_SDKA
|
|
|
140
140
|
}]);
|
|
141
141
|
SDKApp.displayName = "SDKApp";
|
|
142
142
|
return SDKApp;
|
|
143
|
-
}(Component), _SDKApp.propTypes = {
|
|
143
|
+
}(Component), _SDKApp.displayName = 'SDKApp', _SDKApp.componentId = "Quizzes".concat(_SDKApp.displayName), _SDKApp.propTypes = {
|
|
144
144
|
apiEndpoint: PropTypes.string.isRequired,
|
|
145
145
|
appContainer: CustomPropTypes.selectors.isRequired,
|
|
146
146
|
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]).isRequired,
|