@instructure/quiz-core 20.36.1 → 20.37.1
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/AddToBankModal/presenter.js +1 -2
- package/es/banks/components/AsyncSearch/index.js +1 -2
- package/es/banks/components/BankEntry/presenter.js +1 -2
- package/es/banks/components/BankSearch/presenter.js +1 -2
- package/es/banks/components/Banks/index.js +0 -1
- package/es/banks/components/Banks/presenter.js +5 -9
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +1 -2
- package/es/banks/components/CreateBankModal/presenter.js +1 -2
- package/es/banks/components/EditBankModal/presenter.js +1 -2
- package/es/banks/components/NavWrapper/externalStyles.js +5 -0
- package/es/banks/components/NavWrapper/styles.js +4 -3
- package/es/banks/components/SharingModal/RootAccountSharing.js +1 -2
- package/es/banks/components/SharingModal/ShareList/index.js +1 -2
- package/es/banks/components/SharingModal/index.js +0 -2
- package/es/banks/components/SharingModal/presenter.js +18 -78
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +40 -23
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -29
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -5
- package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +11 -0
- package/es/common/components/AccessCodeTextInput/index.js +47 -0
- package/es/common/components/ImportModal/presenter.js +1 -2
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +19 -0
- package/es/common/components/MaskedTextInput/index.js +64 -0
- package/es/common/components/layout/Page/styles.js +1 -10
- package/es/common/components/layout/navbar/externalStyles.js +7 -0
- package/es/common/components/layout/navbar/styles.js +4 -5
- package/es/common/components/layout/sidebar/Sidebar/externalStyles.js +10 -0
- package/es/common/components/layout/sidebar/Sidebar/styles.js +4 -6
- package/es/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/es/common/components/resources/quiz/instructions/styles.js +4 -5
- package/es/common/components/resources/quiz/instructions/theme.js +1 -2
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +5 -8
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +1 -2
- package/es/common/components/shared/TagSelect/presenter.js +1 -2
- package/es/common/components/shared/TimeUnitsInput/index.js +2 -1
- package/es/common/records/Stimulus.js +2 -1
- package/es/index.js +3 -1
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -2
- package/es/moderating/components/resources/AccommodationsModal/index.js +5 -13
- package/es/moderating/components/resources/ModerateTable/presenter.js +4 -2
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +20 -29
- package/lib/banks/components/AddToBankModal/presenter.js +1 -2
- package/lib/banks/components/AsyncSearch/index.js +8 -9
- package/lib/banks/components/BankEntry/presenter.js +1 -2
- package/lib/banks/components/BankSearch/presenter.js +1 -2
- package/lib/banks/components/Banks/index.js +0 -1
- package/lib/banks/components/Banks/presenter.js +9 -13
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +1 -2
- package/lib/banks/components/CreateBankModal/presenter.js +1 -2
- package/lib/banks/components/EditBankModal/presenter.js +1 -2
- package/lib/banks/components/NavWrapper/externalStyles.js +12 -0
- package/lib/banks/components/NavWrapper/styles.js +5 -3
- package/lib/banks/components/SharingModal/RootAccountSharing.js +3 -4
- package/lib/banks/components/SharingModal/ShareList/index.js +3 -4
- package/lib/banks/components/SharingModal/index.js +0 -2
- package/lib/banks/components/SharingModal/presenter.js +20 -80
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +39 -22
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/styles.js +1 -29
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/theme.js +1 -5
- package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +20 -0
- package/lib/common/components/AccessCodeTextInput/index.js +57 -0
- package/lib/common/components/ImportModal/presenter.js +1 -2
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +29 -0
- package/lib/common/components/MaskedTextInput/index.js +74 -0
- package/lib/common/components/layout/Page/styles.js +1 -10
- package/lib/common/components/layout/navbar/externalStyles.js +14 -0
- package/lib/common/components/layout/navbar/styles.js +5 -5
- package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +17 -0
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +4 -6
- package/lib/common/components/resources/item/ItemEdit/presenter.js +2 -4
- package/lib/common/components/resources/quiz/instructions/styles.js +4 -5
- package/lib/common/components/resources/quiz/instructions/theme.js +1 -2
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +12 -15
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +3 -4
- package/lib/common/components/shared/TagSelect/presenter.js +4 -5
- package/lib/common/components/shared/TimeUnitsInput/index.js +2 -1
- package/lib/common/records/Stimulus.js +2 -1
- package/lib/index.js +22 -6
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +7 -7
- package/lib/moderating/components/resources/AccommodationsModal/index.js +5 -13
- package/lib/moderating/components/resources/ModerateTable/presenter.js +4 -2
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +20 -29
- package/package.json +9 -8
|
@@ -6,13 +6,12 @@ import React, { Component } from 'react';
|
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
8
8
|
import { Heading } from '@instructure/ui-heading';
|
|
9
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
10
9
|
import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
11
10
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
12
11
|
import Bank from "../../../common/records/Bank.js";
|
|
13
12
|
import BankSelection from "../../../common/components/resources/BankSelection/presenter.js";
|
|
14
13
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
14
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
16
15
|
import { featureOn } from "../../../common/util/featureCheck.js";
|
|
17
16
|
var _ref = /*#__PURE__*/React.createElement("br", null);
|
|
18
17
|
export var AddToBankModal = /*#__PURE__*/function (_Component) {
|
|
@@ -9,10 +9,9 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import debounce from 'lodash/fp/debounce';
|
|
10
10
|
import find from 'lodash/fp/find';
|
|
11
11
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
12
|
-
import { Select } from '@instructure/ui-select';
|
|
13
12
|
import { Spinner } from '@instructure/ui-spinner';
|
|
14
13
|
import TagWrapper from "../../../common/components/shared/TagWrapper/index.js";
|
|
15
|
-
import { SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, SELECT_EMPTY_OPTION } from '@instructure/quiz-common';
|
|
14
|
+
import { SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, SELECT_EMPTY_OPTION, Select } from '@instructure/quiz-common';
|
|
16
15
|
export var AsyncSearch = /*#__PURE__*/function (_Component) {
|
|
17
16
|
_inherits(AsyncSearch, _Component);
|
|
18
17
|
var _super = _createSuper(AsyncSearch);
|
|
@@ -23,7 +23,6 @@ import { Text } from '@instructure/ui-text';
|
|
|
23
23
|
import { Heading } from '@instructure/ui-heading';
|
|
24
24
|
import { IconDiscussionLine, IconDiscussionSolid } from '@instructure/ui-icons';
|
|
25
25
|
import { PresentationContent, ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
26
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
27
26
|
import { jsx } from '@instructure/emotion';
|
|
28
27
|
import { HeaderBreadCrumb } from "../HeaderBreadCrumb/index.js";
|
|
29
28
|
import EntrySave from "../../../common/components/resources/entry/EntrySave/index.js";
|
|
@@ -41,7 +40,7 @@ import { createItem } from "../../../building/api/items.js";
|
|
|
41
40
|
import { createStimulus } from "../../../building/api/stimuli.js";
|
|
42
41
|
import { propsForItemVersioningWrapper, propsForStimulusVersioningWrapper } from "../../../common/util/warningHelpers.js";
|
|
43
42
|
import NavWrapper from "../NavWrapper/index.js";
|
|
44
|
-
import { API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK, PARENT_TYPE_BANK, withStyleOverrides } from '@instructure/quiz-common';
|
|
43
|
+
import { API_INPUT_VALIDATION_ERROR, CLEAR_ALL_INPUT_VALIDATION_ERRORS, ITEM_FEEDBACK_MODAL, ITEM_FEEDBACK_MODAL_ITEM, ITEM_FEEDBACK_MODAL_FEEDBACK, PARENT_TYPE_BANK, TextInput, withStyleOverrides } from '@instructure/quiz-common';
|
|
45
44
|
import generateStyle from "./styles.js";
|
|
46
45
|
import generateComponentTheme from "./theme.js";
|
|
47
46
|
var _ref3 = jsx(Spinner, null);
|
|
@@ -10,7 +10,6 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
11
11
|
import { IconPlusLine } from '@instructure/ui-icons';
|
|
12
12
|
import { Button, CondensedButton } from '@instructure/ui-buttons';
|
|
13
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
14
13
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
15
14
|
import { View } from '@instructure/ui-view';
|
|
16
15
|
import { Flex } from '@instructure/ui-flex';
|
|
@@ -22,7 +21,7 @@ import TagSuggestSelect from "../../../common/components/shared/TagSuggestSelect
|
|
|
22
21
|
import { interactionTypesNameDictionary } from "../../../common/util/interactionTypeMetadata.js";
|
|
23
22
|
import generateStyle from "./styles.js";
|
|
24
23
|
import generateComponentTheme from "./theme.js";
|
|
25
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
24
|
+
import { TextInput, withStyleOverrides } from '@instructure/quiz-common';
|
|
26
25
|
var tagShape = PropTypes.shape({
|
|
27
26
|
tag: PropTypes.shape({
|
|
28
27
|
id: PropTypes.string,
|
|
@@ -19,7 +19,6 @@ function mapStateToProps(state, props) {
|
|
|
19
19
|
return {
|
|
20
20
|
itemBankSearchTableEnabled: featureOn('item_bank_search_table'),
|
|
21
21
|
usedByCourseEnabled: featureOn('filter_item_banks_used_by_course'),
|
|
22
|
-
subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
|
|
23
22
|
scopeType: scopeType,
|
|
24
23
|
sortBy: sortBy,
|
|
25
24
|
sortOrder: sortOrder,
|
|
@@ -14,8 +14,6 @@ import { AccessibleContent, ScreenReaderContent } from '@instructure/ui-a11y-con
|
|
|
14
14
|
import { IconPlusLine, IconArrowUpLine, IconArrowDownLine } from '@instructure/ui-icons';
|
|
15
15
|
import { Billboard } from '@instructure/ui-billboard';
|
|
16
16
|
import { Button } from '@instructure/ui-buttons';
|
|
17
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
18
|
-
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
19
17
|
import { jsx } from '@instructure/emotion';
|
|
20
18
|
import { Grid } from '@instructure/ui-grid';
|
|
21
19
|
import { View } from '@instructure/ui-view';
|
|
@@ -24,7 +22,7 @@ import Page from "../../../common/components/layout/Page/index.js";
|
|
|
24
22
|
import { HeaderBreadCrumb } from "../HeaderBreadCrumb/index.js";
|
|
25
23
|
import PaginatedCollection from "../../../common/components/shared/PaginatedCollection/index.js";
|
|
26
24
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
27
|
-
import { BANKS_BANK_FILTERS, BANKS_BANK_PAGINATION, CREATE_BANK_MODAL, SHARED_WITH_ACCOUNT, withStyleOverrides } from '@instructure/quiz-common';
|
|
25
|
+
import { BANKS_BANK_FILTERS, BANKS_BANK_PAGINATION, CREATE_BANK_MODAL, SHARED_WITH_ACCOUNT, withStyleOverrides, SimpleSelect, TextInput } from '@instructure/quiz-common';
|
|
28
26
|
import BanksList from "../../../banks/components/BanksList/index.js";
|
|
29
27
|
import CreateBankModal from "../../../banks/components/CreateBankModal/index.js";
|
|
30
28
|
import NavWrapper from "../NavWrapper/index.js";
|
|
@@ -224,7 +222,7 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
224
222
|
}, {
|
|
225
223
|
key: "topLevelBankFilterName",
|
|
226
224
|
value: function topLevelBankFilterName() {
|
|
227
|
-
return
|
|
225
|
+
return t('Shared with Me');
|
|
228
226
|
}
|
|
229
227
|
}, {
|
|
230
228
|
key: "renderFilters",
|
|
@@ -237,7 +235,7 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
237
235
|
translation: t('Institution Banks')
|
|
238
236
|
}, {
|
|
239
237
|
slug: 'courses',
|
|
240
|
-
translation:
|
|
238
|
+
translation: t('Shared with Courses')
|
|
241
239
|
}];
|
|
242
240
|
if (this.props.scope.uuid) {
|
|
243
241
|
scopeOptions.push({
|
|
@@ -245,7 +243,7 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
245
243
|
translation: t('This Course')
|
|
246
244
|
});
|
|
247
245
|
}
|
|
248
|
-
if (this.
|
|
246
|
+
if (this.isSubAccountLaunch()) {
|
|
249
247
|
// Put this option below "Insitution Banks"
|
|
250
248
|
scopeOptions.splice(2, 0, {
|
|
251
249
|
slug: 'this_account',
|
|
@@ -304,7 +302,7 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
304
302
|
onChange: this.handleSearchInputChange,
|
|
305
303
|
placeholder: t('Search Banks'),
|
|
306
304
|
"data-automation": "sdk-search-bank-textinput"
|
|
307
|
-
})),
|
|
305
|
+
})), !this.hideAccountSearch() && jsx(Grid.Col, {
|
|
308
306
|
width: 4
|
|
309
307
|
}, jsx(AsyncSearch, {
|
|
310
308
|
getShareableSubaccounts: this.props.getShareableSubaccounts,
|
|
@@ -490,7 +488,6 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
490
488
|
usedByCourseEnabled: PropTypes.bool,
|
|
491
489
|
itemBankSearchTableEnabled: PropTypes.bool,
|
|
492
490
|
setUI: PropTypes.func.isRequired,
|
|
493
|
-
subAccountBankSharingEnabled: PropTypes.bool,
|
|
494
491
|
iceTopNavBarEnabled: PropTypes.bool,
|
|
495
492
|
styles: PropTypes.object,
|
|
496
493
|
rootAccountUuid: PropTypes.string
|
|
@@ -517,7 +514,6 @@ export var Banks = (_dec = withStyleOverrides(generateStyle, generateComponentTh
|
|
|
517
514
|
searchSelection: [],
|
|
518
515
|
usedByCourseEnabled: false,
|
|
519
516
|
itemBankSearchTableEnabled: false,
|
|
520
|
-
subAccountBankSharingEnabled: false,
|
|
521
517
|
iceTopNavBarEnabled: false,
|
|
522
518
|
rootAccountUuid: null
|
|
523
519
|
}, _Banks.contextTypes = {
|
|
@@ -5,7 +5,6 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
import React, { Component } from 'react';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
8
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
9
8
|
import { RadioInputGroup, RadioInput } from '@instructure/ui-radio-input';
|
|
10
9
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
11
10
|
import { Heading } from '@instructure/ui-heading';
|
|
@@ -13,7 +12,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
13
12
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
13
|
import Bank from "../../../common/records/Bank.js";
|
|
15
14
|
import BankSelection from "../../../common/components/resources/BankSelection/presenter.js";
|
|
16
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, COPY_MOVE_BANK_ENTRY_MODAL_KEEP_COPY, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
15
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, COPY_MOVE_BANK_ENTRY_MODAL_KEEP_COPY, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
17
16
|
import { featureOn } from "../../../common/util/featureCheck.js";
|
|
18
17
|
var _ref = /*#__PURE__*/React.createElement("br", null);
|
|
19
18
|
var _ref2 = /*#__PURE__*/React.createElement("br", null);
|
|
@@ -9,13 +9,12 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
10
10
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
11
11
|
import { View } from '@instructure/ui-view';
|
|
12
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
13
12
|
import { Heading } from '@instructure/ui-heading';
|
|
14
13
|
import { jsx } from '@instructure/emotion';
|
|
15
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
16
15
|
import Bank from "../../../common/records/Bank.js";
|
|
17
16
|
import { toErrors } from "../../../common/util/instUIMessages.js";
|
|
18
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
17
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
19
18
|
import generateStyle from "./styles.js";
|
|
20
19
|
import generateComponentTheme from "./theme.js";
|
|
21
20
|
export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
@@ -7,12 +7,11 @@ var _dec, _class, _EditBankModal;
|
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
10
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
11
10
|
import { Heading } from '@instructure/ui-heading';
|
|
12
11
|
import { jsx } from '@instructure/emotion';
|
|
13
12
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
14
13
|
import { toErrors } from "../../../common/util/instUIMessages.js";
|
|
15
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
14
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
15
|
import Bank from "../../../common/records/Bank.js";
|
|
17
16
|
import generateStyle from "./styles.js";
|
|
18
17
|
import generateComponentTheme from "./theme.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { generateExternalStyle } from "./externalStyles.js";
|
|
1
3
|
var generateStyle = function generateStyle(componentTheme) {
|
|
2
|
-
return {
|
|
3
|
-
showReturnButton: true,
|
|
4
|
+
return _objectSpread({
|
|
4
5
|
nav: {
|
|
5
6
|
display: 'flex',
|
|
6
7
|
flexDirection: 'row',
|
|
@@ -25,6 +26,6 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
25
26
|
crumbs: {
|
|
26
27
|
flex: 1
|
|
27
28
|
}
|
|
28
|
-
};
|
|
29
|
+
}, generateExternalStyle());
|
|
29
30
|
};
|
|
30
31
|
export default generateStyle;
|
|
@@ -5,13 +5,12 @@ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
|
5
5
|
var _dec, _class, _RootAccountSharing;
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import { withStyleOverrides, CAN_EDIT, READ_ONLY } from '@instructure/quiz-common';
|
|
8
|
+
import { withStyleOverrides, CAN_EDIT, READ_ONLY, SimpleSelect } from '@instructure/quiz-common';
|
|
9
9
|
import { IconAdminLine } from '@instructure/ui-icons';
|
|
10
10
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
11
11
|
import { View } from '@instructure/ui-view';
|
|
12
12
|
import { Grid } from '@instructure/ui-grid';
|
|
13
13
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
|
-
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
15
14
|
import generateStyle from "./styles.js";
|
|
16
15
|
import generateComponentTheme from "./theme.js";
|
|
17
16
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
@@ -11,10 +11,9 @@ import { Map } from 'immutable';
|
|
|
11
11
|
import { IconCoursesLine, IconTrashLine, IconResetLine } from '@instructure/ui-icons';
|
|
12
12
|
import { Grid } from '@instructure/ui-grid';
|
|
13
13
|
import { Avatar } from '@instructure/ui-avatar';
|
|
14
|
-
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
15
14
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
16
15
|
import { jsx } from '@instructure/emotion';
|
|
17
|
-
import { CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_COURSE, withStyleOverrides } from '@instructure/quiz-common';
|
|
16
|
+
import { CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_COURSE, SimpleSelect, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
17
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
19
18
|
import { ContextualIconButton } from "../ContextualIconButton/index.js";
|
|
20
19
|
import generateStyle from "./styles.js";
|
|
@@ -4,14 +4,12 @@ import { connect } from "../../../common/react-redux.js";
|
|
|
4
4
|
import { shareBank, getSharedBanks, updateSharedBankPermission, getBank, updateBank } from "../../api/banks.js";
|
|
5
5
|
import { removeSharedBank } from "../../../common/actions/sharedBanks.js";
|
|
6
6
|
import { withConfirm } from "../../../common/actions/modal.js";
|
|
7
|
-
import { featureOn } from "../../../common/util/featureCheck.js";
|
|
8
7
|
import SharingModal from "./presenter.js";
|
|
9
8
|
function mapStateToProps(state, ownProps) {
|
|
10
9
|
var sharedBanks = state.get('sharedBanks', Map()).filter(function (sharedBank) {
|
|
11
10
|
return sharedBank.get('bankId') === ownProps.bank.id;
|
|
12
11
|
}).toList();
|
|
13
12
|
return {
|
|
14
|
-
subAccountBankSharingEnabled: featureOn('sub_account_bank_sharing'),
|
|
15
13
|
sharedBanks: sharedBanks
|
|
16
14
|
};
|
|
17
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
1
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
2
3
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
6
6
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
@@ -14,14 +14,13 @@ import PropTypes from 'prop-types';
|
|
|
14
14
|
import { List, Map } from 'immutable';
|
|
15
15
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
16
16
|
import partial from 'lodash/partial';
|
|
17
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, withStyleOverrides } from '@instructure/quiz-common';
|
|
17
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, CAN_EDIT, READ_ONLY, REMOVED_ACCESS, SHARED_WITH_USER, SHARED_WITH_COURSE, SHARED_WITH_ACCOUNT, SimpleSelect, withStyleOverrides } from '@instructure/quiz-common';
|
|
18
18
|
import { Heading } from '@instructure/ui-heading';
|
|
19
19
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
20
20
|
import { View } from '@instructure/ui-view';
|
|
21
21
|
import { Grid } from '@instructure/ui-grid';
|
|
22
22
|
import { Tabs } from '@instructure/ui-tabs';
|
|
23
23
|
import { Text } from '@instructure/ui-text';
|
|
24
|
-
import { SimpleSelect } from '@instructure/ui-simple-select';
|
|
25
24
|
import { jsx } from '@instructure/emotion';
|
|
26
25
|
import elementsForSelectors from "../../../common/util/ElementsForSelectors.js";
|
|
27
26
|
import CustomPropTypes from "../../../common/util/CustomPropTypes.js";
|
|
@@ -177,27 +176,7 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
177
176
|
return originalEntity.get('permission', CAN_EDIT);
|
|
178
177
|
};
|
|
179
178
|
_this.handleEntityRemove = function (entity, undoRemove) {
|
|
180
|
-
|
|
181
|
-
_this.confirmPermissionChange(entity, REMOVED_ACCESS);
|
|
182
|
-
} else {
|
|
183
|
-
var permission = undoRemove ? _this.originalPermissionForEntity(entity) : REMOVED_ACCESS;
|
|
184
|
-
_this.setState(function (prevState) {
|
|
185
|
-
var sharesIndex = prevState.shares.findIndex(function (e) {
|
|
186
|
-
return e.get('id') == entity.get('id');
|
|
187
|
-
});
|
|
188
|
-
var newEntitiesIndex = prevState.newEntities.findIndex(function (e) {
|
|
189
|
-
return e.get('id') == entity.get('id');
|
|
190
|
-
});
|
|
191
|
-
var removedNewEntity = newEntitiesIndex > -1;
|
|
192
|
-
var newShares = removedNewEntity ? prevState.shares.delete(sharesIndex) : prevState.shares.setIn([sharesIndex, 'permission'], permission);
|
|
193
|
-
var newEntities = removedNewEntity ? prevState.newEntities.delete(newEntitiesIndex) : prevState.newEntities;
|
|
194
|
-
return {
|
|
195
|
-
shares: newShares,
|
|
196
|
-
newEntities: newEntities,
|
|
197
|
-
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, _defineProperty({}, entity.get('id'), permission))
|
|
198
|
-
};
|
|
199
|
-
}, _this.updateEntitiesCount);
|
|
200
|
-
}
|
|
179
|
+
_this.confirmPermissionChange(entity, REMOVED_ACCESS);
|
|
201
180
|
};
|
|
202
181
|
_this.handleSearchPermissionChange = function (e, _ref4) {
|
|
203
182
|
var value = _ref4.value;
|
|
@@ -224,21 +203,13 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
224
203
|
permission: _this.state.searchPermission
|
|
225
204
|
});
|
|
226
205
|
}));
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
});
|
|
235
|
-
} else {
|
|
236
|
-
_this.setState({
|
|
237
|
-
searchSelection: [],
|
|
238
|
-
shares: newEntities.concat(_this.state.shares),
|
|
239
|
-
newEntities: newEntities.concat(_this.state.newEntities)
|
|
240
|
-
}, _this.updateEntitiesCount);
|
|
241
|
-
}
|
|
206
|
+
newEntities.forEach(function (entity) {
|
|
207
|
+
_this.props.onShare(entity.toJS());
|
|
208
|
+
_this.props.shareBank(_this.sharedBankForEntity(entity), _this.props.getUserInfo);
|
|
209
|
+
});
|
|
210
|
+
_this.setState({
|
|
211
|
+
searchSelection: []
|
|
212
|
+
});
|
|
242
213
|
};
|
|
243
214
|
_this.updatePermission = /*#__PURE__*/function () {
|
|
244
215
|
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(entity, permission) {
|
|
@@ -283,19 +254,7 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
283
254
|
});
|
|
284
255
|
};
|
|
285
256
|
_this.handleEntityPermissionChange = function (entity, permission) {
|
|
286
|
-
|
|
287
|
-
_this.confirmPermissionChange(entity, permission);
|
|
288
|
-
} else {
|
|
289
|
-
_this.setState(function (prevState) {
|
|
290
|
-
var index = prevState.shares.findIndex(function (share) {
|
|
291
|
-
return share.get('id') === entity.get('id');
|
|
292
|
-
});
|
|
293
|
-
return {
|
|
294
|
-
shares: prevState.shares.setIn([index, 'permission'], permission),
|
|
295
|
-
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, _defineProperty({}, entity.get('id'), permission))
|
|
296
|
-
};
|
|
297
|
-
});
|
|
298
|
-
}
|
|
257
|
+
_this.confirmPermissionChange(entity, permission);
|
|
299
258
|
};
|
|
300
259
|
_this.toggleAccountShare = function (event) {
|
|
301
260
|
_this.setState(function (prevState) {
|
|
@@ -384,7 +343,7 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
384
343
|
}, {
|
|
385
344
|
key: "componentDidUpdate",
|
|
386
345
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
387
|
-
if (this.
|
|
346
|
+
if (this.state.accountPermission !== prevState.accountPermission && this.state.accountPermission !== this.props.bank.accountPermission) {
|
|
388
347
|
var updatedBank = this.props.bank.set('accountPermission', this.state.accountPermission);
|
|
389
348
|
this.props.updateBank(updatedBank, false);
|
|
390
349
|
}
|
|
@@ -503,37 +462,20 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
503
462
|
var existingAccounts = existingShares.filter(function (s) {
|
|
504
463
|
return s.get('entityType') === SHARED_WITH_ACCOUNT;
|
|
505
464
|
});
|
|
506
|
-
|
|
507
|
-
return this.renderSubaccountSharingEnabledEntities(existingPeople, existingCourses, existingAccounts);
|
|
508
|
-
}
|
|
509
|
-
return this.renderOriginalDesignEntities(existingPeople, existingCourses);
|
|
465
|
+
return this.renderSubaccountSharingEnabledEntities(existingPeople, existingCourses, existingAccounts);
|
|
510
466
|
}
|
|
511
467
|
}, {
|
|
512
468
|
key: "renderFooter",
|
|
513
469
|
value: function renderFooter() {
|
|
514
|
-
|
|
515
|
-
return jsx(Button, {
|
|
516
|
-
color: "primary",
|
|
517
|
-
margin: "0 x-small 0 0",
|
|
518
|
-
onClick: this.handleDismiss
|
|
519
|
-
}, t('Close'));
|
|
520
|
-
}
|
|
521
|
-
return jsx(React.Fragment, null, jsx(Button, {
|
|
522
|
-
"data-automation": "sdk-shared-bank-cancel-button",
|
|
523
|
-
color: "primary-inverse",
|
|
524
|
-
onClick: this.handleDismiss,
|
|
525
|
-
margin: "0 x-small 0 0"
|
|
526
|
-
}, t('Cancel')), jsx(Button, {
|
|
527
|
-
"data-automation": "sdk-shared-bank-done-button",
|
|
470
|
+
return jsx(Button, {
|
|
528
471
|
color: "primary",
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}, t('
|
|
472
|
+
margin: "0 x-small 0 0",
|
|
473
|
+
onClick: this.handleDismiss
|
|
474
|
+
}, t('Close'));
|
|
532
475
|
}
|
|
533
476
|
}, {
|
|
534
477
|
key: "render",
|
|
535
478
|
value: function render() {
|
|
536
|
-
var subAccountBankSharingEnabled = this.props.subAccountBankSharingEnabled;
|
|
537
479
|
return jsx(Modal, {
|
|
538
480
|
open: this.props.isOpen,
|
|
539
481
|
onDismiss: this.handleDismiss,
|
|
@@ -546,7 +488,7 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
546
488
|
placement: "end",
|
|
547
489
|
offset: "medium",
|
|
548
490
|
screenReaderLabel: t('Close')
|
|
549
|
-
})), jsx(ModalBody, null,
|
|
491
|
+
})), jsx(ModalBody, null, this.state.shares.size >= 0 ? this.renderEntitiesSection() : _ref7), jsx(ModalFooter, null, this.renderFooter()));
|
|
550
492
|
}
|
|
551
493
|
}]);
|
|
552
494
|
SharingModalPresenter.displayName = "SharingModalPresenter";
|
|
@@ -581,7 +523,6 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
581
523
|
removeSharedBank: PropTypes.func.isRequired,
|
|
582
524
|
shareBank: PropTypes.func.isRequired,
|
|
583
525
|
sharedBanks: ImmutablePropTypes.list,
|
|
584
|
-
subAccountBankSharingEnabled: PropTypes.bool,
|
|
585
526
|
updateBank: PropTypes.func.isRequired,
|
|
586
527
|
updateSharedBankPermission: PropTypes.func.isRequired,
|
|
587
528
|
updateSharedCount: PropTypes.func,
|
|
@@ -596,7 +537,6 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
596
537
|
onDismiss: noop,
|
|
597
538
|
onShare: function onShare() {},
|
|
598
539
|
sharedBanks: List(),
|
|
599
|
-
subAccountBankSharingEnabled: false,
|
|
600
540
|
updateSharedCount: Function.prototype
|
|
601
541
|
}, _SharingModalPresenter)) || _class);
|
|
602
542
|
export default SharingModalPresenter;
|
|
@@ -10,9 +10,9 @@ import { Component } from 'react';
|
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
12
12
|
import partial from 'lodash/partial';
|
|
13
|
+
import { Text } from '@instructure/ui-text';
|
|
13
14
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
14
15
|
import { CondensedButton } from '@instructure/ui-buttons';
|
|
15
|
-
import { TextInput } from '@instructure/ui-text-input';
|
|
16
16
|
import { jsx, Global } from '@instructure/emotion';
|
|
17
17
|
import { FillBlankInteractionType } from '@instructure/quiz-interactions';
|
|
18
18
|
import { IconBankLine } from '@instructure/ui-icons';
|
|
@@ -21,9 +21,10 @@ 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, withStyleOverrides } from '@instructure/quiz-common';
|
|
24
|
+
import { DELETED_QUIZ_ENTRY, API_INPUT_VALIDATION_ERROR, BUILD_TRAY_OPEN, Flex, TextInput, withStyleOverrides } from '@instructure/quiz-common';
|
|
25
25
|
import generateStyle from "./styles.js";
|
|
26
26
|
import generateComponentTheme from "./theme.js";
|
|
27
|
+
import { View } from '@instructure/ui-view';
|
|
27
28
|
var _ref2 = jsx(IconBankLine, null);
|
|
28
29
|
var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_QuizEntryHeader = /*#__PURE__*/function (_Component) {
|
|
29
30
|
_inherits(QuizEntryHeader, _Component);
|
|
@@ -182,16 +183,19 @@ var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
182
183
|
}, {
|
|
183
184
|
key: "renderName",
|
|
184
185
|
value: function renderName() {
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
var isBank = this.props.quizEntry.isBank && this.props.newActiveBank;
|
|
187
|
+
var dataAutomation = 'sdk-quiz-entry-interaction-type';
|
|
188
|
+
if (!isBank) {
|
|
189
|
+
return jsx(Text, {
|
|
187
190
|
size: "small",
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
191
|
+
weight: "normal",
|
|
192
|
+
"data-automation": dataAutomation
|
|
191
193
|
}, this.props.name);
|
|
192
194
|
}
|
|
193
|
-
return jsx(
|
|
194
|
-
|
|
195
|
+
return jsx(CondensedButton, {
|
|
196
|
+
size: "small",
|
|
197
|
+
margin: "0 0 0 x-small",
|
|
198
|
+
onClick: this.handleBankClick,
|
|
195
199
|
"data-automation": "sdk-quiz-entry-interaction-type"
|
|
196
200
|
}, this.props.name);
|
|
197
201
|
}
|
|
@@ -211,20 +215,22 @@ var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
211
215
|
questionNumber: displayPosition,
|
|
212
216
|
interactionType: entry.getInteractionType().name
|
|
213
217
|
});
|
|
214
|
-
return jsx(
|
|
215
|
-
css: this.props.styles.titleHolder
|
|
216
|
-
}, jsx("span", {
|
|
217
|
-
css: this.props.styles.titleInput
|
|
218
|
-
}, jsx(TextInput, {
|
|
218
|
+
return jsx(TextInput, {
|
|
219
219
|
ref: this.storeTitleRef,
|
|
220
|
-
renderLabel: jsx(
|
|
220
|
+
renderLabel: jsx(Flex, {
|
|
221
|
+
direction: "column",
|
|
222
|
+
gap: "small"
|
|
223
|
+
}, jsx(Flex.Item, {
|
|
224
|
+
"aria-hidden": true
|
|
225
|
+
}, this.renderName()), jsx(Flex.Item, {
|
|
226
|
+
"aria-hidden": true
|
|
227
|
+
}, t('Question Title')), jsx(ScreenReaderContent, null, titleLabelText)),
|
|
221
228
|
type: "text",
|
|
222
|
-
placeholder: t('Question Title'),
|
|
223
229
|
onChange: this.handleTitleChange,
|
|
224
230
|
value: workingEntry.title || '',
|
|
225
231
|
interaction: disabled ? 'disabled' : 'enabled',
|
|
226
232
|
"data-automation": "sdk-question-title-textinput"
|
|
227
|
-
})
|
|
233
|
+
});
|
|
228
234
|
}
|
|
229
235
|
}, {
|
|
230
236
|
key: "renderLeftHeader",
|
|
@@ -233,14 +239,16 @@ var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
233
239
|
position: this.props.displayPosition
|
|
234
240
|
});
|
|
235
241
|
var position = this.props.disabledForRegrade ? this.props.displayPosition : this.props.quizEntry.positionToDisplay(this.props.displayPosition);
|
|
236
|
-
return jsx(
|
|
242
|
+
return jsx(Flex, {
|
|
237
243
|
className: "leftHeader",
|
|
238
|
-
|
|
244
|
+
direction: "row",
|
|
245
|
+
justifyItems: "center",
|
|
246
|
+
"data-automation": "sdk-quiz-entry-left-header"
|
|
239
247
|
}, jsx(PositionBox, {
|
|
240
248
|
position: position,
|
|
241
249
|
headingText: positionText,
|
|
242
250
|
"data-automation": "sdk-quiz-entry-positionbox"
|
|
243
|
-
}), this.renderBankedContent(),
|
|
251
|
+
}), this.renderBankedContent(), jsx("div", {
|
|
244
252
|
css: this.props.styles.dividingLine
|
|
245
253
|
}), this.renderTitleHolder());
|
|
246
254
|
}
|
|
@@ -260,12 +268,21 @@ var QuizEntryHeader = (_dec = withStyleOverrides(generateStyle, generateComponen
|
|
|
260
268
|
shouldDisableDeleteButton: this.props.disabledForRegrade,
|
|
261
269
|
shouldRenderEdit: false
|
|
262
270
|
};
|
|
263
|
-
return jsx(
|
|
271
|
+
return jsx(View, {
|
|
272
|
+
as: "div",
|
|
264
273
|
className: "header",
|
|
265
|
-
|
|
274
|
+
background: "secondary",
|
|
275
|
+
padding: "small"
|
|
266
276
|
}, jsx(Global, {
|
|
267
277
|
styles: this.props.styles.globalStyles
|
|
268
|
-
}),
|
|
278
|
+
}), jsx(Flex, {
|
|
279
|
+
className: "header",
|
|
280
|
+
direction: "row",
|
|
281
|
+
gap: "small"
|
|
282
|
+
}, jsx(Flex.Item, {
|
|
283
|
+
shouldShrink: false,
|
|
284
|
+
shouldGrow: true
|
|
285
|
+
}, this.renderLeftHeader()), jsx(Flex.Item, null, jsx(ActionButtons, actionButtonProps))));
|
|
269
286
|
}
|
|
270
287
|
}]);
|
|
271
288
|
QuizEntryHeader.displayName = "QuizEntryHeader";
|
|
@@ -8,39 +8,11 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
8
8
|
},
|
|
9
9
|
header: {
|
|
10
10
|
backgroundColor: componentTheme.headerBackgroundColor,
|
|
11
|
-
color: componentTheme.headerColor
|
|
12
|
-
padding: componentTheme.headerPadding,
|
|
13
|
-
display: 'flex',
|
|
14
|
-
justifyContent: 'space-between',
|
|
15
|
-
verticalAlign: 'middle',
|
|
16
|
-
alignItems: 'center'
|
|
17
|
-
},
|
|
18
|
-
leftHeader: {
|
|
19
|
-
flex: '8 0 0',
|
|
20
|
-
display: 'inline-flex',
|
|
21
|
-
flexWrap: 'nowrap',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
/* fix for ie11 */
|
|
24
|
-
width: '100%'
|
|
25
|
-
},
|
|
26
|
-
interactionType: {
|
|
27
|
-
fontSize: componentTheme.interactionTypeFontSize,
|
|
28
|
-
marginLeft: componentTheme.interactionTypeLeftMargin,
|
|
29
|
-
marginRight: componentTheme.interactionTypeRightMargin
|
|
11
|
+
color: componentTheme.headerColor
|
|
30
12
|
},
|
|
31
13
|
dividingLine: {
|
|
32
14
|
width: '0',
|
|
33
15
|
borderLeft: componentTheme.dividingLineLeftBorder
|
|
34
|
-
},
|
|
35
|
-
titleHolder: {
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flex: '1 1 auto'
|
|
38
|
-
},
|
|
39
|
-
titleInput: {
|
|
40
|
-
flex: '1 1 auto',
|
|
41
|
-
fontSize: componentTheme.titleInputFontSize,
|
|
42
|
-
whiteSpace: 'nowrap',
|
|
43
|
-
textOverflow: 'ellipsis'
|
|
44
16
|
}
|
|
45
17
|
};
|
|
46
18
|
};
|
|
@@ -5,11 +5,7 @@ var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
|
5
5
|
return {
|
|
6
6
|
headerBackgroundColor: colors.porcelain,
|
|
7
7
|
headerColor: colors.oxford,
|
|
8
|
-
headerPadding: "".concat(spacing.xSmall, " ").concat(spacing.small)
|
|
9
|
-
interactionTypeFontSize: typography.fontSizeSmall,
|
|
10
|
-
interactionTypeLeftMargin: spacing.xSmall,
|
|
11
|
-
interactionTypeRightMargin: spacing.xSmall,
|
|
12
|
-
titleInputFontSize: typography.fontSizeMedium
|
|
8
|
+
headerPadding: "".concat(spacing.xSmall, " ").concat(spacing.small)
|
|
13
9
|
};
|
|
14
10
|
};
|
|
15
11
|
export default generateComponentTheme;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AccessCodeTextInput } from "./index.js";
|
|
3
|
+
export default {
|
|
4
|
+
title: AccessCodeTextInput.name
|
|
5
|
+
};
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(AccessCodeTextInput, {
|
|
7
|
+
value: "Is it secret? Is it safe?"
|
|
8
|
+
});
|
|
9
|
+
export var whenRendered = function whenRendered() {
|
|
10
|
+
return _ref;
|
|
11
|
+
};
|