@pie-element/multiple-choice 11.0.1-next.11 → 11.0.1-next.19
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/main.js +1 -8
- package/lib/main.js.map +1 -1
- package/module/element.js +1 -1
- package/module/print.js +1 -1
- package/package.json +2 -2
package/lib/main.js
CHANGED
|
@@ -91,16 +91,9 @@ var Main = /*#__PURE__*/function (_React$Component) {
|
|
|
91
91
|
var Styled = (0, _styles.withStyles)(styles, {
|
|
92
92
|
name: 'Main'
|
|
93
93
|
})(Main);
|
|
94
|
-
var theme = (0, _styles.createMuiTheme)({
|
|
95
|
-
typography: {
|
|
96
|
-
useNextVariants: true
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
94
|
|
|
100
95
|
var Root = function Root(props) {
|
|
101
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
102
|
-
theme: theme
|
|
103
|
-
}, /*#__PURE__*/_react["default"].createElement(Styled, props));
|
|
96
|
+
return /*#__PURE__*/_react["default"].createElement(Styled, props);
|
|
104
97
|
};
|
|
105
98
|
|
|
106
99
|
var _default = Root;
|
package/lib/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/main.jsx"],"names":["styles","Main","props","model","onChoiceChanged","session","onShowCorrectToggle","extraCSSRules","fontSizeFactor","React","Component","PropTypes","object","func","classes","isRequired","shape","names","arrayOf","string","rules","Styled","name","
|
|
1
|
+
{"version":3,"sources":["../src/main.jsx"],"names":["styles","Main","props","model","onChoiceChanged","session","onShowCorrectToggle","extraCSSRules","fontSizeFactor","React","Component","PropTypes","object","func","classes","isRequired","shape","names","arrayOf","string","rules","Styled","name","Root"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO,EAAP;AAAA,CAAf;;IAEMC,I;;;;;AAiBJ,gBAA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f;;AAEA,IAAMsB,IAAI,GAAG,SAAPA,IAAO,CAACrB,KAAD;AAAA,sBACT,gCAAC,MAAD,EAAYA,KAAZ,CADS;AAAA,CAAb;;eAIeqB,I","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport { PreviewLayout } from '@pie-lib/render-ui';\nimport MultipleChoice from './multiple-choice';\n\nconst styles = () => ({});\n\nclass Main extends React.Component {\n static propTypes = {\n model: PropTypes.object,\n session: PropTypes.object,\n onChoiceChanged: PropTypes.func,\n classes: PropTypes.object.isRequired,\n onShowCorrectToggle: PropTypes.func,\n extraCSSRules: PropTypes.shape({\n names: PropTypes.arrayOf(PropTypes.string),\n rules: PropTypes.string,\n }),\n };\n\n static defaultProps = {\n model: {},\n session: {},\n };\n constructor(props) {\n super(props);\n }\n\n render() {\n const { model, onChoiceChanged, session, onShowCorrectToggle } = this.props;\n const { extraCSSRules, fontSizeFactor } = model;\n\n // model.partLabel is a property used for ebsr\n return (\n <PreviewLayout extraCSSRules={extraCSSRules} fontSizeFactor={fontSizeFactor}>\n <MultipleChoice\n {...model}\n session={session}\n onChoiceChanged={onChoiceChanged}\n onShowCorrectToggle={onShowCorrectToggle}\n />\n </PreviewLayout>\n );\n }\n}\n\nconst Styled = withStyles(styles, { name: 'Main' })(Main);\n\nconst Root = (props) => (\n <Styled {...props} />\n);\n\nexport default Root;\n"],"file":"main.js"}
|