@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.
Files changed (79) hide show
  1. package/es/building/components/layout/Sidebar/SidebarItem/presenter.js +16 -22
  2. package/es/building/components/layout/Sidebar/SidebarItem/styles.js +11 -0
  3. package/es/building/components/layout/Sidebar/SidebarItem/theme.js +4 -2
  4. package/es/building/components/layout/Sidebar/Stimulus/presenter.js +17 -23
  5. package/es/building/components/layout/Sidebar/Stimulus/styles.js +11 -0
  6. package/es/building/components/layout/Sidebar/Stimulus/theme.js +4 -2
  7. package/es/building/components/layout/Sidebar/presenter.js +42 -38
  8. package/es/building/components/layout/Sidebar/styles.js +28 -0
  9. package/es/building/components/layout/Sidebar/theme.js +4 -2
  10. package/es/building/components/layout/header/BuildingButtons/presenter.js +33 -39
  11. package/es/building/components/layout/header/BuildingButtons/styles.js +21 -0
  12. package/es/building/components/layout/header/BuildingButtons/theme.js +4 -2
  13. package/es/building/components/resources/ActionButtons/presenter.js +29 -27
  14. package/es/building/components/resources/ActionButtons/styles.js +33 -0
  15. package/es/building/components/resources/ActionButtons/theme.js +4 -2
  16. package/es/building/components/resources/AddToBankOptions/index.js +11 -15
  17. package/es/building/components/resources/AddToBankOptions/styles.js +11 -0
  18. package/es/building/components/resources/AddToBankOptions/theme.js +4 -2
  19. package/es/building/components/resources/DeleteStimulusModal/presenter.js +38 -44
  20. package/es/building/components/resources/DeleteStimulusModal/styles.js +22 -0
  21. package/es/building/components/resources/DeleteStimulusModal/theme.js +4 -2
  22. package/es/building/components/resources/ItemFeedbackModal/presenter.js +23 -28
  23. package/es/building/components/resources/ItemFeedbackModal/styles.js +14 -0
  24. package/es/building/components/resources/ItemFeedbackModal/theme.js +4 -2
  25. package/es/common/components/layout/sidebar/PositionSummary/index.js +17 -25
  26. package/es/common/components/layout/sidebar/PositionSummary/styles.js +28 -0
  27. package/es/common/components/layout/sidebar/PositionSummary/theme.js +4 -2
  28. package/es/common/components/layout/sidebar/Sidebar/index.js +88 -94
  29. package/es/common/components/layout/sidebar/Sidebar/styles.js +117 -0
  30. package/es/common/components/layout/sidebar/Sidebar/theme.js +4 -8
  31. package/es/common/components/layout/sidebar/SidebarItem/presenter.js +52 -52
  32. package/es/common/components/layout/sidebar/SidebarItem/styles.js +59 -0
  33. package/es/common/components/layout/sidebar/SidebarItem/theme.js +4 -2
  34. package/es/common/components/layout/sidebar/Stimulus/presenter.js +39 -36
  35. package/es/common/components/layout/sidebar/Stimulus/styles.js +33 -0
  36. package/es/common/components/layout/sidebar/Stimulus/theme.js +4 -2
  37. package/es/common/components/shared/drag_and_drop/DragAndDropZone/index.js +40 -30
  38. package/es/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +41 -0
  39. package/es/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +4 -2
  40. package/lib/building/components/layout/Sidebar/SidebarItem/presenter.js +15 -23
  41. package/lib/building/components/layout/Sidebar/SidebarItem/styles.js +19 -0
  42. package/lib/building/components/layout/Sidebar/SidebarItem/theme.js +6 -3
  43. package/lib/building/components/layout/Sidebar/Stimulus/presenter.js +16 -24
  44. package/lib/building/components/layout/Sidebar/Stimulus/styles.js +19 -0
  45. package/lib/building/components/layout/Sidebar/Stimulus/theme.js +6 -3
  46. package/lib/building/components/layout/Sidebar/presenter.js +40 -41
  47. package/lib/building/components/layout/Sidebar/styles.js +38 -0
  48. package/lib/building/components/layout/Sidebar/theme.js +6 -3
  49. package/lib/building/components/layout/header/BuildingButtons/presenter.js +32 -40
  50. package/lib/building/components/layout/header/BuildingButtons/styles.js +29 -0
  51. package/lib/building/components/layout/header/BuildingButtons/theme.js +6 -3
  52. package/lib/building/components/resources/ActionButtons/presenter.js +28 -30
  53. package/lib/building/components/resources/ActionButtons/styles.js +44 -0
  54. package/lib/building/components/resources/ActionButtons/theme.js +6 -3
  55. package/lib/building/components/resources/AddToBankOptions/index.js +10 -16
  56. package/lib/building/components/resources/AddToBankOptions/styles.js +19 -0
  57. package/lib/building/components/resources/AddToBankOptions/theme.js +6 -3
  58. package/lib/building/components/resources/DeleteStimulusModal/presenter.js +37 -46
  59. package/lib/building/components/resources/DeleteStimulusModal/styles.js +30 -0
  60. package/lib/building/components/resources/DeleteStimulusModal/theme.js +6 -3
  61. package/lib/building/components/resources/ItemFeedbackModal/presenter.js +19 -27
  62. package/lib/building/components/resources/ItemFeedbackModal/styles.js +22 -0
  63. package/lib/building/components/resources/ItemFeedbackModal/theme.js +6 -3
  64. package/lib/common/components/layout/sidebar/PositionSummary/index.js +16 -26
  65. package/lib/common/components/layout/sidebar/PositionSummary/styles.js +36 -0
  66. package/lib/common/components/layout/sidebar/PositionSummary/theme.js +6 -3
  67. package/lib/common/components/layout/sidebar/Sidebar/index.js +85 -97
  68. package/lib/common/components/layout/sidebar/Sidebar/styles.js +128 -0
  69. package/lib/common/components/layout/sidebar/Sidebar/theme.js +5 -9
  70. package/lib/common/components/layout/sidebar/SidebarItem/presenter.js +51 -55
  71. package/lib/common/components/layout/sidebar/SidebarItem/styles.js +69 -0
  72. package/lib/common/components/layout/sidebar/SidebarItem/theme.js +6 -3
  73. package/lib/common/components/layout/sidebar/Stimulus/presenter.js +38 -37
  74. package/lib/common/components/layout/sidebar/Stimulus/styles.js +41 -0
  75. package/lib/common/components/layout/sidebar/Stimulus/theme.js +6 -3
  76. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/index.js +40 -33
  77. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/styles.js +51 -0
  78. package/lib/common/components/shared/drag_and_drop/DragAndDropZone/theme.js +6 -3
  79. package/package.json +10 -10
@@ -0,0 +1,51 @@
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, state) {
13
+ return {
14
+ dropZoneStyle: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, !props.inSidebar && {
15
+ border: "".concat(componentTheme.DnDZoneBorderWidth, " dashed ").concat(componentTheme.DnDZoneBorderColor),
16
+ backgroundColor: componentTheme.DnDZoneBackgroundColor,
17
+ padding: componentTheme.DnDZonePadding,
18
+ display: 'flex',
19
+ justifyContent: 'center',
20
+ width: '100%'
21
+ }), props.inSidebar && {
22
+ border: "".concat(componentTheme.sidebarDnDZoneBorderWidth, " dashed ").concat(componentTheme.sidebarDnDZoneBorderColor),
23
+ backgroundColor: componentTheme.sidebarDnDZoneBackgroundColor,
24
+ padding: componentTheme.sidebarDnDZonePadding,
25
+ margin: componentTheme.sidebarDnDZoneMargin,
26
+ color: componentTheme.sidebarDnDZoneColor,
27
+ justifyContent: 'center',
28
+ textAlign: 'center',
29
+ width: '100%',
30
+ '&.inSidebarStimulus': {
31
+ marginLeft: '10%',
32
+ width: '90%'
33
+ }
34
+ }), props.inSidebar && props.inStimulus && {
35
+ marginLeft: '10%',
36
+ width: '90%'
37
+ }),
38
+ wrapper: (0, _objectSpread2.default)({
39
+ justifyContent: 'center',
40
+ display: 'flex',
41
+ flex: '1 0 100%',
42
+ width: '100%'
43
+ }, !state.toRender && {
44
+ display: 'none',
45
+ width: '100%'
46
+ })
47
+ };
48
+ };
49
+
50
+ var _default = generateStyle;
51
+ exports.default = _default;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = generator;
6
+ exports.default = void 0;
7
7
 
8
- function generator(_ref) {
8
+ var generateComponentTheme = function generateComponentTheme(_ref) {
9
9
  var spacing = _ref.spacing,
10
10
  colors = _ref.colors,
11
11
  borders = _ref.borders;
@@ -22,4 +22,7 @@ function generator(_ref) {
22
22
  sidebarDnDZoneMargin: spacing.xSmall,
23
23
  sidebarDnDZoneColor: colors.licorice
24
24
  };
25
- }
25
+ };
26
+
27
+ var _default = generateComponentTheme;
28
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.9.0",
3
+ "version": "20.9.1-rc.0+d9dc8264c",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -44,11 +44,11 @@
44
44
  "@instructure/emotion": "^8.51.0",
45
45
  "@instructure/grading-utils": "^1.0.0",
46
46
  "@instructure/outcomes-ui": "^3.1.0",
47
- "@instructure/quiz-common": "^20.9.0",
48
- "@instructure/quiz-i18n": "^20.9.0",
49
- "@instructure/quiz-interactions": "^20.9.0",
50
- "@instructure/quiz-number-input": "^20.9.0",
51
- "@instructure/quiz-rce": "^20.9.0",
47
+ "@instructure/quiz-common": "20.9.1-rc.0+d9dc8264c",
48
+ "@instructure/quiz-i18n": "20.9.1-rc.0+d9dc8264c",
49
+ "@instructure/quiz-interactions": "20.9.1-rc.0+d9dc8264c",
50
+ "@instructure/quiz-number-input": "20.9.1-rc.0+d9dc8264c",
51
+ "@instructure/quiz-rce": "20.9.1-rc.0+d9dc8264c",
52
52
  "@instructure/ui-a11y-content": "^8.51.0",
53
53
  "@instructure/ui-alerts": "^8.51.0",
54
54
  "@instructure/ui-avatar": "^8.51.0",
@@ -112,7 +112,7 @@
112
112
  "file-saver": "~2.0.5",
113
113
  "humps": "^2.0.0",
114
114
  "immutable": "^3.8.1",
115
- "instructure-validations": "^20.9.0",
115
+ "instructure-validations": "20.9.1-rc.0+d9dc8264c",
116
116
  "ipaddr.js": "^1.5.4",
117
117
  "isomorphic-fetch": "^2.2.0",
118
118
  "isuuid": "^0.1.0",
@@ -143,7 +143,7 @@
143
143
  "uuid": "^3.2.1"
144
144
  },
145
145
  "devDependencies": {
146
- "@instructure/quiz-scripts": "^20.9.0",
146
+ "@instructure/quiz-scripts": "20.9.0",
147
147
  "@instructure/ui-axe-check": "^8.51.0",
148
148
  "@instructure/ui-babel-preset": "^7.22.1",
149
149
  "@instructure/ui-karma-config": "^7.22.1",
@@ -163,7 +163,7 @@
163
163
  "intl": "^1.2.4",
164
164
  "jquery": "^2.2.3",
165
165
  "most-subject": "^5.3.0",
166
- "quiz-presets": "^20.9.0",
166
+ "quiz-presets": "20.9.1-rc.0+d9dc8264c",
167
167
  "react": "^16.8.6",
168
168
  "react-addons-test-utils": "^15.6.2",
169
169
  "react-dom": "^16.8.6",
@@ -179,5 +179,5 @@
179
179
  "publishConfig": {
180
180
  "access": "public"
181
181
  },
182
- "gitHead": "0666e0a0e9fef538169f02d413e94382709385ce"
182
+ "gitHead": "d9dc8264ca923c12f59f6f2288e9f36f2825e2f2"
183
183
  }