@pie-lib/text-select 1.11.2-next.5 → 1.11.2-next.8

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/lib/legend.js CHANGED
@@ -17,8 +17,6 @@ var _Close = _interopRequireDefault(require("@material-ui/icons/Close"));
17
17
 
18
18
  var _Remove = _interopRequireDefault(require("@material-ui/icons/Remove"));
19
19
 
20
- var _core = require("@material-ui/core");
21
-
22
20
  var _renderUi = require("@pie-lib/render-ui");
23
21
 
24
22
  var Legend = (0, _styles.withStyles)(function (theme) {
@@ -84,9 +82,7 @@ var Legend = (0, _styles.withStyles)(function (theme) {
84
82
  className: icon.className,
85
83
  width: '19px',
86
84
  height: '19px'
87
- }), /*#__PURE__*/_react["default"].createElement(_core.Typography, {
88
- variant: 'subtitle1'
89
- }, icon.label));
85
+ }), /*#__PURE__*/_react["default"].createElement("span", null, icon.label));
90
86
  }));
91
87
  });
92
88
  exports.Legend = Legend;
package/lib/legend.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/legend.js"],"names":["Legend","theme","flexContainer","display","flexDirection","gap","spacing","unit","borderBottom","borderTop","paddingBottom","paddingTop","marginBottom","container","alignItems","correct","fontSize","color","backgroundColor","correctSecondary","border","incorrect","missing","incorrectSecondary","classes","icons","iconName","Check","label","className","Remove","Close","map","icon","index","Icon"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,IAAMA,MAAM,GAAG,wBAAW,UAACC,KAAD;AAAA,SAAY;AAC3CC,IAAAA,aAAa,EAAE;AACbC,MAAAA,OAAO,EAAE,MADI;AAEbC,MAAAA,aAAa,EAAE,KAFF;AAGbC,MAAAA,GAAG,YAAK,IAAIJ,KAAK,CAACK,OAAN,CAAcC,IAAvB,OAHU;AAIbC,MAAAA,YAAY,EAAE,qBAJD;AAKbC,MAAAA,SAAS,EAAE,qBALE;AAMbC,MAAAA,aAAa,EAAET,KAAK,C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AxE,GADY,EAEZ;AAAEW,IAAAA,QAAQ,EAAEI,kBAAZ;AAAoBF,IAAAA,KAAK,EAAE,6BAA3B;AAA0DC,IAAAA,SAAS,EAAEL,OAAO,CAACF;AAA7E,GAFY,EAGZ;AAAEI,IAAAA,QAAQ,EAAEK,iBAAZ;AAAmBH,IAAAA,KAAK,EAAE,qBAA1B;AAAiDC,IAAAA,SAAS,EAAEL,OAAO,CAACH;AAApE,GAHY,CAAd;AAKA,sBACE;AAAK,IAAA,SAAS,EAAEG,OAAO,CAACtB;AAAxB,KACGuB,KAAK,CAACO,GAAN,CAAU,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC1B,QAAMC,IAAI,GAAGF,IAAI,CAACP,QAAlB;AACA,wBACE;AAAK,MAAA,GAAG,EAAEQ,KAAV;AAAiB,MAAA,SAAS,EAAEV,OAAO,CAACX;AAApC,oBACE,gCAAC,IAAD;AAAM,MAAA,SAAS,EAAEoB,IAAI,CAACJ,SAAtB;AAAiC,MAAA,KAAK,EAAE,MAAxC;AAAgD,MAAA,MAAM,EAAE;AAAxD,MADF,eAEE,gCAAC,gBAAD;AAAY,MAAA,OAAO,EAAE;AAArB,OAAmCI,IAAI,CAACL,KAAxC,CAFF,CADF;AAMD,GARA,CADH,CADF;AAaD,CAtDqB,CAAf","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport Check from '@material-ui/icons/Check';\nimport Close from '@material-ui/icons/Close';\nimport Remove from '@material-ui/icons/Remove';\nimport { Typography } from '@material-ui/core';\nimport { color } from '@pie-lib/render-ui';\n\nexport const Legend = withStyles((theme) => ({\n flexContainer: {\n display: 'flex',\n flexDirection: 'row',\n gap: `${2 * theme.spacing.unit}px`,\n borderBottom: '1px solid lightgrey',\n borderTop: '1px solid lightgrey',\n paddingBottom: theme.spacing.unit,\n paddingTop: theme.spacing.unit,\n marginBottom: theme.spacing.unit,\n },\n container: {\n display: 'flex',\n flexDirection: 'row',\n gap: `${theme.spacing.unit / 2}px`,\n alignItems: 'center',\n },\n correct: {\n fontSize: 'larger',\n color: color.correct(),\n backgroundColor: color.correctSecondary(),\n border: `2px solid ${color.correct()}`,\n },\n incorrect: {\n fontSize: 'larger',\n color: color.missing(),\n backgroundColor: color.incorrectSecondary(),\n border: `2px solid ${color.missing()}`,\n },\n missing: {\n fontSize: 'larger',\n color: color.missing(),\n backgroundColor: color.incorrectSecondary(),\n border: `2px dashed ${color.missing()}`,\n },\n}))(({ classes }) => {\n const icons = [\n { iconName: Check, label: 'Correct answer selected', className: classes.correct },\n { iconName: Remove, label: 'Correct answer not selected', className: classes.missing },\n { iconName: Close, label: 'Incorrect selection', className: classes.incorrect },\n ];\n return (\n <div className={classes.flexContainer}>\n {icons.map((icon, index) => {\n const Icon = icon.iconName;\n return (\n <div key={index} className={classes.container}>\n <Icon className={icon.className} width={'19px'} height={'19px'}></Icon>\n <Typography variant={'subtitle1'}>{icon.label}</Typography>\n </div>\n );\n })}\n </div>\n );\n});\n"],"file":"legend.js"}
1
+ {"version":3,"sources":["../src/legend.js"],"names":["Legend","theme","flexContainer","display","flexDirection","gap","spacing","unit","borderBottom","borderTop","paddingBottom","paddingTop","marginBottom","container","alignItems","correct","fontSize","color","backgroundColor","correctSecondary","border","incorrect","missing","incorrectSecondary","classes","icons","iconName","Check","label","className","Remove","Close","map","icon","index","Icon"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEO,IAAMA,MAAM,GAAG,wBAAW,UAACC,KAAD;AAAA,SAAY;AAC3CC,IAAAA,aAAa,EAAE;AACbC,MAAAA,OAAO,EAAE,MADI;AAEbC,MAAAA,aAAa,EAAE,KAFF;AAGbC,MAAAA,GAAG,YAAK,IAAIJ,KAAK,CAACK,OAAN,CAAcC,IAAvB,OAHU;AAIbC,MAAAA,YAAY,EAAE,qBAJD;AAKbC,MAAAA,SAAS,EAAE,qBALE;AAMbC,MAAAA,aAAa,EAAET,KAAK,CAACK,OAAN,CAAcC,IANhB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,IAAAA,QAAQ,EAAEI,kBAAZ;AAAoBF,IAAAA,KAAK,EAAE,6BAA3B;AAA0DC,IAAAA,SAAS,EAAEL,OAAO,CAACF;AAA7E,GAFY,EAGZ;AAAEI,IAAAA,QAAQ,EAAEK,iBAAZ;AAAmBH,IAAAA,KAAK,EAAE,qBAA1B;AAAiDC,IAAAA,SAAS,EAAEL,OAAO,CAACH;AAApE,GAHY,CAAd;AAKA,sBACE;AAAK,IAAA,SAAS,EAAEG,OAAO,CAACtB;AAAxB,KACGuB,KAAK,CAACO,GAAN,CAAU,UAACC,IAAD,EAAOC,KAAP,EAAiB;AAC1B,QAAMC,IAAI,GAAGF,IAAI,CAACP,QAAlB;AACA,wBACE;AAAK,MAAA,GAAG,EAAEQ,KAAV;AAAiB,MAAA,SAAS,EAAEV,OAAO,CAACX;AAApC,oBACE,gCAAC,IAAD;AAAM,MAAA,SAAS,EAAEoB,IAAI,CAACJ,SAAtB;AAAiC,MAAA,KAAK,EAAE,MAAxC;AAAgD,MAAA,MAAM,EAAE;AAAxD,MADF,eAEE,8CAAOI,IAAI,CAACL,KAAZ,CAFF,CADF;AAMD,GARA,CADH,CADF;AAaD,CAtDqB,CAAf","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport Check from '@material-ui/icons/Check';\nimport Close from '@material-ui/icons/Close';\nimport Remove from '@material-ui/icons/Remove';\nimport { color } from '@pie-lib/render-ui';\n\nexport const Legend = withStyles((theme) => ({\n flexContainer: {\n display: 'flex',\n flexDirection: 'row',\n gap: `${2 * theme.spacing.unit}px`,\n borderBottom: '1px solid lightgrey',\n borderTop: '1px solid lightgrey',\n paddingBottom: theme.spacing.unit,\n paddingTop: theme.spacing.unit,\n marginBottom: theme.spacing.unit,\n },\n container: {\n display: 'flex',\n flexDirection: 'row',\n gap: `${theme.spacing.unit / 2}px`,\n alignItems: 'center',\n },\n correct: {\n fontSize: 'larger',\n color: color.correct(),\n backgroundColor: color.correctSecondary(),\n border: `2px solid ${color.correct()}`,\n },\n incorrect: {\n fontSize: 'larger',\n color: color.missing(),\n backgroundColor: color.incorrectSecondary(),\n border: `2px solid ${color.missing()}`,\n },\n missing: {\n fontSize: 'larger',\n color: color.missing(),\n backgroundColor: color.incorrectSecondary(),\n border: `2px dashed ${color.missing()}`,\n },\n}))(({ classes }) => {\n const icons = [\n { iconName: Check, label: 'Correct answer selected', className: classes.correct },\n { iconName: Remove, label: 'Correct answer not selected', className: classes.missing },\n { iconName: Close, label: 'Incorrect selection', className: classes.incorrect },\n ];\n return (\n <div className={classes.flexContainer}>\n {icons.map((icon, index) => {\n const Icon = icon.iconName;\n return (\n <div key={index} className={classes.container}>\n <Icon className={icon.className} width={'19px'} height={'19px'}></Icon>\n <span>{icon.label}</span>\n </div>\n );\n })}\n </div>\n );\n});\n"],"file":"legend.js"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.11.2-next.5+8ccc5ff8",
6
+ "version": "1.11.2-next.8+ef594a06",
7
7
  "description": "Some react components for text selection",
8
8
  "keywords": [
9
9
  "react",
@@ -38,6 +38,6 @@
38
38
  "@material-ui/core": "^3.8.3",
39
39
  "react": "^16.8.1"
40
40
  },
41
- "gitHead": "8ccc5ff81d23976eb0e96578856f9e05ae4cf8ae",
41
+ "gitHead": "ef594a06941ca754acaef611c7687759e21406bc",
42
42
  "scripts": {}
43
43
  }
package/src/legend.js CHANGED
@@ -3,7 +3,6 @@ import { withStyles } from '@material-ui/core/styles';
3
3
  import Check from '@material-ui/icons/Check';
4
4
  import Close from '@material-ui/icons/Close';
5
5
  import Remove from '@material-ui/icons/Remove';
6
- import { Typography } from '@material-ui/core';
7
6
  import { color } from '@pie-lib/render-ui';
8
7
 
9
8
  export const Legend = withStyles((theme) => ({
@@ -54,7 +53,7 @@ export const Legend = withStyles((theme) => ({
54
53
  return (
55
54
  <div key={index} className={classes.container}>
56
55
  <Icon className={icon.className} width={'19px'} height={'19px'}></Icon>
57
- <Typography variant={'subtitle1'}>{icon.label}</Typography>
56
+ <span>{icon.label}</span>
58
57
  </div>
59
58
  );
60
59
  })}