@pie-element/categorize 9.2.2-next.0 → 9.2.2-next.14
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.
|
@@ -91,9 +91,8 @@ var ChoicePreview = /*#__PURE__*/function (_React$Component) {
|
|
|
91
91
|
html: choice === null || choice === void 0 ? void 0 : choice.content,
|
|
92
92
|
className: "".concat(classes.breakWord)
|
|
93
93
|
}), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
94
|
-
color: "secondary",
|
|
95
94
|
"aria-label": "delete",
|
|
96
|
-
className: classes["delete"],
|
|
95
|
+
className: (0, _classnames["default"])(classes["delete"], classes.customColor),
|
|
97
96
|
onClick: this["delete"]
|
|
98
97
|
}, /*#__PURE__*/_react["default"].createElement(_RemoveCircleOutline["default"], null))) : null);
|
|
99
98
|
}
|
|
@@ -126,6 +125,9 @@ var styles = function styles() {
|
|
|
126
125
|
breakWord: {
|
|
127
126
|
maxWidth: '90%',
|
|
128
127
|
wordBreak: 'break-all'
|
|
128
|
+
},
|
|
129
|
+
customColor: {
|
|
130
|
+
color: "".concat(_renderUi.color.tertiary(), " !important")
|
|
129
131
|
}
|
|
130
132
|
};
|
|
131
133
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/design/categories/choice-preview.jsx"],"names":["ChoicePreview","props","onDelete","choice","alternateResponseIndex","category","classes","className","choiceIndex","choicePreview","content","breakWord","React","Component","PropTypes","number","object","isRequired","string","func","styles","position","right","top","maxWidth","wordBreak"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/design/categories/choice-preview.jsx"],"names":["ChoicePreview","props","onDelete","choice","alternateResponseIndex","category","classes","className","choiceIndex","choicePreview","content","breakWord","customColor","React","Component","PropTypes","number","object","isRequired","string","func","styles","position","right","top","maxWidth","wordBreak","color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N,CADF;AAkBD;;;EArCgCC,kBAAMC,S;;;iCAA5Bd,a,eACQ;AACjBI,EAAAA,sBAAsB,EAAEW,sBAAUC,MADjB;AAEjBX,EAAAA,QAAQ,EAAEU,sBAAUE,MAFH;AAGjBX,EAAAA,OAAO,EAAES,sBAAUE,MAAV,CAAiBC,UAHT;AAIjBX,EAAAA,SAAS,EAAEQ,sBAAUI,MAJJ;AAKjBhB,EAAAA,MAAM,EAAEY,sBAAUE,MAAV,CAAiBC,UALR;AAMjBV,EAAAA,WAAW,EAAEO,sBAAUC,MANN;AAOjBd,EAAAA,QAAQ,EAAEa,sBAAUK,IAAV,CAAeF;AAPR,C;iCADRlB,a,kBAUW,E;;AA6BxB,IAAMqB,MAAM,GAAG,SAATA,MAAS;AAAA,SAAO;AACpBZ,IAAAA,aAAa,EAAE;AACba,MAAAA,QAAQ,EAAE;AADG,KADK;AAIpB,cAAQ;AACNA,MAAAA,QAAQ,EAAE,UADJ;AAENC,MAAAA,KAAK,EAAE,CAFD;AAGNC,MAAAA,GAAG,EAAE;AAHC,KAJY;AASpBb,IAAAA,SAAS,EAAE;AACTc,MAAAA,QAAQ,EAAE,KADD;AAETC,MAAAA,SAAS,EAAE;AAFF,KATS;AAapBd,IAAAA,WAAW,EAAE;AACXe,MAAAA,KAAK,YAAKA,gBAAMC,QAAN,EAAL;AADM;AAbO,GAAP;AAAA,CAAf;;eAiBe,wBAAWP,MAAX,EAAmBrB,aAAnB,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { Choice } from '@pie-lib/pie-toolbox/drag';\nimport IconButton from '@material-ui/core/IconButton';\nimport RemoveCircleOutlineIcon from '@material-ui/icons/RemoveCircleOutline';\nimport { HtmlAndMath } from '@pie-lib/pie-toolbox/render-ui';\nimport { color } from '@pie-lib/pie-toolbox/render-ui';\n\nexport class ChoicePreview extends React.Component {\n static propTypes = {\n alternateResponseIndex: PropTypes.number,\n category: PropTypes.object,\n classes: PropTypes.object.isRequired,\n className: PropTypes.string,\n choice: PropTypes.object.isRequired,\n choiceIndex: PropTypes.number,\n onDelete: PropTypes.func.isRequired,\n };\n static defaultProps = {};\n\n delete = () => {\n const { onDelete, choice } = this.props;\n onDelete(choice);\n };\n\n render() {\n const { alternateResponseIndex, category, classes, className, choice, choiceIndex } = this.props;\n return (\n <div className={classNames(classes.choicePreview, className)}>\n {choice ? (\n <Choice\n alternateResponseIndex={alternateResponseIndex}\n category={category}\n choice={choice}\n choiceIndex={choiceIndex}\n onRemoveChoice={() => this.delete()}\n >\n <HtmlAndMath html={choice?.content} className={`${classes.breakWord}`} />\n <IconButton aria-label=\"delete\" className={classNames(classes.delete, classes.customColor)} onClick={this.delete}>\n <RemoveCircleOutlineIcon />\n </IconButton>\n </Choice>\n ) : null}\n </div>\n );\n }\n}\nconst styles = () => ({\n choicePreview: {\n position: 'relative',\n },\n delete: {\n position: 'absolute',\n right: 0,\n top: 0,\n },\n breakWord: {\n maxWidth: '90%',\n wordBreak: 'break-all',\n },\n customColor: {\n color: `${color.tertiary()} !important`\n },\n});\nexport default withStyles(styles)(ChoicePreview);\n"],"file":"choice-preview.js"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "9.2.2-next.
|
|
7
|
+
"version": "9.2.2-next.14+2e87e829c",
|
|
8
8
|
"description": "",
|
|
9
9
|
"author": "pie framework developers",
|
|
10
10
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"react-dnd": "^14.0.5",
|
|
21
21
|
"react-dom": "^16.8.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "2e87e829c981a6dab79aa24a6773988a57a5fcab",
|
|
24
24
|
"scripts": {
|
|
25
25
|
"postpublish": "../../scripts/postpublish"
|
|
26
26
|
},
|