@coorpacademy/components 11.18.7 → 11.18.8-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/es/atom/button-menu/index.d.ts.map +1 -1
  2. package/es/atom/button-menu/index.js +1 -1
  3. package/es/atom/button-menu/index.js.map +1 -1
  4. package/es/atom/button-menu/style.css +10 -0
  5. package/es/atom/button-menu/types.d.ts +1 -1
  6. package/es/atom/button-menu/types.d.ts.map +1 -1
  7. package/es/atom/button-menu/types.js +1 -1
  8. package/es/atom/button-menu/types.js.map +1 -1
  9. package/es/atom/empty-search-result/index.d.ts +1 -0
  10. package/es/atom/empty-search-result/index.d.ts.map +1 -1
  11. package/es/atom/empty-search-result/index.js +6 -4
  12. package/es/atom/empty-search-result/index.js.map +1 -1
  13. package/es/atom/empty-search-result/style.css +16 -1
  14. package/es/atom/status-item/index.d.ts +1 -0
  15. package/es/atom/status-item/index.d.ts.map +1 -1
  16. package/es/atom/status-item/index.js +3 -2
  17. package/es/atom/status-item/index.js.map +1 -1
  18. package/es/atom/status-item/style.css +15 -17
  19. package/es/atom/status-item/types.d.ts +2 -0
  20. package/es/atom/status-item/types.d.ts.map +1 -1
  21. package/es/atom/status-item/types.js +1 -0
  22. package/es/atom/status-item/types.js.map +1 -1
  23. package/es/atom/tag/index.js +4 -4
  24. package/es/atom/tag/index.js.map +1 -1
  25. package/es/atom/tag/style.css +11 -8
  26. package/es/atom/title/types.d.ts +9 -0
  27. package/es/atom/title/types.d.ts.map +1 -0
  28. package/es/atom/title/types.js +2 -0
  29. package/es/atom/title/types.js.map +1 -0
  30. package/es/molecule/banner/style.css +4 -2
  31. package/es/molecule/brand-tabs/index.d.ts +1 -0
  32. package/es/molecule/brand-tabs/index.d.ts.map +1 -1
  33. package/es/molecule/brand-tabs/index.js +10 -1
  34. package/es/molecule/brand-tabs/index.js.map +1 -1
  35. package/es/molecule/brand-tabs/style.css +7 -4
  36. package/es/molecule/bulk-progress-bar/index.d.ts.map +1 -1
  37. package/es/molecule/bulk-progress-bar/index.js +4 -2
  38. package/es/molecule/bulk-progress-bar/index.js.map +1 -1
  39. package/es/molecule/bulk-progress-bar/style.css +5 -0
  40. package/es/molecule/card/index.d.ts +53 -0
  41. package/es/molecule/card/index.d.ts.map +1 -1
  42. package/es/molecule/card/index.js +14 -12
  43. package/es/molecule/card/index.js.map +1 -1
  44. package/es/molecule/card/style.css +47 -5
  45. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  46. package/es/molecule/cm-popin/index.js +46 -9
  47. package/es/molecule/cm-popin/index.js.map +1 -1
  48. package/es/molecule/cm-popin/style.css +32 -0
  49. package/es/molecule/cm-popin/types.d.ts +31 -1
  50. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  51. package/es/molecule/cm-popin/types.js +13 -3
  52. package/es/molecule/cm-popin/types.js.map +1 -1
  53. package/es/molecule/dashboard/cards-list/index.d.ts +57 -1
  54. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  55. package/es/molecule/dashboard/cards-list/index.js +39 -5
  56. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  57. package/es/molecule/dashboard/cards-list/prop-types.d.ts +14 -0
  58. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -0
  59. package/es/molecule/dashboard/cards-list/prop-types.js +2 -0
  60. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -0
  61. package/es/molecule/draggable-list/index.d.ts +32 -12
  62. package/es/molecule/expandible-actionable-table/index.d.ts +3 -0
  63. package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  64. package/es/molecule/expandible-actionable-table/index.js +15 -2
  65. package/es/molecule/expandible-actionable-table/index.js.map +1 -1
  66. package/es/molecule/expandible-actionable-table/style.css +5 -0
  67. package/es/molecule/expandible-actionable-table/types.d.ts +5 -0
  68. package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  69. package/es/molecule/expandible-actionable-table/types.js +3 -1
  70. package/es/molecule/expandible-actionable-table/types.js.map +1 -1
  71. package/es/molecule/review-header-steps/index.d.ts.map +1 -1
  72. package/es/molecule/review-header-steps/index.js +3 -4
  73. package/es/molecule/review-header-steps/index.js.map +1 -1
  74. package/es/molecule/review-header-steps/prop-types.d.ts +1 -0
  75. package/es/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  76. package/es/molecule/review-header-steps/style.css +6 -1
  77. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
  78. package/es/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
  79. package/es/molecule/title-and-checkbox-wrapper/index.js +15 -3
  80. package/es/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  81. package/es/organism/list-item/index.d.ts +44 -13
  82. package/es/organism/list-item/index.d.ts.map +1 -1
  83. package/es/organism/list-item/index.js +72 -38
  84. package/es/organism/list-item/index.js.map +1 -1
  85. package/es/organism/list-item/style.css +28 -5
  86. package/es/organism/list-items/index.d.ts +36 -12
  87. package/es/organism/list-items/index.d.ts.map +1 -1
  88. package/es/organism/list-items/index.js +19 -4
  89. package/es/organism/list-items/index.js.map +1 -1
  90. package/es/organism/list-items/style.css +42 -0
  91. package/es/organism/mooc-header/index.d.ts.map +1 -1
  92. package/es/organism/mooc-header/index.js +1 -0
  93. package/es/organism/mooc-header/index.js.map +1 -1
  94. package/es/organism/review-header/types.d.ts +1 -0
  95. package/es/organism/review-header/types.d.ts.map +1 -1
  96. package/es/organism/rewards-form/index.d.ts +45 -0
  97. package/es/organism/select-opponents/index.d.ts +67 -12
  98. package/es/organism/select-opponents/index.d.ts.map +1 -1
  99. package/es/organism/select-opponents/index.js +3 -3
  100. package/es/organism/select-opponents/index.js.map +1 -1
  101. package/es/organism/select-opponents/style.css +6 -0
  102. package/es/organism/select-opponents/types.d.ts +75 -14
  103. package/es/organism/select-opponents/types.d.ts.map +1 -1
  104. package/es/organism/select-opponents/types.js +2 -2
  105. package/es/organism/select-opponents/types.js.map +1 -1
  106. package/es/organism/sidebar/index.d.ts +3 -1
  107. package/es/organism/sidebar/index.d.ts.map +1 -1
  108. package/es/organism/sidebar/index.js +9 -5
  109. package/es/organism/sidebar/index.js.map +1 -1
  110. package/es/organism/sidebar/style.css +14 -0
  111. package/es/organism/title-and-input/index.d.ts +84 -29
  112. package/es/organism/title-and-input/index.d.ts.map +1 -1
  113. package/es/organism/title-and-input/types.d.ts +84 -29
  114. package/es/organism/title-and-input/types.d.ts.map +1 -1
  115. package/es/organism/wizard-contents/index.d.ts +112 -0
  116. package/es/organism/wizard-contents/index.d.ts.map +1 -1
  117. package/es/organism/wizard-contents/index.js +37 -4
  118. package/es/organism/wizard-contents/index.js.map +1 -1
  119. package/es/organism/wizard-contents/style.css +22 -0
  120. package/es/template/app-player/loading/index.d.ts +19 -1
  121. package/es/template/app-player/player/index.d.ts +38 -2
  122. package/es/template/app-player/player/slides/index.d.ts +19 -1
  123. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  124. package/es/template/app-player/popin-correction/index.d.ts +19 -1
  125. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  126. package/es/template/app-player/popin-end/index.d.ts +72 -2
  127. package/es/template/app-player/popin-end/summary.d.ts +53 -1
  128. package/es/template/app-review/index.d.ts +20 -1
  129. package/es/template/app-review/index.d.ts.map +1 -1
  130. package/es/template/app-review/player/prop-types.d.ts +20 -1
  131. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  132. package/es/template/app-review/prop-types.d.ts +20 -1
  133. package/es/template/app-review/prop-types.d.ts.map +1 -1
  134. package/es/template/back-office/brand-update/index.d.ts +122 -13
  135. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  136. package/es/template/back-office/brand-update/index.js +4 -2
  137. package/es/template/back-office/brand-update/index.js.map +1 -1
  138. package/es/template/back-office/brand-update/style.css +4 -4
  139. package/es/template/common/dashboard/index.d.ts +89 -1
  140. package/es/template/common/dashboard/index.d.ts.map +1 -1
  141. package/es/template/common/dashboard/index.js +6 -2
  142. package/es/template/common/dashboard/index.js.map +1 -1
  143. package/es/template/common/dashboard/style.css +5 -0
  144. package/es/template/common/search-page/index.d.ts +123 -1
  145. package/es/template/common/search-page/index.d.ts.map +1 -1
  146. package/es/template/common/search-page/index.js +8 -3
  147. package/es/template/common/search-page/index.js.map +1 -1
  148. package/es/template/common/search-page/style.css +5 -0
  149. package/es/template/external-course/index.d.ts +19 -1
  150. package/es/template/teams-dashboard/index.d.ts +53 -1
  151. package/es/variables/colors.css +3 -2
  152. package/lib/atom/button-menu/index.d.ts.map +1 -1
  153. package/lib/atom/button-menu/index.js +1 -1
  154. package/lib/atom/button-menu/index.js.map +1 -1
  155. package/lib/atom/button-menu/style.css +10 -0
  156. package/lib/atom/button-menu/types.d.ts +1 -1
  157. package/lib/atom/button-menu/types.d.ts.map +1 -1
  158. package/lib/atom/button-menu/types.js +1 -1
  159. package/lib/atom/button-menu/types.js.map +1 -1
  160. package/lib/atom/empty-search-result/index.d.ts +1 -0
  161. package/lib/atom/empty-search-result/index.d.ts.map +1 -1
  162. package/lib/atom/empty-search-result/index.js +6 -4
  163. package/lib/atom/empty-search-result/index.js.map +1 -1
  164. package/lib/atom/empty-search-result/style.css +16 -1
  165. package/lib/atom/status-item/index.d.ts +1 -0
  166. package/lib/atom/status-item/index.d.ts.map +1 -1
  167. package/lib/atom/status-item/index.js +3 -2
  168. package/lib/atom/status-item/index.js.map +1 -1
  169. package/lib/atom/status-item/style.css +15 -17
  170. package/lib/atom/status-item/types.d.ts +2 -0
  171. package/lib/atom/status-item/types.d.ts.map +1 -1
  172. package/lib/atom/status-item/types.js +1 -0
  173. package/lib/atom/status-item/types.js.map +1 -1
  174. package/lib/atom/tag/index.js +4 -4
  175. package/lib/atom/tag/index.js.map +1 -1
  176. package/lib/atom/tag/style.css +11 -8
  177. package/lib/atom/title/types.d.ts +9 -0
  178. package/lib/atom/title/types.d.ts.map +1 -0
  179. package/lib/atom/title/types.js +2 -0
  180. package/lib/atom/title/types.js.map +1 -0
  181. package/lib/molecule/banner/style.css +4 -2
  182. package/lib/molecule/brand-tabs/index.d.ts +1 -0
  183. package/lib/molecule/brand-tabs/index.d.ts.map +1 -1
  184. package/lib/molecule/brand-tabs/index.js +11 -1
  185. package/lib/molecule/brand-tabs/index.js.map +1 -1
  186. package/lib/molecule/brand-tabs/style.css +7 -4
  187. package/lib/molecule/bulk-progress-bar/index.d.ts.map +1 -1
  188. package/lib/molecule/bulk-progress-bar/index.js +4 -2
  189. package/lib/molecule/bulk-progress-bar/index.js.map +1 -1
  190. package/lib/molecule/bulk-progress-bar/style.css +5 -0
  191. package/lib/molecule/card/index.d.ts +53 -0
  192. package/lib/molecule/card/index.d.ts.map +1 -1
  193. package/lib/molecule/card/index.js +15 -11
  194. package/lib/molecule/card/index.js.map +1 -1
  195. package/lib/molecule/card/style.css +47 -5
  196. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  197. package/lib/molecule/cm-popin/index.js +48 -8
  198. package/lib/molecule/cm-popin/index.js.map +1 -1
  199. package/lib/molecule/cm-popin/style.css +32 -0
  200. package/lib/molecule/cm-popin/types.d.ts +31 -1
  201. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  202. package/lib/molecule/cm-popin/types.js +15 -3
  203. package/lib/molecule/cm-popin/types.js.map +1 -1
  204. package/lib/molecule/dashboard/cards-list/index.d.ts +57 -1
  205. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  206. package/lib/molecule/dashboard/cards-list/index.js +43 -5
  207. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  208. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +14 -0
  209. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -0
  210. package/lib/molecule/dashboard/cards-list/prop-types.js +2 -0
  211. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -0
  212. package/lib/molecule/draggable-list/index.d.ts +32 -12
  213. package/lib/molecule/expandible-actionable-table/index.d.ts +3 -0
  214. package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
  215. package/lib/molecule/expandible-actionable-table/index.js +17 -2
  216. package/lib/molecule/expandible-actionable-table/index.js.map +1 -1
  217. package/lib/molecule/expandible-actionable-table/style.css +5 -0
  218. package/lib/molecule/expandible-actionable-table/types.d.ts +5 -0
  219. package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
  220. package/lib/molecule/expandible-actionable-table/types.js +3 -1
  221. package/lib/molecule/expandible-actionable-table/types.js.map +1 -1
  222. package/lib/molecule/review-header-steps/index.d.ts.map +1 -1
  223. package/lib/molecule/review-header-steps/index.js +3 -4
  224. package/lib/molecule/review-header-steps/index.js.map +1 -1
  225. package/lib/molecule/review-header-steps/prop-types.d.ts +1 -0
  226. package/lib/molecule/review-header-steps/prop-types.d.ts.map +1 -1
  227. package/lib/molecule/review-header-steps/style.css +6 -1
  228. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +45 -0
  229. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts.map +1 -1
  230. package/lib/molecule/title-and-checkbox-wrapper/index.js +17 -3
  231. package/lib/molecule/title-and-checkbox-wrapper/index.js.map +1 -1
  232. package/lib/organism/list-item/index.d.ts +44 -13
  233. package/lib/organism/list-item/index.d.ts.map +1 -1
  234. package/lib/organism/list-item/index.js +73 -37
  235. package/lib/organism/list-item/index.js.map +1 -1
  236. package/lib/organism/list-item/style.css +28 -5
  237. package/lib/organism/list-items/index.d.ts +36 -12
  238. package/lib/organism/list-items/index.d.ts.map +1 -1
  239. package/lib/organism/list-items/index.js +21 -4
  240. package/lib/organism/list-items/index.js.map +1 -1
  241. package/lib/organism/list-items/style.css +42 -0
  242. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  243. package/lib/organism/mooc-header/index.js +1 -0
  244. package/lib/organism/mooc-header/index.js.map +1 -1
  245. package/lib/organism/review-header/types.d.ts +1 -0
  246. package/lib/organism/review-header/types.d.ts.map +1 -1
  247. package/lib/organism/rewards-form/index.d.ts +45 -0
  248. package/lib/organism/select-opponents/index.d.ts +67 -12
  249. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  250. package/lib/organism/select-opponents/index.js +3 -3
  251. package/lib/organism/select-opponents/index.js.map +1 -1
  252. package/lib/organism/select-opponents/style.css +6 -0
  253. package/lib/organism/select-opponents/types.d.ts +75 -14
  254. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  255. package/lib/organism/select-opponents/types.js +2 -2
  256. package/lib/organism/select-opponents/types.js.map +1 -1
  257. package/lib/organism/sidebar/index.d.ts +3 -1
  258. package/lib/organism/sidebar/index.d.ts.map +1 -1
  259. package/lib/organism/sidebar/index.js +8 -4
  260. package/lib/organism/sidebar/index.js.map +1 -1
  261. package/lib/organism/sidebar/style.css +14 -0
  262. package/lib/organism/title-and-input/index.d.ts +84 -29
  263. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  264. package/lib/organism/title-and-input/types.d.ts +84 -29
  265. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  266. package/lib/organism/wizard-contents/index.d.ts +112 -0
  267. package/lib/organism/wizard-contents/index.d.ts.map +1 -1
  268. package/lib/organism/wizard-contents/index.js +39 -4
  269. package/lib/organism/wizard-contents/index.js.map +1 -1
  270. package/lib/organism/wizard-contents/style.css +22 -0
  271. package/lib/template/app-player/loading/index.d.ts +19 -1
  272. package/lib/template/app-player/player/index.d.ts +38 -2
  273. package/lib/template/app-player/player/slides/index.d.ts +19 -1
  274. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  275. package/lib/template/app-player/popin-correction/index.d.ts +19 -1
  276. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  277. package/lib/template/app-player/popin-end/index.d.ts +72 -2
  278. package/lib/template/app-player/popin-end/summary.d.ts +53 -1
  279. package/lib/template/app-review/index.d.ts +20 -1
  280. package/lib/template/app-review/index.d.ts.map +1 -1
  281. package/lib/template/app-review/player/prop-types.d.ts +20 -1
  282. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  283. package/lib/template/app-review/prop-types.d.ts +20 -1
  284. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  285. package/lib/template/back-office/brand-update/index.d.ts +122 -13
  286. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  287. package/lib/template/back-office/brand-update/index.js +4 -2
  288. package/lib/template/back-office/brand-update/index.js.map +1 -1
  289. package/lib/template/back-office/brand-update/style.css +4 -4
  290. package/lib/template/common/dashboard/index.d.ts +89 -1
  291. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  292. package/lib/template/common/dashboard/index.js +6 -2
  293. package/lib/template/common/dashboard/index.js.map +1 -1
  294. package/lib/template/common/dashboard/style.css +5 -0
  295. package/lib/template/common/search-page/index.d.ts +123 -1
  296. package/lib/template/common/search-page/index.d.ts.map +1 -1
  297. package/lib/template/common/search-page/index.js +9 -3
  298. package/lib/template/common/search-page/index.js.map +1 -1
  299. package/lib/template/common/search-page/style.css +5 -0
  300. package/lib/template/external-course/index.d.ts +19 -1
  301. package/lib/template/teams-dashboard/index.d.ts +53 -1
  302. package/lib/variables/colors.css +3 -2
  303. package/locales/.mtslconfig.json +1 -0
  304. package/locales/et/global.json +3 -3
  305. package/package.json +3 -3
@@ -14,6 +14,7 @@ declare namespace RewardsForm {
14
14
  'data-name': PropTypes.Requireable<string>;
15
15
  }>>;
16
16
  sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
17
+ removeMargin: PropTypes.Requireable<boolean>;
17
18
  title: PropTypes.Requireable<string>;
18
19
  subtitle: PropTypes.Requireable<string>;
19
20
  type: PropTypes.Requireable<string>;
@@ -73,6 +74,50 @@ declare namespace RewardsForm {
73
74
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
74
75
  }> | null | undefined)[]>;
75
76
  'data-name': PropTypes.Requireable<string>;
77
+ }> | PropTypes.InferProps<{
78
+ childType: PropTypes.Requireable<string>;
79
+ name: PropTypes.Requireable<string>;
80
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
81
+ onReset: PropTypes.Requireable<(...args: any[]) => any>;
82
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
83
+ error: PropTypes.Requireable<string>;
84
+ buttonAriaLabel: PropTypes.Requireable<string>;
85
+ errorButtonLabel: PropTypes.Requireable<string>;
86
+ labelLink: PropTypes.Requireable<string>;
87
+ hrefLink: PropTypes.Requireable<string>;
88
+ title: PropTypes.Requireable<string>;
89
+ description: PropTypes.Requireable<string>;
90
+ uploadLabel: PropTypes.Requireable<string>;
91
+ previewLabel: PropTypes.Requireable<string>;
92
+ previewContent: PropTypes.Requireable<PropTypes.InferProps<{
93
+ type: PropTypes.Requireable<string>;
94
+ src: PropTypes.Requireable<string>;
95
+ label: PropTypes.Requireable<string>;
96
+ }>>;
97
+ loading: PropTypes.Requireable<boolean>;
98
+ modified: PropTypes.Requireable<boolean>;
99
+ disabled: PropTypes.Requireable<boolean>;
100
+ children: PropTypes.Requireable<(...args: any[]) => any>;
101
+ pdfButtonLabel: PropTypes.Requireable<string>;
102
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
103
+ }> | PropTypes.InferProps<{
104
+ childType: PropTypes.Requireable<string>;
105
+ title: PropTypes.Requireable<string>;
106
+ placeholder: PropTypes.Requireable<string>;
107
+ description: PropTypes.Requireable<string>;
108
+ hint: PropTypes.Requireable<string>;
109
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
110
+ selected: PropTypes.Validator<boolean>;
111
+ name: PropTypes.Validator<string>;
112
+ value: PropTypes.Requireable<string>;
113
+ }>>[]>;
114
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
115
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
116
+ multiple: PropTypes.Requireable<boolean>;
117
+ modified: PropTypes.Requireable<boolean>;
118
+ disabled: PropTypes.Requireable<boolean>;
119
+ error: PropTypes.Requireable<string>;
120
+ theme: PropTypes.Requireable<string>;
76
121
  }> | null | undefined>>;
77
122
  }> | null | undefined)[]>;
78
123
  }
@@ -4,22 +4,77 @@ declare const SelectOpponents: {
4
4
  (props: SelectOpponentsProps): JSX.Element;
5
5
  propTypes: {
6
6
  items: import("prop-types").Requireable<(import("prop-types").InferProps<{
7
- radioWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
8
- title: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
9
- title: import("prop-types").Requireable<string>;
10
- subtitle: import("prop-types").Requireable<string>;
11
- type: import("prop-types").Requireable<string>;
12
- 'data-name': import("prop-types").Requireable<string>;
13
- titleSize: import("prop-types").Requireable<string>;
14
- subtitleSize: import("prop-types").Requireable<string>;
15
- }>>>;
7
+ checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
8
+ title: import("prop-types").Requireable<string>;
16
9
  name: import("prop-types").Requireable<string>;
17
10
  checked: import("prop-types").Requireable<boolean>;
18
- onChange: import("prop-types").Validator<(...args: any[]) => any>;
11
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
19
12
  'aria-label': import("prop-types").Requireable<string>;
20
13
  'data-name': import("prop-types").Requireable<string>;
21
14
  }>>;
22
- field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
15
+ sectionTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
16
+ removeMargin: import("prop-types").Requireable<boolean>;
17
+ title: import("prop-types").Requireable<string>;
18
+ subtitle: import("prop-types").Requireable<string>;
19
+ type: import("prop-types").Requireable<string>;
20
+ 'data-name': import("prop-types").Requireable<string>;
21
+ titleSize: import("prop-types").Requireable<string>;
22
+ subtitleSize: import("prop-types").Requireable<string>;
23
+ }>>;
24
+ child: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
25
+ childType: import("prop-types").Requireable<string>;
26
+ inputText: import("prop-types").Requireable<import("prop-types").InferProps<{
27
+ theme: import("prop-types").Requireable<string>;
28
+ size: import("prop-types").Requireable<string>;
29
+ autoFocus: import("prop-types").Requireable<boolean>;
30
+ title: import("prop-types").Requireable<string>;
31
+ placeholder: import("prop-types").Requireable<string>;
32
+ defaultValue: import("prop-types").Requireable<string>;
33
+ disabled: import("prop-types").Requireable<boolean>;
34
+ value: import("prop-types").Requireable<string>;
35
+ hint: import("prop-types").Requireable<string>;
36
+ error: import("prop-types").Requireable<string>;
37
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
38
+ description: import("prop-types").Requireable<string>;
39
+ modified: import("prop-types").Requireable<boolean>;
40
+ valid: import("prop-types").Requireable<boolean>;
41
+ 'aria-label': import("prop-types").Requireable<string>;
42
+ 'data-name': import("prop-types").Requireable<string>;
43
+ }>>;
44
+ title: import("prop-types").Requireable<string>;
45
+ 'aria-label': import("prop-types").Requireable<string>;
46
+ 'data-name': import("prop-types").Requireable<string>;
47
+ }> | import("prop-types").InferProps<{
48
+ childType: import("prop-types").Requireable<string>;
49
+ list: import("prop-types").Requireable<(import("prop-types").InferProps<{
50
+ name: import("prop-types").Requireable<string>;
51
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
52
+ onReset: import("prop-types").Requireable<(...args: any[]) => any>;
53
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
54
+ error: import("prop-types").Requireable<string>;
55
+ buttonAriaLabel: import("prop-types").Requireable<string>;
56
+ errorButtonLabel: import("prop-types").Requireable<string>;
57
+ labelLink: import("prop-types").Requireable<string>;
58
+ hrefLink: import("prop-types").Requireable<string>;
59
+ title: import("prop-types").Requireable<string>;
60
+ description: import("prop-types").Requireable<string>;
61
+ uploadLabel: import("prop-types").Requireable<string>;
62
+ previewLabel: import("prop-types").Requireable<string>;
63
+ previewContent: import("prop-types").Requireable<import("prop-types").InferProps<{
64
+ type: import("prop-types").Requireable<string>;
65
+ src: import("prop-types").Requireable<string>;
66
+ label: import("prop-types").Requireable<string>;
67
+ }>>;
68
+ loading: import("prop-types").Requireable<boolean>;
69
+ modified: import("prop-types").Requireable<boolean>;
70
+ disabled: import("prop-types").Requireable<boolean>;
71
+ children: import("prop-types").Requireable<(...args: any[]) => any>;
72
+ pdfButtonLabel: import("prop-types").Requireable<string>;
73
+ pdfButtonAriaLabel: import("prop-types").Requireable<string>;
74
+ }> | null | undefined)[]>;
75
+ 'data-name': import("prop-types").Requireable<string>;
76
+ }> | import("prop-types").InferProps<{
77
+ childType: import("prop-types").Requireable<string>;
23
78
  name: import("prop-types").Requireable<string>;
24
79
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
25
80
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
@@ -45,6 +100,7 @@ declare const SelectOpponents: {
45
100
  pdfButtonLabel: import("prop-types").Requireable<string>;
46
101
  pdfButtonAriaLabel: import("prop-types").Requireable<string>;
47
102
  }> | import("prop-types").InferProps<{
103
+ childType: import("prop-types").Requireable<string>;
48
104
  title: import("prop-types").Requireable<string>;
49
105
  placeholder: import("prop-types").Requireable<string>;
50
106
  description: import("prop-types").Requireable<string>;
@@ -62,7 +118,6 @@ declare const SelectOpponents: {
62
118
  error: import("prop-types").Requireable<string>;
63
119
  theme: import("prop-types").Requireable<string>;
64
120
  }> | null | undefined>>;
65
- childType: import("prop-types").Requireable<string>;
66
121
  }> | null | undefined)[]>;
67
122
  };
68
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAIA,OAAkB,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAC;AAMxD,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAanD,CAAC;AAIF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import map from 'lodash/fp/map';
3
- import TitleRadioWrapper from '../../molecule/title-radio-wrapper';
3
+ import TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';
4
4
  import propTypes from './types';
5
5
  import style from './style.css'; // @ts-expect-error (need to get the index)
6
6
 
@@ -17,8 +17,8 @@ const SelectOpponents = props => {
17
17
  }, mapWithIndex((item, key) => {
18
18
  return /*#__PURE__*/React.createElement("li", {
19
19
  key: `select-opponents-item-${key}`,
20
- className: style.item
21
- }, /*#__PURE__*/React.createElement(TitleRadioWrapper, item));
20
+ className: item.child.childType === 'image-upload' ? style.itemImageUpload : style.item
21
+ }, /*#__PURE__*/React.createElement(TitleAndCheckBoxWrapper, item));
22
22
  }, items));
23
23
  };
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","map","TitleRadioWrapper","propTypes","style","mapWithIndex","convert","cap","SelectOpponents","props","items","container","item","key"],"sources":["../../../src/organism/select-opponents/index.tsx"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport TitleRadioWrapper from '../../molecule/title-radio-wrapper';\nimport {TitleRadioWrapperProps} from '../../molecule/title-radio-wrapper/types';\nimport propTypes, {SelectOpponentsProps} from './types';\nimport style from './style.css';\n\n// @ts-expect-error (need to get the index)\nconst mapWithIndex = map.convert({cap: false});\n\nconst SelectOpponents = (props: SelectOpponentsProps) => {\n const {items} = props;\n return (\n <ul className={style.container}>\n {mapWithIndex((item: TitleRadioWrapperProps, key: number) => {\n return (\n <li key={`select-opponents-item-${key}`} className={style.item}>\n <TitleRadioWrapper {...item} />\n </li>\n );\n }, items)}\n </ul>\n );\n};\n\nSelectOpponents.propTypes = propTypes;\n\nexport default SelectOpponents;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,iBAAP,MAA8B,oCAA9B;AAEA,OAAOC,SAAP,MAA8C,SAA9C;AACA,OAAOC,KAAP,MAAkB,aAAlB,C,CAEA;;AACA,MAAMC,YAAY,GAAGJ,GAAG,CAACK,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,CAArB;;AAEA,MAAMC,eAAe,GAAIC,KAAD,IAAiC;EACvD,MAAM;IAACC;EAAD,IAAUD,KAAhB;EACA,oBACE;IAAI,SAAS,EAAEL,KAAK,CAACO;EAArB,GACGN,YAAY,CAAC,CAACO,IAAD,EAA+BC,GAA/B,KAA+C;IAC3D,oBACE;MAAI,GAAG,EAAG,yBAAwBA,GAAI,EAAtC;MAAyC,SAAS,EAAET,KAAK,CAACQ;IAA1D,gBACE,oBAAC,iBAAD,EAAuBA,IAAvB,CADF,CADF;EAKD,CANY,EAMVF,KANU,CADf,CADF;AAWD,CAbD;;AAeAF,eAAe,CAACL,SAAhB,2CAA4BA,SAA5B;AAEA,eAAeK,eAAf"}
1
+ {"version":3,"file":"index.js","names":["React","map","TitleAndCheckBoxWrapper","propTypes","style","mapWithIndex","convert","cap","SelectOpponents","props","items","container","item","key","child","childType","itemImageUpload"],"sources":["../../../src/organism/select-opponents/index.tsx"],"sourcesContent":["import React from 'react';\nimport map from 'lodash/fp/map';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\nimport propTypes, {SelectOpponentsProps, TitleAndCheckBoxWrapperProps} from './types';\nimport style from './style.css';\n\n// @ts-expect-error (need to get the index)\nconst mapWithIndex = map.convert({cap: false});\n\nconst SelectOpponents = (props: SelectOpponentsProps) => {\n const {items} = props;\n return (\n <ul className={style.container}>\n {mapWithIndex((item: TitleAndCheckBoxWrapperProps, key: number) => {\n return (\n <li\n key={`select-opponents-item-${key}`}\n className={item.child.childType === 'image-upload' ? style.itemImageUpload : style.item}\n >\n <TitleAndCheckBoxWrapper {...item} />\n </li>\n );\n }, items)}\n </ul>\n );\n};\n\nSelectOpponents.propTypes = propTypes;\n\nexport default SelectOpponents;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,uBAAP,MAAoC,2CAApC;AACA,OAAOC,SAAP,MAA4E,SAA5E;AACA,OAAOC,KAAP,MAAkB,aAAlB,C,CAEA;;AACA,MAAMC,YAAY,GAAGJ,GAAG,CAACK,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,CAArB;;AAEA,MAAMC,eAAe,GAAIC,KAAD,IAAiC;EACvD,MAAM;IAACC;EAAD,IAAUD,KAAhB;EACA,oBACE;IAAI,SAAS,EAAEL,KAAK,CAACO;EAArB,GACGN,YAAY,CAAC,CAACO,IAAD,EAAqCC,GAArC,KAAqD;IACjE,oBACE;MACE,GAAG,EAAG,yBAAwBA,GAAI,EADpC;MAEE,SAAS,EAAED,IAAI,CAACE,KAAL,CAAWC,SAAX,KAAyB,cAAzB,GAA0CX,KAAK,CAACY,eAAhD,GAAkEZ,KAAK,CAACQ;IAFrF,gBAIE,oBAAC,uBAAD,EAA6BA,IAA7B,CAJF,CADF;EAQD,CATY,EASVF,KATU,CADf,CADF;AAcD,CAhBD;;AAkBAF,eAAe,CAACL,SAAhB,2CAA4BA,SAA5B;AAEA,eAAeK,eAAf"}
@@ -8,4 +8,10 @@
8
8
 
9
9
  .item {
10
10
  list-style-type: none;
11
+ max-width: 300px;
12
+ }
13
+
14
+ .itemImageUpload {
15
+ composes: item;
16
+ margin-left: 40px;
11
17
  }
@@ -1,23 +1,77 @@
1
1
  import PropTypes from 'prop-types';
2
- import { TitleRadioWrapperProps } from '../../molecule/title-radio-wrapper/types';
3
2
  export declare const propTypes: {
4
3
  items: PropTypes.Requireable<(PropTypes.InferProps<{
5
- radioWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
6
- title: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
7
- title: PropTypes.Requireable<string>;
8
- subtitle: PropTypes.Requireable<string>;
9
- type: PropTypes.Requireable<string>;
10
- 'data-name': PropTypes.Requireable<string>;
11
- titleSize: PropTypes.Requireable<string>;
12
- subtitleSize: PropTypes.Requireable<string>;
13
- }>>>;
4
+ checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
5
+ title: PropTypes.Requireable<string>;
14
6
  name: PropTypes.Requireable<string>;
15
7
  checked: PropTypes.Requireable<boolean>;
16
- onChange: PropTypes.Validator<(...args: any[]) => any>;
8
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
17
9
  'aria-label': PropTypes.Requireable<string>;
18
10
  'data-name': PropTypes.Requireable<string>;
19
11
  }>>;
20
- field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
12
+ sectionTitle: PropTypes.Requireable<PropTypes.InferProps<{
13
+ removeMargin: PropTypes.Requireable<boolean>;
14
+ title: PropTypes.Requireable<string>;
15
+ subtitle: PropTypes.Requireable<string>;
16
+ type: PropTypes.Requireable<string>;
17
+ 'data-name': PropTypes.Requireable<string>;
18
+ titleSize: PropTypes.Requireable<string>;
19
+ subtitleSize: PropTypes.Requireable<string>;
20
+ }>>;
21
+ child: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
22
+ childType: PropTypes.Requireable<string>;
23
+ inputText: PropTypes.Requireable<PropTypes.InferProps<{
24
+ theme: PropTypes.Requireable<string>;
25
+ size: PropTypes.Requireable<string>;
26
+ autoFocus: PropTypes.Requireable<boolean>;
27
+ title: PropTypes.Requireable<string>;
28
+ placeholder: PropTypes.Requireable<string>;
29
+ defaultValue: PropTypes.Requireable<string>;
30
+ disabled: PropTypes.Requireable<boolean>;
31
+ value: PropTypes.Requireable<string>;
32
+ hint: PropTypes.Requireable<string>;
33
+ error: PropTypes.Requireable<string>;
34
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
35
+ description: PropTypes.Requireable<string>;
36
+ modified: PropTypes.Requireable<boolean>;
37
+ valid: PropTypes.Requireable<boolean>;
38
+ 'aria-label': PropTypes.Requireable<string>;
39
+ 'data-name': PropTypes.Requireable<string>;
40
+ }>>;
41
+ title: PropTypes.Requireable<string>;
42
+ 'aria-label': PropTypes.Requireable<string>;
43
+ 'data-name': PropTypes.Requireable<string>;
44
+ }> | PropTypes.InferProps<{
45
+ childType: PropTypes.Requireable<string>;
46
+ list: PropTypes.Requireable<(PropTypes.InferProps<{
47
+ name: PropTypes.Requireable<string>;
48
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
49
+ onReset: PropTypes.Requireable<(...args: any[]) => any>;
50
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
51
+ error: PropTypes.Requireable<string>;
52
+ buttonAriaLabel: PropTypes.Requireable<string>;
53
+ errorButtonLabel: PropTypes.Requireable<string>;
54
+ labelLink: PropTypes.Requireable<string>;
55
+ hrefLink: PropTypes.Requireable<string>;
56
+ title: PropTypes.Requireable<string>;
57
+ description: PropTypes.Requireable<string>;
58
+ uploadLabel: PropTypes.Requireable<string>;
59
+ previewLabel: PropTypes.Requireable<string>;
60
+ previewContent: PropTypes.Requireable<PropTypes.InferProps<{
61
+ type: PropTypes.Requireable<string>;
62
+ src: PropTypes.Requireable<string>;
63
+ label: PropTypes.Requireable<string>;
64
+ }>>;
65
+ loading: PropTypes.Requireable<boolean>;
66
+ modified: PropTypes.Requireable<boolean>;
67
+ disabled: PropTypes.Requireable<boolean>;
68
+ children: PropTypes.Requireable<(...args: any[]) => any>;
69
+ pdfButtonLabel: PropTypes.Requireable<string>;
70
+ pdfButtonAriaLabel: PropTypes.Requireable<string>;
71
+ }> | null | undefined)[]>;
72
+ 'data-name': PropTypes.Requireable<string>;
73
+ }> | PropTypes.InferProps<{
74
+ childType: PropTypes.Requireable<string>;
21
75
  name: PropTypes.Requireable<string>;
22
76
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
23
77
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
@@ -43,6 +97,7 @@ export declare const propTypes: {
43
97
  pdfButtonLabel: PropTypes.Requireable<string>;
44
98
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
45
99
  }> | PropTypes.InferProps<{
100
+ childType: PropTypes.Requireable<string>;
46
101
  title: PropTypes.Requireable<string>;
47
102
  placeholder: PropTypes.Requireable<string>;
48
103
  description: PropTypes.Requireable<string>;
@@ -60,11 +115,17 @@ export declare const propTypes: {
60
115
  error: PropTypes.Requireable<string>;
61
116
  theme: PropTypes.Requireable<string>;
62
117
  }> | null | undefined>>;
63
- childType: PropTypes.Requireable<string>;
64
118
  }> | null | undefined)[]>;
65
119
  };
120
+ export declare type TitleAndCheckBoxWrapperProps = {
121
+ child: {
122
+ childType: 'select-multiple' | 'image-upload';
123
+ [x: string]: unknown;
124
+ };
125
+ [x: string]: unknown;
126
+ };
66
127
  export declare type SelectOpponentsProps = {
67
- items: TitleRadioWrapperProps[];
128
+ items: TitleAndCheckBoxWrapperProps[];
68
129
  };
69
130
  export default propTypes;
70
131
  //# sourceMappingURL=types.d.ts.map
@@ -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;AACnC,OAAO,EAAC,sBAAsB,EAAC,MAAM,0CAA0C,CAAC;AAGhF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC,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"}
@@ -1,7 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
- import TitleRadioWrapper from '../../molecule/title-radio-wrapper';
2
+ import TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';
3
3
  export const propTypes = {
4
- items: PropTypes.arrayOf(PropTypes.shape(TitleRadioWrapper.propTypes))
4
+ items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))
5
5
  };
6
6
  export default propTypes;
7
7
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","TitleRadioWrapper","propTypes","items","arrayOf","shape"],"sources":["../../../src/organism/select-opponents/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {TitleRadioWrapperProps} from '../../molecule/title-radio-wrapper/types';\nimport TitleRadioWrapper from '../../molecule/title-radio-wrapper';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(TitleRadioWrapper.propTypes))\n};\n\nexport type SelectOpponentsProps = {\n items: TitleRadioWrapperProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA,OAAOC,iBAAP,MAA8B,oCAA9B;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBJ,iBAAiB,CAACC,SAAlC,CAAlB;AADgB,CAAlB;AAQP,eAAeA,SAAf"}
1
+ {"version":3,"file":"types.js","names":["PropTypes","TitleAndCheckBoxWrapper","propTypes","items","arrayOf","shape"],"sources":["../../../src/organism/select-opponents/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport TitleAndCheckBoxWrapper from '../../molecule/title-and-checkbox-wrapper';\n\nexport const propTypes = {\n items: PropTypes.arrayOf(PropTypes.shape(TitleAndCheckBoxWrapper.propTypes))\n};\n\nexport type TitleAndCheckBoxWrapperProps = {\n child: {\n childType: 'select-multiple' | 'image-upload';\n [x: string]: unknown;\n };\n [x: string]: unknown;\n};\n\nexport type SelectOpponentsProps = {\n items: TitleAndCheckBoxWrapperProps[];\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,uBAAP,MAAoC,2CAApC;AAEA,OAAO,MAAMC,SAAS,GAAG;EACvBC,KAAK,EAAEH,SAAS,CAACI,OAAV,CAAkBJ,SAAS,CAACK,KAAV,CAAgBJ,uBAAuB,CAACC,SAAxC,CAAlB;AADgB,CAAlB;AAgBP,eAAeA,SAAf"}
@@ -51,7 +51,7 @@ export namespace MultiSelectItem {
51
51
  import propTypes_2 = SelectItem.propTypes;
52
52
  export { propTypes_2 as propTypes };
53
53
  }
54
- export function LinkItem({ href, index, name, selected, color, title, onClick, uppercase, styles, children, setChildrenAsHtml, target }: {
54
+ export function LinkItem({ href, index, name, selected, color, title, onClick, uppercase, styles, children, setChildrenAsHtml, target, activeIcon }: {
55
55
  href: any;
56
56
  index: any;
57
57
  name: any;
@@ -64,6 +64,7 @@ export function LinkItem({ href, index, name, selected, color, title, onClick, u
64
64
  children: any;
65
65
  setChildrenAsHtml?: boolean | undefined;
66
66
  target?: string | undefined;
67
+ activeIcon?: boolean | undefined;
67
68
  }): JSX.Element;
68
69
  export namespace LinkItem {
69
70
  export namespace propTypes_3 {
@@ -81,6 +82,7 @@ export namespace LinkItem {
81
82
  export { uppercase_2 as uppercase };
82
83
  export const setChildrenAsHtml: PropTypes.Requireable<boolean>;
83
84
  export const target: PropTypes.Requireable<string>;
85
+ export const activeIcon: PropTypes.Requireable<boolean>;
84
86
  }
85
87
  export { propTypes_3 as propTypes };
86
88
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAeO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;gBAwDN;;;;;;;;;;;;;;;;;;;;AAeM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;;;;;;;;;gBAuBN;;;;;;;;;;;;;;;;;;;;;;;;AAkED;;8BAaC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/sidebar/index.js"],"names":[],"mappings":"AAmBO,uDA0BN;;;;;;;;;;;;;AAaM;;;;;;;gBAON;;;;;;;;;;;;;;;;;;;;;AAiBM;;;;;;;gBAON;;;;;AAIM;;;;;;;;;;;;;;gBA2DN;;;;;;;;;;;;;;;;;;;;;AAgBM;;;;;;gBAyBN;;;;;AAIM;;;;;gBAMN;;;;;;;;;;;;;;AASM;;;;;;;;;;gBA6CN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM;;;;;;;;;gBAuBN;;;;;;;;;;;;;;;;;;;;;;;;AAkED;;8BAaC"}
@@ -10,7 +10,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
10
10
  import React, { useMemo } from 'react';
11
11
  import classnames from 'classnames';
12
12
  import PropTypes from 'prop-types';
13
- import { NovaCompositionCoorpacademyOpenInNewTab } from '@coorpacademy/nova-icons';
13
+ import { NovaCompositionCoorpacademyOpenInNewTab, NovaSolidStatusCheckCircle2 as ActiveIcon } from '@coorpacademy/nova-icons';
14
14
  import Link from '../../atom/link';
15
15
  import Button from '../../atom/button';
16
16
  import Provider from '../../atom/provider';
@@ -126,14 +126,15 @@ export const LinkItem = ({
126
126
  styles,
127
127
  children,
128
128
  setChildrenAsHtml = true,
129
- target = '_self'
129
+ target = '_self',
130
+ activeIcon = false
130
131
  }) => {
131
132
  const handleOnClick = useMemo(() => e => {
132
133
  onClick && onClick(e);
133
134
  }, [onClick]);
134
135
  const classNames = classnames(style.linkItem, style.innerHTML, {
135
136
  [style.uppercase]: uppercase
136
- }, styles);
137
+ }, styles, !activeIcon && setChildrenAsHtml ? style.itemWithoutIcon : null);
137
138
  const borderStyle = {
138
139
  borderLeftColor: selected ? color : null
139
140
  };
@@ -157,7 +158,9 @@ export const LinkItem = ({
157
158
  }) : /*#__PURE__*/React.createElement("li", {
158
159
  className: classNames,
159
160
  style: borderStyle
160
- }, title, children));
161
+ }, activeIcon ? /*#__PURE__*/React.createElement(ActiveIcon, {
162
+ className: style.activeIcon
163
+ }) : null, title, children));
161
164
  };
162
165
  LinkItem.propTypes = process.env.NODE_ENV !== "production" ? {
163
166
  index: PropTypes.number,
@@ -169,7 +172,8 @@ LinkItem.propTypes = process.env.NODE_ENV !== "production" ? {
169
172
  onClick: PropTypes.func,
170
173
  uppercase: PropTypes.bool,
171
174
  setChildrenAsHtml: PropTypes.bool,
172
- target: PropTypes.string
175
+ target: PropTypes.string,
176
+ activeIcon: PropTypes.bool
173
177
  } : {};
174
178
  export const IconLinkItem = _ref => {
175
179
  let {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useMemo","classnames","PropTypes","NovaCompositionCoorpacademyOpenInNewTab","Link","Button","Provider","Select","Cta","SelectMultiple","style","NEUTRAL_COLOR","InputTextItem","props","title","placeholder","value","onChange","disabled","name","index","uppercase","handleOnChange","e","target","selectItem","selectTitle","input","propTypes","number","string","isRequired","bool","func","SelectItem","options","arrayOf","shape","selected","MultiSelectItem","LinkItem","href","color","onClick","styles","children","setChildrenAsHtml","handleOnClick","classNames","linkItem","innerHTML","borderStyle","borderLeftColor","textDecoration","__html","IconLinkItem","icon","TitleItem","titleItem","titleItemTitle","ButtonItem","neutralColor","cta","backgroundColor","button","rectangular","fullWidth","secondary","submitValue","buttonItem","oneOfType","InfoItem","color_","infoItem","infoItemTitle","infoItemContent","SidebarItem","item","type","oneOf","SidebarItems","items","sectionItems","map","Sidebar","context","sections","Array","isArray","skin","defaultColor","sidebar","sidebarSection","idx","sidebarPart","contextTypes","childContextTypes"],"sources":["../../../src/organism/sidebar/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {noop, getOr, defaults} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyOpenInNewTab} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport Button from '../../atom/button';\nimport Provider from '../../atom/provider';\nimport Select from '../../atom/select';\nimport Cta from '../../atom/cta';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport style from './style.css';\n\nconst NEUTRAL_COLOR = '#607D8B';\n\nexport const InputTextItem = props => {\n const {\n title,\n placeholder = '',\n value,\n onChange = noop,\n disabled,\n name,\n index,\n uppercase = true\n } = props;\n const handleOnChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n return (\n <li data-name={name || `inputtext-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <input\n type=\"text\"\n name={title}\n className={style.input}\n placeholder={placeholder}\n value={value}\n disabled={disabled}\n onChange={handleOnChange}\n />\n </li>\n );\n};\n\nInputTextItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n disabled: PropTypes.bool,\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nexport const SelectItem = ({name, index, onChange, title, options, uppercase = true}) => {\n return (\n <li data-name={name || `select-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <Select title={title} onChange={onChange} theme=\"header\" options={options} />\n </li>\n );\n};\n\nSelectItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: 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 })\n ).isRequired,\n onChange: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nexport const MultiSelectItem = ({name, index, onChange, title, options, uppercase = true}) => {\n return (\n <li data-name={name || `select-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <SelectMultiple theme=\"sidebar\" onChange={onChange} options={options} />\n </li>\n );\n};\n\nMultiSelectItem.propTypes = SelectItem.propTypes;\n\nexport const LinkItem = ({\n href,\n index,\n name,\n selected,\n color,\n title,\n onClick,\n uppercase = true,\n styles,\n children,\n setChildrenAsHtml = true,\n target = '_self'\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n\n const classNames = classnames(\n style.linkItem,\n style.innerHTML,\n {[style.uppercase]: uppercase},\n styles\n );\n const borderStyle = {borderLeftColor: selected ? color : null};\n\n return (\n <Link\n target={target}\n onClick={handleOnClick}\n skinHover\n href={href}\n data-name={name || `link-item-${index}`}\n style={{\n textDecoration: 'none',\n color: selected ? color : NEUTRAL_COLOR\n }}\n >\n {setChildrenAsHtml ? (\n <li\n className={classNames}\n style={borderStyle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : (\n <li className={classNames} style={borderStyle}>\n {title}\n {children}\n </li>\n )}\n </Link>\n );\n};\n\nLinkItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n selected: PropTypes.bool,\n name: PropTypes.string,\n href: PropTypes.string,\n color: PropTypes.string,\n onClick: PropTypes.func,\n uppercase: PropTypes.bool,\n setChildrenAsHtml: PropTypes.bool,\n target: PropTypes.string\n};\n\nexport const IconLinkItem = ({\n index,\n name = `button-link-item-${index}`,\n onClick,\n uppercase = true,\n ...props\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n return (\n <LinkItem\n {...props}\n setChildrenAsHtml={false}\n onClick={handleOnClick}\n name={name}\n uppercase={uppercase}\n index={index}\n >\n <NovaCompositionCoorpacademyOpenInNewTab className={style.icon} />\n </LinkItem>\n );\n};\n\nIconLinkItem.propTypes = LinkItem.propTypes;\n\nexport const TitleItem = ({name, index, title, uppercase}) => {\n return (\n <ul data-name={name || `item-title-${index}`} className={style.titleItem}>\n <li className={classnames(style.titleItemTitle, {[style.uppercase]: uppercase})}>{title}</li>\n </ul>\n );\n};\n\nTitleItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n uppercase: PropTypes.bool\n};\n\nexport const ButtonItem = ({\n index,\n onClick,\n color,\n neutralColor,\n name,\n href,\n title,\n cta,\n uppercase\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n const backgroundColor = neutralColor === true ? NEUTRAL_COLOR : color;\n const button = cta ? (\n <Cta\n {...defaults(\n {\n onClick: handleOnClick,\n href,\n rectangular: true,\n fullWidth: true,\n secondary: true,\n submitValue: title\n },\n cta\n )}\n />\n ) : (\n <Button type=\"link\" href={href} onClick={handleOnClick} style={{backgroundColor}}>\n {title}\n </Button>\n );\n return (\n <li\n data-name={name || `button-item-${index}`}\n className={classnames(style.buttonItem, {[style.uppercase]: uppercase})}\n >\n {button}\n </li>\n );\n};\n\nButtonItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n href: PropTypes.string,\n color: PropTypes.string,\n neutralColor: PropTypes.bool,\n onClick: PropTypes.func,\n cta: PropTypes.oneOfType([PropTypes.shape(Cta.propTypes), PropTypes.bool]),\n uppercase: PropTypes.bool\n};\n\nexport const InfoItem = ({onClick, index, name, color, neutralColor, title, value, uppercase}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n const color_ = neutralColor === true ? NEUTRAL_COLOR : color;\n return (\n <ul data-name={name || `item-info-${index}`} className={style.infoItem}>\n <li className={style.infoItemTitle}>{title}</li>\n <li\n className={classnames(style.infoItemContent, {[style.uppercase]: uppercase})}\n onClick={handleOnClick}\n style={{\n borderLeftColor: color_,\n color: color_\n }}\n >\n {value}\n </li>\n </ul>\n );\n};\n\nInfoItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n color: PropTypes.string,\n neutralColor: PropTypes.bool,\n value: PropTypes.string.isRequired,\n onClick: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nconst SidebarItem = ({item, color, index}) => {\n switch (item.type) {\n case 'select': {\n return <SelectItem {...item} color={color} index={index} />;\n }\n case 'multi-select':\n return <MultiSelectItem {...item} color={color} index={index} />;\n case 'link':\n return <LinkItem {...item} color={color} index={index} />;\n case 'iconLink':\n return <IconLinkItem {...item} color={color} index={index} />;\n case 'title':\n return <TitleItem {...item} color={color} index={index} />;\n case 'button':\n return <ButtonItem {...item} color={color} index={index} />;\n case 'info':\n return <InfoItem {...item} color={color} index={index} />;\n case 'inputtext':\n return <InputTextItem {...item} color={color} index={index} />;\n }\n};\n\nSidebarItem.propTypes = {\n item: PropTypes.oneOfType([\n PropTypes.shape({...TitleItem.propTypes, type: PropTypes.oneOf(['title']).isRequired}),\n PropTypes.shape({...IconLinkItem.propTypes, type: PropTypes.oneOf(['iconLink']).isRequired}),\n PropTypes.shape({...ButtonItem.propTypes, type: PropTypes.oneOf(['button']).isRequired}),\n PropTypes.shape({...InfoItem.propTypes, type: PropTypes.oneOf(['info']).isRequired}),\n PropTypes.shape({...LinkItem.propTypes, type: PropTypes.oneOf(['link']).isRequired}),\n PropTypes.shape({...InputTextItem.propTypes, type: PropTypes.oneOf(['inputtext']).isRequired}),\n PropTypes.shape({...SelectItem.propTypes, type: PropTypes.oneOf(['select']).isRequired}),\n PropTypes.shape({...SelectItem.propTypes, type: PropTypes.oneOf(['multi-select']).isRequired})\n ]),\n index: PropTypes.number,\n color: PropTypes.string,\n uppercase: PropTypes.bool\n};\n\nconst SidebarItems = ({items, color}) => {\n return (\n <ul className={style.sectionItems}>\n {items.map((item, index) => (\n <SidebarItem item={item} key={index} index={index} color={color} />\n ))}\n </ul>\n );\n};\n\nSidebarItems.propTypes = {\n color: PropTypes.string,\n items: PropTypes.arrayOf(PropTypes.shape(SidebarItem.propTypes))\n};\n\nconst Sidebar = ({items}, context) => {\n const sections = Array.isArray(items[0]) ? items : [items];\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n return (\n <div data-name=\"sidebar\" className={style.sidebar}>\n {sections.map((sidebarSection, idx) => (\n <div data-name={`sidebarpart-${idx + 1}`} className={style.sidebarPart} key={idx}>\n <SidebarItems items={sidebarSection} color={defaultColor} />\n </div>\n ))}\n </div>\n );\n};\n\nSidebar.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n SidebarItem.propTypes.item,\n PropTypes.arrayOf(SidebarItem.propTypes.item).isRequired\n ])\n ).isRequired\n};\n\nSidebar.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default Sidebar;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SAAQC,uCAAR,QAAsD,0BAAtD;AACA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,MAAP,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ACE;IAAK,aAAU,SAAf;IAAyB,SAAS,EAAE/E,KAAK,CAACiF;EAA1C,GACGL,QAAQ,CAACH,GAAT,CAAa,CAACS,cAAD,EAAiBC,GAAjB,kBACZ;IAAK,aAAY,eAAcA,GAAG,GAAG,CAAE,EAAvC;IAA0C,SAAS,EAAEnF,KAAK,CAACoF,WAA3D;IAAwE,GAAG,EAAED;EAA7E,gBACE,oBAAC,YAAD;IAAc,KAAK,EAAED,cAArB;IAAqC,KAAK,EAAEF;EAA5C,EADF,CADD,CADH,CADF;AASD,CAbD;;AAeAN,OAAO,CAACxD,SAAR,2CAAoB;EAClBqD,KAAK,EAAE/E,SAAS,CAACkC,OAAV,CACLlC,SAAS,CAACoE,SAAV,CAAoB,CAClBM,WAAW,CAAChD,SAAZ,CAAsBiD,IADJ,EAElB3E,SAAS,CAACkC,OAAV,CAAkBwC,WAAW,CAAChD,SAAZ,CAAsBiD,IAAxC,EAA8C9C,UAF5B,CAApB,CADK,EAKLA;AANgB,CAApB;AASAqD,OAAO,CAACW,YAAR,GAAuB;EACrBN,IAAI,EAAEnF,QAAQ,CAAC0F,iBAAT,CAA2BP;AADZ,CAAvB;AAIA,eAAeL,OAAf"}
1
+ {"version":3,"file":"index.js","names":["React","useMemo","classnames","PropTypes","NovaCompositionCoorpacademyOpenInNewTab","NovaSolidStatusCheckCircle2","ActiveIcon","Link","Button","Provider","Select","Cta","SelectMultiple","style","NEUTRAL_COLOR","InputTextItem","props","title","placeholder","value","onChange","disabled","name","index","uppercase","handleOnChange","e","target","selectItem","selectTitle","input","propTypes","number","string","isRequired","bool","func","SelectItem","options","arrayOf","shape","selected","MultiSelectItem","LinkItem","href","color","onClick","styles","children","setChildrenAsHtml","activeIcon","handleOnClick","classNames","linkItem","innerHTML","itemWithoutIcon","borderStyle","borderLeftColor","textDecoration","__html","IconLinkItem","icon","TitleItem","titleItem","titleItemTitle","ButtonItem","neutralColor","cta","backgroundColor","button","rectangular","fullWidth","secondary","submitValue","buttonItem","oneOfType","InfoItem","color_","infoItem","infoItemTitle","infoItemContent","SidebarItem","item","type","oneOf","SidebarItems","items","sectionItems","map","Sidebar","context","sections","Array","isArray","skin","defaultColor","sidebar","sidebarSection","idx","sidebarPart","contextTypes","childContextTypes"],"sources":["../../../src/organism/sidebar/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport classnames from 'classnames';\nimport PropTypes from 'prop-types';\nimport {noop, getOr, defaults} from 'lodash/fp';\nimport {\n NovaCompositionCoorpacademyOpenInNewTab,\n NovaSolidStatusCheckCircle2 as ActiveIcon\n} from '@coorpacademy/nova-icons';\n\nimport Link from '../../atom/link';\nimport Button from '../../atom/button';\nimport Provider from '../../atom/provider';\nimport Select from '../../atom/select';\nimport Cta from '../../atom/cta';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport style from './style.css';\n\nconst NEUTRAL_COLOR = '#607D8B';\n\nexport const InputTextItem = props => {\n const {\n title,\n placeholder = '',\n value,\n onChange = noop,\n disabled,\n name,\n index,\n uppercase = true\n } = props;\n const handleOnChange = useMemo(() => e => onChange(e.target.value), [onChange]);\n return (\n <li data-name={name || `inputtext-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <input\n type=\"text\"\n name={title}\n className={style.input}\n placeholder={placeholder}\n value={value}\n disabled={disabled}\n onChange={handleOnChange}\n />\n </li>\n );\n};\n\nInputTextItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n disabled: PropTypes.bool,\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string,\n onChange: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nexport const SelectItem = ({name, index, onChange, title, options, uppercase = true}) => {\n return (\n <li data-name={name || `select-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <Select title={title} onChange={onChange} theme=\"header\" options={options} />\n </li>\n );\n};\n\nSelectItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: 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 })\n ).isRequired,\n onChange: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nexport const MultiSelectItem = ({name, index, onChange, title, options, uppercase = true}) => {\n return (\n <li data-name={name || `select-item-${index}`} className={style.selectItem}>\n <div className={classnames(style.selectTitle, {[style.uppercase]: uppercase})}>{title}</div>\n <SelectMultiple theme=\"sidebar\" onChange={onChange} options={options} />\n </li>\n );\n};\n\nMultiSelectItem.propTypes = SelectItem.propTypes;\n\nexport const LinkItem = ({\n href,\n index,\n name,\n selected,\n color,\n title,\n onClick,\n uppercase = true,\n styles,\n children,\n setChildrenAsHtml = true,\n target = '_self',\n activeIcon = false\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n\n const classNames = classnames(\n style.linkItem,\n style.innerHTML,\n {[style.uppercase]: uppercase},\n styles,\n !activeIcon && setChildrenAsHtml ? style.itemWithoutIcon : null\n );\n const borderStyle = {borderLeftColor: selected ? color : null};\n\n return (\n <Link\n target={target}\n onClick={handleOnClick}\n skinHover\n href={href}\n data-name={name || `link-item-${index}`}\n style={{\n textDecoration: 'none',\n color: selected ? color : NEUTRAL_COLOR\n }}\n >\n {setChildrenAsHtml ? (\n <li\n className={classNames}\n style={borderStyle}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: title}}\n />\n ) : (\n <li className={classNames} style={borderStyle}>\n {activeIcon ? <ActiveIcon className={style.activeIcon} /> : null}\n {title}\n {children}\n </li>\n )}\n </Link>\n );\n};\n\nLinkItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n selected: PropTypes.bool,\n name: PropTypes.string,\n href: PropTypes.string,\n color: PropTypes.string,\n onClick: PropTypes.func,\n uppercase: PropTypes.bool,\n setChildrenAsHtml: PropTypes.bool,\n target: PropTypes.string,\n activeIcon: PropTypes.bool\n};\n\nexport const IconLinkItem = ({\n index,\n name = `button-link-item-${index}`,\n onClick,\n uppercase = true,\n ...props\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n return (\n <LinkItem\n {...props}\n setChildrenAsHtml={false}\n onClick={handleOnClick}\n name={name}\n uppercase={uppercase}\n index={index}\n >\n <NovaCompositionCoorpacademyOpenInNewTab className={style.icon} />\n </LinkItem>\n );\n};\n\nIconLinkItem.propTypes = LinkItem.propTypes;\n\nexport const TitleItem = ({name, index, title, uppercase}) => {\n return (\n <ul data-name={name || `item-title-${index}`} className={style.titleItem}>\n <li className={classnames(style.titleItemTitle, {[style.uppercase]: uppercase})}>{title}</li>\n </ul>\n );\n};\n\nTitleItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n uppercase: PropTypes.bool\n};\n\nexport const ButtonItem = ({\n index,\n onClick,\n color,\n neutralColor,\n name,\n href,\n title,\n cta,\n uppercase\n}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n const backgroundColor = neutralColor === true ? NEUTRAL_COLOR : color;\n const button = cta ? (\n <Cta\n {...defaults(\n {\n onClick: handleOnClick,\n href,\n rectangular: true,\n fullWidth: true,\n secondary: true,\n submitValue: title\n },\n cta\n )}\n />\n ) : (\n <Button type=\"link\" href={href} onClick={handleOnClick} style={{backgroundColor}}>\n {title}\n </Button>\n );\n return (\n <li\n data-name={name || `button-item-${index}`}\n className={classnames(style.buttonItem, {[style.uppercase]: uppercase})}\n >\n {button}\n </li>\n );\n};\n\nButtonItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n href: PropTypes.string,\n color: PropTypes.string,\n neutralColor: PropTypes.bool,\n onClick: PropTypes.func,\n cta: PropTypes.oneOfType([PropTypes.shape(Cta.propTypes), PropTypes.bool]),\n uppercase: PropTypes.bool\n};\n\nexport const InfoItem = ({onClick, index, name, color, neutralColor, title, value, uppercase}) => {\n const handleOnClick = useMemo(\n () => e => {\n onClick && onClick(e);\n },\n [onClick]\n );\n const color_ = neutralColor === true ? NEUTRAL_COLOR : color;\n return (\n <ul data-name={name || `item-info-${index}`} className={style.infoItem}>\n <li className={style.infoItemTitle}>{title}</li>\n <li\n className={classnames(style.infoItemContent, {[style.uppercase]: uppercase})}\n onClick={handleOnClick}\n style={{\n borderLeftColor: color_,\n color: color_\n }}\n >\n {value}\n </li>\n </ul>\n );\n};\n\nInfoItem.propTypes = {\n index: PropTypes.number,\n title: PropTypes.string.isRequired,\n name: PropTypes.string,\n color: PropTypes.string,\n neutralColor: PropTypes.bool,\n value: PropTypes.string.isRequired,\n onClick: PropTypes.func,\n uppercase: PropTypes.bool\n};\n\nconst SidebarItem = ({item, color, index}) => {\n switch (item.type) {\n case 'select': {\n return <SelectItem {...item} color={color} index={index} />;\n }\n case 'multi-select':\n return <MultiSelectItem {...item} color={color} index={index} />;\n case 'link':\n return <LinkItem {...item} color={color} index={index} />;\n case 'iconLink':\n return <IconLinkItem {...item} color={color} index={index} />;\n case 'title':\n return <TitleItem {...item} color={color} index={index} />;\n case 'button':\n return <ButtonItem {...item} color={color} index={index} />;\n case 'info':\n return <InfoItem {...item} color={color} index={index} />;\n case 'inputtext':\n return <InputTextItem {...item} color={color} index={index} />;\n }\n};\n\nSidebarItem.propTypes = {\n item: PropTypes.oneOfType([\n PropTypes.shape({...TitleItem.propTypes, type: PropTypes.oneOf(['title']).isRequired}),\n PropTypes.shape({...IconLinkItem.propTypes, type: PropTypes.oneOf(['iconLink']).isRequired}),\n PropTypes.shape({...ButtonItem.propTypes, type: PropTypes.oneOf(['button']).isRequired}),\n PropTypes.shape({...InfoItem.propTypes, type: PropTypes.oneOf(['info']).isRequired}),\n PropTypes.shape({...LinkItem.propTypes, type: PropTypes.oneOf(['link']).isRequired}),\n PropTypes.shape({...InputTextItem.propTypes, type: PropTypes.oneOf(['inputtext']).isRequired}),\n PropTypes.shape({...SelectItem.propTypes, type: PropTypes.oneOf(['select']).isRequired}),\n PropTypes.shape({...SelectItem.propTypes, type: PropTypes.oneOf(['multi-select']).isRequired})\n ]),\n index: PropTypes.number,\n color: PropTypes.string,\n uppercase: PropTypes.bool\n};\n\nconst SidebarItems = ({items, color}) => {\n return (\n <ul className={style.sectionItems}>\n {items.map((item, index) => (\n <SidebarItem item={item} key={index} index={index} color={color} />\n ))}\n </ul>\n );\n};\n\nSidebarItems.propTypes = {\n color: PropTypes.string,\n items: PropTypes.arrayOf(PropTypes.shape(SidebarItem.propTypes))\n};\n\nconst Sidebar = ({items}, context) => {\n const sections = Array.isArray(items[0]) ? items : [items];\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n return (\n <div data-name=\"sidebar\" className={style.sidebar}>\n {sections.map((sidebarSection, idx) => (\n <div data-name={`sidebarpart-${idx + 1}`} className={style.sidebarPart} key={idx}>\n <SidebarItems items={sidebarSection} color={defaultColor} />\n </div>\n ))}\n </div>\n );\n};\n\nSidebar.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n SidebarItem.propTypes.item,\n PropTypes.arrayOf(SidebarItem.propTypes.item).isRequired\n ])\n ).isRequired\n};\n\nSidebar.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nexport default Sidebar;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAP,IAAeC,OAAf,QAA6B,OAA7B;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,SACEC,uCADF,EAEEC,2BAA2B,IAAIC,UAFjC,QAGO,0BAHP;AAKA,OAAOC,IAAP,MAAiB,iBAAjB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,QAAP,MAAqB,qBAArB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,GA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;IAACQ;EAAD,IAASJ,OAAf;;EACA,MAAMK,YAAY,GAAG,OAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;;EACA,oBACE;IAAK,aAAU,SAAf;IAAyB,SAAS,EAAEjF,KAAK,CAACmF;EAA1C,GACGL,QAAQ,CAACH,GAAT,CAAa,CAACS,cAAD,EAAiBC,GAAjB,kBACZ;IAAK,aAAY,eAAcA,GAAG,GAAG,CAAE,EAAvC;IAA0C,SAAS,EAAErF,KAAK,CAACsF,WAA3D;IAAwE,GAAG,EAAED;EAA7E,gBACE,oBAAC,YAAD;IAAc,KAAK,EAAED,cAArB;IAAqC,KAAK,EAAEF;EAA5C,EADF,CADD,CADH,CADF;AASD,CAbD;;AAeAN,OAAO,CAAC1D,SAAR,2CAAoB;EAClBuD,KAAK,EAAEnF,SAAS,CAACoC,OAAV,CACLpC,SAAS,CAACwE,SAAV,CAAoB,CAClBM,WAAW,CAAClD,SAAZ,CAAsBmD,IADJ,EAElB/E,SAAS,CAACoC,OAAV,CAAkB0C,WAAW,CAAClD,SAAZ,CAAsBmD,IAAxC,EAA8ChD,UAF5B,CAApB,CADK,EAKLA;AANgB,CAApB;AASAuD,OAAO,CAACW,YAAR,GAAuB;EACrBN,IAAI,EAAErF,QAAQ,CAAC4F,iBAAT,CAA2BP;AADZ,CAAvB;AAIA,eAAeL,OAAf"}
@@ -12,6 +12,7 @@
12
12
  @value cm_grey_500 from colors;
13
13
  @value medium from colors;
14
14
  @value transparent from colors;
15
+ @value cm_green_200 from colors;
15
16
 
16
17
  .sidebar {
17
18
  color: dark;
@@ -115,3 +116,16 @@
115
116
  .innerHTML {
116
117
  composes: innerHTML from '../../atom/label/style.css'
117
118
  }
119
+
120
+ .activeIcon {
121
+ width: 16px;
122
+ height: 16px;
123
+ min-width: 16px;
124
+ min-height: 16px;
125
+ padding-right: 12px;
126
+ color: cm_green_200;
127
+ }
128
+
129
+ .itemWithoutIcon {
130
+ padding-left: 43px;
131
+ }