@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
@@ -153,6 +153,11 @@ declare const ContentSkillModal: {
153
153
  size: import("prop-types").Requireable<number>;
154
154
  wrapperSize: import("prop-types").Requireable<number>;
155
155
  }>>;
156
+ imageOverlay: import("prop-types").Requireable<string>;
157
+ contentBadge: import("prop-types").Requireable<import("prop-types").InferProps<{
158
+ category: import("prop-types").Requireable<string>;
159
+ label: import("prop-types").Requireable<string>;
160
+ }>>;
156
161
  image: import("prop-types").Requireable<string>;
157
162
  checkbox: import("prop-types").Requireable<import("prop-types").InferProps<{
158
163
  value: import("prop-types").Requireable<string>;
@@ -170,6 +175,7 @@ declare const ContentSkillModal: {
170
175
  customStyle: import("prop-types").Requireable<{
171
176
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
172
177
  }>;
178
+ className: import("prop-types").Requireable<string>;
173
179
  }>>;
174
180
  }> | null | undefined)[]>;
175
181
  type: import("prop-types").Requireable<string>;
@@ -564,6 +570,7 @@ declare const ContentSkillModal: {
564
570
  customStyle: import("prop-types").Requireable<{
565
571
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
566
572
  }>;
573
+ className: import("prop-types").Requireable<string>;
567
574
  }>>;
568
575
  actionButtons: import("prop-types").Requireable<(import("prop-types").InferProps<{
569
576
  type: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,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QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DvD,CAAC;AAQF,eAAe,iBAAiB,CAAC"}
@@ -150,6 +150,11 @@ declare const ContentSkillModalPropTypes: {
150
150
  size: PropTypes.Requireable<number>;
151
151
  wrapperSize: PropTypes.Requireable<number>;
152
152
  }>>;
153
+ imageOverlay: PropTypes.Requireable<string>;
154
+ contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
155
+ category: PropTypes.Requireable<string>;
156
+ label: PropTypes.Requireable<string>;
157
+ }>>;
153
158
  image: PropTypes.Requireable<string>;
154
159
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
155
160
  value: PropTypes.Requireable<string>;
@@ -167,6 +172,7 @@ declare const ContentSkillModalPropTypes: {
167
172
  customStyle: PropTypes.Requireable<{
168
173
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
169
174
  }>;
175
+ className: PropTypes.Requireable<string>;
170
176
  }>>;
171
177
  }> | null | undefined)[]>;
172
178
  type: PropTypes.Requireable<string>;
@@ -561,6 +567,7 @@ declare const ContentSkillModalPropTypes: {
561
567
  customStyle: PropTypes.Requireable<{
562
568
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
563
569
  }>;
570
+ className: PropTypes.Requireable<string>;
564
571
  }>>;
565
572
  actionButtons: PropTypes.Requireable<(PropTypes.InferProps<{
566
573
  type: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,eAAe,CAAC;AACtC,OAAkC,EAChC,qBAAqB,EACtB,MAAM,8CAA8C,CAAC;AAStD,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAqB,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC"}
@@ -8,15 +8,24 @@ declare const HeaderWithActions: {
8
8
  onClick: import("prop-types").Validator<(...args: any[]) => any>;
9
9
  }>>;
10
10
  title: import("prop-types").Validator<string>;
11
- tag: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
11
+ tags: import("prop-types").Requireable<(import("prop-types").InferProps<{
12
+ status: import("prop-types").Requireable<string>;
13
+ label: import("prop-types").Validator<string>;
14
+ }> | null | undefined)[]>;
15
+ subtitle: import("prop-types").Requireable<string>;
16
+ breadcrumbs: import("prop-types").Requireable<(import("prop-types").InferProps<{
17
+ title: import("prop-types").Validator<string>;
18
+ href: import("prop-types").Requireable<string>;
19
+ }> | null | undefined)[]>;
20
+ tag: import("prop-types").Requireable<import("prop-types").InferProps<{
12
21
  label: import("prop-types").Validator<string>;
13
22
  type: import("prop-types").Validator<string>;
14
23
  size: import("prop-types").Validator<string>;
15
- }>>>;
16
- saveStatus: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
24
+ }>>;
25
+ saveStatus: import("prop-types").Requireable<import("prop-types").InferProps<{
17
26
  display: import("prop-types").Validator<boolean>;
18
27
  label: import("prop-types").Requireable<string>;
19
- }>>>;
28
+ }>>;
20
29
  actionButtons: import("prop-types").Validator<(import("prop-types").InferProps<{
21
30
  type: import("prop-types").Validator<string>;
22
31
  label: import("prop-types").Validator<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AAOA,OAAmC,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAuEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/index.tsx"],"names":[],"mappings":";AASA,OAAmC,EACjC,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAuEjB,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -8,6 +8,8 @@ var _map = _interopRequireDefault(require("lodash/fp/map"));
8
8
  var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
9
9
  var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
10
10
  var _tag = _interopRequireDefault(require("../../atom/tag"));
11
+ var _assignmentStatusTag = _interopRequireDefault(require("../../molecule/assignment-status-tag"));
12
+ var _breadcrumbs = _interopRequireDefault(require("../../molecule/breadcrumbs"));
11
13
  var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
12
14
  var _types = _interopRequireDefault(require("./types"));
13
15
  var _style = _interopRequireDefault(require("./style.css"));
@@ -91,16 +93,22 @@ const HeaderWithActions = props => {
91
93
  closeButton,
92
94
  title,
93
95
  tag,
96
+ tags,
97
+ subtitle,
98
+ breadcrumbs,
94
99
  saveStatus,
95
100
  bulletPointMenuButton,
96
101
  actionButtons,
97
102
  isFetching = false
98
103
  } = props;
104
+ const hasSubtitle = Boolean(subtitle?.trim());
105
+ const hasBreadcrumbs = !(0, _isEmpty.default)(breadcrumbs);
106
+ const hasAdditionalContent = tags !== undefined || hasSubtitle || hasBreadcrumbs;
99
107
  return !isFetching ? /*#__PURE__*/_react.default.createElement("div", {
100
108
  className: _style.default.headerWrapper,
101
109
  "data-name": getDataName('wrapper')
102
110
  }, /*#__PURE__*/_react.default.createElement("div", {
103
- className: _style.default.titleAndButtonWrapper,
111
+ className: hasAdditionalContent ? _style.default.extendedTitleAndButtonWrapper : _style.default.titleAndButtonWrapper,
104
112
  "data-name": getDataName('title-and-button-wrapper')
105
113
  }, /*#__PURE__*/_react.default.createElement(_buttonLinkIcon.default, _extends({}, buildCloseButton({
106
114
  onClick: closeButton.onClick,
@@ -108,15 +116,32 @@ const HeaderWithActions = props => {
108
116
  }), {
109
117
  className: _style.default.button
110
118
  })), /*#__PURE__*/_react.default.createElement("div", {
111
- className: _style.default.titleWrapper
112
- }, /*#__PURE__*/_react.default.createElement("div", {
119
+ className: hasAdditionalContent ? _style.default.extendedTitleWrapper : _style.default.titleWrapper
120
+ }, hasBreadcrumbs ? /*#__PURE__*/_react.default.createElement("div", {
121
+ "data-name": getDataName('breadcrumbs')
122
+ }, /*#__PURE__*/_react.default.createElement(_breadcrumbs.default, {
123
+ breadcrumbs: breadcrumbs
124
+ })) : null, /*#__PURE__*/_react.default.createElement("div", {
113
125
  className: _style.default.statusWrapper
114
- }, /*#__PURE__*/_react.default.createElement(_tag.default, tag), saveStatus.display && saveStatus.label ? /*#__PURE__*/_react.default.createElement("p", {
126
+ }, tags === undefined && tag ? /*#__PURE__*/_react.default.createElement(_tag.default, tag) : null, saveStatus?.display && saveStatus.label ? /*#__PURE__*/_react.default.createElement("p", {
115
127
  className: _style.default.saveStatus
116
- }, saveStatus.label) : null), /*#__PURE__*/_react.default.createElement("h3", {
128
+ }, saveStatus.label) : null), tags !== undefined ? /*#__PURE__*/_react.default.createElement("div", {
129
+ className: _style.default.assignmentTitleRow
130
+ }, /*#__PURE__*/_react.default.createElement("h3", {
131
+ className: _style.default.assignmentTitle,
132
+ "data-name": getDataName('title')
133
+ }, title), /*#__PURE__*/_react.default.createElement("div", {
134
+ className: _style.default.assignmentTags,
135
+ "data-name": getDataName('tags')
136
+ }, tags.map((assignmentTag, index) => /*#__PURE__*/_react.default.createElement(_assignmentStatusTag.default, _extends({}, assignmentTag, {
137
+ key: `${assignmentTag.status}-${assignmentTag.label}-${index}`
138
+ }))))) : /*#__PURE__*/_react.default.createElement("h3", {
117
139
  className: _style.default.title,
118
140
  "data-name": getDataName('title')
119
- }, title))), /*#__PURE__*/_react.default.createElement("div", {
141
+ }, title), hasSubtitle ? /*#__PURE__*/_react.default.createElement("p", {
142
+ className: _style.default.subtitle,
143
+ "data-name": getDataName('subtitle')
144
+ }, subtitle) : null)), /*#__PURE__*/_react.default.createElement("div", {
120
145
  className: _style.default.buttonsWrapper,
121
146
  "data-name": getDataName('buttons-wrapper')
122
147
  }, bulletPointMenuButton && !(0, _isEmpty.default)(bulletPointMenuButton.buttons) ? /*#__PURE__*/_react.default.createElement(_bulletPointMenuButton.default, _extends({}, bulletPointMenuButton, {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_isEmpty","_map","_buttonLink","_buttonLinkIcon","_tag","_bulletPointMenuButton","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getDataName","suffix","uncappedMap","map","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","type","buildActionButton","disabled","base","customStyle","fontWeight","borderRadius","HeaderWithActions","props","closeButton","title","tag","saveStatus","bulletPointMenuButton","actionButtons","isFetching","createElement","className","style","headerWrapper","titleAndButtonWrapper","button","titleWrapper","statusWrapper","display","buttonsWrapper","isEmpty","buttons","action","key","propTypes","process","env","NODE_ENV","HeaderWithActionsPropTypes","_default","exports"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport HeaderWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n },\n onClick,\n type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n const base = {\n type,\n label,\n onClick,\n disabled,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px'\n }\n };\n\n if (iconName && iconColor) {\n return {\n ...base,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n }\n };\n }\n\n return base;\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {\n closeButton,\n title,\n tag,\n saveStatus,\n bulletPointMenuButton,\n actionButtons,\n isFetching = false\n } = props;\n\n return !isFetching ? (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={style.titleAndButtonWrapper}\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={style.titleWrapper}>\n <div className={style.statusWrapper}>\n <Tag {...tag} />\n {saveStatus.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n <h3 className={style.title} data-name={getDataName('title')}>\n {title}\n </h3>\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n data-name={getDataName('bullet-point-menu-button')}\n />\n ) : null}\n {uncappedMap((action: ButtonActionProps, key: string) => {\n return <ButtonLink {...buildActionButton(action)} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n ) : null;\n};\n\nHeaderWithActions.propTypes = HeaderWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,sBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AAKA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAEhC,MAAMO,WAAW,GAAIC,MAAc,IAAK,uBAAuB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AAS,EAAEC,cAAK,CAACR,KAAM;IAAC,aAAW/B,WAAW,CAAC,OAAO;EAAE,GACzD+B,KACC,CACD,CACF,CAAC,eACNzD,MAAA,CAAAa,OAAA,CAAAkD,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACO,cAAe;IAAC,aAAW9C,WAAW,CAAC,iBAAiB;EAAE,GAC7EkC,qBAAqB,IAAI,CAAC,IAAAa,gBAAO,EAACb,qBAAqB,CAACc,OAAO,CAAC,gBAC/D1E,MAAA,CAAAa,OAAA,CAAAkD,aAAA,CAACvD,sBAAA,CAAAK,OAAqB,EAAAC,QAAA,KAChB8C,qBAAqB;IACzBc,OAAO,EAAE9C,WAAW,CAACS,eAAe,EAAEuB,qBAAqB,CAACc,OAAO,CAAE;IACrE,aAAWhD,WAAW,CAAC,0BAA0B;EAAE,EACpD,CAAC,GACA,IAAI,EACPE,WAAW,CAAC,CAAC+C,MAAyB,EAAEC,GAAW,KAAK;IACvD,oBAAO5E,MAAA,CAAAa,OAAA,CAAAkD,aAAA,CAAC1D,WAAA,CAAAQ,OAAU,EAAAC,QAAA,KAAKkC,iBAAiB,CAAC2B,MAAM,CAAC;MAAEC,GAAG,EAAEA;IAAI,EAAE,CAAC;EAChE,CAAC,EAAEf,aAAa,CACb,CACF,CAAC,GACJ,IAAI;AACV,CAAC;AAEDP,iBAAiB,CAACuB,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGC,cAA0B;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtE,OAAA,GAE1CyC,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_isEmpty","_map","_buttonLink","_buttonLinkIcon","_tag","_assignmentStatusTag","_breadcrumbs","_bulletPointMenuButton","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","getDataName","suffix","uncappedMap","map","convert","cap","buildCloseButton","onClick","ariaLabel","size","icon","buildButtonMenu","dataName","label","iconName","iconColor","buttonLinkType","position","faIcon","name","color","type","buildActionButton","disabled","base","customStyle","fontWeight","borderRadius","HeaderWithActions","props","closeButton","title","tag","tags","subtitle","breadcrumbs","saveStatus","bulletPointMenuButton","actionButtons","isFetching","hasSubtitle","Boolean","trim","hasBreadcrumbs","isEmpty","hasAdditionalContent","undefined","createElement","className","style","headerWrapper","extendedTitleAndButtonWrapper","titleAndButtonWrapper","button","extendedTitleWrapper","titleWrapper","statusWrapper","display","assignmentTitleRow","assignmentTitle","assignmentTags","assignmentTag","index","key","status","buttonsWrapper","buttons","action","propTypes","process","env","NODE_ENV","HeaderWithActionsPropTypes","_default","exports"],"sources":["../../../src/organism/header-with-actions/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport map from 'lodash/fp/map';\nimport ButtonLink from '../../atom/button-link';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Tag from '../../atom/tag';\nimport AssignmentStatusTag from '../../molecule/assignment-status-tag';\nimport Breadcrumbs from '../../molecule/breadcrumbs';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\nimport HeaderWithActionsPropTypes, {\n HeaderWithActionsProps,\n ButtonMenuProps,\n ButtonActionProps\n} from './types';\nimport style from './style.css';\n\nconst getDataName = (suffix: string) => `header-with-actions-${suffix}`;\n// @ts-expect-error (need to get the index)\nconst uncappedMap = map.convert({cap: false});\n\nconst buildCloseButton = ({onClick, ariaLabel}: {onClick: () => void; ariaLabel: string}) => {\n return {\n size: 'default',\n icon: 'close',\n 'data-name': 'close-button',\n 'aria-label': ariaLabel,\n onClick\n };\n};\n\nconst buildButtonMenu = ({dataName, label, iconName, iconColor, onClick}: ButtonMenuProps) => {\n return {\n 'data-name': dataName,\n label,\n buttonLinkType: 'tertiary',\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n },\n onClick,\n type: iconName === 'trash' ? 'dangerousLeft' : 'defaultLeft'\n };\n};\n\nconst buildActionButton = ({\n type,\n label,\n onClick,\n disabled,\n iconName,\n iconColor\n}: ButtonActionProps) => {\n const base = {\n type,\n label,\n onClick,\n disabled,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px'\n }\n };\n\n if (iconName && iconColor) {\n return {\n ...base,\n icon: {\n position: 'left' as const,\n faIcon: {\n name: iconName,\n color: iconColor,\n size: 14\n }\n }\n };\n }\n\n return base;\n};\n\nconst HeaderWithActions = (props: HeaderWithActionsProps) => {\n const {\n closeButton,\n title,\n tag,\n tags,\n subtitle,\n breadcrumbs,\n saveStatus,\n bulletPointMenuButton,\n actionButtons,\n isFetching = false\n } = props;\n const hasSubtitle = Boolean(subtitle?.trim());\n const hasBreadcrumbs = !isEmpty(breadcrumbs);\n const hasAdditionalContent = tags !== undefined || hasSubtitle || hasBreadcrumbs;\n\n return !isFetching ? (\n <div className={style.headerWrapper} data-name={getDataName('wrapper')}>\n <div\n className={\n hasAdditionalContent ? style.extendedTitleAndButtonWrapper : style.titleAndButtonWrapper\n }\n data-name={getDataName('title-and-button-wrapper')}\n >\n <ButtonLinkIcon\n {...buildCloseButton({\n onClick: closeButton.onClick,\n ariaLabel: closeButton['aria-label']\n })}\n className={style.button}\n />\n <div className={hasAdditionalContent ? style.extendedTitleWrapper : style.titleWrapper}>\n {hasBreadcrumbs ? (\n <div data-name={getDataName('breadcrumbs')}>\n <Breadcrumbs breadcrumbs={breadcrumbs} />\n </div>\n ) : null}\n <div className={style.statusWrapper}>\n {tags === undefined && tag ? <Tag {...tag} /> : null}\n {saveStatus?.display && saveStatus.label ? (\n <p className={style.saveStatus}>{saveStatus.label}</p>\n ) : null}\n </div>\n {tags !== undefined ? (\n <div className={style.assignmentTitleRow}>\n <h3 className={style.assignmentTitle} data-name={getDataName('title')}>\n {title}\n </h3>\n <div className={style.assignmentTags} data-name={getDataName('tags')}>\n {tags.map((assignmentTag, index) => (\n <AssignmentStatusTag\n {...assignmentTag}\n key={`${assignmentTag.status}-${assignmentTag.label}-${index}`}\n />\n ))}\n </div>\n </div>\n ) : (\n <h3 className={style.title} data-name={getDataName('title')}>\n {title}\n </h3>\n )}\n {hasSubtitle ? (\n <p className={style.subtitle} data-name={getDataName('subtitle')}>\n {subtitle}\n </p>\n ) : null}\n </div>\n </div>\n <div className={style.buttonsWrapper} data-name={getDataName('buttons-wrapper')}>\n {bulletPointMenuButton && !isEmpty(bulletPointMenuButton.buttons) ? (\n <BulletPointMenuButton\n {...bulletPointMenuButton}\n buttons={uncappedMap(buildButtonMenu, bulletPointMenuButton.buttons)}\n data-name={getDataName('bullet-point-menu-button')}\n />\n ) : null}\n {uncappedMap((action: ButtonActionProps, key: string) => {\n return <ButtonLink {...buildActionButton(action)} key={key} />;\n }, actionButtons)}\n </div>\n </div>\n ) : null;\n};\n\nHeaderWithActions.propTypes = HeaderWithActionsPropTypes;\n\nexport default HeaderWithActions;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,eAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,IAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,oBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,YAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,sBAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,MAAA,GAAAV,sBAAA,CAAAC,OAAA;AAKA,IAAAU,MAAA,GAAAX,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAY,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,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,CAAAe,OAAA,CAAA4D,aAAA,CAACtE,WAAA,CAAAU,OAAU,EAAAC,QAAA,KAAKkC,iBAAiB,CAAC6C,MAAM,CAAC;MAAEJ,GAAG,EAAEA;IAAI,EAAE,CAAC;EAChE,CAAC,EAAEzB,aAAa,CACb,CACF,CAAC,GACJ,IAAI;AACV,CAAC;AAEDV,iBAAiB,CAACwC,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGC,cAA0B;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvF,OAAA,GAE1CyC,iBAAiB","ignoreList":[]}
@@ -53,3 +53,45 @@
53
53
  display: flex;
54
54
  gap: 10px;
55
55
  }
56
+
57
+ .assignmentTitleRow {
58
+ display: flex;
59
+ align-items: center;
60
+ flex-wrap: wrap;
61
+ gap: 10px;
62
+ }
63
+
64
+ .assignmentTitle {
65
+ composes: title;
66
+ margin: 0;
67
+ overflow-wrap: anywhere;
68
+ }
69
+
70
+ .assignmentTags {
71
+ display: flex;
72
+ align-items: center;
73
+ flex-wrap: wrap;
74
+ gap: 5px;
75
+ }
76
+
77
+ .extendedTitleAndButtonWrapper {
78
+ composes: titleAndButtonWrapper;
79
+ min-width: 0;
80
+ flex: 1;
81
+ }
82
+
83
+ .extendedTitleWrapper {
84
+ composes: titleWrapper;
85
+ min-width: 0;
86
+ width: 100%;
87
+ }
88
+
89
+ .subtitle {
90
+ composes: saveStatus;
91
+ font-size: 12px;
92
+ line-height: 18px;
93
+ max-width: 100%;
94
+ white-space: nowrap;
95
+ overflow: hidden;
96
+ text-overflow: ellipsis;
97
+ }
@@ -5,15 +5,24 @@ declare const HeaderWithActionsPropTypes: {
5
5
  onClick: PropTypes.Validator<(...args: any[]) => any>;
6
6
  }>>;
7
7
  title: PropTypes.Validator<string>;
8
- tag: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
8
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
9
+ status: PropTypes.Requireable<string>;
10
+ label: PropTypes.Validator<string>;
11
+ }> | null | undefined)[]>;
12
+ subtitle: PropTypes.Requireable<string>;
13
+ breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
14
+ title: PropTypes.Validator<string>;
15
+ href: PropTypes.Requireable<string>;
16
+ }> | null | undefined)[]>;
17
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
9
18
  label: PropTypes.Validator<string>;
10
19
  type: PropTypes.Validator<string>;
11
20
  size: PropTypes.Validator<string>;
12
- }>>>;
13
- saveStatus: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
21
+ }>>;
22
+ saveStatus: PropTypes.Requireable<PropTypes.InferProps<{
14
23
  display: PropTypes.Validator<boolean>;
15
24
  label: PropTypes.Requireable<string>;
16
- }>>>;
25
+ }>>;
17
26
  actionButtons: PropTypes.Validator<(PropTypes.InferProps<{
18
27
  type: PropTypes.Validator<string>;
19
28
  label: PropTypes.Validator<string>;
@@ -72,8 +81,17 @@ export declare type ButtonActionProps = {
72
81
  export declare type HeaderWithActionsProps = {
73
82
  closeButton: CloseButtonProps;
74
83
  title: string;
75
- tag: TagProps;
76
- saveStatus: SaveStatusProps;
84
+ tags?: Array<{
85
+ status?: string;
86
+ label: string;
87
+ }>;
88
+ subtitle?: string;
89
+ breadcrumbs?: Array<{
90
+ title: string;
91
+ href?: string;
92
+ }>;
93
+ tag?: TagProps;
94
+ saveStatus?: SaveStatusProps;
77
95
  actionButtons: ButtonActionProps[];
78
96
  bulletPointMenuButton?: BulletPointMenuButtonProps;
79
97
  isFetching?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/header-with-actions/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmBnC,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB/B,CAAC;AAEF,eAAe,0BAA0B,CAAC;AAE1C,aAAK,QAAQ,GAAG;IACd,KAAK,EAAE,WA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AAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC;IACpD,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,qBAAqB,CAAC,EAAE,0BAA0B,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC"}
@@ -3,6 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
  var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ var _types = _interopRequireDefault(require("../../molecule/assignment-status-tag/types"));
7
+ var _breadcrumbs = _interopRequireDefault(require("../../molecule/breadcrumbs"));
6
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
9
  const ButtonMenuPropTypes = {
8
10
  dataName: _propTypes.default.string,
@@ -25,15 +27,18 @@ const HeaderWithActionsPropTypes = {
25
27
  onClick: _propTypes.default.func.isRequired
26
28
  }),
27
29
  title: _propTypes.default.string.isRequired,
30
+ tags: _propTypes.default.arrayOf(_propTypes.default.shape(_types.default)),
31
+ subtitle: _propTypes.default.string,
32
+ breadcrumbs: _breadcrumbs.default.propTypes.breadcrumbs,
28
33
  tag: _propTypes.default.shape({
29
34
  label: _propTypes.default.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,
30
35
  type: _propTypes.default.oneOf(['success', 'progress', 'warning']).isRequired,
31
36
  size: _propTypes.default.string.isRequired
32
- }).isRequired,
37
+ }),
33
38
  saveStatus: _propTypes.default.shape({
34
39
  display: _propTypes.default.bool.isRequired,
35
40
  label: _propTypes.default.oneOf(['Unsaved changes', 'Saved'])
36
- }).isRequired,
41
+ }),
37
42
  actionButtons: _propTypes.default.arrayOf(_propTypes.default.shape(ButtonActionPropTypes)).isRequired,
38
43
  bulletPointMenuButton: _propTypes.default.shape({
39
44
  buttons: _propTypes.default.arrayOf(_propTypes.default.shape(ButtonMenuPropTypes)).isRequired,
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","e","__esModule","default","ButtonMenuPropTypes","dataName","PropTypes","string","label","isRequired","iconName","iconColor","onClick","func","ButtonActionPropTypes","type","oneOf","disabled","bool","HeaderWithActionsPropTypes","closeButton","shape","title","tag","size","saveStatus","display","actionButtons","arrayOf","bulletPointMenuButton","buttons","buttonAriaLabel","isFetching","_default","exports"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nconst ButtonMenuPropTypes = {\n dataName: PropTypes.string,\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonActionPropTypes = {\n type: PropTypes.oneOf(['primary', 'secondary']).isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string,\n iconColor: PropTypes.string\n};\n\nconst HeaderWithActionsPropTypes = {\n closeButton: PropTypes.shape({\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func.isRequired\n }),\n title: PropTypes.string.isRequired,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }).isRequired,\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }).isRequired,\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes)).isRequired,\n bulletPointMenuButton: PropTypes.shape({\n buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,\n buttonAriaLabel: PropTypes.string,\n disabled: PropTypes.bool.isRequired\n }),\n isFetching: PropTypes.bool\n};\n\nexport default HeaderWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type ButtonMenuProps = {\n dataName: string;\n label: string;\n iconName: string;\n iconColor: string;\n onClick: () => void;\n};\n\ntype BulletPointMenuButtonProps = {\n buttons: ButtonMenuProps[];\n buttonAriaLabel?: string;\n disabled: boolean;\n};\n\nexport type ButtonActionProps = {\n type: 'primary' | 'secondary';\n label: string;\n onClick: () => void;\n disabled?: boolean;\n iconName?: string;\n iconColor?: string;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tag: TagProps;\n saveStatus: SaveStatusProps;\n actionButtons: ButtonActionProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\n isFetching?: boolean;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,C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AS,CAACC,MAAM,CAACE;EACzB,CAAC,CAAC,CAACA,UAAU;EACbgB,UAAU,EAAEnB,kBAAS,CAACe,KAAK,CAAC;IAC1BK,OAAO,EAAEpB,kBAAS,CAACY,IAAI,CAACT,UAAU;IAClCD,KAAK,EAAEF,kBAAS,CAACU,KAAK,CAAC,CAAC,iBAAiB,EAAE,OAAO,CAAC;EACrD,CAAC,CAAC,CAACP,UAAU;EACbkB,aAAa,EAAErB,kBAAS,CAACsB,OAAO,CAACtB,kBAAS,CAACe,KAAK,CAACP,qBAAqB,CAAC,CAAC,CAACL,UAAU;EACnFoB,qBAAqB,EAAEvB,kBAAS,CAACe,KAAK,CAAC;IACrCS,OAAO,EAAExB,kBAAS,CAACsB,OAAO,CAACtB,kBAAS,CAACe,KAAK,CAACjB,mBAAmB,CAAC,CAAC,CAACK,UAAU;IAC3EsB,eAAe,EAAEzB,kBAAS,CAACC,MAAM;IACjCU,QAAQ,EAAEX,kBAAS,CAACY,IAAI,CAACT;EAC3B,CAAC,CAAC;EACFuB,UAAU,EAAE1B,kBAAS,CAACY;AACxB,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,CAAA/B,OAAA,GAEagB,0BAA0B","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_types","_breadcrumbs","e","__esModule","default","ButtonMenuPropTypes","dataName","PropTypes","string","label","isRequired","iconName","iconColor","onClick","func","ButtonActionPropTypes","type","oneOf","disabled","bool","HeaderWithActionsPropTypes","closeButton","shape","title","tags","arrayOf","AssignmentStatusTagPropTypes","subtitle","breadcrumbs","Breadcrumbs","propTypes","tag","size","saveStatus","display","actionButtons","bulletPointMenuButton","buttons","buttonAriaLabel","isFetching","_default","exports"],"sources":["../../../src/organism/header-with-actions/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport AssignmentStatusTagPropTypes from '../../molecule/assignment-status-tag/types';\nimport Breadcrumbs from '../../molecule/breadcrumbs';\n\nconst ButtonMenuPropTypes = {\n dataName: PropTypes.string,\n label: PropTypes.string.isRequired,\n iconName: PropTypes.string.isRequired,\n iconColor: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n};\n\nconst ButtonActionPropTypes = {\n type: PropTypes.oneOf(['primary', 'secondary']).isRequired,\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n disabled: PropTypes.bool,\n iconName: PropTypes.string,\n iconColor: PropTypes.string\n};\n\nconst HeaderWithActionsPropTypes = {\n closeButton: PropTypes.shape({\n 'aria-label': PropTypes.string,\n onClick: PropTypes.func.isRequired\n }),\n title: PropTypes.string.isRequired,\n tags: PropTypes.arrayOf(PropTypes.shape(AssignmentStatusTagPropTypes)),\n subtitle: PropTypes.string,\n breadcrumbs: Breadcrumbs.propTypes.breadcrumbs,\n tag: PropTypes.shape({\n label: PropTypes.oneOf(['Published', 'Ongoing changes', 'Draft', 'Archived']).isRequired,\n type: PropTypes.oneOf(['success', 'progress', 'warning']).isRequired,\n size: PropTypes.string.isRequired\n }),\n saveStatus: PropTypes.shape({\n display: PropTypes.bool.isRequired,\n label: PropTypes.oneOf(['Unsaved changes', 'Saved'])\n }),\n actionButtons: PropTypes.arrayOf(PropTypes.shape(ButtonActionPropTypes)).isRequired,\n bulletPointMenuButton: PropTypes.shape({\n buttons: PropTypes.arrayOf(PropTypes.shape(ButtonMenuPropTypes)).isRequired,\n buttonAriaLabel: PropTypes.string,\n disabled: PropTypes.bool.isRequired\n }),\n isFetching: PropTypes.bool\n};\n\nexport default HeaderWithActionsPropTypes;\n\ntype TagProps = {\n label: 'Published' | 'Ongoing changes' | 'Draft' | 'Archived';\n type: 'success' | 'progress' | 'warning';\n size: string;\n};\n\ntype SaveStatusProps = {\n display: boolean;\n label?: 'Unsaved changes' | 'Saved';\n};\n\ntype CloseButtonProps = {\n 'aria-label': string;\n onClick: () => void;\n};\n\nexport type ButtonMenuProps = {\n dataName: string;\n label: string;\n iconName: string;\n iconColor: string;\n onClick: () => void;\n};\n\ntype BulletPointMenuButtonProps = {\n buttons: ButtonMenuProps[];\n buttonAriaLabel?: string;\n disabled: boolean;\n};\n\nexport type ButtonActionProps = {\n type: 'primary' | 'secondary';\n label: string;\n onClick: () => void;\n disabled?: boolean;\n iconName?: string;\n iconColor?: string;\n};\n\nexport type HeaderWithActionsProps = {\n closeButton: CloseButtonProps;\n title: string;\n tags?: Array<{status?: string; label: string}>;\n subtitle?: string;\n breadcrumbs?: Array<{title: string; href?: string}>;\n tag?: TagProps;\n saveStatus?: SaveStatusProps;\n actionButtons: ButtonActionProps[];\n bulletPointMenuButton?: BulletPointMenuButtonProps;\n isFetching?: boolean;\n};\n\nexport type HeaderWithActionsPropsFixture = {props: HeaderWithActionsProps};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAqD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAErD,MAAMG,mBAAmB,GAAG;EAC1BC,QAAQ,EAAEC,kBAAS,CAACC,MAAM;EAC1BC,KAAK,EAAEF,kBAAS,CAACC,MAAM,CAACE,UAAU;EAClCC,QAAQ,EAAEJ,kBAAS,CAACC,MAAM,CAACE,UAAU;EACrCE,SAAS,EAAEL,kBAAS,CAACC,MAAM,CAACE,UAAU;EACtCG,OAAO,EAAEN,kBAAS,CAACO,IAAI,CAACJ;AAC1B,CAAC;AAED,MAAMK,qBAAqB,GAAG;EAC5BC,IAAI,EAAET,kBAAS,CAACU,KAAK,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAACP,UAAU;EAC1DD,KAAK,EAAEF,kBAAS,CAACC,MAAM,CAACE,UAAU;EAClCG,OAAO,EAAEN,kBAAS,CAACO,IAAI,CAACJ,UAAU;EAClCQ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CAAC;IACrCe,OAAO,EAAE9B,kBAAS,CAACkB,OAAO,CAAClB,kBAAS,CAACe,KAAK,CAACjB,mBAAmB,CAAC,CAAC,CAACK,UAAU;IAC3E4B,eAAe,EAAE/B,kBAAS,CAACC,MAAM;IACjCU,QAAQ,EAAEX,kBAAS,CAACY,IAAI,CAACT;EAC3B,CAAC,CAAC;EACF6B,UAAU,EAAEhC,kBAAS,CAACY;AACxB,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAArC,OAAA,GAEagB,0BAA0B","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  export default ListItem;
2
- declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, provider, selected, selectedColor, subtitle, titleTags, details, progress, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick, leftIcon, image, checkbox, "data-name": dataName }: {
2
+ declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, provider, selected, selectedColor, subtitle, titleTags, details, progress, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick, leftIcon, image, imageOverlay, contentBadge, checkbox, "data-name": dataName }: {
3
3
  buttonLink: any;
4
4
  secondButtonLink: any;
5
5
  bulletPointMenuButton: any;
@@ -22,6 +22,8 @@ declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton,
22
22
  onClick?: import("lodash/fp").LodashNoop | undefined;
23
23
  leftIcon: any;
24
24
  image: any;
25
+ imageOverlay: any;
26
+ contentBadge: any;
25
27
  checkbox: any;
26
28
  "data-name": any;
27
29
  }, context: any): JSX.Element;
@@ -129,6 +131,11 @@ declare namespace ListItem {
129
131
  size: PropTypes.Requireable<number>;
130
132
  wrapperSize: PropTypes.Requireable<number>;
131
133
  }>>;
134
+ imageOverlay: PropTypes.Requireable<string>;
135
+ contentBadge: PropTypes.Requireable<PropTypes.InferProps<{
136
+ category: PropTypes.Requireable<string>;
137
+ label: PropTypes.Requireable<string>;
138
+ }>>;
132
139
  image: PropTypes.Requireable<string>;
133
140
  checkbox: PropTypes.Requireable<PropTypes.InferProps<{
134
141
  value: PropTypes.Requireable<string>;
@@ -146,6 +153,7 @@ declare namespace ListItem {
146
153
  customStyle: PropTypes.Requireable<{
147
154
  [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
148
155
  }>;
156
+ className: PropTypes.Requireable<string>;
149
157
  }>>;
150
158
  };
151
159
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;8BA4KC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA0LC"}
@@ -20,6 +20,8 @@ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
20
20
  var _bulletPointMenuButton = _interopRequireDefault(require("../../molecule/bullet-point-menu-button"));
21
21
  var _colors = require("../../variables/colors");
22
22
  var _cardImagePreview = _interopRequireDefault(require("../../atom/card-image-preview"));
23
+ var _selectable = _interopRequireDefault(require("../../molecule/card/selectable"));
24
+ var _contentBadge = _interopRequireDefault(require("../../atom/content-badge"));
23
25
  var _checkboxWithTitle = _interopRequireDefault(require("../../atom/checkbox-with-title"));
24
26
  var _progressBar = _interopRequireDefault(require("../../molecule/progress-bar"));
25
27
  var _style = _interopRequireDefault(require("./style.css"));
@@ -54,6 +56,8 @@ const ListItem = ({
54
56
  onClick = _noop2.default,
55
57
  leftIcon,
56
58
  image,
59
+ imageOverlay,
60
+ contentBadge,
57
61
  checkbox,
58
62
  'data-name': dataName
59
63
  }, context) => {
@@ -110,10 +114,17 @@ const ListItem = ({
110
114
  preset: leftIcon.preset || 'xl',
111
115
  borderRadius: leftIcon.borderRadius || '25%'
112
116
  }) : null, !leftIcon && image ? /*#__PURE__*/_react.default.createElement("div", {
113
- className: _style.default.containerImage
117
+ className: (0, _classnames.default)(_style.default.containerImage, imageOverlay && _style.default.imageWithOverlay)
114
118
  }, /*#__PURE__*/_react.default.createElement(_cardImagePreview.default, {
115
119
  image: image
116
- })) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
120
+ }), imageOverlay === 'hidden' ? /*#__PURE__*/_react.default.createElement("div", {
121
+ className: _style.default.imageOverlay,
122
+ "aria-hidden": "true",
123
+ "data-name": "content-image-overlay"
124
+ }, /*#__PURE__*/_react.default.createElement(_selectable.default, {
125
+ isSelected: true,
126
+ hidden: true
127
+ })) : null) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
117
128
  className: _style.default.titleWrapper
118
129
  }, /*#__PURE__*/_react.default.createElement("div", {
119
130
  className: _style.default.titleProviderWrapper
@@ -152,7 +163,7 @@ const ListItem = ({
152
163
  className: _style.default.progressLabel
153
164
  }, progress.label)) : null), dataColumnsView), /*#__PURE__*/_react.default.createElement("div", {
154
165
  className: _style.default.settings
155
- }, tagsView, selected ? /*#__PURE__*/_react.default.createElement(_icon.default, {
166
+ }, tagsView, contentBadge ? /*#__PURE__*/_react.default.createElement(_contentBadge.default, contentBadge) : null, selected ? /*#__PURE__*/_react.default.createElement(_icon.default, {
156
167
  iconName: "circle-check",
157
168
  iconColor: primarySelectedColor,
158
169
  backgroundColor: _colors.COLORS.white,
@@ -250,6 +261,8 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
250
261
  size: _propTypes.default.number,
251
262
  wrapperSize: _propTypes.default.number
252
263
  }),
264
+ imageOverlay: _propTypes.default.oneOf(['hidden']),
265
+ contentBadge: _propTypes.default.shape(_contentBadge.default.propTypes),
253
266
  image: _propTypes.default.string,
254
267
  checkbox: _propTypes.default.shape(_checkboxWithTitle.default.propTypes)
255
268
  } : {};