@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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["CHILD","InputTextWithTitle","DragAndDropWrapper","TitleAndCheckBoxWrapper","props","checkboxWithTitle","child","sectionTitle","Child","childType","style","propTypes","PropTypes","shape","CheckboxWithTitle","Title","oneOfType","oneOf"],"sources":["../../../src/molecule/title-and-checkbox-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport Title from '../../atom/title';\nimport DragAndDropWrapper from '../drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst CHILD = {\n 'input-text': InputTextWithTitle,\n 'drag-and-drop-wrapper': DragAndDropWrapper\n};\nconst TitleAndCheckBoxWrapper = props => {\n const {checkboxWithTitle, child, sectionTitle} = props;\n\n const Child = CHILD[child.childType];\n return (\n <div>\n {checkboxWithTitle ? <CheckboxWithTitle {...checkboxWithTitle} /> : null}\n {sectionTitle ? (\n <div className={style.sectionTitle}>\n <Title {...sectionTitle} type={'form-group'} />\n </div>\n ) : null}\n <div className={checkboxWithTitle || sectionTitle ? style.child : null}>\n <Child {...child} />\n </div>\n </div>\n );\n};\n\nTitleAndCheckBoxWrapper.propTypes = {\n checkboxWithTitle: PropTypes.shape(CheckboxWithTitle.propTypes),\n sectionTitle: PropTypes.shape(Title.propTypes),\n child: PropTypes.oneOfType([\n PropTypes.shape({\n ...InputTextWithTitle.propTypes,\n childType: PropTypes.oneOf(['input-text'])\n }),\n PropTypes.shape({\n ...DragAndDropWrapper.propTypes,\n childType: PropTypes.oneOf(['drag-and-drop-wrapper'])\n })\n ])\n};\nexport default TitleAndCheckBoxWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,cAAcC,2BADF;EAEZ,yBAAyBC;AAFb,CAAd;;AAIA,MAAMC,uBAAuB,GAAGC,KAAK,IAAI;EACvC,MAAM;IAACC,iBAAD;IAAoBC,KAApB;IAA2BC;EAA3B,IAA2CH,KAAjD;EAEA,MAAMI,KAAK,GAAGR,KAAK,CAACM,KAAK,CAACG,SAAP,CAAnB;EACA,oBACE,0CACGJ,iBAAiB,gBAAG,6BAAC,0BAAD,EAAuBA,iBAAvB,CAAH,GAAkD,IADtE,EAEGE,YAAY,gBACX;IAAK,SAAS,EAAEG,cAAA,CAAMH;EAAtB,gBACE,6BAAC,cAAD,eAAWA,YAAX;IAAyB,IAAI,EAAE;EAA/B,GADF,CADW,GAIT,IANN,eAOE;IAAK,SAAS,EAAEF,iBAAiB,IAAIE,YAArB,GAAoCG,cAAA,CAAMJ,KAA1C,GAAkD;EAAlE,gBACE,6BAAC,KAAD,EAAWA,KAAX,CADF,CAPF,CADF;AAaD,CAjBD;;AAmBAH,uBAAuB,CAACQ,SAAxB,2CAAoC;EAClCN,iBAAiB,EAAEO,kBAAA,CAAUC,KAAV,CAAgBC,0BAAA,CAAkBH,SAAlC,CADe;EAElCJ,YAAY,EAAEK,kBAAA,CAAUC,KAAV,CAAgBE,cAAA,CAAMJ,SAAtB,CAFoB;EAGlCL,KAAK,EAAEM,kBAAA,CAAUI,SAAV,CAAoB,CACzBJ,kBAAA,CAAUC,KAAV,cACKZ,2BAAA,CAAmBU,SADxB;IAEEF,SAAS,EAAEG,kBAAA,CAAUK,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAFb,GADyB,EAKzBL,kBAAA,CAAUC,KAAV,cACKX,2BAAA,CAAmBS,SADxB;IAEEF,SAAS,EAAEG,kBAAA,CAAUK,KAAV,CAAgB,CAAC,uBAAD,CAAhB;EAFb,GALyB,CAApB;AAH2B,CAApC;eAced,uB"}
1
+ {"version":3,"file":"index.js","names":["CHILD","InputTextWithTitle","DragAndDropWrapper","ImageUpload","SelectMultiple","TitleAndCheckBoxWrapper","props","checkboxWithTitle","child","sectionTitle","Child","childType","style","removeMargin","propTypes","PropTypes","shape","CheckboxWithTitle","Title","bool","oneOfType","oneOf"],"sources":["../../../src/molecule/title-and-checkbox-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isUndefined} from 'lodash/fp';\nimport ImageUpload from '../../atom/image-upload';\nimport InputTextWithTitle from '../../atom/input-text-with-title';\nimport SelectMultiple from '../select-multiple';\nimport CheckboxWithTitle from '../../atom/checkbox-with-title';\nimport Title from '../../atom/title';\nimport DragAndDropWrapper from '../drag-and-drop-wrapper';\nimport style from './style.css';\n\nconst CHILD = {\n 'input-text': InputTextWithTitle,\n 'drag-and-drop-wrapper': DragAndDropWrapper,\n 'image-upload': ImageUpload,\n 'select-multiple': SelectMultiple\n};\nconst TitleAndCheckBoxWrapper = props => {\n const {checkboxWithTitle, child, sectionTitle} = props;\n\n const Child = CHILD[child.childType];\n return (\n <div>\n {checkboxWithTitle ? <CheckboxWithTitle {...checkboxWithTitle} /> : null}\n {sectionTitle ? (\n <div className={style.sectionTitle}>\n <Title {...sectionTitle} type={'form-group'} />\n </div>\n ) : null}\n <div\n className={\n checkboxWithTitle || (sectionTitle && isUndefined(sectionTitle.removeMargin))\n ? style.child\n : null\n }\n >\n <Child {...child} />\n </div>\n </div>\n );\n};\n\nTitleAndCheckBoxWrapper.propTypes = {\n checkboxWithTitle: PropTypes.shape(CheckboxWithTitle.propTypes),\n sectionTitle: PropTypes.shape({...Title.propTypes, removeMargin: PropTypes.bool}),\n child: PropTypes.oneOfType([\n PropTypes.shape({\n ...InputTextWithTitle.propTypes,\n childType: PropTypes.oneOf(['input-text'])\n }),\n PropTypes.shape({\n ...DragAndDropWrapper.propTypes,\n childType: PropTypes.oneOf(['drag-and-drop-wrapper'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n childType: PropTypes.oneOf(['image-upload'])\n }),\n PropTypes.shape({\n ...SelectMultiple.propTypes,\n childType: PropTypes.oneOf(['select-multiple'])\n })\n ])\n};\nexport default TitleAndCheckBoxWrapper;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG;EACZ,cAAcC,2BADF;EAEZ,yBAAyBC,2BAFb;EAGZ,gBAAgBC,oBAHJ;EAIZ,mBAAmBC;AAJP,CAAd;;AAMA,MAAMC,uBAAuB,GAAGC,KAAK,IAAI;EACvC,MAAM;IAACC,iBAAD;IAAoBC,KAApB;IAA2BC;EAA3B,IAA2CH,KAAjD;EAEA,MAAMI,KAAK,GAAGV,KAAK,CAACQ,KAAK,CAACG,SAAP,CAAnB;EACA,oBACE,0CACGJ,iBAAiB,gBAAG,6BAAC,0BAAD,EAAuBA,iBAAvB,CAAH,GAAkD,IADtE,EAEGE,YAAY,gBACX;IAAK,SAAS,EAAEG,cAAA,CAAMH;EAAtB,gBACE,6BAAC,cAAD,eAAWA,YAAX;IAAyB,IAAI,EAAE;EAA/B,GADF,CADW,GAIT,IANN,eAOE;IACE,SAAS,EACPF,iBAAiB,IAAKE,YAAY,IAAI,2BAAYA,YAAY,CAACI,YAAzB,CAAtC,GACID,cAAA,CAAMJ,KADV,GAEI;EAJR,gBAOE,6BAAC,KAAD,EAAWA,KAAX,CAPF,CAPF,CADF;AAmBD,CAvBD;;AAyBAH,uBAAuB,CAACS,SAAxB,2CAAoC;EAClCP,iBAAiB,EAAEQ,kBAAA,CAAUC,KAAV,CAAgBC,0BAAA,CAAkBH,SAAlC,CADe;EAElCL,YAAY,EAAEM,kBAAA,CAAUC,KAAV,cAAoBE,cAAA,CAAMJ,SAA1B;IAAqCD,YAAY,EAAEE,kBAAA,CAAUI;EAA7D,GAFoB;EAGlCX,KAAK,EAAEO,kBAAA,CAAUK,SAAV,CAAoB,CACzBL,kBAAA,CAAUC,KAAV,cACKf,2BAAA,CAAmBa,SADxB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAFb,GADyB,EAKzBN,kBAAA,CAAUC,KAAV,cACKd,2BAAA,CAAmBY,SADxB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,uBAAD,CAAhB;EAFb,GALyB,EASzBN,kBAAA,CAAUC,KAAV,cACKb,oBAAA,CAAYW,SADjB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,cAAD,CAAhB;EAFb,GATyB,EAazBN,kBAAA,CAAUC,KAAV,cACKZ,uBAAA,CAAeU,SADpB;IAEEH,SAAS,EAAEI,kBAAA,CAAUM,KAAV,CAAgB,CAAC,iBAAD,CAAhB;EAFb,GAbyB,CAApB;AAH2B,CAApC;eAsBehB,uB"}
@@ -1,18 +1,24 @@
1
1
  export default ListItem;
2
- declare function ListItem(props: any): JSX.Element;
2
+ declare function ListItem({ buttonLink, buttonLinkIcon, bulletPointMenuButton, tags, title, dataColumns, order, "aria-label": ariaLabel, contentType, isBulkStyle }: {
3
+ buttonLink: any;
4
+ buttonLinkIcon: any;
5
+ bulletPointMenuButton: any;
6
+ tags: any;
7
+ title: any;
8
+ dataColumns: any;
9
+ order: any;
10
+ "aria-label": any;
11
+ contentType: any;
12
+ isBulkStyle?: boolean | undefined;
13
+ }): JSX.Element;
3
14
  declare namespace ListItem {
4
15
  const propTypes: {
5
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
6
- buttonAriaLabel: PropTypes.Requireable<string>;
7
- menuAriaLabel: PropTypes.Requireable<string>;
8
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
9
- 'data-name': PropTypes.Requireable<string>;
10
- label: PropTypes.Requireable<string>;
11
- type: PropTypes.Requireable<string>;
12
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
13
- }> | null | undefined)[]>;
14
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
15
- }>>;
16
+ title: PropTypes.Validator<string>;
17
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
18
+ label: PropTypes.Requireable<string>;
19
+ type: PropTypes.Requireable<string>;
20
+ className: PropTypes.Requireable<string>;
21
+ }> | null | undefined)[]>;
16
22
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
17
23
  type: PropTypes.Requireable<string>;
18
24
  label: PropTypes.Requireable<string>;
@@ -24,11 +30,36 @@ declare namespace ListItem {
24
30
  }>>;
25
31
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
26
32
  }>>;
33
+ buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
34
+ size: PropTypes.Requireable<string>;
35
+ 'aria-label': PropTypes.Requireable<string>;
36
+ 'data-name': PropTypes.Requireable<string>;
37
+ icon: PropTypes.Requireable<string>;
38
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
39
+ link: PropTypes.Requireable<PropTypes.InferProps<{
40
+ href: PropTypes.Requireable<string>;
41
+ download: PropTypes.Requireable<boolean>;
42
+ target: PropTypes.Requireable<string>;
43
+ }>>;
44
+ disabled: PropTypes.Requireable<boolean>;
45
+ className: PropTypes.Requireable<string>;
46
+ }>>;
47
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
48
+ buttonAriaLabel: PropTypes.Requireable<string>;
49
+ menuAriaLabel: PropTypes.Requireable<string>;
50
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
51
+ 'data-name': PropTypes.Requireable<string>;
52
+ label: PropTypes.Requireable<string>;
53
+ type: PropTypes.Requireable<string>;
54
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
55
+ }> | null | undefined)[]>;
56
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
57
+ }>>;
27
58
  tags: PropTypes.Requireable<(PropTypes.InferProps<{
28
59
  label: PropTypes.Requireable<string>;
29
60
  type: PropTypes.Requireable<string>;
30
61
  }> | null | undefined)[]>;
31
- title: PropTypes.Validator<string>;
62
+ isBulkStyle: PropTypes.Requireable<boolean>;
32
63
  order: PropTypes.Requireable<number>;
33
64
  'aria-label': PropTypes.Requireable<string>;
34
65
  contentType: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAQA,mDA8CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAWA;;;;;;;;;;;gBAgEC"}
@@ -9,70 +9,81 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
12
14
  var _tag = _interopRequireDefault(require("../../atom/tag"));
13
15
 
14
16
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
15
17
 
18
+ var _buttonLinkIconOnly = _interopRequireDefault(require("../../atom/button-link-icon-only"));
19
+
16
20
  var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
17
21
 
18
22
  var _style = _interopRequireDefault(require("./style.css"));
19
23
 
20
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
25
 
22
- const ListItem = props => {
26
+ // eslint-disable-next-line css-modules/no-unused-class
27
+ const ListItem = ({
28
+ buttonLink,
29
+ buttonLinkIcon,
30
+ bulletPointMenuButton,
31
+ tags,
32
+ title,
33
+ dataColumns,
34
+ order,
35
+ 'aria-label': ariaLabel,
36
+ contentType,
37
+ isBulkStyle = false
38
+ }) => {
23
39
  let isPublished = false;
24
- const {
25
- bulletPointMenuButton,
26
- buttonLink,
27
- tags,
28
- title,
29
- order,
30
- 'aria-label': ariaLabel,
31
- contentType
32
- } = props;
33
40
 
34
41
  const tagsView = _map2.default.convert({
35
42
  cap: false
36
43
  })((tag, index) => {
37
- isPublished = tag.type === 'published';
44
+ isPublished = tag.type === 'success';
38
45
  return /*#__PURE__*/_react.default.createElement("div", {
39
46
  key: index,
40
47
  className: _style.default.tag
41
48
  }, /*#__PURE__*/_react.default.createElement(_tag.default, tag));
42
49
  })(tags);
43
50
 
44
- return /*#__PURE__*/_react.default.createElement("div", {
45
- className: _style.default.wrapper
46
- }, isPublished && contentType === 'certification' ? /*#__PURE__*/_react.default.createElement("div", {
47
- className: _style.default.orderWrapper
48
- }, order !== null && order !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
51
+ const dataColumnsView = _map2.default.convert({
52
+ cap: false
53
+ })((dataColumn, index) => {
54
+ return /*#__PURE__*/_react.default.createElement("div", {
55
+ key: index,
56
+ className: _style.default[dataColumn.className]
57
+ }, dataColumn.type ? /*#__PURE__*/_react.default.createElement(_tag.default, dataColumn) : dataColumn.label);
58
+ })(dataColumns);
59
+
60
+ const orderView = order !== null && order !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
49
61
  className: _style.default.order,
50
62
  "aria-label": ariaLabel
51
- }, order + 1) : null, /*#__PURE__*/_react.default.createElement("div", {
52
- className: _style.default.title,
53
- title: title
54
- }, title)) : /*#__PURE__*/_react.default.createElement("div", {
63
+ }, order + 1) : null;
64
+ return /*#__PURE__*/_react.default.createElement("div", {
65
+ className: (0, _classnames.default)(_style.default.wrapper, isBulkStyle && _style.default.gridLayout)
66
+ }, /*#__PURE__*/_react.default.createElement("div", {
67
+ className: _style.default.dataColumnsWrapper
68
+ }, isPublished && contentType === 'certification' ? orderView : null, /*#__PURE__*/_react.default.createElement("div", {
55
69
  className: _style.default.title,
56
70
  title: title
57
- }, title), /*#__PURE__*/_react.default.createElement("div", {
71
+ }, title), dataColumnsView), /*#__PURE__*/_react.default.createElement("div", {
58
72
  className: _style.default.settings
59
- }, tagsView, /*#__PURE__*/_react.default.createElement("div", {
60
- className: _style.default.edit
61
- }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)), /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButton)));
73
+ }, tagsView, buttonLink ? /*#__PURE__*/_react.default.createElement("div", {
74
+ className: _style.default.buttonLink
75
+ }, /*#__PURE__*/_react.default.createElement(_buttonLink.default, buttonLink)) : null, buttonLinkIcon ? /*#__PURE__*/_react.default.createElement("div", {
76
+ className: _style.default.buttonLink
77
+ }, /*#__PURE__*/_react.default.createElement(_buttonLinkIconOnly.default, buttonLinkIcon)) : null, /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, bulletPointMenuButton)));
62
78
  };
63
79
 
64
80
  ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
65
- bulletPointMenuButton: _propTypes.default.shape({
66
- buttonAriaLabel: _propTypes.default.string,
67
- menuAriaLabel: _propTypes.default.string,
68
- buttons: _propTypes.default.arrayOf(_propTypes.default.shape({
69
- 'data-name': _propTypes.default.string,
70
- label: _propTypes.default.string,
71
- type: _propTypes.default.string,
72
- onClick: _propTypes.default.func
73
- })),
74
- onClick: _propTypes.default.func
75
- }),
81
+ title: _propTypes.default.string.isRequired,
82
+ dataColumns: _propTypes.default.arrayOf(_propTypes.default.shape({
83
+ label: _propTypes.default.string,
84
+ type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default']),
85
+ className: _propTypes.default.oneOf(['cell', 'title'])
86
+ })),
76
87
  buttonLink: _propTypes.default.shape({
77
88
  type: _propTypes.default.string,
78
89
  label: _propTypes.default.string,
@@ -84,11 +95,36 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
84
95
  }),
85
96
  onClick: _propTypes.default.func
86
97
  }),
98
+ buttonLinkIcon: _propTypes.default.shape({
99
+ size: _propTypes.default.oneOf(['default', 'small', 'responsive']),
100
+ 'aria-label': _propTypes.default.string,
101
+ 'data-name': _propTypes.default.string,
102
+ icon: _propTypes.default.string,
103
+ onClick: _propTypes.default.func,
104
+ link: _propTypes.default.shape({
105
+ href: _propTypes.default.string,
106
+ download: _propTypes.default.bool,
107
+ target: _propTypes.default.oneOf(['_self', '_blank', '_parent', '_top'])
108
+ }),
109
+ disabled: _propTypes.default.bool,
110
+ className: _propTypes.default.string
111
+ }),
112
+ bulletPointMenuButton: _propTypes.default.shape({
113
+ buttonAriaLabel: _propTypes.default.string,
114
+ menuAriaLabel: _propTypes.default.string,
115
+ buttons: _propTypes.default.arrayOf(_propTypes.default.shape({
116
+ 'data-name': _propTypes.default.string,
117
+ label: _propTypes.default.string,
118
+ type: _propTypes.default.string,
119
+ onClick: _propTypes.default.func
120
+ })),
121
+ onClick: _propTypes.default.func
122
+ }),
87
123
  tags: _propTypes.default.arrayOf(_propTypes.default.shape({
88
124
  label: _propTypes.default.string,
89
- type: _propTypes.default.oneOf(['published', 'draft', 'archived', 'revised', 'default'])
125
+ type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default'])
90
126
  })),
91
- title: _propTypes.default.string.isRequired,
127
+ isBulkStyle: _propTypes.default.bool,
92
128
  order: _propTypes.default.number,
93
129
  'aria-label': _propTypes.default.string,
94
130
  contentType: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ListItem","props","isPublished","bulletPointMenuButton","buttonLink","tags","title","order","ariaLabel","contentType","tagsView","convert","cap","tag","index","type","style","wrapper","orderWrapper","undefined","settings","edit","propTypes","PropTypes","shape","buttonAriaLabel","string","menuAriaLabel","buttons","arrayOf","label","onClick","func","dataName","icon","position","oneOf","isRequired","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport style from './style.css';\n\nconst ListItem = props => {\n let isPublished = false;\n const {\n bulletPointMenuButton,\n buttonLink,\n tags,\n title,\n order,\n 'aria-label': ariaLabel,\n contentType\n } = props;\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'published';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n return (\n <div className={style.wrapper}>\n {isPublished && contentType === 'certification' ? (\n <div className={style.orderWrapper}>\n {order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n </div>\n ) : (\n <div className={style.title} title={title}>\n {title}\n </div>\n )}\n <div className={style.settings}>\n {tagsView}\n <div className={style.edit}>\n <ButtonLink {...buttonLink} />\n </div>\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['published', 'draft', 'archived', 'revised', 'default'])\n })\n ),\n title: PropTypes.string.isRequired,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;EACxB,IAAIC,WAAW,GAAG,KAAlB;EACA,MAAM;IACJC,qBADI;IAEJC,UAFI;IAGJC,IAHI;IAIJC,KAJI;IAKJC,KALI;IAMJ,cAAcC,SANV;IAOJC;EAPI,IAQFR,KARJ;;EASA,MAAMS,QAAQ,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDZ,WAAW,GAAGW,GAAG,CAACE,IAAJ,KAAa,WAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEE,cAAA,CAAMH;IAAlC,gBACE,6BAAC,YAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdR,IAPc,CAAjB;;EAQA,oBACE;IAAK,SAAS,EAAEW,cAAA,CAAMC;EAAtB,GACGf,WAAW,IAAIO,WAAW,KAAK,eAA/B,gBACC;IAAK,SAAS,EAAEO,cAAA,CAAME;EAAtB,GACGX,KAAK,KAAK,IAAV,IAAkBA,KAAK,KAAKY,SAA5B,gBACC;IAAK,SAAS,EAAEH,cAAA,CAAMT,KAAtB;IAA6B,cAAYC;EAAzC,GACGD,KAAK,GAAG,CADX,CADD,GAIG,IALN,eAME;IAAK,SAAS,EAAES,cAAA,CAAMV,KAAt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BAAA,CAAUS;EATO,CAAhB,CAdO;EAyBnB3B,IAAI,EAAEkB,kBAAA,CAAUM,OAAV,CACJN,kBAAA,CAAUC,KAAV,CAAgB;IACdM,KAAK,EAAEP,kBAAA,CAAUG,MADH;IAEdX,IAAI,EAAEQ,kBAAA,CAAUa,KAAV,CAAgB,CAAC,WAAD,EAAc,OAAd,EAAuB,UAAvB,EAAmC,SAAnC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CAzBa;EA+BnB9B,KAAK,EAAEiB,kBAAA,CAAUG,MAAV,CAAiBW,UA/BL;EAgCnB9B,KAAK,EAAEgB,kBAAA,CAAUe,MAhCE;EAiCnB,cAAcf,kBAAA,CAAUG,MAjCL;EAkCnBjB,WAAW,EAAEc,kBAAA,CAAUG,MAlCJ;EAmCnBa,EAAE,EAAEhB,kBAAA,CAAUG;AAnCK,CAArB;eAsCe1B,Q"}
1
+ {"version":3,"file":"index.js","names":["ListItem","buttonLink","buttonLinkIcon","bulletPointMenuButton","tags","title","dataColumns","order","ariaLabel","contentType","isBulkStyle","isPublished","tagsView","convert","cap","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","dataColumnsWrapper","settings","propTypes","PropTypes","string","isRequired","arrayOf","shape","oneOf","dataName","icon","position","onClick","func","size","link","href","download","bool","target","disabled","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport classnames from 'classnames';\nimport Tag from '../../atom/tag';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIconOnly from '../../atom/button-link-icon-only';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = ({\n buttonLink,\n buttonLinkIcon,\n bulletPointMenuButton,\n tags,\n title,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n contentType,\n isBulkStyle = false\n}) => {\n let isPublished = false;\n\n const tagsView = map.convert({cap: false})((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = map.convert({cap: false})((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div className={classnames(style.wrapper, isBulkStyle && style.gridLayout)}>\n <div className={style.dataColumnsWrapper}>\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {buttonLink ? (\n <div className={style.buttonLink}>\n <ButtonLink {...buttonLink} />\n </div>\n ) : null}\n {buttonLinkIcon ? (\n <div className={style.buttonLink}>\n <ButtonLinkIconOnly {...buttonLinkIcon} />\n </div>\n ) : null}\n <BulletPointMenuButton {...bulletPointMenuButton} />\n </div>\n </div>\n );\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n buttonLinkIcon: PropTypes.shape({\n size: PropTypes.oneOf(['default', 'small', 'responsive']),\n 'aria-label': PropTypes.string,\n 'data-name': PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n link: PropTypes.shape({\n href: PropTypes.string,\n download: PropTypes.bool,\n target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'])\n }),\n disabled: PropTypes.bool,\n className: PropTypes.string\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n isBulkStyle: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;AADA;AAGA,MAAMA,QAAQ,GAAG,CAAC;EAChBC,UADgB;EAEhBC,cAFgB;EAGhBC,qBAHgB;EAIhBC,IAJgB;EAKhBC,KALgB;EAMhBC,WANgB;EAOhBC,KAPgB;EAQhB,cAAcC,SARE;EAShBC,WATgB;EAUhBC,WAAW,GAAG;AAVE,CAAD,KAWX;EACJ,IAAIC,WAAW,GAAG,KAAlB;;EAEA,MAAMC,QAAQ,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,GAAD,EAAMC,KAAN,KAAgB;IACzDL,WAAW,GAAGI,GAAG,CAACE,IAAJ,KAAa,SAA3B;IACA,oBACE;MAAK,GAAG,EAAED,KAAV;MAAiB,SAAS,EAAEE,cAAA,CAAMH;IAAlC,gBACE,6BAAC,YAAD,EAASA,GAAT,CADF,CADF;EAKD,CAPgB,EAOdX,IAPc,CAAjB;;EASA,MAAMe,eAAe,GAAG,cAAIN,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN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ey_900 from colors;
6
6
  @value primaryAdd1 from colors;
7
7
  @value cm_grey_400 from colors;
8
+ @value cm_grey_500 from colors;
8
9
 
9
10
  .wrapper {
10
11
  align-items: center;
@@ -16,11 +17,22 @@
16
17
  justify-content: space-between;
17
18
  padding: 0 24px;
18
19
  width: 100%;
20
+ gap: 24px;
21
+ }
22
+
23
+ .gridLayout {
24
+ display: grid;
25
+ grid-template-columns: 70% auto;
19
26
  }
20
27
 
21
28
  .title {
22
29
  color: cm_grey_900;
23
30
  flex-grow: 0;
31
+ display: flex;
32
+ height: 56px;
33
+ align-items: center;
34
+ gap: 16px;
35
+ flex: 1 0 0;
24
36
  font-family: Gilroy;
25
37
  font-size: 16px;
26
38
  font-stretch: normal;
@@ -28,12 +40,10 @@
28
40
  font-weight: bold;
29
41
  line-height: 1.38;
30
42
  letter-spacing: normal;
31
- margin-right: 24px;
32
43
  overflow: hidden;
33
44
  text-align: left;
34
45
  text-overflow: ellipsis;
35
46
  white-space: nowrap;
36
-
37
47
  }
38
48
 
39
49
  .settings {
@@ -47,10 +57,23 @@
47
57
  text-overflow: ellipsis;
48
58
  white-space: nowrap;
49
59
  }
60
+ .cell {
61
+ display: flex;
62
+ height: 56px;
63
+ align-items: center;
64
+ gap: 16px;
65
+ flex: 1 0 0;
66
+ color: cm_grey_500;
67
+ font-family: Gilroy;
68
+ font-size: 14px;
69
+ font-style: normal;
70
+ font-weight: 600;
71
+ line-height: 20px;
72
+ white-space: nowrap;
73
+ }
50
74
 
51
- .edit {
75
+ .buttonLink {
52
76
  margin: 0 16px 0 0;
53
- min-width: 93px;
54
77
  }
55
78
 
56
79
  .order {
@@ -65,7 +88,7 @@
65
88
  margin: 0 16px 0 0;
66
89
  }
67
90
 
68
- .orderWrapper {
91
+ .dataColumnsWrapper {
69
92
  align-items: center;
70
93
  display: flex;
71
94
  width: 100%;
@@ -49,17 +49,12 @@ declare namespace ListItems {
49
49
  }>>;
50
50
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
51
51
  items: PropTypes.Requireable<(PropTypes.InferProps<{
52
- bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
53
- buttonAriaLabel: PropTypes.Requireable<string>;
54
- menuAriaLabel: PropTypes.Requireable<string>;
55
- buttons: PropTypes.Requireable<(PropTypes.InferProps<{
56
- 'data-name': PropTypes.Requireable<string>;
57
- label: PropTypes.Requireable<string>;
58
- type: PropTypes.Requireable<string>;
59
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
60
- }> | null | undefined)[]>;
61
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
62
- }>>;
52
+ title: PropTypes.Validator<string>;
53
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
54
+ label: PropTypes.Requireable<string>;
55
+ type: PropTypes.Requireable<string>;
56
+ className: PropTypes.Requireable<string>;
57
+ }> | null | undefined)[]>;
63
58
  buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
64
59
  type: PropTypes.Requireable<string>;
65
60
  label: PropTypes.Requireable<string>;
@@ -71,11 +66,36 @@ declare namespace ListItems {
71
66
  }>>;
72
67
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
73
68
  }>>;
69
+ buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
70
+ size: PropTypes.Requireable<string>;
71
+ 'aria-label': PropTypes.Requireable<string>;
72
+ 'data-name': PropTypes.Requireable<string>;
73
+ icon: PropTypes.Requireable<string>;
74
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
75
+ link: PropTypes.Requireable<PropTypes.InferProps<{
76
+ href: PropTypes.Requireable<string>;
77
+ download: PropTypes.Requireable<boolean>;
78
+ target: PropTypes.Requireable<string>;
79
+ }>>;
80
+ disabled: PropTypes.Requireable<boolean>;
81
+ className: PropTypes.Requireable<string>;
82
+ }>>;
83
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
84
+ buttonAriaLabel: PropTypes.Requireable<string>;
85
+ menuAriaLabel: PropTypes.Requireable<string>;
86
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
87
+ 'data-name': PropTypes.Requireable<string>;
88
+ label: PropTypes.Requireable<string>;
89
+ type: PropTypes.Requireable<string>;
90
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
91
+ }> | null | undefined)[]>;
92
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
93
+ }>>;
74
94
  tags: PropTypes.Requireable<(PropTypes.InferProps<{
75
95
  label: PropTypes.Requireable<string>;
76
96
  type: PropTypes.Requireable<string>;
77
97
  }> | null | undefined)[]>;
78
- title: PropTypes.Validator<string>;
98
+ isBulkStyle: PropTypes.Requireable<boolean>;
79
99
  order: PropTypes.Requireable<number>;
80
100
  'aria-label': PropTypes.Requireable<string>;
81
101
  contentType: PropTypes.Requireable<string>;
@@ -85,6 +105,7 @@ declare namespace ListItems {
85
105
  itemType: PropTypes.Requireable<string>;
86
106
  onDrop: PropTypes.Requireable<(...args: any[]) => any>;
87
107
  isDraggable: PropTypes.Requireable<boolean>;
108
+ tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
88
109
  }> | PropTypes.InferProps<{
89
110
  type: PropTypes.Requireable<string>;
90
111
  columns: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -94,6 +115,7 @@ declare namespace ListItems {
94
115
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
95
116
  type: PropTypes.Requireable<string>;
96
117
  current: PropTypes.Requireable<boolean>;
118
+ selected: PropTypes.Requireable<boolean>;
97
119
  icon: PropTypes.Requireable<string>;
98
120
  value: PropTypes.Requireable<string>;
99
121
  }> | null | undefined> | null | undefined)[]>;
@@ -156,6 +178,8 @@ declare namespace ListItems {
156
178
  isBulkMenu: PropTypes.Requireable<boolean>;
157
179
  }> | null | undefined>>;
158
180
  isNestedTable: PropTypes.Requireable<boolean>;
181
+ emptyStateFirstMessage: PropTypes.Requireable<string>;
182
+ emptyStateSecondMessage: PropTypes.Requireable<string>;
159
183
  }> | null | undefined>>;
160
184
  title: PropTypes.Requireable<string>;
161
185
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AA8CA;;;;;;gBAwBC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-items/index.js"],"names":[],"mappings":";AAoEA;;;;;;gBAwBC"}
@@ -7,6 +7,10 @@ var _react = _interopRequireDefault(require("react"));
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
+ var _isNil = _interopRequireDefault(require("lodash/fp/isNil"));
11
+
12
+ var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
13
+
10
14
  var _listItem = _interopRequireDefault(require("../list-item"));
11
15
 
12
16
  var _draggableList = _interopRequireDefault(require("../../molecule/draggable-list"));
@@ -30,7 +34,8 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
30
34
  items,
31
35
  itemType,
32
36
  onDrop,
33
- isDraggable = false
37
+ isDraggable = false,
38
+ tableHeader
34
39
  } = content;
35
40
  const itemsView = isDraggable && items.length > 1 ? /*#__PURE__*/_react.default.createElement(_draggableList.default, {
36
41
  items: items.map(item => _extends({}, item, {
@@ -46,11 +51,22 @@ const buildListItemsView = (content, ariaLabel, selectMultiple) => {
46
51
  order: null,
47
52
  contentType: itemType
48
53
  }))));
49
- return /*#__PURE__*/_react.default.createElement("ul", {
54
+ const tableHeaderView = !(0, _isNil.default)(tableHeader) && !(0, _isEmpty.default)(tableHeader) ? /*#__PURE__*/_react.default.createElement("div", {
55
+ className: _style.default.tableHeaderWrapper
56
+ }, /*#__PURE__*/_react.default.createElement("div", {
57
+ className: _style.default.dataColumnsWrapper
58
+ }, tableHeader.map((tableHeaderItem, index) => /*#__PURE__*/_react.default.createElement("div", {
59
+ key: `tableHeadeColumn-key-${index}`,
60
+ className: _style.default.tableHeaderItem,
61
+ "data-name": `tableHeader-${index}`
62
+ }, tableHeaderItem))), /*#__PURE__*/_react.default.createElement("div", {
63
+ className: _style.default.settings
64
+ }, '')) : null;
65
+ return /*#__PURE__*/_react.default.createElement("div", null, tableHeaderView, /*#__PURE__*/_react.default.createElement("ul", {
50
66
  className: !selectMultiple ? _style.default.list : _style.default.listWithSelectMultiple,
51
67
  "aria-label": ariaLabel,
52
68
  "data-name": 'content-list'
53
- }, itemsView);
69
+ }, itemsView));
54
70
  };
55
71
 
56
72
  const buildContentView = (content, ariaLabel, selectMultiple) => {
@@ -101,7 +117,8 @@ ListItems.propTypes = process.env.NODE_ENV !== "production" ? {
101
117
  type: _propTypes.default.oneOf(['list']),
102
118
  itemType: _propTypes.default.string,
103
119
  onDrop: _propTypes.default.func,
104
- isDraggable: _propTypes.default.bool
120
+ isDraggable: _propTypes.default.bool,
121
+ tableHeader: _propTypes.default.arrayOf(_propTypes.default.string)
105
122
  }), _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, {
106
123
  type: _propTypes.default.oneOf(['expandible-actionable-table'])
107
124
  }))]),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","itemsView","length","map","item","contentType","index","id","style","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","oneOfType","arrayOf","ListItem","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n return (\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n isDraggable: PropTypes.bool\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;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US,IAJJ;IAKd9B,WAAW,EAAEqB,kBAAA,CAAUU;EALT,CAAhB,CAD2B,EAQ3BV,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEER,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAR2B,CAApB,CAJW;EAiBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAjBG,CAAtB;eAoBeT,S"}
1
+ {"version":3,"file":"index.js","names":["buildListItemsView","content","ariaLabel","selectMultiple","items","itemType","onDrop","isDraggable","tableHeader","itemsView","length","map","item","contentType","index","id","style","tableHeaderView","isNil","isEmpty","tableHeaderWrapper","dataColumnsWrapper","tableHeaderItem","settings","list","listWithSelectMultiple","buildContentView","type","ListItems","title","buttonLink","contentView","header","actionsWrapper","buttonCreate","propTypes","PropTypes","string","shape","ButtonLink","SelectMultiple","oneOfType","arrayOf","ListItem","oneOf","func","bool","ExpandibleActionableTable"],"sources":["../../../src/organism/list-items/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport isNil from 'lodash/fp/isNil';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport ListItem from '../list-item';\nimport DraggableList from '../../molecule/draggable-list';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport ExpandibleActionableTable from '../../molecule/expandible-actionable-table';\nimport style from './style.css';\n\nconst buildListItemsView = (content, ariaLabel, selectMultiple) => {\n const {items, itemType, onDrop, isDraggable = false, tableHeader} = content;\n const itemsView =\n isDraggable && items.length > 1 ? (\n <DraggableList\n items={items.map(item => ({...item, contentType: itemType}))}\n itemType=\"list-item\"\n onDrop={onDrop}\n />\n ) : (\n items.map((item, index) => (\n <li key={item.id} className={style.item} data-name={`content-${index}`}>\n <ListItem {...item} order={null} contentType={itemType} />\n </li>\n ))\n );\n const tableHeaderView =\n !isNil(tableHeader) && !isEmpty(tableHeader) ? (\n <div className={style.tableHeaderWrapper}>\n <div className={style.dataColumnsWrapper}>\n {tableHeader.map((tableHeaderItem, index) => (\n <div\n key={`tableHeadeColumn-key-${index}`}\n className={style.tableHeaderItem}\n data-name={`tableHeader-${index}`}\n >\n {tableHeaderItem}\n </div>\n ))}\n </div>\n <div className={style.settings}>{''}</div>\n </div>\n ) : null;\n return (\n <div>\n {tableHeaderView}\n <ul\n className={!selectMultiple ? style.list : style.listWithSelectMultiple}\n aria-label={ariaLabel}\n data-name={'content-list'}\n >\n {itemsView}\n </ul>\n </div>\n );\n};\nconst buildContentView = (content, ariaLabel, selectMultiple) => {\n const {type} = content;\n switch (type) {\n case 'list':\n return buildListItemsView(content, ariaLabel, selectMultiple);\n case 'expandible-actionable-table':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst ListItems = ({title, buttonLink, selectMultiple, content, 'aria-label': ariaLabel}) => {\n const contentView = buildContentView(content, ariaLabel, selectMultiple);\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} data-name={'list-title'} />\n </div>\n <div className={style.actionsWrapper}>\n {selectMultiple ? (\n <div className={style.selectMultiple}>\n <SelectMultiple {...selectMultiple} />\n </div>\n ) : null}\n\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n </div>\n {contentView}\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n selectMultiple: PropTypes.shape(SelectMultiple.propTypes),\n content: PropTypes.oneOfType([\n PropTypes.shape({\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n type: PropTypes.oneOf(['list']),\n itemType: PropTypes.string,\n onDrop: PropTypes.func,\n isDraggable: PropTypes.bool,\n tableHeader: PropTypes.arrayOf(PropTypes.string)\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n type: PropTypes.oneOf(['expandible-actionable-table'])\n })\n ]),\n title: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AD,EAAgBJ,UAAhB,CADF,CAPF,CAJF,CADF,EAiBGC,WAjBH,CADF;AAqBD,CAxBD;;AA0BAH,SAAS,CAACO,SAAV,2CAAsB;EACpB,cAAcC,kBAAA,CAAUC,MADJ;EAEpBP,UAAU,EAAEM,kBAAA,CAAUE,KAAV,CAAgBC,mBAAA,CAAWJ,SAA3B,CAFQ;EAGpBhC,cAAc,EAAEiC,kBAAA,CAAUE,KAAV,CAAgBE,uBAAA,CAAeL,SAA/B,CAHI;EAIpBlC,OAAO,EAAEmC,kBAAA,CAAUK,SAAV,CAAoB,CAC3BL,kBAAA,CAAUE,KAAV,CAAgB;IACdlC,KAAK,EAAEgC,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUE,KAAV,CAAgBK,iBAAA,CAASR,SAAzB,CAAlB,CADO;IAEdR,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,MAAD,CAAhB,CAFQ;IAGdvC,QAAQ,EAAE+B,kBAAA,CAAUC,MAHN;IAId/B,MAAM,EAAE8B,kBAAA,CAAUS,IAJJ;IAKdtC,WAAW,EAAE6B,kBAAA,CAAUU,IALT;IAMdtC,WAAW,EAAE4B,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUC,MAA5B;EANC,CAAhB,CAD2B,EAS3BD,kBAAA,CAAUE,KAAV,cACKS,kCAAA,CAA0BZ,SAD/B;IAEER,IAAI,EAAES,kBAAA,CAAUQ,KAAV,CAAgB,CAAC,6BAAD,CAAhB;EAFR,GAT2B,CAApB,CAJW;EAkBpBf,KAAK,EAAEO,kBAAA,CAAUC;AAlBG,CAAtB;eAqBeT,S"}
@@ -3,6 +3,7 @@
3
3
  @value colors: "../../variables/colors.css";
4
4
  @value medium from colors;
5
5
  @value xtraLightGrey from colors;
6
+ @value cm_grey_400 from colors;
6
7
  @value dark from colors;
7
8
 
8
9
  .header {
@@ -53,4 +54,45 @@
53
54
  margin: 0;
54
55
  padding: 0;
55
56
  min-height: 200px;
57
+ }
58
+
59
+ .tableHeaderWrapper {
60
+ display: grid;
61
+ grid-template-columns: 70% auto;
62
+ padding: 8px 16px;
63
+ align-items: center;
64
+ gap: 24px;
65
+ border-radius: 7px;
66
+ padding: 8px 16px;
67
+ }
68
+
69
+
70
+ .tableHeaderItem {
71
+ display: flex;
72
+ gap: 16px;
73
+ flex: 1 0 0;
74
+ overflow: hidden;
75
+ align-items: flex-start;
76
+ gap: 8px;
77
+ flex-shrink: 0;
78
+ color: var(--font-font-color-tertiary, #9999A8);
79
+ text-overflow: ellipsis;
80
+ font-family: Gilroy;
81
+ font-size: 14px;
82
+ font-style: normal;
83
+ font-weight: 600;
84
+ line-height: 20px;
85
+ }
86
+
87
+ .dataColumnsWrapper {
88
+ align-items: center;
89
+ display: flex;
90
+ width: 100%;
91
+ margin-left: 24px;
92
+ }
93
+
94
+ .settings {
95
+ align-items: center;
96
+ display: flex;
97
+ height: 100%;
56
98
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,6BAIE;IAEF,6BAIE;IAEF,6BAucC;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/mooc-header/index.js"],"names":[],"mappings":";AAyBA;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FE;IAEF;;;;;;;;;;;;;;;;;;;;;;;MAGE;IAEF,wBAwBC;IAtBC;;;;;;MAMC;IAgDH,6BAIC;IAED,yBAGC;IAxBD,qCAQC;IAED,wBAGC;IAjBD,+BAEC;IA4BD,2BAKC;IAED,0BAKC;IAED,sBAIC;IAED,qBAIC;IAED,yBAQC;IAED,0BAQC;IAED,0BAIC;IAED,2BAIC;IAED,iCAUC;IA7GD,2EASC;IAGC,kBAAsB;IAmGxB,6BAIE;IAEF,6BAIE;IAEF,6BAwcC;CACF"}