@instructure/quiz-core 20.9.0 → 20.9.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +16 -22
- package/es/building/components/layout/Sidebar/SidebarItem/styles.js +11 -0
- package/es/building/components/layout/Sidebar/SidebarItem/theme.js +4 -2
- package/es/building/components/layout/Sidebar/Stimulus/presenter.js +17 -23
- package/es/building/components/layout/Sidebar/Stimulus/styles.js +11 -0
- package/es/building/components/layout/Sidebar/Stimulus/theme.js +4 -2
- package/es/building/components/layout/Sidebar/presenter.js +42 -38
- package/es/building/components/layout/Sidebar/styles.js +28 -0
- package/es/building/components/layout/Sidebar/theme.js +4 -2
- package/es/building/components/layout/header/BuildingButtons/presenter.js +33 -39
- package/es/building/components/layout/header/BuildingButtons/styles.js +21 -0
- package/es/building/components/layout/header/BuildingButtons/theme.js +4 -2
- package/es/building/components/resources/ActionButtons/presenter.js +29 -27
- package/es/building/components/resources/ActionButtons/styles.js +33 -0
- package/es/building/components/resources/ActionButtons/theme.js +4 -2
- package/es/building/components/resources/AddToBankOptions/index.js +11 -15
- package/es/building/components/resources/AddToBankOptions/styles.js +11 -0
- package/es/building/components/resources/AddToBankOptions/theme.js +4 -2
- package/es/building/components/resources/DeleteStimulusModal/presenter.js +38 -44
- package/es/building/components/resources/DeleteStimulusModal/styles.js +22 -0
- package/es/building/components/resources/DeleteStimulusModal/theme.js +4 -2
- package/es/building/components/resources/ItemFeedbackModal/presenter.js +23 -28
- package/es/building/components/resources/ItemFeedbackModal/styles.js +14 -0
- package/es/building/components/resources/ItemFeedbackModal/theme.js +4 -2
- package/es/common/components/layout/sidebar/PositionSummary/index.js +17 -25
- package/es/common/components/layout/sidebar/PositionSummary/styles.js +28 -0
- package/es/common/components/layout/sidebar/PositionSummary/theme.js +4 -2
- package/es/common/components/layout/sidebar/Sidebar/index.js +88 -94
- package/es/common/components/layout/sidebar/Sidebar/styles.js +117 -0
- package/es/common/components/layout/sidebar/Sidebar/theme.js +4 -8
- package/es/common/components/layout/sidebar/SidebarItem/presenter.js +52 -52
- package/es/common/components/layout/sidebar/SidebarItem/styles.js +59 -0
- package/es/common/components/layout/sidebar/SidebarItem/theme.js +4 -2
- package/es/common/components/layout/sidebar/Stimulus/presenter.js +39 -36
- package/es/common/components/layout/sidebar/Stimulus/styles.js +33 -0
- package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -2
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +40 -30
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +41 -0
- package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +4 -2
- package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +15 -23
- package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +19 -0
- package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +6 -3
- package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -24
- package/lib/building/components/layout/Sidebar/Stimulus/styles.js +19 -0
- package/lib/building/components/layout/Sidebar/Stimulus/theme.js +6 -3
- package/lib/building/components/layout/Sidebar/presenter.js +40 -41
- package/lib/building/components/layout/Sidebar/styles.js +38 -0
- package/lib/building/components/layout/Sidebar/theme.js +6 -3
- package/lib/building/components/layout/header/BuildingButtons/presenter.js +32 -40
- package/lib/building/components/layout/header/BuildingButtons/styles.js +29 -0
- package/lib/building/components/layout/header/BuildingButtons/theme.js +6 -3
- package/lib/building/components/resources/ActionButtons/presenter.js +28 -30
- package/lib/building/components/resources/ActionButtons/styles.js +44 -0
- package/lib/building/components/resources/ActionButtons/theme.js +6 -3
- package/lib/building/components/resources/AddToBankOptions/index.js +10 -16
- package/lib/building/components/resources/AddToBankOptions/styles.js +19 -0
- package/lib/building/components/resources/AddToBankOptions/theme.js +6 -3
- package/lib/building/components/resources/DeleteStimulusModal/presenter.js +37 -46
- package/lib/building/components/resources/DeleteStimulusModal/styles.js +30 -0
- package/lib/building/components/resources/DeleteStimulusModal/theme.js +6 -3
- package/lib/building/components/resources/ItemFeedbackModal/presenter.js +19 -27
- package/lib/building/components/resources/ItemFeedbackModal/styles.js +22 -0
- package/lib/building/components/resources/ItemFeedbackModal/theme.js +6 -3
- package/lib/common/components/layout/sidebar/PositionSummary/index.js +16 -26
- package/lib/common/components/layout/sidebar/PositionSummary/styles.js +36 -0
- package/lib/common/components/layout/sidebar/PositionSummary/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Sidebar/index.js +85 -97
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +128 -0
- package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -9
- package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +51 -55
- package/lib/common/components/layout/sidebar/SidebarItem/styles.js +69 -0
- package/lib/common/components/layout/sidebar/SidebarItem/theme.js +6 -3
- package/lib/common/components/layout/sidebar/Stimulus/presenter.js +38 -37
- package/lib/common/components/layout/sidebar/Stimulus/styles.js +41 -0
- package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -3
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +40 -33
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +51 -0
- package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +6 -3
- package/package.json +10 -10
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = exports.SidebarItem = void 0;
|
|
11
9
|
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
11
|
|
|
16
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -19,21 +15,19 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
19
15
|
|
|
20
16
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
21
17
|
|
|
22
|
-
var _react =
|
|
18
|
+
var _react = require("react");
|
|
23
19
|
|
|
24
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
21
|
|
|
26
22
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
27
23
|
|
|
28
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
29
|
-
|
|
30
24
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
31
25
|
|
|
32
26
|
var _uiLink = require("@instructure/ui-link");
|
|
33
27
|
|
|
34
28
|
var _uiFlex = require("@instructure/ui-flex");
|
|
35
29
|
|
|
36
|
-
var
|
|
30
|
+
var _emotion = require("@instructure/emotion");
|
|
37
31
|
|
|
38
32
|
var _index = _interopRequireDefault(require("../PositionSummary/index.js"));
|
|
39
33
|
|
|
@@ -41,28 +35,13 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
41
35
|
|
|
42
36
|
var _quizRce = require("@instructure/quiz-rce");
|
|
43
37
|
|
|
38
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
39
|
+
|
|
44
40
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
45
41
|
|
|
46
42
|
var _dec, _class, _class2, _temp;
|
|
47
43
|
|
|
48
|
-
var
|
|
49
|
-
componentId: 'cwwgG',
|
|
50
|
-
template: function template(theme) {
|
|
51
|
-
return "\n\n.cwwgG_kQJA{border-bottom:".concat(theme.bottomBorderWidth || 'inherit', " solid ").concat(theme.bottomBorderColor || 'inherit', ";border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.borderColor || 'inherit', "}\n\n.cwwgG_kQJA:hover{border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.hoverBorderColor || 'inherit', "}\n\n.cwwgG_cdGL{color:").concat(theme.infoHeaderColor || 'inherit', ";display:flex;font-size:").concat(theme.infoHeaderFontSize || 'inherit', "}\n\n.cwwgG_ecuB{width:60%}\n\n.cwwgG_echV{width:40%}\n\n.cwwgG_doeu{font-size:").concat(theme.numberFontSize || 'inherit', ";font-weight:").concat(theme.numberFontWeight || 'inherit', "}\n\n.cwwgG_doeu,.cwwgG_esVF{color:").concat(theme.darkTextColor || 'inherit', "}\n\n.cwwgG_esVF{font-size:").concat(theme.itemBodyFontSize || 'inherit', ";margin-top:").concat(theme.itemBodyMarginTop || 'inherit', ";overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n\n.cwwgG_fBqo{cursor:pointer;position:relative}\n\n.cwwgG_eQGE{margin:0 ").concat(theme.sidebarClosedMargin || 'inherit', ";padding:").concat(theme.sidebarClosedPadding || 'inherit', " 0;text-align:center}\n\n[dir=ltr] .cwwgG_eQGE,[dir=rtl] .cwwgG_eQGE{text-align:center}\n\n.cwwgG_csre{display:flex;justify-content:flex-end}\n\n.cwwgG_cRFW{border-bottom:none}\n\n.cwwgG_eNNp{padding:").concat(theme.sidebarIsOpenPadding || 'inherit', "}\n\n.cwwgG_eNNp.cwwgG_cRFW{margin-left:10%}\n\n.cwwgG_eNNp .cwwgG_fBqo{font-size:").concat(theme.sidebarIsOpenMainTextFontSize || 'inherit', ";margin-top:").concat(theme.mainTextPaddingTop || 'inherit', "}");
|
|
52
|
-
},
|
|
53
|
-
'sidebarItem': 'cwwgG_kQJA',
|
|
54
|
-
'infoHeader': 'cwwgG_cdGL',
|
|
55
|
-
'interactionType': 'cwwgG_ecuB',
|
|
56
|
-
'pointsPossible': 'cwwgG_echV',
|
|
57
|
-
'displayNumber': 'cwwgG_doeu',
|
|
58
|
-
'itemBody': 'cwwgG_esVF',
|
|
59
|
-
'mainText': 'cwwgG_fBqo',
|
|
60
|
-
'sidebarClosed': 'cwwgG_eQGE',
|
|
61
|
-
'pinWrapper': 'cwwgG_csre',
|
|
62
|
-
'inStimulus': 'cwwgG_cRFW',
|
|
63
|
-
'sidebarIsOpen': 'cwwgG_eNNp'
|
|
64
|
-
};
|
|
65
|
-
var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
44
|
+
var SidebarItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
66
45
|
(0, _inherits2.default)(SidebarItem, _Component);
|
|
67
46
|
|
|
68
47
|
var _super = (0, _createSuper2.default)(SidebarItem);
|
|
@@ -96,6 +75,19 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
96
75
|
}
|
|
97
76
|
|
|
98
77
|
(0, _createClass2.default)(SidebarItem, [{
|
|
78
|
+
key: "componentDidMount",
|
|
79
|
+
value: function componentDidMount() {
|
|
80
|
+
this.props.makeStyles();
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
key: "componentDidUpdate",
|
|
84
|
+
value: function componentDidUpdate() {
|
|
85
|
+
this.props.makeStyles();
|
|
86
|
+
} // ============
|
|
87
|
+
// ACTIONS
|
|
88
|
+
// ============
|
|
89
|
+
|
|
90
|
+
}, {
|
|
99
91
|
key: "getPointsText",
|
|
100
92
|
// ============
|
|
101
93
|
// HELPERS
|
|
@@ -118,14 +110,14 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
118
110
|
sidebarOpen = _this$props.sidebarOpen;
|
|
119
111
|
|
|
120
112
|
if (!sidebarOpen && quizEntry && quizEntry.sizeOfBank > 1) {
|
|
121
|
-
return
|
|
113
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
122
114
|
firstPosition: position,
|
|
123
115
|
lastPosition: position + quizEntry.sizeOfBank - 1
|
|
124
116
|
});
|
|
125
117
|
}
|
|
126
118
|
|
|
127
|
-
return
|
|
128
|
-
|
|
119
|
+
return (0, _emotion.jsx)("span", {
|
|
120
|
+
css: this.props.styles.displayNumber
|
|
129
121
|
}, displayPosition);
|
|
130
122
|
}
|
|
131
123
|
}, {
|
|
@@ -140,7 +132,7 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
140
132
|
}) : (0, _formatMessage.default)('Navigate to question at position {displayPosition}', {
|
|
141
133
|
displayPosition: displayPosition
|
|
142
134
|
});
|
|
143
|
-
return
|
|
135
|
+
return (0, _emotion.jsx)(_uiLink.Link, {
|
|
144
136
|
href: "#",
|
|
145
137
|
size: "small",
|
|
146
138
|
margin: "0 small",
|
|
@@ -149,16 +141,15 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
149
141
|
onClick: this.scrollToItem,
|
|
150
142
|
"data-automation-item-id": itemId,
|
|
151
143
|
"data-automation": "sdk-sidebar-item-button"
|
|
152
|
-
},
|
|
144
|
+
}, (0, _emotion.jsx)(_uiA11yContent.AccessibleContent, {
|
|
153
145
|
alt: screenReaderContent
|
|
154
146
|
}, this.renderPosition()));
|
|
155
147
|
}
|
|
156
148
|
}, {
|
|
157
149
|
key: "renderClosed",
|
|
158
150
|
value: function renderClosed() {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
className: contentWrapperClasses
|
|
151
|
+
return (0, _emotion.jsx)("div", {
|
|
152
|
+
css: this.props.styles.sidebarItem
|
|
162
153
|
}, this.renderButton());
|
|
163
154
|
}
|
|
164
155
|
}, {
|
|
@@ -167,32 +158,34 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
167
158
|
var _this$props3 = this.props,
|
|
168
159
|
children = _this$props3.children,
|
|
169
160
|
itemName = _this$props3.itemName,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
},
|
|
161
|
+
pointsPossible = _this$props3.pointsPossible,
|
|
162
|
+
styles = _this$props3.styles;
|
|
163
|
+
return (0, _emotion.jsx)("div", {
|
|
164
|
+
className: "sidebarIsOpen",
|
|
165
|
+
css: styles.sidebarItem
|
|
166
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
176
167
|
justifyItems: "space-between"
|
|
177
|
-
},
|
|
168
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, null, this.renderButton()), (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
178
169
|
shouldGrow: true,
|
|
179
170
|
shouldShrink: true,
|
|
180
171
|
onClick: this.scrollToItem,
|
|
181
172
|
tabIndex: "-1"
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
className:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
},
|
|
173
|
+
}, (0, _emotion.jsx)("div", {
|
|
174
|
+
css: this.props.styles.mainText
|
|
175
|
+
}, (0, _emotion.jsx)("div", {
|
|
176
|
+
css: this.props.styles.infoHeader
|
|
177
|
+
}, (0, _emotion.jsx)("div", {
|
|
178
|
+
className: "interactionType",
|
|
179
|
+
css: this.props.styles.interactionType
|
|
180
|
+
}, itemName), (0, _emotion.jsx)("div", {
|
|
181
|
+
className: "pointsPossible",
|
|
182
|
+
css: this.props.styles.pointsPossible
|
|
183
|
+
}, this.getPointsText(pointsPossible || 0))), (0, _emotion.jsx)("div", {
|
|
184
|
+
css: this.props.styles.itemBody
|
|
185
|
+
}, (0, _emotion.jsx)(_quizRce.RichContentRenderer, {
|
|
193
186
|
content: this.props.itemBody
|
|
194
|
-
})))),
|
|
195
|
-
|
|
187
|
+
})))), (0, _emotion.jsx)(_uiFlex.Flex.Item, null, (0, _emotion.jsx)("div", {
|
|
188
|
+
css: this.props.styles.pinWrapper
|
|
196
189
|
}, children))));
|
|
197
190
|
}
|
|
198
191
|
}, {
|
|
@@ -210,6 +203,7 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
210
203
|
itemId: _propTypes.default.string.isRequired,
|
|
211
204
|
itemBody: _propTypes.default.string,
|
|
212
205
|
itemName: _propTypes.default.string.isRequired,
|
|
206
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
213
207
|
inStimulus: _propTypes.default.bool,
|
|
214
208
|
isAnswered: _propTypes.default.bool,
|
|
215
209
|
position: _propTypes.default.number.isRequired,
|
|
@@ -219,7 +213,9 @@ var SidebarItem = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _
|
|
|
219
213
|
// not used on Take
|
|
220
214
|
sidebarOpen: _propTypes.default.bool.isRequired,
|
|
221
215
|
// from connect
|
|
222
|
-
scrollToItem: _propTypes.default.func.isRequired
|
|
216
|
+
scrollToItem: _propTypes.default.func.isRequired,
|
|
217
|
+
styles: _propTypes.default.object,
|
|
218
|
+
makeStyles: _propTypes.default.func
|
|
223
219
|
}, _class2.defaultProps = {
|
|
224
220
|
children: null,
|
|
225
221
|
inStimulus: false,
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
+
|
|
12
|
+
var generateStyle = function generateStyle(componentTheme, props) {
|
|
13
|
+
return {
|
|
14
|
+
sidebarItem: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
15
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.borderColor),
|
|
16
|
+
borderBottom: "".concat(componentTheme.bottomBorderWidth, " solid ").concat(componentTheme.bottomBorderColor),
|
|
17
|
+
'&:hover': {
|
|
18
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
19
|
+
},
|
|
20
|
+
padding: componentTheme.sidebarIsOpenPadding
|
|
21
|
+
}, props.inStimulus && {
|
|
22
|
+
borderBottom: 'none'
|
|
23
|
+
}), props.sidebarOpen && props.inStimulus && {
|
|
24
|
+
marginLeft: '10%'
|
|
25
|
+
}), !props.sidebarOpen && {
|
|
26
|
+
padding: "".concat(componentTheme.sidebarClosedPadding, " 0"),
|
|
27
|
+
margin: "0 ".concat(componentTheme.sidebarClosedMargin),
|
|
28
|
+
textAlign: 'center'
|
|
29
|
+
}),
|
|
30
|
+
infoHeader: {
|
|
31
|
+
fontSize: componentTheme.infoHeaderFontSize,
|
|
32
|
+
display: 'flex',
|
|
33
|
+
color: componentTheme.infoHeaderColor
|
|
34
|
+
},
|
|
35
|
+
interactionType: {
|
|
36
|
+
width: '60%'
|
|
37
|
+
},
|
|
38
|
+
pointsPossible: {
|
|
39
|
+
width: '40%'
|
|
40
|
+
},
|
|
41
|
+
displayNumber: {
|
|
42
|
+
color: componentTheme.darkTextColor,
|
|
43
|
+
fontSize: componentTheme.numberFontSize,
|
|
44
|
+
fontWeight: componentTheme.numberFontWeight
|
|
45
|
+
},
|
|
46
|
+
itemBody: {
|
|
47
|
+
fontSize: componentTheme.itemBodyFontSize,
|
|
48
|
+
color: componentTheme.darkTextColor,
|
|
49
|
+
whiteSpace: 'nowrap',
|
|
50
|
+
textOverflow: 'ellipsis',
|
|
51
|
+
overflow: 'hidden',
|
|
52
|
+
marginTop: componentTheme.itemBodyMarginTop
|
|
53
|
+
},
|
|
54
|
+
mainText: (0, _objectSpread2.default)({
|
|
55
|
+
position: 'relative',
|
|
56
|
+
cursor: 'pointer'
|
|
57
|
+
}, props.sidebarOpen && {
|
|
58
|
+
fontSize: componentTheme.sidebarIsOpenMainTextFontSize,
|
|
59
|
+
marginTop: componentTheme.mainTextPaddingTop
|
|
60
|
+
}),
|
|
61
|
+
pinWrapper: {
|
|
62
|
+
display: 'flex',
|
|
63
|
+
justifyContent: 'flex-end'
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var _default = generateStyle;
|
|
69
|
+
exports.default = _default;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var borders = _ref.borders,
|
|
10
10
|
colors = _ref.colors,
|
|
11
11
|
typography = _ref.typography,
|
|
@@ -30,4 +30,7 @@ function generator(_ref) {
|
|
|
30
30
|
sidebarIsOpenPadding: "".concat(spacing.small, " 0 ").concat(spacing.medium, " 0"),
|
|
31
31
|
sidebarItemLogoFontSize: typography.fontSizeMedium
|
|
32
32
|
};
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var _default = generateComponentTheme;
|
|
36
|
+
exports.default = _default;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -17,7 +15,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
17
15
|
|
|
18
16
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
19
17
|
|
|
20
|
-
var _react =
|
|
18
|
+
var _react = require("react");
|
|
21
19
|
|
|
22
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
23
21
|
|
|
@@ -25,7 +23,7 @@ var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-p
|
|
|
25
23
|
|
|
26
24
|
var _uiIcons = require("@instructure/ui-icons");
|
|
27
25
|
|
|
28
|
-
var
|
|
26
|
+
var _emotion = require("@instructure/emotion");
|
|
29
27
|
|
|
30
28
|
var _uiLink = require("@instructure/ui-link");
|
|
31
29
|
|
|
@@ -39,31 +37,22 @@ var _index2 = _interopRequireDefault(require("./Title/index.js"));
|
|
|
39
37
|
|
|
40
38
|
var _index3 = _interopRequireDefault(require("./Summary/index.js"));
|
|
41
39
|
|
|
40
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
41
|
+
|
|
42
42
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
43
43
|
|
|
44
44
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
45
45
|
|
|
46
46
|
var _dec, _class, _class2, _temp;
|
|
47
47
|
|
|
48
|
-
var styles = {
|
|
49
|
-
componentId: 'cqghd',
|
|
50
|
-
template: function template(theme) {
|
|
51
|
-
return "\n\n.cqghd_kQJA{border-bottom:".concat(theme.sidebarItemBorderWidth || 'inherit', " solid ").concat(theme.sidebarItemBorderColor || 'inherit', "}\n\n.cqghd_cESm{border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.borderColor || 'inherit', ";padding:").concat(theme.sidebarClosedButtonPadding || 'inherit', ";text-align:center}\n\n[dir=ltr] .cqghd_cESm,[dir=rtl] .cqghd_cESm{text-align:center}\n\n.cqghd_cESm:hover{border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.hoverBorderColor || 'inherit', "}\n\n.cqghd_faDl{border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.borderColor || 'inherit', ";padding:").concat(theme.sidebarHeaderPadding || 'inherit', " 0}\n\n.cqghd_faDl:hover{border-right:").concat(theme.hoverBorderWidth || 'inherit', " solid ").concat(theme.hoverBorderColor || 'inherit', "}\n\n.cqghd_bTns{margin-left:5%}\n\n.cqghd_cdGL{color:").concat(theme.sidebarIsOpenInfoHeaderColor || 'inherit', ";font-size:").concat(theme.sidebarIsOpenInfoHeaderFontSize || 'inherit', ";margin-bottom:").concat(theme.sidebarIsOpenInfoHeaderMargin || 'inherit', ";padding-left:").concat(theme.sidebarIsOpenInfoHeaderPadding || 'inherit', "}");
|
|
52
|
-
},
|
|
53
|
-
'sidebarItem': 'cqghd_kQJA',
|
|
54
|
-
'sidebarItemClosedButton': 'cqghd_cESm',
|
|
55
|
-
'stimulusHeader': 'cqghd_faDl',
|
|
56
|
-
'stimulusBody': 'cqghd_bTns',
|
|
57
|
-
'infoHeader': 'cqghd_cdGL'
|
|
58
|
-
};
|
|
59
48
|
var DISPLAY_AS_SUMMARY_LIMIT = 5;
|
|
60
49
|
exports.DISPLAY_AS_SUMMARY_LIMIT = DISPLAY_AS_SUMMARY_LIMIT;
|
|
61
50
|
|
|
62
|
-
var _ref =
|
|
51
|
+
var _ref = (0, _emotion.jsx)(_uiIcons.IconTextLeftLine, {
|
|
63
52
|
color: "primary"
|
|
64
53
|
});
|
|
65
54
|
|
|
66
|
-
var SidebarStimulus = (_dec = (0,
|
|
55
|
+
var SidebarStimulus = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
67
56
|
(0, _inherits2.default)(SidebarStimulus, _Component);
|
|
68
57
|
|
|
69
58
|
var _super = (0, _createSuper2.default)(SidebarStimulus);
|
|
@@ -93,6 +82,16 @@ var SidebarStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
93
82
|
}
|
|
94
83
|
|
|
95
84
|
(0, _createClass2.default)(SidebarStimulus, [{
|
|
85
|
+
key: "componentDidMount",
|
|
86
|
+
value: function componentDidMount() {
|
|
87
|
+
this.props.makeStyles();
|
|
88
|
+
}
|
|
89
|
+
}, {
|
|
90
|
+
key: "componentDidUpdate",
|
|
91
|
+
value: function componentDidUpdate() {
|
|
92
|
+
this.props.makeStyles();
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
96
95
|
key: "renderCollection",
|
|
97
96
|
value: function renderCollection() {
|
|
98
97
|
if (this.props.isDragging) {
|
|
@@ -105,7 +104,7 @@ var SidebarStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
105
104
|
isShowingItems = _this$props.isShowingItems,
|
|
106
105
|
renderSidebarItem = _this$props.renderSidebarItem,
|
|
107
106
|
sidebarOpen = _this$props.sidebarOpen;
|
|
108
|
-
return
|
|
107
|
+
return (0, _emotion.jsx)(_index.default, {
|
|
109
108
|
firstPosition: displayPosition,
|
|
110
109
|
isOver: isOver,
|
|
111
110
|
isShowingItems: isShowingItems,
|
|
@@ -119,23 +118,23 @@ var SidebarStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
119
118
|
key: "renderButton",
|
|
120
119
|
value: function renderButton() {
|
|
121
120
|
var displayPosition = this.props.displayPosition;
|
|
122
|
-
return
|
|
121
|
+
return (0, _emotion.jsx)(_uiLink.Link, {
|
|
123
122
|
href: "#",
|
|
124
123
|
margin: "small",
|
|
125
124
|
forceButtonRole: false,
|
|
126
125
|
onClick: this.scrollToItem,
|
|
127
126
|
renderIcon: _ref
|
|
128
|
-
},
|
|
127
|
+
}, (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Navigate to stimulus at position { displayPosition }', {
|
|
129
128
|
displayPosition: displayPosition
|
|
130
129
|
})));
|
|
131
130
|
}
|
|
132
131
|
}, {
|
|
133
132
|
key: "renderClosed",
|
|
134
133
|
value: function renderClosed() {
|
|
135
|
-
return
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
|
|
134
|
+
return (0, _emotion.jsx)("div", {
|
|
135
|
+
css: this.props.styles.sidebarItem
|
|
136
|
+
}, (0, _emotion.jsx)("div", {
|
|
137
|
+
css: this.props.styles.sidebarItemClosedButton
|
|
139
138
|
}, this.renderButton()), this.renderCollection());
|
|
140
139
|
}
|
|
141
140
|
}, {
|
|
@@ -148,24 +147,24 @@ var SidebarStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
148
147
|
isShowingItems = _this$props2.isShowingItems,
|
|
149
148
|
sidebarOpen = _this$props2.sidebarOpen,
|
|
150
149
|
stimulus = _this$props2.stimulus;
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
}, (0, _formatMessage.default)('Stimulus')),
|
|
158
|
-
|
|
159
|
-
},
|
|
150
|
+
return (0, _emotion.jsx)("div", {
|
|
151
|
+
css: this.props.styles.sidebarItem
|
|
152
|
+
}, (0, _emotion.jsx)("div", {
|
|
153
|
+
css: this.props.styles.stimulusHeader
|
|
154
|
+
}, (0, _emotion.jsx)("div", {
|
|
155
|
+
css: this.props.styles.infoHeader
|
|
156
|
+
}, (0, _formatMessage.default)('Stimulus')), (0, _emotion.jsx)("div", {
|
|
157
|
+
css: this.props.styles.stimulusBody
|
|
158
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex, {
|
|
160
159
|
justifyItems: "space-between"
|
|
161
|
-
},
|
|
160
|
+
}, (0, _emotion.jsx)(_uiFlex.Flex.Item, null, this.renderButton()), (0, _emotion.jsx)(_uiFlex.Flex.Item, {
|
|
162
161
|
shouldGrow: true,
|
|
163
162
|
shouldShrink: true,
|
|
164
163
|
onClick: this.scrollToItem,
|
|
165
164
|
tabIndex: "-1"
|
|
166
|
-
},
|
|
165
|
+
}, (0, _emotion.jsx)(_index2.default, {
|
|
167
166
|
title: stimulus.title
|
|
168
|
-
})),
|
|
167
|
+
})), (0, _emotion.jsx)(_uiFlex.Flex.Item, null, children)), (0, _emotion.jsx)(_index3.default, {
|
|
169
168
|
startPosition: displayPosition,
|
|
170
169
|
isDragging: isDragging,
|
|
171
170
|
isShowingItems: isShowingItems,
|
|
@@ -196,7 +195,9 @@ var SidebarStimulus = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
196
195
|
scrollToItem: _propTypes.default.func.isRequired,
|
|
197
196
|
sidebarOpen: _propTypes.default.bool.isRequired,
|
|
198
197
|
stimulus: _reactImmutableProptypes.default.record.isRequired,
|
|
199
|
-
stimulusParent: _reactImmutableProptypes.default.record.isRequired
|
|
198
|
+
stimulusParent: _reactImmutableProptypes.default.record.isRequired,
|
|
199
|
+
styles: _propTypes.default.object,
|
|
200
|
+
makeStyles: _propTypes.default.func
|
|
200
201
|
}, _class2.defaultProps = {
|
|
201
202
|
children: null,
|
|
202
203
|
isDragging: false,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var generateStyle = function generateStyle(componentTheme) {
|
|
9
|
+
return {
|
|
10
|
+
sidebarItem: {
|
|
11
|
+
borderBottom: "".concat(componentTheme.sidebarItemBorderWidth, " solid ").concat(componentTheme.sidebarItemBorderColor)
|
|
12
|
+
},
|
|
13
|
+
sidebarItemClosedButton: {
|
|
14
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.borderColor),
|
|
15
|
+
padding: componentTheme.sidebarClosedButtonPadding,
|
|
16
|
+
textAlign: 'center',
|
|
17
|
+
'&:hover': {
|
|
18
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
stimulusHeader: {
|
|
22
|
+
padding: "".concat(componentTheme.sidebarHeaderPadding, " 0"),
|
|
23
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.borderColor),
|
|
24
|
+
'&:hover:': {
|
|
25
|
+
borderRight: "".concat(componentTheme.hoverBorderWidth, " solid ").concat(componentTheme.hoverBorderColor)
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
stimulusBody: {
|
|
29
|
+
marginLeft: '5%'
|
|
30
|
+
},
|
|
31
|
+
infoHeader: {
|
|
32
|
+
fontSize: componentTheme.sidebarIsOpenInfoHeaderFontSize,
|
|
33
|
+
color: componentTheme.sidebarIsOpenInfoHeaderColor,
|
|
34
|
+
marginBottom: componentTheme.sidebarIsOpenInfoHeaderMargin,
|
|
35
|
+
paddingLeft: componentTheme.sidebarIsOpenInfoHeaderPadding
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
var _default = generateStyle;
|
|
41
|
+
exports.default = _default;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default =
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
function
|
|
8
|
+
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
9
9
|
var colors = _ref.colors,
|
|
10
10
|
spacing = _ref.spacing,
|
|
11
11
|
borders = _ref.borders,
|
|
@@ -23,4 +23,7 @@ function generator(_ref) {
|
|
|
23
23
|
sidebarIsOpenInfoHeaderMargin: spacing.xSmall,
|
|
24
24
|
sidebarIsOpenInfoHeaderColor: colors.ash
|
|
25
25
|
};
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var _default = generateComponentTheme;
|
|
29
|
+
exports.default = _default;
|
|
@@ -2,15 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = exports.DragAndDropZone = void 0;
|
|
11
9
|
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
15
11
|
|
|
16
12
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -19,42 +15,56 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
19
15
|
|
|
20
16
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
21
17
|
|
|
22
|
-
var _react =
|
|
18
|
+
var _react = require("react");
|
|
23
19
|
|
|
24
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
25
21
|
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
var _uiThemeable = require("@instructure/ui-themeable");
|
|
22
|
+
var _emotion = require("@instructure/emotion");
|
|
29
23
|
|
|
30
24
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
31
25
|
|
|
26
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
27
|
+
|
|
32
28
|
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
33
29
|
|
|
34
30
|
var _dec, _class, _class2, _temp;
|
|
35
31
|
|
|
36
|
-
var
|
|
37
|
-
componentId: 'cSfbM',
|
|
38
|
-
template: function template(theme) {
|
|
39
|
-
return "\n\n.cSfbM_ffKt{background-color:".concat(theme.DnDZoneBackgroundColor || 'inherit', ";border:").concat(theme.DnDZoneBorderWidth || 'inherit', " dashed ").concat(theme.DnDZoneBorderColor || 'inherit', ";display:flex;padding:").concat(theme.DnDZonePadding || 'inherit', "}\n\n.cSfbM_ffKt,.cSfbM_dDZW{justify-content:center;width:100%}\n\n.cSfbM_dDZW{background-color:").concat(theme.sidebarDnDZoneBackgroundColor || 'inherit', ";border:").concat(theme.sidebarDnDZoneBorderWidth || 'inherit', " dashed ").concat(theme.sidebarDnDZoneBorderColor || 'inherit', ";color:").concat(theme.sidebarDnDZoneColor || 'inherit', ";margin:").concat(theme.sidebarDnDZoneMargin || 'inherit', ";padding:").concat(theme.sidebarDnDZonePadding || 'inherit', ";text-align:center}\n\n[dir=ltr] .cSfbM_dDZW,[dir=rtl] .cSfbM_dDZW{text-align:center}\n\n.cSfbM_dDZW.cSfbM_baAw{margin-left:10%;width:90%}\n\n.cSfbM_gasz{display:flex;flex:1 0 100%;justify-content:center;width:100%}\n\n.cSfbM_bBLs{display:none;width:100%}");
|
|
40
|
-
},
|
|
41
|
-
'DnDZone': 'cSfbM_ffKt',
|
|
42
|
-
'sidebarDnDZone': 'cSfbM_dDZW',
|
|
43
|
-
'inSidebarStimulus': 'cSfbM_baAw',
|
|
44
|
-
'wrapper': 'cSfbM_gasz',
|
|
45
|
-
'hide': 'cSfbM_bBLs'
|
|
46
|
-
};
|
|
47
|
-
var DragAndDropZone = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
32
|
+
var DragAndDropZone = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
|
|
48
33
|
(0, _inherits2.default)(DragAndDropZone, _Component);
|
|
49
34
|
|
|
50
35
|
var _super = (0, _createSuper2.default)(DragAndDropZone);
|
|
51
36
|
|
|
52
37
|
function DragAndDropZone() {
|
|
38
|
+
var _this;
|
|
39
|
+
|
|
53
40
|
(0, _classCallCheck2.default)(this, DragAndDropZone);
|
|
54
|
-
|
|
41
|
+
|
|
42
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43
|
+
args[_key] = arguments[_key];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
47
|
+
_this.state = {
|
|
48
|
+
toRender: false
|
|
49
|
+
};
|
|
50
|
+
return _this;
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
(0, _createClass2.default)(DragAndDropZone, [{
|
|
54
|
+
key: "componentDidMount",
|
|
55
|
+
value: function componentDidMount() {
|
|
56
|
+
this.props.makeStyles({
|
|
57
|
+
toRender: this.shouldRender()
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}, {
|
|
61
|
+
key: "componentDidUpdate",
|
|
62
|
+
value: function componentDidUpdate() {
|
|
63
|
+
this.props.makeStyles({
|
|
64
|
+
toRender: this.shouldRender()
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}, {
|
|
58
68
|
key: "shouldRender",
|
|
59
69
|
value: function shouldRender() {
|
|
60
70
|
var _this$props = this.props,
|
|
@@ -89,17 +99,12 @@ var DragAndDropZone = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
89
99
|
}, {
|
|
90
100
|
key: "render",
|
|
91
101
|
value: function render() {
|
|
92
|
-
var
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var wrapper = (0, _classnames3.default)(styles.wrapper, (0, _defineProperty2.default)({}, styles.hide, !this.shouldRender()));
|
|
99
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
100
|
-
className: wrapper
|
|
101
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
-
className: style
|
|
102
|
+
var wrapperClass = !this.shouldRender() ? 'wrapper hide' : 'wrapper';
|
|
103
|
+
return (0, _emotion.jsx)("div", {
|
|
104
|
+
className: wrapperClass,
|
|
105
|
+
css: this.props.styles.wrapper
|
|
106
|
+
}, (0, _emotion.jsx)("div", {
|
|
107
|
+
css: this.props.styles.dropZoneStyle
|
|
103
108
|
}, (0, _formatMessage.default)('Drop Question Here')));
|
|
104
109
|
}
|
|
105
110
|
}]);
|
|
@@ -112,7 +117,9 @@ var DragAndDropZone = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles
|
|
|
112
117
|
inSidebar: _propTypes.default.bool,
|
|
113
118
|
inStimulus: _propTypes.default.bool,
|
|
114
119
|
location: _propTypes.default.oneOf(['above', 'below', 'in']).isRequired,
|
|
115
|
-
sidebarOpen: _propTypes.default.bool
|
|
120
|
+
sidebarOpen: _propTypes.default.bool,
|
|
121
|
+
makeStyles: _propTypes.default.func,
|
|
122
|
+
styles: _propTypes.default.object
|
|
116
123
|
}, _class2.defaultProps = {
|
|
117
124
|
draggingAboveHalf: false,
|
|
118
125
|
draggingOver: false,
|