@pie-element/ebsr 11.0.0 → 12.0.1-esmbeta.1

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.
Files changed (284) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/configure/CHANGELOG.md +8 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  4. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +4186 -0
  5. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  7. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +3332 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +202 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +248 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +597 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +2297 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +34 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +346 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +28 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +2993 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +2217 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +61 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +1332 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +1015 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.css +847 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js +1218 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js.map +1 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.css +847 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js +324 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/esm/element.css +847 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/esm/element.js +3287 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/esm/element.js.map +1 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/esm/print.css +847 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/esm/print.js +3017 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/esm/print.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +427 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +252 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +388 -0
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +108 -0
  58. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  59. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +469 -0
  60. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  61. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  62. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  63. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +48 -0
  64. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  65. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +1 -0
  66. package/configure/node_modules/@pie-element/multiple-choice/module/controller.js +3472 -0
  67. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +86 -0
  68. package/configure/node_modules/@pie-element/multiple-choice/module/element.js +1 -0
  69. package/configure/node_modules/@pie-element/multiple-choice/module/index.html +21 -0
  70. package/configure/node_modules/@pie-element/multiple-choice/module/index.js +2 -0
  71. package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +10 -0
  72. package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +124 -0
  73. package/configure/node_modules/@pie-element/multiple-choice/module/print.html +18 -0
  74. package/configure/node_modules/@pie-element/multiple-choice/module/print.js +1 -0
  75. package/configure/node_modules/@pie-element/multiple-choice/package.json +53 -0
  76. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +1 -0
  77. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +898 -0
  78. package/configure/node_modules/@pie-lib/correct-answer-toggle/NEXT.CHANGELOG.json +1 -0
  79. package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js +262 -0
  80. package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js.map +1 -0
  81. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +88 -0
  82. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
  83. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +181 -0
  84. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
  85. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +66 -0
  86. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
  87. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +44 -0
  88. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/__tests__/index.test.jsx +99 -0
  89. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +61 -0
  90. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +98 -0
  91. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +61 -0
  92. package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
  93. package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
  94. package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
  95. package/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
  96. package/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
  97. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
  98. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
  99. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
  100. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
  101. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
  102. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
  103. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
  104. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
  105. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
  106. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
  107. package/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
  108. package/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
  109. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
  110. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
  111. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
  112. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
  113. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
  114. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
  115. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
  116. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
  117. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
  118. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
  119. package/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
  120. package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
  121. package/configure/node_modules/@pie-lib/icons/package.json +35 -0
  122. package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
  123. package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
  124. package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
  125. package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
  126. package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
  127. package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
  128. package/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
  129. package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
  130. package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
  131. package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
  132. package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
  133. package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
  134. package/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
  135. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
  136. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
  137. package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
  138. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
  139. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
  140. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
  141. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  142. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
  143. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
  144. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
  145. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  146. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  147. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  148. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
  149. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  150. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
  151. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  152. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
  153. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  154. package/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
  155. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
  156. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
  157. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
  158. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
  159. package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
  160. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
  161. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
  162. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
  163. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  164. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  165. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  166. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
  167. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
  168. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
  169. package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
  170. package/configure/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
  171. package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
  172. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
  173. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
  174. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
  175. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
  176. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
  177. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  178. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
  179. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  180. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
  181. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  182. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
  183. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
  184. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
  185. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  186. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
  187. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  188. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
  189. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  190. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  191. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  192. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
  193. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  194. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
  195. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  196. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  197. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  198. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  199. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  200. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
  201. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  202. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
  203. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
  204. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
  205. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  206. package/configure/node_modules/@pie-lib/render-ui/package.json +40 -0
  207. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
  208. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
  209. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
  210. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
  211. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
  212. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
  213. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
  214. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
  215. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
  216. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
  217. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
  218. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
  219. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
  220. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
  221. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
  222. package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
  223. package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
  224. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
  225. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
  226. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
  227. package/configure/node_modules/@pie-lib/render-ui/src/color.js +121 -0
  228. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
  229. package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
  230. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
  231. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
  232. package/configure/node_modules/@pie-lib/render-ui/src/index.js +35 -0
  233. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  234. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
  235. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
  236. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
  237. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  238. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  239. package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
  240. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
  241. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
  242. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
  243. package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
  244. package/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
  245. package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
  246. package/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
  247. package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
  248. package/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
  249. package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
  250. package/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
  251. package/configure/node_modules/@pie-lib/translator/CHANGELOG.json +1 -0
  252. package/configure/node_modules/@pie-lib/translator/CHANGELOG.md +282 -0
  253. package/configure/node_modules/@pie-lib/translator/NEXT.CHANGELOG.json +1 -0
  254. package/configure/node_modules/@pie-lib/translator/esm/index.js +257 -0
  255. package/configure/node_modules/@pie-lib/translator/esm/index.js.map +1 -0
  256. package/configure/node_modules/@pie-lib/translator/lib/en.js +102 -0
  257. package/configure/node_modules/@pie-lib/translator/lib/en.js.map +1 -0
  258. package/configure/node_modules/@pie-lib/translator/lib/es.js +102 -0
  259. package/configure/node_modules/@pie-lib/translator/lib/es.js.map +1 -0
  260. package/configure/node_modules/@pie-lib/translator/lib/index.js +69 -0
  261. package/configure/node_modules/@pie-lib/translator/lib/index.js.map +1 -0
  262. package/configure/node_modules/@pie-lib/translator/package.json +25 -0
  263. package/configure/node_modules/@pie-lib/translator/src/en.js +99 -0
  264. package/configure/node_modules/@pie-lib/translator/src/es.js +99 -0
  265. package/configure/node_modules/@pie-lib/translator/src/index.js +43 -0
  266. package/configure/package.json +3 -3
  267. package/controller/CHANGELOG.md +8 -0
  268. package/controller/package.json +3 -3
  269. package/esm/configure.js +40550 -0
  270. package/esm/configure.js.map +1 -0
  271. package/esm/controller.js +3358 -0
  272. package/esm/controller.js.map +1 -0
  273. package/esm/element.js +2203 -0
  274. package/esm/element.js.map +1 -0
  275. package/esm/package.json +4 -0
  276. package/esm/print.js +4090 -0
  277. package/esm/print.js.map +1 -0
  278. package/module/controller.js +4973 -2252
  279. package/module/element.js +1 -1
  280. package/module/index.html +1 -1
  281. package/module/manifest.json +1 -1
  282. package/module/print.html +1 -1
  283. package/module/print.js +1 -1
  284. package/package.json +24 -6
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/show-rationale-icon.jsx"],"names":["Info","fg","propTypes","PropTypes","string","Border","className","Circle","fill","stroke","strokeWidth","strokeMiterlimit","Root","children","size","style","height","width","display","position","oneOfType","arrayOf","node","isRequired","number","styles","bg","border","whiteBorder","ShowRationale","props","classes","info","icons","check","emoji","open","iconSet","React","Component","object","oneOf","bool","defaultProps"],"mappings":"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","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\nimport { normalizeSize } from './sized';\n\nconst Info = ({ fg }) => (\n <g>\n <rect x=\"-115\" y=\"136.7\" className={fg} width=\"3\" height=\"3\" />\n <polygon\n className={fg}\n 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\"\n />\n </g>\n);\n\nInfo.propTypes = {\n fg: PropTypes.string,\n};\n\nconst Border = ({ className }) => (\n <path\n className={className}\n 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\"\n />\n);\nBorder.propTypes = {\n className: PropTypes.string,\n};\nconst Circle = () => (\n <g>\n <path\n style={{\n fill: '#D0CAC5',\n stroke: '#E6E3E0',\n strokeWidth: 0.75,\n strokeMiterlimit: 10,\n }}\n 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\"\n />\n <path\n style={{\n fill: '#B3ABA4',\n stroke: '#CDC7C2',\n strokeWidth: 0.5,\n strokeMiterlimit: 10,\n }}\n 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\"\n />\n <circle style={{ fill: '#FFFFFF' }} cx=\"-113\" cy=\"144\" r=\"14\" />\n </g>\n);\n\nconst Root = ({ children, size }) => {\n size = normalizeSize(size);\n const style = {\n height: size,\n width: size,\n display: 'inline-block',\n position: 'relative',\n };\n\n return (\n <div style={style}>\n <svg preserveAspectRatio=\"xMinYMin meet\" viewBox=\"-129 128 34 34\">\n {children}\n </svg>\n </div>\n );\n};\nRoot.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n size: PropTypes.number,\n};\n\nconst styles = {\n fg: {\n fill: '#1a9cff',\n },\n bg: {\n fill: '#bce2ff',\n },\n border: {\n fill: '#bbe3fd',\n },\n whiteBorder: {\n fill: 'white',\n },\n};\n\nexport class ShowRationale extends React.Component {\n static propTypes = {\n classes: PropTypes.object.isRequired,\n };\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const { classes } = this.props;\n\n const info = <Info fg={classes.fg} />;\n const icons = {\n check: (\n <Root>\n <Circle />\n {info}\n <Border className={classes.border} />\n </Root>\n ),\n emoji: (\n <Root>\n <Circle />\n {info}\n <Border className={classes.border} />\n </Root>\n ),\n open: {\n check: (\n <Root>\n <circle style={{ fill: '#FFFFFF' }} cx=\"-113\" cy=\"144\" r=\"14\" />\n <Info fg={classes.bg} border={classes.whiteBorder} />\n </Root>\n ),\n emoji: (\n <Root>\n <circle style={{ fill: '#FFFFFF' }} cx=\"-113\" cy=\"144\" r=\"14\" />\n <Info fg={classes.bg} border={classes.border} />\n </Root>\n ),\n },\n };\n\n if (this.props.open === true) {\n return icons.open[this.props.iconSet];\n } else {\n return icons[this.props.iconSet];\n }\n }\n}\n\nShowRationale.propTypes = {\n iconSet: PropTypes.oneOf(['emoji', 'check']),\n open: PropTypes.bool,\n};\n\nShowRationale.defaultProps = {\n iconSet: 'check',\n open: false,\n};\n\nexport default withStyles(styles)(ShowRationale);\n"],"file":"show-rationale-icon.js"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.normalizeSize = exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireDefault(require("react"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var normalizeSize = function normalizeSize(size) {
15
+ return typeof size === 'string' ? size : typeof size === 'number' ? "".concat(size, "px") : '30px';
16
+ };
17
+
18
+ exports.normalizeSize = normalizeSize;
19
+
20
+ var Sized = function Sized(_ref) {
21
+ var size = _ref.size,
22
+ children = _ref.children;
23
+ size = normalizeSize(size);
24
+ var style = {
25
+ height: size,
26
+ width: size,
27
+ display: 'inline-block',
28
+ position: 'relative'
29
+ };
30
+ return /*#__PURE__*/_react["default"].createElement("div", {
31
+ style: style
32
+ }, children);
33
+ };
34
+
35
+ Sized.propTypes = {
36
+ size: _propTypes["default"].number,
37
+ children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
38
+ };
39
+ var _default = Sized;
40
+ exports["default"] = _default;
41
+ //# sourceMappingURL=sized.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/sized.jsx"],"names":["normalizeSize","size","Sized","children","style","height","width","display","position","propTypes","PropTypes","number","oneOfType","arrayOf","node","isRequired"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEO,IAAMA,aAAa,GAAG,SAAhBA,aAAgB,CAACC,IAAD,EAAU;AACrC,SAAO,OAAOA,IAAP,KAAgB,QAAhB,GAA2BA,IAA3B,GAAkC,OAAOA,IAAP,KAAgB,QAAhB,aAA8BA,IAA9B,UAAyC,MAAlF;AACD,CAFM;;;;AAIP,IAAMC,KAAK,GAAG,SAARA,KAAQ,OAAwB;AAAA,MAArBD,IAAqB,QAArBA,IAAqB;AAAA,MAAfE,QAAe,QAAfA,QAAe;AACpCF,EAAAA,IAAI,GAAGD,aAAa,CAACC,IAAD,CAApB;AAEA,MAAMG,KAAK,GAAG;AACZC,IAAAA,MAAM,EAAEJ,IADI;AAEZK,IAAAA,KAAK,EAAEL,IAFK;AAGZM,IAAAA,OAAO,EAAE,cAHG;AAIZC,IAAAA,QAAQ,EAAE;AAJE,GAAd;AAOA,sBAAO;AAAK,IAAA,KAAK,EAAEJ;AAAZ,KAAoBD,QAApB,CAAP;AACD,CAXD;;AAaAD,KAAK,CAACO,SAAN,GAAkB;AAChBR,EAAAA,IAAI,EAAES,sBAAUC,MADA;AAEhBR,EAAAA,QAAQ,EAAEO,sBAAUE,SAAV,CAAoB,CAACF,sBAAUG,OAAV,CAAkBH,sBAAUI,IAA5B,CAAD,EAAoCJ,sBAAUI,IAA9C,CAApB,EAAyEC;AAFnE,CAAlB;eAIeb,K","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const normalizeSize = (size) => {\n return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';\n};\n\nconst Sized = ({ size, children }) => {\n size = normalizeSize(size);\n\n const style = {\n height: size,\n width: size,\n display: 'inline-block',\n position: 'relative',\n };\n\n return <div style={style}>{children}</div>;\n};\n\nSized.propTypes = {\n size: PropTypes.number,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,\n};\nexport default Sized;\n"],"file":"sized.js"}
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@pie-lib/icons",
3
+ "version": "2.21.2",
4
+ "description": "Some simple icons",
5
+ "main": "lib/index.js",
6
+ "module": "src/index.js",
7
+ "repository": "pie-framework/pie-lib",
8
+ "keywords": [
9
+ "pie",
10
+ "react",
11
+ "material-ui"
12
+ ],
13
+ "scripts": {},
14
+ "author": "",
15
+ "license": "ISC",
16
+ "dependencies": {
17
+ "classnames": "^2.2.6",
18
+ "prop-types": "^15.6.2"
19
+ },
20
+ "peerDependencies": {
21
+ "@material-ui/core": "^3.8.3",
22
+ "react": "^16.8.1"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "gitHead": "8a327571bd64249e4c88c0c8e750d16d6213f535",
28
+ "exports": {
29
+ ".": {
30
+ "import": "./esm/index.js",
31
+ "require": "./lib/index.js",
32
+ "default": "./esm/index.js"
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,3 @@
1
+ xdescribe('skip', () => {
2
+ it('is skipped', () => {});
3
+ });
@@ -0,0 +1,64 @@
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('correct', '#f8ffe2', '#4aaf46');
8
+
9
+ const Emoji = ({ className }) => (
10
+ <g transform={'translate(1, 0)'}>
11
+ <path
12
+ className={className}
13
+ 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
14
+ c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z"
15
+ />
16
+ <rect x="21.1" y="13.1" className={className} width="3.7" height="4.7" />
17
+ <rect x="12.7" y="13.1" className={className} width="3.7" height="4.7" />
18
+ </g>
19
+ );
20
+
21
+ Emoji.propTypes = {
22
+ className: PropTypes.string,
23
+ };
24
+
25
+ Emoji.defaultProps = {
26
+ x: 0,
27
+ };
28
+
29
+ const Check = ({ className, x, y }) => (
30
+ <polygon
31
+ transform={`translate(${x}, ${y})`}
32
+ className={className}
33
+ 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"
34
+ />
35
+ );
36
+
37
+ Check.propTypes = {
38
+ x: PropTypes.number,
39
+ y: PropTypes.number,
40
+ className: PropTypes.string,
41
+ };
42
+
43
+ Check.defaultProps = {
44
+ x: 0,
45
+ y: 0,
46
+ };
47
+
48
+ export const Correct = IconBase(Check, Emoji);
49
+
50
+ Correct.propTypes = {
51
+ iconSet: PropTypes.oneOf(['emoji', 'check']),
52
+ shape: PropTypes.oneOf(['round', 'square']),
53
+ category: PropTypes.oneOf(['feedback', undefined]),
54
+ open: PropTypes.bool,
55
+ };
56
+
57
+ Correct.defaultProps = {
58
+ iconSet: 'check',
59
+ shape: 'round',
60
+ category: undefined,
61
+ open: false,
62
+ };
63
+
64
+ export default withStyles(styles)(Correct);
@@ -0,0 +1,121 @@
1
+ import PropTypes from 'prop-types';
2
+ import React from 'react';
3
+ import classNames from 'classnames';
4
+ import { withStyles } from '@material-ui/core/styles';
5
+
6
+ const OpenIcon = ({ bg, fg }) => (
7
+ <svg
8
+ preserveAspectRatio="xMinYMin meet"
9
+ version="1.1"
10
+ id="Layer_1"
11
+ x="0px"
12
+ y="0px"
13
+ viewBox="-283 359 34 35"
14
+ style={{ enableBackground: 'new -283 359 34 35' }}
15
+ >
16
+ <circle className={bg} cx="-266" cy="375.9" r="14" />
17
+ <path
18
+ className={bg}
19
+ 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
20
+ 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"
21
+ />
22
+ <polygon
23
+ className={fg}
24
+ 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 "
25
+ />
26
+ </svg>
27
+ );
28
+
29
+ OpenIcon.propTypes = {
30
+ bg: PropTypes.string,
31
+ fg: PropTypes.string,
32
+ };
33
+
34
+ const CloseIcon = ({ bg, fg, border }) => (
35
+ <svg
36
+ preserveAspectRatio="xMinYMin meet"
37
+ version="1.1"
38
+ x="0px"
39
+ y="0px"
40
+ viewBox="-129.5 127 34 35"
41
+ style={{ enableBackground: 'new -129.5 127 34 35' }}
42
+ >
43
+ <path
44
+ style={{
45
+ fill: '#D0CAC5',
46
+ stroke: '#E6E3E0',
47
+ strokeWidth: 0.75,
48
+ strokeMiterlimit: 10,
49
+ }}
50
+ 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
51
+ C-97.4,153.5-104.3,160.4-112.9,160.4z"
52
+ />
53
+ <path
54
+ style={{
55
+ fill: '#B3ABA4',
56
+ stroke: '#CDC7C2',
57
+ strokeWidth: 0.5,
58
+ strokeMiterlimit: 10,
59
+ }}
60
+ 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"
61
+ />
62
+ <circle className={bg} cx="-114.2" cy="143.5" r="14" />
63
+ <path
64
+ className={border}
65
+ 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
66
+ 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"
67
+ />
68
+ <polygon className={fg} points="-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2" />
69
+ </svg>
70
+ );
71
+
72
+ CloseIcon.propTypes = {
73
+ bg: PropTypes.string,
74
+ fg: PropTypes.string,
75
+ border: PropTypes.string,
76
+ };
77
+
78
+ const styles = {
79
+ root: {
80
+ width: (props) => props.size || '25px',
81
+ height: (props) => props.size || '25px',
82
+ },
83
+ hideIconBg: {
84
+ fill: '#bce2ff',
85
+ },
86
+ hideIconFg: {
87
+ fill: '#1a9cff',
88
+ },
89
+ showIconBg: {
90
+ fill: 'white',
91
+ },
92
+ showIconFg: {
93
+ fill: '#1a9cff',
94
+ },
95
+ showIconBorder: {
96
+ fill: '#bce2ff',
97
+ },
98
+ };
99
+
100
+ const CorrectResponse = ({ open, classes, className }) => (
101
+ <div className={classNames(className, classes.root)}>
102
+ {open ? (
103
+ <OpenIcon bg={classes.hideIconBg} fg={classes.hideIconFg} />
104
+ ) : (
105
+ <CloseIcon bg={classes.showIconBg} border={classes.showIconBorder} fg={classes.showIconFg} />
106
+ )}
107
+ </div>
108
+ );
109
+
110
+ CorrectResponse.propTypes = {
111
+ classes: PropTypes.object.isRequired,
112
+ open: PropTypes.bool,
113
+ size: PropTypes.string,
114
+ className: PropTypes.string,
115
+ };
116
+
117
+ CorrectResponse.defaultProps = {
118
+ open: false,
119
+ };
120
+
121
+ export default withStyles(styles)(CorrectResponse);
@@ -0,0 +1,158 @@
1
+ import { Circle, IconRoot, RoundFeedbackBox, Square, SquareFeedbackBox } from './icon-root';
2
+
3
+ import PropTypes from 'prop-types';
4
+ import React from 'react';
5
+
6
+ export default (Action, Emoji) => {
7
+ class IconBase extends React.Component {
8
+ static propTypes = {
9
+ classes: PropTypes.object.isRequired,
10
+ size: PropTypes.number,
11
+ };
12
+ constructor(props) {
13
+ super(props);
14
+ const { classes, size } = this.props;
15
+
16
+ this.icons = {
17
+ feedback: {
18
+ round: {
19
+ check: (
20
+ <IconRoot size={size}>
21
+ <RoundFeedbackBox className={classes.bg} />
22
+ <Action className={classes.fg} />
23
+ </IconRoot>
24
+ ),
25
+ emoji: (
26
+ <IconRoot size={size}>
27
+ <RoundFeedbackBox className={classes.bg} />
28
+ <Emoji className={classes.fg} />
29
+ </IconRoot>
30
+ ),
31
+ open: {
32
+ check: (
33
+ <IconRoot size={size}>
34
+ <Action className={classes.bg} />
35
+ </IconRoot>
36
+ ),
37
+ emoji: (
38
+ <IconRoot size={size}>
39
+ <Emoji className={classes.bg} />
40
+ </IconRoot>
41
+ ),
42
+ },
43
+ },
44
+ square: {
45
+ check: (
46
+ <IconRoot size={size}>
47
+ <SquareFeedbackBox className={classes.bg} />
48
+ <Action className={classes.fg} />
49
+ </IconRoot>
50
+ ),
51
+ emoji: (
52
+ <IconRoot size={size}>
53
+ <SquareFeedbackBox className={classes.bg} />
54
+ <Emoji className={classes.fg} />
55
+ </IconRoot>
56
+ ),
57
+ open: {
58
+ check: (
59
+ <IconRoot size={size}>
60
+ <Action className={classes.bg} />
61
+ </IconRoot>
62
+ ),
63
+ emoji: (
64
+ <IconRoot size={size}>
65
+ <Emoji className={classes.bg} />
66
+ </IconRoot>
67
+ ),
68
+ },
69
+ },
70
+ },
71
+ round: {
72
+ check: (
73
+ <IconRoot size={size}>
74
+ <Circle className={classes.bg} />
75
+ <Action className={classes.fg} />
76
+ </IconRoot>
77
+ ),
78
+ emoji: (
79
+ <IconRoot size={size}>
80
+ <Circle className={classes.bg} />
81
+ <Emoji className={classes.fg} />
82
+ </IconRoot>
83
+ ),
84
+ open: {
85
+ check: (
86
+ <IconRoot size={size}>
87
+ <Action className={classes.bg} />
88
+ </IconRoot>
89
+ ),
90
+ emoji: (
91
+ <IconRoot size={size}>
92
+ <Emoji className={classes.bg} />
93
+ </IconRoot>
94
+ ),
95
+ },
96
+ },
97
+ square: {
98
+ check: (
99
+ <IconRoot size={size}>
100
+ <Square className={classes.bg} />
101
+ <Action className={classes.fg} />
102
+ </IconRoot>
103
+ ),
104
+ emoji: (
105
+ <IconRoot size={size}>
106
+ <Square className={classes.bg} />
107
+ <Emoji className={classes.fg} />
108
+ </IconRoot>
109
+ ),
110
+ open: {
111
+ check: (
112
+ <IconRoot size={size}>
113
+ <Action className={classes.bg} />
114
+ </IconRoot>
115
+ ),
116
+ emoji: (
117
+ <IconRoot size={size}>
118
+ <Emoji className={classes.bg} />
119
+ </IconRoot>
120
+ ),
121
+ },
122
+ },
123
+ };
124
+ }
125
+
126
+ render() {
127
+ if (this.props.category === undefined) {
128
+ if (this.props.open === true) {
129
+ return this.icons[this.props.shape].open[this.props.iconSet];
130
+ } else {
131
+ return this.icons[this.props.shape][this.props.iconSet];
132
+ }
133
+ } else {
134
+ if (this.props.open === true) {
135
+ return this.icons.feedback[this.props.shape].open[this.props.iconSet];
136
+ } else {
137
+ return this.icons.feedback[this.props.shape][this.props.iconSet];
138
+ }
139
+ }
140
+ }
141
+ }
142
+
143
+ IconBase.propTypes = {
144
+ iconSet: PropTypes.oneOf(['emoji', 'check']),
145
+ shape: PropTypes.oneOf(['round', 'square']),
146
+ category: PropTypes.oneOf(['feedback', undefined]),
147
+ open: PropTypes.bool,
148
+ };
149
+
150
+ IconBase.defaultProps = {
151
+ iconSet: 'check',
152
+ shape: 'round',
153
+ category: undefined,
154
+ open: false,
155
+ };
156
+
157
+ return IconBase;
158
+ };
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import Sized from './sized';
4
+
5
+ export const normalizeSize = (size) => {
6
+ return typeof size === 'string' ? size : typeof size === 'number' ? `${size}px` : '30px';
7
+ };
8
+
9
+ export const IconRoot = ({ size, children }) => (
10
+ <Sized size={size}>
11
+ <svg
12
+ preserveAspectRatio="xMinYMin meet"
13
+ version="1.1"
14
+ x="0px"
15
+ y="0px"
16
+ viewBox="0 0 44 40"
17
+ style={{ enableBackground: 'new 0 0 44 40' }}
18
+ >
19
+ {' '}
20
+ {children}
21
+ </svg>
22
+ </Sized>
23
+ );
24
+
25
+ IconRoot.propTypes = {
26
+ size: PropTypes.oneOf([PropTypes.string, PropTypes.number]),
27
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired,
28
+ };
29
+
30
+ export const getStyles = (name, fg, bg) => ({
31
+ bg: {
32
+ fill: `var(--icons-${name}-bg, ${bg})`,
33
+ },
34
+ fg: {
35
+ fill: `var(--icons-${name}-fg, ${fg})`,
36
+ },
37
+ });
38
+
39
+ export const Tick = ({ className }) => (
40
+ <polygon className={className} points="17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7" />
41
+ );
42
+
43
+ Tick.propTypes = {
44
+ className: PropTypes.string,
45
+ };
46
+
47
+ export const SquareFeedbackBox = ({ className }) => (
48
+ <polygon transform="translate(2, 0)" className={className} points="34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3" />
49
+ );
50
+ SquareFeedbackBox.propTypes = {
51
+ className: PropTypes.string,
52
+ };
53
+
54
+ export const RoundFeedbackBox = ({ className }) => (
55
+ <path
56
+ transform="translate(1, 0)"
57
+ className={className}
58
+ 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"
59
+ />
60
+ );
61
+ RoundFeedbackBox.propTypes = {
62
+ className: PropTypes.string,
63
+ };
64
+
65
+ export const Circle = ({ className }) => (
66
+ <circle transform="translate(-3, 0)" className={className} cx="23" cy="20.4" r="16" />
67
+ );
68
+
69
+ Circle.propTypes = {
70
+ className: PropTypes.string,
71
+ };
72
+
73
+ export const Square = ({ className }) => <rect x="3.6" y="4.1" className={className} width="32" height="32" />;
74
+ Square.propTypes = {
75
+ className: PropTypes.string,
76
+ };
@@ -0,0 +1,61 @@
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 Ex = ({ className }) => (
8
+ <g transform={'translate(0.5, 0.5)'}>
9
+ <rect
10
+ x="11"
11
+ y="17.3"
12
+ transform="matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)"
13
+ className={className}
14
+ width="16.6"
15
+ height="3.7"
16
+ />
17
+ <rect
18
+ x="17.4"
19
+ y="10.7"
20
+ transform="matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)"
21
+ className={className}
22
+ width="3.7"
23
+ height="16.6"
24
+ />
25
+ </g>
26
+ );
27
+
28
+ Ex.propTypes = {
29
+ className: PropTypes.string,
30
+ };
31
+ const Emoji = ({ className }) => (
32
+ <g transform={'translate(1,0)'}>
33
+ <rect x="21" y="12.9" className={className} width="3.7" height="4.7" />
34
+ <rect x="12.7" y="12.9" className={className} width="3.7" height="4.7" />
35
+ <rect x="12.2" y="22.5" className={className} width="13" height="3.3" />
36
+ </g>
37
+ );
38
+
39
+ Emoji.propTypes = {
40
+ className: PropTypes.string,
41
+ };
42
+
43
+ const styles = getStyles('incorrect', '#fbf2e3', '#fcb733');
44
+
45
+ export const Incorrect = IconBase(Ex, Emoji);
46
+
47
+ export default withStyles(styles)(Incorrect);
48
+
49
+ Incorrect.propTypes = {
50
+ iconSet: PropTypes.oneOf(['emoji', 'check']),
51
+ shape: PropTypes.oneOf(['round', 'square']),
52
+ category: PropTypes.oneOf(['feedback', undefined]),
53
+ open: PropTypes.bool,
54
+ };
55
+
56
+ Incorrect.defaultProps = {
57
+ iconSet: 'check',
58
+ shape: 'round',
59
+ category: undefined,
60
+ open: false,
61
+ };
@@ -0,0 +1,19 @@
1
+ import Correct from './correct-icon';
2
+ import CorrectResponse from './correct-response-icon';
3
+ import Incorrect from './incorrect-icon';
4
+ import Instructions from './instructions-icon';
5
+ import LearnMore from './learn-more-icon';
6
+ import NothingSubmitted from './nothing-submitted-icon';
7
+ import PartiallyCorrect from './partially-correct-icon';
8
+ import ShowRationale from './show-rationale-icon';
9
+
10
+ export {
11
+ Correct,
12
+ CorrectResponse,
13
+ Incorrect,
14
+ Instructions,
15
+ LearnMore,
16
+ NothingSubmitted,
17
+ PartiallyCorrect,
18
+ ShowRationale,
19
+ };