@pie-element/math-templated 3.2.3-next.0 → 3.2.3-next.12

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.
@@ -55,6 +55,8 @@ var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton")
55
55
 
56
56
  var _Delete = _interopRequireDefault(require("@material-ui/icons/Delete"));
57
57
 
58
+ var _renderUi = require("@pie-lib/pie-toolbox/render-ui");
59
+
58
60
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
59
61
 
60
62
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -301,12 +303,14 @@ var Response = /*#__PURE__*/function (_React$Component) {
301
303
  }, cAllowTrailingZeros.enabled && /*#__PURE__*/React.createElement(_FormControlLabel["default"], {
302
304
  label: cAllowTrailingZeros.label,
303
305
  control: /*#__PURE__*/React.createElement(_Checkbox["default"], {
306
+ className: classes.customColor,
304
307
  checked: allowTrailingZeros,
305
308
  onChange: this.onLiteralOptionsChange('allowTrailingZeros')
306
309
  })
307
310
  }), cIgnoreOrder.enabled && /*#__PURE__*/React.createElement(_FormControlLabel["default"], {
308
311
  label: cIgnoreOrder.label,
309
312
  control: /*#__PURE__*/React.createElement(_Checkbox["default"], {
313
+ className: classes.customColor,
310
314
  checked: ignoreOrder,
311
315
  onChange: this.onLiteralOptionsChange('ignoreOrder')
312
316
  })
@@ -440,6 +444,9 @@ var styles = function styles(theme) {
440
444
  display: 'flex',
441
445
  justifyContent: 'space-between',
442
446
  alignItems: 'center'
447
+ },
448
+ customColor: {
449
+ color: "".concat(_renderUi.color.tertiary(), " !important")
443
450
  }
444
451
  };
445
452
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/response.jsx"],"names":["Response","props","name","evt","response","onResponseChange","responseKey","newResponse","target","value","checked","answer","alternateId","alternates","alternateIdCounter","state","setState","showKeypad","openCount","onResponseDone","main","alternatesLength","Object","keys","length","classes","mode","cAllowTrailingZeros","cIgnoreOrder","error","validation","ignoreOrder","allowTrailingZeros","hasAlternates","classNames","editor","responseEditor","mathToolbar","styles","minHeight","keyToDisplay","parseInt","responseContainer","cardContent","titleBar","title","responseBox","selectContainer","select","onChange","flexContainer","enabled","label","onLiteralOptionsChange","inputContainer","onAnswerChange","onFocus","onDone","errorText","map","altIdx","alternateBar","onAlternateAnswerChange","onAlternateFocus","onAlternateDone","removeAlternateButton","onRemoveAlternate","alternateButton","onAddAlternate","React","Component","PropTypes","object","isRequired","defaultResponse","bool","oneOfType","string","number","func","theme","marginBottom","spacing","unit","width","minWidth","border","palette","grey","display","flexDirection","justifyContent","paddingBottom","fontWeight","fontSize","flex","alignItems","maxWidth","height","marginLeft","typography","color","paddingTop","background","padding"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;IAEaA,Q;;;;;AAmBX,oBAAYC,KAAZ,EAAmB;AAAA;;AAAA;AACjB,8BAAMA,KAAN;AADiB,iGA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AA,OAAO,EAAE,MADG;AAEZE,MAAAA,cAAc,EAAE,eAFJ;AAGZK,MAAAA,UAAU,EAAE;AAHA;AA7DW,GAAZ;AAAA,CAAf;;eAoEe,wBAAW1D,MAAX,EAAmBtC,QAAnB,C","sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { InputContainer } from '@pie-lib/pie-toolbox/config-ui';\nimport { MathToolbar } from '@pie-lib/pie-toolbox/math-toolbar';\nimport Card from '@material-ui/core/Card';\nimport CardContent from '@material-ui/core/CardContent';\nimport Button from '@material-ui/core/Button';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport Typography from '@material-ui/core/Typography';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport Select from '@material-ui/core/Select';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport { withStyles } from '@material-ui/core/styles';\nimport IconButton from '@material-ui/core/IconButton';\nimport Delete from '@material-ui/icons/Delete';\n\nexport class Response extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n defaultResponse: PropTypes.bool,\n error: PropTypes.object,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n onResponseChange: PropTypes.func.isRequired,\n onResponseDone: PropTypes.func.isRequired,\n response: PropTypes.object.isRequired,\n cIgnoreOrder: PropTypes.object.isRequired,\n cAllowTrailingZeros: PropTypes.object.isRequired,\n responseKey: PropTypes.number.isRequired,\n };\n\n static defaultProps = {\n defaultResponse: false,\n mode: '8',\n };\n\n constructor(props) {\n super(props);\n\n const { response: { alternates } = {} } = props || {};\n const alternatesLength = Object.keys(alternates || {}).length;\n\n this.state = {\n alternateIdCounter: alternatesLength + 1,\n showKeypad: {\n openCount: 0,\n main: false,\n },\n };\n }\n\n onChange = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.value;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onConfigChanged = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.checked;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onLiteralOptionsChange = (name) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = !response[name];\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAnswerChange = (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.answer = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAlternateAnswerChange = (alternateId) => (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.alternates[alternateId] = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAddAlternate = () => {\n const { response, onResponseChange, responseKey } = this.props;\n const { alternateIdCounter } = this.state;\n const newResponse = { ...response };\n\n if (!newResponse.alternates) {\n newResponse.alternates = {};\n }\n\n newResponse.alternates[alternateIdCounter] = '';\n\n onResponseChange(newResponse, responseKey);\n\n this.setState({\n alternateIdCounter: alternateIdCounter + 1,\n });\n };\n\n onRemoveAlternate = (alternateId) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n delete newResponse.alternates[alternateId];\n\n onResponseChange(newResponse, responseKey);\n\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount : state.showKeypad.openCount - 1,\n },\n }));\n };\n\n onDone = () => {\n const { onResponseDone } = this.props;\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n main: false,\n },\n }));\n\n onResponseDone();\n };\n\n onFocus = () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad.main ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n main: true,\n },\n }));\n };\n\n onAlternateFocus = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n [alternateId]: true,\n },\n }));\n };\n\n onAlternateDone = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n [alternateId]: false,\n },\n }));\n };\n\n render() {\n const { classes, mode, responseKey, response, cAllowTrailingZeros, cIgnoreOrder, error } = this.props;\n const { showKeypad } = this.state;\n const { validation, answer, alternates, ignoreOrder, allowTrailingZeros } = response;\n const hasAlternates = Object.keys(alternates || {}).length > 0;\n const classNames = {\n editor: classes.responseEditor,\n mathToolbar: classes.mathToolbar,\n };\n const styles = {\n minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`,\n };\n // add 1 to index to display R 1 instead of R 0\n const keyToDisplay = `R ${parseInt(responseKey) + 1}`;\n\n return (\n <Card className={classes.responseContainer} style={styles}>\n <CardContent className={classes.cardContent}>\n <div className={classes.titleBar}>\n <Typography className={classes.title} component=\"div\">\n Response for <div className={classes.responseBox}>{keyToDisplay}</div>\n </Typography>\n\n <InputContainer label=\"Validation\" className={classes.selectContainer}>\n <Select className={classes.select} onChange={this.onChange('validation')} value={validation || 'literal'}>\n <MenuItem value=\"literal\">Literal Validation</MenuItem>\n <MenuItem value=\"symbolic\">Symbolic Validation</MenuItem>\n </Select>\n </InputContainer>\n </div>\n\n {validation === 'literal' && (\n <div className={classes.flexContainer}>\n {cAllowTrailingZeros.enabled && (\n <FormControlLabel\n label={cAllowTrailingZeros.label}\n control={\n <Checkbox\n checked={allowTrailingZeros}\n onChange={this.onLiteralOptionsChange('allowTrailingZeros')}\n />\n }\n />\n )}\n\n {cIgnoreOrder.enabled && (\n <FormControlLabel\n label={cIgnoreOrder.label}\n control={<Checkbox checked={ignoreOrder} onChange={this.onLiteralOptionsChange('ignoreOrder')}/>}\n />\n )}\n </div>\n )}\n\n <div className={classes.inputContainer}>\n <InputLabel>Correct Answer</InputLabel>\n <MathToolbar\n keypadMode={mode}\n classNames={classNames}\n controlledKeypad\n showKeypad={showKeypad.main}\n latex={answer || ''}\n onChange={this.onAnswerChange}\n onFocus={this.onFocus}\n onDone={this.onDone}\n error={error && error.answer}\n />\n {error && error.answer ? <div className={classes.errorText}>{error.answer}</div> : null}\n </div>\n\n {hasAlternates &&\n Object.keys(alternates).map((alternateId, altIdx) => (\n <div className={classes.inputContainer} key={alternateId}>\n <InputLabel>\n Alternate\n {Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''}\n </InputLabel>\n <div className={classes.alternateBar}>\n <MathToolbar\n classNames={classNames}\n controlledKeypad\n keypadMode={mode}\n showKeypad={showKeypad[alternateId] || false}\n latex={alternates[alternateId] || ''}\n onChange={this.onAlternateAnswerChange(alternateId)}\n onFocus={this.onAlternateFocus(alternateId)}\n onDone={this.onAlternateDone(alternateId)}\n error={error && error[alternateId]}\n />\n <IconButton\n className={classes.removeAlternateButton}\n onClick={this.onRemoveAlternate(alternateId)}\n >\n <Delete/>\n </IconButton>\n </div>\n {error && error[alternateId] ? <div className={classes.errorText}>{error[alternateId]}</div> : null}\n </div>\n ))}\n\n <Button className={classes.alternateButton} type=\"primary\" onClick={this.onAddAlternate}>\n ADD ALTERNATE\n </Button>\n </CardContent>\n </Card>\n )\n }\n}\n\nconst styles = (theme) => ({\n responseContainer: {\n marginBottom: theme.spacing.unit * 2.5,\n width: '100%',\n minWidth: '548px',\n border: `1px solid ${theme.palette.grey[700]}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n cardContent: {\n paddingBottom: `${theme.spacing.unit * 2}px !important`,\n },\n title: {\n fontWeight: 700,\n fontSize: '1.2rem',\n flex: 3,\n },\n selectContainer: {\n flex: 2,\n },\n inputContainer: {\n marginBottom: theme.spacing.unit * 2,\n },\n titleBar: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n responseEditor: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n minWidth: '500px',\n maxWidth: '900px',\n height: 'auto',\n minHeight: '40px',\n },\n mathToolbar: {\n width: '100%',\n },\n alternateButton: {\n border: `1px solid ${theme.palette.grey['A100']}`,\n },\n removeAlternateButton: {\n marginLeft: theme.spacing.unit,\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n responseBox: {\n background: theme.palette.grey['A100'],\n color: theme.palette.grey['A700'],\n display: 'inline',\n minWidth: '50px',\n padding: '8px',\n border: '1px solid #C0C3CF',\n },\n alternateBar: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }\n});\n\nexport default withStyles(styles)(Response);\n"],"file":"response.js"}
1
+ {"version":3,"sources":["../src/response.jsx"],"names":["Response","props","name","evt","response","onResponseChange","responseKey","newResponse","target","value","checked","answer","alternateId","alternates","alternateIdCounter","state","setState","showKeypad","openCount","onResponseDone","main","alternatesLength","Object","keys","length","classes","mode","cAllowTrailingZeros","cIgnoreOrder","error","validation","ignoreOrder","allowTrailingZeros","hasAlternates","classNames","editor","responseEditor","mathToolbar","styles","minHeight","keyToDisplay","parseInt","responseContainer","cardContent","titleBar","title","responseBox","selectContainer","select","onChange","flexContainer","enabled","label","customColor","onLiteralOptionsChange","inputContainer","onAnswerChange","onFocus","onDone","errorText","map","altIdx","alternateBar","onAlternateAnswerChange","onAlternateFocus","onAlternateDone","removeAlternateButton","onRemoveAlternate","alternateButton","onAddAlternate","React","Component","PropTypes","object","isRequired","defaultResponse","bool","oneOfType","string","number","func","theme","marginBottom","spacing","unit","width","minWidth","border","palette","grey","display","flexDirection","justifyContent","paddingBottom","fontWeight","fontSize","flex","alignItems","maxWidth","height","marginLeft","typography","color","paddingTop","background","padding","tertiary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAC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Ad,CAAmB,MAAnB,CAFI;AAGXC,MAAAA,OAAO,EAAE,QAHE;AAIXJ,MAAAA,QAAQ,EAAE,MAJC;AAKXmB,MAAAA,OAAO,EAAE,KALE;AAMXlB,MAAAA,MAAM,EAAE;AANG,KArDY;AA6DzBzB,IAAAA,YAAY,EAAE;AACZ4B,MAAAA,OAAO,EAAE,MADG;AAEZE,MAAAA,cAAc,EAAE,eAFJ;AAGZK,MAAAA,UAAU,EAAE;AAHA,KA7DW;AAkEzB5C,IAAAA,WAAW,EAAE;AACXiD,MAAAA,KAAK,YAAKA,gBAAMI,QAAN,EAAL;AADM;AAlEY,GAAZ;AAAA,CAAf;;eAuEe,wBAAWpE,MAAX,EAAmBtC,QAAnB,C","sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { InputContainer } from '@pie-lib/pie-toolbox/config-ui';\nimport { MathToolbar } from '@pie-lib/pie-toolbox/math-toolbar';\nimport Card from '@material-ui/core/Card';\nimport CardContent from '@material-ui/core/CardContent';\nimport Button from '@material-ui/core/Button';\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\nimport Typography from '@material-ui/core/Typography';\nimport InputLabel from '@material-ui/core/InputLabel';\nimport Checkbox from '@material-ui/core/Checkbox';\nimport Select from '@material-ui/core/Select';\nimport MenuItem from '@material-ui/core/MenuItem';\nimport { withStyles } from '@material-ui/core/styles';\nimport IconButton from '@material-ui/core/IconButton';\nimport Delete from '@material-ui/icons/Delete';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\n\nexport class Response extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n defaultResponse: PropTypes.bool,\n error: PropTypes.object,\n mode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n onResponseChange: PropTypes.func.isRequired,\n onResponseDone: PropTypes.func.isRequired,\n response: PropTypes.object.isRequired,\n cIgnoreOrder: PropTypes.object.isRequired,\n cAllowTrailingZeros: PropTypes.object.isRequired,\n responseKey: PropTypes.number.isRequired,\n };\n\n static defaultProps = {\n defaultResponse: false,\n mode: '8',\n };\n\n constructor(props) {\n super(props);\n\n const { response: { alternates } = {} } = props || {};\n const alternatesLength = Object.keys(alternates || {}).length;\n\n this.state = {\n alternateIdCounter: alternatesLength + 1,\n showKeypad: {\n openCount: 0,\n main: false,\n },\n };\n }\n\n onChange = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.value;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onConfigChanged = (name) => (evt) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = evt.target.checked;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onLiteralOptionsChange = (name) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse[name] = !response[name];\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAnswerChange = (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.answer = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAlternateAnswerChange = (alternateId) => (answer) => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n newResponse.alternates[alternateId] = answer;\n\n onResponseChange(newResponse, responseKey);\n };\n\n onAddAlternate = () => {\n const { response, onResponseChange, responseKey } = this.props;\n const { alternateIdCounter } = this.state;\n const newResponse = { ...response };\n\n if (!newResponse.alternates) {\n newResponse.alternates = {};\n }\n\n newResponse.alternates[alternateIdCounter] = '';\n\n onResponseChange(newResponse, responseKey);\n\n this.setState({\n alternateIdCounter: alternateIdCounter + 1,\n });\n };\n\n onRemoveAlternate = (alternateId) => () => {\n const { response, onResponseChange, responseKey } = this.props;\n const newResponse = { ...response };\n\n delete newResponse.alternates[alternateId];\n\n onResponseChange(newResponse, responseKey);\n\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount : state.showKeypad.openCount - 1,\n },\n }));\n };\n\n onDone = () => {\n const { onResponseDone } = this.props;\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n main: false,\n },\n }));\n\n onResponseDone();\n };\n\n onFocus = () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad.main ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n main: true,\n },\n }));\n };\n\n onAlternateFocus = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: !state.showKeypad[alternateId] ? state.showKeypad.openCount + 1 : state.showKeypad.openCount,\n [alternateId]: true,\n },\n }));\n };\n\n onAlternateDone = (alternateId) => () => {\n this.setState((state) => ({\n showKeypad: {\n ...state.showKeypad,\n openCount: state.showKeypad.openCount - 1,\n [alternateId]: false,\n },\n }));\n };\n\n render() {\n const { classes, mode, responseKey, response, cAllowTrailingZeros, cIgnoreOrder, error } = this.props;\n const { showKeypad } = this.state;\n const { validation, answer, alternates, ignoreOrder, allowTrailingZeros } = response;\n const hasAlternates = Object.keys(alternates || {}).length > 0;\n const classNames = {\n editor: classes.responseEditor,\n mathToolbar: classes.mathToolbar,\n };\n const styles = {\n minHeight: `${showKeypad.openCount > 0 ? 430 : 230}px`,\n };\n // add 1 to index to display R 1 instead of R 0\n const keyToDisplay = `R ${parseInt(responseKey) + 1}`;\n\n return (\n <Card className={classes.responseContainer} style={styles}>\n <CardContent className={classes.cardContent}>\n <div className={classes.titleBar}>\n <Typography className={classes.title} component=\"div\">\n Response for <div className={classes.responseBox}>{keyToDisplay}</div>\n </Typography>\n\n <InputContainer label=\"Validation\" className={classes.selectContainer}>\n <Select className={classes.select} onChange={this.onChange('validation')} value={validation || 'literal'}>\n <MenuItem value=\"literal\">Literal Validation</MenuItem>\n <MenuItem value=\"symbolic\">Symbolic Validation</MenuItem>\n </Select>\n </InputContainer>\n </div>\n\n {validation === 'literal' && (\n <div className={classes.flexContainer}>\n {cAllowTrailingZeros.enabled && (\n <FormControlLabel\n label={cAllowTrailingZeros.label}\n control={\n <Checkbox\n className={classes.customColor}\n checked={allowTrailingZeros}\n onChange={this.onLiteralOptionsChange('allowTrailingZeros')}\n />\n }\n />\n )}\n\n {cIgnoreOrder.enabled && (\n <FormControlLabel\n label={cIgnoreOrder.label}\n control={\n <Checkbox\n className={classes.customColor}\n checked={ignoreOrder}\n onChange={this.onLiteralOptionsChange('ignoreOrder')}/>}\n />\n )}\n </div>\n )}\n\n <div className={classes.inputContainer}>\n <InputLabel>Correct Answer</InputLabel>\n <MathToolbar\n keypadMode={mode}\n classNames={classNames}\n controlledKeypad\n showKeypad={showKeypad.main}\n latex={answer || ''}\n onChange={this.onAnswerChange}\n onFocus={this.onFocus}\n onDone={this.onDone}\n error={error && error.answer}\n />\n {error && error.answer ? <div className={classes.errorText}>{error.answer}</div> : null}\n </div>\n\n {hasAlternates &&\n Object.keys(alternates).map((alternateId, altIdx) => (\n <div className={classes.inputContainer} key={alternateId}>\n <InputLabel>\n Alternate\n {Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''}\n </InputLabel>\n <div className={classes.alternateBar}>\n <MathToolbar\n classNames={classNames}\n controlledKeypad\n keypadMode={mode}\n showKeypad={showKeypad[alternateId] || false}\n latex={alternates[alternateId] || ''}\n onChange={this.onAlternateAnswerChange(alternateId)}\n onFocus={this.onAlternateFocus(alternateId)}\n onDone={this.onAlternateDone(alternateId)}\n error={error && error[alternateId]}\n />\n <IconButton\n className={classes.removeAlternateButton}\n onClick={this.onRemoveAlternate(alternateId)}\n >\n <Delete/>\n </IconButton>\n </div>\n {error && error[alternateId] ? <div className={classes.errorText}>{error[alternateId]}</div> : null}\n </div>\n ))}\n\n <Button className={classes.alternateButton} type=\"primary\" onClick={this.onAddAlternate}>\n ADD ALTERNATE\n </Button>\n </CardContent>\n </Card>\n )\n }\n}\n\nconst styles = (theme) => ({\n responseContainer: {\n marginBottom: theme.spacing.unit * 2.5,\n width: '100%',\n minWidth: '548px',\n border: `1px solid ${theme.palette.grey[700]}`,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'space-between',\n },\n cardContent: {\n paddingBottom: `${theme.spacing.unit * 2}px !important`,\n },\n title: {\n fontWeight: 700,\n fontSize: '1.2rem',\n flex: 3,\n },\n selectContainer: {\n flex: 2,\n },\n inputContainer: {\n marginBottom: theme.spacing.unit * 2,\n },\n titleBar: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n responseEditor: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n minWidth: '500px',\n maxWidth: '900px',\n height: 'auto',\n minHeight: '40px',\n },\n mathToolbar: {\n width: '100%',\n },\n alternateButton: {\n border: `1px solid ${theme.palette.grey['A100']}`,\n },\n removeAlternateButton: {\n marginLeft: theme.spacing.unit,\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n responseBox: {\n background: theme.palette.grey['A100'],\n color: theme.palette.grey['A700'],\n display: 'inline',\n minWidth: '50px',\n padding: '8px',\n border: '1px solid #C0C3CF',\n },\n alternateBar: {\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n customColor: {\n color: `${color.tertiary()} !important`\n },\n});\n\nexport default withStyles(styles)(Response);\n"],"file":"response.js"}
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.2/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.1.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.5/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.1.2/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -42268,7 +42268,7 @@ var reactTransitionGroup = {
42268
42268
  ReplaceTransition: _ReplaceTransition.default,
42269
42269
  CSSTransition: _CSSTransition.default
42270
42270
  };
42271
- var color = {};
42271
+ var color$1 = {};
42272
42272
  var green$1 = {};
42273
42273
  Object.defineProperty(green$1, "__esModule", {
42274
42274
  value: true
@@ -42316,10 +42316,10 @@ var orange = {
42316
42316
  var _default$m = orange;
42317
42317
  orange$1.default = _default$m;
42318
42318
  var _interopRequireDefault$o = interopRequireDefault.exports;
42319
- Object.defineProperty(color, "__esModule", {
42319
+ Object.defineProperty(color$1, "__esModule", {
42320
42320
  value: true
42321
42321
  });
42322
- color.white = color.v = color.transparent = color.text = color.secondaryText = color.secondaryLight = color.secondaryDark = color.secondaryBackground = color.secondary = color.primaryText = color.primaryLight = color.primaryDark = color.primary = color.missingWithIcon = color.missing = color.incorrectWithIcon = color.incorrectSecondary = color.incorrect = color.disabledSecondary = color.disabled = color.defaults = color.correctWithIcon = color.correctSecondary = color.correct = color.borderLight = color.borderDark = color.border = color.black = color.backgroundDark = color.background = void 0;
42322
+ color$1.white = color$1.v = color$1.transparent = color$1.text = color$1.secondaryText = color$1.secondaryLight = color$1.secondaryDark = color$1.secondaryBackground = color$1.secondary = color$1.primaryText = color$1.primaryLight = color$1.primaryDark = color$1.primary = color$1.missingWithIcon = color$1.missing = color$1.incorrectWithIcon = color$1.incorrectSecondary = color$1.incorrect = color$1.disabledSecondary = color$1.disabled = color$1.defaults = color$1.correctWithIcon = color$1.correctSecondary = color$1.correct = color$1.borderLight = color$1.borderDark = color$1.border = color$1.black = color$1.backgroundDark = color$1.background = void 0;
42323
42323
  var _green = _interopRequireDefault$o(green$1);
42324
42324
  var _orange = _interopRequireDefault$o(orange$1);
42325
42325
  var _pink = _interopRequireDefault$o(pink$1);
@@ -42353,7 +42353,7 @@ var defaults$1 = {
42353
42353
  WHITE: '#ffffff',
42354
42354
  TRANSPARENT: 'transparent'
42355
42355
  };
42356
- color.defaults = defaults$1;
42356
+ color$1.defaults = defaults$1;
42357
42357
  Object.freeze(defaults$1);
42358
42358
  var v = function v(prefix) {
42359
42359
  return function () {
@@ -42366,120 +42366,120 @@ var v = function v(prefix) {
42366
42366
  }, fallback);
42367
42367
  };
42368
42368
  };
42369
- color.v = v;
42369
+ color$1.v = v;
42370
42370
  var pv = v('pie');
42371
42371
  var text = function text() {
42372
42372
  return pv('text', defaults$1.TEXT);
42373
42373
  };
42374
- color.text = text;
42374
+ color$1.text = text;
42375
42375
  var disabled = function disabled() {
42376
42376
  return pv('disabled', defaults$1.DISABLED);
42377
42377
  };
42378
- color.disabled = disabled;
42378
+ color$1.disabled = disabled;
42379
42379
  var disabledSecondary = function disabledSecondary() {
42380
42380
  return pv('disabled-secondary', defaults$1.DISABLED_SECONDARY);
42381
42381
  };
42382
- color.disabledSecondary = disabledSecondary;
42382
+ color$1.disabledSecondary = disabledSecondary;
42383
42383
  var correct = function correct() {
42384
42384
  return pv('correct', defaults$1.CORRECT);
42385
42385
  };
42386
- color.correct = correct;
42386
+ color$1.correct = correct;
42387
42387
  var correctSecondary = function correctSecondary() {
42388
42388
  return pv('correct-secondary', defaults$1.CORRECT_SECONDARY);
42389
42389
  };
42390
- color.correctSecondary = correctSecondary;
42390
+ color$1.correctSecondary = correctSecondary;
42391
42391
  var correctWithIcon = function correctWithIcon() {
42392
42392
  return pv('correct-icon', defaults$1.CORRECT_WITH_ICON);
42393
42393
  };
42394
- color.correctWithIcon = correctWithIcon;
42394
+ color$1.correctWithIcon = correctWithIcon;
42395
42395
  var incorrect = function incorrect() {
42396
42396
  return pv('incorrect', defaults$1.INCORRECT);
42397
42397
  };
42398
- color.incorrect = incorrect;
42398
+ color$1.incorrect = incorrect;
42399
42399
  var incorrectWithIcon = function incorrectWithIcon() {
42400
42400
  return pv('incorrect-icon', defaults$1.INCORRECT_WITH_ICON);
42401
42401
  };
42402
- color.incorrectWithIcon = incorrectWithIcon;
42402
+ color$1.incorrectWithIcon = incorrectWithIcon;
42403
42403
  var incorrectSecondary = function incorrectSecondary() {
42404
42404
  return pv('incorrect-secondary', defaults$1.INCORRECT_SECONDARY);
42405
42405
  };
42406
- color.incorrectSecondary = incorrectSecondary;
42406
+ color$1.incorrectSecondary = incorrectSecondary;
42407
42407
  var missing = function missing() {
42408
42408
  return pv('missing', defaults$1.MISSING);
42409
42409
  };
42410
- color.missing = missing;
42410
+ color$1.missing = missing;
42411
42411
  var missingWithIcon = function missingWithIcon() {
42412
42412
  return pv('missing-icon', defaults$1.MISSING_WITH_ICON);
42413
42413
  };
42414
- color.missingWithIcon = missingWithIcon;
42414
+ color$1.missingWithIcon = missingWithIcon;
42415
42415
  var primary = function primary() {
42416
42416
  return pv('primary', defaults$1.PRIMARY);
42417
42417
  };
42418
- color.primary = primary;
42418
+ color$1.primary = primary;
42419
42419
  var primaryLight = function primaryLight() {
42420
42420
  return pv('primary-light', defaults$1.PRIMARY_LIGHT);
42421
42421
  };
42422
- color.primaryLight = primaryLight;
42422
+ color$1.primaryLight = primaryLight;
42423
42423
  var primaryDark = function primaryDark() {
42424
42424
  return pv('primary-dark', defaults$1.PRIMARY_DARK);
42425
42425
  };
42426
- color.primaryDark = primaryDark;
42426
+ color$1.primaryDark = primaryDark;
42427
42427
  var primaryText = function primaryText() {
42428
42428
  return pv('primary-text', 'text', defaults$1.TEXT);
42429
42429
  };
42430
- color.primaryText = primaryText;
42430
+ color$1.primaryText = primaryText;
42431
42431
  var secondary = function secondary() {
42432
42432
  return pv('secondary', defaults$1.SECONDARY);
42433
42433
  };
42434
- color.secondary = secondary;
42434
+ color$1.secondary = secondary;
42435
42435
  var secondaryLight = function secondaryLight() {
42436
42436
  return pv('secondary-light', defaults$1.SECONDARY_LIGHT);
42437
42437
  };
42438
- color.secondaryLight = secondaryLight;
42438
+ color$1.secondaryLight = secondaryLight;
42439
42439
  var secondaryDark = function secondaryDark() {
42440
42440
  return pv('secondary-dark', defaults$1.SECONDARY_DARK);
42441
42441
  };
42442
- color.secondaryDark = secondaryDark;
42442
+ color$1.secondaryDark = secondaryDark;
42443
42443
  var secondaryText = function secondaryText() {
42444
42444
  return pv('secondary-text', 'text', defaults$1.TEXT);
42445
42445
  };
42446
- color.secondaryText = secondaryText;
42446
+ color$1.secondaryText = secondaryText;
42447
42447
  var background = function background() {
42448
42448
  return pv('background', defaults$1.BACKGROUND);
42449
42449
  };
42450
- color.background = background;
42450
+ color$1.background = background;
42451
42451
  var backgroundDark = function backgroundDark() {
42452
42452
  return pv('background-dark', defaults$1.BACKGROUND_DARK);
42453
42453
  };
42454
- color.backgroundDark = backgroundDark;
42454
+ color$1.backgroundDark = backgroundDark;
42455
42455
  var secondaryBackground = function secondaryBackground() {
42456
42456
  return pv('secondary-background', defaults$1.SECONDARY_BACKGROUND);
42457
42457
  };
42458
- color.secondaryBackground = secondaryBackground;
42458
+ color$1.secondaryBackground = secondaryBackground;
42459
42459
  var border = function border() {
42460
42460
  return pv('border', defaults$1.BORDER);
42461
42461
  };
42462
- color.border = border;
42462
+ color$1.border = border;
42463
42463
  var borderLight = function borderLight() {
42464
42464
  return pv('border-light', defaults$1.BORDER_LIGHT);
42465
42465
  };
42466
- color.borderLight = borderLight;
42466
+ color$1.borderLight = borderLight;
42467
42467
  var borderDark = function borderDark() {
42468
42468
  return pv('border-dark', defaults$1.BORDER_DARK);
42469
42469
  };
42470
- color.borderDark = borderDark;
42470
+ color$1.borderDark = borderDark;
42471
42471
  var black = function black() {
42472
42472
  return pv('black', defaults$1.BLACK);
42473
42473
  };
42474
- color.black = black;
42474
+ color$1.black = black;
42475
42475
  var white = function white() {
42476
42476
  return pv('white', defaults$1.WHITE);
42477
42477
  };
42478
- color.white = white;
42478
+ color$1.white = white;
42479
42479
  var transparent = function transparent() {
42480
42480
  return defaults$1.TRANSPARENT;
42481
42481
  };
42482
- color.transparent = transparent;
42482
+ color$1.transparent = transparent;
42483
42483
  const require$$9$9 = _dll_react;
42484
42484
  const require$$11$9 = _dll_classnames;
42485
42485
  const require$$12$5 = _dll_prop_types;
@@ -42501,7 +42501,7 @@ const require$$12$5 = _dll_prop_types;
42501
42501
  var _reactTransitionGroup = reactTransitionGroup;
42502
42502
  var _classnames = _interopRequireDefault(require$$11$9);
42503
42503
  var _propTypes = _interopRequireDefault(require$$12$5);
42504
- var color$1 = _interopRequireWildcard(color);
42504
+ var color = _interopRequireWildcard(color$1);
42505
42505
  function _getRequireWildcardCache(nodeInterop) {
42506
42506
  if (typeof WeakMap !== "function") return null;
42507
42507
  var cacheBabelInterop = new WeakMap();
@@ -42577,7 +42577,7 @@ const require$$12$5 = _dll_prop_types;
42577
42577
  },
42578
42578
  content: {
42579
42579
  '-webkit-font-smoothing': 'antialiased',
42580
- backgroundColor: ("var(--feedback-bg-color, ").concat(color$1.disabled(), ")"),
42580
+ backgroundColor: ("var(--feedback-bg-color, ").concat(color.disabled(), ")"),
42581
42581
  borderRadius: '4px',
42582
42582
  fontFamily: '"Roboto", "Noto", sans-serif',
42583
42583
  fontSize: '12px',
@@ -42588,10 +42588,10 @@ const require$$12$5 = _dll_prop_types;
42588
42588
  color: 'var(--feedback-color, white)'
42589
42589
  },
42590
42590
  correct: {
42591
- backgroundColor: ("var(--feedback-correct-bg-color, ").concat(color$1.correct(), ")")
42591
+ backgroundColor: ("var(--feedback-correct-bg-color, ").concat(color.correct(), ")")
42592
42592
  },
42593
42593
  incorrect: {
42594
- backgroundColor: ("var(--feedback-incorrect-bg-color, ").concat(color$1.incorrect(), ")")
42594
+ backgroundColor: ("var(--feedback-incorrect-bg-color, ").concat(color.incorrect(), ")")
42595
42595
  },
42596
42596
  feedbackEnter: {
42597
42597
  height: '1px'
@@ -60509,7 +60509,7 @@ const require$$11$4 = _dll_prop_types;
60509
60509
  var _react = _interopRequireWildcard(require$$9$3);
60510
60510
  var _styles = styles$E;
60511
60511
  var _propTypes = _interopRequireDefault(require$$11$4);
60512
- var color$1 = _interopRequireWildcard(color);
60512
+ var color = _interopRequireWildcard(color$1);
60513
60513
  function _getRequireWildcardCache(nodeInterop) {
60514
60514
  if (typeof WeakMap !== "function") return null;
60515
60515
  var cacheBabelInterop = new WeakMap();
@@ -60740,7 +60740,7 @@ const require$$11$4 = _dll_prop_types;
60740
60740
  return {
60741
60741
  prompt: {
60742
60742
  verticalAlign: 'middle',
60743
- color: color$1.text()
60743
+ color: color.text()
60744
60744
  },
60745
60745
  legend: {
60746
60746
  width: '100%',
@@ -60751,7 +60751,7 @@ const require$$11$4 = _dll_prop_types;
60751
60751
  paddingBottom: theme.spacing.unit
60752
60752
  },
60753
60753
  label: {
60754
- color: ("").concat(color$1.text(), " !important"),
60754
+ color: ("").concat(color.text(), " !important"),
60755
60755
  display: 'inline-block',
60756
60756
  verticalAlign: 'middle',
60757
60757
  cursor: 'pointer',
@@ -60939,8 +60939,8 @@ hasText$1.hasText = hasText;
60939
60939
  var _previewPrompt = _interopRequireDefault(previewPrompt);
60940
60940
  var _readable = _interopRequireDefault(readable);
60941
60941
  var _purpose = _interopRequireDefault(purpose);
60942
- var color$1 = _interopRequireWildcard(color);
60943
- exports.color = color$1;
60942
+ var color = _interopRequireWildcard(color$1);
60943
+ exports.color = color;
60944
60944
  var _hasText = hasText$1;
60945
60945
  function _getRequireWildcardCache(nodeInterop) {
60946
60946
  if (typeof WeakMap !== "function") return null;
@@ -63372,6 +63372,7 @@ const React$2 = _dll_react;
63372
63372
  const PropTypes$1 = _dll_prop_types;
63373
63373
  const {InputContainer: InputContainer$1} = _dll_pie_lib__pie_toolbox_config_ui;
63374
63374
  const {MathToolbar: MathToolbar} = _dll_pie_lib__pie_toolbox_math_toolbar;
63375
+ const {color: color} = _dll_pie_lib__pie_toolbox_render_ui;
63375
63376
  const _jsxFileName$1 = "/home/circleci/repo/packages/math-templated/configure/src/response.jsx";
63376
63377
  class Response extends React$2.Component {
63377
63378
  static __initStatic() {
@@ -63565,21 +63566,21 @@ class Response extends React$2.Component {
63565
63566
  __self: this,
63566
63567
  __source: {
63567
63568
  fileName: _jsxFileName$1,
63568
- lineNumber: 190
63569
+ lineNumber: 191
63569
63570
  }
63570
63571
  }, React$2.createElement(CardContent, {
63571
63572
  className: classes.cardContent,
63572
63573
  __self: this,
63573
63574
  __source: {
63574
63575
  fileName: _jsxFileName$1,
63575
- lineNumber: 191
63576
+ lineNumber: 192
63576
63577
  }
63577
63578
  }, React$2.createElement('div', {
63578
63579
  className: classes.titleBar,
63579
63580
  __self: this,
63580
63581
  __source: {
63581
63582
  fileName: _jsxFileName$1,
63582
- lineNumber: 192
63583
+ lineNumber: 193
63583
63584
  }
63584
63585
  }, React$2.createElement(Typography, {
63585
63586
  className: classes.title,
@@ -63587,14 +63588,14 @@ class Response extends React$2.Component {
63587
63588
  __self: this,
63588
63589
  __source: {
63589
63590
  fileName: _jsxFileName$1,
63590
- lineNumber: 193
63591
+ lineNumber: 194
63591
63592
  }
63592
63593
  }, "Response for ", React$2.createElement('div', {
63593
63594
  className: classes.responseBox,
63594
63595
  __self: this,
63595
63596
  __source: {
63596
63597
  fileName: _jsxFileName$1,
63597
- lineNumber: 194
63598
+ lineNumber: 195
63598
63599
  }
63599
63600
  }, keyToDisplay)), React$2.createElement(InputContainer$1, {
63600
63601
  label: "Validation",
@@ -63602,7 +63603,7 @@ class Response extends React$2.Component {
63602
63603
  __self: this,
63603
63604
  __source: {
63604
63605
  fileName: _jsxFileName$1,
63605
- lineNumber: 197
63606
+ lineNumber: 198
63606
63607
  }
63607
63608
  }, React$2.createElement(Select, {
63608
63609
  className: classes.select,
@@ -63611,73 +63612,75 @@ class Response extends React$2.Component {
63611
63612
  __self: this,
63612
63613
  __source: {
63613
63614
  fileName: _jsxFileName$1,
63614
- lineNumber: 198
63615
+ lineNumber: 199
63615
63616
  }
63616
63617
  }, React$2.createElement(MenuItem, {
63617
63618
  value: "literal",
63618
63619
  __self: this,
63619
63620
  __source: {
63620
63621
  fileName: _jsxFileName$1,
63621
- lineNumber: 199
63622
+ lineNumber: 200
63622
63623
  }
63623
63624
  }, "Literal Validation"), React$2.createElement(MenuItem, {
63624
63625
  value: "symbolic",
63625
63626
  __self: this,
63626
63627
  __source: {
63627
63628
  fileName: _jsxFileName$1,
63628
- lineNumber: 200
63629
+ lineNumber: 201
63629
63630
  }
63630
63631
  }, "Symbolic Validation")))), validation === 'literal' && React$2.createElement('div', {
63631
63632
  className: classes.flexContainer,
63632
63633
  __self: this,
63633
63634
  __source: {
63634
63635
  fileName: _jsxFileName$1,
63635
- lineNumber: 206
63636
+ lineNumber: 207
63636
63637
  }
63637
63638
  }, cAllowTrailingZeros.enabled && React$2.createElement(FormControlLabel, {
63638
63639
  label: cAllowTrailingZeros.label,
63639
63640
  control: React$2.createElement(Checkbox, {
63641
+ className: classes.customColor,
63640
63642
  checked: allowTrailingZeros,
63641
63643
  onChange: this.onLiteralOptionsChange('allowTrailingZeros'),
63642
63644
  __self: this,
63643
63645
  __source: {
63644
63646
  fileName: _jsxFileName$1,
63645
- lineNumber: 211
63647
+ lineNumber: 212
63646
63648
  }
63647
63649
  }),
63648
63650
  __self: this,
63649
63651
  __source: {
63650
63652
  fileName: _jsxFileName$1,
63651
- lineNumber: 208
63653
+ lineNumber: 209
63652
63654
  }
63653
63655
  }), cIgnoreOrder.enabled && React$2.createElement(FormControlLabel, {
63654
63656
  label: cIgnoreOrder.label,
63655
63657
  control: React$2.createElement(Checkbox, {
63658
+ className: classes.customColor,
63656
63659
  checked: ignoreOrder,
63657
63660
  onChange: this.onLiteralOptionsChange('ignoreOrder'),
63658
63661
  __self: this,
63659
63662
  __source: {
63660
63663
  fileName: _jsxFileName$1,
63661
- lineNumber: 222
63664
+ lineNumber: 225
63662
63665
  }
63663
63666
  }),
63664
63667
  __self: this,
63665
63668
  __source: {
63666
63669
  fileName: _jsxFileName$1,
63667
- lineNumber: 220
63670
+ lineNumber: 222
63668
63671
  }
63669
63672
  })), React$2.createElement('div', {
63670
63673
  className: classes.inputContainer,
63671
63674
  __self: this,
63672
63675
  __source: {
63673
63676
  fileName: _jsxFileName$1,
63674
- lineNumber: 228
63677
+ lineNumber: 234
63675
63678
  }
63676
63679
  }, React$2.createElement(InputLabel, {
63677
63680
  __self: this,
63678
63681
  __source: {
63679
63682
  fileName: _jsxFileName$1,
63680
- lineNumber: 229
63683
+ lineNumber: 235
63681
63684
  }
63682
63685
  }, "Correct Answer"), React$2.createElement(MathToolbar, {
63683
63686
  keypadMode: mode,
@@ -63692,14 +63695,14 @@ class Response extends React$2.Component {
63692
63695
  __self: this,
63693
63696
  __source: {
63694
63697
  fileName: _jsxFileName$1,
63695
- lineNumber: 230
63698
+ lineNumber: 236
63696
63699
  }
63697
63700
  }), error && error.answer ? React$2.createElement('div', {
63698
63701
  className: classes.errorText,
63699
63702
  __self: this,
63700
63703
  __source: {
63701
63704
  fileName: _jsxFileName$1,
63702
- lineNumber: 241
63705
+ lineNumber: 247
63703
63706
  }
63704
63707
  }, error.answer) : null), hasAlternates && Object.keys(alternates).map((alternateId, altIdx) => React$2.createElement('div', {
63705
63708
  className: classes.inputContainer,
@@ -63707,20 +63710,20 @@ class Response extends React$2.Component {
63707
63710
  __self: this,
63708
63711
  __source: {
63709
63712
  fileName: _jsxFileName$1,
63710
- lineNumber: 246
63713
+ lineNumber: 252
63711
63714
  }
63712
63715
  }, React$2.createElement(InputLabel, {
63713
63716
  __self: this,
63714
63717
  __source: {
63715
63718
  fileName: _jsxFileName$1,
63716
- lineNumber: 247
63719
+ lineNumber: 253
63717
63720
  }
63718
63721
  }, "Alternate", Object.keys(alternates).length > 1 ? ` ${altIdx + 1}` : ''), React$2.createElement('div', {
63719
63722
  className: classes.alternateBar,
63720
63723
  __self: this,
63721
63724
  __source: {
63722
63725
  fileName: _jsxFileName$1,
63723
- lineNumber: 251
63726
+ lineNumber: 257
63724
63727
  }
63725
63728
  }, React$2.createElement(MathToolbar, {
63726
63729
  classNames: classNames,
@@ -63735,7 +63738,7 @@ class Response extends React$2.Component {
63735
63738
  __self: this,
63736
63739
  __source: {
63737
63740
  fileName: _jsxFileName$1,
63738
- lineNumber: 252
63741
+ lineNumber: 258
63739
63742
  }
63740
63743
  }), React$2.createElement(IconButton, {
63741
63744
  className: classes.removeAlternateButton,
@@ -63743,20 +63746,20 @@ class Response extends React$2.Component {
63743
63746
  __self: this,
63744
63747
  __source: {
63745
63748
  fileName: _jsxFileName$1,
63746
- lineNumber: 263
63749
+ lineNumber: 269
63747
63750
  }
63748
63751
  }, React$2.createElement(default_1, {
63749
63752
  __self: this,
63750
63753
  __source: {
63751
63754
  fileName: _jsxFileName$1,
63752
- lineNumber: 267
63755
+ lineNumber: 273
63753
63756
  }
63754
63757
  }))), error && error[alternateId] ? React$2.createElement('div', {
63755
63758
  className: classes.errorText,
63756
63759
  __self: this,
63757
63760
  __source: {
63758
63761
  fileName: _jsxFileName$1,
63759
- lineNumber: 270
63762
+ lineNumber: 276
63760
63763
  }
63761
63764
  }, error[alternateId]) : null)), React$2.createElement(Button, {
63762
63765
  className: classes.alternateButton,
@@ -63765,7 +63768,7 @@ class Response extends React$2.Component {
63765
63768
  __self: this,
63766
63769
  __source: {
63767
63770
  fileName: _jsxFileName$1,
63768
- lineNumber: 274
63771
+ lineNumber: 280
63769
63772
  }
63770
63773
  }, "ADD ALTERNATE")));
63771
63774
  }
@@ -63837,6 +63840,9 @@ const styles = theme => ({
63837
63840
  display: 'flex',
63838
63841
  justifyContent: 'space-between',
63839
63842
  alignItems: 'center'
63843
+ },
63844
+ customColor: {
63845
+ color: `${color.tertiary()} !important`
63840
63846
  }
63841
63847
  });
63842
63848
  var Response$1 = styles$E.withStyles(styles)(Response);
package/module/element.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.5/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.1.2/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "2.1.2"
7
+ "version": "2.1.5"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
package/module/print.js CHANGED
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.5/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.1.2/module/index.js";
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.2.3-next.0+d067765bc",
7
+ "version": "3.2.3-next.12+a0c6368f3",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "d067765bc91c40e3d31bcb3ba71610eebc32cdcb",
19
+ "gitHead": "a0c6368f3ff521036c1dc8e830ba2515f04472cb",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },