@coorpacademy/components 11.18.7 → 11.18.8-alpha.12

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 (305) hide show
  1. package/es/atom/button-menu/index.d.ts.map +1 -1
  2. package/es/atom/button-menu/index.js +1 -1
  3. package/es/atom/button-menu/index.js.map +1 -1
  4. package/es/atom/button-menu/style.css +10 -0
  5. package/es/atom/button-menu/types.d.ts +1 -1
  6. package/es/atom/button-menu/types.d.ts.map +1 -1
  7. package/es/atom/button-menu/types.js +1 -1
  8. package/es/atom/button-menu/types.js.map +1 -1
  9. package/es/atom/empty-search-result/index.d.ts +1 -0
  10. package/es/atom/empty-search-result/index.d.ts.map +1 -1
  11. package/es/atom/empty-search-result/index.js +6 -4
  12. package/es/atom/empty-search-result/index.js.map +1 -1
  13. package/es/atom/empty-search-result/style.css +16 -1
  14. package/es/atom/status-item/index.d.ts +1 -0
  15. package/es/atom/status-item/index.d.ts.map +1 -1
  16. package/es/atom/status-item/index.js +3 -2
  17. package/es/atom/status-item/index.js.map +1 -1
  18. package/es/atom/status-item/style.css +15 -17
  19. package/es/atom/status-item/types.d.ts +2 -0
  20. package/es/atom/status-item/types.d.ts.map +1 -1
  21. package/es/atom/status-item/types.js +1 -0
  22. package/es/atom/status-item/types.js.map +1 -1
  23. package/es/atom/tag/index.js +4 -4
  24. package/es/atom/tag/index.js.map +1 -1
  25. package/es/atom/tag/style.css +11 -8
  26. package/es/atom/title/types.d.ts +9 -0
  27. package/es/atom/title/types.d.ts.map +1 -0
  28. package/es/atom/title/types.js +2 -0
  29. package/es/atom/title/types.js.map +1 -0
  30. package/es/molecule/banner/style.css +4 -2
  31. package/es/molecule/brand-tabs/index.d.ts +1 -0
  32. package/es/molecule/brand-tabs/index.d.ts.map +1 -1
  33. package/es/molecule/brand-tabs/index.js +10 -1
  34. package/es/molecule/brand-tabs/index.js.map +1 -1
  35. package/es/molecule/brand-tabs/style.css +7 -4
  36. package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
  37. package/es/molecule/bulk-progress-bar/index.js +4 -2
  38. package/es/molecule/bulk-progress-bar/index.js.map +1 -1
  39. package/es/molecule/bulk-progress-bar/style.css +5 -0
  40. package/es/molecule/card/index.d.ts +53 -0
  41. package/es/molecule/card/index.d.ts.map +1 -1
  42. package/es/molecule/card/index.js +14 -12
  43. package/es/molecule/card/index.js.map +1 -1
  44. package/es/molecule/card/style.css +47 -5
  45. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  46. package/es/molecule/cm-popin/index.js +46 -9
  47. package/es/molecule/cm-popin/index.js.map +1 -1
  48. package/es/molecule/cm-popin/style.css +32 -0
  49. package/es/molecule/cm-popin/types.d.ts +31 -1
  50. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  51. package/es/molecule/cm-popin/types.js +13 -3
  52. package/es/molecule/cm-popin/types.js.map +1 -1
  53. package/es/molecule/dashboard/cards-list/index.d.ts +57 -1
  54. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  55. package/es/molecule/dashboard/cards-list/index.js +39 -5
  56. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  57. package/es/molecule/dashboard/cards-list/prop-types.d.ts +14 -0
  58. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -0
  59. package/es/molecule/dashboard/cards-list/prop-types.js +2 -0
  60. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -0
  61. package/es/molecule/draggable-list/index.d.ts +32 -12
  62. package/es/molecule/expandible-actionable-table/index.d.ts +3 -0
  63. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  64. package/es/molecule/expandible-actionable-table/index.js +15 -2
  65. package/es/molecule/expandible-actionable-table/index.js.map +1 -1
  66. package/es/molecule/expandible-actionable-table/style.css +5 -0
  67. package/es/molecule/expandible-actionable-table/types.d.ts +5 -0
  68. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  69. package/es/molecule/expandible-actionable-table/types.js +3 -1
  70. package/es/molecule/expandible-actionable-table/types.js.map +1 -1
  71. package/es/molecule/review-header-steps/index.d.ts.map +1 -1
  72. package/es/molecule/review-header-steps/index.js +3 -4
  73. package/es/molecule/review-header-steps/index.js.map +1 -1
  74. package/es/molecule/review-header-steps/prop-types.d.ts +1 -0
  75. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  76. package/es/molecule/review-header-steps/style.css +6 -1
  77. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
  78. package/es/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
  79. package/es/molecule/title-and-checkbox-wrapper/index.js +15 -3
  80. package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  81. package/es/organism/list-item/index.d.ts +44 -13
  82. package/es/organism/list-item/index.d.ts.map +1 -1
  83. package/es/organism/list-item/index.js +72 -38
  84. package/es/organism/list-item/index.js.map +1 -1
  85. package/es/organism/list-item/style.css +28 -5
  86. package/es/organism/list-items/index.d.ts +36 -12
  87. package/es/organism/list-items/index.d.ts.map +1 -1
  88. package/es/organism/list-items/index.js +19 -4
  89. package/es/organism/list-items/index.js.map +1 -1
  90. package/es/organism/list-items/style.css +42 -0
  91. package/es/organism/mooc-header/index.d.ts.map +1 -1
  92. package/es/organism/mooc-header/index.js +1 -0
  93. package/es/organism/mooc-header/index.js.map +1 -1
  94. package/es/organism/review-header/types.d.ts +1 -0
  95. package/es/organism/review-header/types.d.ts.map +1 -1
  96. package/es/organism/rewards-form/index.d.ts +45 -0
  97. package/es/organism/select-opponents/index.d.ts +67 -12
  98. package/es/organism/select-opponents/index.d.ts.map +1 -1
  99. package/es/organism/select-opponents/index.js +3 -3
  100. package/es/organism/select-opponents/index.js.map +1 -1
  101. package/es/organism/select-opponents/style.css +6 -0
  102. package/es/organism/select-opponents/types.d.ts +75 -14
  103. package/es/organism/select-opponents/types.d.ts.map +1 -1
  104. package/es/organism/select-opponents/types.js +2 -2
  105. package/es/organism/select-opponents/types.js.map +1 -1
  106. package/es/organism/sidebar/index.d.ts +3 -1
  107. package/es/organism/sidebar/index.d.ts.map +1 -1
  108. package/es/organism/sidebar/index.js +9 -5
  109. package/es/organism/sidebar/index.js.map +1 -1
  110. package/es/organism/sidebar/style.css +14 -0
  111. package/es/organism/title-and-input/index.d.ts +84 -29
  112. package/es/organism/title-and-input/index.d.ts.map +1 -1
  113. package/es/organism/title-and-input/types.d.ts +84 -29
  114. package/es/organism/title-and-input/types.d.ts.map +1 -1
  115. package/es/organism/wizard-contents/index.d.ts +112 -0
  116. package/es/organism/wizard-contents/index.d.ts.map +1 -1
  117. package/es/organism/wizard-contents/index.js +37 -4
  118. package/es/organism/wizard-contents/index.js.map +1 -1
  119. package/es/organism/wizard-contents/style.css +22 -0
  120. package/es/template/app-player/loading/index.d.ts +19 -1
  121. package/es/template/app-player/player/index.d.ts +38 -2
  122. package/es/template/app-player/player/slides/index.d.ts +19 -1
  123. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  124. package/es/template/app-player/popin-correction/index.d.ts +19 -1
  125. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  126. package/es/template/app-player/popin-end/index.d.ts +72 -2
  127. package/es/template/app-player/popin-end/summary.d.ts +53 -1
  128. package/es/template/app-review/index.d.ts +20 -1
  129. package/es/template/app-review/index.d.ts.map +1 -1
  130. package/es/template/app-review/player/prop-types.d.ts +20 -1
  131. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  132. package/es/template/app-review/prop-types.d.ts +20 -1
  133. package/es/template/app-review/prop-types.d.ts.map +1 -1
  134. package/es/template/back-office/brand-update/index.d.ts +122 -13
  135. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  136. package/es/template/back-office/brand-update/index.js +4 -2
  137. package/es/template/back-office/brand-update/index.js.map +1 -1
  138. package/es/template/back-office/brand-update/style.css +4 -4
  139. package/es/template/common/dashboard/index.d.ts +89 -1
  140. package/es/template/common/dashboard/index.d.ts.map +1 -1
  141. package/es/template/common/dashboard/index.js +6 -2
  142. package/es/template/common/dashboard/index.js.map +1 -1
  143. package/es/template/common/dashboard/style.css +5 -0
  144. package/es/template/common/search-page/index.d.ts +123 -1
  145. package/es/template/common/search-page/index.d.ts.map +1 -1
  146. package/es/template/common/search-page/index.js +8 -3
  147. package/es/template/common/search-page/index.js.map +1 -1
  148. package/es/template/common/search-page/style.css +5 -0
  149. package/es/template/external-course/index.d.ts +19 -1
  150. package/es/template/teams-dashboard/index.d.ts +53 -1
  151. package/es/variables/colors.css +3 -2
  152. package/lib/atom/button-menu/index.d.ts.map +1 -1
  153. package/lib/atom/button-menu/index.js +1 -1
  154. package/lib/atom/button-menu/index.js.map +1 -1
  155. package/lib/atom/button-menu/style.css +10 -0
  156. package/lib/atom/button-menu/types.d.ts +1 -1
  157. package/lib/atom/button-menu/types.d.ts.map +1 -1
  158. package/lib/atom/button-menu/types.js +1 -1
  159. package/lib/atom/button-menu/types.js.map +1 -1
  160. package/lib/atom/empty-search-result/index.d.ts +1 -0
  161. package/lib/atom/empty-search-result/index.d.ts.map +1 -1
  162. package/lib/atom/empty-search-result/index.js +6 -4
  163. package/lib/atom/empty-search-result/index.js.map +1 -1
  164. package/lib/atom/empty-search-result/style.css +16 -1
  165. package/lib/atom/status-item/index.d.ts +1 -0
  166. package/lib/atom/status-item/index.d.ts.map +1 -1
  167. package/lib/atom/status-item/index.js +3 -2
  168. package/lib/atom/status-item/index.js.map +1 -1
  169. package/lib/atom/status-item/style.css +15 -17
  170. package/lib/atom/status-item/types.d.ts +2 -0
  171. package/lib/atom/status-item/types.d.ts.map +1 -1
  172. package/lib/atom/status-item/types.js +1 -0
  173. package/lib/atom/status-item/types.js.map +1 -1
  174. package/lib/atom/tag/index.js +4 -4
  175. package/lib/atom/tag/index.js.map +1 -1
  176. package/lib/atom/tag/style.css +11 -8
  177. package/lib/atom/title/types.d.ts +9 -0
  178. package/lib/atom/title/types.d.ts.map +1 -0
  179. package/lib/atom/title/types.js +2 -0
  180. package/lib/atom/title/types.js.map +1 -0
  181. package/lib/molecule/banner/style.css +4 -2
  182. package/lib/molecule/brand-tabs/index.d.ts +1 -0
  183. package/lib/molecule/brand-tabs/index.d.ts.map +1 -1
  184. package/lib/molecule/brand-tabs/index.js +11 -1
  185. package/lib/molecule/brand-tabs/index.js.map +1 -1
  186. package/lib/molecule/brand-tabs/style.css +7 -4
  187. package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
  188. package/lib/molecule/bulk-progress-bar/index.js +4 -2
  189. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  190. package/lib/molecule/bulk-progress-bar/style.css +5 -0
  191. package/lib/molecule/card/index.d.ts +53 -0
  192. package/lib/molecule/card/index.d.ts.map +1 -1
  193. package/lib/molecule/card/index.js +15 -11
  194. package/lib/molecule/card/index.js.map +1 -1
  195. package/lib/molecule/card/style.css +47 -5
  196. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  197. package/lib/molecule/cm-popin/index.js +48 -8
  198. package/lib/molecule/cm-popin/index.js.map +1 -1
  199. package/lib/molecule/cm-popin/style.css +32 -0
  200. package/lib/molecule/cm-popin/types.d.ts +31 -1
  201. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  202. package/lib/molecule/cm-popin/types.js +15 -3
  203. package/lib/molecule/cm-popin/types.js.map +1 -1
  204. package/lib/molecule/dashboard/cards-list/index.d.ts +57 -1
  205. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  206. package/lib/molecule/dashboard/cards-list/index.js +43 -5
  207. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  208. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +14 -0
  209. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -0
  210. package/lib/molecule/dashboard/cards-list/prop-types.js +2 -0
  211. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -0
  212. package/lib/molecule/draggable-list/index.d.ts +32 -12
  213. package/lib/molecule/expandible-actionable-table/index.d.ts +3 -0
  214. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  215. package/lib/molecule/expandible-actionable-table/index.js +17 -2
  216. package/lib/molecule/expandible-actionable-table/index.js.map +1 -1
  217. package/lib/molecule/expandible-actionable-table/style.css +5 -0
  218. package/lib/molecule/expandible-actionable-table/types.d.ts +5 -0
  219. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  220. package/lib/molecule/expandible-actionable-table/types.js +3 -1
  221. package/lib/molecule/expandible-actionable-table/types.js.map +1 -1
  222. package/lib/molecule/review-header-steps/index.d.ts.map +1 -1
  223. package/lib/molecule/review-header-steps/index.js +3 -4
  224. package/lib/molecule/review-header-steps/index.js.map +1 -1
  225. package/lib/molecule/review-header-steps/prop-types.d.ts +1 -0
  226. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  227. package/lib/molecule/review-header-steps/style.css +6 -1
  228. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
  229. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
  230. package/lib/molecule/title-and-checkbox-wrapper/index.js +17 -3
  231. package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  232. package/lib/organism/list-item/index.d.ts +44 -13
  233. package/lib/organism/list-item/index.d.ts.map +1 -1
  234. package/lib/organism/list-item/index.js +73 -37
  235. package/lib/organism/list-item/index.js.map +1 -1
  236. package/lib/organism/list-item/style.css +28 -5
  237. package/lib/organism/list-items/index.d.ts +36 -12
  238. package/lib/organism/list-items/index.d.ts.map +1 -1
  239. package/lib/organism/list-items/index.js +21 -4
  240. package/lib/organism/list-items/index.js.map +1 -1
  241. package/lib/organism/list-items/style.css +42 -0
  242. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  243. package/lib/organism/mooc-header/index.js +1 -0
  244. package/lib/organism/mooc-header/index.js.map +1 -1
  245. package/lib/organism/review-header/types.d.ts +1 -0
  246. package/lib/organism/review-header/types.d.ts.map +1 -1
  247. package/lib/organism/rewards-form/index.d.ts +45 -0
  248. package/lib/organism/select-opponents/index.d.ts +67 -12
  249. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  250. package/lib/organism/select-opponents/index.js +3 -3
  251. package/lib/organism/select-opponents/index.js.map +1 -1
  252. package/lib/organism/select-opponents/style.css +6 -0
  253. package/lib/organism/select-opponents/types.d.ts +75 -14
  254. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  255. package/lib/organism/select-opponents/types.js +2 -2
  256. package/lib/organism/select-opponents/types.js.map +1 -1
  257. package/lib/organism/sidebar/index.d.ts +3 -1
  258. package/lib/organism/sidebar/index.d.ts.map +1 -1
  259. package/lib/organism/sidebar/index.js +8 -4
  260. package/lib/organism/sidebar/index.js.map +1 -1
  261. package/lib/organism/sidebar/style.css +14 -0
  262. package/lib/organism/title-and-input/index.d.ts +84 -29
  263. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  264. package/lib/organism/title-and-input/types.d.ts +84 -29
  265. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  266. package/lib/organism/wizard-contents/index.d.ts +112 -0
  267. package/lib/organism/wizard-contents/index.d.ts.map +1 -1
  268. package/lib/organism/wizard-contents/index.js +39 -4
  269. package/lib/organism/wizard-contents/index.js.map +1 -1
  270. package/lib/organism/wizard-contents/style.css +22 -0
  271. package/lib/template/app-player/loading/index.d.ts +19 -1
  272. package/lib/template/app-player/player/index.d.ts +38 -2
  273. package/lib/template/app-player/player/slides/index.d.ts +19 -1
  274. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  275. package/lib/template/app-player/popin-correction/index.d.ts +19 -1
  276. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  277. package/lib/template/app-player/popin-end/index.d.ts +72 -2
  278. package/lib/template/app-player/popin-end/summary.d.ts +53 -1
  279. package/lib/template/app-review/index.d.ts +20 -1
  280. package/lib/template/app-review/index.d.ts.map +1 -1
  281. package/lib/template/app-review/player/prop-types.d.ts +20 -1
  282. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  283. package/lib/template/app-review/prop-types.d.ts +20 -1
  284. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  285. package/lib/template/back-office/brand-update/index.d.ts +122 -13
  286. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  287. package/lib/template/back-office/brand-update/index.js +4 -2
  288. package/lib/template/back-office/brand-update/index.js.map +1 -1
  289. package/lib/template/back-office/brand-update/style.css +4 -4
  290. package/lib/template/common/dashboard/index.d.ts +89 -1
  291. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  292. package/lib/template/common/dashboard/index.js +6 -2
  293. package/lib/template/common/dashboard/index.js.map +1 -1
  294. package/lib/template/common/dashboard/style.css +5 -0
  295. package/lib/template/common/search-page/index.d.ts +123 -1
  296. package/lib/template/common/search-page/index.d.ts.map +1 -1
  297. package/lib/template/common/search-page/index.js +9 -3
  298. package/lib/template/common/search-page/index.js.map +1 -1
  299. package/lib/template/common/search-page/style.css +5 -0
  300. package/lib/template/external-course/index.d.ts +19 -1
  301. package/lib/template/teams-dashboard/index.d.ts +53 -1
  302. package/lib/variables/colors.css +3 -2
  303. package/locales/.mtslconfig.json +1 -0
  304. package/locales/et/global.json +3 -3
  305. package/package.json +3 -3
@@ -345,17 +345,12 @@ declare namespace BrandUpdate {
345
345
  }>>;
346
346
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
347
347
  items: PropTypes.Requireable<(PropTypes.InferProps<{
348
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
349
- buttonAriaLabel: PropTypes.Requireable<string>;
350
- menuAriaLabel: PropTypes.Requireable<string>;
351
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
352
- 'data-name': PropTypes.Requireable<string>;
353
- label: PropTypes.Requireable<string>;
354
- type: PropTypes.Requireable<string>;
355
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
356
- }> | null | undefined)[]>;
357
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
358
- }>>;
348
+ title: PropTypes.Validator<string>;
349
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
350
+ label: PropTypes.Requireable<string>;
351
+ type: PropTypes.Requireable<string>;
352
+ className: PropTypes.Requireable<string>;
353
+ }> | null | undefined)[]>;
359
354
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
360
355
  type: PropTypes.Requireable<string>;
361
356
  label: PropTypes.Requireable<string>;
@@ -367,11 +362,36 @@ declare namespace BrandUpdate {
367
362
  }>>;
368
363
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
369
364
  }>>;
365
+ buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
366
+ size: PropTypes.Requireable<string>;
367
+ 'aria-label': PropTypes.Requireable<string>;
368
+ 'data-name': PropTypes.Requireable<string>;
369
+ icon: PropTypes.Requireable<string>;
370
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
371
+ link: PropTypes.Requireable<PropTypes.InferProps<{
372
+ href: PropTypes.Requireable<string>;
373
+ download: PropTypes.Requireable<boolean>;
374
+ target: PropTypes.Requireable<string>;
375
+ }>>;
376
+ disabled: PropTypes.Requireable<boolean>;
377
+ className: PropTypes.Requireable<string>;
378
+ }>>;
379
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
380
+ buttonAriaLabel: PropTypes.Requireable<string>;
381
+ menuAriaLabel: PropTypes.Requireable<string>;
382
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
383
+ 'data-name': PropTypes.Requireable<string>;
384
+ label: PropTypes.Requireable<string>;
385
+ type: PropTypes.Requireable<string>;
386
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
387
+ }> | null | undefined)[]>;
388
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
389
+ }>>;
370
390
  tags: PropTypes.Requireable<(PropTypes.InferProps<{
371
391
  label: PropTypes.Requireable<string>;
372
392
  type: PropTypes.Requireable<string>;
373
393
  }> | null | undefined)[]>;
374
- title: PropTypes.Validator<string>;
394
+ isBulkStyle: PropTypes.Requireable<boolean>;
375
395
  order: PropTypes.Requireable<number>;
376
396
  'aria-label': PropTypes.Requireable<string>;
377
397
  contentType: PropTypes.Requireable<string>;
@@ -381,6 +401,7 @@ declare namespace BrandUpdate {
381
401
  itemType: PropTypes.Requireable<string>;
382
402
  onDrop: PropTypes.Requireable<(...args: any[]) => any>;
383
403
  isDraggable: PropTypes.Requireable<boolean>;
404
+ tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
384
405
  }> | PropTypes.InferProps<{
385
406
  type: PropTypes.Requireable<string>;
386
407
  columns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -390,6 +411,7 @@ declare namespace BrandUpdate {
390
411
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
391
412
  type: PropTypes.Requireable<string>;
392
413
  current: PropTypes.Requireable<boolean>;
414
+ selected: PropTypes.Requireable<boolean>;
393
415
  icon: PropTypes.Requireable<string>;
394
416
  value: PropTypes.Requireable<string>;
395
417
  }> | null | undefined> | null | undefined)[]>;
@@ -452,6 +474,8 @@ declare namespace BrandUpdate {
452
474
  isBulkMenu: PropTypes.Requireable<boolean>;
453
475
  }> | null | undefined>>;
454
476
  isNestedTable: PropTypes.Requireable<boolean>;
477
+ emptyStateFirstMessage: PropTypes.Requireable<string>;
478
+ emptyStateSecondMessage: PropTypes.Requireable<string>;
455
479
  }> | null | undefined>>;
456
480
  title: PropTypes.Requireable<string>;
457
481
  }> | PropTypes.InferProps<{
@@ -510,6 +534,7 @@ declare namespace BrandUpdate {
510
534
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
511
535
  type: PropTypes.Requireable<string>;
512
536
  current: PropTypes.Requireable<boolean>;
537
+ selected: PropTypes.Requireable<boolean>;
513
538
  icon: PropTypes.Requireable<string>;
514
539
  value: PropTypes.Requireable<string>;
515
540
  }> | null | undefined> | null | undefined)[]>;
@@ -572,6 +597,8 @@ declare namespace BrandUpdate {
572
597
  isBulkMenu: PropTypes.Requireable<boolean>;
573
598
  }> | null | undefined>>;
574
599
  isNestedTable: PropTypes.Requireable<boolean>;
600
+ emptyStateFirstMessage: PropTypes.Requireable<string>;
601
+ emptyStateSecondMessage: PropTypes.Requireable<string>;
575
602
  }> | PropTypes.InferProps<{
576
603
  content: PropTypes.Requireable<PropTypes.InferProps<any>>;
577
604
  key: PropTypes.Requireable<string>;
@@ -581,11 +608,75 @@ declare namespace BrandUpdate {
581
608
  title: PropTypes.Requireable<string>;
582
609
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
583
610
  }>>>;
611
+ actions: PropTypes.Requireable<PropTypes.InferProps<{
612
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
613
+ buttonAriaLabel: PropTypes.Requireable<string>;
614
+ menuAriaLabel: PropTypes.Requireable<string>;
615
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
616
+ 'data-name': PropTypes.Requireable<string>;
617
+ label: PropTypes.Requireable<string>;
618
+ type: PropTypes.Requireable<string>;
619
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
620
+ }> | null | undefined)[]>;
621
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
622
+ }>>;
623
+ firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
624
+ type: PropTypes.Requireable<string>;
625
+ label: PropTypes.Requireable<string>;
626
+ 'aria-label': PropTypes.Requireable<string>;
627
+ 'data-name': PropTypes.Requireable<string>;
628
+ 'data-testid': PropTypes.Requireable<string>;
629
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
630
+ position: PropTypes.Requireable<string>;
631
+ type: PropTypes.Requireable<string>;
632
+ }>>;
633
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
634
+ link: PropTypes.Requireable<PropTypes.InferProps<{
635
+ href: PropTypes.Requireable<string>;
636
+ download: PropTypes.Requireable<boolean>;
637
+ target: PropTypes.Requireable<string>;
638
+ }>>;
639
+ disabled: PropTypes.Requireable<boolean>;
640
+ className: PropTypes.Requireable<string>;
641
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
642
+ }>>;
643
+ secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
644
+ type: PropTypes.Requireable<string>;
645
+ label: PropTypes.Requireable<string>;
646
+ 'aria-label': PropTypes.Requireable<string>;
647
+ 'data-name': PropTypes.Requireable<string>;
648
+ 'data-testid': PropTypes.Requireable<string>;
649
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
650
+ position: PropTypes.Requireable<string>;
651
+ type: PropTypes.Requireable<string>;
652
+ }>>;
653
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
654
+ link: PropTypes.Requireable<PropTypes.InferProps<{
655
+ href: PropTypes.Requireable<string>;
656
+ download: PropTypes.Requireable<boolean>;
657
+ target: PropTypes.Requireable<string>;
658
+ }>>;
659
+ disabled: PropTypes.Requireable<boolean>;
660
+ className: PropTypes.Requireable<string>;
661
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
662
+ }>>;
663
+ }>>;
584
664
  steps: PropTypes.Requireable<(PropTypes.InferProps<{
585
665
  title: PropTypes.Requireable<string>;
586
666
  done: PropTypes.Requireable<boolean>;
587
667
  current: PropTypes.Requireable<boolean>;
588
668
  }> | null | undefined)[]>;
669
+ tabs: PropTypes.Requireable<(PropTypes.InferProps<{
670
+ tab: PropTypes.Requireable<PropTypes.InferProps<{
671
+ title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
672
+ href: PropTypes.Requireable<string>;
673
+ status: PropTypes.Requireable<string>;
674
+ selected: PropTypes.Requireable<boolean>;
675
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
676
+ }>>;
677
+ index: PropTypes.Requireable<number>;
678
+ isLightTab: PropTypes.Requireable<boolean>;
679
+ }> | null | undefined)[]>;
589
680
  summary: PropTypes.Requireable<PropTypes.InferProps<{
590
681
  title: PropTypes.Requireable<string>;
591
682
  side: PropTypes.Requireable<string>;
@@ -638,7 +729,18 @@ declare namespace BrandUpdate {
638
729
  export const popin: PropTypes.Requireable<PropTypes.InferProps<{
639
730
  content: PropTypes.Requireable<string>;
640
731
  mode: PropTypes.Requireable<string>;
641
- header: PropTypes.Requireable<string>;
732
+ header: PropTypes.Requireable<PropTypes.InferProps<{
733
+ title: PropTypes.Requireable<PropTypes.InferProps<{
734
+ title: PropTypes.Requireable<string>;
735
+ subtitle: PropTypes.Requireable<string>;
736
+ type: PropTypes.Requireable<string>;
737
+ 'data-name': PropTypes.Requireable<string>;
738
+ titleSize: PropTypes.Requireable<string>;
739
+ subtitleSize: PropTypes.Requireable<string>;
740
+ }>>;
741
+ headerIcon: PropTypes.Requireable<string>;
742
+ backgroundImage: PropTypes.Requireable<string>;
743
+ }>>;
642
744
  firstButton: PropTypes.Requireable<PropTypes.InferProps<{
643
745
  label: PropTypes.Requireable<string>;
644
746
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -686,6 +788,13 @@ declare namespace BrandUpdate {
686
788
  'data-name': PropTypes.Requireable<string>;
687
789
  requiredSelection: PropTypes.Requireable<boolean>;
688
790
  }> | null | undefined)[]>;
791
+ items: PropTypes.Requireable<PropTypes.InferProps<{
792
+ type: PropTypes.Requireable<string>;
793
+ list: PropTypes.Requireable<PropTypes.InferProps<{
794
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
795
+ loading: PropTypes.Requireable<boolean>;
796
+ }>>;
797
+ }>>;
689
798
  }>>;
690
799
  export const details: PropTypes.Requireable<PropTypes.InferProps<{
691
800
  key: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AA8LA,sDA6CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAkMA,sDA6CC"}
@@ -86,12 +86,14 @@ const buildNotifications = notifications => {
86
86
 
87
87
  const notificationsList = notifications.map((notification, index) => {
88
88
  return /*#__PURE__*/React.createElement("div", {
89
- className: style.notification,
89
+ className: !notification.temporary ? style.permanentNotification : null,
90
90
  key: index
91
91
  }, /*#__PURE__*/React.createElement(Banner, notification));
92
92
  });
93
93
  return /*#__PURE__*/React.createElement("div", {
94
- className: style.notifications
94
+ className: !find({
95
+ temporary: true
96
+ }, notifications) ? style.permanentNotifications : null
95
97
  }, notificationsList);
96
98
  };
97
99
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","Banner","Header","Loader","Accordion","CmPopin","ButtonLinkIconOnly","EmptyStateDashboard","UploadingFileProgress","ExpandibleActionableTable","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","__html","closeButton","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,O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E,yBAAyB,CAAC2E,SAD/B;IAEEvD,GAAG,EAAE7C,SAAS,CAACuG,MAFjB;IAGEjE,IAAI,EAAEtC,SAAS,CAAC2G,KAAV,CAAgB,CAAC,eAAD,CAAhB;EAHR,GA9C2B,EAmD3B3G,SAAS,CAACsG,KAAV,cACKvF,cAAc,CAACqF,SADpB;IAEElC,OAAO,EAAElE,SAAS,CAACsG,KAAV,cACJ7E,yBAAyB,CAAC2E,SADtB,EAEJrF,cAAc,CAACqF,SAAf,CAAyBlC,OAAzB,CAAiCkC,SAF7B,EAFX;IAMEvD,GAAG,EAAE7C,SAAS,CAACuG,MANjB;IAOEjE,IAAI,EAAEtC,SAAS,CAAC2G,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAPR,GAnD2B,CAApB,CAhCa;EA6FtB5C,aAAa,EAAE/D,SAAS,CAACsG,KAAV,CAAgB;IAC7BpC,OAAO,EAAElE,SAAS,CAACuG,MADU;IAE7BvC,IAAI,EAAEhE,SAAS,CAACyG,IAFa;IAG7BxC,OAAO,EAAEjE,SAAS,CAAC4G;EAHU,CAAhB,CA7FO;EAkGtB/C,KAAK,EAAE7D,SAAS,CAACsG,KAAV,cAAoBjF,OAAO,CAAC+E,SAA5B,EAlGe;EAmGtBnB,OAAO,EAAEjF,SAAS,CAACsG,KAAV,cACJ3F,UAAU,CAACyF,SADP;IAEPvD,GAAG,EAAE7C,SAAS,CAACuG,MAFR;IAGPjE,IAAI,EAAEtC,SAAS,CAAC2G,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAnGa;EAwGtBhE,WAAW,EAAE3C,SAAS,CAAC4G,IAxGD;EAyGtBxB,gBAAgB,EAAEpF,SAAS,CAACyG;AAzGN,CAAxB;AA4GA,eAAevB,WAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","Banner","Header","Loader","Accordion","CmPopin","ButtonLinkIconOnly","EmptyStateDashboard","UploadingFileProgress","ExpandibleActionableTable","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","temporary","permanentNotification","permanentNotifications","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","open","documentationContent","__html","closeButton","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","func"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport UploadingFileProgress from '../../../molecule/uploading-file-progress';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n case 'uploading-file-progress':\n return <UploadingFileProgress {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n }),\n PropTypes.shape({\n ...UploadingFileProgress.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['uploading-file-progress'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;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AHR,GA9C2B,EAmD3B9G,SAAS,CAACyG,KAAV,cACK1F,cAAc,CAACwF,SADpB;IAEElC,OAAO,EAAErE,SAAS,CAACyG,KAAV,cACJhF,yBAAyB,CAAC8E,SADtB,EAEJxF,cAAc,CAACwF,SAAf,CAAyBlC,OAAzB,CAAiCkC,SAF7B,EAFX;IAME1D,GAAG,EAAE7C,SAAS,CAAC0G,MANjB;IAOEpE,IAAI,EAAEtC,SAAS,CAAC8G,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAPR,GAnD2B,CAApB,CAhCa;EA6FtB5C,aAAa,EAAElE,SAAS,CAACyG,KAAV,CAAgB;IAC7BpC,OAAO,EAAErE,SAAS,CAAC0G,MADU;IAE7BvC,IAAI,EAAEnE,SAAS,CAAC4G,IAFa;IAG7BxC,OAAO,EAAEpE,SAAS,CAAC+G;EAHU,CAAhB,CA7FO;EAkGtB/C,KAAK,EAAEhE,SAAS,CAACyG,KAAV,cAAoBpF,OAAO,CAACkF,SAA5B,EAlGe;EAmGtBnB,OAAO,EAAEpF,SAAS,CAACyG,KAAV,cACJ9F,UAAU,CAAC4F,SADP;IAEP1D,GAAG,EAAE7C,SAAS,CAAC0G,MAFR;IAGPpE,IAAI,EAAEtC,SAAS,CAAC8G,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAnGa;EAwGtBnE,WAAW,EAAE3C,SAAS,CAAC+G,IAxGD;EAyGtBxB,gBAAgB,EAAEvF,SAAS,CAAC4G;AAzGN,CAAxB;AA4GA,eAAevB,WAAf"}
@@ -66,15 +66,15 @@
66
66
  border-left: solid 3px cm_grey_100;
67
67
  }
68
68
 
69
- .notifications {
69
+ .permanentNotifications {
70
70
  padding: 0 0 32px 0;
71
71
  }
72
72
 
73
- .notification {
73
+ .permanentNotification {
74
74
  margin-bottom: 10px;
75
75
  }
76
76
 
77
- .notification:last-child {
77
+ .permanentNotification:last-child {
78
78
  margin-bottom: 0;
79
79
  }
80
80
 
@@ -193,7 +193,7 @@
193
193
  }
194
194
 
195
195
  @media mobile {
196
- .notification {
196
+ .permanentNotification {
197
197
  margin: 0 auto;
198
198
  }
199
199
  }
@@ -8,7 +8,18 @@ declare namespace Dashboard {
8
8
  cookie: PropTypes.Requireable<PropTypes.InferProps<{
9
9
  content: PropTypes.Requireable<string>;
10
10
  mode: PropTypes.Requireable<string>;
11
- header: PropTypes.Requireable<string>;
11
+ header: PropTypes.Requireable<PropTypes.InferProps<{
12
+ title: PropTypes.Requireable<PropTypes.InferProps<{
13
+ title: PropTypes.Requireable<string>;
14
+ subtitle: PropTypes.Requireable<string>;
15
+ type: PropTypes.Requireable<string>;
16
+ 'data-name': PropTypes.Requireable<string>;
17
+ titleSize: PropTypes.Requireable<string>;
18
+ subtitleSize: PropTypes.Requireable<string>;
19
+ }>>;
20
+ headerIcon: PropTypes.Requireable<string>;
21
+ backgroundImage: PropTypes.Requireable<string>;
22
+ }>>;
12
23
  firstButton: PropTypes.Requireable<PropTypes.InferProps<{
13
24
  label: PropTypes.Requireable<string>;
14
25
  handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
@@ -56,11 +67,88 @@ declare namespace Dashboard {
56
67
  'data-name': PropTypes.Requireable<string>;
57
68
  requiredSelection: PropTypes.Requireable<boolean>;
58
69
  }> | null | undefined)[]>;
70
+ items: PropTypes.Requireable<PropTypes.InferProps<{
71
+ type: PropTypes.Requireable<string>;
72
+ list: PropTypes.Requireable<PropTypes.InferProps<{
73
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
74
+ loading: PropTypes.Requireable<boolean>;
75
+ }>>;
76
+ }>>;
59
77
  }>>;
60
78
  'arrows-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
61
79
  showMoreOnLeftAriaLabel: PropTypes.Requireable<string>;
62
80
  showMoreOnRightAriaLabel: PropTypes.Requireable<string>;
63
81
  }>>;
82
+ popinWithCards: PropTypes.Requireable<PropTypes.InferProps<{
83
+ content: PropTypes.Requireable<string>;
84
+ mode: PropTypes.Requireable<string>;
85
+ header: PropTypes.Requireable<PropTypes.InferProps<{
86
+ title: PropTypes.Requireable<PropTypes.InferProps<{
87
+ title: PropTypes.Requireable<string>;
88
+ subtitle: PropTypes.Requireable<string>;
89
+ type: PropTypes.Requireable<string>;
90
+ 'data-name': PropTypes.Requireable<string>;
91
+ titleSize: PropTypes.Requireable<string>;
92
+ subtitleSize: PropTypes.Requireable<string>;
93
+ }>>;
94
+ headerIcon: PropTypes.Requireable<string>;
95
+ backgroundImage: PropTypes.Requireable<string>;
96
+ }>>;
97
+ firstButton: PropTypes.Requireable<PropTypes.InferProps<{
98
+ label: PropTypes.Requireable<string>;
99
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
100
+ 'aria-label': PropTypes.Requireable<string>;
101
+ largeButton: PropTypes.Requireable<boolean>;
102
+ type: PropTypes.Requireable<string>;
103
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
104
+ }>>;
105
+ secondButton: PropTypes.Requireable<PropTypes.InferProps<{
106
+ label: PropTypes.Requireable<string>;
107
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
108
+ type: PropTypes.Requireable<string>;
109
+ 'aria-label': PropTypes.Requireable<string>;
110
+ largeButton: PropTypes.Requireable<boolean>;
111
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
112
+ }>>;
113
+ thirdButton: PropTypes.Requireable<PropTypes.InferProps<{
114
+ label: PropTypes.Requireable<string>;
115
+ handleOnclick: PropTypes.Requireable<(...args: any[]) => any>;
116
+ type: PropTypes.Requireable<string>;
117
+ 'aria-label': PropTypes.Requireable<string>;
118
+ largeButton: PropTypes.Requireable<boolean>;
119
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
120
+ }>>;
121
+ onClose: PropTypes.Requireable<(...args: any[]) => any>;
122
+ icon: PropTypes.Requireable<string>;
123
+ backgroundImageUrl: PropTypes.Requireable<string>;
124
+ descriptionText: PropTypes.Requireable<string>;
125
+ cookieTitle: PropTypes.Requireable<string>;
126
+ descriptionBtnTxt: PropTypes.Requireable<string>;
127
+ listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
128
+ title: PropTypes.Requireable<string>;
129
+ name: PropTypes.Requireable<string>;
130
+ id: PropTypes.Requireable<string>;
131
+ value: PropTypes.Requireable<boolean>;
132
+ disabled: PropTypes.Requireable<boolean>;
133
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
134
+ description: PropTypes.Requireable<string>;
135
+ 'aria-labelledby': PropTypes.Requireable<string>;
136
+ 'aria-label': PropTypes.Requireable<string>;
137
+ modified: PropTypes.Requireable<boolean>;
138
+ titlePosition: PropTypes.Requireable<string>;
139
+ theme: PropTypes.Requireable<string>;
140
+ details: PropTypes.Requireable<string>;
141
+ 'data-name': PropTypes.Requireable<string>;
142
+ requiredSelection: PropTypes.Requireable<boolean>;
143
+ }> | null | undefined)[]>;
144
+ items: PropTypes.Requireable<PropTypes.InferProps<{
145
+ type: PropTypes.Requireable<string>;
146
+ list: PropTypes.Requireable<PropTypes.InferProps<{
147
+ list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
148
+ loading: PropTypes.Requireable<boolean>;
149
+ }>>;
150
+ }>>;
151
+ }>>;
64
152
  };
65
153
  }
66
154
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,oDA4CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAqBA,oDAkDC"}
@@ -30,6 +30,7 @@ const Dashboard = props => {
30
30
  hero,
31
31
  welcome,
32
32
  cookie,
33
+ popinWithCards,
33
34
  'arrows-aria-label': showMoreOnLeftOrRightAriaLabel
34
35
  } = props;
35
36
 
@@ -83,7 +84,9 @@ const Dashboard = props => {
83
84
  return /*#__PURE__*/React.createElement("div", {
84
85
  className: style.wrapper,
85
86
  "data-name": "dashboard"
86
- }, sectionsList, cookie ? /*#__PURE__*/React.createElement(CMPopin, cookie) : null);
87
+ }, sectionsList, cookie ? /*#__PURE__*/React.createElement(CMPopin, cookie) : null, popinWithCards ? /*#__PURE__*/React.createElement("div", {
88
+ className: style.popinWithCards
89
+ }, /*#__PURE__*/React.createElement(CMPopin, popinWithCards)) : null);
87
90
  };
88
91
 
89
92
  Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -91,7 +94,8 @@ Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
91
94
  welcome: Hero.propTypes.welcome,
92
95
  sections: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(BattleRequestList.propTypes), PropTypes.shape(CardsList.propTypes), PropTypes.shape(NewsList.propTypes), PropTypes.shape(StartBattle.propTypes), PropTypes.shape(ReviewBanner.propTypes)])),
93
96
  cookie: PropTypes.shape(CMPopin.propTypes),
94
- 'arrows-aria-label': CardsList.propTypes['arrows-aria-label']
97
+ 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],
98
+ popinWithCards: PropTypes.shape(CMPopin.propTypes)
95
99
  } : {};
96
100
  export default Dashboard;
97
101
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","style","Hero","memo","hero","welcome","propTypes","shape","Dashboard","props","sections","cookie","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label']\n};\nexport default Dashboard;\n"],"mappings":";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,CAAgBX,SAAS,CAACU,SAA1B,CAFkB,EAGlBd,SAAS,CAACe,KAAV,CAAgBV,QAAQ,CAACS,SAAzB,CAHkB,EAIlBd,SAAS,CAACe,KAAV,CAAgBT,WAAW,CAACQ,SAA5B,CAJkB,EAKlBd,SAAS,CAACe,KAAV,CAAgBP,YAAY,CAACM,SAA7B,CALkB,CAApB,CADQ,CAHU;EAYpBK,MAAM,EAAEnB,SAAS,CAACe,KAAV,CAAgBR,OAAO,CAACO,SAAxB,CAZY;EAapB,qBAAqBV,SAAS,CAACU,SAAV,CAAoB,mBAApB;AAbD,CAAtB;AAeA,eAAeE,SAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","style","Hero","memo","hero","welcome","propTypes","shape","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,KAAP,MAAkB,qBAAlB;AACA,OAAOC,QAAP,MAAqB,wBAArB;AACA,OAAOC,iBAAP,MAA8B,iDAA9B;AACA,OAAOC,SAAP,MAAsB,wCAAtB;AACA,OAAOC,QAAP,MAAqB,uCAArB;AACA,OAAOC,WAAP,MA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gBT,WAAW,CAACQ,SAA5B,CAJkB,EAKlBd,SAAS,CAACe,KAAV,CAAgBP,YAAY,CAACM,SAA7B,CALkB,CAApB,CADQ,CAHU;EAYpBK,MAAM,EAAEnB,SAAS,CAACe,KAAV,CAAgBR,OAAO,CAACO,SAAxB,CAZY;EAapB,qBAAqBV,SAAS,CAACU,SAAV,CAAoB,mBAApB,CAbD;EAcpBM,cAAc,EAAEpB,SAAS,CAACe,KAAV,CAAgBR,OAAO,CAACO,SAAxB;AAdI,CAAtB;AAgBA,eAAeE,SAAf"}
@@ -12,6 +12,11 @@
12
12
  width: 100%;
13
13
  }
14
14
 
15
+ .popinWithCards {
16
+ position: relative;
17
+ z-index: 7;
18
+ }
19
+
15
20
  @media tablet {
16
21
  .hero {
17
22
  height: 200px;