@pie-lib/charting 5.6.17-next.0 → 5.7.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.7.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.6.16...@pie-lib/charting@5.7.0) (2023-03-27)
7
+
8
+
9
+ ### Features
10
+
11
+ * **charting:** mark up the category name in the student’s response as correct or incorrect with a rectangle ([5746b54](https://github.com/pie-framework/pie-lib/commit/5746b54bdeee204e906af91dca1cb65788d91128))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [5.6.16](https://github.com/pie-framework/pie-lib/compare/@pie-lib/charting@5.6.15...@pie-lib/charting@5.6.16) (2023-03-06)
7
18
 
8
19
 
@@ -15,7 +15,7 @@ var disabled = function disabled() {
15
15
  var _ref;
16
16
 
17
17
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fill';
18
- return _ref = {}, (0, _defineProperty2["default"])(_ref, key, "var(--graph-disabled, ".concat(_renderUi.color.disabled(), ")")), (0, _defineProperty2["default"])(_ref, "pointerEvents", 'none'), _ref;
18
+ return _ref = {}, (0, _defineProperty2["default"])(_ref, key, "var(--graph-disabled, ".concat(_renderUi.color.disabled(), ")")), (0, _defineProperty2["default"])(_ref, "pointerEvents", 'none'), (0, _defineProperty2["default"])(_ref, "border", 'none'), _ref;
19
19
  };
20
20
 
21
21
  exports.disabled = disabled;
@@ -24,7 +24,7 @@ var correct = function correct() {
24
24
  var _ref2;
25
25
 
26
26
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fill';
27
- return _ref2 = {}, (0, _defineProperty2["default"])(_ref2, key, _renderUi.color.correct()), (0, _defineProperty2["default"])(_ref2, "pointerEvents", 'none'), _ref2;
27
+ return _ref2 = {}, (0, _defineProperty2["default"])(_ref2, key, _renderUi.color.correct()), (0, _defineProperty2["default"])(_ref2, "pointerEvents", 'none'), (0, _defineProperty2["default"])(_ref2, "border", "solid 1px ".concat(_renderUi.color.correct())), _ref2;
28
28
  };
29
29
 
30
30
  exports.correct = correct;
@@ -33,7 +33,7 @@ var incorrect = function incorrect() {
33
33
  var _ref3;
34
34
 
35
35
  var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'fill';
36
- return _ref3 = {}, (0, _defineProperty2["default"])(_ref3, key, _renderUi.color.incorrect()), (0, _defineProperty2["default"])(_ref3, "pointerEvents", 'none'), _ref3;
36
+ return _ref3 = {}, (0, _defineProperty2["default"])(_ref3, key, _renderUi.color.incorrect()), (0, _defineProperty2["default"])(_ref3, "pointerEvents", 'none'), (0, _defineProperty2["default"])(_ref3, "border", "solid 1px ".concat(_renderUi.color.incorrect())), _ref3;
37
37
  };
38
38
 
39
39
  exports.incorrect = incorrect;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/styles.js"],"names":["disabled","key","color","correct","incorrect"],"mappings":";;;;;;;;;;;AAAA;;AAEO,IAAMA,QAAQ,GAAG,SAAXA,QAAW;AAAA;;AAAA,MAACC,GAAD,uEAAO,MAAP;AAAA,2DACrBA,GADqB,kCACUC,gBAAMF,QAAN,EADV,iEAEP,MAFO;AAAA,CAAjB;;;;AAKA,IAAMG,OAAO,GAAG,SAAVA,OAAU;AAAA;;AAAA,MAACF,GAAD,uEAAO,MAAP;AAAA,6DACpBA,GADoB,EACdC,gBAAMC,OAAN,EADc,4DAEN,MAFM;AAAA,CAAhB;;;;AAKA,IAAMC,SAAS,GAAG,SAAZA,SAAY;AAAA;;AAAA,MAACH,GAAD,uEAAO,MAAP;AAAA,6DACtBA,GADsB,EAChBC,gBAAME,SAAN,EADgB,4DAER,MAFQ;AAAA,CAAlB","sourcesContent":["import { color } from '@pie-lib/render-ui';\n\nexport const disabled = (key = 'fill') => ({\n [key]: `var(--graph-disabled, ${color.disabled()})`,\n pointerEvents: 'none',\n});\n\nexport const correct = (key = 'fill') => ({\n [key]: color.correct(),\n pointerEvents: 'none',\n});\n\nexport const incorrect = (key = 'fill') => ({\n [key]: color.incorrect(),\n pointerEvents: 'none',\n});\n"],"file":"styles.js"}
1
+ {"version":3,"sources":["../../src/common/styles.js"],"names":["disabled","key","color","correct","incorrect"],"mappings":";;;;;;;;;;;AAAA;;AAEO,IAAMA,QAAQ,GAAG,SAAXA,QAAW;AAAA;;AAAA,MAACC,GAAD,uEAAO,MAAP;AAAA,2DACrBA,GADqB,kCACUC,gBAAMF,QAAN,EADV,iEAEP,MAFO,oDAGd,MAHc;AAAA,CAAjB;;;;AAMA,IAAMG,OAAO,GAAG,SAAVA,OAAU;AAAA;;AAAA,MAACF,GAAD,uEAAO,MAAP;AAAA,6DACpBA,GADoB,EACdC,gBAAMC,OAAN,EADc,4DAEN,MAFM,yEAGAD,gBAAMC,OAAN,EAHA;AAAA,CAAhB;;;;AAMA,IAAMC,SAAS,GAAG,SAAZA,SAAY;AAAA;;AAAA,MAACH,GAAD,uEAAO,MAAP;AAAA,6DACtBA,GADsB,EAChBC,gBAAME,SAAN,EADgB,4DAER,MAFQ,yEAGFF,gBAAME,SAAN,EAHE;AAAA,CAAlB","sourcesContent":["import { color } from '@pie-lib/render-ui';\n\nexport const disabled = (key = 'fill') => ({\n [key]: `var(--graph-disabled, ${color.disabled()})`,\n pointerEvents: 'none',\n border: 'none',\n});\n\nexport const correct = (key = 'fill') => ({\n [key]: color.correct(),\n pointerEvents: 'none',\n border: `solid 1px ${color.correct()}`,\n});\n\nexport const incorrect = (key = 'fill') => ({\n [key]: color.incorrect(),\n pointerEvents: 'none',\n border: `solid 1px ${color.incorrect()}`,\n});\n"],"file":"styles.js"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "5.6.17-next.0+fc6e1d15",
6
+ "version": "5.7.0",
7
7
  "description": "charting",
8
8
  "keywords": [
9
9
  "react",
@@ -43,5 +43,5 @@
43
43
  "peerDependencies": {
44
44
  "react": "^16.8.1"
45
45
  },
46
- "gitHead": "fc6e1d15f626c41ec611aff2ab7ade905456097f"
46
+ "gitHead": "47aadfabcd94d6a6d98b8e8a2f61ae1c8f5f5ec8"
47
47
  }
@@ -3,14 +3,17 @@ import { color } from '@pie-lib/render-ui';
3
3
  export const disabled = (key = 'fill') => ({
4
4
  [key]: `var(--graph-disabled, ${color.disabled()})`,
5
5
  pointerEvents: 'none',
6
+ border: 'none',
6
7
  });
7
8
 
8
9
  export const correct = (key = 'fill') => ({
9
10
  [key]: color.correct(),
10
11
  pointerEvents: 'none',
12
+ border: `solid 1px ${color.correct()}`,
11
13
  });
12
14
 
13
15
  export const incorrect = (key = 'fill') => ({
14
16
  [key]: color.incorrect(),
15
17
  pointerEvents: 'none',
18
+ border: `solid 1px ${color.incorrect()}`,
16
19
  });