@instructure/quiz-core 20.4.2-rc.1 → 20.4.2-rc.2

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 (25) hide show
  1. package/es/common/components/resources/quiz/instructions/Instructions.js +17 -18
  2. package/es/common/components/resources/quiz/instructions/styles.js +21 -0
  3. package/es/common/components/resources/quiz/instructions/theme.js +4 -2
  4. package/es/common/components/resources/quiz/title/Title.js +15 -18
  5. package/es/common/components/resources/quiz/title/styles.js +19 -0
  6. package/es/common/components/resources/quiz/title/theme.js +4 -2
  7. package/es/common/components/resources/quizSessionResult/Header/index.js +22 -29
  8. package/es/common/components/resources/quizSessionResult/Header/styles.js +29 -0
  9. package/es/common/components/resources/quizSessionResult/Header/theme.js +4 -2
  10. package/es/common/components/resources/quizSessionResult/Info/index.js +43 -53
  11. package/es/common/components/resources/quizSessionResult/Info/styles.js +61 -0
  12. package/es/common/components/resources/quizSessionResult/Info/theme.js +4 -2
  13. package/lib/common/components/resources/quiz/instructions/Instructions.js +15 -22
  14. package/lib/common/components/resources/quiz/instructions/styles.js +29 -0
  15. package/lib/common/components/resources/quiz/instructions/theme.js +6 -3
  16. package/lib/common/components/resources/quiz/title/Title.js +15 -23
  17. package/lib/common/components/resources/quiz/title/styles.js +27 -0
  18. package/lib/common/components/resources/quiz/title/theme.js +6 -3
  19. package/lib/common/components/resources/quizSessionResult/Header/index.js +21 -31
  20. package/lib/common/components/resources/quizSessionResult/Header/styles.js +37 -0
  21. package/lib/common/components/resources/quizSessionResult/Header/theme.js +6 -3
  22. package/lib/common/components/resources/quizSessionResult/Info/index.js +42 -55
  23. package/lib/common/components/resources/quizSessionResult/Info/styles.js +69 -0
  24. package/lib/common/components/resources/quizSessionResult/Info/theme.js +6 -3
  25. package/package.json +9 -9
@@ -0,0 +1,69 @@
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
+ alertWrapper: {
11
+ display: 'flex',
12
+ flexDirection: 'row',
13
+ alignItems: 'center',
14
+ justifyContent: 'center',
15
+ marginTop: componentTheme.alertWrapperMargin
16
+ },
17
+ alertWidth: {
18
+ flexGrow: 1,
19
+ maxWidth: '33rem,'
20
+ },
21
+ wrapper: {
22
+ padding: 'none',
23
+ margin: 'none',
24
+ display: 'flex',
25
+ alignItems: 'center',
26
+ justifyContent: 'center'
27
+ },
28
+ info: {
29
+ alignSelf: 'center',
30
+ display: 'flex',
31
+ flexWrap: 'wrap',
32
+ alignItems: 'center',
33
+ justifyContent: 'center'
34
+ },
35
+ scoreStats: {
36
+ display: 'flex',
37
+ flexWrap: 'wrap',
38
+ alignItems: 'center',
39
+ justifyContent: 'flex-start',
40
+ flex: '1 1 auto'
41
+ },
42
+ score: {
43
+ display: 'flex',
44
+ alignItems: 'center',
45
+ flex: '1 1 auto',
46
+ margin: componentTheme.scoreMargin,
47
+ height: '150px',
48
+ width: '150px',
49
+
50
+ /*
51
+ progress modal sets a -1 z-index on its content
52
+ and this raises it above the app background
53
+ */
54
+ zIndex: componentTheme.scoreZIndex
55
+ },
56
+ scorePercentage: {
57
+ fontSize: componentTheme.scorePercentageFontSize,
58
+ fontWeight: componentTheme.scorePercentageFontWeight
59
+ },
60
+ infoWrapper: {
61
+ flex: '1 1 auto',
62
+ margin: componentTheme.infoWrapperMargin,
63
+ paddingLeft: componentTheme.inforWrapperPadding
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 = 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
  typography = _ref.typography;
11
11
  return {
@@ -17,4 +17,7 @@ function generator(_ref) {
17
17
  infoWrapperMargin: spacing.small,
18
18
  inforWrapperPadding: spacing.small
19
19
  };
20
- }
20
+ };
21
+
22
+ var _default = generateComponentTheme;
23
+ exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "20.4.2-rc.1+866bb7620",
3
+ "version": "20.4.2-rc.2+c00fb83ef",
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.0.0",
47
- "@instructure/quiz-common": "20.4.2-rc.1+866bb7620",
48
- "@instructure/quiz-i18n": "20.4.2-rc.1+866bb7620",
49
- "@instructure/quiz-interactions": "20.4.2-rc.1+866bb7620",
50
- "@instructure/quiz-number-input": "20.4.2-rc.1+866bb7620",
51
- "@instructure/quiz-rce": "20.4.2-rc.1+866bb7620",
47
+ "@instructure/quiz-common": "20.4.2-rc.2+c00fb83ef",
48
+ "@instructure/quiz-i18n": "20.4.2-rc.2+c00fb83ef",
49
+ "@instructure/quiz-interactions": "20.4.2-rc.2+c00fb83ef",
50
+ "@instructure/quiz-number-input": "20.4.2-rc.2+c00fb83ef",
51
+ "@instructure/quiz-rce": "20.4.2-rc.2+c00fb83ef",
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.4.2-rc.1+866bb7620",
115
+ "instructure-validations": "20.4.2-rc.2+c00fb83ef",
116
116
  "ipaddr.js": "^1.5.4",
117
117
  "isomorphic-fetch": "^2.2.0",
118
118
  "isuuid": "^0.1.0",
@@ -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.4.2-rc.1+866bb7620",
166
+ "quiz-presets": "20.4.2-rc.2+c00fb83ef",
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": "866bb7620e430ba716d2c6ab9400751884366666"
182
+ "gitHead": "c00fb83eff9b7f6ad944293fa4f3ede03786cbb3"
183
183
  }