@pie-element/ebsr 10.7.3-next.9 → 12.0.1-esmbeta.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 +44 -0
- package/configure/CHANGELOG.md +16 -0
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +4186 -0
- package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
- package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
- package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
- package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +3332 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +202 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +248 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +597 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +2297 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +34 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +346 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +28 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +2993 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +2217 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +61 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +1332 -0
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +1015 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/configure.css +847 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js +1218 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/controller.css +847 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js +324 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/element.css +847 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/element.js +3287 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/element.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/print.css +847 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/print.js +3017 -0
- package/configure/node_modules/@pie-element/multiple-choice/esm/print.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +427 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +252 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +388 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +108 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +469 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +48 -0
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/controller.js +3472 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +86 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/element.js +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/index.html +21 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/index.js +2 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +10 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +124 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/print.html +18 -0
- package/configure/node_modules/@pie-element/multiple-choice/module/print.js +1 -0
- package/configure/node_modules/@pie-element/multiple-choice/package.json +53 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +898 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js +262 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +88 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +181 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +66 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +44 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/__tests__/index.test.jsx +99 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +61 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +98 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +61 -0
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
- package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
- package/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
- package/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
- package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
- package/configure/node_modules/@pie-lib/icons/package.json +35 -0
- package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
- package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
- package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
- package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
- package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
- package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
- package/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
- package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
- package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
- package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
- package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
- package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
- package/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
- package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
- package/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
- package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
- package/configure/node_modules/@pie-lib/render-ui/package.json +40 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
- package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
- package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +121 -0
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
- package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +35 -0
- package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
- package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
- package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
- package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
- package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
- package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
- package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
- package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
- package/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
- package/configure/node_modules/@pie-lib/translator/CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/translator/CHANGELOG.md +282 -0
- package/configure/node_modules/@pie-lib/translator/NEXT.CHANGELOG.json +1 -0
- package/configure/node_modules/@pie-lib/translator/esm/index.js +257 -0
- package/configure/node_modules/@pie-lib/translator/esm/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/translator/lib/en.js +102 -0
- package/configure/node_modules/@pie-lib/translator/lib/en.js.map +1 -0
- package/configure/node_modules/@pie-lib/translator/lib/es.js +102 -0
- package/configure/node_modules/@pie-lib/translator/lib/es.js.map +1 -0
- package/configure/node_modules/@pie-lib/translator/lib/index.js +69 -0
- package/configure/node_modules/@pie-lib/translator/lib/index.js.map +1 -0
- package/configure/node_modules/@pie-lib/translator/package.json +25 -0
- package/configure/node_modules/@pie-lib/translator/src/en.js +99 -0
- package/configure/node_modules/@pie-lib/translator/src/es.js +99 -0
- package/configure/node_modules/@pie-lib/translator/src/index.js +43 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +16 -0
- package/controller/package.json +3 -3
- package/esm/configure.js +38602 -0
- package/esm/configure.js.map +1 -0
- package/esm/controller.js +3358 -0
- package/esm/controller.js.map +1 -0
- package/esm/element.js +2203 -0
- package/esm/element.js.map +1 -0
- package/esm/package.json +4 -0
- package/esm/print.js +4090 -0
- package/esm/print.js.map +1 -0
- package/module/controller.js +4973 -2252
- package/module/element.js +1 -1
- package/module/index.html +1 -1
- package/module/manifest.json +1 -1
- package/module/print.html +1 -1
- package/module/print.js +1 -1
- package/package.json +24 -6
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
|
|
6
|
+
const normalizeSize = size => {
|
|
7
|
+
return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const Sized = ({
|
|
11
|
+
size,
|
|
12
|
+
children
|
|
13
|
+
}) => {
|
|
14
|
+
size = normalizeSize(size);
|
|
15
|
+
const style = {
|
|
16
|
+
height: size,
|
|
17
|
+
width: size,
|
|
18
|
+
display: 'inline-block',
|
|
19
|
+
position: 'relative'
|
|
20
|
+
};
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
style: style
|
|
23
|
+
}, children);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
Sized.propTypes = {
|
|
27
|
+
size: PropTypes.number,
|
|
28
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const IconRoot = ({
|
|
32
|
+
size,
|
|
33
|
+
children
|
|
34
|
+
}) => /*#__PURE__*/React.createElement(Sized, {
|
|
35
|
+
size: size
|
|
36
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
37
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
38
|
+
version: "1.1",
|
|
39
|
+
x: "0px",
|
|
40
|
+
y: "0px",
|
|
41
|
+
viewBox: "0 0 44 40",
|
|
42
|
+
style: {
|
|
43
|
+
enableBackground: 'new 0 0 44 40'
|
|
44
|
+
}
|
|
45
|
+
}, ' ', children));
|
|
46
|
+
IconRoot.propTypes = {
|
|
47
|
+
size: PropTypes.oneOf([PropTypes.string, PropTypes.number]),
|
|
48
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
|
|
49
|
+
};
|
|
50
|
+
const getStyles = (name, fg, bg) => ({
|
|
51
|
+
bg: {
|
|
52
|
+
fill: `var(--icons-${name}-bg, ${bg})`
|
|
53
|
+
},
|
|
54
|
+
fg: {
|
|
55
|
+
fill: `var(--icons-${name}-fg, ${fg})`
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
({
|
|
59
|
+
className: PropTypes.string
|
|
60
|
+
});
|
|
61
|
+
const SquareFeedbackBox = ({
|
|
62
|
+
className
|
|
63
|
+
}) => /*#__PURE__*/React.createElement("polygon", {
|
|
64
|
+
transform: "translate(2, 0)",
|
|
65
|
+
className: className,
|
|
66
|
+
points: "34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3"
|
|
67
|
+
});
|
|
68
|
+
SquareFeedbackBox.propTypes = {
|
|
69
|
+
className: PropTypes.string
|
|
70
|
+
};
|
|
71
|
+
const RoundFeedbackBox = ({
|
|
72
|
+
className
|
|
73
|
+
}) => /*#__PURE__*/React.createElement("path", {
|
|
74
|
+
transform: "translate(1, 0)",
|
|
75
|
+
className: className,
|
|
76
|
+
d: "M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z"
|
|
77
|
+
});
|
|
78
|
+
RoundFeedbackBox.propTypes = {
|
|
79
|
+
className: PropTypes.string
|
|
80
|
+
};
|
|
81
|
+
const Circle$1 = ({
|
|
82
|
+
className
|
|
83
|
+
}) => /*#__PURE__*/React.createElement("circle", {
|
|
84
|
+
transform: "translate(-3, 0)",
|
|
85
|
+
className: className,
|
|
86
|
+
cx: "23",
|
|
87
|
+
cy: "20.4",
|
|
88
|
+
r: "16"
|
|
89
|
+
});
|
|
90
|
+
Circle$1.propTypes = {
|
|
91
|
+
className: PropTypes.string
|
|
92
|
+
};
|
|
93
|
+
const Square = ({
|
|
94
|
+
className
|
|
95
|
+
}) => /*#__PURE__*/React.createElement("rect", {
|
|
96
|
+
x: "3.6",
|
|
97
|
+
y: "4.1",
|
|
98
|
+
className: className,
|
|
99
|
+
width: "32",
|
|
100
|
+
height: "32"
|
|
101
|
+
});
|
|
102
|
+
Square.propTypes = {
|
|
103
|
+
className: PropTypes.string
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
var IconBase = ((Action, Emoji) => {
|
|
107
|
+
class IconBase extends React.Component {
|
|
108
|
+
constructor(props) {
|
|
109
|
+
super(props);
|
|
110
|
+
const {
|
|
111
|
+
classes,
|
|
112
|
+
size
|
|
113
|
+
} = this.props;
|
|
114
|
+
this.icons = {
|
|
115
|
+
feedback: {
|
|
116
|
+
round: {
|
|
117
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
118
|
+
size: size
|
|
119
|
+
}, /*#__PURE__*/React.createElement(RoundFeedbackBox, {
|
|
120
|
+
className: classes.bg
|
|
121
|
+
}), /*#__PURE__*/React.createElement(Action, {
|
|
122
|
+
className: classes.fg
|
|
123
|
+
})),
|
|
124
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
125
|
+
size: size
|
|
126
|
+
}, /*#__PURE__*/React.createElement(RoundFeedbackBox, {
|
|
127
|
+
className: classes.bg
|
|
128
|
+
}), /*#__PURE__*/React.createElement(Emoji, {
|
|
129
|
+
className: classes.fg
|
|
130
|
+
})),
|
|
131
|
+
open: {
|
|
132
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
133
|
+
size: size
|
|
134
|
+
}, /*#__PURE__*/React.createElement(Action, {
|
|
135
|
+
className: classes.bg
|
|
136
|
+
})),
|
|
137
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
138
|
+
size: size
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
140
|
+
className: classes.bg
|
|
141
|
+
}))
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
square: {
|
|
145
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
146
|
+
size: size
|
|
147
|
+
}, /*#__PURE__*/React.createElement(SquareFeedbackBox, {
|
|
148
|
+
className: classes.bg
|
|
149
|
+
}), /*#__PURE__*/React.createElement(Action, {
|
|
150
|
+
className: classes.fg
|
|
151
|
+
})),
|
|
152
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
153
|
+
size: size
|
|
154
|
+
}, /*#__PURE__*/React.createElement(SquareFeedbackBox, {
|
|
155
|
+
className: classes.bg
|
|
156
|
+
}), /*#__PURE__*/React.createElement(Emoji, {
|
|
157
|
+
className: classes.fg
|
|
158
|
+
})),
|
|
159
|
+
open: {
|
|
160
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
161
|
+
size: size
|
|
162
|
+
}, /*#__PURE__*/React.createElement(Action, {
|
|
163
|
+
className: classes.bg
|
|
164
|
+
})),
|
|
165
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
166
|
+
size: size
|
|
167
|
+
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
168
|
+
className: classes.bg
|
|
169
|
+
}))
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
round: {
|
|
174
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
175
|
+
size: size
|
|
176
|
+
}, /*#__PURE__*/React.createElement(Circle$1, {
|
|
177
|
+
className: classes.bg
|
|
178
|
+
}), /*#__PURE__*/React.createElement(Action, {
|
|
179
|
+
className: classes.fg
|
|
180
|
+
})),
|
|
181
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
182
|
+
size: size
|
|
183
|
+
}, /*#__PURE__*/React.createElement(Circle$1, {
|
|
184
|
+
className: classes.bg
|
|
185
|
+
}), /*#__PURE__*/React.createElement(Emoji, {
|
|
186
|
+
className: classes.fg
|
|
187
|
+
})),
|
|
188
|
+
open: {
|
|
189
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
190
|
+
size: size
|
|
191
|
+
}, /*#__PURE__*/React.createElement(Action, {
|
|
192
|
+
className: classes.bg
|
|
193
|
+
})),
|
|
194
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
195
|
+
size: size
|
|
196
|
+
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
197
|
+
className: classes.bg
|
|
198
|
+
}))
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
square: {
|
|
202
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
203
|
+
size: size
|
|
204
|
+
}, /*#__PURE__*/React.createElement(Square, {
|
|
205
|
+
className: classes.bg
|
|
206
|
+
}), /*#__PURE__*/React.createElement(Action, {
|
|
207
|
+
className: classes.fg
|
|
208
|
+
})),
|
|
209
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
210
|
+
size: size
|
|
211
|
+
}, /*#__PURE__*/React.createElement(Square, {
|
|
212
|
+
className: classes.bg
|
|
213
|
+
}), /*#__PURE__*/React.createElement(Emoji, {
|
|
214
|
+
className: classes.fg
|
|
215
|
+
})),
|
|
216
|
+
open: {
|
|
217
|
+
check: /*#__PURE__*/React.createElement(IconRoot, {
|
|
218
|
+
size: size
|
|
219
|
+
}, /*#__PURE__*/React.createElement(Action, {
|
|
220
|
+
className: classes.bg
|
|
221
|
+
})),
|
|
222
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, {
|
|
223
|
+
size: size
|
|
224
|
+
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
225
|
+
className: classes.bg
|
|
226
|
+
}))
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
render() {
|
|
233
|
+
if (this.props.category === undefined) {
|
|
234
|
+
if (this.props.open === true) {
|
|
235
|
+
return this.icons[this.props.shape].open[this.props.iconSet];
|
|
236
|
+
} else {
|
|
237
|
+
return this.icons[this.props.shape][this.props.iconSet];
|
|
238
|
+
}
|
|
239
|
+
} else {
|
|
240
|
+
if (this.props.open === true) {
|
|
241
|
+
return this.icons.feedback[this.props.shape].open[this.props.iconSet];
|
|
242
|
+
} else {
|
|
243
|
+
return this.icons.feedback[this.props.shape][this.props.iconSet];
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
IconBase.propTypes = {
|
|
251
|
+
classes: PropTypes.object.isRequired,
|
|
252
|
+
size: PropTypes.number
|
|
253
|
+
};
|
|
254
|
+
IconBase.propTypes = {
|
|
255
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
256
|
+
shape: PropTypes.oneOf(['round', 'square']),
|
|
257
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
258
|
+
open: PropTypes.bool
|
|
259
|
+
};
|
|
260
|
+
IconBase.defaultProps = {
|
|
261
|
+
iconSet: 'check',
|
|
262
|
+
shape: 'round',
|
|
263
|
+
category: undefined,
|
|
264
|
+
open: false
|
|
265
|
+
};
|
|
266
|
+
return IconBase;
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
const styles$6 = getStyles('correct', '#f8ffe2', '#4aaf46');
|
|
270
|
+
|
|
271
|
+
const Emoji$3 = ({
|
|
272
|
+
className
|
|
273
|
+
}) => /*#__PURE__*/React.createElement("g", {
|
|
274
|
+
transform: 'translate(1, 0)'
|
|
275
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
276
|
+
className: className,
|
|
277
|
+
d: "M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2 c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z"
|
|
278
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
279
|
+
x: "21.1",
|
|
280
|
+
y: "13.1",
|
|
281
|
+
className: className,
|
|
282
|
+
width: "3.7",
|
|
283
|
+
height: "4.7"
|
|
284
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
285
|
+
x: "12.7",
|
|
286
|
+
y: "13.1",
|
|
287
|
+
className: className,
|
|
288
|
+
width: "3.7",
|
|
289
|
+
height: "4.7"
|
|
290
|
+
}));
|
|
291
|
+
|
|
292
|
+
Emoji$3.propTypes = {
|
|
293
|
+
className: PropTypes.string
|
|
294
|
+
};
|
|
295
|
+
Emoji$3.defaultProps = {
|
|
296
|
+
x: 0
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
const Check$1 = ({
|
|
300
|
+
className,
|
|
301
|
+
x,
|
|
302
|
+
y
|
|
303
|
+
}) => /*#__PURE__*/React.createElement("polygon", {
|
|
304
|
+
transform: `translate(${x}, ${y})`,
|
|
305
|
+
className: className,
|
|
306
|
+
points: "19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
Check$1.propTypes = {
|
|
310
|
+
x: PropTypes.number,
|
|
311
|
+
y: PropTypes.number,
|
|
312
|
+
className: PropTypes.string
|
|
313
|
+
};
|
|
314
|
+
Check$1.defaultProps = {
|
|
315
|
+
x: 0,
|
|
316
|
+
y: 0
|
|
317
|
+
};
|
|
318
|
+
const Correct = IconBase(Check$1, Emoji$3);
|
|
319
|
+
Correct.propTypes = {
|
|
320
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
321
|
+
shape: PropTypes.oneOf(['round', 'square']),
|
|
322
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
323
|
+
open: PropTypes.bool
|
|
324
|
+
};
|
|
325
|
+
Correct.defaultProps = {
|
|
326
|
+
iconSet: 'check',
|
|
327
|
+
shape: 'round',
|
|
328
|
+
category: undefined,
|
|
329
|
+
open: false
|
|
330
|
+
};
|
|
331
|
+
var correctIcon = withStyles(styles$6)(Correct);
|
|
332
|
+
|
|
333
|
+
const OpenIcon = ({
|
|
334
|
+
bg,
|
|
335
|
+
fg
|
|
336
|
+
}) => /*#__PURE__*/React.createElement("svg", {
|
|
337
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
338
|
+
version: "1.1",
|
|
339
|
+
id: "Layer_1",
|
|
340
|
+
x: "0px",
|
|
341
|
+
y: "0px",
|
|
342
|
+
viewBox: "-283 359 34 35",
|
|
343
|
+
style: {
|
|
344
|
+
enableBackground: 'new -283 359 34 35'
|
|
345
|
+
}
|
|
346
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
347
|
+
className: bg,
|
|
348
|
+
cx: "-266",
|
|
349
|
+
cy: "375.9",
|
|
350
|
+
r: "14"
|
|
351
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
352
|
+
className: bg,
|
|
353
|
+
d: "M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z"
|
|
354
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
355
|
+
className: fg,
|
|
356
|
+
points: "-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6 "
|
|
357
|
+
}));
|
|
358
|
+
|
|
359
|
+
OpenIcon.propTypes = {
|
|
360
|
+
bg: PropTypes.string,
|
|
361
|
+
fg: PropTypes.string
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
const CloseIcon = ({
|
|
365
|
+
bg,
|
|
366
|
+
fg,
|
|
367
|
+
border
|
|
368
|
+
}) => /*#__PURE__*/React.createElement("svg", {
|
|
369
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
370
|
+
version: "1.1",
|
|
371
|
+
x: "0px",
|
|
372
|
+
y: "0px",
|
|
373
|
+
viewBox: "-129.5 127 34 35",
|
|
374
|
+
style: {
|
|
375
|
+
enableBackground: 'new -129.5 127 34 35'
|
|
376
|
+
}
|
|
377
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
378
|
+
style: {
|
|
379
|
+
fill: '#D0CAC5',
|
|
380
|
+
stroke: '#E6E3E0',
|
|
381
|
+
strokeWidth: 0.75,
|
|
382
|
+
strokeMiterlimit: 10
|
|
383
|
+
},
|
|
384
|
+
d: "M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5 C-97.4,153.5-104.3,160.4-112.9,160.4z"
|
|
385
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
386
|
+
style: {
|
|
387
|
+
fill: '#B3ABA4',
|
|
388
|
+
stroke: '#CDC7C2',
|
|
389
|
+
strokeWidth: 0.5,
|
|
390
|
+
strokeMiterlimit: 10
|
|
391
|
+
},
|
|
392
|
+
d: "M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z"
|
|
393
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
394
|
+
className: bg,
|
|
395
|
+
cx: "-114.2",
|
|
396
|
+
cy: "143.5",
|
|
397
|
+
r: "14"
|
|
398
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
399
|
+
className: border,
|
|
400
|
+
d: "M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z"
|
|
401
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
402
|
+
className: fg,
|
|
403
|
+
points: "-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2"
|
|
404
|
+
}));
|
|
405
|
+
|
|
406
|
+
CloseIcon.propTypes = {
|
|
407
|
+
bg: PropTypes.string,
|
|
408
|
+
fg: PropTypes.string,
|
|
409
|
+
border: PropTypes.string
|
|
410
|
+
};
|
|
411
|
+
const styles$5 = {
|
|
412
|
+
root: {
|
|
413
|
+
width: props => props.size || '25px',
|
|
414
|
+
height: props => props.size || '25px'
|
|
415
|
+
},
|
|
416
|
+
hideIconBg: {
|
|
417
|
+
fill: '#bce2ff'
|
|
418
|
+
},
|
|
419
|
+
hideIconFg: {
|
|
420
|
+
fill: '#1a9cff'
|
|
421
|
+
},
|
|
422
|
+
showIconBg: {
|
|
423
|
+
fill: 'white'
|
|
424
|
+
},
|
|
425
|
+
showIconFg: {
|
|
426
|
+
fill: '#1a9cff'
|
|
427
|
+
},
|
|
428
|
+
showIconBorder: {
|
|
429
|
+
fill: '#bce2ff'
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
const CorrectResponse = ({
|
|
434
|
+
open,
|
|
435
|
+
classes,
|
|
436
|
+
className
|
|
437
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
438
|
+
className: classNames(className, classes.root)
|
|
439
|
+
}, open ? /*#__PURE__*/React.createElement(OpenIcon, {
|
|
440
|
+
bg: classes.hideIconBg,
|
|
441
|
+
fg: classes.hideIconFg
|
|
442
|
+
}) : /*#__PURE__*/React.createElement(CloseIcon, {
|
|
443
|
+
bg: classes.showIconBg,
|
|
444
|
+
border: classes.showIconBorder,
|
|
445
|
+
fg: classes.showIconFg
|
|
446
|
+
}));
|
|
447
|
+
|
|
448
|
+
CorrectResponse.propTypes = {
|
|
449
|
+
classes: PropTypes.object.isRequired,
|
|
450
|
+
open: PropTypes.bool,
|
|
451
|
+
size: PropTypes.string,
|
|
452
|
+
className: PropTypes.string
|
|
453
|
+
};
|
|
454
|
+
CorrectResponse.defaultProps = {
|
|
455
|
+
open: false
|
|
456
|
+
};
|
|
457
|
+
var correctResponseIcon = withStyles(styles$5)(CorrectResponse);
|
|
458
|
+
|
|
459
|
+
const Ex = ({
|
|
460
|
+
className
|
|
461
|
+
}) => /*#__PURE__*/React.createElement("g", {
|
|
462
|
+
transform: 'translate(0.5, 0.5)'
|
|
463
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
464
|
+
x: "11",
|
|
465
|
+
y: "17.3",
|
|
466
|
+
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",
|
|
467
|
+
className: className,
|
|
468
|
+
width: "16.6",
|
|
469
|
+
height: "3.7"
|
|
470
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
471
|
+
x: "17.4",
|
|
472
|
+
y: "10.7",
|
|
473
|
+
transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",
|
|
474
|
+
className: className,
|
|
475
|
+
width: "3.7",
|
|
476
|
+
height: "16.6"
|
|
477
|
+
}));
|
|
478
|
+
|
|
479
|
+
Ex.propTypes = {
|
|
480
|
+
className: PropTypes.string
|
|
481
|
+
};
|
|
482
|
+
|
|
483
|
+
const Emoji$2 = ({
|
|
484
|
+
className
|
|
485
|
+
}) => /*#__PURE__*/React.createElement("g", {
|
|
486
|
+
transform: 'translate(1,0)'
|
|
487
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
488
|
+
x: "21",
|
|
489
|
+
y: "12.9",
|
|
490
|
+
className: className,
|
|
491
|
+
width: "3.7",
|
|
492
|
+
height: "4.7"
|
|
493
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
494
|
+
x: "12.7",
|
|
495
|
+
y: "12.9",
|
|
496
|
+
className: className,
|
|
497
|
+
width: "3.7",
|
|
498
|
+
height: "4.7"
|
|
499
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
500
|
+
x: "12.2",
|
|
501
|
+
y: "22.5",
|
|
502
|
+
className: className,
|
|
503
|
+
width: "13",
|
|
504
|
+
height: "3.3"
|
|
505
|
+
}));
|
|
506
|
+
|
|
507
|
+
Emoji$2.propTypes = {
|
|
508
|
+
className: PropTypes.string
|
|
509
|
+
};
|
|
510
|
+
const styles$4 = getStyles('incorrect', '#fbf2e3', '#fcb733');
|
|
511
|
+
const Incorrect = IconBase(Ex, Emoji$2);
|
|
512
|
+
var incorrectIcon = withStyles(styles$4)(Incorrect);
|
|
513
|
+
Incorrect.propTypes = {
|
|
514
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
515
|
+
shape: PropTypes.oneOf(['round', 'square']),
|
|
516
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
517
|
+
open: PropTypes.bool
|
|
518
|
+
};
|
|
519
|
+
Incorrect.defaultProps = {
|
|
520
|
+
iconSet: 'check',
|
|
521
|
+
shape: 'round',
|
|
522
|
+
category: undefined,
|
|
523
|
+
open: false
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
const Lines = () => {
|
|
527
|
+
const style = {
|
|
528
|
+
fill: 'none',
|
|
529
|
+
stroke: '#BCE2FF',
|
|
530
|
+
strokeWidth: 2,
|
|
531
|
+
strokeMiterlimit: 10
|
|
532
|
+
};
|
|
533
|
+
return /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("line", {
|
|
534
|
+
style: style,
|
|
535
|
+
x1: "-98",
|
|
536
|
+
y1: "142",
|
|
537
|
+
x2: "-114.6",
|
|
538
|
+
y2: "142"
|
|
539
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
540
|
+
style: style,
|
|
541
|
+
x1: "-98",
|
|
542
|
+
y1: "146.3",
|
|
543
|
+
x2: "-114.6",
|
|
544
|
+
y2: "146.3"
|
|
545
|
+
}), /*#__PURE__*/React.createElement("line", {
|
|
546
|
+
style: style,
|
|
547
|
+
x1: "-104",
|
|
548
|
+
y1: "150.7",
|
|
549
|
+
x2: "-114.6",
|
|
550
|
+
y2: "150.7"
|
|
551
|
+
}));
|
|
552
|
+
};
|
|
553
|
+
|
|
554
|
+
const Root$1 = ({
|
|
555
|
+
children,
|
|
556
|
+
size
|
|
557
|
+
}) => /*#__PURE__*/React.createElement(Sized, {
|
|
558
|
+
size: size
|
|
559
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
560
|
+
version: "1.1",
|
|
561
|
+
viewBox: "-128 129 31 31",
|
|
562
|
+
style: {
|
|
563
|
+
enableBackground: 'new -128 129 31 31'
|
|
564
|
+
}
|
|
565
|
+
}, children));
|
|
566
|
+
|
|
567
|
+
Root$1.propTypes = {
|
|
568
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
|
569
|
+
size: PropTypes.number
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
const GreyInfo = () => {
|
|
573
|
+
return /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
574
|
+
x: "-123.9",
|
|
575
|
+
y: "135.3",
|
|
576
|
+
style: {
|
|
577
|
+
fill: '#D0CAC5',
|
|
578
|
+
stroke: '#E6E3E0',
|
|
579
|
+
strokeWidth: 0.75,
|
|
580
|
+
strokeLinejoin: 'round',
|
|
581
|
+
strokeMiterlimit: 10
|
|
582
|
+
},
|
|
583
|
+
width: "4.1",
|
|
584
|
+
height: "4.1"
|
|
585
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
586
|
+
style: {
|
|
587
|
+
fill: '#D0CAC5',
|
|
588
|
+
stroke: '#E6E3E0',
|
|
589
|
+
strokeWidth: 0.75,
|
|
590
|
+
strokeLinejoin: 'round',
|
|
591
|
+
strokeMiterlimit: 10
|
|
592
|
+
},
|
|
593
|
+
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
594
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
595
|
+
x: "-124.7",
|
|
596
|
+
y: "134.7",
|
|
597
|
+
style: {
|
|
598
|
+
fill: '#B3ABA4',
|
|
599
|
+
stroke: '#CDC7C2',
|
|
600
|
+
strokeWidth: 0.5,
|
|
601
|
+
strokeLinecap: 'round',
|
|
602
|
+
strokeLinejoin: 'round',
|
|
603
|
+
strokeMiterlimit: 10
|
|
604
|
+
},
|
|
605
|
+
width: "4.1",
|
|
606
|
+
height: "4.1"
|
|
607
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
608
|
+
style: {
|
|
609
|
+
fill: '#B3ABA4',
|
|
610
|
+
stroke: '#CDC7C2',
|
|
611
|
+
strokeWidth: 0.5,
|
|
612
|
+
strokeLinecap: 'round',
|
|
613
|
+
strokeLinejoin: 'round',
|
|
614
|
+
strokeMiterlimit: 10
|
|
615
|
+
},
|
|
616
|
+
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
617
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
618
|
+
x: "-125.5",
|
|
619
|
+
y: "134",
|
|
620
|
+
style: {
|
|
621
|
+
fill: '#7FABC6'
|
|
622
|
+
},
|
|
623
|
+
width: "4.1",
|
|
624
|
+
height: "4.1"
|
|
625
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
626
|
+
style: {
|
|
627
|
+
fill: '#7FABC6'
|
|
628
|
+
},
|
|
629
|
+
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
630
|
+
}));
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
const BlueInfo = () => /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
634
|
+
x: "-123.9",
|
|
635
|
+
y: "135.3",
|
|
636
|
+
style: {
|
|
637
|
+
fill: '#D0CAC5',
|
|
638
|
+
stroke: '#E6E3E0',
|
|
639
|
+
strokeWidth: 0.75,
|
|
640
|
+
strokeLinejoin: 'round',
|
|
641
|
+
strokeMiterlimit: 10
|
|
642
|
+
},
|
|
643
|
+
width: "4.1",
|
|
644
|
+
height: "4.1"
|
|
645
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
646
|
+
style: {
|
|
647
|
+
fill: '#D0CAC5',
|
|
648
|
+
stroke: '#E6E3E0',
|
|
649
|
+
strokeWidth: 0.75,
|
|
650
|
+
strokeLinejoin: 'round',
|
|
651
|
+
strokeMiterlimit: 10
|
|
652
|
+
},
|
|
653
|
+
points: "-119.8,150.4 -119.8,142.2 -125,142.2 -125,144.9 -122.6,144.9 -122.6,150.4 -125.6,150.4 -125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
654
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
655
|
+
x: "-124.7",
|
|
656
|
+
y: "134.7",
|
|
657
|
+
style: {
|
|
658
|
+
fill: '#B3ABA4',
|
|
659
|
+
stroke: '#CDC7C2',
|
|
660
|
+
strokeWidth: 0.5,
|
|
661
|
+
strokeLinecap: 'round',
|
|
662
|
+
strokeLinejoin: 'round',
|
|
663
|
+
strokeMiterlimit: 10
|
|
664
|
+
},
|
|
665
|
+
width: "4.1",
|
|
666
|
+
height: "4.1"
|
|
667
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
668
|
+
style: {
|
|
669
|
+
fill: '#B3ABA4',
|
|
670
|
+
stroke: '#CDC7C2',
|
|
671
|
+
strokeWidth: 0.5,
|
|
672
|
+
strokeLinecap: 'round',
|
|
673
|
+
strokeLinejoin: 'round',
|
|
674
|
+
strokeMiterlimit: 10
|
|
675
|
+
},
|
|
676
|
+
points: "-120.6,149.8 -120.6,141.5 -125.8,141.5 -125.8,144.3 -123.3,144.3 -123.3,149.8 -126.4,149.8 -126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
677
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
678
|
+
x: "-125.5",
|
|
679
|
+
y: "134",
|
|
680
|
+
style: {
|
|
681
|
+
fill: '#1A9CFF'
|
|
682
|
+
},
|
|
683
|
+
width: "4.1",
|
|
684
|
+
height: "4.1"
|
|
685
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
686
|
+
style: {
|
|
687
|
+
fill: '#1A9CFF'
|
|
688
|
+
},
|
|
689
|
+
points: "-121.4,149.1 -121.4,140.9 -126.5,140.9 -126.5,143.6 -124.1,143.6 -124.1,149.1 -127.1,149.1 -127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
690
|
+
}));
|
|
691
|
+
|
|
692
|
+
class Instructions extends React.Component {
|
|
693
|
+
constructor(props) {
|
|
694
|
+
super(props);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
render() {
|
|
698
|
+
if (this.props.open === true) {
|
|
699
|
+
return /*#__PURE__*/React.createElement(Root$1, null, /*#__PURE__*/React.createElement(GreyInfo, null), /*#__PURE__*/React.createElement(Lines, null));
|
|
700
|
+
} else {
|
|
701
|
+
return /*#__PURE__*/React.createElement(Root$1, null, /*#__PURE__*/React.createElement(BlueInfo, null), /*#__PURE__*/React.createElement(Lines, null));
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
}
|
|
706
|
+
Instructions.propTypes = {
|
|
707
|
+
open: PropTypes.bool
|
|
708
|
+
};
|
|
709
|
+
Instructions.defaultProps = {
|
|
710
|
+
open: false
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
const Glint = ({
|
|
714
|
+
fill
|
|
715
|
+
}) => /*#__PURE__*/React.createElement("path", {
|
|
716
|
+
fill: fill,
|
|
717
|
+
d: "M-130.4,142.1c0-2.1,1.7-3.9,3.9-3.9c0.3,0,0.5,0,0.8,0.1c-0.6-0.8-1.5-1.3-2.6-1.3c-1.8,0-3.3,1.5-3.3,3.3c0,1.1,0.5,2,1.3,2.6C-130.4,142.6-130.4,142.4-130.4,142.1z"
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
Glint.propTypes = {
|
|
721
|
+
fill: PropTypes.string
|
|
722
|
+
};
|
|
723
|
+
class LearnMore extends React.Component {
|
|
724
|
+
render() {
|
|
725
|
+
const {
|
|
726
|
+
classes,
|
|
727
|
+
size
|
|
728
|
+
} = this.props;
|
|
729
|
+
|
|
730
|
+
if (this.props.open === true) {
|
|
731
|
+
return /*#__PURE__*/React.createElement(Sized, {
|
|
732
|
+
size: size
|
|
733
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
734
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
735
|
+
viewBox: "-135 129 16 32"
|
|
736
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
737
|
+
className: classes.hideBg,
|
|
738
|
+
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
|
|
739
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
740
|
+
className: classes.hideBg,
|
|
741
|
+
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
|
|
742
|
+
}), /*#__PURE__*/React.createElement(Glint, {
|
|
743
|
+
fill: classes.hideFg.fill
|
|
744
|
+
})));
|
|
745
|
+
} else {
|
|
746
|
+
return /*#__PURE__*/React.createElement(Sized, {
|
|
747
|
+
size: size
|
|
748
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
749
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
750
|
+
viewBox: "-135 129 16 31"
|
|
751
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
752
|
+
fill: "#D0CAC5",
|
|
753
|
+
stroke: "#E6E3E0",
|
|
754
|
+
className: "st0",
|
|
755
|
+
d: "M-120.7,142.4c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-121.6,146-120.7,144.3-120.7,142.4z"
|
|
756
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
757
|
+
fill: "#D0CAC5",
|
|
758
|
+
stroke: "#E6E3E0",
|
|
759
|
+
className: "st0",
|
|
760
|
+
d: "M-124.4,154.3h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-123.6,153.9-123.9,154.3-124.4,154.3z"
|
|
761
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
762
|
+
fill: "#B3ABA4",
|
|
763
|
+
stroke: "#CDC7C2",
|
|
764
|
+
className: "st1",
|
|
765
|
+
d: "M-121.3,141.8c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.2,145.3-121.3,143.7-121.3,141.8z"
|
|
766
|
+
}), ",", /*#__PURE__*/React.createElement("path", {
|
|
767
|
+
fill: "#B3ABA4",
|
|
768
|
+
stroke: "#CDC7C2",
|
|
769
|
+
className: "st1",
|
|
770
|
+
d: "M-125,153.7h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.2,153.3-124.6,153.7-125,153.7z"
|
|
771
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
772
|
+
className: classes.showBg,
|
|
773
|
+
d: "M-122,141.1c0-3.7-3.3-6.6-7.1-5.8c-2.4,0.5-4.3,2.4-4.7,4.8c-0.4,2.3,0.6,4.4,2.2,5.7c0.4,0.3,0.6,0.8,0.6,1.3v1.9h6.1v-1.9c0-0.5,0.2-1,0.6-1.3C-122.8,144.7-122,143-122,141.1z"
|
|
774
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
775
|
+
className: classes.showBg,
|
|
776
|
+
d: "M-125.7,153h-4.5c-0.4,0-0.8-0.4-0.8-0.8v-1.6h6.1v1.6C-124.9,152.7-125.2,153-125.7,153z"
|
|
777
|
+
}), /*#__PURE__*/React.createElement(Glint, {
|
|
778
|
+
fill: classes.hideFg.fill
|
|
779
|
+
})));
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
}
|
|
784
|
+
LearnMore.propTypes = {
|
|
785
|
+
classes: PropTypes.object.isRequired,
|
|
786
|
+
size: PropTypes.number
|
|
787
|
+
};
|
|
788
|
+
const styles$3 = {
|
|
789
|
+
showBg: {
|
|
790
|
+
fill: '#1a9cff'
|
|
791
|
+
},
|
|
792
|
+
hideFg: {
|
|
793
|
+
fill: '#1a9cff'
|
|
794
|
+
},
|
|
795
|
+
hideBg: {
|
|
796
|
+
fill: '#bce2ff'
|
|
797
|
+
}
|
|
798
|
+
};
|
|
799
|
+
LearnMore.propTypes = {
|
|
800
|
+
open: PropTypes.bool
|
|
801
|
+
};
|
|
802
|
+
LearnMore.defaultProps = {
|
|
803
|
+
open: false
|
|
804
|
+
};
|
|
805
|
+
var learnMoreIcon = withStyles(styles$3)(LearnMore);
|
|
806
|
+
|
|
807
|
+
const Exclamation = ({
|
|
808
|
+
className
|
|
809
|
+
}) => /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
810
|
+
x: "19.3",
|
|
811
|
+
y: "10.3",
|
|
812
|
+
className: className,
|
|
813
|
+
width: "4.5",
|
|
814
|
+
height: "12.7"
|
|
815
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
816
|
+
x: "19.3",
|
|
817
|
+
y: "26.2",
|
|
818
|
+
className: className,
|
|
819
|
+
width: "4.5",
|
|
820
|
+
height: "4.5"
|
|
821
|
+
}));
|
|
822
|
+
|
|
823
|
+
const Octagon = ({
|
|
824
|
+
className
|
|
825
|
+
}) => /*#__PURE__*/React.createElement("polygon", {
|
|
826
|
+
className: className,
|
|
827
|
+
points: "14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5"
|
|
828
|
+
});
|
|
829
|
+
|
|
830
|
+
const Emoji$1 = ({
|
|
831
|
+
className
|
|
832
|
+
}) => /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
833
|
+
x: "23.8",
|
|
834
|
+
y: "15",
|
|
835
|
+
className: className,
|
|
836
|
+
width: "3.5",
|
|
837
|
+
height: "4.4"
|
|
838
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
839
|
+
x: "16",
|
|
840
|
+
y: "15",
|
|
841
|
+
className: className,
|
|
842
|
+
width: "3.5",
|
|
843
|
+
height: "4.4"
|
|
844
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
845
|
+
className: className,
|
|
846
|
+
d: "M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0 C25.7,26.4,25,27.1,24.2,27.1z"
|
|
847
|
+
}));
|
|
848
|
+
|
|
849
|
+
Emoji$1.propTypes = Octagon.propTypes = Exclamation.propTypes = {
|
|
850
|
+
className: PropTypes.string
|
|
851
|
+
};
|
|
852
|
+
const styles$2 = getStyles('nothing-submitted', 'white', '#464146');
|
|
853
|
+
class NothingSubmitted extends React.Component {
|
|
854
|
+
constructor(props) {
|
|
855
|
+
super(props);
|
|
856
|
+
const {
|
|
857
|
+
classes
|
|
858
|
+
} = this.props;
|
|
859
|
+
this.icons = {
|
|
860
|
+
check: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
861
|
+
className: classes.bg
|
|
862
|
+
}), /*#__PURE__*/React.createElement(Exclamation, {
|
|
863
|
+
className: classes.fg
|
|
864
|
+
})),
|
|
865
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
866
|
+
className: classes.bg
|
|
867
|
+
}), /*#__PURE__*/React.createElement(Emoji$1, {
|
|
868
|
+
className: classes.fg
|
|
869
|
+
})),
|
|
870
|
+
feedback: {
|
|
871
|
+
check: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
872
|
+
className: classes.bg
|
|
873
|
+
}), /*#__PURE__*/React.createElement(Emoji$1, {
|
|
874
|
+
className: classes.fg
|
|
875
|
+
})),
|
|
876
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
877
|
+
className: classes.bg
|
|
878
|
+
}), /*#__PURE__*/React.createElement(Emoji$1, {
|
|
879
|
+
className: classes.fg
|
|
880
|
+
})),
|
|
881
|
+
square: {
|
|
882
|
+
check: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
883
|
+
className: classes.bg
|
|
884
|
+
}), /*#__PURE__*/React.createElement(Exclamation, {
|
|
885
|
+
className: classes.fg
|
|
886
|
+
})),
|
|
887
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Octagon, {
|
|
888
|
+
className: classes.bg
|
|
889
|
+
}), /*#__PURE__*/React.createElement(Emoji$1, {
|
|
890
|
+
className: classes.fg
|
|
891
|
+
})),
|
|
892
|
+
open: {
|
|
893
|
+
check: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Exclamation, {
|
|
894
|
+
className: classes.bg
|
|
895
|
+
})),
|
|
896
|
+
emoji: /*#__PURE__*/React.createElement(IconRoot, null, /*#__PURE__*/React.createElement(Emoji$1, {
|
|
897
|
+
className: classes.bg
|
|
898
|
+
}))
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
render() {
|
|
906
|
+
if (this.props.category === undefined) {
|
|
907
|
+
return this.icons[this.props.iconSet];
|
|
908
|
+
} else {
|
|
909
|
+
if (this.props.shape === undefined) {
|
|
910
|
+
return this.icons.feedback[this.props.iconSet];
|
|
911
|
+
} else {
|
|
912
|
+
if (this.props.open === true) {
|
|
913
|
+
return this.icons.feedback.square.open[this.props.iconSet];
|
|
914
|
+
} else {
|
|
915
|
+
return this.icons.feedback.square[this.props.iconSet];
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
}
|
|
922
|
+
NothingSubmitted.propTypes = {
|
|
923
|
+
classes: PropTypes.object.isRequired
|
|
924
|
+
};
|
|
925
|
+
NothingSubmitted.propTypes = {
|
|
926
|
+
iconSet: PropTypes.oneOf(['emoji', 'check', undefined]),
|
|
927
|
+
shape: PropTypes.oneOf(['square', undefined]),
|
|
928
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
929
|
+
open: PropTypes.bool
|
|
930
|
+
};
|
|
931
|
+
NothingSubmitted.defaultProps = {
|
|
932
|
+
iconSet: 'check',
|
|
933
|
+
shape: undefined,
|
|
934
|
+
category: undefined,
|
|
935
|
+
open: false
|
|
936
|
+
};
|
|
937
|
+
var nothingSubmittedIcon = withStyles(styles$2)(NothingSubmitted);
|
|
938
|
+
|
|
939
|
+
const styles$1 = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
|
|
940
|
+
|
|
941
|
+
const Check = ({
|
|
942
|
+
className
|
|
943
|
+
}) => /*#__PURE__*/React.createElement("g", {
|
|
944
|
+
transform: 'translate(0, 0)'
|
|
945
|
+
}, /*#__PURE__*/React.createElement("polygon", {
|
|
946
|
+
className: className,
|
|
947
|
+
points: "27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6"
|
|
948
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
949
|
+
className: className,
|
|
950
|
+
points: "16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3"
|
|
951
|
+
}));
|
|
952
|
+
|
|
953
|
+
const Emoji = ({
|
|
954
|
+
className
|
|
955
|
+
}) => /*#__PURE__*/React.createElement("g", {
|
|
956
|
+
transform: 'translate(2, 0)'
|
|
957
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
|
958
|
+
x: "20.6",
|
|
959
|
+
y: "11.8",
|
|
960
|
+
className: className,
|
|
961
|
+
width: "4",
|
|
962
|
+
height: "5"
|
|
963
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
964
|
+
x: "11.5",
|
|
965
|
+
y: "11.8",
|
|
966
|
+
className: className,
|
|
967
|
+
width: "4",
|
|
968
|
+
height: "5"
|
|
969
|
+
}), /*#__PURE__*/React.createElement("rect", {
|
|
970
|
+
x: "10.9",
|
|
971
|
+
y: "22.9",
|
|
972
|
+
transform: "matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)",
|
|
973
|
+
className: className,
|
|
974
|
+
width: "14.3",
|
|
975
|
+
height: "3.7"
|
|
976
|
+
}));
|
|
977
|
+
|
|
978
|
+
Emoji.propTypes = Check.propTypes = {
|
|
979
|
+
className: PropTypes.string
|
|
980
|
+
};
|
|
981
|
+
const PartiallyCorrect = IconBase(Check, Emoji);
|
|
982
|
+
PartiallyCorrect.propTypes = {
|
|
983
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
984
|
+
shape: PropTypes.oneOf(['round', 'square']),
|
|
985
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
986
|
+
open: PropTypes.bool
|
|
987
|
+
};
|
|
988
|
+
PartiallyCorrect.defaultProps = {
|
|
989
|
+
iconSet: 'check',
|
|
990
|
+
shape: 'round',
|
|
991
|
+
category: undefined,
|
|
992
|
+
open: false
|
|
993
|
+
};
|
|
994
|
+
var partiallyCorrectIcon = withStyles(styles$1)(PartiallyCorrect);
|
|
995
|
+
|
|
996
|
+
const Info = ({
|
|
997
|
+
fg
|
|
998
|
+
}) => /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("rect", {
|
|
999
|
+
x: "-115",
|
|
1000
|
+
y: "136.7",
|
|
1001
|
+
className: fg,
|
|
1002
|
+
width: "3",
|
|
1003
|
+
height: "3"
|
|
1004
|
+
}), /*#__PURE__*/React.createElement("polygon", {
|
|
1005
|
+
className: fg,
|
|
1006
|
+
points: "-112,147.7 -112,141.7 -115.8,141.7 -115.8,143.7 -114,143.7 -114,147.7 -116.2,147.7 -116.2,149.7 -109.8,149.7 -109.8,147.7"
|
|
1007
|
+
}));
|
|
1008
|
+
|
|
1009
|
+
Info.propTypes = {
|
|
1010
|
+
fg: PropTypes.string
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
const Border = ({
|
|
1014
|
+
className
|
|
1015
|
+
}) => /*#__PURE__*/React.createElement("path", {
|
|
1016
|
+
className: className,
|
|
1017
|
+
d: "M-113,158.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105,158.5-113,158.5zM-113,130.5c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-105.6,130.5-113,130.5z"
|
|
1018
|
+
});
|
|
1019
|
+
|
|
1020
|
+
Border.propTypes = {
|
|
1021
|
+
className: PropTypes.string
|
|
1022
|
+
};
|
|
1023
|
+
|
|
1024
|
+
const Circle = () => /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
|
|
1025
|
+
style: {
|
|
1026
|
+
fill: '#D0CAC5',
|
|
1027
|
+
stroke: '#E6E3E0',
|
|
1028
|
+
strokeWidth: 0.75,
|
|
1029
|
+
strokeMiterlimit: 10
|
|
1030
|
+
},
|
|
1031
|
+
d: "M-111.7,160.9c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5C-96.2,154-103.1,160.9-111.7,160.9z"
|
|
1032
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
1033
|
+
style: {
|
|
1034
|
+
fill: '#B3ABA4',
|
|
1035
|
+
stroke: '#CDC7C2',
|
|
1036
|
+
strokeWidth: 0.5,
|
|
1037
|
+
strokeMiterlimit: 10
|
|
1038
|
+
},
|
|
1039
|
+
d: "M-112,159.5c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-104,159.5-112,159.5z"
|
|
1040
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
1041
|
+
style: {
|
|
1042
|
+
fill: '#FFFFFF'
|
|
1043
|
+
},
|
|
1044
|
+
cx: "-113",
|
|
1045
|
+
cy: "144",
|
|
1046
|
+
r: "14"
|
|
1047
|
+
}));
|
|
1048
|
+
|
|
1049
|
+
const Root = ({
|
|
1050
|
+
children,
|
|
1051
|
+
size
|
|
1052
|
+
}) => {
|
|
1053
|
+
size = normalizeSize(size);
|
|
1054
|
+
const style = {
|
|
1055
|
+
height: size,
|
|
1056
|
+
width: size,
|
|
1057
|
+
display: 'inline-block',
|
|
1058
|
+
position: 'relative'
|
|
1059
|
+
};
|
|
1060
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1061
|
+
style: style
|
|
1062
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
1063
|
+
preserveAspectRatio: "xMinYMin meet",
|
|
1064
|
+
viewBox: "-129 128 34 34"
|
|
1065
|
+
}, children));
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
Root.propTypes = {
|
|
1069
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
|
1070
|
+
size: PropTypes.number
|
|
1071
|
+
};
|
|
1072
|
+
const styles = {
|
|
1073
|
+
fg: {
|
|
1074
|
+
fill: '#1a9cff'
|
|
1075
|
+
},
|
|
1076
|
+
bg: {
|
|
1077
|
+
fill: '#bce2ff'
|
|
1078
|
+
},
|
|
1079
|
+
border: {
|
|
1080
|
+
fill: '#bbe3fd'
|
|
1081
|
+
},
|
|
1082
|
+
whiteBorder: {
|
|
1083
|
+
fill: 'white'
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
class ShowRationale extends React.Component {
|
|
1087
|
+
constructor(props) {
|
|
1088
|
+
super(props);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
render() {
|
|
1092
|
+
const {
|
|
1093
|
+
classes
|
|
1094
|
+
} = this.props;
|
|
1095
|
+
const info = /*#__PURE__*/React.createElement(Info, {
|
|
1096
|
+
fg: classes.fg
|
|
1097
|
+
});
|
|
1098
|
+
const icons = {
|
|
1099
|
+
check: /*#__PURE__*/React.createElement(Root, null, /*#__PURE__*/React.createElement(Circle, null), info, /*#__PURE__*/React.createElement(Border, {
|
|
1100
|
+
className: classes.border
|
|
1101
|
+
})),
|
|
1102
|
+
emoji: /*#__PURE__*/React.createElement(Root, null, /*#__PURE__*/React.createElement(Circle, null), info, /*#__PURE__*/React.createElement(Border, {
|
|
1103
|
+
className: classes.border
|
|
1104
|
+
})),
|
|
1105
|
+
open: {
|
|
1106
|
+
check: /*#__PURE__*/React.createElement(Root, null, /*#__PURE__*/React.createElement("circle", {
|
|
1107
|
+
style: {
|
|
1108
|
+
fill: '#FFFFFF'
|
|
1109
|
+
},
|
|
1110
|
+
cx: "-113",
|
|
1111
|
+
cy: "144",
|
|
1112
|
+
r: "14"
|
|
1113
|
+
}), /*#__PURE__*/React.createElement(Info, {
|
|
1114
|
+
fg: classes.bg,
|
|
1115
|
+
border: classes.whiteBorder
|
|
1116
|
+
})),
|
|
1117
|
+
emoji: /*#__PURE__*/React.createElement(Root, null, /*#__PURE__*/React.createElement("circle", {
|
|
1118
|
+
style: {
|
|
1119
|
+
fill: '#FFFFFF'
|
|
1120
|
+
},
|
|
1121
|
+
cx: "-113",
|
|
1122
|
+
cy: "144",
|
|
1123
|
+
r: "14"
|
|
1124
|
+
}), /*#__PURE__*/React.createElement(Info, {
|
|
1125
|
+
fg: classes.bg,
|
|
1126
|
+
border: classes.border
|
|
1127
|
+
}))
|
|
1128
|
+
}
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
if (this.props.open === true) {
|
|
1132
|
+
return icons.open[this.props.iconSet];
|
|
1133
|
+
} else {
|
|
1134
|
+
return icons[this.props.iconSet];
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
}
|
|
1139
|
+
ShowRationale.propTypes = {
|
|
1140
|
+
classes: PropTypes.object.isRequired
|
|
1141
|
+
};
|
|
1142
|
+
ShowRationale.propTypes = {
|
|
1143
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
1144
|
+
open: PropTypes.bool
|
|
1145
|
+
};
|
|
1146
|
+
ShowRationale.defaultProps = {
|
|
1147
|
+
iconSet: 'check',
|
|
1148
|
+
open: false
|
|
1149
|
+
};
|
|
1150
|
+
var showRationaleIcon = withStyles(styles)(ShowRationale);
|
|
1151
|
+
|
|
1152
|
+
export { correctIcon as Correct, correctResponseIcon as CorrectResponse, incorrectIcon as Incorrect, Instructions, learnMoreIcon as LearnMore, nothingSubmittedIcon as NothingSubmitted, partiallyCorrectIcon as PartiallyCorrect, showRationaleIcon as ShowRationale };
|
|
1153
|
+
//# sourceMappingURL=index.js.map
|