@coorpacademy/components 11.40.26 → 11.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/es/atom/chip/index.d.ts +1 -0
  2. package/es/atom/chip/index.d.ts.map +1 -1
  3. package/es/atom/chip/index.js +6 -3
  4. package/es/atom/chip/index.js.map +1 -1
  5. package/es/atom/drag-and-drop/index.d.ts +2 -0
  6. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  7. package/es/atom/drag-and-drop/index.js +9 -4
  8. package/es/atom/drag-and-drop/index.js.map +1 -1
  9. package/es/atom/input-date/index.d.ts +21 -0
  10. package/es/atom/input-date/index.d.ts.map +1 -0
  11. package/es/atom/input-date/index.js +73 -0
  12. package/es/atom/input-date/index.js.map +1 -0
  13. package/es/atom/input-date/style.css +88 -0
  14. package/es/atom/input-file-draggable/index.d.ts +10 -2
  15. package/es/atom/input-file-draggable/index.d.ts.map +1 -1
  16. package/es/atom/input-file-draggable/index.js +12 -4
  17. package/es/atom/input-file-draggable/index.js.map +1 -1
  18. package/es/atom/radio-with-title/index.d.ts +1 -0
  19. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  20. package/es/atom/radio-with-title/types.d.ts +1 -0
  21. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  22. package/es/atom/title/index.d.ts +1 -0
  23. package/es/atom/title/index.d.ts.map +1 -1
  24. package/es/atom/title/index.js +16 -6
  25. package/es/atom/title/index.js.map +1 -1
  26. package/es/atom/title/style.css +4 -0
  27. package/es/atom/video-upload/index.d.ts +2 -0
  28. package/es/molecule/assignment-card/index.d.ts +62 -0
  29. package/es/molecule/assignment-card/index.d.ts.map +1 -0
  30. package/es/molecule/assignment-card/index.js +91 -0
  31. package/es/molecule/assignment-card/index.js.map +1 -0
  32. package/es/molecule/assignment-card/style.css +98 -0
  33. package/es/molecule/assignment-status-tag/index.d.ts +13 -0
  34. package/es/molecule/assignment-status-tag/index.d.ts.map +1 -0
  35. package/es/molecule/assignment-status-tag/index.js +42 -0
  36. package/es/molecule/assignment-status-tag/index.js.map +1 -0
  37. package/es/molecule/assignment-status-tag/types.d.ts +15 -0
  38. package/es/molecule/assignment-status-tag/types.d.ts.map +1 -0
  39. package/es/molecule/assignment-status-tag/types.js +8 -0
  40. package/es/molecule/assignment-status-tag/types.js.map +1 -0
  41. package/es/molecule/brand-form-group/index.d.ts.map +1 -1
  42. package/es/molecule/brand-form-group/index.js +7 -0
  43. package/es/molecule/brand-form-group/index.js.map +1 -1
  44. package/es/molecule/card/index.d.ts +1 -0
  45. package/es/molecule/card/index.d.ts.map +1 -1
  46. package/es/molecule/card/index.js +3 -0
  47. package/es/molecule/card/index.js.map +1 -1
  48. package/es/molecule/card-content/index.d.ts +3 -1
  49. package/es/molecule/card-content/index.d.ts.map +1 -1
  50. package/es/molecule/card-content/index.js +7 -1
  51. package/es/molecule/card-content/index.js.map +1 -1
  52. package/es/molecule/cm-popin/types.d.ts +11 -0
  53. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  54. package/es/molecule/dashboard/cards-list/index.d.ts +3 -0
  55. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  56. package/es/molecule/dashboard/cards-list/index.js +11 -5
  57. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  58. package/es/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  59. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  60. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  61. package/es/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
  62. package/es/molecule/draggable-list/index.d.ts +63 -54
  63. package/es/molecule/tabs/index.d.ts +1 -0
  64. package/es/molecule/tabs/index.d.ts.map +1 -1
  65. package/es/molecule/tabs/index.js +7 -3
  66. package/es/molecule/tabs/index.js.map +1 -1
  67. package/es/molecule/tabs/style.css +4 -0
  68. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
  69. package/es/molecule/title-radio-wrapper/index.d.ts +7 -0
  70. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  71. package/es/molecule/title-radio-wrapper/types.d.ts +7 -0
  72. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  73. package/es/organism/assignment-audience/index.d.ts +92 -0
  74. package/es/organism/assignment-audience/index.d.ts.map +1 -0
  75. package/es/organism/assignment-audience/index.js +236 -0
  76. package/es/organism/assignment-audience/index.js.map +1 -0
  77. package/es/organism/assignment-audience/style.css +115 -0
  78. package/es/organism/assignment-audience/types.d.ts +193 -0
  79. package/es/organism/assignment-audience/types.d.ts.map +1 -0
  80. package/es/organism/assignment-audience/types.js +108 -0
  81. package/es/organism/assignment-audience/types.js.map +1 -0
  82. package/es/organism/assignment-audience/upload-result.css +47 -0
  83. package/es/organism/assignment-audience/upload-result.d.ts +26 -0
  84. package/es/organism/assignment-audience/upload-result.d.ts.map +1 -0
  85. package/es/organism/assignment-audience/upload-result.js +89 -0
  86. package/es/organism/assignment-audience/upload-result.js.map +1 -0
  87. package/es/organism/assignment-row/index.d.ts +55 -0
  88. package/es/organism/assignment-row/index.d.ts.map +1 -0
  89. package/es/organism/assignment-row/index.js +38 -0
  90. package/es/organism/assignment-row/index.js.map +1 -0
  91. package/es/organism/assignment-row/types.d.ts +83 -0
  92. package/es/organism/assignment-row/types.d.ts.map +1 -0
  93. package/es/organism/assignment-row/types.js +29 -0
  94. package/es/organism/assignment-row/types.js.map +1 -0
  95. package/es/organism/brand-learning-priorities/index.d.ts +63 -54
  96. package/es/organism/content-skill-modal/index.d.ts +10 -0
  97. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  98. package/es/organism/content-skill-modal/types.d.ts +10 -0
  99. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  100. package/es/organism/list-item/index.d.ts +13 -1
  101. package/es/organism/list-item/index.d.ts.map +1 -1
  102. package/es/organism/list-item/index.js +45 -3
  103. package/es/organism/list-item/index.js.map +1 -1
  104. package/es/organism/list-item/style.css +36 -0
  105. package/es/organism/list-items/index.d.ts +10 -0
  106. package/es/organism/list-items/index.d.ts.map +1 -1
  107. package/es/organism/list-items/index.js +4 -1
  108. package/es/organism/list-items/index.js.map +1 -1
  109. package/es/organism/mooc-header/index.d.ts +7 -0
  110. package/es/organism/mooc-header/index.d.ts.map +1 -1
  111. package/es/organism/mooc-header/index.js +30 -1
  112. package/es/organism/mooc-header/index.js.map +1 -1
  113. package/es/organism/mooc-header/style.css +11 -0
  114. package/es/organism/rewards-form/index.d.ts +13 -0
  115. package/es/organism/select-opponents/index.d.ts +13 -0
  116. package/es/organism/select-opponents/index.d.ts.map +1 -1
  117. package/es/organism/select-opponents/types.d.ts +13 -0
  118. package/es/organism/select-opponents/types.d.ts.map +1 -1
  119. package/es/organism/title-and-input/index.d.ts +14 -0
  120. package/es/organism/title-and-input/index.d.ts.map +1 -1
  121. package/es/organism/title-and-input/types.d.ts +14 -0
  122. package/es/organism/title-and-input/types.d.ts.map +1 -1
  123. package/es/organism/wizard-contents/index.d.ts +13 -0
  124. package/es/template/app-player/loading/index.d.ts +11 -0
  125. package/es/template/app-player/player/index.d.ts +22 -0
  126. package/es/template/app-player/player/slides/index.d.ts +11 -0
  127. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  128. package/es/template/app-player/popin-correction/index.d.ts +11 -0
  129. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  130. package/es/template/app-player/popin-end/index.d.ts +14 -0
  131. package/es/template/app-player/popin-end/summary.d.ts +3 -0
  132. package/es/template/app-review/index.d.ts +11 -0
  133. package/es/template/app-review/index.d.ts.map +1 -1
  134. package/es/template/app-review/player/prop-types.d.ts +11 -0
  135. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  136. package/es/template/app-review/prop-types.d.ts +11 -0
  137. package/es/template/app-review/prop-types.d.ts.map +1 -1
  138. package/es/template/back-office/brand-update/index.d.ts +95 -54
  139. package/es/template/certification-detail/index.d.ts +11 -0
  140. package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
  141. package/es/template/common/dashboard/index.d.ts +22 -0
  142. package/es/template/common/dashboard/index.d.ts.map +1 -1
  143. package/es/template/common/dashboard/index.js +37 -1
  144. package/es/template/common/dashboard/index.js.map +1 -1
  145. package/es/template/common/search-page/index.d.ts +17 -0
  146. package/es/template/external-course/index.d.ts +11 -0
  147. package/es/template/my-assignments/index.d.ts +167 -0
  148. package/es/template/my-assignments/index.d.ts.map +1 -0
  149. package/es/template/my-assignments/index.js +221 -0
  150. package/es/template/my-assignments/index.js.map +1 -0
  151. package/es/template/my-assignments/style.css +84 -0
  152. package/es/template/my-learning/index.d.ts +3 -0
  153. package/es/template/playlist-detail/index.d.ts +11 -0
  154. package/es/template/teams-dashboard/index.d.ts +3 -0
  155. package/es/util/proptypes.d.ts.map +1 -1
  156. package/es/util/proptypes.js +2 -2
  157. package/es/util/proptypes.js.map +1 -1
  158. package/lib/atom/chip/index.d.ts +1 -0
  159. package/lib/atom/chip/index.d.ts.map +1 -1
  160. package/lib/atom/chip/index.js +6 -3
  161. package/lib/atom/chip/index.js.map +1 -1
  162. package/lib/atom/drag-and-drop/index.d.ts +2 -0
  163. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  164. package/lib/atom/drag-and-drop/index.js +9 -4
  165. package/lib/atom/drag-and-drop/index.js.map +1 -1
  166. package/lib/atom/input-date/index.d.ts +21 -0
  167. package/lib/atom/input-date/index.d.ts.map +1 -0
  168. package/lib/atom/input-date/index.js +80 -0
  169. package/lib/atom/input-date/index.js.map +1 -0
  170. package/lib/atom/input-date/style.css +88 -0
  171. package/lib/atom/input-file-draggable/index.d.ts +10 -2
  172. package/lib/atom/input-file-draggable/index.d.ts.map +1 -1
  173. package/lib/atom/input-file-draggable/index.js +12 -4
  174. package/lib/atom/input-file-draggable/index.js.map +1 -1
  175. package/lib/atom/radio-with-title/index.d.ts +1 -0
  176. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  177. package/lib/atom/radio-with-title/types.d.ts +1 -0
  178. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  179. package/lib/atom/title/index.d.ts +1 -0
  180. package/lib/atom/title/index.d.ts.map +1 -1
  181. package/lib/atom/title/index.js +16 -6
  182. package/lib/atom/title/index.js.map +1 -1
  183. package/lib/atom/title/style.css +4 -0
  184. package/lib/atom/video-upload/index.d.ts +2 -0
  185. package/lib/molecule/assignment-card/index.d.ts +62 -0
  186. package/lib/molecule/assignment-card/index.d.ts.map +1 -0
  187. package/lib/molecule/assignment-card/index.js +97 -0
  188. package/lib/molecule/assignment-card/index.js.map +1 -0
  189. package/lib/molecule/assignment-card/style.css +98 -0
  190. package/lib/molecule/assignment-status-tag/index.d.ts +13 -0
  191. package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -0
  192. package/lib/molecule/assignment-status-tag/index.js +47 -0
  193. package/lib/molecule/assignment-status-tag/index.js.map +1 -0
  194. package/lib/molecule/assignment-status-tag/types.d.ts +15 -0
  195. package/lib/molecule/assignment-status-tag/types.d.ts.map +1 -0
  196. package/lib/molecule/assignment-status-tag/types.js +13 -0
  197. package/lib/molecule/assignment-status-tag/types.js.map +1 -0
  198. package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
  199. package/lib/molecule/brand-form-group/index.js +7 -0
  200. package/lib/molecule/brand-form-group/index.js.map +1 -1
  201. package/lib/molecule/card/index.d.ts +1 -0
  202. package/lib/molecule/card/index.d.ts.map +1 -1
  203. package/lib/molecule/card/index.js +3 -0
  204. package/lib/molecule/card/index.js.map +1 -1
  205. package/lib/molecule/card-content/index.d.ts +3 -1
  206. package/lib/molecule/card-content/index.d.ts.map +1 -1
  207. package/lib/molecule/card-content/index.js +7 -1
  208. package/lib/molecule/card-content/index.js.map +1 -1
  209. package/lib/molecule/cm-popin/types.d.ts +11 -0
  210. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  211. package/lib/molecule/dashboard/cards-list/index.d.ts +3 -0
  212. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  213. package/lib/molecule/dashboard/cards-list/index.js +11 -5
  214. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  215. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  216. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  217. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  218. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
  219. package/lib/molecule/draggable-list/index.d.ts +63 -54
  220. package/lib/molecule/tabs/index.d.ts +1 -0
  221. package/lib/molecule/tabs/index.d.ts.map +1 -1
  222. package/lib/molecule/tabs/index.js +7 -3
  223. package/lib/molecule/tabs/index.js.map +1 -1
  224. package/lib/molecule/tabs/style.css +4 -0
  225. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
  226. package/lib/molecule/title-radio-wrapper/index.d.ts +7 -0
  227. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  228. package/lib/molecule/title-radio-wrapper/types.d.ts +7 -0
  229. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  230. package/lib/organism/assignment-audience/index.d.ts +92 -0
  231. package/lib/organism/assignment-audience/index.d.ts.map +1 -0
  232. package/lib/organism/assignment-audience/index.js +242 -0
  233. package/lib/organism/assignment-audience/index.js.map +1 -0
  234. package/lib/organism/assignment-audience/style.css +115 -0
  235. package/lib/organism/assignment-audience/types.d.ts +193 -0
  236. package/lib/organism/assignment-audience/types.d.ts.map +1 -0
  237. package/lib/organism/assignment-audience/types.js +112 -0
  238. package/lib/organism/assignment-audience/types.js.map +1 -0
  239. package/lib/organism/assignment-audience/upload-result.css +47 -0
  240. package/lib/organism/assignment-audience/upload-result.d.ts +26 -0
  241. package/lib/organism/assignment-audience/upload-result.d.ts.map +1 -0
  242. package/lib/organism/assignment-audience/upload-result.js +94 -0
  243. package/lib/organism/assignment-audience/upload-result.js.map +1 -0
  244. package/lib/organism/assignment-row/index.d.ts +55 -0
  245. package/lib/organism/assignment-row/index.d.ts.map +1 -0
  246. package/lib/organism/assignment-row/index.js +45 -0
  247. package/lib/organism/assignment-row/index.js.map +1 -0
  248. package/lib/organism/assignment-row/types.d.ts +83 -0
  249. package/lib/organism/assignment-row/types.d.ts.map +1 -0
  250. package/lib/organism/assignment-row/types.js +34 -0
  251. package/lib/organism/assignment-row/types.js.map +1 -0
  252. package/lib/organism/brand-learning-priorities/index.d.ts +63 -54
  253. package/lib/organism/content-skill-modal/index.d.ts +10 -0
  254. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  255. package/lib/organism/content-skill-modal/types.d.ts +10 -0
  256. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  257. package/lib/organism/list-item/index.d.ts +13 -1
  258. package/lib/organism/list-item/index.d.ts.map +1 -1
  259. package/lib/organism/list-item/index.js +44 -3
  260. package/lib/organism/list-item/index.js.map +1 -1
  261. package/lib/organism/list-item/style.css +36 -0
  262. package/lib/organism/list-items/index.d.ts +10 -0
  263. package/lib/organism/list-items/index.d.ts.map +1 -1
  264. package/lib/organism/list-items/index.js +4 -1
  265. package/lib/organism/list-items/index.js.map +1 -1
  266. package/lib/organism/mooc-header/index.d.ts +7 -0
  267. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  268. package/lib/organism/mooc-header/index.js +30 -1
  269. package/lib/organism/mooc-header/index.js.map +1 -1
  270. package/lib/organism/mooc-header/style.css +11 -0
  271. package/lib/organism/rewards-form/index.d.ts +13 -0
  272. package/lib/organism/select-opponents/index.d.ts +13 -0
  273. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  274. package/lib/organism/select-opponents/types.d.ts +13 -0
  275. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  276. package/lib/organism/title-and-input/index.d.ts +14 -0
  277. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  278. package/lib/organism/title-and-input/types.d.ts +14 -0
  279. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  280. package/lib/organism/wizard-contents/index.d.ts +13 -0
  281. package/lib/template/app-player/loading/index.d.ts +11 -0
  282. package/lib/template/app-player/player/index.d.ts +22 -0
  283. package/lib/template/app-player/player/slides/index.d.ts +11 -0
  284. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  285. package/lib/template/app-player/popin-correction/index.d.ts +11 -0
  286. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  287. package/lib/template/app-player/popin-end/index.d.ts +14 -0
  288. package/lib/template/app-player/popin-end/summary.d.ts +3 -0
  289. package/lib/template/app-review/index.d.ts +11 -0
  290. package/lib/template/app-review/index.d.ts.map +1 -1
  291. package/lib/template/app-review/player/prop-types.d.ts +11 -0
  292. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  293. package/lib/template/app-review/prop-types.d.ts +11 -0
  294. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  295. package/lib/template/back-office/brand-update/index.d.ts +95 -54
  296. package/lib/template/certification-detail/index.d.ts +11 -0
  297. package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
  298. package/lib/template/common/dashboard/index.d.ts +22 -0
  299. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  300. package/lib/template/common/dashboard/index.js +37 -1
  301. package/lib/template/common/dashboard/index.js.map +1 -1
  302. package/lib/template/common/search-page/index.d.ts +17 -0
  303. package/lib/template/external-course/index.d.ts +11 -0
  304. package/lib/template/my-assignments/index.d.ts +167 -0
  305. package/lib/template/my-assignments/index.d.ts.map +1 -0
  306. package/lib/template/my-assignments/index.js +227 -0
  307. package/lib/template/my-assignments/index.js.map +1 -0
  308. package/lib/template/my-assignments/style.css +84 -0
  309. package/lib/template/my-learning/index.d.ts +3 -0
  310. package/lib/template/playlist-detail/index.d.ts +11 -0
  311. package/lib/template/teams-dashboard/index.d.ts +3 -0
  312. package/lib/util/proptypes.d.ts.map +1 -1
  313. package/lib/util/proptypes.js +2 -2
  314. package/lib/util/proptypes.js.map +1 -1
  315. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -77,6 +77,7 @@ declare namespace Title {
77
77
  customLabelClassName: PropTypes.Requireable<string>;
78
78
  }>>;
79
79
  required: PropTypes.Requireable<boolean>;
80
+ headingLevel: PropTypes.Requireable<number>;
80
81
  };
81
82
  }
82
83
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AAsDA,gDAyCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/title/index.js"],"names":[],"mappings":";AAuDA,gDA4DC"}
@@ -5,6 +5,7 @@ exports.default = void 0;
5
5
  var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
6
6
  var _react = _interopRequireDefault(require("react"));
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
+ var _classnames = _interopRequireDefault(require("classnames"));
8
9
  var _icon = _interopRequireDefault(require("../icon"));
9
10
  var _tag = _interopRequireDefault(require("../tag"));
10
11
  var _buttonLink = _interopRequireDefault(require("../button-link"));
@@ -67,10 +68,16 @@ const Title = props => {
67
68
  tag,
68
69
  button,
69
70
  required,
70
- ariaLabel
71
+ ariaLabel,
72
+ headingLevel
71
73
  } = props;
72
74
  const titleStyle = getTitleStyle(type, titleSize);
73
75
  const subtitleStyle = getSubtitleStyle(type, subtitleSize);
76
+ const titleContent = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, title, required ? /*#__PURE__*/_react.default.createElement("span", {
77
+ className: _style.default.required
78
+ }, "*") : null, tag ? /*#__PURE__*/_react.default.createElement(_tag.default, tag) : null);
79
+ // Opt-in: the title as a real heading for the document outline; same look as the group div.
80
+ const Heading = headingLevel ? `h${headingLevel}` : null;
74
81
  const subtitleSection = subtitle ? /*#__PURE__*/_react.default.createElement("div", {
75
82
  className: subtitleStyle
76
83
  // eslint-disable-next-line react/no-danger
@@ -87,14 +94,16 @@ const Title = props => {
87
94
  className: _style.default.titleContainer
88
95
  }, /*#__PURE__*/_react.default.createElement("div", {
89
96
  className: _style.default.titleContent
90
- }, /*#__PURE__*/_react.default.createElement("div", {
97
+ }, headingLevel ? /*#__PURE__*/_react.default.createElement(Heading, {
98
+ className: (0, _classnames.default)(titleStyle, _style.default.heading),
99
+ "data-name": dataName,
100
+ "aria-label": ariaLabel
101
+ }, titleContent) : /*#__PURE__*/_react.default.createElement("div", {
91
102
  className: titleStyle,
92
103
  "data-name": dataName,
93
104
  role: "group",
94
105
  "aria-label": ariaLabel
95
- }, title, required ? /*#__PURE__*/_react.default.createElement("span", {
96
- className: _style.default.required
97
- }, "*") : null, tag ? /*#__PURE__*/_react.default.createElement(_tag.default, tag) : null), subtitleSection), !(0, _isEmpty2.default)(button) ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, button) : null));
106
+ }, titleContent), subtitleSection), !(0, _isEmpty2.default)(button) ? /*#__PURE__*/_react.default.createElement(_buttonLink.default, button) : null));
98
107
  };
99
108
  Title.propTypes = process.env.NODE_ENV !== "production" ? {
100
109
  title: _propTypes.default.string,
@@ -107,7 +116,8 @@ Title.propTypes = process.env.NODE_ENV !== "production" ? {
107
116
  icon: _propTypes.default.shape(_icon.default.propTypes),
108
117
  tag: _propTypes.default.shape(_tag.default.propTypes),
109
118
  button: _propTypes.default.shape(_buttonLink.default.propTypes),
110
- required: _propTypes.default.bool
119
+ required: _propTypes.default.bool,
120
+ headingLevel: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6])
111
121
  } : {};
112
122
  var _default = exports.default = Title;
113
123
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_icon","_tag","_buttonLink","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getTitleStyle","type","size","style","titlePage","titleFormGroup","titleFormGroupLightWeight","xlStrongTitle","mediumTitleFormGroup","mediumAndLightColorTitleFormGroup","smallTitleFormGroup","smallAndLightTitleFormGroup","getSubtitleStyle","subtitlePage","subtitleFormGroup","subtitleFormGroupWithoutMargin","mediumSubtitleFormGroup","smallSubtitleFormGroup","smallSubtitleFormGroupWithoutMargin","extraSmallSubtitleFormGroup","Title","props","title","subtitle","dataName","titleSize","subtitleSize","icon","tag","button","required","ariaLabel","titleStyle","subtitleStyle","subtitleSection","createElement","className","dangerouslySetInnerHTML","__html","container","titleContainer","titleContent","role","_isEmpty2","propTypes","process","env","NODE_ENV","PropTypes","string","oneOf","shape","Icon","Tag","ButtonLink","bool","_default","exports"],"sources":["../../../src/atom/title/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport Icon from '../icon';\nimport Tag from '../tag';\nimport ButtonLink from '../button-link';\nimport style from './style.css';\n\nconst getTitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.titlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.titleFormGroup;\n case 'standard-light-weight':\n return style.titleFormGroupLightWeight;\n case 'xl-strong':\n return style.xlStrongTitle;\n case 'medium':\n return style.mediumTitleFormGroup;\n case 'medium-light-color':\n return style.mediumAndLightColorTitleFormGroup;\n case 'small':\n return style.smallTitleFormGroup;\n case 'small-and-light':\n return style.smallAndLightTitleFormGroup;\n }\n }\n};\n\nconst getSubtitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.subtitlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.subtitleFormGroup;\n case 'standard-without-margin':\n return style.subtitleFormGroupWithoutMargin;\n case 'medium':\n return style.mediumSubtitleFormGroup;\n case 'small':\n return style.smallSubtitleFormGroup;\n case 'small-without-margin':\n return style.smallSubtitleFormGroupWithoutMargin;\n case 'extra-small':\n return style.extraSmallSubtitleFormGroup;\n }\n }\n};\n\nconst Title = props => {\n const {\n title,\n subtitle,\n type,\n 'data-name': dataName,\n titleSize = 'standard',\n subtitleSize = 'standard',\n icon,\n tag,\n button,\n required,\n ariaLabel\n } = props;\n const titleStyle = getTitleStyle(type, titleSize);\n const subtitleStyle = getSubtitleStyle(type, subtitleSize);\n\n const subtitleSection = subtitle ? (\n <div\n className={subtitleStyle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: subtitle}}\n />\n ) : null;\n\n return (\n <div className={style.container}>\n {icon ? <Icon {...icon} className={style.icon} /> : null}\n <div className={style.titleContainer}>\n <div className={style.titleContent}>\n <div className={titleStyle} data-name={dataName} role=\"group\" aria-label={ariaLabel}>\n {title}\n {required ? <span className={style.required}>*</span> : null}\n {tag ? <Tag {...tag} /> : null}\n </div>\n {subtitleSection}\n </div>\n {!isEmpty(button) ? <ButtonLink {...button} /> : null}\n </div>\n </div>\n );\n};\n\nTitle.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n ariaLabel: PropTypes.string,\n type: PropTypes.oneOf(['page', 'form-group']),\n 'data-name': PropTypes.string,\n titleSize: PropTypes.oneOf([\n 'xl-strong',\n 'standard',\n 'standard-light-weight',\n 'medium',\n 'medium-light-color',\n 'small',\n 'small-and-light'\n ]),\n subtitleSize: PropTypes.oneOf([\n 'standard',\n 'standard-without-margin',\n 'medium',\n 'small',\n 'small-without-margin',\n 'extra-small'\n ]),\n icon: PropTypes.shape(Icon.propTypes),\n tag: PropTypes.shape(Tag.propTypes),\n button: PropTypes.shape(ButtonLink.propTypes),\n required: PropTypes.bool\n};\nexport default Title;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sB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CAACE,KAAK,CAAC,CAC5B,UAAU,EACV,yBAAyB,EACzB,QAAQ,EACR,OAAO,EACP,sBAAsB,EACtB,aAAa,CACd,CAAC;EACFvB,IAAI,EAAEqB,kBAAS,CAACG,KAAK,CAACC,aAAI,CAACR,SAAS,CAAC;EACrChB,GAAG,EAAEoB,kBAAS,CAACG,KAAK,CAACE,YAAG,CAACT,SAAS,CAAC;EACnCf,MAAM,EAAEmB,kBAAS,CAACG,KAAK,CAACG,mBAAU,CAACV,SAAS,CAAC;EAC7Cd,QAAQ,EAAEkB,kBAAS,CAACO;AACtB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtE,OAAA,GACaiC,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_classnames","_icon","_tag","_buttonLink","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getTitleStyle","type","size","style","titlePage","titleFormGroup","titleFormGroupLightWeight","xlStrongTitle","mediumTitleFormGroup","mediumAndLightColorTitleFormGroup","smallTitleFormGroup","smallAndLightTitleFormGroup","getSubtitleStyle","subtitlePage","subtitleFormGroup","subtitleFormGroupWithoutMargin","mediumSubtitleFormGroup","smallSubtitleFormGroup","smallSubtitleFormGroupWithoutMargin","extraSmallSubtitleFormGroup","Title","props","title","subtitle","dataName","titleSize","subtitleSize","icon","tag","button","required","ariaLabel","headingLevel","titleStyle","subtitleStyle","titleContent","createElement","Fragment","className","Heading","subtitleSection","dangerouslySetInnerHTML","__html","container","titleContainer","classnames","heading","role","_isEmpty2","propTypes","process","env","NODE_ENV","PropTypes","string","oneOf","shape","Icon","Tag","ButtonLink","bool","_default","exports"],"sources":["../../../src/atom/title/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Icon from '../icon';\nimport Tag from '../tag';\nimport ButtonLink from '../button-link';\nimport style from './style.css';\n\nconst getTitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.titlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.titleFormGroup;\n case 'standard-light-weight':\n return style.titleFormGroupLightWeight;\n case 'xl-strong':\n return style.xlStrongTitle;\n case 'medium':\n return style.mediumTitleFormGroup;\n case 'medium-light-color':\n return style.mediumAndLightColorTitleFormGroup;\n case 'small':\n return style.smallTitleFormGroup;\n case 'small-and-light':\n return style.smallAndLightTitleFormGroup;\n }\n }\n};\n\nconst getSubtitleStyle = (type, size) => {\n switch (type) {\n case 'page':\n return style.subtitlePage;\n case 'form-group':\n switch (size) {\n case 'standard':\n return style.subtitleFormGroup;\n case 'standard-without-margin':\n return style.subtitleFormGroupWithoutMargin;\n case 'medium':\n return style.mediumSubtitleFormGroup;\n case 'small':\n return style.smallSubtitleFormGroup;\n case 'small-without-margin':\n return style.smallSubtitleFormGroupWithoutMargin;\n case 'extra-small':\n return style.extraSmallSubtitleFormGroup;\n }\n }\n};\n\nconst Title = props => {\n const {\n title,\n subtitle,\n type,\n 'data-name': dataName,\n titleSize = 'standard',\n subtitleSize = 'standard',\n icon,\n tag,\n button,\n required,\n ariaLabel,\n headingLevel\n } = props;\n const titleStyle = getTitleStyle(type, titleSize);\n const subtitleStyle = getSubtitleStyle(type, subtitleSize);\n\n const titleContent = (\n <>\n {title}\n {required ? <span className={style.required}>*</span> : null}\n {tag ? <Tag {...tag} /> : null}\n </>\n );\n // Opt-in: the title as a real heading for the document outline; same look as the group div.\n const Heading = headingLevel ? `h${headingLevel}` : null;\n\n const subtitleSection = subtitle ? (\n <div\n className={subtitleStyle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: subtitle}}\n />\n ) : null;\n\n return (\n <div className={style.container}>\n {icon ? <Icon {...icon} className={style.icon} /> : null}\n <div className={style.titleContainer}>\n <div className={style.titleContent}>\n {headingLevel ? (\n <Heading\n className={classnames(titleStyle, style.heading)}\n data-name={dataName}\n aria-label={ariaLabel}\n >\n {titleContent}\n </Heading>\n ) : (\n <div className={titleStyle} data-name={dataName} role=\"group\" aria-label={ariaLabel}>\n {titleContent}\n </div>\n )}\n {subtitleSection}\n </div>\n {!isEmpty(button) ? <ButtonLink {...button} /> : null}\n </div>\n </div>\n );\n};\n\nTitle.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n ariaLabel: PropTypes.string,\n type: PropTypes.oneOf(['page', 'form-group']),\n 'data-name': PropTypes.string,\n titleSize: PropTypes.oneOf([\n 'xl-strong',\n 'standard',\n 'standard-light-weight',\n 'medium',\n 'medium-light-color',\n 'small',\n 'small-and-light'\n ]),\n subtitleSize: PropTypes.oneOf([\n 'standard',\n 'standard-without-margin',\n 'medium',\n 'small',\n 'small-without-margin',\n 'extra-small'\n ]),\n icon: PropTypes.shape(Icon.propTypes),\n tag: PropTypes.shape(Tag.propTypes),\n button: PropTypes.shape(ButtonLink.propTypes),\n required: PropTypes.bool,\n headingLevel: PropTypes.oneOf([1, 2, 3, 4, 5, 6])\n};\nexport default Title;\n"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,IAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MA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EAAE4B,kBAAS,CAACE,KAAK,CAAC,CACzB,WAAW,EACX,UAAU,EACV,uBAAuB,EACvB,QAAQ,EACR,oBAAoB,EACpB,OAAO,EACP,iBAAiB,CAClB,CAAC;EACF7B,YAAY,EAAE2B,kBAAS,CAACE,KAAK,CAAC,CAC5B,UAAU,EACV,yBAAyB,EACzB,QAAQ,EACR,OAAO,EACP,sBAAsB,EACtB,aAAa,CACd,CAAC;EACF5B,IAAI,EAAE0B,kBAAS,CAACG,KAAK,CAACC,aAAI,CAACR,SAAS,CAAC;EACrCrB,GAAG,EAAEyB,kBAAS,CAACG,KAAK,CAACE,YAAG,CAACT,SAAS,CAAC;EACnCpB,MAAM,EAAEwB,kBAAS,CAACG,KAAK,CAACG,mBAAU,CAACV,SAAS,CAAC;EAC7CnB,QAAQ,EAAEuB,kBAAS,CAACO,IAAI;EACxB5B,YAAY,EAAEqB,kBAAS,CAACE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAClD,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAA3E,OAAA,GACaiC,KAAK","ignoreList":[]}
@@ -142,3 +142,7 @@
142
142
  color: cm_negative_300;
143
143
  gap: 0;
144
144
  }
145
+
146
+ .heading {
147
+ margin: 0;
148
+ }
@@ -34,6 +34,8 @@ declare namespace VideoUpload {
34
34
  pdfButtonLabel: PropTypes.Requireable<string>;
35
35
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
36
36
  multiple: PropTypes.Requireable<boolean>;
37
+ dragAndDropLabel: PropTypes.Requireable<string>;
38
+ loadingLabel: PropTypes.Requireable<string>;
37
39
  };
38
40
  }
39
41
  import PropTypes from "prop-types";
@@ -0,0 +1,62 @@
1
+ export default AssignmentCard;
2
+ declare function AssignmentCard(props: any): JSX.Element;
3
+ declare namespace AssignmentCard {
4
+ const propTypes: {
5
+ typeLabel: PropTypes.Requireable<string>;
6
+ dueState: PropTypes.Validator<string>;
7
+ dueStateLabel: PropTypes.Validator<string>;
8
+ dueDateLabel: PropTypes.Validator<string>;
9
+ badge: PropTypes.Requireable<string>;
10
+ image: PropTypes.Requireable<string>;
11
+ disabled: PropTypes.Requireable<boolean>;
12
+ adaptiv: PropTypes.Requireable<boolean>;
13
+ type: PropTypes.Requireable<string>;
14
+ title: PropTypes.Requireable<string>;
15
+ author: PropTypes.Requireable<string>;
16
+ certifiedAuthor: PropTypes.Requireable<boolean>;
17
+ customer: PropTypes.Requireable<PropTypes.InferProps<{
18
+ theme: PropTypes.Requireable<string>;
19
+ type: PropTypes.Requireable<string>;
20
+ name: PropTypes.Requireable<string>;
21
+ coorpOriginal: PropTypes.Validator<boolean>;
22
+ disabled: PropTypes.Requireable<boolean>;
23
+ 'aria-label': PropTypes.Requireable<string>;
24
+ }>>;
25
+ progress: PropTypes.Requireable<number>;
26
+ favorite: PropTypes.Requireable<boolean>;
27
+ addFavoriteToolTip: PropTypes.Requireable<string>;
28
+ removeFavoriteToolTip: PropTypes.Requireable<string>;
29
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
30
+ onFavoriteClick: PropTypes.Requireable<(...args: any[]) => any>;
31
+ isSelected: PropTypes.Requireable<boolean>;
32
+ notification: PropTypes.Requireable<PropTypes.InferProps<{
33
+ message: PropTypes.Validator<string>;
34
+ icon: PropTypes.Validator<string>;
35
+ }>>;
36
+ badgeCategory: PropTypes.Requireable<string>;
37
+ badgeLabel: PropTypes.Requireable<string>;
38
+ theme: PropTypes.Requireable<string>;
39
+ disabledContent: PropTypes.Requireable<string>;
40
+ 'aria-label': PropTypes.Requireable<string>;
41
+ 'background-aria-label': PropTypes.Requireable<string>;
42
+ 'favorite-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
43
+ favorite: PropTypes.Requireable<string>;
44
+ addToFavorite: PropTypes.Requireable<string>;
45
+ removeFromFavorite: PropTypes.Requireable<string>;
46
+ }>>;
47
+ 'selectable-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
48
+ select: PropTypes.Requireable<string>;
49
+ unSelect: PropTypes.Requireable<string>;
50
+ }>>;
51
+ 'customer-aria-label': PropTypes.Requireable<string>;
52
+ 'badge-aria-label': PropTypes.Requireable<string>;
53
+ 'disabled-aria-label': PropTypes.Requireable<string>;
54
+ 'card-content-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
55
+ author: PropTypes.Requireable<string>;
56
+ progression: PropTypes.Requireable<string>;
57
+ adaptive: PropTypes.Requireable<string>;
58
+ }>>;
59
+ };
60
+ }
61
+ import PropTypes from "prop-types";
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/assignment-card/index.js"],"names":[],"mappings":";AA6BA,yDAuBC"}
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _react = _interopRequireDefault(require("react"));
6
+ var _propTypes = _interopRequireDefault(require("prop-types"));
7
+ var _classnames = _interopRequireDefault(require("classnames"));
8
+ var _colors = require("../../variables/colors");
9
+ var _icon = _interopRequireDefault(require("../../atom/icon"));
10
+ var _card = _interopRequireWildcard(require("../card"));
11
+ var _style = _interopRequireDefault(require("./style.css"));
12
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
13
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
16
+ // The status pill is the card's own opaque pill (never atom/tag, never Card's notification slot):
17
+ // it sits on the card image, where a translucent tag is unreadable. No "completed late" state (L0).
18
+ const DUE_STATES = {
19
+ todo: {
20
+ iconName: 'circle',
21
+ color: _colors.COLORS.cm_grey_500,
22
+ className: _style.default.todo
23
+ },
24
+ dueSoon: {
25
+ iconName: 'clock',
26
+ color: _colors.COLORS.cm_yellow_400,
27
+ className: _style.default.dueSoon
28
+ },
29
+ overdue: {
30
+ iconName: 'triangle-exclamation',
31
+ color: _colors.COLORS.cm_negative_200,
32
+ className: _style.default.overdue
33
+ },
34
+ done: {
35
+ iconName: 'circle-check',
36
+ color: _colors.COLORS.cm_positive_200,
37
+ className: _style.default.done
38
+ }
39
+ };
40
+
41
+ // A module the learner was asked to complete: the catalogue card of its type (module, chapter,
42
+ // scorm, article, video, podcast), one status pill in the same slot on every format, and the due
43
+ // date (or, once finished, the completion date) in a tooltip on hover (N2). Never an assignment.
44
+ // The pill is described by the due date, so it is read without hover. React 17 has no useId: the
45
+ // id derives from the card's dataName (its rank in a list) and its title, never with whitespace.
46
+ const dueDateId = (dataName, title) => ['due-date', dataName, title].filter(Boolean).join('-').replace(/\s+/g, '-');
47
+ const AssignmentCard = props => {
48
+ const {
49
+ dueState,
50
+ dueStateLabel,
51
+ dueDateLabel,
52
+ onClick,
53
+ ...cardProps
54
+ } = props;
55
+ const {
56
+ iconName,
57
+ color,
58
+ className
59
+ } = DUE_STATES[dueState];
60
+ const dateId = dueDateId(cardProps.dataName, cardProps.title);
61
+ return /*#__PURE__*/_react.default.createElement("div", {
62
+ "data-name": "assignment-card",
63
+ className: _style.default.wrapper
64
+ }, /*#__PURE__*/_react.default.createElement(_card.default, _extends({}, cardProps, {
65
+ onClick: onClick
66
+ })), /*#__PURE__*/_react.default.createElement("div", {
67
+ className: _style.default.slot
68
+ }, /*#__PURE__*/_react.default.createElement("div", {
69
+ "data-name": "due-state",
70
+ "data-type": dueState,
71
+ className: (0, _classnames.default)(_style.default.duePill, className),
72
+ "aria-describedby": dateId
73
+ }, /*#__PURE__*/_react.default.createElement(_icon.default, {
74
+ iconName: iconName,
75
+ iconColor: color,
76
+ size: {
77
+ faSize: 12,
78
+ wrapperSize: 12
79
+ }
80
+ }), /*#__PURE__*/_react.default.createElement("span", null, dueStateLabel)), /*#__PURE__*/_react.default.createElement("div", {
81
+ id: dateId,
82
+ "data-name": "due-date",
83
+ className: _style.default.tooltip
84
+ }, dueDateLabel)));
85
+ };
86
+ AssignmentCard.propTypes = process.env.NODE_ENV !== "production" ? {
87
+ ..._card.cardPropTypes,
88
+ // The type chip's label. A module (type 'course') passes « Module »: never « Course » (AQ19).
89
+ typeLabel: _card.cardPropTypes.typeLabel,
90
+ dueState: _propTypes.default.oneOf(['todo', 'dueSoon', 'overdue', 'done']).isRequired,
91
+ // The pill label: « To do », « Due soon », « Overdue », « Completed »
92
+ dueStateLabel: _propTypes.default.string.isRequired,
93
+ // Shown on hover, as given: "Due Sat 24 Oct", or "Completed Thu 22 Oct" once finished
94
+ dueDateLabel: _propTypes.default.string.isRequired
95
+ } : {};
96
+ var _default = exports.default = AssignmentCard;
97
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_propTypes","_classnames","_colors","_icon","_card","_interopRequireWildcard","_style","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DUE_STATES","todo","iconName","color","COLORS","cm_grey_500","className","style","dueSoon","cm_yellow_400","overdue","cm_negative_200","done","cm_positive_200","dueDateId","dataName","title","filter","Boolean","join","replace","AssignmentCard","props","dueState","dueStateLabel","dueDateLabel","onClick","cardProps","dateId","createElement","wrapper","slot","classnames","duePill","iconColor","size","faSize","wrapperSize","id","tooltip","propTypes","process","env","NODE_ENV","cardPropTypes","typeLabel","PropTypes","oneOf","isRequired","string","_default","exports"],"sources":["../../../src/molecule/assignment-card/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {COLORS} from '../../variables/colors';\nimport FaIcon from '../../atom/icon';\nimport Card, {cardPropTypes} from '../card';\nimport style from './style.css';\n\n// The status pill is the card's own opaque pill (never atom/tag, never Card's notification slot):\n// it sits on the card image, where a translucent tag is unreadable. No \"completed late\" state (L0).\nconst DUE_STATES = {\n todo: {iconName: 'circle', color: COLORS.cm_grey_500, className: style.todo},\n dueSoon: {iconName: 'clock', color: COLORS.cm_yellow_400, className: style.dueSoon},\n overdue: {\n iconName: 'triangle-exclamation',\n color: COLORS.cm_negative_200,\n className: style.overdue\n },\n done: {iconName: 'circle-check', color: COLORS.cm_positive_200, className: style.done}\n};\n\n// A module the learner was asked to complete: the catalogue card of its type (module, chapter,\n// scorm, article, video, podcast), one status pill in the same slot on every format, and the due\n// date (or, once finished, the completion date) in a tooltip on hover (N2). Never an assignment.\n// The pill is described by the due date, so it is read without hover. React 17 has no useId: the\n// id derives from the card's dataName (its rank in a list) and its title, never with whitespace.\nconst dueDateId = (dataName, title) =>\n ['due-date', dataName, title].filter(Boolean).join('-').replace(/\\s+/g, '-');\n\nconst AssignmentCard = props => {\n const {dueState, dueStateLabel, dueDateLabel, onClick, ...cardProps} = props;\n const {iconName, color, className} = DUE_STATES[dueState];\n const dateId = dueDateId(cardProps.dataName, cardProps.title);\n return (\n <div data-name=\"assignment-card\" className={style.wrapper}>\n <Card {...cardProps} onClick={onClick} />\n <div className={style.slot}>\n <div\n data-name=\"due-state\"\n data-type={dueState}\n className={classnames(style.duePill, className)}\n aria-describedby={dateId}\n >\n <FaIcon iconName={iconName} iconColor={color} size={{faSize: 12, wrapperSize: 12}} />\n <span>{dueStateLabel}</span>\n </div>\n <div id={dateId} data-name=\"due-date\" className={style.tooltip}>\n {dueDateLabel}\n </div>\n </div>\n </div>\n );\n};\n\nAssignmentCard.propTypes = {\n ...cardPropTypes,\n // The type chip's label. A module (type 'course') passes « Module »: never « Course » (AQ19).\n typeLabel: cardPropTypes.typeLabel,\n dueState: PropTypes.oneOf(['todo', 'dueSoon', 'overdue', 'done']).isRequired,\n // The pill label: « To do », « Due soon », « Overdue », « Completed »\n dueStateLabel: PropTypes.string.isRequired,\n // Shown on hover, as given: \"Due Sat 24 Oct\", or \"Completed Thu 22 Oct\" once finished\n dueDateLabel: PropTypes.string.isRequired\n};\n\nexport default AssignmentCard;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,KAAA,GAAAC,uBAAA,CAAAN,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AAAgC,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CA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E,OAAA,GAEayC,cAAc","ignoreList":[]}
@@ -0,0 +1,98 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value white from colors;
3
+ @value cm_grey_500 from colors;
4
+ @value cm_grey_800 from colors;
5
+ @value cm_yellow_400 from colors;
6
+ @value cm_negative_200 from colors;
7
+ @value cm_positive_200 from colors;
8
+
9
+ /* The catalogue card is 256 × 297 on every format, so the card height already lines up. */
10
+ .wrapper {
11
+ position: relative;
12
+ width: 256px;
13
+ max-width: 100%;
14
+ font-family: "Gilroy";
15
+ }
16
+
17
+ /*
18
+ * One slot on every format (N2), as in the validated prototype: left 12px, top 85px, inside the
19
+ * image or icon header, below the « Coorp original » banner and the favourite check. The pill is
20
+ * opaque, so it reads over the image and over the icon circle's decorative halo. Clicks go
21
+ * through the slot to the card underneath; the tooltip still shows on the wrapper's hover.
22
+ */
23
+ .slot {
24
+ pointer-events: none;
25
+ position: absolute;
26
+ top: 85px;
27
+ left: 12px;
28
+ z-index: 2;
29
+ max-width: calc(100% - 24px);
30
+ }
31
+
32
+ .duePill {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ gap: 6px;
36
+ box-sizing: border-box;
37
+ height: 24px;
38
+ max-width: 100%;
39
+ padding: 0 10px;
40
+ border-radius: 12px;
41
+ background-color: white;
42
+ box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
43
+ font-size: 12px;
44
+ font-weight: 600;
45
+ line-height: 16px;
46
+ white-space: nowrap;
47
+ }
48
+
49
+ .todo {
50
+ color: cm_grey_500;
51
+ }
52
+
53
+ .dueSoon {
54
+ color: cm_yellow_400;
55
+ }
56
+
57
+ .overdue {
58
+ color: cm_negative_200;
59
+ }
60
+
61
+ .done {
62
+ color: cm_positive_200;
63
+ }
64
+
65
+ /* The due date, on hover only, right above the pill. */
66
+ .tooltip {
67
+ position: absolute;
68
+ bottom: calc(100% + 8px);
69
+ left: 2px;
70
+ z-index: 3;
71
+ padding: 6px 10px;
72
+ border-radius: 8px;
73
+ background-color: cm_grey_800;
74
+ color: white;
75
+ font-size: 12px;
76
+ font-weight: 600;
77
+ line-height: 16px;
78
+ white-space: nowrap;
79
+ opacity: 0;
80
+ pointer-events: none;
81
+ transform: translateY(4px);
82
+ transition: opacity 0.12s, transform 0.12s;
83
+ }
84
+
85
+ .tooltip::after {
86
+ content: '';
87
+ position: absolute;
88
+ top: 100%;
89
+ left: 18px;
90
+ border: 6px solid transparent;
91
+ border-top-color: cm_grey_800;
92
+ }
93
+
94
+ .wrapper:hover .tooltip,
95
+ .wrapper:focus-within .tooltip {
96
+ opacity: 1;
97
+ transform: none;
98
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { AssignmentStatusTagProps, TagType } from './types';
3
+ export declare const ASSIGNMENT_TAG_KEYS: string[];
4
+ export declare const getAssignmentTagType: (status?: string | null) => TagType;
5
+ declare const AssignmentStatusTag: {
6
+ ({ status, label }: AssignmentStatusTagProps): JSX.Element;
7
+ propTypes: {
8
+ status: import("prop-types").Requireable<string>;
9
+ label: import("prop-types").Validator<string>;
10
+ };
11
+ };
12
+ export default AssignmentStatusTag;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/assignment-status-tag/index.tsx"],"names":[],"mappings":";AAIA,OAAkB,EAAC,wBAAwB,EAAE,OAAO,EAAC,MAAM,SAAS,CAAC;AA2BrE,eAAO,MAAM,mBAAmB,UAAkB,CAAC;AAEnD,eAAO,MAAM,oBAAoB,YAAa,MAAM,GAAG,IAAI,KAAG,OACI,CAAC;AAEnE,QAAA,MAAM,mBAAmB;wBAAqB,wBAAwB;;;;;CAErE,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getAssignmentTagType = exports.default = exports.ASSIGNMENT_TAG_KEYS = void 0;
5
+ var _react = _interopRequireDefault(require("react"));
6
+ var _has = _interopRequireDefault(require("lodash/fp/has"));
7
+ var _keys = _interopRequireDefault(require("lodash/fp/keys"));
8
+ var _tag = _interopRequireDefault(require("../../atom/tag"));
9
+ var _types = _interopRequireDefault(require("./types"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ // One status vocabulary for every assignment surface. Labels come from the consumer.
12
+ const TAG_TYPES = {
13
+ // Assignment lifecycle: edit-page and tracking headers only, never on a list row
14
+ draft: 'progress',
15
+ upcoming: 'info',
16
+ active: 'success',
17
+ ended: 'default',
18
+ disabled: 'warning',
19
+ // List-row information tags: « Ongoing changes », « N modules unavailable »
20
+ ongoingChanges: 'progress',
21
+ unavailable: 'warning',
22
+ // Sync, only when not up to date: there is no "up to date" key
23
+ processing: 'progress',
24
+ syncError: 'failure',
25
+ // Learner row in the tracking table; "completed late" is a computed flag, not a status
26
+ assigned: 'default',
27
+ inProgress: 'info',
28
+ completed: 'success',
29
+ removed: 'default',
30
+ // Computed learner flags
31
+ dueSoon: 'warning',
32
+ overdue: 'failure',
33
+ late: 'warning'
34
+ };
35
+ const ASSIGNMENT_TAG_KEYS = exports.ASSIGNMENT_TAG_KEYS = (0, _keys.default)(TAG_TYPES);
36
+ const getAssignmentTagType = status => status && (0, _has.default)(status, TAG_TYPES) ? TAG_TYPES[status] : 'default';
37
+ exports.getAssignmentTagType = getAssignmentTagType;
38
+ const AssignmentStatusTag = ({
39
+ status,
40
+ label
41
+ }) => /*#__PURE__*/_react.default.createElement(_tag.default, {
42
+ type: getAssignmentTagType(status),
43
+ label: label
44
+ });
45
+ AssignmentStatusTag.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
46
+ var _default = exports.default = AssignmentStatusTag;
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_has","_keys","_tag","_types","e","__esModule","default","TAG_TYPES","draft","upcoming","active","ended","disabled","ongoingChanges","unavailable","processing","syncError","assigned","inProgress","completed","removed","dueSoon","overdue","late","ASSIGNMENT_TAG_KEYS","exports","keys","getAssignmentTagType","status","has","AssignmentStatusTag","label","createElement","type","propTypes","process","env","NODE_ENV","_default"],"sources":["../../../src/molecule/assignment-status-tag/index.tsx"],"sourcesContent":["import React from 'react';\nimport has from 'lodash/fp/has';\nimport keys from 'lodash/fp/keys';\nimport Tag from '../../atom/tag';\nimport propTypes, {AssignmentStatusTagProps, TagType} from './types';\n\n// One status vocabulary for every assignment surface. Labels come from the consumer.\nconst TAG_TYPES: Record<string, TagType> = {\n // Assignment lifecycle: edit-page and tracking headers only, never on a list row\n draft: 'progress',\n upcoming: 'info',\n active: 'success',\n ended: 'default',\n disabled: 'warning',\n // List-row information tags: « Ongoing changes », « N modules unavailable »\n ongoingChanges: 'progress',\n unavailable: 'warning',\n // Sync, only when not up to date: there is no \"up to date\" key\n processing: 'progress',\n syncError: 'failure',\n // Learner row in the tracking table; \"completed late\" is a computed flag, not a status\n assigned: 'default',\n inProgress: 'info',\n completed: 'success',\n removed: 'default',\n // Computed learner flags\n dueSoon: 'warning',\n overdue: 'failure',\n late: 'warning'\n};\n\nexport const ASSIGNMENT_TAG_KEYS = keys(TAG_TYPES);\n\nexport const getAssignmentTagType = (status?: string | null): TagType =>\n status && has(status, TAG_TYPES) ? TAG_TYPES[status] : 'default';\n\nconst AssignmentStatusTag = ({status, label}: AssignmentStatusTagProps) => (\n <Tag type={getAssignmentTagType(status)} label={label} />\n);\n\nAssignmentStatusTag.propTypes = propTypes;\n\nexport default AssignmentStatusTag;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,KAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,IAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,MAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAqE,SAAAD,uBAAAM,CAAA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import PropTypes from 'prop-types';
2
+ export declare type TagType = 'info' | 'success' | 'failure' | 'warning' | 'progress' | 'default';
3
+ declare const propTypes: {
4
+ status: PropTypes.Requireable<string>;
5
+ label: PropTypes.Validator<string>;
6
+ };
7
+ export default propTypes;
8
+ export declare type AssignmentStatusTagProps = {
9
+ status?: string | null;
10
+ label: string;
11
+ };
12
+ export declare type AssignmentStatusTagPropsFixture = {
13
+ props: AssignmentStatusTagProps;
14
+ };
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/assignment-status-tag/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,oBAAY,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1F,QAAA,MAAM,SAAS;;;CAId,CAAC;AAEF,eAAe,SAAS,CAAC;AAEzB,oBAAY,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,+BAA+B,GAAG;IAAC,KAAK,EAAE,wBAAwB,CAAA;CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+ var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
+ const propTypes = {
8
+ // Any string: an unknown key renders a default tag
9
+ status: _propTypes.default.string,
10
+ label: _propTypes.default.string.isRequired
11
+ };
12
+ var _default = exports.default = propTypes;
13
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","propTypes","status","PropTypes","string","label","isRequired","_default","exports"],"sources":["../../../src/molecule/assignment-status-tag/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nexport type TagType = 'info' | 'success' | 'failure' | 'warning' | 'progress' | 'default';\n\nconst propTypes = {\n // Any string: an unknown key renders a default tag\n status: PropTypes.string,\n label: PropTypes.string.isRequired\n};\n\nexport default propTypes;\n\nexport type AssignmentStatusTagProps = {\n status?: string | null;\n label: string;\n};\n\nexport type AssignmentStatusTagPropsFixture = {props: AssignmentStatusTagProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAInC,MAAMG,SAAS,GAAG;EAChB;EACAC,MAAM,EAAEC,kBAAS,CAACC,MAAM;EACxBC,KAAK,EAAEF,kBAAS,CAACC,MAAM,CAACE;AAC1B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAR,OAAA,GAEaC,SAAS","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/brand-form-group/index.js"],"names":[],"mappings":";AAgIA,yDAiCC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/brand-form-group/index.js"],"names":[],"mappings":";AAmIA,yDAiCC"}
@@ -12,6 +12,7 @@ var _autocomplete = _interopRequireDefault(require("../../atom/autocomplete"));
12
12
  var _select = _interopRequireDefault(require("../../atom/select"));
13
13
  var _selectMultiple = _interopRequireDefault(require("../select-multiple"));
14
14
  var _inputText = _interopRequireDefault(require("../../atom/input-text"));
15
+ var _inputDate = _interopRequireDefault(require("../../atom/input-date"));
15
16
  var _inputColor = _interopRequireDefault(require("../../atom/input-color"));
16
17
  var _inputCheckbox = _interopRequireDefault(require("../../atom/input-checkbox"));
17
18
  var _inputReadonly = _interopRequireDefault(require("../../atom/input-readonly"));
@@ -80,6 +81,8 @@ const buildInput = field => {
80
81
  return /*#__PURE__*/_react.default.createElement(_setupSlider.default, field);
81
82
  case 'sections':
82
83
  return /*#__PURE__*/_react.default.createElement(_setupSections.default, field);
84
+ case 'date':
85
+ return /*#__PURE__*/_react.default.createElement(_inputDate.default, field);
83
86
  case 'text':
84
87
  case 'password':
85
88
  return /*#__PURE__*/_react.default.createElement(_inputText.default, field);
@@ -216,6 +219,10 @@ BrandFormGroup.propTypes = process.env.NODE_ENV !== "production" ? {
216
219
  }), _propTypes.default.shape({
217
220
  ..._setupSections.default.propTypes,
218
221
  type: _propTypes.default.oneOf(['sections'])
222
+ }), _propTypes.default.shape({
223
+ ..._inputDate.default.propTypes,
224
+ type: _propTypes.default.oneOf(['date']),
225
+ size: _propTypes.default.oneOf((0, _keys2.default)(inputContainerStyle))
219
226
  }), _propTypes.default.shape({
220
227
  ..._inputText.default.propTypes,
221
228
  type: _propTypes.default.oneOf(['text', 'password']),