@coorpacademy/components 11.42.0 → 11.42.3

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 (299) hide show
  1. package/es/atom/checkbox-with-title/index.d.ts +1 -0
  2. package/es/atom/checkbox-with-title/index.d.ts.map +1 -1
  3. package/es/atom/checkbox-with-title/index.js +6 -3
  4. package/es/atom/checkbox-with-title/index.js.map +1 -1
  5. package/es/atom/radio-group/index.d.ts +13 -7
  6. package/es/atom/radio-group/index.d.ts.map +1 -1
  7. package/es/atom/radio-group/index.js +51 -0
  8. package/es/atom/radio-group/index.js.map +1 -1
  9. package/es/atom/radio-group/style.css +37 -0
  10. package/es/atom/radio-with-title/index.d.ts +3 -0
  11. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  12. package/es/atom/radio-with-title/index.js +23 -5
  13. package/es/atom/radio-with-title/index.js.map +1 -1
  14. package/es/atom/radio-with-title/style.css +27 -0
  15. package/es/atom/radio-with-title/types.d.ts +6 -0
  16. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  17. package/es/atom/radio-with-title/types.js +3 -0
  18. package/es/atom/radio-with-title/types.js.map +1 -1
  19. package/es/index.d.ts +1 -0
  20. package/es/index.js +1 -0
  21. package/es/index.js.map +1 -1
  22. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  23. package/es/molecule/cm-popin/index.js +20 -3
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +17 -0
  26. package/es/molecule/cm-popin/types.d.ts +36 -0
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +3 -0
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/draggable-list/index.d.ts +12 -0
  31. package/es/molecule/progress-bar/index.d.ts +16 -7
  32. package/es/molecule/progress-bar/index.d.ts.map +1 -1
  33. package/es/molecule/progress-bar/index.js +61 -4
  34. package/es/molecule/progress-bar/index.js.map +1 -1
  35. package/es/molecule/progress-bar/style.css +56 -0
  36. package/es/molecule/setup-section/index.d.ts +6 -0
  37. package/es/molecule/setup-sections/index.d.ts +6 -0
  38. package/es/molecule/table/index.d.ts +8 -0
  39. package/es/molecule/table/index.d.ts.map +1 -1
  40. package/es/molecule/table/index.js +43 -5
  41. package/es/molecule/table/index.js.map +1 -1
  42. package/es/molecule/table/style.css +24 -0
  43. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  44. package/es/molecule/title-radio-wrapper/index.d.ts +3 -0
  45. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  46. package/es/molecule/title-radio-wrapper/types.d.ts +3 -0
  47. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  48. package/es/molecule/wizard-summary/index.d.ts +3 -0
  49. package/es/molecule/wizard-summary/index.d.ts.map +1 -1
  50. package/es/molecule/wizard-summary/index.js +35 -3
  51. package/es/molecule/wizard-summary/index.js.map +1 -1
  52. package/es/molecule/wizard-summary/style.css +54 -1
  53. package/es/organism/assignment-audience/index.d.ts +23 -11
  54. package/es/organism/assignment-audience/index.d.ts.map +1 -1
  55. package/es/organism/assignment-audience/index.js +100 -59
  56. package/es/organism/assignment-audience/index.js.map +1 -1
  57. package/es/organism/assignment-audience/types.d.ts +39 -15
  58. package/es/organism/assignment-audience/types.d.ts.map +1 -1
  59. package/es/organism/assignment-audience/types.js +17 -5
  60. package/es/organism/assignment-audience/types.js.map +1 -1
  61. package/es/organism/brand-learning-priorities/index.d.ts +12 -0
  62. package/es/organism/brand-table/index.d.ts +8 -0
  63. package/es/organism/content-selection-list/index.d.ts +95 -0
  64. package/es/organism/content-selection-list/index.d.ts.map +1 -0
  65. package/es/organism/content-selection-list/index.js +175 -0
  66. package/es/organism/content-selection-list/index.js.map +1 -0
  67. package/es/organism/content-selection-list/style.css +8 -0
  68. package/es/organism/content-selection-list/types.d.ts +113 -0
  69. package/es/organism/content-selection-list/types.d.ts.map +1 -0
  70. package/es/organism/content-selection-list/types.js +58 -0
  71. package/es/organism/content-selection-list/types.js.map +1 -0
  72. package/es/organism/content-skill-modal/index.d.ts +7 -0
  73. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  74. package/es/organism/content-skill-modal/types.d.ts +7 -0
  75. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  76. package/es/organism/header-with-actions/index.d.ts +13 -4
  77. package/es/organism/header-with-actions/index.d.ts.map +1 -1
  78. package/es/organism/header-with-actions/index.js +31 -6
  79. package/es/organism/header-with-actions/index.js.map +1 -1
  80. package/es/organism/header-with-actions/style.css +42 -0
  81. package/es/organism/header-with-actions/types.d.ts +24 -6
  82. package/es/organism/header-with-actions/types.d.ts.map +1 -1
  83. package/es/organism/header-with-actions/types.js +7 -2
  84. package/es/organism/header-with-actions/types.js.map +1 -1
  85. package/es/organism/list-item/index.d.ts +9 -1
  86. package/es/organism/list-item/index.d.ts.map +1 -1
  87. package/es/organism/list-item/index.js +16 -3
  88. package/es/organism/list-item/index.js.map +1 -1
  89. package/es/organism/list-item/style.css +15 -0
  90. package/es/organism/list-items/index.d.ts +7 -0
  91. package/es/organism/rewards-form/index.d.ts +1 -0
  92. package/es/organism/select-opponents/index.d.ts +1 -0
  93. package/es/organism/select-opponents/index.d.ts.map +1 -1
  94. package/es/organism/select-opponents/types.d.ts +1 -0
  95. package/es/organism/select-opponents/types.d.ts.map +1 -1
  96. package/es/organism/skill-edition/index.d.ts +8 -3
  97. package/es/organism/skill-edition/index.d.ts.map +1 -1
  98. package/es/organism/skill-edition/index.js +3 -168
  99. package/es/organism/skill-edition/index.js.map +1 -1
  100. package/es/organism/skill-edition/styles.d.ts +10 -0
  101. package/es/organism/skill-edition/styles.d.ts.map +1 -0
  102. package/es/organism/skill-edition/styles.js +10 -0
  103. package/es/organism/skill-edition/styles.js.map +1 -0
  104. package/es/organism/skill-edition/types.d.ts +10 -54
  105. package/es/organism/skill-edition/types.d.ts.map +1 -1
  106. package/es/organism/skill-edition/types.js +3 -52
  107. package/es/organism/skill-edition/types.js.map +1 -1
  108. package/es/organism/title-and-input/index.d.ts +1 -0
  109. package/es/organism/title-and-input/index.d.ts.map +1 -1
  110. package/es/organism/title-and-input/types.d.ts +1 -0
  111. package/es/organism/title-and-input/types.d.ts.map +1 -1
  112. package/es/organism/wizard-contents/index.d.ts +4 -0
  113. package/es/template/app-player/loading/index.d.ts +33 -0
  114. package/es/template/app-player/player/index.d.ts +66 -0
  115. package/es/template/app-player/player/slides/index.d.ts +33 -0
  116. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  117. package/es/template/app-player/popin-correction/index.d.ts +33 -0
  118. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  119. package/es/template/app-player/popin-end/index.d.ts +33 -0
  120. package/es/template/app-review/index.d.ts +33 -0
  121. package/es/template/app-review/index.d.ts.map +1 -1
  122. package/es/template/app-review/player/prop-types.d.ts +33 -0
  123. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  124. package/es/template/app-review/prop-types.d.ts +33 -0
  125. package/es/template/app-review/prop-types.d.ts.map +1 -1
  126. package/es/template/back-office/brand-update/index.d.ts +120 -7
  127. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  128. package/es/template/back-office/brand-update/index.js +19 -4
  129. package/es/template/back-office/brand-update/index.js.map +1 -1
  130. package/es/template/back-office/brand-update/style.css +18 -0
  131. package/es/template/certification-detail/index.d.ts +33 -0
  132. package/es/template/common/dashboard/index.d.ts +66 -0
  133. package/es/template/common/search-page/index.d.ts +33 -0
  134. package/es/template/external-course/index.d.ts +33 -0
  135. package/es/template/playlist-detail/index.d.ts +33 -0
  136. package/lib/atom/checkbox-with-title/index.d.ts +1 -0
  137. package/lib/atom/checkbox-with-title/index.d.ts.map +1 -1
  138. package/lib/atom/checkbox-with-title/index.js +6 -3
  139. package/lib/atom/checkbox-with-title/index.js.map +1 -1
  140. package/lib/atom/radio-group/index.d.ts +13 -7
  141. package/lib/atom/radio-group/index.d.ts.map +1 -1
  142. package/lib/atom/radio-group/index.js +51 -0
  143. package/lib/atom/radio-group/index.js.map +1 -1
  144. package/lib/atom/radio-group/style.css +37 -0
  145. package/lib/atom/radio-with-title/index.d.ts +3 -0
  146. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  147. package/lib/atom/radio-with-title/index.js +23 -5
  148. package/lib/atom/radio-with-title/index.js.map +1 -1
  149. package/lib/atom/radio-with-title/style.css +27 -0
  150. package/lib/atom/radio-with-title/types.d.ts +6 -0
  151. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  152. package/lib/atom/radio-with-title/types.js +3 -0
  153. package/lib/atom/radio-with-title/types.js.map +1 -1
  154. package/lib/index.d.ts +1 -0
  155. package/lib/index.js +3 -0
  156. package/lib/index.js.map +1 -1
  157. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  158. package/lib/molecule/cm-popin/index.js +20 -3
  159. package/lib/molecule/cm-popin/index.js.map +1 -1
  160. package/lib/molecule/cm-popin/style.css +17 -0
  161. package/lib/molecule/cm-popin/types.d.ts +36 -0
  162. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  163. package/lib/molecule/cm-popin/types.js +3 -0
  164. package/lib/molecule/cm-popin/types.js.map +1 -1
  165. package/lib/molecule/draggable-list/index.d.ts +12 -0
  166. package/lib/molecule/progress-bar/index.d.ts +16 -7
  167. package/lib/molecule/progress-bar/index.d.ts.map +1 -1
  168. package/lib/molecule/progress-bar/index.js +61 -4
  169. package/lib/molecule/progress-bar/index.js.map +1 -1
  170. package/lib/molecule/progress-bar/style.css +56 -0
  171. package/lib/molecule/setup-section/index.d.ts +6 -0
  172. package/lib/molecule/setup-sections/index.d.ts +6 -0
  173. package/lib/molecule/table/index.d.ts +8 -0
  174. package/lib/molecule/table/index.d.ts.map +1 -1
  175. package/lib/molecule/table/index.js +43 -5
  176. package/lib/molecule/table/index.js.map +1 -1
  177. package/lib/molecule/table/style.css +24 -0
  178. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
  179. package/lib/molecule/title-radio-wrapper/index.d.ts +3 -0
  180. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  181. package/lib/molecule/title-radio-wrapper/types.d.ts +3 -0
  182. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  183. package/lib/molecule/wizard-summary/index.d.ts +3 -0
  184. package/lib/molecule/wizard-summary/index.d.ts.map +1 -1
  185. package/lib/molecule/wizard-summary/index.js +35 -3
  186. package/lib/molecule/wizard-summary/index.js.map +1 -1
  187. package/lib/molecule/wizard-summary/style.css +54 -1
  188. package/lib/organism/assignment-audience/index.d.ts +23 -11
  189. package/lib/organism/assignment-audience/index.d.ts.map +1 -1
  190. package/lib/organism/assignment-audience/index.js +100 -59
  191. package/lib/organism/assignment-audience/index.js.map +1 -1
  192. package/lib/organism/assignment-audience/types.d.ts +39 -15
  193. package/lib/organism/assignment-audience/types.d.ts.map +1 -1
  194. package/lib/organism/assignment-audience/types.js +17 -5
  195. package/lib/organism/assignment-audience/types.js.map +1 -1
  196. package/lib/organism/brand-learning-priorities/index.d.ts +12 -0
  197. package/lib/organism/brand-table/index.d.ts +8 -0
  198. package/lib/organism/content-selection-list/index.d.ts +95 -0
  199. package/lib/organism/content-selection-list/index.d.ts.map +1 -0
  200. package/lib/organism/content-selection-list/index.js +181 -0
  201. package/lib/organism/content-selection-list/index.js.map +1 -0
  202. package/lib/organism/content-selection-list/style.css +8 -0
  203. package/lib/organism/content-selection-list/types.d.ts +113 -0
  204. package/lib/organism/content-selection-list/types.d.ts.map +1 -0
  205. package/lib/organism/content-selection-list/types.js +63 -0
  206. package/lib/organism/content-selection-list/types.js.map +1 -0
  207. package/lib/organism/content-skill-modal/index.d.ts +7 -0
  208. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  209. package/lib/organism/content-skill-modal/types.d.ts +7 -0
  210. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  211. package/lib/organism/header-with-actions/index.d.ts +13 -4
  212. package/lib/organism/header-with-actions/index.d.ts.map +1 -1
  213. package/lib/organism/header-with-actions/index.js +31 -6
  214. package/lib/organism/header-with-actions/index.js.map +1 -1
  215. package/lib/organism/header-with-actions/style.css +42 -0
  216. package/lib/organism/header-with-actions/types.d.ts +24 -6
  217. package/lib/organism/header-with-actions/types.d.ts.map +1 -1
  218. package/lib/organism/header-with-actions/types.js +7 -2
  219. package/lib/organism/header-with-actions/types.js.map +1 -1
  220. package/lib/organism/list-item/index.d.ts +9 -1
  221. package/lib/organism/list-item/index.d.ts.map +1 -1
  222. package/lib/organism/list-item/index.js +16 -3
  223. package/lib/organism/list-item/index.js.map +1 -1
  224. package/lib/organism/list-item/style.css +15 -0
  225. package/lib/organism/list-items/index.d.ts +7 -0
  226. package/lib/organism/rewards-form/index.d.ts +1 -0
  227. package/lib/organism/select-opponents/index.d.ts +1 -0
  228. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  229. package/lib/organism/select-opponents/types.d.ts +1 -0
  230. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  231. package/lib/organism/skill-edition/index.d.ts +8 -3
  232. package/lib/organism/skill-edition/index.d.ts.map +1 -1
  233. package/lib/organism/skill-edition/index.js +11 -174
  234. package/lib/organism/skill-edition/index.js.map +1 -1
  235. package/lib/organism/skill-edition/styles.d.ts +10 -0
  236. package/lib/organism/skill-edition/styles.d.ts.map +1 -0
  237. package/lib/organism/skill-edition/styles.js +15 -0
  238. package/lib/organism/skill-edition/styles.js.map +1 -0
  239. package/lib/organism/skill-edition/types.d.ts +10 -54
  240. package/lib/organism/skill-edition/types.d.ts.map +1 -1
  241. package/lib/organism/skill-edition/types.js +6 -53
  242. package/lib/organism/skill-edition/types.js.map +1 -1
  243. package/lib/organism/title-and-input/index.d.ts +1 -0
  244. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  245. package/lib/organism/title-and-input/types.d.ts +1 -0
  246. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  247. package/lib/organism/wizard-contents/index.d.ts +4 -0
  248. package/lib/template/app-player/loading/index.d.ts +33 -0
  249. package/lib/template/app-player/player/index.d.ts +66 -0
  250. package/lib/template/app-player/player/slides/index.d.ts +33 -0
  251. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  252. package/lib/template/app-player/popin-correction/index.d.ts +33 -0
  253. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  254. package/lib/template/app-player/popin-end/index.d.ts +33 -0
  255. package/lib/template/app-review/index.d.ts +33 -0
  256. package/lib/template/app-review/index.d.ts.map +1 -1
  257. package/lib/template/app-review/player/prop-types.d.ts +33 -0
  258. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  259. package/lib/template/app-review/prop-types.d.ts +33 -0
  260. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  261. package/lib/template/back-office/brand-update/index.d.ts +120 -7
  262. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  263. package/lib/template/back-office/brand-update/index.js +19 -4
  264. package/lib/template/back-office/brand-update/index.js.map +1 -1
  265. package/lib/template/back-office/brand-update/style.css +18 -0
  266. package/lib/template/certification-detail/index.d.ts +33 -0
  267. package/lib/template/common/dashboard/index.d.ts +66 -0
  268. package/lib/template/common/search-page/index.d.ts +33 -0
  269. package/lib/template/external-course/index.d.ts +33 -0
  270. package/lib/template/playlist-detail/index.d.ts +33 -0
  271. package/locales/bs/global.json +2 -2
  272. package/locales/cs/global.json +2 -2
  273. package/locales/de/global.json +2 -2
  274. package/locales/es/global.json +2 -2
  275. package/locales/et/global.json +2 -2
  276. package/locales/fi/global.json +2 -2
  277. package/locales/fr/global.json +2 -2
  278. package/locales/hr/global.json +2 -2
  279. package/locales/hu/global.json +2 -2
  280. package/locales/hy/global.json +2 -2
  281. package/locales/it/global.json +2 -2
  282. package/locales/ja/global.json +2 -2
  283. package/locales/ko/global.json +2 -2
  284. package/locales/lt/global.json +2 -2
  285. package/locales/nl/global.json +2 -2
  286. package/locales/pl/global.json +2 -2
  287. package/locales/pt/global.json +2 -2
  288. package/locales/ro/global.json +2 -2
  289. package/locales/ru/global.json +2 -2
  290. package/locales/sk/global.json +2 -2
  291. package/locales/sl/global.json +2 -2
  292. package/locales/sv/global.json +2 -2
  293. package/locales/tl/global.json +2 -2
  294. package/locales/tr/global.json +2 -2
  295. package/locales/uk/global.json +2 -2
  296. package/locales/vi/global.json +2 -2
  297. package/locales/zh/global.json +2 -2
  298. package/locales/zh_TW/global.json +2 -2
  299. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","STATUSES","exports","labelsByStatus","PropTypes","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","everyone","value","bool","onChange","populations","options","arrayOf","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","error","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","total","_default"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({name: PropTypes.string, detail: PropTypes.string});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }).isRequired,\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }).isRequired,\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }).isRequired,\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }).isRequired,\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n }).isRequired\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n everyone: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n total: {label: string; detail?: string};\n};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AACb,WAAW,CAAC;IAC3Cc,QAAQ,EAAEnC,kBAAS,CAACkC,OAAO,CAACb,WAAW,CAAC;IACxC;IACAF,WAAW,EAAEnB,kBAAS,CAACG,MAAM;IAC7B;IACAsD,QAAQ,EAAEzD,kBAAS,CAACkB,IAAI,CAACF,UAAU;IACnC;IACA0C,KAAK,EAAE1D,kBAAS,CAACkB,IAAI,CAACF,UAAU;IAChC;IACAI,QAAQ,EAAEpB,kBAAS,CAACkB,IAAI,CAACF;EAC3B,CAAC,CAAC,CAACA,UAAU;EACb2C,KAAK,EAAE3D,kBAAS,CAACC,KAAK,CAAC;IACrBc,KAAK,EAAEf,kBAAS,CAACG,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAET,kBAAS,CAACG;EACpB,CAAC,CAAC,CAACa;AACL,CAAC;AAAC,IAAA4C,QAAA,GAAA9D,OAAA,CAAAF,OAAA,GAEa4B,2BAA2B","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","STATUSES","exports","labelsByStatus","PropTypes","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","team","invalidTargets","arrayOf","ref","invalidLabel","error","disabled","bool","everyone","value","onChange","populations","options","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","total","_default"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({\n name: PropTypes.string,\n detail: PropTypes.string\n});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n team: PropTypes.shape({\n label: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired\n }),\n invalidTargets: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onRemove: PropTypes.func.isRequired\n })\n ),\n invalidLabel: PropTypes.string,\n error: PropTypes.string,\n disabled: PropTypes.bool,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }),\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }),\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }),\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }),\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n })\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n team?: {label: string; name: string};\n invalidTargets?: Array<{ref: string; label: string; onRemove: () => void}>;\n invalidLabel?: string;\n error?: string;\n disabled?: boolean;\n everyone?: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations?: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload?: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals?: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n total?: {label: string; detail?: string};\n};\n\nexport type AssignmentAudiencePropsFixture = {props: AssignmentAudienceProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnC;AACA;AACO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAG9E,MAAME,cAAc,GAAGC,kBAAS,CAACC,KAAK,CAAC;EACrCC,KAAK,EAAEF,kBAAS,CAACG,MAAM;EACvBC,OAAO,EAAEJ,kBAAS,CAACG,MAAM;EACzBE,SAAS,EAAEL,kBAAS,CAACG,MAAM;EAC3BG,QAAQ,EAAEN,kBAAS,CAACG;AACtB,CAAC,CAAC;AAEF,MAAMI,QAAQ,GAAGP,kBAAS,CAACC,KAAK,CAAC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AAW,EAAEnB,kBAAS,CAACG,MAAM;IAC7B;IACA2D,QAAQ,EAAE9D,kBAAS,CAACkB,IAAI,CAACF,UAAU;IACnC;IACA+C,KAAK,EAAE/D,kBAAS,CAACkB,IAAI,CAACF,UAAU;IAChC;IACAI,QAAQ,EAAEpB,kBAAS,CAACkB,IAAI,CAACF;EAC3B,CAAC,CAAC;EACFgD,KAAK,EAAEhE,kBAAS,CAACC,KAAK,CAAC;IACrBc,KAAK,EAAEf,kBAAS,CAACG,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAET,kBAAS,CAACG;EACpB,CAAC;AACH,CAAC;AAAC,IAAA8D,QAAA,GAAAnE,OAAA,CAAAF,OAAA,GAEa4B,2BAA2B","ignoreList":[]}
@@ -85,6 +85,11 @@ declare namespace BrandLearningPriorities {
85
85
  size: PropTypes.Requireable<number>;
86
86
  wrapperSize: PropTypes.Requireable<number>;
87
87
  }>>;
88
+ imageOverlay: PropTypes.Requireable<string>;
89
+ contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
90
+ category: PropTypes.Requireable<string>;
91
+ label: PropTypes.Requireable<string>;
92
+ }>>;
88
93
  image: PropTypes.Requireable<string>;
89
94
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
90
95
  value: PropTypes.Requireable<string>;
@@ -102,6 +107,7 @@ declare namespace BrandLearningPriorities {
102
107
  customStyle: PropTypes.Requireable<{
103
108
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
104
109
  }>;
110
+ className: PropTypes.Requireable<string>;
105
111
  }>>;
106
112
  }> | PropTypes.InferProps<{
107
113
  title: PropTypes.Validator<string>;
@@ -130,6 +136,12 @@ declare namespace BrandLearningPriorities {
130
136
  color: PropTypes.Requireable<string>;
131
137
  theme: PropTypes.Requireable<string>;
132
138
  className: PropTypes.Requireable<string>;
139
+ options: PropTypes.Requireable<(PropTypes.InferProps<{
140
+ label: PropTypes.Validator<string>;
141
+ value: PropTypes.Validator<string>;
142
+ }> | null | undefined)[]>;
143
+ value: PropTypes.Requireable<string>;
144
+ 'aria-label': PropTypes.Requireable<string>;
133
145
  list: PropTypes.Requireable<(PropTypes.InferProps<{
134
146
  color: PropTypes.Requireable<string>;
135
147
  value: PropTypes.Validator<string>;
@@ -26,6 +26,12 @@ declare namespace BrandTable {
26
26
  const rows: PropTypes.Requireable<(PropTypes.InferProps<{
27
27
  fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
28
28
  icon: PropTypes.Requireable<string>;
29
+ title: PropTypes.Requireable<string>;
30
+ text: PropTypes.Requireable<string>;
31
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
32
+ status: PropTypes.Requireable<string>;
33
+ label: PropTypes.Validator<string>;
34
+ }> | null | undefined)[]>;
29
35
  }> | null | undefined> | null | undefined)[]>;
30
36
  editHref: PropTypes.Requireable<string>;
31
37
  highlighted: PropTypes.Requireable<boolean>;
@@ -34,6 +40,8 @@ declare namespace BrandTable {
34
40
  title: PropTypes.Validator<string>;
35
41
  info: PropTypes.Requireable<string>;
36
42
  filtered: PropTypes.Requireable<boolean>;
43
+ order: PropTypes.Requireable<string>;
44
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
37
45
  options: PropTypes.Requireable<(PropTypes.InferProps<{
38
46
  title: PropTypes.Validator<string>;
39
47
  onChange: PropTypes.Validator<(...args: any[]) => any>;
@@ -0,0 +1,95 @@
1
+ /// <reference types="react" />
2
+ import { ContentPropsType } from './types';
3
+ export declare const buildButtonProps: (button: {
4
+ label: string;
5
+ onClick?: () => void;
6
+ disabled?: boolean;
7
+ }) => {
8
+ type: string;
9
+ 'aria-label': string;
10
+ 'data-name': string;
11
+ hoverBackgroundColor: "#D6E6FF";
12
+ hoverColor: "#0061FF";
13
+ icon: {
14
+ position: string;
15
+ faIcon: {
16
+ name: string;
17
+ color: "#0061FF";
18
+ size: number;
19
+ customStyle: {
20
+ padding: number;
21
+ };
22
+ };
23
+ };
24
+ customStyle: {
25
+ width: string;
26
+ backgroundColor: "#f1f6fe";
27
+ color: "#0061FF";
28
+ borderRadius: string;
29
+ fontWeight: number;
30
+ };
31
+ label: string;
32
+ onClick?: (() => void) | undefined;
33
+ disabled?: boolean | undefined;
34
+ };
35
+ declare const ContentSelectionList: {
36
+ ({ title, subtitle, button, list: { title: listTitle, items, search, emptyResult }, actionButtons, checkboxWithTitle: checkboxWithTitleProps, readOnly, isFetching, error, hiddenLabel }: ContentPropsType): JSX.Element;
37
+ propTypes: {
38
+ title: import("prop-types").Validator<string>;
39
+ subtitle: import("prop-types").Requireable<string>;
40
+ button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
41
+ label: import("prop-types").Validator<string>;
42
+ onClick: import("prop-types").Validator<(...args: any[]) => any>;
43
+ }>>>;
44
+ list: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
45
+ title: import("prop-types").Requireable<string>;
46
+ items: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
47
+ hidden: import("prop-types").Requireable<boolean>;
48
+ hint: import("prop-types").Requireable<string>;
49
+ ref: import("prop-types").Validator<string>;
50
+ title: import("prop-types").Validator<string>;
51
+ subtitle: import("prop-types").Validator<string>;
52
+ image: import("prop-types").Validator<string>;
53
+ tags: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
54
+ label: import("prop-types").Validator<string>;
55
+ iconName: import("prop-types").Validator<string>;
56
+ }>>>;
57
+ checkbox: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
58
+ checked: import("prop-types").Validator<boolean>;
59
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
60
+ }>>>;
61
+ deleteButton: import("prop-types").Requireable<import("prop-types").InferProps<{
62
+ label: import("prop-types").Requireable<string>;
63
+ 'aria-label': import("prop-types").Requireable<string>;
64
+ onClick: import("prop-types").Requireable<(...args: any[]) => any>;
65
+ }>>;
66
+ }>>[]>;
67
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
68
+ value: import("prop-types").Validator<string>;
69
+ placeholder: import("prop-types").Validator<string>;
70
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
71
+ }>>;
72
+ emptyResult: import("prop-types").Requireable<import("prop-types").InferProps<{
73
+ title: import("prop-types").Validator<string>;
74
+ description: import("prop-types").Validator<string>;
75
+ }>>;
76
+ checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
77
+ title: import("prop-types").Validator<string>;
78
+ checked: import("prop-types").Validator<boolean>;
79
+ onChange: import("prop-types").Validator<(...args: any[]) => any>;
80
+ }>>;
81
+ }>>>;
82
+ error: import("prop-types").Requireable<string>;
83
+ hiddenLabel: import("prop-types").Requireable<string>;
84
+ isFetching: import("prop-types").Requireable<boolean>;
85
+ actionButtons: import("prop-types").Requireable<(object | null | undefined)[]>;
86
+ checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
87
+ title: import("prop-types").Requireable<string>;
88
+ checked: import("prop-types").Requireable<boolean>;
89
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
90
+ }>>;
91
+ readOnly: import("prop-types").Requireable<boolean>;
92
+ };
93
+ };
94
+ export default ContentSelectionList;
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,gBAAgB,EAAqD,MAAM,SAAS,CAAC;AAE7F,eAAO,MAAM,gBAAgB,WAAY;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;;;;;;;;;;;;;;;;;;;;;;;;WAHQ,MAAM;qBACG,IAAI;;CAyBpB,CAAC;AA+DH,QAAA,MAAM,oBAAoB;8LAWvB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiElB,CAAC;AAIF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,181 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = exports.buildButtonProps = void 0;
5
+ var _map2 = _interopRequireDefault(require("lodash/fp/map"));
6
+ var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+ var _listItems = _interopRequireDefault(require("../list-items"));
10
+ var _title = _interopRequireDefault(require("../../atom/title"));
11
+ var _notification = _interopRequireDefault(require("../../atom/notification"));
12
+ var _colors = require("../../variables/colors");
13
+ var _styles = require("../skill-edition/styles");
14
+ var _style = _interopRequireDefault(require("./style.css"));
15
+ var _types = require("./types");
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
+ const buildButtonProps = button => ({
18
+ ...button,
19
+ type: 'primary',
20
+ 'aria-label': button.label,
21
+ 'data-name': `button-${button.label}`,
22
+ hoverBackgroundColor: _colors.COLORS.primary_100,
23
+ hoverColor: _colors.COLORS.cm_primary_blue,
24
+ icon: {
25
+ position: 'left',
26
+ faIcon: {
27
+ name: 'plus',
28
+ color: _colors.COLORS.cm_primary_blue,
29
+ size: 14,
30
+ customStyle: {
31
+ padding: 0
32
+ }
33
+ }
34
+ },
35
+ customStyle: {
36
+ width: 'fit-content',
37
+ backgroundColor: _colors.COLORS.cm_blue_50,
38
+ color: _colors.COLORS.cm_primary_blue,
39
+ borderRadius: '12px',
40
+ fontWeight: 600
41
+ }
42
+ });
43
+ exports.buildButtonProps = buildButtonProps;
44
+ const buildContentItem = (readOnly, hiddenLabel) => ({
45
+ ref,
46
+ title,
47
+ subtitle,
48
+ image,
49
+ tags: {
50
+ label,
51
+ iconName
52
+ },
53
+ checkbox,
54
+ deleteButton,
55
+ hidden,
56
+ hint
57
+ }) => {
58
+ return {
59
+ ...(readOnly ? {} : {
60
+ secondButtonLink: {
61
+ ...deleteButton,
62
+ 'data-name': `button-${deleteButton?.label}`,
63
+ type: 'primary',
64
+ customStyle: {
65
+ width: 'fit-content',
66
+ backgroundColor: 'transparent'
67
+ },
68
+ hoverBackgroundColor: _colors.COLORS.cm_grey_100,
69
+ icon: {
70
+ position: 'left',
71
+ faIcon: {
72
+ name: 'trash',
73
+ color: _colors.COLORS.neutral_500,
74
+ size: 16
75
+ }
76
+ }
77
+ }
78
+ }),
79
+ imageOverlay: hidden ? 'hidden' : undefined,
80
+ contentBadge: hidden ? {
81
+ category: 'hidden',
82
+ label: hiddenLabel
83
+ } : undefined,
84
+ details: hint,
85
+ id: ref,
86
+ title,
87
+ subtitle,
88
+ image,
89
+ tags: [{
90
+ label,
91
+ type: 'default',
92
+ icon: {
93
+ iconName,
94
+ preset: 's',
95
+ customStyle: {
96
+ padding: 0
97
+ },
98
+ position: 'left'
99
+ }
100
+ }],
101
+ checkbox: readOnly ? undefined : checkbox
102
+ };
103
+ };
104
+ const ContentSelectionList = ({
105
+ title,
106
+ subtitle,
107
+ button,
108
+ list: {
109
+ title: listTitle,
110
+ items,
111
+ search,
112
+ emptyResult
113
+ },
114
+ actionButtons,
115
+ checkboxWithTitle: checkboxWithTitleProps,
116
+ readOnly = false,
117
+ isFetching = false,
118
+ error,
119
+ hiddenLabel
120
+ }) => {
121
+ const buttonProps = buildButtonProps(button);
122
+ const titleProps = {
123
+ type: 'form-group',
124
+ title,
125
+ subtitle,
126
+ button: !readOnly ? buttonProps : undefined,
127
+ required: true
128
+ };
129
+ const listProps = {
130
+ title: listTitle,
131
+ 'aria-label': 'content list items',
132
+ content: {
133
+ ...(!(0, _isEmpty2.default)(emptyResult) && {
134
+ emptyResult: {
135
+ ...emptyResult,
136
+ button: buttonProps
137
+ }
138
+ }),
139
+ items: (0, _map2.default)(buildContentItem(readOnly, hiddenLabel), items),
140
+ type: 'list'
141
+ },
142
+ search: search ? {
143
+ ...search,
144
+ theme: 'coorpmanager',
145
+ // Keep search interactive even in readOnly mode
146
+ disabled: false
147
+ } : undefined,
148
+ actionButtons: readOnly ? [] : (0, _map2.default)(actionButton => ({
149
+ ...actionButton,
150
+ customStyle: {
151
+ fontWeight: '600',
152
+ borderRadius: '12px',
153
+ width: 'auto'
154
+ }
155
+ }), actionButtons),
156
+ checkboxWithTitle: readOnly ? undefined : {
157
+ ...checkboxWithTitleProps,
158
+ name: checkboxWithTitleProps?.title,
159
+ 'aria-label': checkboxWithTitleProps?.title,
160
+ 'data-name': checkboxWithTitleProps?.title,
161
+ className: _style.default.checkboxWithTitle,
162
+ icon: {
163
+ iconName: 'minus',
164
+ iconColor: 'white',
165
+ preset: 's'
166
+ }
167
+ },
168
+ isFetching
169
+ };
170
+ return /*#__PURE__*/_react.default.createElement("div", {
171
+ className: (0, _classnames.default)(_styles.contentContainer, _style.default.list)
172
+ }, /*#__PURE__*/_react.default.createElement(_title.default, titleProps), error ? /*#__PURE__*/_react.default.createElement("div", {
173
+ role: "alert"
174
+ }, /*#__PURE__*/_react.default.createElement(_notification.default, {
175
+ type: "error",
176
+ message: error
177
+ })) : null, /*#__PURE__*/_react.default.createElement(_listItems.default, listProps));
178
+ };
179
+ ContentSelectionList.propTypes = process.env.NODE_ENV !== "production" ? _types.ContentSelectionListPropTypes : {};
180
+ var _default = exports.default = ContentSelectionList;
181
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_classnames","_listItems","_title","_notification","_colors","_styles","_style","_types","e","__esModule","default","buildButtonProps","button","type","label","hoverBackgroundColor","COLORS","primary_100","hoverColor","cm_primary_blue","icon","position","faIcon","name","color","size","customStyle","padding","width","backgroundColor","cm_blue_50","borderRadius","fontWeight","exports","buildContentItem","readOnly","hiddenLabel","ref","title","subtitle","image","tags","iconName","checkbox","deleteButton","hidden","hint","secondButtonLink","cm_grey_100","neutral_500","imageOverlay","undefined","contentBadge","category","details","id","preset","ContentSelectionList","list","listTitle","items","search","emptyResult","actionButtons","checkboxWithTitle","checkboxWithTitleProps","isFetching","error","buttonProps","titleProps","required","listProps","content","_isEmpty2","_map2","theme","disabled","actionButton","className","style","iconColor","createElement","classnames","contentContainer","role","message","propTypes","process","env","NODE_ENV","ContentSelectionListPropTypes","_default"],"sources":["../../../src/organism/content-selection-list/index.tsx"],"sourcesContent":["import React from 'react';\nimport classnames from 'classnames';\nimport {isEmpty, map} from 'lodash/fp';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport Notification from '../../atom/notification';\nimport {COLORS} from '../../variables/colors';\nimport {contentContainer} from '../skill-edition/styles';\nimport style from './style.css';\nimport {ContentPropsType, ContentListItemType, ContentSelectionListPropTypes} from './types';\n\nexport const buildButtonProps = (button: {\n label: string;\n onClick?: () => void;\n disabled?: boolean;\n}) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n fontWeight: 600\n }\n});\n\nconst buildContentItem =\n (readOnly: boolean, hiddenLabel?: string) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton,\n hidden,\n hint\n }: ContentListItemType) => {\n return {\n ...(readOnly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n }),\n imageOverlay: hidden ? 'hidden' : undefined,\n contentBadge: hidden ? {category: 'hidden', label: hiddenLabel} : undefined,\n details: hint,\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox: readOnly ? undefined : checkbox\n };\n };\n\nconst ContentSelectionList = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readOnly = false,\n isFetching = false,\n error,\n hiddenLabel\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: !readOnly ? buttonProps : undefined,\n required: true\n };\n\n const listProps = {\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readOnly, hiddenLabel), items),\n type: 'list'\n },\n search: search\n ? {\n ...search,\n theme: 'coorpmanager',\n // Keep search interactive even in readOnly mode\n disabled: false\n }\n : undefined,\n actionButtons: readOnly\n ? []\n : map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n\n checkboxWithTitle: readOnly\n ? undefined\n : {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n className: style.checkboxWithTitle,\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n },\n isFetching\n };\n\n return (\n <div className={classnames(contentContainer, style.list)}>\n <Title {...titleProps} />\n {error ? (\n <div role=\"alert\">\n <Notification type=\"error\" message={error} />\n </div>\n ) : null}\n <ListItems {...listProps} />\n </div>\n );\n};\n\nContentSelectionList.propTypes = ContentSelectionListPropTypes;\n\nexport default ContentSelectionList;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;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E0C,sBAAsB,EAAE3B,KAAK;MACnC,YAAY,EAAE2B,sBAAsB,EAAE3B,KAAK;MAC3C,WAAW,EAAE2B,sBAAsB,EAAE3B,KAAK;MAC1CwC,SAAS,EAAEC,cAAK,CAACf,iBAAiB;MAClC5C,IAAI,EAAE;QAACsB,QAAQ,EAAE,OAAO;QAAEsC,SAAS,EAAE,OAAO;QAAExB,MAAM,EAAE;MAAG;IAC3D,CAAC;IACLU;EACF,CAAC;EAED,oBACErE,MAAA,CAAAa,OAAA,CAAAuE,aAAA;IAAKH,SAAS,EAAE,IAAAI,mBAAU,EAACC,wBAAgB,EAAEJ,cAAK,CAACrB,IAAI;EAAE,gBACvD7D,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAAC/E,MAAA,CAAAQ,OAAK,EAAK2D,UAAa,CAAC,EACxBF,KAAK,gBACJtE,MAAA,CAAAa,OAAA,CAAAuE,aAAA;IAAKG,IAAI,EAAC;EAAO,gBACfvF,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAAC9E,aAAA,CAAAO,OAAY;IAACG,IAAI,EAAC,OAAO;IAACwE,OAAO,EAAElB;EAAM,CAAE,CACzC,CAAC,GACJ,IAAI,eACRtE,MAAA,CAAAa,OAAA,CAAAuE,aAAA,CAAChF,UAAA,CAAAS,OAAS,EAAK6D,SAAY,CACxB,CAAC;AAEV,CAAC;AAEDd,oBAAoB,CAAC6B,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGC,oCAA6B;AAAC,IAAAC,QAAA,GAAA1D,OAAA,CAAAvB,OAAA,GAEhD+C,oBAAoB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_500 from colors;
3
+
4
+ .list .checkboxWithTitle {
5
+ font-weight: 600;
6
+ font-size: 16px;
7
+ color: cm_grey_500;
8
+ }
@@ -0,0 +1,113 @@
1
+ import PropTypes from 'prop-types';
2
+ import { ButtonLinkProps } from '../../atom/button-link/types';
3
+ export declare const ContentSelectionListPropTypes: {
4
+ title: PropTypes.Validator<string>;
5
+ subtitle: PropTypes.Requireable<string>;
6
+ button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
7
+ label: PropTypes.Validator<string>;
8
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
9
+ }>>>;
10
+ list: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
11
+ title: PropTypes.Requireable<string>;
12
+ items: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
13
+ hidden: PropTypes.Requireable<boolean>;
14
+ hint: PropTypes.Requireable<string>;
15
+ ref: PropTypes.Validator<string>;
16
+ title: PropTypes.Validator<string>;
17
+ subtitle: PropTypes.Validator<string>;
18
+ image: PropTypes.Validator<string>;
19
+ tags: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
20
+ label: PropTypes.Validator<string>;
21
+ iconName: PropTypes.Validator<string>;
22
+ }>>>;
23
+ checkbox: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
24
+ checked: PropTypes.Validator<boolean>;
25
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
26
+ }>>>;
27
+ deleteButton: PropTypes.Requireable<PropTypes.InferProps<{
28
+ label: PropTypes.Requireable<string>;
29
+ 'aria-label': PropTypes.Requireable<string>;
30
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
31
+ }>>;
32
+ }>>[]>;
33
+ search: PropTypes.Requireable<PropTypes.InferProps<{
34
+ value: PropTypes.Validator<string>;
35
+ placeholder: PropTypes.Validator<string>;
36
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
37
+ }>>;
38
+ emptyResult: PropTypes.Requireable<PropTypes.InferProps<{
39
+ title: PropTypes.Validator<string>;
40
+ description: PropTypes.Validator<string>;
41
+ }>>;
42
+ checkbox: PropTypes.Requireable<PropTypes.InferProps<{
43
+ title: PropTypes.Validator<string>;
44
+ checked: PropTypes.Validator<boolean>;
45
+ onChange: PropTypes.Validator<(...args: any[]) => any>;
46
+ }>>;
47
+ }>>>;
48
+ error: PropTypes.Requireable<string>;
49
+ hiddenLabel: PropTypes.Requireable<string>;
50
+ isFetching: PropTypes.Requireable<boolean>;
51
+ actionButtons: PropTypes.Requireable<(object | null | undefined)[]>;
52
+ checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
53
+ title: PropTypes.Requireable<string>;
54
+ checked: PropTypes.Requireable<boolean>;
55
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
56
+ }>>;
57
+ readOnly: PropTypes.Requireable<boolean>;
58
+ };
59
+ export declare type ContentListItemType = {
60
+ hidden?: boolean;
61
+ hint?: string;
62
+ ref: string;
63
+ title: string;
64
+ subtitle: string;
65
+ image: string;
66
+ tags: {
67
+ label: string;
68
+ iconName: string;
69
+ };
70
+ checkbox: {
71
+ checked: boolean;
72
+ onChange: (value: boolean) => void;
73
+ };
74
+ deleteButton?: ButtonLinkProps;
75
+ };
76
+ export declare type CheckboxWithTitleProps = {
77
+ title?: string;
78
+ checked?: boolean;
79
+ onChange?: (value: boolean) => void;
80
+ };
81
+ export declare type ContentPropsType = {
82
+ error?: string;
83
+ hiddenLabel?: string;
84
+ title: string;
85
+ subtitle?: string;
86
+ button: {
87
+ label: string;
88
+ onClick: () => void;
89
+ };
90
+ list: {
91
+ title?: string;
92
+ items?: ContentListItemType[];
93
+ search?: {
94
+ value: string;
95
+ placeholder: string;
96
+ onChange: (value: string) => void;
97
+ };
98
+ emptyResult?: {
99
+ title: string;
100
+ description: string;
101
+ };
102
+ checkbox?: {
103
+ title: string;
104
+ checked: boolean;
105
+ onChange: (value: boolean) => void;
106
+ };
107
+ };
108
+ actionButtons?: ButtonLinkProps[];
109
+ checkboxWithTitle?: CheckboxWithTitleProps;
110
+ isFetching?: boolean;
111
+ readOnly?: boolean;
112
+ };
113
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-selection-list/types.ts"],"names":[],"m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;YACP,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;YACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;SACnC,CAAC;QACF,WAAW,CAAC,EAAE;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,QAAQ,CAAC,EAAE;YACT,KAAK,EAAE,MAAM,CAAC;YACd,OAAO,EAAE,OAAO,CAAC;YACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;SACpC,CAAC;KACH,CAAC;IACF,aAAa,CAAC,EAAE,eAAe,EAAE,CAAC;IAClC,iBAAiB,CAAC,EAAE,sBAAsB,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.ContentSelectionListPropTypes = void 0;
5
+ var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
+ const ContentSelectionListPropTypes = exports.ContentSelectionListPropTypes = {
8
+ title: _propTypes.default.string.isRequired,
9
+ subtitle: _propTypes.default.string,
10
+ button: _propTypes.default.shape({
11
+ label: _propTypes.default.string.isRequired,
12
+ onClick: _propTypes.default.func.isRequired
13
+ }).isRequired,
14
+ list: _propTypes.default.shape({
15
+ title: _propTypes.default.string,
16
+ items: _propTypes.default.arrayOf(_propTypes.default.shape({
17
+ hidden: _propTypes.default.bool,
18
+ hint: _propTypes.default.string,
19
+ ref: _propTypes.default.string.isRequired,
20
+ title: _propTypes.default.string.isRequired,
21
+ subtitle: _propTypes.default.string.isRequired,
22
+ image: _propTypes.default.string.isRequired,
23
+ tags: _propTypes.default.shape({
24
+ label: _propTypes.default.string.isRequired,
25
+ iconName: _propTypes.default.string.isRequired
26
+ }).isRequired,
27
+ checkbox: _propTypes.default.shape({
28
+ checked: _propTypes.default.bool.isRequired,
29
+ onChange: _propTypes.default.func.isRequired
30
+ }).isRequired,
31
+ deleteButton: _propTypes.default.shape({
32
+ label: _propTypes.default.string,
33
+ 'aria-label': _propTypes.default.string,
34
+ onClick: _propTypes.default.func
35
+ })
36
+ }).isRequired),
37
+ search: _propTypes.default.shape({
38
+ value: _propTypes.default.string.isRequired,
39
+ placeholder: _propTypes.default.string.isRequired,
40
+ onChange: _propTypes.default.func.isRequired
41
+ }),
42
+ emptyResult: _propTypes.default.shape({
43
+ title: _propTypes.default.string.isRequired,
44
+ description: _propTypes.default.string.isRequired
45
+ }),
46
+ checkbox: _propTypes.default.shape({
47
+ title: _propTypes.default.string.isRequired,
48
+ checked: _propTypes.default.bool.isRequired,
49
+ onChange: _propTypes.default.func.isRequired
50
+ })
51
+ }).isRequired,
52
+ error: _propTypes.default.string,
53
+ hiddenLabel: _propTypes.default.string,
54
+ isFetching: _propTypes.default.bool,
55
+ actionButtons: _propTypes.default.arrayOf(_propTypes.default.object),
56
+ checkboxWithTitle: _propTypes.default.shape({
57
+ title: _propTypes.default.string,
58
+ checked: _propTypes.default.bool,
59
+ onChange: _propTypes.default.func
60
+ }),
61
+ readOnly: _propTypes.default.bool
62
+ };
63
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","ContentSelectionListPropTypes","exports","title","PropTypes","string","isRequired","subtitle","button","shape","label","onClick","func","list","items","arrayOf","hidden","bool","hint","ref","image","tags","iconName","checkbox","checked","onChange","deleteButton","search","value","placeholder","emptyResult","description","error","hiddenLabel","isFetching","actionButtons","object","checkboxWithTitle","readOnly"],"sources":["../../../src/organism/content-selection-list/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\n\nexport const ContentSelectionListPropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n button: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired,\n list: PropTypes.shape({\n title: PropTypes.string,\n items: PropTypes.arrayOf(\n PropTypes.shape({\n hidden: PropTypes.bool,\n hint: PropTypes.string,\n ref: PropTypes.string.isRequired,\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string.isRequired,\n image: PropTypes.string.isRequired,\n tags: PropTypes.shape({\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired\n }).isRequired,\n checkbox: PropTypes.shape({\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n deleteButton: PropTypes.shape({\n label: PropTypes.string,\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func\n })\n }).isRequired\n ),\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired\n }),\n emptyResult: PropTypes.shape({\n title: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired\n }),\n checkbox: PropTypes.shape({\n title: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired\n })\n }).isRequired,\n error: PropTypes.string,\n hiddenLabel: PropTypes.string,\n isFetching: PropTypes.bool,\n actionButtons: PropTypes.arrayOf(PropTypes.object),\n checkboxWithTitle: PropTypes.shape({\n title: PropTypes.string,\n checked: PropTypes.bool,\n onChange: PropTypes.func\n }),\n readOnly: PropTypes.bool\n};\n\nexport type ContentListItemType = {\n hidden?: boolean;\n hint?: string;\n ref: string;\n title: string;\n subtitle: string;\n image: string;\n tags: {\n label: string;\n iconName: string;\n };\n checkbox: {\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n deleteButton?: ButtonLinkProps;\n};\n\nexport type CheckboxWithTitleProps = {\n title?: string;\n checked?: boolean;\n onChange?: (value: boolean) => void;\n};\n\nexport type ContentPropsType = {\n error?: string;\n hiddenLabel?: string;\n title: string;\n subtitle?: string;\n button: {\n label: string;\n onClick: () => void;\n };\n list: {\n title?: string;\n items?: ContentListItemType[];\n search?: {\n value: string;\n placeholder: string;\n onChange: (value: string) => void;\n };\n emptyResult?: {\n title: string;\n description: string;\n };\n checkbox?: {\n title: string;\n checked: boolean;\n onChange: (value: boolean) => void;\n };\n };\n actionButtons?: ButtonLinkProps[];\n checkboxWithTitle?: CheckboxWithTitleProps;\n isFetching?: boolean;\n readOnly?: boolean;\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5B,MAAMG,6BAA6B,GAAAC,OAAA,CAAAD,6BAAA,GAAG;EAC3CE,KAAK,EAAEC,kBAAS,CAACC,MAAM,CAACC,UAAU;EAClCC,QAAQ,EAAEH,kBAAS,CAACC,MAAM;EAC1BG,MAAM,EAAEJ,kBAAS,CAACK,KAAK,CAAC;IACtBC,KAAK,EAAEN,kBAAS,CAACC,MAAM,CAACC,UAAU;IAClCK,OAAO,EAAEP,kBAAS,CAACQ,IAAI,CAACN;EAC1B,CAAC,CAAC,CAACA,UAAU;EACbO,IAAI,EAAET,kBAAS,CAACK,KAAK,CAAC;IACpBN,KAAK,EAAEC,kBAAS,CAACC,MAAM;IACvBS,KAAK,EAAEV,kBAAS,CAACW,OAAO,CACtBX,kBAAS,CAACK,KAAK,CAAC;MACdO,MAAM,EAAEZ,kBAAS,CAACa,IAAI;MACtBC,IAAI,EAAEd,kBAAS,CAACC,MAAM;MACtBc,GAAG,EAAEf,kBAAS,CAACC,MAAM,CAACC,UAAU;MAChCH,KAAK,EAAEC,kBAAS,CAACC,MAAM,CAACC,UAAU;MAClCC,QAAQ,EAAEH,kBAAS,CAACC,MAAM,CAACC,UAAU;MACrCc,KAAK,EAAEhB,kBAAS,CAACC,MAAM,CA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