@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,189 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Sized from './sized';
|
|
4
|
+
const Lines = () => {
|
|
5
|
+
const style = {
|
|
6
|
+
fill: 'none',
|
|
7
|
+
stroke: '#BCE2FF',
|
|
8
|
+
strokeWidth: 2,
|
|
9
|
+
strokeMiterlimit: 10,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<g>
|
|
14
|
+
<line style={style} x1="-98" y1="142" x2="-114.6" y2="142" />
|
|
15
|
+
<line style={style} x1="-98" y1="146.3" x2="-114.6" y2="146.3" />
|
|
16
|
+
<line style={style} x1="-104" y1="150.7" x2="-114.6" y2="150.7" />
|
|
17
|
+
</g>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const Root = ({ children, size }) => (
|
|
22
|
+
<Sized size={size}>
|
|
23
|
+
<svg version="1.1" viewBox="-128 129 31 31" style={{ enableBackground: 'new -128 129 31 31' }}>
|
|
24
|
+
{children}
|
|
25
|
+
</svg>
|
|
26
|
+
</Sized>
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
Root.propTypes = {
|
|
30
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
|
31
|
+
size: PropTypes.number,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const GreyInfo = () => {
|
|
35
|
+
return (
|
|
36
|
+
<g>
|
|
37
|
+
<rect
|
|
38
|
+
x="-123.9"
|
|
39
|
+
y="135.3"
|
|
40
|
+
style={{
|
|
41
|
+
fill: '#D0CAC5',
|
|
42
|
+
stroke: '#E6E3E0',
|
|
43
|
+
strokeWidth: 0.75,
|
|
44
|
+
strokeLinejoin: 'round',
|
|
45
|
+
strokeMiterlimit: 10,
|
|
46
|
+
}}
|
|
47
|
+
width="4.1"
|
|
48
|
+
height="4.1"
|
|
49
|
+
/>
|
|
50
|
+
<polygon
|
|
51
|
+
style={{
|
|
52
|
+
fill: '#D0CAC5',
|
|
53
|
+
stroke: '#E6E3E0',
|
|
54
|
+
strokeWidth: 0.75,
|
|
55
|
+
strokeLinejoin: 'round',
|
|
56
|
+
strokeMiterlimit: 10,
|
|
57
|
+
}}
|
|
58
|
+
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
|
|
59
|
+
-125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
60
|
+
/>
|
|
61
|
+
<rect
|
|
62
|
+
x="-124.7"
|
|
63
|
+
y="134.7"
|
|
64
|
+
style={{
|
|
65
|
+
fill: '#B3ABA4',
|
|
66
|
+
stroke: '#CDC7C2',
|
|
67
|
+
strokeWidth: 0.5,
|
|
68
|
+
strokeLinecap: 'round',
|
|
69
|
+
strokeLinejoin: 'round',
|
|
70
|
+
strokeMiterlimit: 10,
|
|
71
|
+
}}
|
|
72
|
+
width="4.1"
|
|
73
|
+
height="4.1"
|
|
74
|
+
/>
|
|
75
|
+
|
|
76
|
+
<polygon
|
|
77
|
+
style={{
|
|
78
|
+
fill: '#B3ABA4',
|
|
79
|
+
stroke: '#CDC7C2',
|
|
80
|
+
strokeWidth: 0.5,
|
|
81
|
+
strokeLinecap: 'round',
|
|
82
|
+
strokeLinejoin: 'round',
|
|
83
|
+
strokeMiterlimit: 10,
|
|
84
|
+
}}
|
|
85
|
+
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
|
|
86
|
+
-126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
87
|
+
/>
|
|
88
|
+
<rect x="-125.5" y="134" style={{ fill: '#7FABC6' }} width="4.1" height="4.1" />
|
|
89
|
+
<polygon
|
|
90
|
+
style={{ fill: '#7FABC6' }}
|
|
91
|
+
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
|
|
92
|
+
-127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
93
|
+
/>
|
|
94
|
+
</g>
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const BlueInfo = () => (
|
|
99
|
+
<g>
|
|
100
|
+
<rect
|
|
101
|
+
x="-123.9"
|
|
102
|
+
y="135.3"
|
|
103
|
+
style={{
|
|
104
|
+
fill: '#D0CAC5',
|
|
105
|
+
stroke: '#E6E3E0',
|
|
106
|
+
strokeWidth: 0.75,
|
|
107
|
+
strokeLinejoin: 'round',
|
|
108
|
+
strokeMiterlimit: 10,
|
|
109
|
+
}}
|
|
110
|
+
width="4.1"
|
|
111
|
+
height="4.1"
|
|
112
|
+
/>
|
|
113
|
+
<polygon
|
|
114
|
+
style={{
|
|
115
|
+
fill: '#D0CAC5',
|
|
116
|
+
stroke: '#E6E3E0',
|
|
117
|
+
strokeWidth: 0.75,
|
|
118
|
+
strokeLinejoin: 'round',
|
|
119
|
+
strokeMiterlimit: 10,
|
|
120
|
+
}}
|
|
121
|
+
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
|
|
122
|
+
-125.6,153.2 -116.8,153.2 -116.8,150.4 "
|
|
123
|
+
/>
|
|
124
|
+
<rect
|
|
125
|
+
x="-124.7"
|
|
126
|
+
y="134.7"
|
|
127
|
+
style={{
|
|
128
|
+
fill: '#B3ABA4',
|
|
129
|
+
stroke: '#CDC7C2',
|
|
130
|
+
strokeWidth: 0.5,
|
|
131
|
+
strokeLinecap: 'round',
|
|
132
|
+
strokeLinejoin: 'round',
|
|
133
|
+
strokeMiterlimit: 10,
|
|
134
|
+
}}
|
|
135
|
+
width="4.1"
|
|
136
|
+
height="4.1"
|
|
137
|
+
/>
|
|
138
|
+
<polygon
|
|
139
|
+
style={{
|
|
140
|
+
fill: '#B3ABA4',
|
|
141
|
+
stroke: '#CDC7C2',
|
|
142
|
+
strokeWidth: 0.5,
|
|
143
|
+
strokeLinecap: 'round',
|
|
144
|
+
strokeLinejoin: 'round',
|
|
145
|
+
strokeMiterlimit: 10,
|
|
146
|
+
}}
|
|
147
|
+
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
|
|
148
|
+
-126.4,152.5 -117.6,152.5 -117.6,149.8 "
|
|
149
|
+
/>
|
|
150
|
+
<rect x="-125.5" y="134" style={{ fill: '#1A9CFF' }} width="4.1" height="4.1" />
|
|
151
|
+
<polygon
|
|
152
|
+
style={{ fill: '#1A9CFF' }}
|
|
153
|
+
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
|
|
154
|
+
-127.1,151.9 -118.4,151.9 -118.4,149.1 "
|
|
155
|
+
/>
|
|
156
|
+
</g>
|
|
157
|
+
);
|
|
158
|
+
|
|
159
|
+
export default class Instructions extends React.Component {
|
|
160
|
+
constructor(props) {
|
|
161
|
+
super(props);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
render() {
|
|
165
|
+
if (this.props.open === true) {
|
|
166
|
+
return (
|
|
167
|
+
<Root>
|
|
168
|
+
<GreyInfo />
|
|
169
|
+
<Lines />
|
|
170
|
+
</Root>
|
|
171
|
+
);
|
|
172
|
+
} else {
|
|
173
|
+
return (
|
|
174
|
+
<Root>
|
|
175
|
+
<BlueInfo />
|
|
176
|
+
<Lines />
|
|
177
|
+
</Root>
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
Instructions.propTypes = {
|
|
184
|
+
open: PropTypes.bool,
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
Instructions.defaultProps = {
|
|
188
|
+
open: false,
|
|
189
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
4
|
+
import Sized from './sized';
|
|
5
|
+
|
|
6
|
+
const Glint = ({ fill }) => (
|
|
7
|
+
<path
|
|
8
|
+
fill={fill}
|
|
9
|
+
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"
|
|
10
|
+
/>
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
Glint.propTypes = {
|
|
14
|
+
fill: PropTypes.string,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export class LearnMore extends React.Component {
|
|
18
|
+
static propTypes = {
|
|
19
|
+
classes: PropTypes.object.isRequired,
|
|
20
|
+
size: PropTypes.number,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
render() {
|
|
24
|
+
const { classes, size } = this.props;
|
|
25
|
+
|
|
26
|
+
if (this.props.open === true) {
|
|
27
|
+
return (
|
|
28
|
+
<Sized size={size}>
|
|
29
|
+
<svg preserveAspectRatio="xMinYMin meet" viewBox="-135 129 16 32">
|
|
30
|
+
<path
|
|
31
|
+
className={classes.hideBg}
|
|
32
|
+
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"
|
|
33
|
+
/>
|
|
34
|
+
<path
|
|
35
|
+
className={classes.hideBg}
|
|
36
|
+
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"
|
|
37
|
+
/>
|
|
38
|
+
<Glint fill={classes.hideFg.fill} />
|
|
39
|
+
</svg>
|
|
40
|
+
</Sized>
|
|
41
|
+
);
|
|
42
|
+
} else {
|
|
43
|
+
return (
|
|
44
|
+
<Sized size={size}>
|
|
45
|
+
<svg preserveAspectRatio="xMinYMin meet" viewBox="-135 129 16 31">
|
|
46
|
+
<path
|
|
47
|
+
fill="#D0CAC5"
|
|
48
|
+
stroke="#E6E3E0"
|
|
49
|
+
className="st0"
|
|
50
|
+
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"
|
|
51
|
+
/>
|
|
52
|
+
<path
|
|
53
|
+
fill="#D0CAC5"
|
|
54
|
+
stroke="#E6E3E0"
|
|
55
|
+
className="st0"
|
|
56
|
+
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"
|
|
57
|
+
/>
|
|
58
|
+
<path
|
|
59
|
+
fill="#B3ABA4"
|
|
60
|
+
stroke="#CDC7C2"
|
|
61
|
+
className="st1"
|
|
62
|
+
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"
|
|
63
|
+
/>
|
|
64
|
+
,
|
|
65
|
+
<path
|
|
66
|
+
fill="#B3ABA4"
|
|
67
|
+
stroke="#CDC7C2"
|
|
68
|
+
className="st1"
|
|
69
|
+
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"
|
|
70
|
+
/>
|
|
71
|
+
<path
|
|
72
|
+
className={classes.showBg}
|
|
73
|
+
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"
|
|
74
|
+
/>
|
|
75
|
+
<path
|
|
76
|
+
className={classes.showBg}
|
|
77
|
+
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"
|
|
78
|
+
/>
|
|
79
|
+
<Glint fill={classes.hideFg.fill} />
|
|
80
|
+
</svg>
|
|
81
|
+
</Sized>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const styles = {
|
|
88
|
+
showBg: {
|
|
89
|
+
fill: '#1a9cff',
|
|
90
|
+
},
|
|
91
|
+
hideFg: {
|
|
92
|
+
fill: '#1a9cff',
|
|
93
|
+
},
|
|
94
|
+
hideBg: {
|
|
95
|
+
fill: '#bce2ff',
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
LearnMore.propTypes = {
|
|
100
|
+
open: PropTypes.bool,
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
LearnMore.defaultProps = {
|
|
104
|
+
open: false,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export default withStyles(styles)(LearnMore);
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { IconRoot, getStyles } from './icon-root';
|
|
2
|
+
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
|
+
|
|
7
|
+
const Exclamation = ({ className }) => (
|
|
8
|
+
<g>
|
|
9
|
+
<rect x="19.3" y="10.3" className={className} width="4.5" height="12.7" />
|
|
10
|
+
<rect x="19.3" y="26.2" className={className} width="4.5" height="4.5" />
|
|
11
|
+
</g>
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
const Octagon = ({ className }) => (
|
|
15
|
+
<polygon className={className} 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" />
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
const Emoji = ({ className }) => (
|
|
19
|
+
<g>
|
|
20
|
+
<rect x="23.8" y="15" className={className} width="3.5" height="4.4" />
|
|
21
|
+
<rect x="16" y="15" className={className} width="3.5" height="4.4" />
|
|
22
|
+
<path
|
|
23
|
+
className={className}
|
|
24
|
+
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
|
|
25
|
+
C25.7,26.4,25,27.1,24.2,27.1z"
|
|
26
|
+
/>
|
|
27
|
+
</g>
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
Emoji.propTypes = Octagon.propTypes = Exclamation.propTypes = {
|
|
31
|
+
className: PropTypes.string,
|
|
32
|
+
};
|
|
33
|
+
const styles = getStyles('nothing-submitted', 'white', '#464146');
|
|
34
|
+
|
|
35
|
+
export class NothingSubmitted extends React.Component {
|
|
36
|
+
static propTypes = {
|
|
37
|
+
classes: PropTypes.object.isRequired,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
constructor(props) {
|
|
41
|
+
super(props);
|
|
42
|
+
const { classes } = this.props;
|
|
43
|
+
this.icons = {
|
|
44
|
+
check: (
|
|
45
|
+
<IconRoot>
|
|
46
|
+
<Octagon className={classes.bg} />
|
|
47
|
+
<Exclamation className={classes.fg} />
|
|
48
|
+
</IconRoot>
|
|
49
|
+
),
|
|
50
|
+
emoji: (
|
|
51
|
+
<IconRoot>
|
|
52
|
+
<Octagon className={classes.bg} />
|
|
53
|
+
<Emoji className={classes.fg} />
|
|
54
|
+
</IconRoot>
|
|
55
|
+
),
|
|
56
|
+
feedback: {
|
|
57
|
+
check: (
|
|
58
|
+
<IconRoot>
|
|
59
|
+
<Octagon className={classes.bg} />
|
|
60
|
+
<Emoji className={classes.fg} />
|
|
61
|
+
</IconRoot>
|
|
62
|
+
),
|
|
63
|
+
emoji: (
|
|
64
|
+
<IconRoot>
|
|
65
|
+
<Octagon className={classes.bg} />
|
|
66
|
+
<Emoji className={classes.fg} />
|
|
67
|
+
</IconRoot>
|
|
68
|
+
),
|
|
69
|
+
square: {
|
|
70
|
+
check: (
|
|
71
|
+
<IconRoot>
|
|
72
|
+
<Octagon className={classes.bg} />
|
|
73
|
+
<Exclamation className={classes.fg} />
|
|
74
|
+
</IconRoot>
|
|
75
|
+
),
|
|
76
|
+
emoji: (
|
|
77
|
+
<IconRoot>
|
|
78
|
+
<Octagon className={classes.bg} />
|
|
79
|
+
<Emoji className={classes.fg} />
|
|
80
|
+
</IconRoot>
|
|
81
|
+
),
|
|
82
|
+
open: {
|
|
83
|
+
check: (
|
|
84
|
+
<IconRoot>
|
|
85
|
+
<Exclamation className={classes.bg} />
|
|
86
|
+
</IconRoot>
|
|
87
|
+
),
|
|
88
|
+
emoji: (
|
|
89
|
+
<IconRoot>
|
|
90
|
+
<Emoji className={classes.bg} />
|
|
91
|
+
</IconRoot>
|
|
92
|
+
),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
render() {
|
|
100
|
+
if (this.props.category === undefined) {
|
|
101
|
+
return this.icons[this.props.iconSet];
|
|
102
|
+
} else {
|
|
103
|
+
if (this.props.shape === undefined) {
|
|
104
|
+
return this.icons.feedback[this.props.iconSet];
|
|
105
|
+
} else {
|
|
106
|
+
if (this.props.open === true) {
|
|
107
|
+
return this.icons.feedback.square.open[this.props.iconSet];
|
|
108
|
+
} else {
|
|
109
|
+
return this.icons.feedback.square[this.props.iconSet];
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
NothingSubmitted.propTypes = {
|
|
117
|
+
iconSet: PropTypes.oneOf(['emoji', 'check', undefined]),
|
|
118
|
+
shape: PropTypes.oneOf(['square', undefined]),
|
|
119
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
120
|
+
open: PropTypes.bool,
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
NothingSubmitted.defaultProps = {
|
|
124
|
+
iconSet: 'check',
|
|
125
|
+
shape: undefined,
|
|
126
|
+
category: undefined,
|
|
127
|
+
open: false,
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export default withStyles(styles)(NothingSubmitted);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import IconBase from './icon-base';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { getStyles } from './icon-root';
|
|
5
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
6
|
+
|
|
7
|
+
const styles = getStyles('partially-correct', '#4aaf46', '#c1e1ac');
|
|
8
|
+
|
|
9
|
+
const Check = ({ className }) => (
|
|
10
|
+
<g transform={'translate(0, 0)'}>
|
|
11
|
+
<polygon className={className} points="27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6" />
|
|
12
|
+
<polygon className={className} points="16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3" />
|
|
13
|
+
</g>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const Emoji = ({ className }) => (
|
|
17
|
+
<g transform={'translate(2, 0)'}>
|
|
18
|
+
<rect x="20.6" y="11.8" className={className} width="4" height="5" />
|
|
19
|
+
<rect x="11.5" y="11.8" className={className} width="4" height="5" />
|
|
20
|
+
<rect
|
|
21
|
+
x="10.9"
|
|
22
|
+
y="22.9"
|
|
23
|
+
transform="matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)"
|
|
24
|
+
className={className}
|
|
25
|
+
width="14.3"
|
|
26
|
+
height="3.7"
|
|
27
|
+
/>
|
|
28
|
+
</g>
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
Emoji.propTypes = Check.propTypes = { className: PropTypes.string };
|
|
32
|
+
|
|
33
|
+
export const PartiallyCorrect = IconBase(Check, Emoji);
|
|
34
|
+
|
|
35
|
+
PartiallyCorrect.propTypes = {
|
|
36
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
37
|
+
shape: PropTypes.oneOf(['round', 'square']),
|
|
38
|
+
category: PropTypes.oneOf(['feedback', undefined]),
|
|
39
|
+
open: PropTypes.bool,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
PartiallyCorrect.defaultProps = {
|
|
43
|
+
iconSet: 'check',
|
|
44
|
+
shape: 'round',
|
|
45
|
+
category: undefined,
|
|
46
|
+
open: false,
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export default withStyles(styles)(PartiallyCorrect);
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { withStyles } from '@material-ui/core/styles';
|
|
4
|
+
import { normalizeSize } from './sized';
|
|
5
|
+
|
|
6
|
+
const Info = ({ fg }) => (
|
|
7
|
+
<g>
|
|
8
|
+
<rect x="-115" y="136.7" className={fg} width="3" height="3" />
|
|
9
|
+
<polygon
|
|
10
|
+
className={fg}
|
|
11
|
+
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"
|
|
12
|
+
/>
|
|
13
|
+
</g>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
Info.propTypes = {
|
|
17
|
+
fg: PropTypes.string,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const Border = ({ className }) => (
|
|
21
|
+
<path
|
|
22
|
+
className={className}
|
|
23
|
+
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"
|
|
24
|
+
/>
|
|
25
|
+
);
|
|
26
|
+
Border.propTypes = {
|
|
27
|
+
className: PropTypes.string,
|
|
28
|
+
};
|
|
29
|
+
const Circle = () => (
|
|
30
|
+
<g>
|
|
31
|
+
<path
|
|
32
|
+
style={{
|
|
33
|
+
fill: '#D0CAC5',
|
|
34
|
+
stroke: '#E6E3E0',
|
|
35
|
+
strokeWidth: 0.75,
|
|
36
|
+
strokeMiterlimit: 10,
|
|
37
|
+
}}
|
|
38
|
+
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"
|
|
39
|
+
/>
|
|
40
|
+
<path
|
|
41
|
+
style={{
|
|
42
|
+
fill: '#B3ABA4',
|
|
43
|
+
stroke: '#CDC7C2',
|
|
44
|
+
strokeWidth: 0.5,
|
|
45
|
+
strokeMiterlimit: 10,
|
|
46
|
+
}}
|
|
47
|
+
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"
|
|
48
|
+
/>
|
|
49
|
+
<circle style={{ fill: '#FFFFFF' }} cx="-113" cy="144" r="14" />
|
|
50
|
+
</g>
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const Root = ({ children, size }) => {
|
|
54
|
+
size = normalizeSize(size);
|
|
55
|
+
const style = {
|
|
56
|
+
height: size,
|
|
57
|
+
width: size,
|
|
58
|
+
display: 'inline-block',
|
|
59
|
+
position: 'relative',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
return (
|
|
63
|
+
<div style={style}>
|
|
64
|
+
<svg preserveAspectRatio="xMinYMin meet" viewBox="-129 128 34 34">
|
|
65
|
+
{children}
|
|
66
|
+
</svg>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
Root.propTypes = {
|
|
71
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
|
72
|
+
size: PropTypes.number,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const styles = {
|
|
76
|
+
fg: {
|
|
77
|
+
fill: '#1a9cff',
|
|
78
|
+
},
|
|
79
|
+
bg: {
|
|
80
|
+
fill: '#bce2ff',
|
|
81
|
+
},
|
|
82
|
+
border: {
|
|
83
|
+
fill: '#bbe3fd',
|
|
84
|
+
},
|
|
85
|
+
whiteBorder: {
|
|
86
|
+
fill: 'white',
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export class ShowRationale extends React.Component {
|
|
91
|
+
static propTypes = {
|
|
92
|
+
classes: PropTypes.object.isRequired,
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
constructor(props) {
|
|
96
|
+
super(props);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
render() {
|
|
100
|
+
const { classes } = this.props;
|
|
101
|
+
|
|
102
|
+
const info = <Info fg={classes.fg} />;
|
|
103
|
+
const icons = {
|
|
104
|
+
check: (
|
|
105
|
+
<Root>
|
|
106
|
+
<Circle />
|
|
107
|
+
{info}
|
|
108
|
+
<Border className={classes.border} />
|
|
109
|
+
</Root>
|
|
110
|
+
),
|
|
111
|
+
emoji: (
|
|
112
|
+
<Root>
|
|
113
|
+
<Circle />
|
|
114
|
+
{info}
|
|
115
|
+
<Border className={classes.border} />
|
|
116
|
+
</Root>
|
|
117
|
+
),
|
|
118
|
+
open: {
|
|
119
|
+
check: (
|
|
120
|
+
<Root>
|
|
121
|
+
<circle style={{ fill: '#FFFFFF' }} cx="-113" cy="144" r="14" />
|
|
122
|
+
<Info fg={classes.bg} border={classes.whiteBorder} />
|
|
123
|
+
</Root>
|
|
124
|
+
),
|
|
125
|
+
emoji: (
|
|
126
|
+
<Root>
|
|
127
|
+
<circle style={{ fill: '#FFFFFF' }} cx="-113" cy="144" r="14" />
|
|
128
|
+
<Info fg={classes.bg} border={classes.border} />
|
|
129
|
+
</Root>
|
|
130
|
+
),
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
if (this.props.open === true) {
|
|
135
|
+
return icons.open[this.props.iconSet];
|
|
136
|
+
} else {
|
|
137
|
+
return icons[this.props.iconSet];
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
ShowRationale.propTypes = {
|
|
143
|
+
iconSet: PropTypes.oneOf(['emoji', 'check']),
|
|
144
|
+
open: PropTypes.bool,
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
ShowRationale.defaultProps = {
|
|
148
|
+
iconSet: 'check',
|
|
149
|
+
open: false,
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export default withStyles(styles)(ShowRationale);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
|
|
4
|
+
export const normalizeSize = (size) => {
|
|
5
|
+
return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Sized = ({ size, children }) => {
|
|
9
|
+
size = normalizeSize(size);
|
|
10
|
+
|
|
11
|
+
const style = {
|
|
12
|
+
height: size,
|
|
13
|
+
width: size,
|
|
14
|
+
display: 'inline-block',
|
|
15
|
+
position: 'relative',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return <div style={style}>{children}</div>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
Sized.propTypes = {
|
|
22
|
+
size: PropTypes.number,
|
|
23
|
+
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
|
|
24
|
+
};
|
|
25
|
+
export default Sized;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|