@instructure/quiz-core 17.61.0 → 17.61.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.
@@ -20,6 +20,8 @@ var styles = {
20
20
  'details': 'eRzKS_ebWM'
21
21
  };
22
22
  import theme from "./theme.js";
23
+ import { Flex } from '@instructure/ui-flex';
24
+ import t from '@instructure/quiz-i18n/es/format-message';
23
25
  export var ReportCard = (_dec = themeable(theme, styles), _dec(_class = (_temp = _class2 = /*#__PURE__*/function (_Component) {
24
26
  _inherits(ReportCard, _Component);
25
27
 
@@ -40,17 +42,25 @@ export var ReportCard = (_dec = themeable(theme, styles), _dec(_class = (_temp =
40
42
  href = _this$props.href;
41
43
  return /*#__PURE__*/React.createElement(Card, {
42
44
  className: styles.card
43
- }, /*#__PURE__*/React.createElement(Link, {
44
- href: href
45
45
  }, /*#__PURE__*/React.createElement(Text, {
46
46
  size: "medium",
47
47
  weight: "bold"
48
- }, name)), /*#__PURE__*/React.createElement("div", {
48
+ }, name), /*#__PURE__*/React.createElement("div", {
49
49
  className: styles.details
50
50
  }, /*#__PURE__*/React.createElement(Text, {
51
51
  size: "small",
52
52
  color: "secondary"
53
- }, details)));
53
+ }, details)), /*#__PURE__*/React.createElement(Flex, {
54
+ direction: "row",
55
+ justifyItems: "end",
56
+ alignItems: "end",
57
+ height: "100%"
58
+ }, /*#__PURE__*/React.createElement(Link, {
59
+ href: href
60
+ }, /*#__PURE__*/React.createElement(Text, {
61
+ size: "small",
62
+ "data-automation": name
63
+ }, t('View Report')))));
54
64
  }
55
65
  }]);
56
66
 
@@ -31,6 +31,10 @@ var _index = _interopRequireDefault(require("../../../../common/components/share
31
31
 
32
32
  var _theme = _interopRequireDefault(require("./theme.js"));
33
33
 
34
+ var _uiFlex = require("@instructure/ui-flex");
35
+
36
+ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
37
+
34
38
  var _dec, _class, _class2, _temp;
35
39
 
36
40
  var styles = {
@@ -60,17 +64,25 @@ var ReportCard = (_dec = (0, _uiThemeable.themeable)(_theme.default, styles), _d
60
64
  href = _this$props.href;
61
65
  return /*#__PURE__*/_react.default.createElement(_index.default, {
62
66
  className: styles.card
63
- }, /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
64
- href: href
65
67
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
66
68
  size: "medium",
67
69
  weight: "bold"
68
- }, name)), /*#__PURE__*/_react.default.createElement("div", {
70
+ }, name), /*#__PURE__*/_react.default.createElement("div", {
69
71
  className: styles.details
70
72
  }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
71
73
  size: "small",
72
74
  color: "secondary"
73
- }, details)));
75
+ }, details)), /*#__PURE__*/_react.default.createElement(_uiFlex.Flex, {
76
+ direction: "row",
77
+ justifyItems: "end",
78
+ alignItems: "end",
79
+ height: "100%"
80
+ }, /*#__PURE__*/_react.default.createElement(_uiLink.Link, {
81
+ href: href
82
+ }, /*#__PURE__*/_react.default.createElement(_uiText.Text, {
83
+ size: "small",
84
+ "data-automation": name
85
+ }, (0, _formatMessage.default)('View Report')))));
74
86
  }
75
87
  }]);
76
88
  ReportCard.displayName = "ReportCard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/quiz-core",
3
- "version": "17.61.0",
3
+ "version": "17.61.1-rc.0+85ca56d8f",
4
4
  "license": "MIT",
5
5
  "description": "The Quiz React SDK by Instructure Inc.",
6
6
  "author": "Instructure, Inc. Engineering and Product Design",
@@ -41,11 +41,11 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@instructure/outcomes-ui": "^2.1.8",
44
- "@instructure/quiz-common": "^17.61.0",
45
- "@instructure/quiz-i18n": "^17.61.0",
46
- "@instructure/quiz-interactions": "^17.61.0",
47
- "@instructure/quiz-number-input": "^17.61.0",
48
- "@instructure/quiz-rce": "^17.61.0",
44
+ "@instructure/quiz-common": "17.61.1-rc.0+85ca56d8f",
45
+ "@instructure/quiz-i18n": "17.61.1-rc.0+85ca56d8f",
46
+ "@instructure/quiz-interactions": "17.61.1-rc.0+85ca56d8f",
47
+ "@instructure/quiz-number-input": "17.61.1-rc.0+85ca56d8f",
48
+ "@instructure/quiz-rce": "17.61.1-rc.0+85ca56d8f",
49
49
  "@instructure/ui-a11y-content": "^7.20.0",
50
50
  "@instructure/ui-alerts": "^7.20.0",
51
51
  "@instructure/ui-avatar": "^7.20.0",
@@ -106,7 +106,7 @@
106
106
  "eventemitter3": "^3.1.0",
107
107
  "humps": "^2.0.0",
108
108
  "immutable": "^3.8.1",
109
- "instructure-validations": "^17.61.0",
109
+ "instructure-validations": "17.61.1-rc.0+85ca56d8f",
110
110
  "ipaddr.js": "^1.5.4",
111
111
  "isomorphic-fetch": "^2.2.0",
112
112
  "isuuid": "^0.1.0",
@@ -138,7 +138,7 @@
138
138
  "uuid": "^3.2.1"
139
139
  },
140
140
  "devDependencies": {
141
- "@instructure/quiz-scripts": "^17.61.0",
141
+ "@instructure/quiz-scripts": "17.61.0",
142
142
  "@instructure/ui-axe-check": "^7.20.0",
143
143
  "@instructure/ui-babel-preset": "^7.20.0",
144
144
  "@instructure/ui-karma-config": "^7.20.0",
@@ -157,7 +157,7 @@
157
157
  "intl": "^1.2.4",
158
158
  "jquery": "^2.2.3",
159
159
  "most-subject": "^5.3.0",
160
- "quiz-presets": "^17.61.0",
160
+ "quiz-presets": "17.61.1-rc.0+85ca56d8f",
161
161
  "react": "^16.8.6",
162
162
  "react-addons-test-utils": "^15.6.2",
163
163
  "react-dom": "^16.8.6",
@@ -173,5 +173,5 @@
173
173
  "publishConfig": {
174
174
  "access": "public"
175
175
  },
176
- "gitHead": "fab3bffde3be24175a6bab765ea425ae5b0e8d9b"
176
+ "gitHead": "85ca56d8f87774404dcab22d0a5565ceb1caeaaa"
177
177
  }