@instructure/quiz-core 18.3.1-rc.8 → 18.4.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/CHANGELOG.md +22 -0
- package/es/banks/components/AddToBankModal/presenter.js +1 -1
- package/es/banks/components/Bank/presenter.js +3 -3
- package/es/banks/components/BankEntry/presenter.js +7 -5
- package/es/banks/components/BankEntryRow/presenter.js +30 -22
- package/es/banks/components/BankSearch/presenter.js +6 -7
- package/es/banks/components/Banks/presenter.js +3 -3
- package/es/banks/components/BanksList/presenter.js +32 -24
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
- package/es/banks/components/CreateBankModal/presenter.js +1 -1
- package/es/banks/components/EditBankModal/presenter.js +1 -1
- package/es/banks/components/HeaderMenu/presenter.js +7 -6
- package/es/banks/components/NavWrapper/presenter.js +1 -1
- package/es/banks/components/SharingModal/{ContextualButton → ContextualIconButton}/index.js +14 -12
- package/es/banks/components/SharingModal/ShareList/index.js +9 -9
- package/es/banks/components/SharingModal/presenter.js +4 -4
- package/es/building/components/layout/header/BuildingButtons/presenter.js +8 -7
- package/es/building/components/resources/ActionButtons/presenter.js +20 -15
- package/es/building/components/resources/AddToBankOptions/index.js +8 -12
- package/es/building/components/resources/BanksTray/presenter.js +1 -1
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
- package/es/building/components/resources/MoveImmutableModal/presenter.js +1 -1
- package/es/building/components/resources/quiz/editButton/EditButton.js +8 -6
- package/es/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +7 -5
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +3 -3
- package/es/common/components/ConfirmationModal/presenter.js +1 -1
- package/es/common/components/ImportModal/presenter.js +4 -4
- package/es/common/components/Pin/presenter.js +9 -12
- package/es/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/es/common/components/layout/header/Calculator/presenter.js +1 -1
- package/es/common/components/layout/header/Timer/presenter.js +2 -2
- package/es/common/components/layout/sidebar/Sidebar/Pin.js +4 -6
- package/es/common/components/layout/sidebar/Sidebar/index.js +24 -22
- package/es/common/components/layout/sidebar/Sidebar/theme.js +2 -0
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
- package/es/common/components/layout/sidebar/Stimulus/Collection/presenter.js +13 -10
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
- package/es/common/components/resources/WarningWrapper/index.js +1 -1
- package/es/common/components/resources/entry/EntrySave/presenter.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Body/presenter.js +3 -1
- package/es/common/components/resources/quiz/AddContent/Button/index.js +1 -1
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +12 -10
- package/es/common/components/resources/quizSessionResult/Info/index.js +10 -9
- package/es/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
- package/es/common/components/shared/ExpandButton/index.js +8 -7
- package/es/common/components/shared/InteractionTypes/presenter.js +3 -2
- package/es/common/components/shared/drag_and_drop/DragHandle/presenter.js +8 -7
- package/es/moderating/components/resources/AccommodationsModal/index.js +1 -1
- package/es/moderating/components/resources/ModerateTableRow/presenter.js +10 -8
- package/es/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow/index.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/AnswerSummaryTableRow → AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow}/presenter.js +6 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/ChoiceInfo → AnswerFrequencySummary/ChoiceType}/presenter.js +46 -28
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +54 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +1 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +22 -26
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg +58 -0
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +9 -3
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +7 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +19 -13
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +2 -1
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +5 -4
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +92 -30
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +8 -6
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +13 -3
- package/lib/banks/components/AddToBankModal/presenter.js +1 -1
- package/lib/banks/components/Bank/presenter.js +3 -3
- package/lib/banks/components/BankEntry/presenter.js +6 -4
- package/lib/banks/components/BankEntryRow/presenter.js +28 -20
- package/lib/banks/components/BankSearch/presenter.js +5 -6
- package/lib/banks/components/Banks/presenter.js +3 -3
- package/lib/banks/components/BanksList/presenter.js +31 -23
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -1
- package/lib/banks/components/CreateBankModal/presenter.js +1 -1
- package/lib/banks/components/EditBankModal/presenter.js +1 -1
- package/lib/banks/components/HeaderMenu/presenter.js +6 -6
- package/lib/banks/components/NavWrapper/presenter.js +1 -1
- package/lib/banks/components/SharingModal/{ContextualButton → ContextualIconButton}/index.js +15 -13
- package/lib/banks/components/SharingModal/ShareList/index.js +9 -9
- package/lib/banks/components/SharingModal/presenter.js +4 -4
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +7 -7
- package/lib/building/components/resources/ActionButtons/presenter.js +19 -15
- package/lib/building/components/resources/AddToBankOptions/index.js +7 -11
- package/lib/building/components/resources/BanksTray/presenter.js +1 -1
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +1 -1
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +1 -1
- package/lib/building/components/resources/MoveImmutableModal/presenter.js +1 -1
- package/lib/building/components/resources/quiz/editButton/EditButton.js +7 -6
- package/lib/building/components/resources/quiz/instructions/Edit/presenter.js +1 -1
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Footer/presenter.js +6 -4
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -2
- package/lib/common/components/ConfirmationModal/presenter.js +1 -1
- package/lib/common/components/ImportModal/presenter.js +3 -3
- package/lib/common/components/Pin/presenter.js +8 -12
- package/lib/common/components/PrintFontSizeModal/presenter.js +2 -2
- package/lib/common/components/layout/header/Calculator/presenter.js +1 -1
- package/lib/common/components/layout/header/Timer/presenter.js +2 -2
- package/lib/common/components/layout/sidebar/Sidebar/Pin.js +4 -6
- package/lib/common/components/layout/sidebar/Sidebar/index.js +23 -21
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +2 -0
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +2 -2
- package/lib/common/components/layout/sidebar/Stimulus/Collection/presenter.js +12 -10
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +2 -2
- package/lib/common/components/resources/WarningWrapper/index.js +1 -1
- package/lib/common/components/resources/entry/EntrySave/presenter.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Body/presenter.js +3 -1
- package/lib/common/components/resources/quiz/AddContent/Button/index.js +1 -1
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +12 -10
- package/lib/common/components/resources/quizSessionResult/Info/index.js +9 -8
- package/lib/common/components/resources/stimulus/StimulusEdit/presenter.js +1 -1
- package/lib/common/components/shared/ExpandButton/index.js +7 -7
- package/lib/common/components/shared/InteractionTypes/presenter.js +3 -2
- package/lib/common/components/shared/drag_and_drop/DragHandle/presenter.js +7 -7
- package/lib/moderating/components/resources/AccommodationsModal/index.js +1 -1
- package/lib/moderating/components/resources/ModerateTableRow/presenter.js +8 -6
- package/lib/moderating/components/resources/OutstandingQuizzesModal/presenter.js +1 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow/index.js +13 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/AnswerSummaryTableRow → AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow}/presenter.js +8 -8
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/ChoiceType/index.js +13 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/ChoiceInfo → AnswerFrequencySummary/ChoiceType}/presenter.js +53 -32
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/index.js +13 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerFrequencySummary/presenter.js +75 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/index.js +1 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/NewItemAnalysis/presenter.js +21 -25
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/ReportCard/presenter.js +3 -2
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/downForRepair.svg +58 -0
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorCodes.js +14 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/errorMessages.js +15 -3
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReports.js +19 -13
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/fetchReportsStatus.js +2 -1
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/generateReports.js +6 -4
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/presenter.js +95 -30
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/propTypes.js +12 -6
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/withAnalysisStatePresenter.js +14 -2
- package/package.json +13 -12
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/AnswerSummaryTableRow/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/ChoiceInfo/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/index.js +0 -2
- package/es/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js +0 -65
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/AnswerSummaryTableRow/index.js +0 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/ChoiceInfo/index.js +0 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/index.js +0 -11
- package/lib/reporting/components/resources/NewQuizAndItemAnalysis/AnswerSummaryTable/presenter.js +0 -87
- /package/es/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/AnswerSummaryTableRow → AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow}/theme.js +0 -0
- /package/es/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable → AnswerFrequencySummary/ChoiceType}/theme.js +0 -0
- /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable/AnswerSummaryTableRow → AnswerFrequencySummary/ChoiceType/ChoiceTypeTableRow}/theme.js +0 -0
- /package/lib/reporting/components/resources/NewQuizAndItemAnalysis/{AnswerSummaryTable → AnswerFrequencySummary/ChoiceType}/theme.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [18.4.0](https://gerrit.instructure.com/quizzes-ui/compare/v18.3.0...v18.4.0) (2023-10-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **a11y:** "Insert Content" dialog ([c81a856](https://gerrit.instructure.com/quizzes-ui/commits/c81a856446c119017058ea08631fcb0363155663))
|
|
12
|
+
* **IA-polling:** Stop the polling on error ([c759e07](https://gerrit.instructure.com/quizzes-ui/commits/c759e07191dbcc7888c9a833accf4e40b6f7ee21))
|
|
13
|
+
* **item_banks:** Remove banks from polling before deletion ([b62a430](https://gerrit.instructure.com/quizzes-ui/commits/b62a430d4c697ed85bfe57cc5c9b5d09c22deab3))
|
|
14
|
+
* **item-analysis:** fix choice body text extraction for only HTML content ([6b0f266](https://gerrit.instructure.com/quizzes-ui/commits/6b0f266164e85a033952f5571797a836499def65))
|
|
15
|
+
* **report-card:** Fix report card layout ([1b173ad](https://gerrit.instructure.com/quizzes-ui/commits/1b173ad323d4e182131f144eca9a55c55144ef6a))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **error_code_translation:** Add error code translations ([bb370fd](https://gerrit.instructure.com/quizzes-ui/commits/bb370fda7edd4b392699085d7965a60617763c45))
|
|
21
|
+
* **item-analysis:** improve error feedback for last report generation ([7ca26f0](https://gerrit.instructure.com/quizzes-ui/commits/7ca26f0caef50e0d21cdc6aa2ea186c105799ec4))
|
|
22
|
+
* **Reports:** Show error image if loading quiz or item analysis fails ([4df0f97](https://gerrit.instructure.com/quizzes-ui/commits/4df0f975b1b29cd055a40993dcd47197cda2dbbf))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [18.3.0](https://gerrit.instructure.com/quizzes-ui/compare/v18.2.0...v18.3.0) (2023-10-03)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -199,7 +199,7 @@ export var AddToBankModal = /*#__PURE__*/function (_Component) {
|
|
|
199
199
|
var disabled = bankType === 'existing' && !this.props.selectedBank || bankType === 'new' && (!newBankTitle || !newBankTitle.trim()) || checkBankedContentShareabilityEnabled && contentShareableLoading;
|
|
200
200
|
return /*#__PURE__*/React.createElement(Button, {
|
|
201
201
|
type: "button",
|
|
202
|
-
|
|
202
|
+
color: "primary",
|
|
203
203
|
onClick: this.continueAction,
|
|
204
204
|
disabled: disabled,
|
|
205
205
|
margin: XSMALL_SIDE_MARGIN,
|
|
@@ -400,10 +400,10 @@ export var Bank = (_dec = themeable(theme, styles), _dec(_class = (_temp = _clas
|
|
|
400
400
|
return /*#__PURE__*/React.createElement(Button, {
|
|
401
401
|
margin: "small none",
|
|
402
402
|
ref: this.storeCreateBankEntryButtonRef,
|
|
403
|
-
|
|
403
|
+
color: "primary",
|
|
404
404
|
onClick: this.openAddBankEntryModal,
|
|
405
405
|
"data-automation": "sdk-new-bank-entry-button",
|
|
406
|
-
|
|
406
|
+
renderIcon: IconPlusLine
|
|
407
407
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
408
408
|
alt: t('Create Bank Entry')
|
|
409
409
|
}, t('New')));
|
|
@@ -418,7 +418,7 @@ export var Bank = (_dec = themeable(theme, styles), _dec(_class = (_temp = _clas
|
|
|
418
418
|
return /*#__PURE__*/React.createElement(Button, {
|
|
419
419
|
onClick: this.addBankToQuiz,
|
|
420
420
|
margin: "small none",
|
|
421
|
-
|
|
421
|
+
renderIcon: IconPlusLine
|
|
422
422
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
423
423
|
alt: t('Add this bank to quiz')
|
|
424
424
|
}, t('All / Random')));
|
|
@@ -19,7 +19,7 @@ import isUndefined from 'lodash/isUndefined';
|
|
|
19
19
|
import keyBy from 'lodash/keyBy';
|
|
20
20
|
import { Alert } from '@instructure/ui-alerts';
|
|
21
21
|
import { BreadcrumbLink } from '@instructure/ui-breadcrumb';
|
|
22
|
-
import {
|
|
22
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
23
23
|
import { Text } from '@instructure/ui-text';
|
|
24
24
|
import { Heading } from '@instructure/ui-heading';
|
|
25
25
|
import { IconDiscussionLine, IconDiscussionSolid } from '@instructure/ui-icons';
|
|
@@ -544,13 +544,15 @@ export var BankEntry = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
544
544
|
text = t('Edit Question Level Feedback');
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
return /*#__PURE__*/React.createElement(
|
|
548
|
-
variant: "icon",
|
|
547
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
549
548
|
onClick: this.openFeedbackModal,
|
|
549
|
+
withBackground: false,
|
|
550
|
+
withBorder: false,
|
|
550
551
|
disabled: disabled,
|
|
551
552
|
ref: this.storeFeedbackButtonRef,
|
|
552
|
-
|
|
553
|
-
|
|
553
|
+
renderIcon: icon,
|
|
554
|
+
screenReaderLabel: text
|
|
555
|
+
});
|
|
554
556
|
}
|
|
555
557
|
}, {
|
|
556
558
|
key: "getBankEntryId",
|
|
@@ -12,11 +12,11 @@ import classNames from 'classnames';
|
|
|
12
12
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
13
13
|
import Immutable from 'immutable';
|
|
14
14
|
import { IconEditLine, IconPlusLine, IconCopyLine, IconTrashLine } from '@instructure/ui-icons';
|
|
15
|
-
import {
|
|
15
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
16
16
|
import { Text } from '@instructure/ui-text';
|
|
17
17
|
import { List } from '@instructure/ui-list';
|
|
18
18
|
import { Heading } from '@instructure/ui-heading';
|
|
19
|
-
import { PresentationContent
|
|
19
|
+
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
20
20
|
import { Alert } from '@instructure/ui-alerts';
|
|
21
21
|
import { themeable } from '@instructure/ui-themeable';
|
|
22
22
|
import { RichContentRenderer } from '@instructure/quiz-rce';
|
|
@@ -138,14 +138,16 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
|
|
|
138
138
|
var title = t('Delete {type}', {
|
|
139
139
|
type: _this.type()
|
|
140
140
|
});
|
|
141
|
-
return /*#__PURE__*/React.createElement(
|
|
142
|
-
variant: "icon",
|
|
141
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
143
142
|
size: "medium",
|
|
143
|
+
withBackground: false,
|
|
144
|
+
withBorder: false,
|
|
144
145
|
onClick: _this.deleteBankEntry,
|
|
145
146
|
"data-automation": "sdk-delete-bank-entry-button",
|
|
146
|
-
|
|
147
|
-
title: title
|
|
148
|
-
|
|
147
|
+
renderIcon: IconTrashLine,
|
|
148
|
+
title: title,
|
|
149
|
+
screenReaderLabel: title
|
|
150
|
+
});
|
|
149
151
|
};
|
|
150
152
|
|
|
151
153
|
_this.navigateToBankEntry = function () {
|
|
@@ -222,15 +224,17 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
|
|
|
222
224
|
});
|
|
223
225
|
return /*#__PURE__*/React.createElement("div", {
|
|
224
226
|
className: classNames(styles.buttons, styles.addButton)
|
|
225
|
-
}, /*#__PURE__*/React.createElement(
|
|
226
|
-
|
|
227
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
228
|
+
color: "primary",
|
|
229
|
+
shape: "circle",
|
|
227
230
|
size: "small",
|
|
228
231
|
onClick: this.addToQuiz,
|
|
229
232
|
"data-automation": "sdk-add-bank-entry-button",
|
|
230
233
|
disabled: this.props.bankEntry.isStimulus && this.props.stimulusId !== null,
|
|
231
|
-
|
|
232
|
-
title: title
|
|
233
|
-
|
|
234
|
+
renderIcon: IconPlusLine,
|
|
235
|
+
title: title,
|
|
236
|
+
screenReaderLabel: title
|
|
237
|
+
}));
|
|
234
238
|
} // This empty div is necessary for spacing
|
|
235
239
|
|
|
236
240
|
|
|
@@ -240,15 +244,17 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
|
|
|
240
244
|
key: "renderMoveButton",
|
|
241
245
|
value: function renderMoveButton() {
|
|
242
246
|
var title = this.moveModalTitle();
|
|
243
|
-
return /*#__PURE__*/React.createElement(
|
|
247
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
244
248
|
ref: this.storeCopyMoveBankEntryButtonRef,
|
|
245
|
-
variant: "icon",
|
|
246
249
|
size: "medium",
|
|
250
|
+
withBackground: false,
|
|
251
|
+
withBorder: false,
|
|
247
252
|
onClick: this.openCopyMoveBankEntryModal,
|
|
248
253
|
"data-automation": "sdk-copy-move-bank-entry-button",
|
|
249
|
-
|
|
250
|
-
title: title
|
|
251
|
-
|
|
254
|
+
renderIcon: IconCopyLine,
|
|
255
|
+
title: title,
|
|
256
|
+
screenReaderLabel: title
|
|
257
|
+
});
|
|
252
258
|
}
|
|
253
259
|
}, {
|
|
254
260
|
key: "entryHeader",
|
|
@@ -309,15 +315,17 @@ export var BankEntryRow = (_dec = themeable(theme, styles), _dec(_class = (_temp
|
|
|
309
315
|
var title = t('Edit {type}', {
|
|
310
316
|
type: this.type()
|
|
311
317
|
});
|
|
312
|
-
return /*#__PURE__*/React.createElement(
|
|
318
|
+
return /*#__PURE__*/React.createElement(IconButton, {
|
|
313
319
|
ref: this.storeEditButtonRef,
|
|
314
|
-
variant: "icon",
|
|
315
320
|
size: "medium",
|
|
321
|
+
withBackground: false,
|
|
322
|
+
withBorder: false,
|
|
316
323
|
onClick: this.navigateToBankEntry,
|
|
317
324
|
"data-automation": "sdk-edit-bank-entry-button",
|
|
318
|
-
|
|
319
|
-
title: title
|
|
320
|
-
|
|
325
|
+
renderIcon: IconEditLine,
|
|
326
|
+
title: title,
|
|
327
|
+
screenReaderLabel: title
|
|
328
|
+
});
|
|
321
329
|
}
|
|
322
330
|
}, {
|
|
323
331
|
key: "renderTags",
|
|
@@ -10,7 +10,7 @@ import memoize from 'lodash/memoize';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
12
12
|
import { IconPlusLine } from '@instructure/ui-icons';
|
|
13
|
-
import { Button } from '@instructure/ui-buttons';
|
|
13
|
+
import { Button, CondensedButton } from '@instructure/ui-buttons';
|
|
14
14
|
import { TextInput } from '@instructure/ui-text-input';
|
|
15
15
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
16
16
|
import { View } from '@instructure/ui-view';
|
|
@@ -127,10 +127,9 @@ export var BankSearch = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
var text = allInteractions ? hide() : show();
|
|
130
|
-
return /*#__PURE__*/React.createElement(
|
|
130
|
+
return /*#__PURE__*/React.createElement(CondensedButton, {
|
|
131
131
|
onClick: toggleAllInteractions,
|
|
132
|
-
margin: "none small"
|
|
133
|
-
variant: "link"
|
|
132
|
+
margin: "none small"
|
|
134
133
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
135
134
|
alt: text
|
|
136
135
|
}, text));
|
|
@@ -160,8 +159,8 @@ export var BankSearch = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
160
159
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Flex, {
|
|
161
160
|
as: "div"
|
|
162
161
|
}, /*#__PURE__*/React.createElement(Flex.Item, {
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
shouldGrow: true,
|
|
163
|
+
shouldShrink: true
|
|
165
164
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
166
165
|
renderLabel: /*#__PURE__*/React.createElement(ScreenReaderContent, null, t('Search')),
|
|
167
166
|
type: "search",
|
|
@@ -171,7 +170,7 @@ export var BankSearch = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
171
170
|
})), /*#__PURE__*/React.createElement(Flex.Item, null, /*#__PURE__*/React.createElement(Button, {
|
|
172
171
|
onClick: toggleFilters,
|
|
173
172
|
margin: "none none none small",
|
|
174
|
-
|
|
173
|
+
renderIcon: IconPlusLine,
|
|
175
174
|
"data-automation": "sdk-search-filter-button"
|
|
176
175
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
177
176
|
alt: showFilters ? t('Hide search filters') : t('Show search filters')
|
|
@@ -331,7 +331,7 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
|
|
|
331
331
|
type: "button",
|
|
332
332
|
onClick: this.handleSortingButtonClick,
|
|
333
333
|
"data-automation": "sdk-sort-banks-button",
|
|
334
|
-
|
|
334
|
+
renderIcon: this.getSortingOrderIcon()
|
|
335
335
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
336
336
|
alt: this.getSortAssistiveText()
|
|
337
337
|
}, t('Sort')))));
|
|
@@ -363,10 +363,10 @@ export var Banks = (_dec = themeable(theme, styles), _dec(_class = (_temp = _cla
|
|
|
363
363
|
}, t('Banks')), /*#__PURE__*/React.createElement(Button, {
|
|
364
364
|
ref: this.handleCreateBankButtonRef,
|
|
365
365
|
type: "button",
|
|
366
|
-
|
|
366
|
+
color: "primary",
|
|
367
367
|
onClick: this.onCreateBank,
|
|
368
368
|
"data-automation": "sdk-create-new-bank-button",
|
|
369
|
-
|
|
369
|
+
renderIcon: IconPlusLine
|
|
370
370
|
}, /*#__PURE__*/React.createElement(AccessibleContent, {
|
|
371
371
|
alt: t('Create Bank')
|
|
372
372
|
}, t('Bank'))));
|
|
@@ -17,7 +17,7 @@ import { Text } from '@instructure/ui-text';
|
|
|
17
17
|
import { Link } from '@instructure/ui-link';
|
|
18
18
|
import { Heading } from '@instructure/ui-heading';
|
|
19
19
|
import { PresentationContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
20
|
-
import {
|
|
20
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
21
21
|
import { IconEditLine, IconTrashLine, IconShareSolid, IconCopyLine } from '@instructure/ui-icons';
|
|
22
22
|
import { Alert } from '@instructure/ui-alerts';
|
|
23
23
|
import { Spinner } from '@instructure/ui-spinner';
|
|
@@ -280,43 +280,49 @@ export var BanksList = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
280
280
|
};
|
|
281
281
|
|
|
282
282
|
_this.renderBankOptions = function (bank) {
|
|
283
|
-
var bankEditOptions = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
283
|
+
var bankEditOptions = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
284
284
|
onClick: _this.openModal(bank),
|
|
285
285
|
name: "Edit",
|
|
286
286
|
size: "small",
|
|
287
|
-
variant: "icon",
|
|
288
287
|
"data-automation": "sdk-edit-bank-button",
|
|
289
|
-
|
|
288
|
+
withBackground: false,
|
|
289
|
+
withBorder: false,
|
|
290
|
+
renderIcon: IconEditLine,
|
|
290
291
|
title: t('Edit bank {name}', {
|
|
291
292
|
name: bank.title
|
|
293
|
+
}),
|
|
294
|
+
screenReaderLabel: t('Edit bank {name}', {
|
|
295
|
+
name: bank.title
|
|
292
296
|
})
|
|
293
|
-
}, /*#__PURE__*/React.createElement(
|
|
294
|
-
name: bank.title
|
|
295
|
-
}))), /*#__PURE__*/React.createElement(Button, {
|
|
297
|
+
}), /*#__PURE__*/React.createElement(IconButton, {
|
|
296
298
|
onClick: _this.openDeleteBankModal(bank),
|
|
297
299
|
name: "Delete",
|
|
298
300
|
size: "small",
|
|
299
|
-
variant: "icon",
|
|
300
301
|
"data-automation": "sdk-delete-bank-button",
|
|
301
|
-
|
|
302
|
+
withBackground: false,
|
|
303
|
+
withBorder: false,
|
|
304
|
+
renderIcon: IconTrashLine,
|
|
302
305
|
title: t('Delete bank {name}', {
|
|
303
306
|
name: bank.title
|
|
307
|
+
}),
|
|
308
|
+
screenReaderLabel: t('Delete bank {name}', {
|
|
309
|
+
name: bank.title
|
|
304
310
|
})
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
}))));
|
|
308
|
-
var duplicateBankOption = /*#__PURE__*/React.createElement(Button, {
|
|
311
|
+
}));
|
|
312
|
+
var duplicateBankOption = /*#__PURE__*/React.createElement(IconButton, {
|
|
309
313
|
onClick: _this.openDuplicateBankModal(bank),
|
|
310
314
|
name: "Duplicate",
|
|
311
315
|
size: "small",
|
|
312
|
-
|
|
313
|
-
|
|
316
|
+
renderIcon: IconCopyLine,
|
|
317
|
+
withBackground: false,
|
|
318
|
+
withBorder: false,
|
|
314
319
|
title: t('Duplicate bank {name}', {
|
|
315
320
|
name: bank.title
|
|
321
|
+
}),
|
|
322
|
+
screenReaderLabel: t('Duplicate bank {name}', {
|
|
323
|
+
name: bank.title
|
|
316
324
|
})
|
|
317
|
-
}
|
|
318
|
-
name: bank.title
|
|
319
|
-
})));
|
|
325
|
+
});
|
|
320
326
|
|
|
321
327
|
if (bank.status === 'copying') {
|
|
322
328
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -331,19 +337,21 @@ export var BanksList = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
331
337
|
className: styles.bankOptions
|
|
332
338
|
}, _this.props.duplicateItemBanks ? duplicateBankOption : null, /*#__PURE__*/React.createElement(IfFeature, {
|
|
333
339
|
name: "item_bank_sharing"
|
|
334
|
-
}, /*#__PURE__*/React.createElement(
|
|
340
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
335
341
|
onClick: _this.openSharingModal(bank),
|
|
336
342
|
name: "Share",
|
|
337
343
|
size: "small",
|
|
338
|
-
variant: "icon",
|
|
339
344
|
"data-automation": "sdk-shared-bank-share-link",
|
|
340
|
-
|
|
345
|
+
withBackground: false,
|
|
346
|
+
withBorder: false,
|
|
347
|
+
renderIcon: IconShareSolid,
|
|
341
348
|
title: t('Share bank {name}', {
|
|
342
349
|
name: bank.title
|
|
350
|
+
}),
|
|
351
|
+
screenReaderLabel: t('Share bank {name}', {
|
|
352
|
+
name: bank.title
|
|
343
353
|
})
|
|
344
|
-
},
|
|
345
|
-
name: bank.title
|
|
346
|
-
})))), bank.canEdit() ? bankEditOptions : null);
|
|
354
|
+
})), bank.canEdit() ? bankEditOptions : null);
|
|
347
355
|
}
|
|
348
356
|
};
|
|
349
357
|
|
|
@@ -128,7 +128,7 @@ export var CopyMoveBankEntryModal = /*#__PURE__*/function (_Component) {
|
|
|
128
128
|
newBankTitle = _this$state.newBankTitle;
|
|
129
129
|
var disabled = bankType === 'existing' && !this.props.selectedBank || bankType === 'new' && (!newBankTitle || !newBankTitle.trim());
|
|
130
130
|
return /*#__PURE__*/React.createElement(Button, {
|
|
131
|
-
|
|
131
|
+
color: "primary",
|
|
132
132
|
onClick: this.continueAction,
|
|
133
133
|
disabled: disabled,
|
|
134
134
|
margin: XSMALL_SIDE_MARGIN,
|
|
@@ -114,7 +114,7 @@ export var CreateBankModal = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
114
114
|
value: function createBankButton() {
|
|
115
115
|
return /*#__PURE__*/React.createElement(Button, {
|
|
116
116
|
type: "button",
|
|
117
|
-
|
|
117
|
+
color: "primary",
|
|
118
118
|
onClick: this.continueAction,
|
|
119
119
|
margin: XSMALL_SIDE_MARGIN,
|
|
120
120
|
"data-automation": "sdk-create-bank-button"
|
|
@@ -92,7 +92,7 @@ export var EditBankModal = (_dec = themeable(theme, styles), _dec(_class = (_tem
|
|
|
92
92
|
value: function renderSaveButton() {
|
|
93
93
|
return /*#__PURE__*/React.createElement(Button, {
|
|
94
94
|
type: "button",
|
|
95
|
-
|
|
95
|
+
color: "primary",
|
|
96
96
|
onClick: this.continueAction,
|
|
97
97
|
margin: XSMALL_SIDE_MARGIN,
|
|
98
98
|
"data-automation": "sdk-edit-bank-save-button"
|
|
@@ -9,9 +9,8 @@ import React, { Component } from 'react';
|
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
10
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
11
11
|
import { Menu } from '@instructure/ui-menu';
|
|
12
|
-
import {
|
|
12
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
13
13
|
import { IconMoreSolid, IconImportLine } from '@instructure/ui-icons';
|
|
14
|
-
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
15
14
|
import { themeable } from '@instructure/ui-themeable';
|
|
16
15
|
import QTIImportModal from "../../../building/components/QTIImportModal/index.js";
|
|
17
16
|
import { PARENT_TYPE_BANK } from '@instructure/quiz-common';
|
|
@@ -39,10 +38,12 @@ export var HeaderMenu = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
39
38
|
key: "renderMenu",
|
|
40
39
|
value: function renderMenu() {
|
|
41
40
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
42
|
-
trigger: /*#__PURE__*/React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
trigger: /*#__PURE__*/React.createElement(IconButton, {
|
|
42
|
+
renderIcon: IconMoreSolid,
|
|
43
|
+
withBackground: false,
|
|
44
|
+
withBorder: false,
|
|
45
|
+
screenReaderLabel: t('More Item Banking Actions')
|
|
46
|
+
})
|
|
46
47
|
}, /*#__PURE__*/React.createElement(Menu.Item, {
|
|
47
48
|
key: "import",
|
|
48
49
|
disabled: !this.props.bank.canImport(),
|
|
@@ -82,7 +82,7 @@ var NavWrapper = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class
|
|
|
82
82
|
}, canvasReferrerLinkText);
|
|
83
83
|
var banksLinks = /*#__PURE__*/React.createElement(BreadcrumbLink, {
|
|
84
84
|
ref: this.setItemBanksRef,
|
|
85
|
-
|
|
85
|
+
renderIcon: _ref,
|
|
86
86
|
key: "Banks",
|
|
87
87
|
onClick: this.props.navigateToBanks
|
|
88
88
|
}, t('Item Banks')); // If Breadcrumb has multiple children (even if 2nd is null), it will
|
|
@@ -5,17 +5,17 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
5
5
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import {
|
|
8
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
9
9
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
10
|
-
export var
|
|
11
|
-
_inherits(
|
|
10
|
+
export var ContextualIconButton = /*#__PURE__*/function (_Component) {
|
|
11
|
+
_inherits(ContextualIconButton, _Component);
|
|
12
12
|
|
|
13
|
-
var _super = _createSuper(
|
|
13
|
+
var _super = _createSuper(ContextualIconButton);
|
|
14
14
|
|
|
15
|
-
function
|
|
15
|
+
function ContextualIconButton() {
|
|
16
16
|
var _this;
|
|
17
17
|
|
|
18
|
-
_classCallCheck(this,
|
|
18
|
+
_classCallCheck(this, ContextualIconButton);
|
|
19
19
|
|
|
20
20
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21
21
|
args[_key] = arguments[_key];
|
|
@@ -36,24 +36,26 @@ export var ContextualButton = /*#__PURE__*/function (_Component) {
|
|
|
36
36
|
return _this;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
_createClass(
|
|
39
|
+
_createClass(ContextualIconButton, [{
|
|
40
40
|
key: "render",
|
|
41
41
|
value: function render() {
|
|
42
42
|
var buttonProps = omitProps(this.props, {}, ['context', 'onClick']);
|
|
43
|
-
return /*#__PURE__*/React.createElement(
|
|
43
|
+
return /*#__PURE__*/React.createElement(IconButton, Object.assign({}, buttonProps, {
|
|
44
|
+
withBackground: false,
|
|
45
|
+
withBorder: false,
|
|
44
46
|
onClick: this.handleClick
|
|
45
47
|
}), this.props.children);
|
|
46
48
|
}
|
|
47
49
|
}]);
|
|
48
50
|
|
|
49
|
-
|
|
50
|
-
return
|
|
51
|
+
ContextualIconButton.displayName = "ContextualIconButton";
|
|
52
|
+
return ContextualIconButton;
|
|
51
53
|
}(Component);
|
|
52
|
-
|
|
54
|
+
ContextualIconButton.propTypes = _objectSpread(_objectSpread({}, IconButton.propTypes), {}, {
|
|
53
55
|
context: PropTypes.any
|
|
54
56
|
/* eslint-disable-line react/forbid-prop-types */
|
|
55
57
|
|
|
56
58
|
});
|
|
57
|
-
|
|
59
|
+
ContextualIconButton.defaultProps = _objectSpread(_objectSpread({}, IconButton.defaultProps), {}, {
|
|
58
60
|
context: void 0
|
|
59
61
|
});
|
|
@@ -17,7 +17,7 @@ import { Text } from '@instructure/ui-text';
|
|
|
17
17
|
import { Avatar } from '@instructure/ui-avatar';
|
|
18
18
|
import { Tabs } from '@instructure/ui-tabs';
|
|
19
19
|
import { themeable } from '@instructure/ui-themeable';
|
|
20
|
-
import {
|
|
20
|
+
import { ContextualIconButton } from "../ContextualIconButton/index.js";
|
|
21
21
|
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
22
22
|
var styles = {
|
|
23
23
|
componentId: 'edByO',
|
|
@@ -81,18 +81,18 @@ export var ShareList = (_dec = themeable(theme, styles), _dec(_class = (_temp =
|
|
|
81
81
|
entity: entity,
|
|
82
82
|
isEntityRemoved: isEntityRemoved
|
|
83
83
|
};
|
|
84
|
-
return /*#__PURE__*/React.createElement(
|
|
84
|
+
return /*#__PURE__*/React.createElement(ContextualIconButton, {
|
|
85
85
|
context: context // eslint-disable-next-line react/jsx-no-literals
|
|
86
86
|
,
|
|
87
87
|
"data-automation": "sdk-unshare-bank-entity-".concat(entity.get('entityId')),
|
|
88
|
-
variant: "icon",
|
|
89
88
|
onClick: _this.handleEntityRemove,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
renderIcon: isEntityRemoved ? IconResetLine : IconTrashLine,
|
|
90
|
+
screenReaderLabel: isEntityRemoved ? t('Undo remove for {entity}', {
|
|
91
|
+
entity: entity.get('title')
|
|
92
|
+
}) : t('Remove {entity}', {
|
|
93
|
+
entity: entity.get('title')
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
_this.renderEntity = function (entity, index) {
|
|
@@ -404,7 +404,7 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
404
404
|
"data-automation": "sdk-shared-bank-add-user-button",
|
|
405
405
|
ref: _this.handleShareButtonRef,
|
|
406
406
|
onClick: _this.handleShare,
|
|
407
|
-
|
|
407
|
+
color: _this.state.searchSelection.length ? 'success' : 'secondary'
|
|
408
408
|
}, t('Add'))))), /*#__PURE__*/React.createElement("div", {
|
|
409
409
|
className: styles.separator
|
|
410
410
|
}));
|
|
@@ -510,7 +510,7 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
510
510
|
value: function renderFooter() {
|
|
511
511
|
if (this.props.subAccountBankSharingEnabled) {
|
|
512
512
|
return /*#__PURE__*/React.createElement(Button, {
|
|
513
|
-
|
|
513
|
+
color: "primary",
|
|
514
514
|
margin: "0 x-small 0 0",
|
|
515
515
|
onClick: this.handleDismiss
|
|
516
516
|
}, t('Close'));
|
|
@@ -518,12 +518,12 @@ export var SharingModalPresenter = (_dec = themeable(theme, styles), _dec(_class
|
|
|
518
518
|
|
|
519
519
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
520
520
|
"data-automation": "sdk-shared-bank-cancel-button",
|
|
521
|
-
|
|
521
|
+
color: "primary-inverse",
|
|
522
522
|
onClick: this.handleDismiss,
|
|
523
523
|
margin: "0 x-small 0 0"
|
|
524
524
|
}, t('Cancel')), /*#__PURE__*/React.createElement(Button, {
|
|
525
525
|
"data-automation": "sdk-shared-bank-done-button",
|
|
526
|
-
|
|
526
|
+
color: "primary",
|
|
527
527
|
onClick: this.handleSubmit,
|
|
528
528
|
margin: "0 x-small 0 0"
|
|
529
529
|
}, t('Done')));
|
|
@@ -7,9 +7,8 @@ var _dec, _class, _class2, _temp;
|
|
|
7
7
|
|
|
8
8
|
import React, { Component } from 'react';
|
|
9
9
|
import PropTypes from 'prop-types';
|
|
10
|
-
import {
|
|
10
|
+
import { IconButton } from '@instructure/ui-buttons';
|
|
11
11
|
import { Menu } from '@instructure/ui-menu';
|
|
12
|
-
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
13
12
|
import { IconExportLine, IconMoreSolid, IconImportLine, IconBankLine, IconPrinterLine, IconSpeedGraderLine } from '@instructure/ui-icons';
|
|
14
13
|
import PrintTrigger from "../../../../../common/components/shared/PrintTrigger/index.js";
|
|
15
14
|
import { PRINT_CURRENT_PAGE, PRINT_BLANK } from '@instructure/quiz-common';
|
|
@@ -175,11 +174,13 @@ export var BuildingButtons = (_dec = themeable(theme, styles), _dec(_class = (_t
|
|
|
175
174
|
|
|
176
175
|
if (menuItems.length < 1) return;
|
|
177
176
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
178
|
-
trigger: /*#__PURE__*/React.createElement(
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
trigger: /*#__PURE__*/React.createElement(IconButton, {
|
|
178
|
+
renderIcon: IconMoreSolid,
|
|
179
|
+
withBackground: false,
|
|
180
|
+
withBorder: false,
|
|
181
|
+
"data-automation": "sdk-more-quiz-actions-button",
|
|
182
|
+
screenReaderLabel: t('More Quiz Actions')
|
|
183
|
+
})
|
|
183
184
|
}, menuItems);
|
|
184
185
|
}
|
|
185
186
|
}, {
|