@coorpacademy/components 11.32.19 → 11.32.20-alpha.32

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 (241) hide show
  1. package/es/atom/button-link/index.d.ts +2 -0
  2. package/es/atom/button-link/index.d.ts.map +1 -1
  3. package/es/atom/button-link/index.js +22 -8
  4. package/es/atom/button-link/index.js.map +1 -1
  5. package/es/atom/button-link/types.d.ts +4 -0
  6. package/es/atom/button-link/types.d.ts.map +1 -1
  7. package/es/atom/button-link/types.js +2 -0
  8. package/es/atom/button-link/types.js.map +1 -1
  9. package/es/atom/circular-progress-bar/index.d.ts +15 -0
  10. package/es/atom/circular-progress-bar/index.d.ts.map +1 -0
  11. package/es/atom/circular-progress-bar/index.js +86 -0
  12. package/es/atom/circular-progress-bar/index.js.map +1 -0
  13. package/es/atom/circular-progress-bar/style.css +51 -0
  14. package/es/atom/circular-progress-bar/types.d.ts +18 -0
  15. package/es/atom/circular-progress-bar/types.d.ts.map +1 -0
  16. package/es/atom/circular-progress-bar/types.js +10 -0
  17. package/es/atom/circular-progress-bar/types.js.map +1 -0
  18. package/es/atom/tag/index.d.ts +10 -1
  19. package/es/atom/tag/index.d.ts.map +1 -1
  20. package/es/atom/tag/index.js +19 -11
  21. package/es/atom/tag/index.js.map +1 -1
  22. package/es/atom/tag/style.css +38 -19
  23. package/es/molecule/base-modal/index.d.ts.map +1 -1
  24. package/es/molecule/base-modal/index.js +6 -10
  25. package/es/molecule/base-modal/index.js.map +1 -1
  26. package/es/molecule/cm-popin/types.d.ts +8 -0
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/draggable-list/index.d.ts +12 -0
  29. package/es/molecule/draggable-list/index.d.ts.map +1 -1
  30. package/es/molecule/draggable-list/index.js +4 -2
  31. package/es/molecule/draggable-list/index.js.map +1 -1
  32. package/es/molecule/expandible-actionable-table/index.d.ts +2 -0
  33. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  34. package/es/molecule/expandible-actionable-table/types.d.ts +2 -0
  35. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  36. package/es/molecule/learner-skill-card/index.d.ts.map +1 -1
  37. package/es/molecule/learner-skill-card/index.js +7 -10
  38. package/es/molecule/learner-skill-card/index.js.map +1 -1
  39. package/es/molecule/learning-priority-card/index.d.ts +40 -0
  40. package/es/molecule/learning-priority-card/index.d.ts.map +1 -0
  41. package/es/molecule/learning-priority-card/index.js +77 -0
  42. package/es/molecule/learning-priority-card/index.js.map +1 -0
  43. package/es/molecule/learning-priority-card/style.css +34 -0
  44. package/es/molecule/learning-priority-card/types.d.ts +18 -0
  45. package/es/molecule/learning-priority-card/types.d.ts.map +1 -0
  46. package/es/molecule/learning-priority-card/types.js +10 -0
  47. package/es/molecule/learning-priority-card/types.js.map +1 -0
  48. package/es/molecule/learning-priority-modal/index.d.ts +33 -0
  49. package/es/molecule/learning-priority-modal/index.d.ts.map +1 -0
  50. package/es/molecule/learning-priority-modal/index.js +231 -0
  51. package/es/molecule/learning-priority-modal/index.js.map +1 -0
  52. package/es/molecule/learning-priority-modal/style.css +68 -0
  53. package/es/molecule/learning-priority-setup-item/index.d.ts +18 -0
  54. package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  55. package/es/molecule/learning-priority-setup-item/index.js +69 -0
  56. package/es/molecule/learning-priority-setup-item/index.js.map +1 -0
  57. package/es/molecule/learning-priority-setup-item/style.css +47 -0
  58. package/es/molecule/skill-card/index.d.ts.map +1 -1
  59. package/es/molecule/skill-card/index.js +5 -8
  60. package/es/molecule/skill-card/index.js.map +1 -1
  61. package/es/organism/brand-learning-priorities/index.d.ts +170 -0
  62. package/es/organism/brand-learning-priorities/index.d.ts.map +1 -0
  63. package/es/organism/brand-learning-priorities/index.js +99 -0
  64. package/es/organism/brand-learning-priorities/index.js.map +1 -0
  65. package/es/organism/brand-learning-priorities/style.css +35 -0
  66. package/es/organism/list-item/index.d.ts +34 -2
  67. package/es/organism/list-item/index.d.ts.map +1 -1
  68. package/es/organism/list-item/index.js +58 -14
  69. package/es/organism/list-item/index.js.map +1 -1
  70. package/es/organism/list-item/style.css +21 -1
  71. package/es/organism/list-items/index.d.ts +8 -0
  72. package/es/organism/setup-header/index.d.ts +8 -0
  73. package/es/organism/wizard-contents/index.d.ts +6 -0
  74. package/es/template/app-player/loading/index.d.ts +8 -0
  75. package/es/template/app-player/player/index.d.ts +16 -0
  76. package/es/template/app-player/player/slides/index.d.ts +8 -0
  77. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  78. package/es/template/app-player/popin-correction/index.d.ts +8 -0
  79. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  80. package/es/template/app-player/popin-end/index.d.ts +8 -0
  81. package/es/template/app-review/index.d.ts +8 -0
  82. package/es/template/app-review/index.d.ts.map +1 -1
  83. package/es/template/app-review/player/prop-types.d.ts +8 -0
  84. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  85. package/es/template/app-review/prop-types.d.ts +8 -0
  86. package/es/template/app-review/prop-types.d.ts.map +1 -1
  87. package/es/template/back-office/brand-create/index.d.ts +8 -0
  88. package/es/template/back-office/brand-create/index.d.ts.map +1 -1
  89. package/es/template/back-office/brand-list/index.d.ts +8 -0
  90. package/es/template/back-office/brand-list/index.d.ts.map +1 -1
  91. package/es/template/back-office/brand-update/index.d.ts +171 -0
  92. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  93. package/es/template/back-office/brand-update/index.js +7 -0
  94. package/es/template/back-office/brand-update/index.js.map +1 -1
  95. package/es/template/back-office/dashboard-preview/index.d.ts +8 -0
  96. package/es/template/back-office/layout/index.d.ts +8 -0
  97. package/es/template/back-office/layout/index.d.ts.map +1 -1
  98. package/es/template/common/dashboard/index.d.ts +16 -0
  99. package/es/template/common/search-page/index.d.ts +8 -0
  100. package/es/template/external-course/index.d.ts +8 -0
  101. package/es/template/my-learning/index.d.ts.map +1 -1
  102. package/es/template/my-learning/index.js +10 -18
  103. package/es/template/my-learning/index.js.map +1 -1
  104. package/es/template/skill-detail/index.d.ts.map +1 -1
  105. package/es/template/skill-detail/index.js +4 -8
  106. package/es/template/skill-detail/index.js.map +1 -1
  107. package/lib/atom/button-link/index.d.ts +2 -0
  108. package/lib/atom/button-link/index.d.ts.map +1 -1
  109. package/lib/atom/button-link/index.js +21 -7
  110. package/lib/atom/button-link/index.js.map +1 -1
  111. package/lib/atom/button-link/types.d.ts +4 -0
  112. package/lib/atom/button-link/types.d.ts.map +1 -1
  113. package/lib/atom/button-link/types.js +2 -0
  114. package/lib/atom/button-link/types.js.map +1 -1
  115. package/lib/atom/circular-progress-bar/index.d.ts +15 -0
  116. package/lib/atom/circular-progress-bar/index.d.ts.map +1 -0
  117. package/lib/atom/circular-progress-bar/index.js +101 -0
  118. package/lib/atom/circular-progress-bar/index.js.map +1 -0
  119. package/lib/atom/circular-progress-bar/style.css +51 -0
  120. package/lib/atom/circular-progress-bar/types.d.ts +18 -0
  121. package/lib/atom/circular-progress-bar/types.d.ts.map +1 -0
  122. package/lib/atom/circular-progress-bar/types.js +19 -0
  123. package/lib/atom/circular-progress-bar/types.js.map +1 -0
  124. package/lib/atom/tag/index.d.ts +10 -1
  125. package/lib/atom/tag/index.d.ts.map +1 -1
  126. package/lib/atom/tag/index.js +20 -11
  127. package/lib/atom/tag/index.js.map +1 -1
  128. package/lib/atom/tag/style.css +38 -19
  129. package/lib/molecule/base-modal/index.d.ts.map +1 -1
  130. package/lib/molecule/base-modal/index.js +5 -9
  131. package/lib/molecule/base-modal/index.js.map +1 -1
  132. package/lib/molecule/cm-popin/types.d.ts +8 -0
  133. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  134. package/lib/molecule/draggable-list/index.d.ts +12 -0
  135. package/lib/molecule/draggable-list/index.d.ts.map +1 -1
  136. package/lib/molecule/draggable-list/index.js +5 -2
  137. package/lib/molecule/draggable-list/index.js.map +1 -1
  138. package/lib/molecule/expandible-actionable-table/index.d.ts +2 -0
  139. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  140. package/lib/molecule/expandible-actionable-table/types.d.ts +2 -0
  141. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  142. package/lib/molecule/learner-skill-card/index.d.ts.map +1 -1
  143. package/lib/molecule/learner-skill-card/index.js +6 -9
  144. package/lib/molecule/learner-skill-card/index.js.map +1 -1
  145. package/lib/molecule/learning-priority-card/index.d.ts +40 -0
  146. package/lib/molecule/learning-priority-card/index.d.ts.map +1 -0
  147. package/lib/molecule/learning-priority-card/index.js +95 -0
  148. package/lib/molecule/learning-priority-card/index.js.map +1 -0
  149. package/lib/molecule/learning-priority-card/style.css +34 -0
  150. package/lib/molecule/learning-priority-card/types.d.ts +18 -0
  151. package/lib/molecule/learning-priority-card/types.d.ts.map +1 -0
  152. package/lib/molecule/learning-priority-card/types.js +19 -0
  153. package/lib/molecule/learning-priority-card/types.js.map +1 -0
  154. package/lib/molecule/learning-priority-modal/index.d.ts +33 -0
  155. package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -0
  156. package/lib/molecule/learning-priority-modal/index.js +254 -0
  157. package/lib/molecule/learning-priority-modal/index.js.map +1 -0
  158. package/lib/molecule/learning-priority-modal/style.css +68 -0
  159. package/lib/molecule/learning-priority-setup-item/index.d.ts +18 -0
  160. package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  161. package/lib/molecule/learning-priority-setup-item/index.js +86 -0
  162. package/lib/molecule/learning-priority-setup-item/index.js.map +1 -0
  163. package/lib/molecule/learning-priority-setup-item/style.css +47 -0
  164. package/lib/molecule/skill-card/index.d.ts.map +1 -1
  165. package/lib/molecule/skill-card/index.js +4 -7
  166. package/lib/molecule/skill-card/index.js.map +1 -1
  167. package/lib/organism/brand-learning-priorities/index.d.ts +170 -0
  168. package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -0
  169. package/lib/organism/brand-learning-priorities/index.js +117 -0
  170. package/lib/organism/brand-learning-priorities/index.js.map +1 -0
  171. package/lib/organism/brand-learning-priorities/style.css +35 -0
  172. package/lib/organism/list-item/index.d.ts +34 -2
  173. package/lib/organism/list-item/index.d.ts.map +1 -1
  174. package/lib/organism/list-item/index.js +62 -16
  175. package/lib/organism/list-item/index.js.map +1 -1
  176. package/lib/organism/list-item/style.css +21 -1
  177. package/lib/organism/list-items/index.d.ts +8 -0
  178. package/lib/organism/setup-header/index.d.ts +8 -0
  179. package/lib/organism/wizard-contents/index.d.ts +6 -0
  180. package/lib/template/app-player/loading/index.d.ts +8 -0
  181. package/lib/template/app-player/player/index.d.ts +16 -0
  182. package/lib/template/app-player/player/slides/index.d.ts +8 -0
  183. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  184. package/lib/template/app-player/popin-correction/index.d.ts +8 -0
  185. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  186. package/lib/template/app-player/popin-end/index.d.ts +8 -0
  187. package/lib/template/app-review/index.d.ts +8 -0
  188. package/lib/template/app-review/index.d.ts.map +1 -1
  189. package/lib/template/app-review/player/prop-types.d.ts +8 -0
  190. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  191. package/lib/template/app-review/prop-types.d.ts +8 -0
  192. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  193. package/lib/template/back-office/brand-create/index.d.ts +8 -0
  194. package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
  195. package/lib/template/back-office/brand-list/index.d.ts +8 -0
  196. package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
  197. package/lib/template/back-office/brand-update/index.d.ts +171 -0
  198. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  199. package/lib/template/back-office/brand-update/index.js +8 -0
  200. package/lib/template/back-office/brand-update/index.js.map +1 -1
  201. package/lib/template/back-office/dashboard-preview/index.d.ts +8 -0
  202. package/lib/template/back-office/layout/index.d.ts +8 -0
  203. package/lib/template/back-office/layout/index.d.ts.map +1 -1
  204. package/lib/template/common/dashboard/index.d.ts +16 -0
  205. package/lib/template/common/search-page/index.d.ts +8 -0
  206. package/lib/template/external-course/index.d.ts +8 -0
  207. package/lib/template/my-learning/index.d.ts.map +1 -1
  208. package/lib/template/my-learning/index.js +10 -18
  209. package/lib/template/my-learning/index.js.map +1 -1
  210. package/lib/template/skill-detail/index.d.ts.map +1 -1
  211. package/lib/template/skill-detail/index.js +4 -8
  212. package/lib/template/skill-detail/index.js.map +1 -1
  213. package/locales/bs/global.json +1 -0
  214. package/locales/cs/global.json +1 -0
  215. package/locales/de/global.json +1 -0
  216. package/locales/en/global.json +12 -0
  217. package/locales/es/global.json +1 -0
  218. package/locales/et/global.json +1 -0
  219. package/locales/fi/global.json +1 -0
  220. package/locales/fr/global.json +2 -1
  221. package/locales/hr/global.json +1 -0
  222. package/locales/hu/global.json +1 -0
  223. package/locales/hy/global.json +1 -0
  224. package/locales/it/global.json +1 -0
  225. package/locales/ja/global.json +1 -0
  226. package/locales/ko/global.json +1 -0
  227. package/locales/nl/global.json +1 -0
  228. package/locales/pl/global.json +1 -0
  229. package/locales/pt/global.json +1 -0
  230. package/locales/ro/global.json +1 -0
  231. package/locales/ru/global.json +1 -0
  232. package/locales/sk/global.json +1 -0
  233. package/locales/sl/global.json +1 -0
  234. package/locales/sv/global.json +1 -0
  235. package/locales/tl/global.json +1 -0
  236. package/locales/tr/global.json +1 -0
  237. package/locales/uk/global.json +1 -0
  238. package/locales/vi/global.json +1 -0
  239. package/locales/zh/global.json +1 -0
  240. package/locales/zh_TW/global.json +1 -0
  241. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ITEMS","SetupSection","CourseSection","ListItem","DraggableList","items","onDrop","itemType","dragTo","setDragTo","useState","dragFrom","setDragFrom","dragStartHandler","useCallback","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","PropTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,iBAAiBC,qBADL;EAEZ,kBAAkBC,sBAFN;EAGZ,aAAaC;AAHD,CAAd;;AAMA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD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ALd;IAME,WAAW,EAAEC,gBANf;IAOE,MAAM,EAAEC;EAPV,gBASE,6BAAC,IAAD,eAAUI,IAAV;IAAgB,GAAG,EAAEA,IAAI,CAACP,EAA1B;IAA8B,KAAK,EAAEQ;EAArC,GATF,CADgB,CAAlB;EAaA,oBAAO,0CAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAhB,aAAa,CAACoB,SAAd,2CAA0B;EACxBnB,KAAK,EAAEoB,kBAAA,CAAUC,OAAV,CACLD,kBAAA,CAAUE,SAAV,CAAoB,CAClBF,kBAAA,CAAUG,KAAV,CAAgB3B,qBAAA,CAAauB,SAA7B,CADkB,EAElBC,kBAAA,CAAUG,KAAV,CAAgB1B,sBAAA,CAAcsB,SAA9B,CAFkB,EAGlBC,kBAAA,CAAUG,KAAV,CAAgBzB,iBAAA,CAASqB,SAAzB,CAHkB,CAApB,CADK,CADiB;EAQxBlB,MAAM,EAAEmB,kBAAA,CAAUI,IARM;EASxBtB,QAAQ,EAAEkB,kBAAA,CAAUK;AATI,CAA1B;eAYe1B,a"}
1
+ {"version":3,"file":"index.js","names":["ITEMS","SetupSection","CourseSection","ListItem","LearningPrioritySetupItem","DraggableList","items","onDrop","itemType","dragTo","setDragTo","useState","dragFrom","setDragFrom","dragStartHandler","useCallback","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","PropTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\nimport LearningPrioritySetupItem from '../learning-priority-setup-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem,\n 'learning-priority-setup-item': LearningPrioritySetupItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes),\n PropTypes.shape(LearningPrioritySetupItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,iBAAiBC,qBADL;EAEZ,kBAAkBC,sBAFN;EAGZ,aAAaC,iBAHD;EAIZ,gCAAgCC;AAJpB,CAAd;;AAOA,MAAMC,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,IAAAC,eAAA,EAAS,IAAT,CAA5B;EACA,MAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,IAAAF,eAAA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EAAEQ;EAArC,GATF,CADgB,CAAlB;EAaA,oBAAO,0CAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAhB,aAAa,CAACoB,SAAd,2CAA0B;EACxBnB,KAAK,EAAEoB,kBAAA,CAAUC,OAAV,CACLD,kBAAA,CAAUE,SAAV,CAAoB,CAClBF,kBAAA,CAAUG,KAAV,CAAgB5B,qBAAA,CAAawB,SAA7B,CADkB,EAElBC,kBAAA,CAAUG,KAAV,CAAgB3B,sBAAA,CAAcuB,SAA9B,CAFkB,EAGlBC,kBAAA,CAAUG,KAAV,CAAgB1B,iBAAA,CAASsB,SAAzB,CAHkB,EAIlBC,kBAAA,CAAUG,KAAV,CAAgBzB,kCAAA,CAA0BqB,SAA1C,CAJkB,CAApB,CADK,CADiB;EASxBlB,MAAM,EAAEmB,kBAAA,CAAUI,IATM;EAUxBtB,QAAQ,EAAEkB,kBAAA,CAAUK;AAVI,CAA1B;eAae1B,a"}
@@ -79,6 +79,8 @@ declare const ActionableExpandableTable: {
79
79
  download: import("prop-types").Requireable<boolean>;
80
80
  target: import("prop-types").Requireable<string>;
81
81
  }>>;
82
+ hoverBackgroundColor: import("prop-types").Requireable<string>;
83
+ hoverColor: import("prop-types").Requireable<string>;
82
84
  disabled: import("prop-types").Requireable<boolean>;
83
85
  className: import("prop-types").Requireable<string>;
84
86
  customStyle: import("prop-types").Requireable<import("prop-types").InferProps<{}>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoL/E,CAAC;AASF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/index.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAOjE,OAAO,EAA2C,KAAK,EAAY,MAAM,SAAS,CAAC;AAqCnF,QAAA,MAAM,yBAAyB;YAAW,KAAK,iBAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoL/E,CAAC;AASF,eAAe,yBAAyB,CAAC"}
@@ -56,6 +56,8 @@ export declare const propTypes: {
56
56
  download: PropTypes.Requireable<boolean>;
57
57
  target: PropTypes.Requireable<string>;
58
58
  }>>;
59
+ hoverBackgroundColor: PropTypes.Requireable<string>;
60
+ hoverColor: PropTypes.Requireable<string>;
59
61
  disabled: PropTypes.Requireable<boolean>;
60
62
  className: PropTypes.Requireable<string>;
61
63
  customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/expandible-actionable-table/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,0BAA0B,EAAC,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAC,KAAK,IAAI,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAC,KAAK,IAAI,oBAAoB,EAAC,MAAM,4BAA4B,CAAC;AA0BzE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,CAAA;CAAC,CAAC;AACrC,oBAAY,GAAG,GAAG;IAChB,MAAM,EAAE,KAAK,EAAE,CAAC;IAEhB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AACF,oBAAY,OAAO,GAAG,MAAM,EAAE,CAAC;AAC/B,oBAAY,IAAI,GAAG,GAAG,EAAE,CAAC;AAEzB,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,EAAE,CAAC;IACvC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,oBAAY,WAAW,GAAG;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learner-skill-card/index.js"],"names":[],"mappings":";AASA,yEAyJC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learner-skill-card/index.js"],"names":[],"mappings":";AASA,yEAiJC"}
@@ -46,7 +46,6 @@ const LearnerSkillCard = (props, context) => {
46
46
  skin,
47
47
  translate
48
48
  } = context;
49
- const [hovered, setHovered] = (0, _react.useState)(false);
50
49
  const primarySkinColor = (0, _get2.default)('common.primary', skin);
51
50
  const reviewLocale = translate('Review');
52
51
  const exploreLocale = translate('Explore');
@@ -54,8 +53,6 @@ const LearnerSkillCard = (props, context) => {
54
53
  const questionsLocale = translate('questions');
55
54
  const skillFocusLocale = translate('skill_focus');
56
55
  const contentCompletedLocale = translate('courses_completed');
57
- const handleMouseOver = (0, _react.useCallback)(() => setHovered(true), [setHovered]);
58
- const handleMouseLeave = (0, _react.useCallback)(() => setHovered(false), [setHovered]);
59
56
  const buttonReviewProps = {
60
57
  customStyle: {
61
58
  backgroundColor: '#FFF',
@@ -70,10 +67,12 @@ const LearnerSkillCard = (props, context) => {
70
67
  };
71
68
  const buttonExploreProps = {
72
69
  customStyle: {
73
- backgroundColor: hovered ? primarySkinColor : (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
74
- color: hovered ? '#FFFFFF' : primarySkinColor,
70
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
71
+ color: primarySkinColor,
75
72
  transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
76
73
  },
74
+ hoverColor: '#FFFFFF',
75
+ hoverBackgroundColor: primarySkinColor,
77
76
  onClick: onExploreClick,
78
77
  'aria-label': `${skillTitle}, ${exploreLocale}`,
79
78
  label: exploreLocale,
@@ -82,8 +81,8 @@ const LearnerSkillCard = (props, context) => {
82
81
  position: 'left',
83
82
  faIcon: {
84
83
  name: 'compass',
85
- backgroundColor: hovered ? primarySkinColor : (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
86
- color: hovered ? '#FFFFFF' : primarySkinColor,
84
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
85
+ color: primarySkinColor,
87
86
  size: 16
88
87
  }
89
88
  }
@@ -153,8 +152,6 @@ const LearnerSkillCard = (props, context) => {
153
152
  "data-name": "cta-wrapper"
154
153
  }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonReviewProps), /*#__PURE__*/_react.default.createElement("div", {
155
154
  className: _style.default.buttonWrapper,
156
- onMouseOver: handleMouseOver,
157
- onMouseLeave: handleMouseLeave,
158
155
  "data-name": "button-explore-wrapper"
159
156
  }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonExploreProps))));
160
157
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["LearnerSkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","focus","metrics","review","onReviewClick","onExploreClick","score","content","questionsToReview","contentCompleted","skin","translate","hovered","setHovered","useState","primarySkinColor","reviewLocale","exploreLocale","coursesLocale","questionsLocale","skillFocusLocale","contentCompletedLocale","handleMouseOver","useCallback","handleMouseLeave","buttonReviewProps","customStyle","backgroundColor","transition","padding","disabled","onClick","label","buttonExploreProps","convert","color","icon","position","faIcon","name","size","ProgressBar","progressBarColor","inlineProgressValueStyle","width","style","progressWrapper","progress","learnerSkillCardWrapper","skillCoursesAndQuestionsWrapper","skillInformation","skillInformationNumber","skillTitleWrapper","skillFocusBadge","faSize","wrapperSize","progressInformations","progressInformation","progressInformationNumber","ctaWrapper","buttonWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","shape","number","func"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport {convert} from 'css-color-function';\nimport {get} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n focus = false,\n metrics,\n review = false,\n onReviewClick,\n onExploreClick\n } = props;\n const {score, content, questionsToReview, contentCompleted = 0} = metrics;\n const {skin, translate} = context;\n const [hovered, setHovered] = useState(false);\n const primarySkinColor = get('common.primary', skin);\n\n const reviewLocale = translate('Review');\n const exploreLocale = translate('Explore');\n const coursesLocale = translate('courses');\n const questionsLocale = translate('questions');\n const skillFocusLocale = translate('skill_focus');\n const contentCompletedLocale = translate('courses_completed');\n\n const handleMouseOver = useCallback(() => setHovered(true), [setHovered]);\n\n const handleMouseLeave = useCallback(() => setHovered(false), [setHovered]);\n\n const buttonReviewProps = {\n customStyle: {\n backgroundColor: '#FFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n padding: '0px'\n },\n disabled: !review,\n onClick: onReviewClick,\n 'aria-label': `${skillTitle}, ${reviewLocale}`,\n label: reviewLocale,\n 'data-name': 'learner-skill-card-review-button'\n };\n\n const buttonExploreProps = {\n customStyle: {\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n onClick: onExploreClick,\n 'aria-label': `${skillTitle}, ${exploreLocale}`,\n label: exploreLocale,\n 'data-name': 'learner-skill-card-explore-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'compass',\n backgroundColor: hovered ? primarySkinColor : convert(`color(${primarySkinColor} a(0.07))`),\n color: hovered ? '#FFFFFF' : primarySkinColor,\n size: 16\n }\n }\n };\n\n const ProgressBar = useCallback(() => {\n if (!content) return null;\n\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${score}%`\n };\n\n return (\n <div className={style.progressWrapper}>\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n </div>\n );\n }, [score, ariaLabel, content]);\n\n return (\n <div\n className={style.learnerSkillCardWrapper}\n data-name=\"learner-skill-card-wrapper\"\n aria-label={ariaLabel}\n >\n {content || questionsToReview ? (\n <div className={style.skillCoursesAndQuestionsWrapper}>\n {content ? (\n <div className={style.skillInformation} data-name=\"skill-courses\">\n <span className={style.skillInformationNumber}>{content}</span> {coursesLocale}\n </div>\n ) : null}\n {questionsToReview ? (\n <div className={style.skillInformation} data-name=\"skill-questions\">\n <span className={style.skillInformationNumber}>{questionsToReview}</span>\n &nbsp;{questionsLocale}\n </div>\n ) : null}\n </div>\n ) : null}\n <div className={style.skillTitleWrapper}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n >\n {skillTitle}\n </div>\n {focus ? (\n <div className={style.skillFocusBadge}>\n <Icon\n iconName=\"bullseye-arrow\"\n backgroundColor=\"#DDD1FF\"\n size={{\n faSize: 10,\n wrapperSize: 16\n }}\n />\n {skillFocusLocale}\n </div>\n ) : null}\n </div>\n <ProgressBar />\n <div className={style.progressInformations}>\n {content ? (\n <>\n <div className={style.progressInformation} data-name=\"skill-completed-courses\">\n <span className={style.progressInformationNumber}>{contentCompleted}</span>\n {` ${contentCompletedLocale}`}\n </div>\n <div className={style.progressInformation} data-name=\"completed-percentage\">\n <span className={style.progressInformationNumber}>{score}%</span>\n </div>\n </>\n ) : null}\n </div>\n <div className={style.ctaWrapper} data-name=\"cta-wrapper\">\n <ButtonLink {...buttonReviewProps} />\n <div\n className={style.buttonWrapper}\n onMouseOver={handleMouseOver}\n onMouseLeave={handleMouseLeave}\n data-name=\"button-explore-wrapper\"\n >\n <ButtonLink {...buttonExploreProps} />\n </div>\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n 'aria-label': PropTypes.string,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n focus: PropTypes.bool,\n metrics: PropTypes.shape({\n score: PropTypes.number,\n content: PropTypes.number,\n questionsToReview: PropTypes.number,\n contentCompleted: PropTypes.number\n }),\n review: PropTypes.bool,\n onReviewClick: PropTypes.func,\n onExploreClick: PropTypes.func\n};\n\nexport default LearnerSkillCard;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IACJ,cAAcC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names":["LearnerSkillCard","props","context","ariaLabel","skillTitle","skillAriaLabel","focus","metrics","review","onReviewClick","onExploreClick","score","content","questionsToReview","contentCompleted","skin","translate","primarySkinColor","reviewLocale","exploreLocale","coursesLocale","questionsLocale","skillFocusLocale","contentCompletedLocale","buttonReviewProps","customStyle","backgroundColor","transition","padding","disabled","onClick","label","buttonExploreProps","convert","color","hoverColor","hoverBackgroundColor","icon","position","faIcon","name","size","ProgressBar","useCallback","progressBarColor","inlineProgressValueStyle","width","style","progressWrapper","progress","learnerSkillCardWrapper","skillCoursesAndQuestionsWrapper","skillInformation","skillInformationNumber","skillTitleWrapper","skillFocusBadge","faSize","wrapperSize","progressInformations","progressInformation","progressInformationNumber","ctaWrapper","buttonWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","bool","shape","number","func"],"sources":["../../../src/molecule/learner-skill-card/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport {convert} from 'css-color-function';\nimport {get} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport Provider from '../../atom/provider';\nimport style from './style.css';\n\nconst LearnerSkillCard = (props, context) => {\n const {\n 'aria-label': ariaLabel,\n skillTitle,\n skillAriaLabel,\n focus = false,\n metrics,\n review = false,\n onReviewClick,\n onExploreClick\n } = props;\n const {score, content, questionsToReview, contentCompleted = 0} = metrics;\n const {skin, translate} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const reviewLocale = translate('Review');\n const exploreLocale = translate('Explore');\n const coursesLocale = translate('courses');\n const questionsLocale = translate('questions');\n const skillFocusLocale = translate('skill_focus');\n const contentCompletedLocale = translate('courses_completed');\n\n const buttonReviewProps = {\n customStyle: {\n backgroundColor: '#FFF',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n padding: '0px'\n },\n disabled: !review,\n onClick: onReviewClick,\n 'aria-label': `${skillTitle}, ${reviewLocale}`,\n label: reviewLocale,\n 'data-name': 'learner-skill-card-review-button'\n };\n\n const buttonExploreProps = {\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverColor: '#FFFFFF',\n hoverBackgroundColor: primarySkinColor,\n onClick: onExploreClick,\n 'aria-label': `${skillTitle}, ${exploreLocale}`,\n label: exploreLocale,\n 'data-name': 'learner-skill-card-explore-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'compass',\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n size: 16\n }\n }\n };\n\n const ProgressBar = useCallback(() => {\n if (!content) return null;\n\n const progressBarColor = '#3EC483';\n const inlineProgressValueStyle = {\n backgroundColor: progressBarColor,\n width: `${score}%`\n };\n\n return (\n <div className={style.progressWrapper}>\n <div\n data-name=\"progress\"\n className={style.progress}\n style={inlineProgressValueStyle}\n role=\"progressbar\"\n aria-label={get('progression', ariaLabel)}\n />\n </div>\n );\n }, [score, ariaLabel, content]);\n\n return (\n <div\n className={style.learnerSkillCardWrapper}\n data-name=\"learner-skill-card-wrapper\"\n aria-label={ariaLabel}\n >\n {content || questionsToReview ? (\n <div className={style.skillCoursesAndQuestionsWrapper}>\n {content ? (\n <div className={style.skillInformation} data-name=\"skill-courses\">\n <span className={style.skillInformationNumber}>{content}</span> {coursesLocale}\n </div>\n ) : null}\n {questionsToReview ? (\n <div className={style.skillInformation} data-name=\"skill-questions\">\n <span className={style.skillInformationNumber}>{questionsToReview}</span>\n &nbsp;{questionsLocale}\n </div>\n ) : null}\n </div>\n ) : null}\n <div className={style.skillTitleWrapper}>\n <div\n data-name=\"skill-title\"\n className={style.skillTitle}\n aria-label={skillAriaLabel || skillTitle}\n >\n {skillTitle}\n </div>\n {focus ? (\n <div className={style.skillFocusBadge}>\n <Icon\n iconName=\"bullseye-arrow\"\n backgroundColor=\"#DDD1FF\"\n size={{\n faSize: 10,\n wrapperSize: 16\n }}\n />\n {skillFocusLocale}\n </div>\n ) : null}\n </div>\n <ProgressBar />\n <div className={style.progressInformations}>\n {content ? (\n <>\n <div className={style.progressInformation} data-name=\"skill-completed-courses\">\n <span className={style.progressInformationNumber}>{contentCompleted}</span>\n {` ${contentCompletedLocale}`}\n </div>\n <div className={style.progressInformation} data-name=\"completed-percentage\">\n <span className={style.progressInformationNumber}>{score}%</span>\n </div>\n </>\n ) : null}\n </div>\n <div className={style.ctaWrapper} data-name=\"cta-wrapper\">\n <ButtonLink {...buttonReviewProps} />\n <div className={style.buttonWrapper} data-name=\"button-explore-wrapper\">\n <ButtonLink {...buttonExploreProps} />\n </div>\n </div>\n </div>\n );\n};\n\nLearnerSkillCard.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nLearnerSkillCard.propTypes = {\n 'aria-label': PropTypes.string,\n skillTitle: PropTypes.string,\n skillAriaLabel: PropTypes.string,\n focus: PropTypes.bool,\n metrics: PropTypes.shape({\n score: PropTypes.number,\n content: PropTypes.number,\n questionsToReview: PropTypes.number,\n contentCompleted: PropTypes.number\n }),\n review: PropTypes.bool,\n onReviewClick: PropTypes.func,\n onExploreClick: PropTypes.func\n};\n\nexport default LearnerSkillCard;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,gBAAgB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC3C,MAAM;IACJ,cAAcC,SADV;IAEJC,UAFI;IAGJC,cAHI;IAIJC,KAAK,GAAG,KAJJ;IAKJC,OALI;IAMJC,MAAM,GAAG,KANL;IAOJC,aAPI;IAQJC;EARI,IASFT,KATJ;EAUA,MAAM;IAACU,KAAD;IAAQC,OAAR;IAAiBC,iBAAjB;IAAoCC,gBAAgB,GAAG;EAAvD,IAA4DP,OAAlE;EACA,MAAM;IAACQ,IAAD;IAAOC;EAAP,IAAoBd,OAA1B;EACA,MAAMe,gBAAgB,G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MAFK;EAG3B/D,cAAc,EAAE8D,kBAAA,CAAUC,MAHC;EAI3B9D,KAAK,EAAE6D,kBAAA,CAAUE,IAJU;EAK3B9D,OAAO,EAAE4D,kBAAA,CAAUG,KAAV,CAAgB;IACvB3D,KAAK,EAAEwD,kBAAA,CAAUI,MADM;IAEvB3D,OAAO,EAAEuD,kBAAA,CAAUI,MAFI;IAGvB1D,iBAAiB,EAAEsD,kBAAA,CAAUI,MAHN;IAIvBzD,gBAAgB,EAAEqD,kBAAA,CAAUI;EAJL,CAAhB,CALkB;EAW3B/D,MAAM,EAAE2D,kBAAA,CAAUE,IAXS;EAY3B5D,aAAa,EAAE0D,kBAAA,CAAUK,IAZE;EAa3B9D,cAAc,EAAEyD,kBAAA,CAAUK;AAbC,CAA7B;eAgBexE,gB"}
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ import { WebContextValues } from '../../atom/provider/web-context';
3
+ import { LearningPriorityCardPropTypes } from './types';
4
+ declare const LearningPriorityCard: {
5
+ (props: LearningPriorityCardPropTypes, context: WebContextValues): JSX.Element;
6
+ propTypes: {
7
+ title: import("prop-types").Requireable<string>;
8
+ tag: import("prop-types").Requireable<import("prop-types").InferProps<{
9
+ label: import("prop-types").Requireable<string>;
10
+ }>>;
11
+ progression: import("prop-types").Requireable<number>;
12
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
13
+ };
14
+ contextTypes: {
15
+ skin: import("prop-types").Requireable<import("prop-types").InferProps<{
16
+ common: import("prop-types").Requireable<{
17
+ [x: string]: any;
18
+ }>;
19
+ images: import("prop-types").Requireable<import("prop-types").InferProps<{
20
+ 'logo-mobile': import("prop-types").Requireable<any>;
21
+ logo: import("prop-types").Requireable<any>;
22
+ 'logo-email': import("prop-types").Requireable<any>;
23
+ login: import("prop-types").Requireable<any>;
24
+ }>>;
25
+ icons: import("prop-types").Requireable<{
26
+ [x: string]: any;
27
+ }>;
28
+ mod: import("prop-types").Requireable<{
29
+ [x: string]: any;
30
+ }>;
31
+ courses: import("prop-types").Requireable<any[]>;
32
+ texts: import("prop-types").Requireable<{
33
+ [x: string]: any;
34
+ }>;
35
+ }>>;
36
+ translate: import("prop-types").Requireable<(...args: any[]) => any>;
37
+ };
38
+ };
39
+ export default LearningPriorityCard;
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learning-priority-card/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAIjE,OAAO,EAAC,6BAA6B,EAAY,MAAM,SAAS,CAAC;AAGjE,QAAA,MAAM,oBAAoB;YAAW,6BAA6B,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D5F,CAAC;AASF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _get2 = _interopRequireDefault(require("lodash/fp/get"));
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _cssColorFunction = require("css-color-function");
11
+
12
+ var _provider = _interopRequireWildcard(require("../../atom/provider"));
13
+
14
+ var _tag = _interopRequireDefault(require("../../atom/tag"));
15
+
16
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
17
+
18
+ var _circularProgressBar = _interopRequireDefault(require("../../atom/circular-progress-bar"));
19
+
20
+ var _types = require("./types");
21
+
22
+ var _style = _interopRequireDefault(require("./style.css"));
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+
30
+ const LearningPriorityCard = (props, context) => {
31
+ const {
32
+ tag: {
33
+ label: tagLabel
34
+ },
35
+ title,
36
+ progression,
37
+ onClick
38
+ } = props;
39
+ const translate = (0, _provider.GetTranslateFromContext)(context);
40
+ const skin = (0, _provider.GetSkinFromContext)(context);
41
+ const exploreLocale = translate('Explore');
42
+ const primarySkinColor = (0, _get2.default)('common.primary', skin);
43
+ const buttonExploreProps = {
44
+ customStyle: {
45
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
46
+ color: primarySkinColor,
47
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'
48
+ },
49
+ hoverBackgroundColor: primarySkinColor,
50
+ hoverColor: '#FFFFFF',
51
+ onClick,
52
+ 'aria-label': `${title}, ${exploreLocale}`,
53
+ label: exploreLocale,
54
+ 'data-name': 'learning-priority-explore-button',
55
+ icon: {
56
+ position: 'left',
57
+ faIcon: {
58
+ name: 'compass',
59
+ backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
60
+ color: primarySkinColor,
61
+ size: 16
62
+ }
63
+ }
64
+ };
65
+ return /*#__PURE__*/_react.default.createElement("div", {
66
+ className: _style.default.container,
67
+ "aria-label": `learning priority card ${title}`,
68
+ "data-name": `learning-priority-card-${title}`
69
+ }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_tag.default, {
70
+ label: tagLabel,
71
+ size: 'S'
72
+ })), /*#__PURE__*/_react.default.createElement("div", {
73
+ className: _style.default.title
74
+ }, title), /*#__PURE__*/_react.default.createElement("div", {
75
+ className: _style.default.circularProgressBarContainer
76
+ }, /*#__PURE__*/_react.default.createElement(_circularProgressBar.default, {
77
+ size: 162,
78
+ strokeWidth: 12,
79
+ progression,
80
+ label: translate('completed'),
81
+ 'aria-label': `${title} ${progression}%`,
82
+ 'data-name': `circular-progress-bar-${title}`
83
+ })), /*#__PURE__*/_react.default.createElement("div", {
84
+ "data-name": "button-explore-wrapper"
85
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonExploreProps)));
86
+ };
87
+
88
+ LearningPriorityCard.propTypes = process.env.NODE_ENV !== "production" ? _types.propTypes : {};
89
+ LearningPriorityCard.contextTypes = {
90
+ skin: _provider.default.childContextTypes.skin,
91
+ translate: _provider.default.childContextTypes.translate
92
+ };
93
+ var _default = LearningPriorityCard;
94
+ exports.default = _default;
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["LearningPriorityCard","props","context","tag","label","tagLabel","title","progression","onClick","translate","GetTranslateFromContext","skin","GetSkinFromContext","exploreLocale","primarySkinColor","buttonExploreProps","customStyle","backgroundColor","convert","color","transition","hoverBackgroundColor","hoverColor","icon","position","faIcon","name","size","style","container","circularProgressBarContainer","strokeWidth","propTypes","contextTypes","Provider","childContextTypes"],"sources":["../../../src/molecule/learning-priority-card/index.tsx"],"sourcesContent":["import React from 'react';\nimport {get} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport Provider, {GetTranslateFromContext, GetSkinFromContext} from '../../atom/provider';\nimport {WebContextValues} from '../../atom/provider/web-context';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport CircularProgressBar from '../../atom/circular-progress-bar';\nimport {LearningPriorityCardPropTypes, propTypes} from './types';\nimport style from './style.css';\n\nconst LearningPriorityCard = (props: LearningPriorityCardPropTypes, context: WebContextValues) => {\n const {\n tag: {label: tagLabel},\n title,\n progression,\n onClick\n } = props;\n const translate = GetTranslateFromContext(context);\n const skin = GetSkinFromContext(context);\n const exploreLocale = translate('Explore');\n const primarySkinColor = get('common.primary', skin);\n\n const buttonExploreProps = {\n customStyle: {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out'\n },\n hoverBackgroundColor: primarySkinColor,\n hoverColor: '#FFFFFF',\n onClick,\n 'aria-label': `${title}, ${exploreLocale}`,\n label: exploreLocale,\n 'data-name': 'learning-priority-explore-button',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: 'compass',\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`),\n color: primarySkinColor,\n size: 16\n }\n }\n };\n\n return (\n <div\n className={style.container}\n aria-label={`learning priority card ${title}`}\n data-name={`learning-priority-card-${title}`}\n >\n <div>\n <Tag label={tagLabel} size={'S'} />\n </div>\n <div className={style.title}>{title}</div>\n <div className={style.circularProgressBarContainer}>\n <CircularProgressBar\n {...{\n size: 162,\n strokeWidth: 12,\n progression,\n label: translate('completed'),\n 'aria-label': `${title} ${progression}%`,\n 'data-name': `circular-progress-bar-${title}`\n }}\n />\n </div>\n <div data-name=\"button-explore-wrapper\">\n <ButtonLink {...buttonExploreProps} />\n </div>\n </div>\n );\n};\n\nLearningPriorityCard.propTypes = propTypes;\n\nLearningPriorityCard.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nexport default LearningPriorityCard;\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,oBAAoB,GAAG,CAACC,KAAD,EAAuCC,OAAvC,KAAqE;EAChG,MAAM;IACJC,GAAG,EAAE;MA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EIH,IAAI,EAAE,GAFV;IAGII,WAAW,EAAE,EAHjB;IAIIxB,WAJJ;IAKIH,KAAK,EAAEK,SAAS,CAAC,WAAD,CALpB;IAMI,cAAe,GAAEH,KAAM,IAAGC,WAAY,GAN1C;IAOI,aAAc,yBAAwBD,KAAM;EAPhD,EADF,CATF,eAqBE;IAAK,aAAU;EAAf,gBACE,6BAAC,mBAAD,EAAgBS,kBAAhB,CADF,CArBF,CADF;AA2BD,CA9DD;;AAgEAf,oBAAoB,CAACgC,SAArB,2CAAiCA,gBAAjC;AAEAhC,oBAAoB,CAACiC,YAArB,GAAoC;EAClCtB,IAAI,EAAEuB,iBAAA,CAASC,iBAAT,CAA2BxB,IADC;EAElCF,SAAS,EAAEyB,iBAAA,CAASC,iBAAT,CAA2B1B;AAFJ,CAApC;eAKeT,oB"}
@@ -0,0 +1,34 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_100 from colors;
3
+
4
+ .container {
5
+ font-family: Gilroy;
6
+ width: 256px;
7
+ height: 334px;
8
+ border: 1px cm_grey_100 solid;
9
+ border-radius: 16px;
10
+ padding: 16px;
11
+ box-sizing: border-box;
12
+ display: flex;
13
+ flex-direction: column;
14
+ justify-content: space-between;
15
+ box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.04);
16
+ }
17
+
18
+ .title {
19
+ height: 44px;
20
+ margin-top: 4px;
21
+ font-size: 16px;
22
+ font-weight: 700;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ line-height: 22px;
26
+ -webkit-line-clamp: 2;
27
+ line-clamp: 2;
28
+ display: -webkit-box;
29
+ -webkit-box-orient: vertical;
30
+ }
31
+
32
+ .circularProgressBarContainer {
33
+ padding: 14px;
34
+ }
@@ -0,0 +1,18 @@
1
+ import PropTypes from 'prop-types';
2
+ export declare type LearningPriorityCardPropTypes = {
3
+ title: string;
4
+ tag: {
5
+ label: 'Skill' | 'Playlist' | 'Certification';
6
+ };
7
+ progression: number;
8
+ onClick: () => void;
9
+ };
10
+ export declare const propTypes: {
11
+ title: PropTypes.Requireable<string>;
12
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
13
+ label: PropTypes.Requireable<string>;
14
+ }>>;
15
+ progression: PropTypes.Requireable<number>;
16
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
17
+ };
18
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/learning-priority-card/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,oBAAY,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE;QACH,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,eAAe,CAAC;KAC/C,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.propTypes = void 0;
5
+
6
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
+
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+
10
+ const propTypes = {
11
+ title: _propTypes.default.string,
12
+ tag: _propTypes.default.shape({
13
+ label: _propTypes.default.oneOf(['Playlist', 'Certification', 'Skill'])
14
+ }),
15
+ progression: _propTypes.default.number,
16
+ onClick: _propTypes.default.func
17
+ };
18
+ exports.propTypes = propTypes;
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["propTypes","title","PropTypes","string","tag","shape","label","oneOf","progression","number","onClick","func"],"sources":["../../../src/molecule/learning-priority-card/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport type LearningPriorityCardPropTypes = {\n title: string;\n tag: {\n label: 'Skill' | 'Playlist' | 'Certification';\n };\n progression: number;\n onClick: () => void;\n};\n\nexport const propTypes = {\n title: PropTypes.string,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Playlist', 'Certification', 'Skill'])\n }),\n progression: PropTypes.number,\n onClick: PropTypes.func\n};\n"],"mappings":";;;;;AAAA;;;;AAWO,MAAMA,SAAS,GAAG;EACvBC,KAAK,EAAEC,kBAAA,CAAUC,MADM;EAEvBC,GAAG,EAAEF,kBAAA,CAAUG,KAAV,CAAgB;IACnBC,KAAK,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB,CAAC,UAAD,EAAa,eAAb,EAA8B,OAA9B,CAAhB;EADY,CAAhB,CAFkB;EAKvBC,WAAW,EAAEN,kBAAA,CAAUO,MALA;EAMvBC,OAAO,EAAER,kBAAA,CAAUS;AANI,CAAlB"}
@@ -0,0 +1,33 @@
1
+ export default LearningPriorityModal;
2
+ declare function LearningPriorityModal(props: any, context: any): JSX.Element | null;
3
+ declare namespace LearningPriorityModal {
4
+ namespace contextTypes {
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
+ }
7
+ namespace propTypes {
8
+ const priorities: PropTypes.Requireable<(PropTypes.InferProps<{
9
+ ref: PropTypes.Requireable<string>;
10
+ title: PropTypes.Requireable<string>;
11
+ courses: PropTypes.Requireable<number>;
12
+ type: PropTypes.Requireable<string>;
13
+ }> | null | undefined)[]>;
14
+ const preselected: PropTypes.Requireable<(string | null | undefined)[]>;
15
+ const isOpen: PropTypes.Requireable<boolean>;
16
+ const isLoading: PropTypes.Requireable<boolean>;
17
+ const filters: PropTypes.Requireable<PropTypes.InferProps<{
18
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
19
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
20
+ count: PropTypes.Requireable<number>;
21
+ name: PropTypes.Validator<string>;
22
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
23
+ selected: PropTypes.Requireable<boolean>;
24
+ validOption: PropTypes.Requireable<boolean>;
25
+ }> | null | undefined)[]>;
26
+ }>>;
27
+ const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
28
+ const onAdd: PropTypes.Requireable<(...args: any[]) => any>;
29
+ const onClose: PropTypes.Requireable<(...args: any[]) => any>;
30
+ }
31
+ }
32
+ import PropTypes from "prop-types";
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learning-priority-modal/index.js"],"names":[],"mappings":";AAgEA,qFAsJC"}