@coorpacademy/components 11.19.1-alpha.4 → 11.19.1

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 (181) hide show
  1. package/es/atom/button-link/index.js +2 -2
  2. package/es/atom/button-link/index.js.map +1 -1
  3. package/es/atom/button-link/style.css +1 -0
  4. package/es/atom/drag-and-drop/index.d.ts +1 -0
  5. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  6. package/es/atom/drag-and-drop/index.js +24 -6
  7. package/es/atom/drag-and-drop/index.js.map +1 -1
  8. package/es/atom/drag-and-drop/style.css +22 -7
  9. package/es/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  10. package/es/atom/input-file-draggable/index.d.ts.map +1 -0
  11. package/es/atom/{image-upload → input-file-draggable}/index.js +34 -11
  12. package/es/atom/input-file-draggable/index.js.map +1 -0
  13. package/es/atom/input-file-draggable/style.css +81 -0
  14. package/es/atom/title/style.css +1 -1
  15. package/es/atom/video-upload/index.d.ts +1 -0
  16. package/es/molecule/brand-form-group/index.js +5 -5
  17. package/es/molecule/brand-form-group/index.js.map +1 -1
  18. package/es/molecule/card/index.d.ts.map +1 -1
  19. package/es/molecule/card/index.js +2 -6
  20. package/es/molecule/card/index.js.map +1 -1
  21. package/es/molecule/card/style.css +2 -2
  22. package/es/molecule/cm-popin/index.d.ts.map +1 -1
  23. package/es/molecule/cm-popin/index.js +27 -20
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +112 -73
  26. package/es/molecule/cm-popin/types.d.ts +182 -5
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +5 -3
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  31. package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
  32. package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  33. package/es/molecule/setup-slider/index.js +3 -3
  34. package/es/molecule/setup-slider/index.js.map +1 -1
  35. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
  36. package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
  37. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  38. package/es/molecule/title-radio-wrapper/index.js +2 -2
  39. package/es/molecule/title-radio-wrapper/index.js.map +1 -1
  40. package/es/molecule/title-radio-wrapper/types.d.ts +20 -19
  41. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  42. package/es/molecule/title-radio-wrapper/types.js +2 -2
  43. package/es/molecule/title-radio-wrapper/types.js.map +1 -1
  44. package/es/organism/list-item/index.d.ts.map +1 -1
  45. package/es/organism/list-item/index.js +2 -5
  46. package/es/organism/list-item/index.js.map +1 -1
  47. package/es/organism/list-item/style.css +3 -7
  48. package/es/organism/list-items/index.d.ts.map +1 -1
  49. package/es/organism/list-items/index.js +1 -3
  50. package/es/organism/list-items/index.js.map +1 -1
  51. package/es/organism/list-items/style.css +1 -4
  52. package/es/organism/rewards-form/index.d.ts +2 -1
  53. package/es/organism/select-opponents/index.d.ts +18 -17
  54. package/es/organism/select-opponents/index.d.ts.map +1 -1
  55. package/es/organism/select-opponents/types.d.ts +18 -17
  56. package/es/organism/select-opponents/types.d.ts.map +1 -1
  57. package/es/organism/setup-header/style.css +3 -1
  58. package/es/organism/title-and-input/index.d.ts +18 -17
  59. package/es/organism/title-and-input/index.d.ts.map +1 -1
  60. package/es/organism/title-and-input/types.d.ts +18 -17
  61. package/es/organism/title-and-input/types.d.ts.map +1 -1
  62. package/es/organism/wizard-contents/index.d.ts +2 -1
  63. package/es/template/app-player/loading/index.d.ts +178 -2
  64. package/es/template/app-player/player/index.d.ts +356 -4
  65. package/es/template/app-player/player/slides/index.d.ts +178 -2
  66. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  67. package/es/template/app-player/popin-correction/index.d.ts +178 -2
  68. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  69. package/es/template/app-player/popin-end/index.d.ts +178 -2
  70. package/es/template/app-review/index.d.ts +178 -2
  71. package/es/template/app-review/index.d.ts.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts +178 -2
  73. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/prop-types.d.ts +178 -2
  75. package/es/template/app-review/prop-types.d.ts.map +1 -1
  76. package/es/template/back-office/brand-update/index.d.ts +178 -2
  77. package/es/template/cockpit/jw-uploader/index.d.ts +1 -0
  78. package/es/template/common/dashboard/index.d.ts +356 -4
  79. package/es/template/common/search-page/index.d.ts +178 -2
  80. package/es/template/common/search-page/index.d.ts.map +1 -1
  81. package/es/template/common/search-page/index.js +2 -20
  82. package/es/template/common/search-page/index.js.map +1 -1
  83. package/es/template/external-course/index.d.ts +178 -2
  84. package/es/util/proptypes.d.ts +1 -1
  85. package/es/util/proptypes.d.ts.map +1 -1
  86. package/es/util/proptypes.js +6 -5
  87. package/es/util/proptypes.js.map +1 -1
  88. package/lib/atom/button-link/index.js +2 -2
  89. package/lib/atom/button-link/index.js.map +1 -1
  90. package/lib/atom/button-link/style.css +1 -0
  91. package/lib/atom/drag-and-drop/index.d.ts +1 -0
  92. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  93. package/lib/atom/drag-and-drop/index.js +24 -6
  94. package/lib/atom/drag-and-drop/index.js.map +1 -1
  95. package/lib/atom/drag-and-drop/style.css +22 -7
  96. package/lib/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
  97. package/lib/atom/input-file-draggable/index.d.ts.map +1 -0
  98. package/lib/atom/{image-upload → input-file-draggable}/index.js +34 -10
  99. package/lib/atom/input-file-draggable/index.js.map +1 -0
  100. package/lib/atom/input-file-draggable/style.css +81 -0
  101. package/lib/atom/title/style.css +1 -1
  102. package/lib/atom/video-upload/index.d.ts +1 -0
  103. package/lib/molecule/brand-form-group/index.js +5 -5
  104. package/lib/molecule/brand-form-group/index.js.map +1 -1
  105. package/lib/molecule/card/index.d.ts.map +1 -1
  106. package/lib/molecule/card/index.js +2 -6
  107. package/lib/molecule/card/index.js.map +1 -1
  108. package/lib/molecule/card/style.css +2 -2
  109. package/lib/molecule/cm-popin/index.d.ts.map +1 -1
  110. package/lib/molecule/cm-popin/index.js +29 -19
  111. package/lib/molecule/cm-popin/index.js.map +1 -1
  112. package/lib/molecule/cm-popin/style.css +112 -73
  113. package/lib/molecule/cm-popin/types.d.ts +182 -5
  114. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  115. package/lib/molecule/cm-popin/types.js +6 -3
  116. package/lib/molecule/cm-popin/types.js.map +1 -1
  117. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
  118. package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
  119. package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
  120. package/lib/molecule/setup-slider/index.js +3 -3
  121. package/lib/molecule/setup-slider/index.js.map +1 -1
  122. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
  123. package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
  124. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  125. package/lib/molecule/title-radio-wrapper/index.js +2 -2
  126. package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
  127. package/lib/molecule/title-radio-wrapper/types.d.ts +20 -19
  128. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  129. package/lib/molecule/title-radio-wrapper/types.js +2 -2
  130. package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
  131. package/lib/organism/list-item/index.d.ts.map +1 -1
  132. package/lib/organism/list-item/index.js +3 -5
  133. package/lib/organism/list-item/index.js.map +1 -1
  134. package/lib/organism/list-item/style.css +3 -7
  135. package/lib/organism/list-items/index.d.ts.map +1 -1
  136. package/lib/organism/list-items/index.js +1 -3
  137. package/lib/organism/list-items/index.js.map +1 -1
  138. package/lib/organism/list-items/style.css +1 -4
  139. package/lib/organism/rewards-form/index.d.ts +2 -1
  140. package/lib/organism/select-opponents/index.d.ts +18 -17
  141. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  142. package/lib/organism/select-opponents/types.d.ts +18 -17
  143. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  144. package/lib/organism/setup-header/style.css +3 -1
  145. package/lib/organism/title-and-input/index.d.ts +18 -17
  146. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  147. package/lib/organism/title-and-input/types.d.ts +18 -17
  148. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  149. package/lib/organism/wizard-contents/index.d.ts +2 -1
  150. package/lib/template/app-player/loading/index.d.ts +178 -2
  151. package/lib/template/app-player/player/index.d.ts +356 -4
  152. package/lib/template/app-player/player/slides/index.d.ts +178 -2
  153. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  154. package/lib/template/app-player/popin-correction/index.d.ts +178 -2
  155. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  156. package/lib/template/app-player/popin-end/index.d.ts +178 -2
  157. package/lib/template/app-review/index.d.ts +178 -2
  158. package/lib/template/app-review/index.d.ts.map +1 -1
  159. package/lib/template/app-review/player/prop-types.d.ts +178 -2
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/prop-types.d.ts +178 -2
  162. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  163. package/lib/template/back-office/brand-update/index.d.ts +178 -2
  164. package/lib/template/cockpit/jw-uploader/index.d.ts +1 -0
  165. package/lib/template/common/dashboard/index.d.ts +356 -4
  166. package/lib/template/common/search-page/index.d.ts +178 -2
  167. package/lib/template/common/search-page/index.d.ts.map +1 -1
  168. package/lib/template/common/search-page/index.js +2 -24
  169. package/lib/template/common/search-page/index.js.map +1 -1
  170. package/lib/template/external-course/index.d.ts +178 -2
  171. package/lib/util/proptypes.d.ts +1 -1
  172. package/lib/util/proptypes.d.ts.map +1 -1
  173. package/lib/util/proptypes.js +10 -7
  174. package/lib/util/proptypes.js.map +1 -1
  175. package/package.json +3 -3
  176. package/es/atom/image-upload/index.d.ts.map +0 -1
  177. package/es/atom/image-upload/index.js.map +0 -1
  178. package/es/atom/image-upload/style.css +0 -28
  179. package/lib/atom/image-upload/index.d.ts.map +0 -1
  180. package/lib/atom/image-upload/index.js.map +0 -1
  181. package/lib/atom/image-upload/style.css +0 -28
@@ -73,9 +73,11 @@
73
73
  line-height: 20px;
74
74
  margin: 0;
75
75
  }
76
+
76
77
  .message p {
77
78
  margin: 10px 0px;
78
79
  }
80
+
79
81
  @keyframes popup {
80
82
  0% {
81
83
  transform: scale(0);
@@ -140,25 +142,21 @@
140
142
  }
141
143
 
142
144
  .headerContent {
145
+ gap: 16px;
143
146
  display: flex;
147
+ justify-content: start;
148
+ align-items: center;
144
149
  width: 100%;
145
- gap: 16px;
146
- padding: 8px;
150
+ padding-bottom: 16px;
151
+ border-bottom: 1px solid cm_grey_100;
147
152
  }
148
153
 
149
- .headerTitle {
150
- width: 612px;
151
- margin-bottom: 16px;
152
- padding: 2px 0px 2px;
153
- }
154
154
 
155
155
  .lockIcon {
156
156
  height: 48px;
157
157
  width: 48px;
158
158
  background-color: negative_100;
159
159
  border-radius: 16px;
160
- min-width: 48px;
161
- min-height: 48px;
162
160
  color: cm_negative_200;
163
161
  }
164
162
 
@@ -178,13 +176,6 @@
178
176
  margin: 20px 32px;
179
177
  }
180
178
 
181
- .cookieTitleContainer {
182
- align-items: center;
183
- display: flex;
184
- flex-direction: column;
185
- width: 100%;
186
- }
187
-
188
179
  .titleContainer {
189
180
  padding-top: 40px;
190
181
  align-items: center;
@@ -193,61 +184,6 @@
193
184
  width: 100%;
194
185
  }
195
186
 
196
- .cookieHeader {
197
- width: 100%;
198
- background-color: cm_grey_700;
199
- padding: 16px 24px;
200
- border-radius: 10px 10px 0px 0px;
201
- display: flex;
202
- align-items: center;
203
- }
204
-
205
- .popinCookie {
206
- max-width: 550px;
207
- flex-grow: 0;
208
- margin: 16px;
209
- border-radius: 10px;
210
- background-color: cm_grey_50;
211
- animation: popup 0.7s;
212
- position: fixed;
213
- bottom: 32px;
214
- left: 32px;
215
- z-index: 1000;
216
- }
217
- .cookieTitle {
218
- font-family: "Gilroy";
219
- font-style: normal;
220
- font-weight: 700;
221
- font-size: 24px;
222
- line-height: 32px;
223
- color: white;
224
- padding-left: 16px;
225
- }
226
- .cookieIcon {
227
- height: 20px;
228
- width: 20px;
229
- }
230
- .cookieIconContainer {
231
- width: 39px;
232
- height: 39px;
233
- border-radius: 8px;
234
- background-color: cm_blue_50;
235
- display: flex;
236
- justify-content: center;
237
- align-items: center;
238
- }
239
- .popinCookie .button {
240
- width: 100%;
241
- padding: 0px 8px 0px 0px
242
- }
243
- .popinCookie .button span {
244
- margin: 0
245
- }
246
-
247
- .popinCookie .message {
248
- padding: 24px 24px 40px 24px
249
- }
250
-
251
187
  .descriptionBtn {
252
188
  font-family: "Gilroy";
253
189
  font-weight: 500;
@@ -262,7 +198,6 @@
262
198
  margin-bottom: 24px;
263
199
  }
264
200
 
265
-
266
201
  .firstBtnSwitchContainer {
267
202
  height: 56px;
268
203
  background-color: cm_grey_75;
@@ -270,9 +205,11 @@
270
205
  display: flex;
271
206
  align-items: center;
272
207
  }
208
+
273
209
  .firstBtnSwitchContainer div:first-child {
274
210
  margin-left: 9px;
275
211
  }
212
+
276
213
  .singleSwitchContainer div:first-child {
277
214
  margin-left: 9px;
278
215
  }
@@ -289,11 +226,80 @@
289
226
  width: 100%;
290
227
  margin-top: 24px;
291
228
  }
229
+
292
230
  a {
293
231
  color: cm_primary_blue;
294
232
  text-decoration: none;
295
233
  }
296
234
 
235
+ /* ---------- COOKIES ---------- */
236
+ .popinCookie {
237
+ max-width: 550px;
238
+ flex-grow: 0;
239
+ margin: 16px;
240
+ border-radius: 10px;
241
+ background-color: cm_grey_50;
242
+ animation: popup 0.7s;
243
+ position: fixed;
244
+ bottom: 32px;
245
+ left: 32px;
246
+ z-index: 1000;
247
+ }
248
+
249
+ .cookieHeader {
250
+ width: 100%;
251
+ background-color: cm_grey_700;
252
+ padding: 16px 24px;
253
+ border-radius: 10px 10px 0px 0px;
254
+ display: flex;
255
+ align-items: center;
256
+ }
257
+
258
+ .cookieIconContainer {
259
+ width: 39px;
260
+ height: 39px;
261
+ border-radius: 8px;
262
+ background-color: cm_blue_50;
263
+ display: flex;
264
+ justify-content: center;
265
+ align-items: center;
266
+ }
267
+
268
+ .cookieIcon {
269
+ height: 20px;
270
+ width: 20px;
271
+ }
272
+
273
+ .cookieTitle {
274
+ font-family: "Gilroy";
275
+ font-style: normal;
276
+ font-weight: 700;
277
+ font-size: 24px;
278
+ line-height: 32px;
279
+ color: white;
280
+ padding-left: 16px;
281
+ }
282
+
283
+ .cookieTitleContainer {
284
+ display: flex;
285
+ align-items: center;
286
+ flex-direction: column;
287
+ width: 100%;
288
+ }
289
+
290
+ .popinCookie .button {
291
+ width: 100%;
292
+ padding: 0px 8px 0px 0px
293
+ }
294
+
295
+ .popinCookie .button span {
296
+ margin: 0
297
+ }
298
+
299
+ .popinCookie .message {
300
+ padding: 24px 24px 40px 24px
301
+ }
302
+
297
303
  .popinCookie .buttonContainer {
298
304
  min-height: 44px;
299
305
  padding-bottom: 16px;
@@ -301,6 +307,7 @@ a {
301
307
  padding-left: 24px;
302
308
  padding-right: 16px;
303
309
  }
310
+
304
311
  .popinCookie .largeButton {
305
312
  padding: 0px 8px 0px 0px
306
313
  }
@@ -309,9 +316,41 @@ a {
309
316
  max-height: 369px;
310
317
  overflow-y: auto;
311
318
  width: 100%;
312
- border-top: 1px solid cm_grey_100;
313
319
  }
314
320
 
321
+ /* ---------- FILES DETAILS ---------- */
322
+ .popinFilesList {
323
+ font-family: "Gilroy";
324
+ width: 70%;
325
+ padding: 16px;
326
+ border-radius: 20px;
327
+ background-color: white;
328
+ animation: popup 0.7s;
329
+ }
330
+
331
+ .filesListIconContainer {
332
+ composes: lockIcon;
333
+ display: flex;
334
+ justify-content: center;
335
+ align-items: center;
336
+ border-radius: 12px;
337
+ background-color: cm_blue_50;
338
+ color: cm_primary_blue;
339
+ }
340
+
341
+ .filesListIcon {
342
+ height: 20px;
343
+ width: 20px;
344
+ }
345
+
346
+ .filesListContainer {
347
+ max-height: 600px;
348
+ width: 100%;
349
+ margin-top: 24px;
350
+ overflow: scroll;
351
+ }
352
+
353
+ /* ---------- MEDIA QUERIES ---------- */
315
354
  @media tablet {
316
355
  .popin {
317
356
  width: 80%;
@@ -1,6 +1,7 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import { TitleProps } from '../../atom/title/types';
3
3
  import CardsGrid from '../../organism/cards-grid';
4
+ import ListItems from '../../organism/list-items';
4
5
  declare const propTypes: {
5
6
  content: PropTypes.Requireable<string>;
6
7
  mode: PropTypes.Requireable<string>;
@@ -45,6 +46,7 @@ declare const propTypes: {
45
46
  backgroundImageUrl: PropTypes.Requireable<string>;
46
47
  descriptionText: PropTypes.Requireable<string>;
47
48
  cookieTitle: PropTypes.Requireable<string>;
49
+ headerSubtitle: PropTypes.Requireable<string>;
48
50
  descriptionBtnTxt: PropTypes.Requireable<string>;
49
51
  listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
50
52
  title: PropTypes.Requireable<string>;
@@ -65,10 +67,185 @@ declare const propTypes: {
65
67
  }> | null | undefined)[]>;
66
68
  items: PropTypes.Requireable<PropTypes.InferProps<{
67
69
  type: PropTypes.Requireable<string>;
68
- list: PropTypes.Requireable<PropTypes.InferProps<{
70
+ list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
69
71
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
70
72
  loading: PropTypes.Requireable<boolean>;
71
- }>>;
73
+ }> | PropTypes.InferProps<{
74
+ 'aria-label': PropTypes.Requireable<string>;
75
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
76
+ type: PropTypes.Requireable<string>;
77
+ label: PropTypes.Requireable<string>;
78
+ 'aria-label': PropTypes.Requireable<string>;
79
+ 'data-name': PropTypes.Requireable<string>;
80
+ 'data-testid': PropTypes.Requireable<string>;
81
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
82
+ position: PropTypes.Requireable<string>;
83
+ type: PropTypes.Requireable<string>;
84
+ }>>;
85
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
86
+ link: PropTypes.Requireable<PropTypes.InferProps<{
87
+ href: PropTypes.Requireable<string>;
88
+ download: PropTypes.Requireable<boolean>;
89
+ target: PropTypes.Requireable<string>;
90
+ }>>;
91
+ disabled: PropTypes.Requireable<boolean>;
92
+ className: PropTypes.Requireable<string>;
93
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
94
+ }>>;
95
+ selectMultiple: PropTypes.Requireable<PropTypes.InferProps<{
96
+ title: PropTypes.Requireable<string>;
97
+ placeholder: PropTypes.Requireable<string>;
98
+ description: PropTypes.Requireable<string>;
99
+ hint: PropTypes.Requireable<string>;
100
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
101
+ selected: PropTypes.Validator<boolean>;
102
+ name: PropTypes.Validator<string>;
103
+ value: PropTypes.Requireable<string>;
104
+ }>>[]>;
105
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
106
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
107
+ multiple: PropTypes.Requireable<boolean>;
108
+ modified: PropTypes.Requireable<boolean>;
109
+ disabled: PropTypes.Requireable<boolean>;
110
+ error: PropTypes.Requireable<string>;
111
+ theme: PropTypes.Requireable<string>;
112
+ }>>;
113
+ content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
114
+ items: PropTypes.Requireable<(PropTypes.InferProps<{
115
+ title: PropTypes.Validator<string>;
116
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
117
+ label: PropTypes.Requireable<string>;
118
+ type: PropTypes.Requireable<string>;
119
+ className: PropTypes.Requireable<string>;
120
+ }> | null | undefined)[]>;
121
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
122
+ type: PropTypes.Requireable<string>;
123
+ label: PropTypes.Requireable<string>;
124
+ ariaLabel: PropTypes.Requireable<string>;
125
+ dataName: PropTypes.Requireable<string>;
126
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
127
+ position: PropTypes.Requireable<string>;
128
+ type: PropTypes.Requireable<string>;
129
+ }>>;
130
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
131
+ }>>;
132
+ buttonLinkIcon: PropTypes.Requireable<PropTypes.InferProps<{
133
+ size: PropTypes.Requireable<string>;
134
+ 'aria-label': PropTypes.Requireable<string>;
135
+ 'data-name': PropTypes.Requireable<string>;
136
+ icon: PropTypes.Requireable<string>;
137
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
138
+ link: PropTypes.Requireable<PropTypes.InferProps<{
139
+ href: PropTypes.Requireable<string>;
140
+ download: PropTypes.Requireable<boolean>;
141
+ target: PropTypes.Requireable<string>;
142
+ }>>;
143
+ disabled: PropTypes.Requireable<boolean>;
144
+ className: PropTypes.Requireable<string>;
145
+ }>>;
146
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
147
+ buttonAriaLabel: PropTypes.Requireable<string>;
148
+ menuAriaLabel: PropTypes.Requireable<string>;
149
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
150
+ 'data-name': PropTypes.Requireable<string>;
151
+ label: PropTypes.Requireable<string>;
152
+ type: PropTypes.Requireable<string>;
153
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
154
+ }> | null | undefined)[]>;
155
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
156
+ }>>;
157
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
158
+ label: PropTypes.Requireable<string>;
159
+ type: PropTypes.Requireable<string>;
160
+ }> | null | undefined)[]>;
161
+ isBulkStyle: PropTypes.Requireable<boolean>;
162
+ order: PropTypes.Requireable<number>;
163
+ 'aria-label': PropTypes.Requireable<string>;
164
+ contentType: PropTypes.Requireable<string>;
165
+ id: PropTypes.Requireable<string>;
166
+ }> | null | undefined)[]>;
167
+ type: PropTypes.Requireable<string>;
168
+ itemType: PropTypes.Requireable<string>;
169
+ onDrop: PropTypes.Requireable<(...args: any[]) => any>;
170
+ isDraggable: PropTypes.Requireable<boolean>;
171
+ tableHeader: PropTypes.Requireable<(string | null | undefined)[]>;
172
+ }> | PropTypes.InferProps<{
173
+ type: PropTypes.Requireable<string>;
174
+ columns: PropTypes.Requireable<(PropTypes.InferProps<{
175
+ title: PropTypes.Validator<string>;
176
+ }> | null | undefined)[]>;
177
+ rows: PropTypes.Requireable<(PropTypes.InferProps<{
178
+ fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
179
+ type: PropTypes.Requireable<string>;
180
+ current: PropTypes.Requireable<boolean>;
181
+ selected: PropTypes.Requireable<boolean>;
182
+ icon: PropTypes.Requireable<string>;
183
+ value: PropTypes.Requireable<string>;
184
+ }> | null | undefined> | null | undefined)[]>;
185
+ isRowExpandible: PropTypes.Requireable<boolean>;
186
+ lastField: PropTypes.Requireable<NonNullable<string | PropTypes.InferProps<{
187
+ type: PropTypes.Requireable<string>;
188
+ disabled: PropTypes.Requireable<boolean>;
189
+ buttonAriaLabel: PropTypes.Requireable<string>;
190
+ menuAriaLabel: PropTypes.Requireable<string>;
191
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
192
+ 'data-name': PropTypes.Requireable<string>;
193
+ disabled: PropTypes.Requireable<boolean>;
194
+ label: PropTypes.Validator<string>;
195
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
196
+ type: PropTypes.Requireable<string>;
197
+ }> | null | undefined)[]>;
198
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
199
+ menuButtonClassName: PropTypes.Requireable<string>;
200
+ isBulkMenu: PropTypes.Requireable<boolean>;
201
+ }> | null | undefined>>;
202
+ }> | null | undefined)[]>;
203
+ stickyFirstColumn: PropTypes.Requireable<boolean>;
204
+ stickyLastColumn: PropTypes.Requireable<boolean>;
205
+ columnWidth: PropTypes.Requireable<string>;
206
+ ariaDescribedby: PropTypes.Requireable<string>;
207
+ lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
208
+ componentType: PropTypes.Requireable<string>;
209
+ type: PropTypes.Requireable<string>;
210
+ label: PropTypes.Requireable<string>;
211
+ 'aria-label': PropTypes.Requireable<string>;
212
+ 'data-name': PropTypes.Requireable<string>;
213
+ 'data-testid': PropTypes.Requireable<string>;
214
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
215
+ position: PropTypes.Requireable<string>;
216
+ type: PropTypes.Requireable<string>;
217
+ }>>;
218
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
219
+ link: PropTypes.Requireable<PropTypes.InferProps<{
220
+ href: PropTypes.Requireable<string>;
221
+ download: PropTypes.Requireable<boolean>;
222
+ target: PropTypes.Requireable<string>;
223
+ }>>;
224
+ disabled: PropTypes.Requireable<boolean>;
225
+ className: PropTypes.Requireable<string>;
226
+ customStyle: PropTypes.Requireable<PropTypes.InferProps<{}>>;
227
+ }> | PropTypes.InferProps<{
228
+ componentType: PropTypes.Requireable<string>;
229
+ disabled: PropTypes.Requireable<boolean>;
230
+ buttonAriaLabel: PropTypes.Requireable<string>;
231
+ menuAriaLabel: PropTypes.Requireable<string>;
232
+ buttons: PropTypes.Validator<(PropTypes.InferProps<{
233
+ 'data-name': PropTypes.Requireable<string>;
234
+ disabled: PropTypes.Requireable<boolean>;
235
+ label: PropTypes.Validator<string>;
236
+ onClick: PropTypes.Validator<(...args: any[]) => any>;
237
+ type: PropTypes.Requireable<string>;
238
+ }> | null | undefined)[]>;
239
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
240
+ menuButtonClassName: PropTypes.Requireable<string>;
241
+ isBulkMenu: PropTypes.Requireable<boolean>;
242
+ }> | null | undefined>>;
243
+ isNestedTable: PropTypes.Requireable<boolean>;
244
+ emptyStateFirstMessage: PropTypes.Requireable<string>;
245
+ emptyStateSecondMessage: PropTypes.Requireable<string>;
246
+ }> | null | undefined>>;
247
+ title: PropTypes.Requireable<string>;
248
+ }> | null | undefined>>;
72
249
  }>>;
73
250
  };
74
251
  declare type PopinHeaderProps = {
@@ -89,14 +266,14 @@ export declare type QuitPopinButton = {
89
266
  export declare type CMPopinProps = {
90
267
  content: string;
91
268
  icon: string;
92
- mode: string;
269
+ mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';
93
270
  popinHeader?: PopinHeaderProps;
94
271
  descriptionText: string;
95
272
  firstButton?: QuitPopinButton;
96
273
  secondButton?: QuitPopinButton;
97
274
  items?: {
98
- type: string;
99
- list: PropTypes.InferProps<typeof CardsGrid.propTypes>;
275
+ type: 'content' | 'list';
276
+ list: PropTypes.InferProps<typeof CardsGrid.propTypes> | PropTypes.InferProps<typeof ListItems.propTypes>;
100
277
  };
101
278
  };
102
279
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Cd,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AA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ACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC5D,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;QACzB,IAAI,EACA,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,GAChD,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACtD,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -3,9 +3,10 @@ import Cta from '../../atom/button-link';
3
3
  import InputSwitch from '../../atom/input-switch';
4
4
  import Title from '../../atom/title';
5
5
  import CardsGrid from '../../organism/cards-grid';
6
+ import ListItems from '../../organism/list-items';
6
7
  const propTypes = {
7
8
  content: PropTypes.string,
8
- mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items']),
9
+ mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),
9
10
  header: PropTypes.shape({
10
11
  title: PropTypes.shape(Title.propTypes),
11
12
  headerIcon: PropTypes.string,
@@ -40,11 +41,12 @@ const propTypes = {
40
41
  backgroundImageUrl: PropTypes.string,
41
42
  descriptionText: PropTypes.string,
42
43
  cookieTitle: PropTypes.string,
44
+ headerSubtitle: PropTypes.string,
43
45
  descriptionBtnTxt: PropTypes.string,
44
46
  listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),
45
47
  items: PropTypes.shape({
46
- type: PropTypes.string,
47
- list: PropTypes.shape(CardsGrid.propTypes)
48
+ type: PropTypes.oneOf(['content', 'list']),
49
+ list: PropTypes.oneOfType([PropTypes.shape(CardsGrid.propTypes), PropTypes.shape(ListItems.propTypes)])
48
50
  })
49
51
  };
50
52
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["PropTypes","Cta","InputSwitch","Title","CardsGrid","propTypes","content","string","mode","oneOf","header","shape","title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf","items","list"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.string,\n list: PropTypes.shape(CardsGrid.propTypes)\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: string;\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: string;\n list: PropTypes.InferProps<typeof CardsGrid.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAEA,OAAOC,SAAP,MAAsB,2BAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEN,SAAS,CAACO,MADH;EAEhBC,IAAI,EAAER,SAAS,CAACS,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,CAAhB,CAFU;EAGhBC,MAAM,EAAEV,SAAS,CAACW,KAAV,CAAgB;IACtBC,KAAK,EAAEZ,SAAS,CAACW,KAAV,CAAgBR,KAAK,CAACE,SAAtB,CADe;IAEtBQ,UAAU,EAAEb,S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,IAhCH;EAiChBQ,IAAI,EAAE1B,SAAS,CAACO,MAjCA;EAkChBoB,kBAAkB,EAAE3B,SAAS,CAACO,MAlCd;EAmChBqB,eAAe,EAAE5B,SAAS,CAACO,MAnCX;EAoChBsB,WAAW,EAAE7B,SAAS,CAACO,MApCP;EAqChBuB,iBAAiB,EAAE9B,SAAS,CAACO,MArCb;EAsChBwB,aAAa,EAAE/B,SAAS,CAACgC,OAAV,CAAkBhC,SAAS,CAACW,KAAV,CAAgBT,WAAW,CAACG,SAA5B,CAAlB,CAtCC;EAuChB4B,KAAK,EAAEjC,SAAS,CAACW,KAAV,CAAgB;IACrBU,IAAI,EAAErB,SAAS,CAACO,MADK;IAErB2B,IAAI,EAAElC,SAAS,CAACW,KAAV,CAAgBP,SAAS,CAACC,SAA1B;EAFe,CAAhB;AAvCS,CAAlB;AA4EA,eAAeA,SAAf"}
1
+ {"version":3,"file":"types.js","names":["PropTypes","Cta","InputSwitch","Title","CardsGrid","ListItems","propTypes","content","string","mode","oneOf","header","shape","title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","items","list","oneOfType"],"sources":["../../../src/molecule/cm-popin/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport Cta from '../../atom/button-link';\nimport InputSwitch from '../../atom/input-switch';\nimport Title from '../../atom/title';\nimport {TitleProps} from '../../atom/title/types';\nimport CardsGrid from '../../organism/cards-grid';\nimport ListItems from '../../organism/list-items';\n\nconst propTypes = {\n content: PropTypes.string,\n mode: PropTypes.oneOf(['alert', 'information', 'cookie', 'items', 'list']),\n header: PropTypes.shape({\n title: PropTypes.shape(Title.propTypes),\n headerIcon: PropTypes.string,\n backgroundImage: PropTypes.string\n }),\n firstButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary', 'tertiary']),\n customStyle: Cta.propTypes.customStyle\n }),\n secondButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n thirdButton: PropTypes.shape({\n label: PropTypes.string,\n handleOnclick: PropTypes.func,\n type: PropTypes.oneOf(['dangerous', 'primary', 'secondary']),\n 'aria-label': PropTypes.string,\n largeButton: PropTypes.bool,\n customStyle: Cta.propTypes.customStyle\n }),\n onClose: PropTypes.func,\n icon: PropTypes.string,\n backgroundImageUrl: PropTypes.string,\n descriptionText: PropTypes.string,\n cookieTitle: PropTypes.string,\n headerSubtitle: PropTypes.string,\n descriptionBtnTxt: PropTypes.string,\n listBtnSwicth: PropTypes.arrayOf(PropTypes.shape(InputSwitch.propTypes)),\n items: PropTypes.shape({\n type: PropTypes.oneOf(['content', 'list']),\n list: PropTypes.oneOfType([\n PropTypes.shape(CardsGrid.propTypes),\n PropTypes.shape(ListItems.propTypes)\n ])\n })\n};\n\ntype PopinHeaderProps = {\n title: TitleProps;\n backgroundImage: string;\n headerIcon: string;\n};\n\nexport type QuitPopinButton = {\n 'aria-label'?: string;\n label: string;\n type: string;\n customStyle?: {\n backgroundColor?: string;\n color?: string;\n };\n handleOnclick: () => void;\n};\n\nexport type CMPopinProps = {\n content: string;\n icon: string;\n mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';\n popinHeader?: PopinHeaderProps;\n descriptionText: string;\n firstButton?: QuitPopinButton;\n secondButton?: QuitPopinButton;\n items?: {\n type: 'content' | 'list';\n list:\n | PropTypes.InferProps<typeof CardsGrid.propTypes>\n | PropTypes.InferProps<typeof ListItems.propTypes>;\n };\n};\n\nexport default propTypes;\n"],"mappings":"AAAA,OAAOA,SAAP,MAAsB,YAAtB;AACA,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CAAlB;AAkFA,eAAeA,SAAf"}
@@ -6,7 +6,7 @@ declare namespace DragAndDropWrapper {
6
6
  name: PropTypes.Requireable<string>;
7
7
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
8
8
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
9
- imageTypes: (props: any, propName: any, componentName: any) => Error | null;
9
+ filesTypes: (props: any, propName: any, componentName: any) => Error | null;
10
10
  error: PropTypes.Requireable<string>;
11
11
  buttonAriaLabel: PropTypes.Requireable<string>;
12
12
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -27,6 +27,7 @@ declare namespace DragAndDropWrapper {
27
27
  children: PropTypes.Requireable<(...args: any[]) => any>;
28
28
  pdfButtonLabel: PropTypes.Requireable<string>;
29
29
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
30
+ multiple: PropTypes.Requireable<boolean>;
30
31
  }> | null | undefined)[]>;
31
32
  'data-name': PropTypes.Requireable<string>;
32
33
  };
@@ -1,7 +1,7 @@
1
1
  import _map from "lodash/fp/map";
2
2
  import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import ImageUpload from '../../atom/image-upload';
4
+ import InputFileDraggable from '../../atom/input-file-draggable';
5
5
  import style from './style.css';
6
6
 
7
7
  const DragAndDropWrapper = props => {
@@ -14,7 +14,7 @@ const DragAndDropWrapper = props => {
14
14
  return /*#__PURE__*/React.createElement("li", {
15
15
  className: style.dragAndDrop,
16
16
  key: `dragAndDrop-${dragAndDropProps.title}`
17
- }, /*#__PURE__*/React.createElement(ImageUpload, dragAndDropProps));
17
+ }, /*#__PURE__*/React.createElement(InputFileDraggable, dragAndDropProps));
18
18
  }, list);
19
19
 
20
20
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("ul", {
@@ -24,7 +24,7 @@ const DragAndDropWrapper = props => {
24
24
  };
25
25
 
26
26
  DragAndDropWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
27
- list: PropTypes.arrayOf(PropTypes.shape(ImageUpload.propTypes)),
27
+ list: PropTypes.arrayOf(PropTypes.shape(InputFileDraggable.propTypes)),
28
28
  'data-name': PropTypes.string
29
29
  } : {};
30
30
  export default DragAndDropWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","ImageUpload","style","DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","dragAndDrop","title","group","propTypes","arrayOf","shape","string"],"sources":["../../../src/molecule/drag-and-drop-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport ImageUpload from '../../atom/image-upload';\nimport style from './style.css';\n\nconst DragAndDropWrapper = props => {\n const {list = [], 'data-name': dataName} = props;\n\n const dragAndDropList = map(dragAndDropProps => {\n return (\n <li className={style.dragAndDrop} key={`dragAndDrop-${dragAndDropProps.title}`}>\n <ImageUpload {...dragAndDropProps} />\n </li>\n );\n }, list);\n\n return (\n <div>\n <ul className={style.group} data-name={dataName}>\n {dragAndDropList}\n </ul>\n </div>\n );\n};\n\nDragAndDropWrapper.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(ImageUpload.propTypes)),\n 'data-name': PropTypes.string\n};\n\nexport default DragAndDropWrapper;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAACC,IAAI,GAAG,EAAR;IAAY,aAAaC;EAAzB,IAAqCF,KAA3C;;EAEA,MAAMG,eAAe,GAAG,KAAIC,gBAAgB,IAAI;IAC9C,oBACE;MAAI,SAAS,EAAEN,KAAK,CAACO,WAArB;MAAkC,GAAG,EAAG,eAAcD,gBAAgB,CAACE,KAAM;IAA7E,gBACE,oBAAC,WAAD,EAAiBF,gBAAjB,CADF,CADF;EAKD,CANuB,EAMrBH,IANqB,CAAxB;;EAQA,oBACE,8CACE;IAAI,SAAS,EAAEH,KAAK,CAACS,KAArB;IAA4B,aAAWL;EAAvC,GACGC,eADH,CADF,CADF;AAOD,CAlBD;;AAoBAJ,kBAAkB,CAACS,SAAnB,2CAA+B;EAC7BP,IAAI,EAAEL,SAAS,CAACa,OAAV,CAAkBb,SAAS,CAACc,KAAV,CAAgBb,WAAW,CAACW,SAA5B,CAAlB,CADuB;EAE7B,aAAaZ,SAAS,CAACe;AAFM,CAA/B;AAKA,eAAeZ,kBAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","InputFileDraggable","style","DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","dragAndDrop","title","group","propTypes","arrayOf","shape","string"],"sources":["../../../src/molecule/drag-and-drop-wrapper/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport style from './style.css';\n\nconst DragAndDropWrapper = props => {\n const {list = [], 'data-name': dataName} = props;\n\n const dragAndDropList = map(dragAndDropProps => {\n return (\n <li className={style.dragAndDrop} key={`dragAndDrop-${dragAndDropProps.title}`}>\n <InputFileDraggable {...dragAndDropProps} />\n </li>\n );\n }, list);\n\n return (\n <div>\n <ul className={style.group} data-name={dataName}>\n {dragAndDropList}\n </ul>\n </div>\n );\n};\n\nDragAndDropWrapper.propTypes = {\n list: PropTypes.arrayOf(PropTypes.shape(InputFileDraggable.propTypes)),\n 'data-name': PropTypes.string\n};\n\nexport default DragAndDropWrapper;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAACC,IAAI,GAAG,EAAR;IAAY,aAAaC;EAAzB,IAAqCF,KAA3C;;EAEA,MAAMG,eAAe,GAAG,KAAIC,gBAAgB,IAAI;IAC9C,oBACE;MAAI,SAAS,EAAEN,KAAK,CAACO,WAArB;MAAkC,GAAG,EAAG,eAAcD,gBAAgB,CAACE,KAAM;IAA7E,gBACE,oBAAC,kBAAD,EAAwBF,gBAAxB,CADF,CADF;EAKD,CANuB,EAMrBH,IANqB,CAAxB;;EAQA,oBACE,8CACE;IAAI,SAAS,EAAEH,KAAK,CAACS,KAArB;IAA4B,aAAWL;EAAvC,GACGC,eADH,CADF,CADF;AAOD,CAlBD;;AAoBAJ,kBAAkB,CAACS,SAAnB,2CAA+B;EAC7BP,IAAI,EAAEL,SAAS,CAACa,OAAV,CAAkBb,SAAS,CAACc,KAAV,CAAgBb,kBAAkB,CAACW,SAAnC,CAAlB,CADuB;EAE7B,aAAaZ,SAAS,CAACe;AAFM,CAA/B;AAKA,eAAeZ,kBAAf"}
@@ -11,7 +11,7 @@ import InputText from '../../atom/input-text';
11
11
  import InputCheckbox from '../../atom/input-checkbox';
12
12
  import InputDoublestep from '../../atom/input-doublestep';
13
13
  import InputSwitch from '../../atom/input-switch';
14
- import ImageUpload from '../../atom/image-upload';
14
+ import InputFileDraggable from '../../atom/input-file-draggable';
15
15
  import SetupCohortItem from '../setup-cohort-item';
16
16
  import MessagePopin from '../message-popin';
17
17
  import BrandDownloadBox from '../brand-download-box';
@@ -48,7 +48,7 @@ const SetupSlider = props => {
48
48
  case 'image':
49
49
  return /*#__PURE__*/React.createElement("div", {
50
50
  className: style.imageUploadContainer
51
- }, /*#__PURE__*/React.createElement(ImageUpload, field));
51
+ }, /*#__PURE__*/React.createElement(InputFileDraggable, field));
52
52
 
53
53
  case 'splitForm':
54
54
  return /*#__PURE__*/React.createElement(SetupCohortItem, {
@@ -123,7 +123,7 @@ const SlidePropTypes = process.env.NODE_ENV !== "production" ? PropTypes.shape({
123
123
  type: PropTypes.oneOf(['select'])
124
124
  })), PropTypes.shape(_extends({}, InputCheckbox.propTypes, {
125
125
  type: PropTypes.oneOf(['checkbox'])
126
- })), PropTypes.shape(_extends({}, ImageUpload.propTypes, {
126
+ })), PropTypes.shape(_extends({}, InputFileDraggable.propTypes, {
127
127
  type: PropTypes.oneOf(['image'])
128
128
  })), PropTypes.shape(_extends({}, InputReadonly.propTypes, {
129
129
  type: PropTypes.oneOf(['readonly'])