@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
@@ -21,6 +21,7 @@ declare namespace RewardsForm {
21
21
  customStyle: PropTypes.Requireable<{
22
22
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
23
23
  }>;
24
+ className: PropTypes.Requireable<string>;
24
25
  }>>;
25
26
  sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
26
27
  removeMargin: PropTypes.Requireable<boolean>;
@@ -20,6 +20,7 @@ declare const SelectOpponents: {
20
20
  customStyle: import("prop-types").Requireable<{
21
21
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
22
22
  }>;
23
+ className: import("prop-types").Requireable<string>;
23
24
  }>>;
24
25
  sectionTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
25
26
  removeMargin: import("prop-types").Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
@@ -18,6 +18,7 @@ export declare const propTypes: {
18
18
  customStyle: PropTypes.Requireable<{
19
19
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
20
20
  }>;
21
+ className: PropTypes.Requireable<string>;
21
22
  }>>;
22
23
  sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
23
24
  removeMargin: PropTypes.Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -130,7 +130,7 @@ declare const SkillEdition: {
130
130
  }>>>;
131
131
  content: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
132
132
  title: import("prop-types").Validator<string>;
133
- subtitle: import("prop-types").Validator<string>;
133
+ subtitle: import("prop-types").Requireable<string>;
134
134
  button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
135
135
  label: import("prop-types").Validator<string>;
136
136
  onClick: import("prop-types").Validator<(...args: any[]) => any>;
@@ -138,6 +138,8 @@ declare const SkillEdition: {
138
138
  list: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
139
139
  title: import("prop-types").Requireable<string>;
140
140
  items: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
141
+ hidden: import("prop-types").Requireable<boolean>;
142
+ hint: import("prop-types").Requireable<string>;
141
143
  ref: import("prop-types").Validator<string>;
142
144
  title: import("prop-types").Validator<string>;
143
145
  subtitle: import("prop-types").Validator<string>;
@@ -152,14 +154,15 @@ declare const SkillEdition: {
152
154
  }>>>;
153
155
  deleteButton: import("prop-types").Requireable<import("prop-types").InferProps<{
154
156
  label: import("prop-types").Requireable<string>;
157
+ 'aria-label': import("prop-types").Requireable<string>;
155
158
  onClick: import("prop-types").Requireable<(...args: any[]) => any>;
156
159
  }>>;
157
160
  }>>[]>;
158
- search: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
161
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
159
162
  value: import("prop-types").Validator<string>;
160
163
  placeholder: import("prop-types").Validator<string>;
161
164
  onChange: import("prop-types").Validator<(...args: any[]) => any>;
162
- }>>>;
165
+ }>>;
163
166
  emptyResult: import("prop-types").Requireable<import("prop-types").InferProps<{
164
167
  title: import("prop-types").Validator<string>;
165
168
  description: import("prop-types").Validator<string>;
@@ -170,6 +173,8 @@ declare const SkillEdition: {
170
173
  onChange: import("prop-types").Validator<(...args: any[]) => any>;
171
174
  }>>;
172
175
  }>>>;
176
+ error: import("prop-types").Requireable<string>;
177
+ hiddenLabel: import("prop-types").Requireable<string>;
173
178
  isFetching: import("prop-types").Requireable<boolean>;
174
179
  actionButtons: import("prop-types").Requireable<(object | null | undefined)[]>;
175
180
  checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";AAQA,OAAkB,EAEhB,qBAAqB,EAMtB,MAAM,SAAS,CAAC;AAmajB,QAAA,MAAM,YAAY;YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcjD,CAAC;AAIF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";AAQA,OAAkB,EAEhB,qBAAqB,EAItB,MAAM,SAAS,CAAC;AAuQjB,QAAA,MAAM,YAAY;YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcjD,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -7,12 +7,12 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
7
7
  import React from 'react';
8
8
  import BrandFormGroup from '../../molecule/brand-form-group';
9
9
  import ListItems from '../list-items';
10
- import Title from '../../atom/title';
11
10
  import TitleAndInput from '../title-and-input';
12
11
  import { COLORS } from '../../variables/colors';
13
12
  import Loader from '../../atom/loader';
13
+ import ContentSelectionList, { buildButtonProps } from '../content-selection-list';
14
14
  import propTypes from './types';
15
- import style from './style.css';
15
+ import style from './styles';
16
16
  const buildFormField = (field, type, readOnly) => {
17
17
  const fieldWithoutOverrides = _omit(['type', 'theme', 'size', 'readOnly'], field);
18
18
  return {
@@ -138,32 +138,6 @@ const SkillInformations = skillInformations => {
138
138
  const uncappedMap = _map.convert({
139
139
  cap: false
140
140
  });
141
- const buildButtonProps = button => ({
142
- ...button,
143
- type: 'primary',
144
- 'aria-label': button.label,
145
- 'data-name': `button-${button.label}`,
146
- hoverBackgroundColor: COLORS.primary_100,
147
- hoverColor: COLORS.cm_primary_blue,
148
- icon: {
149
- position: 'left',
150
- faIcon: {
151
- name: 'plus',
152
- color: COLORS.cm_primary_blue,
153
- size: 14,
154
- customStyle: {
155
- padding: 0
156
- }
157
- }
158
- },
159
- customStyle: {
160
- width: 'fit-content',
161
- backgroundColor: COLORS.cm_blue_50,
162
- color: COLORS.cm_primary_blue,
163
- borderRadius: '12px',
164
- fontWeight: 600
165
- }
166
- });
167
141
  const buildTranslationItems = ({
168
142
  title: itemTitle,
169
143
  onEditClick,
@@ -274,145 +248,6 @@ const Translations = ({
274
248
  };
275
249
  return /*#__PURE__*/React.createElement(ListItems, translationProps);
276
250
  };
277
- const buildContentItem = readOnly => ({
278
- ref,
279
- title,
280
- subtitle,
281
- image,
282
- tags: {
283
- label,
284
- iconName
285
- },
286
- checkbox,
287
- deleteButton
288
- }) => {
289
- return {
290
- ...(readOnly ? {} : {
291
- secondButtonLink: {
292
- ...deleteButton,
293
- 'data-name': `button-${deleteButton?.label}`,
294
- 'aria-label': 'Delete',
295
- type: 'primary',
296
- customStyle: {
297
- width: 'fit-content',
298
- backgroundColor: 'transparent'
299
- },
300
- hoverBackgroundColor: COLORS.cm_grey_100,
301
- icon: {
302
- position: 'left',
303
- faIcon: {
304
- name: 'trash',
305
- color: COLORS.neutral_500,
306
- size: 16
307
- }
308
- }
309
- }
310
- }),
311
- id: ref,
312
- title,
313
- subtitle,
314
- image,
315
- tags: [{
316
- label,
317
- type: 'default',
318
- icon: {
319
- iconName,
320
- preset: 's',
321
- customStyle: {
322
- padding: 0
323
- },
324
- position: 'left'
325
- }
326
- }],
327
- checkbox: readOnly ? undefined : checkbox
328
- };
329
- };
330
- const Content = ({
331
- title,
332
- subtitle,
333
- button,
334
- list: {
335
- title: listTitle,
336
- checkbox,
337
- items,
338
- search,
339
- emptyResult
340
- },
341
- actionButtons,
342
- checkboxWithTitle: checkboxWithTitleProps,
343
- readOnly = false,
344
- isFetching = false
345
- }) => {
346
- const buttonProps = buildButtonProps(button);
347
- const titleProps = {
348
- type: 'form-group',
349
- title,
350
- subtitle,
351
- button: !readOnly ? buttonProps : undefined,
352
- required: true
353
- };
354
- const listProps = {
355
- ...(!_isEmpty(checkbox) && {
356
- ...checkbox,
357
- icon: {
358
- iconName: 'minus',
359
- iconColor: COLORS.white,
360
- preset: 's'
361
- },
362
- customStyle: {
363
- fontWeight: 600,
364
- color: COLORS.cm_grey_500,
365
- fontSize: '16px'
366
- }
367
- }),
368
- title: listTitle,
369
- 'aria-label': 'content list items',
370
- content: {
371
- ...(!_isEmpty(emptyResult) && {
372
- emptyResult: {
373
- ...emptyResult,
374
- button: buttonProps
375
- }
376
- }),
377
- items: _map(buildContentItem(readOnly), items),
378
- type: 'list'
379
- },
380
- search: {
381
- ...search,
382
- theme: 'coorpmanager',
383
- // Keep search interactive even in readOnly mode
384
- disabled: false
385
- },
386
- actionButtons: readOnly ? [] : _map(actionButton => ({
387
- ...actionButton,
388
- customStyle: {
389
- fontWeight: '600',
390
- borderRadius: '12px',
391
- width: 'auto'
392
- }
393
- }), actionButtons),
394
- checkboxWithTitle: readOnly ? undefined : {
395
- ...checkboxWithTitleProps,
396
- name: checkboxWithTitleProps?.title,
397
- 'aria-label': checkboxWithTitleProps?.title,
398
- 'data-name': checkboxWithTitleProps?.title,
399
- customStyle: {
400
- fontWeight: 600,
401
- color: COLORS.neutral_500,
402
- fontSize: '16px'
403
- },
404
- icon: {
405
- iconName: 'minus',
406
- iconColor: 'white',
407
- preset: 's'
408
- }
409
- },
410
- isFetching
411
- };
412
- return /*#__PURE__*/React.createElement("div", {
413
- className: style.contentContainer
414
- }, /*#__PURE__*/React.createElement(Title, titleProps), /*#__PURE__*/React.createElement(ListItems, listProps));
415
- };
416
251
  const SkillEdition = props => {
417
252
  const {
418
253
  skillInformations,
@@ -432,7 +267,7 @@ const SkillEdition = props => {
432
267
  readOnly: readOnly
433
268
  })), /*#__PURE__*/React.createElement(Translations, _extends({}, translations, {
434
269
  readOnly: readOnly
435
- })), /*#__PURE__*/React.createElement(Content, _extends({}, content, {
270
+ })), /*#__PURE__*/React.createElement(ContentSelectionList, _extends({}, content, {
436
271
  readOnly: readOnly
437
272
  })));
438
273
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","BrandFormGroup","ListItems","Title","TitleAndInput","COLORS","Loader","propTypes","style","buildFormField","field","type","readOnly","fieldWithoutOverrides","_omit","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","fontWeight","fields","options","onChange","formProps","createElement","className","skillInformationsContainer","uncappedMap","_map","convert","cap","buildButtonProps","button","hoverBackgroundColor","primary_100","hoverColor","cm_primary_blue","color","padding","width","backgroundColor","cm_blue_50","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","secondButtonLink","cm_grey_100","neutral_500","id","Translations","items","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes","_keys","menuWrapper","maxHeight","translationProps","content","_isEmpty","item","buttonMenuAction","buildContentItem","image","tags","iconName","checkbox","deleteButton","preset","Content","list","listTitle","search","actionButtons","checkboxWithTitle","checkboxWithTitleProps","isFetching","titleProps","listProps","iconColor","white","cm_grey_500","fontSize","actionButton","contentContainer","SkillEdition","props","translations","loaderContainer","loader","container","_extends","process","env","NODE_ENV"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map, omit} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport Loader from '../../atom/loader';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps,\n ContentPropsType,\n ContentListItemType\n} from './types';\nimport style from './style.css';\n\nconst buildFormField = (\n field: InputTextareaProps | InputTextProps,\n type: 'text' | 'textarea',\n readOnly?: boolean\n) => {\n const fieldWithoutOverrides = omit(['type', 'theme', 'size', 'readOnly'], field);\n return {\n ...fieldWithoutOverrides,\n readOnly,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps & {readOnly?: boolean}) => {\n const {form, iconEditor, readOnly} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: {...iconEditor.inputText, readOnly},\n buttonLink:\n iconEditor.buttonLink && !readOnly\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large',\n readOnly\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text', readOnly)\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea', readOnly)\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildButtonProps = (button: TranslationPropsType['button']) => ({\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 buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick,\n readOnly = false\n }: {title: string; onEditClick: () => void; onDeleteClick?: () => void; readOnly?: boolean},\n index: number\n) => {\n return {\n ...(!readOnly && onDeleteClick\n ? {\n secondButtonLink: {\n 'aria-label': 'Delete',\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 onClick: onDeleteClick\n }\n }\n : {}),\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': readOnly ? 'View Custom SKill' : 'Edit Custom Skill',\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: readOnly ? 'eye' : 'edit',\n color: COLORS.neutral_500,\n size: 16\n }\n },\n onClick: onEditClick\n }\n };\n};\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult,\n readOnly = false\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(\n (\n item: {title: string; onEditClick: () => void; onDeleteClick?: () => void},\n index: number\n ) => buildTranslationItems({...item, readOnly}, index),\n items\n ),\n type: 'list'\n },\n buttonMenuAction: readOnly ? undefined : translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst buildContentItem =\n (readOnly: boolean) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton\n }: ContentListItemType) => {\n return {\n ...(readOnly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n 'aria-label': 'Delete',\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 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 Content = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, checkbox, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readOnly = false,\n isFetching = false\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 ...(!isEmpty(checkbox) && {\n ...checkbox,\n icon: {iconName: 'minus', iconColor: COLORS.white, preset: 's'},\n customStyle: {fontWeight: 600, color: COLORS.cm_grey_500, fontSize: '16px'}\n }),\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readOnly), items),\n type: 'list'\n },\n search: {\n ...search,\n theme: 'coorpmanager',\n // Keep search interactive even in readOnly mode\n disabled: false\n },\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 customStyle: {fontWeight: 600, color: COLORS.neutral_500, fontSize: '16px'},\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n },\n isFetching\n };\n\n return (\n <div className={style.contentContainer}>\n <Title {...titleProps} />\n <ListItems {...listProps} />\n </div>\n );\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content, isFetching = false, readOnly} = props;\n\n return isFetching ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <div className={style.container}>\n <SkillInformations {...skillInformations} readOnly={readOnly} />\n <Translations {...translations} readOnly={readOnly} />\n <Content {...content} readOnly={readOnly} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,aAAa,MAAM,oBAAoB;AAC9C,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,SAAS,MAQT,SAAS;AAChB,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,cAAc,GAAGA,CACrBC,KAA0C,EAC1CC,IAAyB,EACzBC,QAAkB,KACf;EACH,MAAMC,qBAAqB,GAAGC,KAAA,CAAK,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAEJ,KAAK,CAAC;EAChF,OAAO;IACL,GAAGG,qBAAqB;IACxBD,QAAQ;IACRD,IAAI;IACJI,KAAK,EAAE,cAAc;IACrBC,IAAI,EAAE;EACR,CAAC;AACH,CAAC;AAED,MAAMC,uBAAuB,GAAGA,CAAC;EAC/BC,KAAK;EACLC,QAAQ;EACRC,QAAQ,GAAG,KAAK;EAChBC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rG,iBAAiB;IAAEf,QAAQ,EAAEA;EAAS,EAAE,CAAC,eAChEZ,KAAA,CAAAkD,aAAA,CAAC2B,YAAY,EAAAmD,QAAA,KAAKJ,YAAY;IAAEhH,QAAQ,EAAEA;EAAS,EAAE,CAAC,eACtDZ,KAAA,CAAAkD,aAAA,CAACwD,OAAO,EAAAsB,QAAA,KAAKjC,OAAO;IAAEnF,QAAQ,EAAEA;EAAS,EAAE,CACxC,CACN;AACH,CAAC;AAED8G,YAAY,CAACnH,SAAS,GAAA0H,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG5H,SAAS;AAElC,eAAemH,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","BrandFormGroup","ListItems","TitleAndInput","COLORS","Loader","ContentSelectionList","buildButtonProps","propTypes","style","buildFormField","field","type","readOnly","fieldWithoutOverrides","_omit","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","fontWeight","fields","options","onChange","formProps","createElement","className","skillInformationsContainer","uncappedMap","_map","convert","cap","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","secondButtonLink","width","backgroundColor","hoverBackgroundColor","cm_grey_100","color","neutral_500","id","Translations","items","button","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes","_keys","menuWrapper","maxHeight","translationProps","content","_isEmpty","item","buttonMenuAction","SkillEdition","props","translations","isFetching","loaderContainer","loader","container","_extends","process","env","NODE_ENV"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map, omit} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport Loader from '../../atom/loader';\nimport ContentSelectionList, {buildButtonProps} from '../content-selection-list';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps\n} from './types';\nimport style from './styles';\n\nconst buildFormField = (\n field: InputTextareaProps | InputTextProps,\n type: 'text' | 'textarea',\n readOnly?: boolean\n) => {\n const fieldWithoutOverrides = omit(['type', 'theme', 'size', 'readOnly'], field);\n return {\n ...fieldWithoutOverrides,\n readOnly,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps & {readOnly?: boolean}) => {\n const {form, iconEditor, readOnly} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: {...iconEditor.inputText, readOnly},\n buttonLink:\n iconEditor.buttonLink && !readOnly\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large',\n readOnly\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text', readOnly)\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea', readOnly)\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick,\n readOnly = false\n }: {title: string; onEditClick: () => void; onDeleteClick?: () => void; readOnly?: boolean},\n index: number\n) => {\n return {\n ...(!readOnly && onDeleteClick\n ? {\n secondButtonLink: {\n 'aria-label': 'Delete',\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 onClick: onDeleteClick\n }\n }\n : {}),\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': readOnly ? 'View Custom SKill' : 'Edit Custom Skill',\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: readOnly ? 'eye' : 'edit',\n color: COLORS.neutral_500,\n size: 16\n }\n },\n onClick: onEditClick\n }\n };\n};\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult,\n readOnly = false\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(\n (\n item: {title: string; onEditClick: () => void; onDeleteClick?: () => void},\n index: number\n ) => buildTranslationItems({...item, readOnly}, index),\n items\n ),\n type: 'list'\n },\n buttonMenuAction: readOnly ? undefined : translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content, isFetching = false, readOnly} = props;\n\n return isFetching ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <div className={style.container}>\n <SkillInformations {...skillInformations} readOnly={readOnly} />\n <Translations {...translations} readOnly={readOnly} />\n <ContentSelectionList {...content} readOnly={readOnly} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,cAAc,MAAM,iCAAiC;AAC5D,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,aAAa,MAAM,oBAAoB;AAC9C,SAAQC,MAAM,QAAO,wBAAwB;A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AmD,aAAA;IAAKC,SAAS,EAAE3C,KAAK,CAACyF;EAAgB,gBACpClG,KAAA,CAAAmD,aAAA,CAAC9C,MAAM;IAAC+C,SAAS,EAAE3C,KAAK,CAAC0F,MAAO;IAACnF,KAAK,EAAC;EAAc,CAAE,CACpD,CAAC,gBAENhB,KAAA,CAAAmD,aAAA;IAAKC,SAAS,EAAE3C,KAAK,CAAC2F;EAAU,gBAC9BpG,KAAA,CAAAmD,aAAA,CAACxB,iBAAiB,EAAA0E,QAAA,KAAKzE,iBAAiB;IAAEf,QAAQ,EAAEA;EAAS,EAAE,CAAC,eAChEb,KAAA,CAAAmD,aAAA,CAACoB,YAAY,EAAA8B,QAAA,KAAKL,YAAY;IAAEnF,QAAQ,EAAEA;EAAS,EAAE,CAAC,eACtDb,KAAA,CAAAmD,aAAA,CAAC7C,oBAAoB,EAAA+F,QAAA,KAAKX,OAAO;IAAE7E,QAAQ,EAAEA;EAAS,EAAE,CACrD,CACN;AACH,CAAC;AAEDiF,YAAY,CAACtF,SAAS,GAAA8F,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGhG,SAAS;AAElC,eAAesF,YAAY","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ export declare const contentContainer: any;
2
+ declare const _default: {
3
+ container: any;
4
+ skillInformationsContainer: any;
5
+ iconEditor: any;
6
+ loaderContainer: any;
7
+ loader: any;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,KAAyB,CAAC;;;;;;;;AAEvD,wBAME"}
@@ -0,0 +1,10 @@
1
+ import style from './style.css';
2
+ export const contentContainer = style.contentContainer;
3
+ export default {
4
+ container: style.container,
5
+ skillInformationsContainer: style.skillInformationsContainer,
6
+ iconEditor: style.iconEditor,
7
+ loaderContainer: style.loaderContainer,
8
+ loader: style.loader
9
+ };
10
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["style","contentContainer","container","skillInformationsContainer","iconEditor","loaderContainer","loader"],"sources":["../../../src/organism/skill-edition/styles.ts"],"sourcesContent":["import style from './style.css';\n\nexport const contentContainer = style.contentContainer;\n\nexport default {\n container: style.container,\n skillInformationsContainer: style.skillInformationsContainer,\n iconEditor: style.iconEditor,\n loaderContainer: style.loaderContainer,\n loader: style.loader\n};\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,aAAa;AAE/B,OAAO,MAAMC,gBAAgB,GAAGD,KAAK,CAACC,gBAAgB;AAEtD,eAAe;EACbC,SAAS,EAAEF,KAAK,CAACE,SAAS;EAC1BC,0BAA0B,EAAEH,KAAK,CAACG,0BAA0B;EAC5DC,UAAU,EAAEJ,KAAK,CAACI,UAAU;EAC5BC,eAAe,EAAEL,KAAK,CAACK,eAAe;EACtCC,MAAM,EAAEN,KAAK,CAACM;AAChB,CAAC","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { IconPreviewProps } from '../../molecule/icon-preview/types';
3
- import { ButtonLinkProps } from '../../atom/button-link/types';
3
+ import { ContentPropsType } from '../content-selection-list/types';
4
+ export { ContentListItemType, CheckboxWithTitleProps, ContentPropsType } from '../content-selection-list/types';
4
5
  declare const SkillEditionPropTypes: {
5
6
  skillInformations: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
6
7
  form: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
@@ -129,7 +130,7 @@ declare const SkillEditionPropTypes: {
129
130
  }>>>;
130
131
  content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
131
132
  title: PropTypes.Validator<string>;
132
- subtitle: PropTypes.Validator<string>;
133
+ subtitle: PropTypes.Requireable<string>;
133
134
  button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
134
135
  label: PropTypes.Validator<string>;
135
136
  onClick: PropTypes.Validator<(...args: any[]) => any>;
@@ -137,6 +138,8 @@ declare const SkillEditionPropTypes: {
137
138
  list: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
138
139
  title: PropTypes.Requireable<string>;
139
140
  items: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
141
+ hidden: PropTypes.Requireable<boolean>;
142
+ hint: PropTypes.Requireable<string>;
140
143
  ref: PropTypes.Validator<string>;
141
144
  title: PropTypes.Validator<string>;
142
145
  subtitle: PropTypes.Validator<string>;
@@ -151,14 +154,15 @@ declare const SkillEditionPropTypes: {
151
154
  }>>>;
152
155
  deleteButton: PropTypes.Requireable<PropTypes.InferProps<{
153
156
  label: PropTypes.Requireable<string>;
157
+ 'aria-label': PropTypes.Requireable<string>;
154
158
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
155
159
  }>>;
156
160
  }>>[]>;
157
- search: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
161
+ search: PropTypes.Requireable<PropTypes.InferProps<{
158
162
  value: PropTypes.Validator<string>;
159
163
  placeholder: PropTypes.Validator<string>;
160
164
  onChange: PropTypes.Validator<(...args: any[]) => any>;
161
- }>>>;
165
+ }>>;
162
166
  emptyResult: PropTypes.Requireable<PropTypes.InferProps<{
163
167
  title: PropTypes.Validator<string>;
164
168
  description: PropTypes.Validator<string>;
@@ -169,6 +173,8 @@ declare const SkillEditionPropTypes: {
169
173
  onChange: PropTypes.Validator<(...args: any[]) => any>;
170
174
  }>>;
171
175
  }>>>;
176
+ error: PropTypes.Requireable<string>;
177
+ hiddenLabel: PropTypes.Requireable<string>;
172
178
  isFetching: PropTypes.Requireable<boolean>;
173
179
  actionButtons: PropTypes.Requireable<(object | null | undefined)[]>;
174
180
  checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
@@ -258,56 +264,6 @@ export declare type TranslationPropsType = {
258
264
  };
259
265
  readOnly?: boolean;
260
266
  };
261
- export declare type ContentListItemType = {
262
- ref: string;
263
- title: string;
264
- subtitle: string;
265
- image: string;
266
- tags: {
267
- label: string;
268
- iconName: string;
269
- };
270
- checkbox: {
271
- checked: boolean;
272
- onChange: (value: boolean) => void;
273
- };
274
- deleteButton?: ButtonLinkProps;
275
- };
276
- export declare type CheckboxWithTitleProps = {
277
- title?: string;
278
- checked?: boolean;
279
- onChange?: (value: boolean) => void;
280
- };
281
- export declare type ContentPropsType = {
282
- title: string;
283
- subtitle: string;
284
- button: {
285
- label: string;
286
- onClick: () => void;
287
- };
288
- list: {
289
- title?: string;
290
- items?: ContentListItemType[];
291
- search: {
292
- value: string;
293
- placeholder: string;
294
- onChange: (value: string) => void;
295
- };
296
- emptyResult?: {
297
- title: string;
298
- description: string;
299
- };
300
- checkbox?: {
301
- title: string;
302
- checked: boolean;
303
- onChange: (value: boolean) => void;
304
- };
305
- };
306
- actionButtons?: ButtonLinkProps[];
307
- checkboxWithTitle?: CheckboxWithTitleProps;
308
- isFetching?: boolean;
309
- readOnly?: boolean;
310
- };
311
267
  export declare type SkillEditionPropsType = {
312
268
  skillInformations: SkillInformationsProps;
313
269
  translations: TranslationPropsType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAyH7D,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS1B,CAAC;AAEF,eAAe,qBAAqB,CAAC;AAErC,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,MA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nB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC"}
@@ -3,6 +3,8 @@ import InputText from '../../atom/input-text';
3
3
  import InputTextarea from '../../atom/input-textarea';
4
4
  import IconPreview from '../../molecule/icon-preview';
5
5
  import { SelectOptionPropTypes } from '../../atom/select';
6
+ import { ContentSelectionListPropTypes } from '../content-selection-list/types';
7
+ export { ContentListItemType, CheckboxWithTitleProps, ContentPropsType } from '../content-selection-list/types';
6
8
  const FormPropTypes = {
7
9
  title: PropTypes.string,
8
10
  subtitle: PropTypes.string,
@@ -61,64 +63,13 @@ const translationPropTypes = PropTypes.shape({
61
63
  }),
62
64
  readOnly: PropTypes.bool
63
65
  });
64
- const contentPropTypes = PropTypes.shape({
65
- title: PropTypes.string.isRequired,
66
- subtitle: PropTypes.string.isRequired,
67
- button: PropTypes.shape({
68
- label: PropTypes.string.isRequired,
69
- onClick: PropTypes.func.isRequired
70
- }).isRequired,
71
- list: PropTypes.shape({
72
- title: PropTypes.string,
73
- items: PropTypes.arrayOf(PropTypes.shape({
74
- ref: PropTypes.string.isRequired,
75
- title: PropTypes.string.isRequired,
76
- subtitle: PropTypes.string.isRequired,
77
- image: PropTypes.string.isRequired,
78
- tags: PropTypes.shape({
79
- label: PropTypes.string.isRequired,
80
- iconName: PropTypes.string.isRequired
81
- }).isRequired,
82
- checkbox: PropTypes.shape({
83
- checked: PropTypes.bool.isRequired,
84
- onChange: PropTypes.func.isRequired
85
- }).isRequired,
86
- deleteButton: PropTypes.shape({
87
- label: PropTypes.string,
88
- onClick: PropTypes.func
89
- })
90
- }).isRequired),
91
- search: PropTypes.shape({
92
- value: PropTypes.string.isRequired,
93
- placeholder: PropTypes.string.isRequired,
94
- onChange: PropTypes.func.isRequired
95
- }).isRequired,
96
- emptyResult: PropTypes.shape({
97
- title: PropTypes.string.isRequired,
98
- description: PropTypes.string.isRequired
99
- }),
100
- checkbox: PropTypes.shape({
101
- title: PropTypes.string.isRequired,
102
- checked: PropTypes.bool.isRequired,
103
- onChange: PropTypes.func.isRequired
104
- })
105
- }).isRequired,
106
- isFetching: PropTypes.bool,
107
- actionButtons: PropTypes.arrayOf(PropTypes.object),
108
- checkboxWithTitle: PropTypes.shape({
109
- title: PropTypes.string,
110
- checked: PropTypes.bool,
111
- onChange: PropTypes.func
112
- }),
113
- readOnly: PropTypes.bool
114
- });
115
66
  const SkillEditionPropTypes = {
116
67
  skillInformations: PropTypes.shape({
117
68
  form: PropTypes.shape(FormPropTypes).isRequired,
118
69
  iconEditor: PropTypes.shape(IconEditorPropTypes).isRequired
119
70
  }).isRequired,
120
71
  translations: translationPropTypes.isRequired,
121
- content: contentPropTypes.isRequired,
72
+ content: PropTypes.shape(ContentSelectionListPropTypes).isRequired,
122
73
  isFetching: PropTypes.bool,
123
74
  readOnly: PropTypes.bool
124
75
  };