@coorpacademy/components 11.19.1-alpha.13 → 11.19.1-alpha.4

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 +0 -1
  4. package/es/atom/drag-and-drop/index.d.ts +0 -1
  5. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  6. package/es/atom/drag-and-drop/index.js +6 -24
  7. package/es/atom/drag-and-drop/index.js.map +1 -1
  8. package/es/atom/drag-and-drop/style.css +7 -22
  9. package/es/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
  10. package/es/atom/image-upload/index.d.ts.map +1 -0
  11. package/es/atom/{input-file-draggable → image-upload}/index.js +11 -34
  12. package/es/atom/image-upload/index.js.map +1 -0
  13. package/es/atom/image-upload/style.css +28 -0
  14. package/es/atom/title/style.css +1 -1
  15. package/es/atom/video-upload/index.d.ts +0 -1
  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 +6 -2
  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 +20 -27
  24. package/es/molecule/cm-popin/index.js.map +1 -1
  25. package/es/molecule/cm-popin/style.css +73 -112
  26. package/es/molecule/cm-popin/types.d.ts +5 -182
  27. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  28. package/es/molecule/cm-popin/types.js +3 -5
  29. package/es/molecule/cm-popin/types.js.map +1 -1
  30. package/es/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
  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 +1 -2
  36. package/es/molecule/title-radio-wrapper/index.d.ts +17 -18
  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 +19 -20
  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 +5 -2
  46. package/es/organism/list-item/index.js.map +1 -1
  47. package/es/organism/list-item/style.css +7 -3
  48. package/es/organism/list-items/index.d.ts.map +1 -1
  49. package/es/organism/list-items/index.js +3 -1
  50. package/es/organism/list-items/index.js.map +1 -1
  51. package/es/organism/list-items/style.css +4 -1
  52. package/es/organism/rewards-form/index.d.ts +1 -2
  53. package/es/organism/select-opponents/index.d.ts +17 -18
  54. package/es/organism/select-opponents/index.d.ts.map +1 -1
  55. package/es/organism/select-opponents/types.d.ts +17 -18
  56. package/es/organism/select-opponents/types.d.ts.map +1 -1
  57. package/es/organism/setup-header/style.css +1 -3
  58. package/es/organism/title-and-input/index.d.ts +17 -18
  59. package/es/organism/title-and-input/index.d.ts.map +1 -1
  60. package/es/organism/title-and-input/types.d.ts +17 -18
  61. package/es/organism/title-and-input/types.d.ts.map +1 -1
  62. package/es/organism/wizard-contents/index.d.ts +1 -2
  63. package/es/template/app-player/loading/index.d.ts +2 -178
  64. package/es/template/app-player/player/index.d.ts +4 -356
  65. package/es/template/app-player/player/slides/index.d.ts +2 -178
  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 +2 -178
  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 +2 -178
  70. package/es/template/app-review/index.d.ts +2 -178
  71. package/es/template/app-review/index.d.ts.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts +2 -178
  73. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  74. package/es/template/app-review/prop-types.d.ts +2 -178
  75. package/es/template/app-review/prop-types.d.ts.map +1 -1
  76. package/es/template/back-office/brand-update/index.d.ts +2 -178
  77. package/es/template/cockpit/jw-uploader/index.d.ts +0 -1
  78. package/es/template/common/dashboard/index.d.ts +4 -356
  79. package/es/template/common/search-page/index.d.ts +2 -178
  80. package/es/template/common/search-page/index.d.ts.map +1 -1
  81. package/es/template/common/search-page/index.js +20 -2
  82. package/es/template/common/search-page/index.js.map +1 -1
  83. package/es/template/external-course/index.d.ts +2 -178
  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 +5 -6
  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 +0 -1
  91. package/lib/atom/drag-and-drop/index.d.ts +0 -1
  92. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  93. package/lib/atom/drag-and-drop/index.js +6 -24
  94. package/lib/atom/drag-and-drop/index.js.map +1 -1
  95. package/lib/atom/drag-and-drop/style.css +7 -22
  96. package/lib/atom/{input-file-draggable → image-upload}/index.d.ts +5 -10
  97. package/lib/atom/image-upload/index.d.ts.map +1 -0
  98. package/lib/atom/{input-file-draggable → image-upload}/index.js +10 -34
  99. package/lib/atom/image-upload/index.js.map +1 -0
  100. package/lib/atom/image-upload/style.css +28 -0
  101. package/lib/atom/title/style.css +1 -1
  102. package/lib/atom/video-upload/index.d.ts +0 -1
  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 +6 -2
  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 +19 -29
  111. package/lib/molecule/cm-popin/index.js.map +1 -1
  112. package/lib/molecule/cm-popin/style.css +73 -112
  113. package/lib/molecule/cm-popin/types.d.ts +5 -182
  114. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  115. package/lib/molecule/cm-popin/types.js +3 -6
  116. package/lib/molecule/cm-popin/types.js.map +1 -1
  117. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +1 -2
  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 +1 -2
  123. package/lib/molecule/title-radio-wrapper/index.d.ts +17 -18
  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 +19 -20
  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 +5 -3
  133. package/lib/organism/list-item/index.js.map +1 -1
  134. package/lib/organism/list-item/style.css +7 -3
  135. package/lib/organism/list-items/index.d.ts.map +1 -1
  136. package/lib/organism/list-items/index.js +3 -1
  137. package/lib/organism/list-items/index.js.map +1 -1
  138. package/lib/organism/list-items/style.css +4 -1
  139. package/lib/organism/rewards-form/index.d.ts +1 -2
  140. package/lib/organism/select-opponents/index.d.ts +17 -18
  141. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  142. package/lib/organism/select-opponents/types.d.ts +17 -18
  143. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  144. package/lib/organism/setup-header/style.css +1 -3
  145. package/lib/organism/title-and-input/index.d.ts +17 -18
  146. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  147. package/lib/organism/title-and-input/types.d.ts +17 -18
  148. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  149. package/lib/organism/wizard-contents/index.d.ts +1 -2
  150. package/lib/template/app-player/loading/index.d.ts +2 -178
  151. package/lib/template/app-player/player/index.d.ts +4 -356
  152. package/lib/template/app-player/player/slides/index.d.ts +2 -178
  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 +2 -178
  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 +2 -178
  157. package/lib/template/app-review/index.d.ts +2 -178
  158. package/lib/template/app-review/index.d.ts.map +1 -1
  159. package/lib/template/app-review/player/prop-types.d.ts +2 -178
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/prop-types.d.ts +2 -178
  162. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  163. package/lib/template/back-office/brand-update/index.d.ts +2 -178
  164. package/lib/template/cockpit/jw-uploader/index.d.ts +0 -1
  165. package/lib/template/common/dashboard/index.d.ts +4 -356
  166. package/lib/template/common/search-page/index.d.ts +2 -178
  167. package/lib/template/common/search-page/index.d.ts.map +1 -1
  168. package/lib/template/common/search-page/index.js +24 -2
  169. package/lib/template/common/search-page/index.js.map +1 -1
  170. package/lib/template/external-course/index.d.ts +2 -178
  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 +7 -10
  174. package/lib/util/proptypes.js.map +1 -1
  175. package/package.json +2 -2
  176. package/es/atom/input-file-draggable/index.d.ts.map +0 -1
  177. package/es/atom/input-file-draggable/index.js.map +0 -1
  178. package/es/atom/input-file-draggable/style.css +0 -81
  179. package/lib/atom/input-file-draggable/index.d.ts.map +0 -1
  180. package/lib/atom/input-file-draggable/index.js.map +0 -1
  181. package/lib/atom/input-file-draggable/style.css +0 -81
@@ -1,7 +1,6 @@
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';
5
4
  declare const propTypes: {
6
5
  content: PropTypes.Requireable<string>;
7
6
  mode: PropTypes.Requireable<string>;
@@ -46,7 +45,6 @@ declare const propTypes: {
46
45
  backgroundImageUrl: PropTypes.Requireable<string>;
47
46
  descriptionText: PropTypes.Requireable<string>;
48
47
  cookieTitle: PropTypes.Requireable<string>;
49
- headerSubtitle: PropTypes.Requireable<string>;
50
48
  descriptionBtnTxt: PropTypes.Requireable<string>;
51
49
  listBtnSwicth: PropTypes.Requireable<(PropTypes.InferProps<{
52
50
  title: PropTypes.Requireable<string>;
@@ -67,185 +65,10 @@ declare const propTypes: {
67
65
  }> | null | undefined)[]>;
68
66
  items: PropTypes.Requireable<PropTypes.InferProps<{
69
67
  type: PropTypes.Requireable<string>;
70
- list: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
68
+ list: PropTypes.Requireable<PropTypes.InferProps<{
71
69
  list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
72
70
  loading: PropTypes.Requireable<boolean>;
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>>;
71
+ }>>;
249
72
  }>>;
250
73
  };
251
74
  declare type PopinHeaderProps = {
@@ -266,14 +89,14 @@ export declare type QuitPopinButton = {
266
89
  export declare type CMPopinProps = {
267
90
  content: string;
268
91
  icon: string;
269
- mode: 'alert' | 'information' | 'cookie' | 'items' | 'list';
92
+ mode: string;
270
93
  popinHeader?: PopinHeaderProps;
271
94
  descriptionText: string;
272
95
  firstButton?: QuitPopinButton;
273
96
  secondButton?: QuitPopinButton;
274
97
  items?: {
275
- type: 'content' | 'list';
276
- list: PropTypes.InferProps<typeof CardsGrid.propTypes> | PropTypes.InferProps<typeof ListItems.propTypes>;
98
+ type: string;
99
+ list: PropTypes.InferProps<typeof CardsGrid.propTypes>;
277
100
  };
278
101
  };
279
102
  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;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAElD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cd,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;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AChB,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,MAAM,CAAC;IACb,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,MAAM,CAAC;QACb,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;KACxD,CAAC;CACH,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -13,13 +13,11 @@ var _title = _interopRequireDefault(require("../../atom/title"));
13
13
 
14
14
  var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
15
15
 
16
- var _listItems = _interopRequireDefault(require("../../organism/list-items"));
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
17
 
20
18
  const propTypes = {
21
19
  content: _propTypes.default.string,
22
- mode: _propTypes.default.oneOf(['alert', 'information', 'cookie', 'items', 'list']),
20
+ mode: _propTypes.default.oneOf(['alert', 'information', 'cookie', 'items']),
23
21
  header: _propTypes.default.shape({
24
22
  title: _propTypes.default.shape(_title.default.propTypes),
25
23
  headerIcon: _propTypes.default.string,
@@ -54,12 +52,11 @@ const propTypes = {
54
52
  backgroundImageUrl: _propTypes.default.string,
55
53
  descriptionText: _propTypes.default.string,
56
54
  cookieTitle: _propTypes.default.string,
57
- headerSubtitle: _propTypes.default.string,
58
55
  descriptionBtnTxt: _propTypes.default.string,
59
56
  listBtnSwicth: _propTypes.default.arrayOf(_propTypes.default.shape(_inputSwitch.default.propTypes)),
60
57
  items: _propTypes.default.shape({
61
- type: _propTypes.default.oneOf(['content', 'list']),
62
- list: _propTypes.default.oneOfType([_propTypes.default.shape(_cardsGrid.default.propTypes), _propTypes.default.shape(_listItems.default.propTypes)])
58
+ type: _propTypes.default.string,
59
+ list: _propTypes.default.shape(_cardsGrid.default.propTypes)
63
60
  })
64
61
  };
65
62
  var _default = propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","headerSubtitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","oneOfType","CardsGrid","ListItems"],"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;;AACA;;AACA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG;EAChBC,OAAO,EAAEC,kBAAA,CAAUC,MADH;EAEhBC,IAAI,EAAEF,kBAAA,CAAUG,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EAAmC,OAAnC,EAA4C,MAA5C,CAAhB,CAFU;EAGhBC,MAAM,EAAEJ,kBAAA,CAAUK,KAAV,CAAgB;IACtBC,KAAK,EAAEN,kBAAA,CAAUK,KAAV,CAAgBE,cAAA,CAAMT,SAAtB,CADe;IAEtBU,UAAU,EAAER,kBAAA,C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AAhB,CAxBG;EAgChBI,OAAO,EAAErB,kBAAA,CAAUa,IAhCH;EAiChBS,IAAI,EAAEtB,kBAAA,CAAUC,MAjCA;EAkChBsB,kBAAkB,EAAEvB,kBAAA,CAAUC,MAlCd;EAmChBuB,eAAe,EAAExB,kBAAA,CAAUC,MAnCX;EAoChBwB,WAAW,EAAEzB,kBAAA,CAAUC,MApCP;EAqChByB,cAAc,EAAE1B,kBAAA,CAAUC,MArCV;EAsChB0B,iBAAiB,EAAE3B,kBAAA,CAAUC,MAtCb;EAuChB2B,aAAa,EAAE5B,kBAAA,CAAU6B,OAAV,CAAkB7B,kBAAA,CAAUK,KAAV,CAAgByB,oBAAA,CAAYhC,SAA5B,CAAlB,CAvCC;EAwChBiC,KAAK,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB6B,IAAI,EAAEhC,kBAAA,CAAUiC,SAAV,CAAoB,CACxBjC,kBAAA,CAAUK,KAAV,CAAgB6B,kBAAA,CAAUpC,SAA1B,CADwB,EAExBE,kBAAA,CAAUK,KAAV,CAAgB8B,kBAAA,CAAUrC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,CAAlB;eAkFeA,S"}
1
+ {"version":3,"file":"types.js","names":["propTypes","content","PropTypes","string","mode","oneOf","header","shape","title","Title","headerIcon","backgroundImage","firstButton","label","handleOnclick","func","largeButton","bool","type","customStyle","Cta","secondButton","thirdButton","onClose","icon","backgroundImageUrl","descriptionText","cookieTitle","descriptionBtnTxt","listBtnSwicth","arrayOf","InputSwitch","items","list","CardsGrid"],"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>;\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J,CAAcmB;EANC,CAAhB,CAhBE;EAwBhBG,WAAW,EAAEpB,kBAAA,CAAUK,KAAV,CAAgB;IAC3BM,KAAK,EAAEX,kBAAA,CAAUC,MADU;IAE3BW,aAAa,EAAEZ,kBAAA,CAAUa,IAFE;IAG3BG,IAAI,EAAEhB,kBAAA,CAAUG,KAAV,CAAgB,CAAC,WAAD,EAAc,SAAd,EAAyB,WAAzB,CAAhB,CAHqB;IAI3B,cAAcH,kBAAA,CAAUC,MAJG;IAK3Ba,WAAW,EAAEd,kBAAA,CAAUe,IALI;IAM3BE,WAAW,EAAEC,mBAAA,CAAIpB,SAAJ,CAAcmB;EANA,CAAhB,CAxBG;EAgChBI,OAAO,EAAErB,kBAAA,CAAUa,IAhCH;EAiChBS,IAAI,EAAEtB,kBAAA,CAAUC,MAjCA;EAkChBsB,kBAAkB,EAAEvB,kBAAA,CAAUC,MAlCd;EAmChBuB,eAAe,EAAExB,kBAAA,CAAUC,MAnCX;EAoChBwB,WAAW,EAAEzB,kBAAA,CAAUC,MApCP;EAqChByB,iBAAiB,EAAE1B,kBAAA,CAAUC,MArCb;EAsChB0B,aAAa,EAAE3B,kBAAA,CAAU4B,OAAV,CAAkB5B,kBAAA,CAAUK,KAAV,CAAgBwB,oBAAA,CAAY/B,SAA5B,CAAlB,CAtCC;EAuChBgC,KAAK,EAAE9B,kBAAA,CAAUK,KAAV,CAAgB;IACrBW,IAAI,EAAEhB,kBAAA,CAAUC,MADK;IAErB8B,IAAI,EAAE/B,kBAAA,CAAUK,KAAV,CAAgB2B,kBAAA,CAAUlC,SAA1B;EAFe,CAAhB;AAvCS,CAAlB;eA4EeA,S"}
@@ -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
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
9
+ imageTypes: (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,7 +27,6 @@ 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>;
31
30
  }> | null | undefined)[]>;
32
31
  'data-name': PropTypes.Requireable<string>;
33
32
  };
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
- var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
12
+ var _imageUpload = _interopRequireDefault(require("../../atom/image-upload"));
13
13
 
14
14
  var _style = _interopRequireDefault(require("./style.css"));
15
15
 
@@ -24,7 +24,7 @@ const DragAndDropWrapper = props => {
24
24
  return /*#__PURE__*/_react.default.createElement("li", {
25
25
  className: _style.default.dragAndDrop,
26
26
  key: `dragAndDrop-${dragAndDropProps.title}`
27
- }, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, dragAndDropProps));
27
+ }, /*#__PURE__*/_react.default.createElement(_imageUpload.default, dragAndDropProps));
28
28
  }, list);
29
29
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("ul", {
30
30
  className: _style.default.group,
@@ -33,7 +33,7 @@ const DragAndDropWrapper = props => {
33
33
  };
34
34
 
35
35
  DragAndDropWrapper.propTypes = process.env.NODE_ENV !== "production" ? {
36
- list: _propTypes.default.arrayOf(_propTypes.default.shape(_inputFileDraggable.default.propTypes)),
36
+ list: _propTypes.default.arrayOf(_propTypes.default.shape(_imageUpload.default.propTypes)),
37
37
  'data-name': _propTypes.default.string
38
38
  } : {};
39
39
  var _default = DragAndDropWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","style","dragAndDrop","title","group","propTypes","PropTypes","arrayOf","shape","InputFileDraggable","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;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAACC,IAAI,GAAG,EAAR;IAAY,aAAaC;EAAzB,IAAqCF,KAA3C;EAEA,MAAMG,eAAe,GAAG,mBAAIC,gBAAgB,IAAI;IAC9C,oBACE;MAAI,SAAS,EAAEC,cAAA,CAAMC,WAArB;MAAkC,GAAG,EAAG,eAAcF,gBAAgB,CAACG,KAAM;IAA7E,gBACE,6BAAC,2BAAD,EAAwBH,gBAAxB,CADF,CADF;EAKD,CANuB,EAMrBH,IANqB,CAAxB;EAQA,oBACE,uDACE;IAAI,SAAS,EAAEI,cAAA,CAAMG,KAArB;IAA4B,aAAWN;EAAvC,GACGC,eADH,CADF,CADF;AAOD,CAlBD;;AAoBAJ,kBAAkB,CAACU,SAAnB,2CAA+B;EAC7BR,IAAI,EAAES,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,2BAAA,CAAmBJ,SAAnC,CAAlB,CADuB;EAE7B,aAAaC,kBAAA,CAAUI;AAFM,CAA/B;eAKef,kB"}
1
+ {"version":3,"file":"index.js","names":["DragAndDropWrapper","props","list","dataName","dragAndDropList","dragAndDropProps","style","dragAndDrop","title","group","propTypes","PropTypes","arrayOf","shape","ImageUpload","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;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,kBAAkB,GAAGC,KAAK,IAAI;EAClC,MAAM;IAACC,IAAI,GAAG,EAAR;IAAY,aAAaC;EAAzB,IAAqCF,KAA3C;EAEA,MAAMG,eAAe,GAAG,mBAAIC,gBAAgB,IAAI;IAC9C,oBACE;MAAI,SAAS,EAAEC,cAAA,CAAMC,WAArB;MAAkC,GAAG,EAAG,eAAcF,gBAAgB,CAACG,KAAM;IAA7E,gBACE,6BAAC,oBAAD,EAAiBH,gBAAjB,CADF,CADF;EAKD,CANuB,EAMrBH,IANqB,CAAxB;EAQA,oBACE,uDACE;IAAI,SAAS,EAAEI,cAAA,CAAMG,KAArB;IAA4B,aAAWN;EAAvC,GACGC,eADH,CADF,CADF;AAOD,CAlBD;;AAoBAJ,kBAAkB,CAACU,SAAnB,2CAA+B;EAC7BR,IAAI,EAAES,kBAAA,CAAUC,OAAV,CAAkBD,kBAAA,CAAUE,KAAV,CAAgBC,oBAAA,CAAYJ,SAA5B,CAAlB,CADuB;EAE7B,aAAaC,kBAAA,CAAUI;AAFM,CAA/B;eAKef,kB"}
@@ -23,7 +23,7 @@ var _inputDoublestep = _interopRequireDefault(require("../../atom/input-doublest
23
23
 
24
24
  var _inputSwitch = _interopRequireDefault(require("../../atom/input-switch"));
25
25
 
26
- var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
26
+ var _imageUpload = _interopRequireDefault(require("../../atom/image-upload"));
27
27
 
28
28
  var _setupCohortItem = _interopRequireDefault(require("../setup-cohort-item"));
29
29
 
@@ -69,7 +69,7 @@ const SetupSlider = props => {
69
69
  case 'image':
70
70
  return /*#__PURE__*/_react.default.createElement("div", {
71
71
  className: _style.default.imageUploadContainer
72
- }, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, field));
72
+ }, /*#__PURE__*/_react.default.createElement(_imageUpload.default, field));
73
73
 
74
74
  case 'splitForm':
75
75
  return /*#__PURE__*/_react.default.createElement(_setupCohortItem.default, {
@@ -144,7 +144,7 @@ const SlidePropTypes = process.env.NODE_ENV !== "production" ? _propTypes.defaul
144
144
  type: _propTypes.default.oneOf(['select'])
145
145
  })), _propTypes.default.shape(_extends({}, _inputCheckbox.default.propTypes, {
146
146
  type: _propTypes.default.oneOf(['checkbox'])
147
- })), _propTypes.default.shape(_extends({}, _inputFileDraggable.default.propTypes, {
147
+ })), _propTypes.default.shape(_extends({}, _imageUpload.default.propTypes, {
148
148
  type: _propTypes.default.oneOf(['image'])
149
149
  })), _propTypes.default.shape(_extends({}, _inputReadonly.default.propTypes, {
150
150
  type: _propTypes.default.oneOf(['readonly'])
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","style","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","PropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","InputSwitch","Select","InputCheckbox","InputFileDraggable","InputReadonly","InputDoublestep","SetupCohortItem","MessagePopin","InputText","BrandDownloadBox","SetupSliderPropTypes","Accordion"],"sources":["../../../src/molecule/setup-slider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Accordion from '../../organism/accordion/toggler';\nimport Select from '../../atom/select';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputText from '../../atom/input-text';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport InputSwitch from '../../atom/input-switch';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport SetupCohortItem from '../setup-cohort-item';\nimport MessagePopin from '../message-popin';\nimport BrandDownloadBox from '../brand-download-box';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst SetupSlider = props => {\n const {tabProps = [], slides = []} = props;\n const buildSlides = slides_ => {\n return map.convert({cap: false})((slide, key) => {\n const buildInput = field => {\n const {type} = field;\n switch (type) {\n case 'switch':\n return <InputSwitch {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <InputFileDraggable {...field} />\n </div>\n );\n case 'splitForm':\n return <SetupCohortItem field={field} />;\n case 'alert':\n return <MessagePopin header={field.title} content={field.subtitle} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'form-group':\n return <Title {...field} />;\n case 'slider':\n return (\n <Accordion tabProps={field.tabProps} type={'all'} theme={'setup'}>\n {buildSlides(field.slides)}\n </Accordion>\n );\n default:\n return <InputText {...field} />;\n }\n };\n\n const buildField = (field, index) => {\n const input = buildInput(field);\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n };\n\n const fieldsList = map.convert({cap: false})(buildField, slide.fields);\n\n return (\n <div className={style.wrapper} key={key}>\n {fieldsList}\n </div>\n );\n }, slides_);\n };\n\n const slidesView = buildSlides(slides);\n\n return (\n <div className={style.wrapperStyle}>\n <Accordion tabProps={tabProps} type={'all'} theme={'setup'}>\n {slidesView}\n </Accordion>\n </div>\n );\n};\n\nconst SlidePropTypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...InputFileDraggable.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...SetupCohortItem.propTypes,\n type: PropTypes.oneOf(['splitForm'])\n }),\n PropTypes.shape({\n ...MessagePopin.propTypes,\n type: PropTypes.oneOf(['alert'])\n }),\n PropTypes.shape(InputText.propTypes),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n })\n ])\n )\n});\n\nconst SetupSliderPropTypes = {\n tabProps: PropTypes.arrayOf(PropTypes.shape(Accordion.propTypes)),\n slides: PropTypes.arrayOf(SlidePropTypes)\n};\n\nSetupSlider.propTypes = SetupSliderPropTypes;\n\nexport default SetupSlider;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;A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AAA,CAAiBX,SADtB;IAEElB,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAtCkB,CAApB,CADM;AAD6B,CAAhB,CAAvB;AAgDA,MAAMW,oBAAN,2CAA6B;EAC3BxC,QAAQ,EAAEwB,kBAAA,CAAUE,OAAV,CAAkBF,kBAAA,CAAUC,KAAV,CAAgBgB,gBAAA,CAAUb,SAA1B,CAAlB,CADiB;EAE3B3B,MAAM,EAAEuB,kBAAA,CAAUE,OAAV,CAAkBH,cAAlB;AAFmB,CAA7B;AAKAzB,WAAW,CAAC8B,SAAZ,2CAAwBY,oBAAxB;eAEe1C,W"}
1
+ {"version":3,"file":"index.js","names":["SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","style","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","PropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","InputSwitch","Select","InputCheckbox","ImageUpload","InputReadonly","InputDoublestep","SetupCohortItem","MessagePopin","InputText","BrandDownloadBox","SetupSliderPropTypes","Accordion"],"sources":["../../../src/molecule/setup-slider/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Accordion from '../../organism/accordion/toggler';\nimport Select from '../../atom/select';\nimport InputReadonly from '../../atom/input-readonly';\nimport InputText from '../../atom/input-text';\nimport InputCheckbox from '../../atom/input-checkbox';\nimport InputDoublestep from '../../atom/input-doublestep';\nimport InputSwitch from '../../atom/input-switch';\nimport ImageUpload from '../../atom/image-upload';\nimport SetupCohortItem from '../setup-cohort-item';\nimport MessagePopin from '../message-popin';\nimport BrandDownloadBox from '../brand-download-box';\nimport Title from '../../atom/title';\nimport style from './style.css';\n\nconst SetupSlider = props => {\n const {tabProps = [], slides = []} = props;\n const buildSlides = slides_ => {\n return map.convert({cap: false})((slide, key) => {\n const buildInput = field => {\n const {type} = field;\n switch (type) {\n case 'switch':\n return <InputSwitch {...field} />;\n case 'select':\n return <Select {...field} theme={'coorpmanager'} />;\n case 'checkbox':\n return <InputCheckbox {...field} />;\n case 'image':\n return (\n <div className={style.imageUploadContainer}>\n <ImageUpload {...field} />\n </div>\n );\n case 'splitForm':\n return <SetupCohortItem field={field} />;\n case 'alert':\n return <MessagePopin header={field.title} content={field.subtitle} />;\n case 'readonly':\n return <InputReadonly {...field} />;\n case 'doublestep':\n return <InputDoublestep {...field} />;\n case 'downloadbox':\n return <BrandDownloadBox {...field} />;\n case 'form-group':\n return <Title {...field} />;\n case 'slider':\n return (\n <Accordion tabProps={field.tabProps} type={'all'} theme={'setup'}>\n {buildSlides(field.slides)}\n </Accordion>\n );\n default:\n return <InputText {...field} />;\n }\n };\n\n const buildField = (field, index) => {\n const input = buildInput(field);\n return (\n <div className={style.field} key={index}>\n {input}\n </div>\n );\n };\n\n const fieldsList = map.convert({cap: false})(buildField, slide.fields);\n\n return (\n <div className={style.wrapper} key={key}>\n {fieldsList}\n </div>\n );\n }, slides_);\n };\n\n const slidesView = buildSlides(slides);\n\n return (\n <div className={style.wrapperStyle}>\n <Accordion tabProps={tabProps} type={'all'} theme={'setup'}>\n {slidesView}\n </Accordion>\n </div>\n );\n};\n\nconst SlidePropTypes = PropTypes.shape({\n fields: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n ...SetupSlider.propTypes,\n type: PropTypes.oneOf(['slider'])\n }),\n PropTypes.shape({\n ...InputSwitch.propTypes,\n type: PropTypes.oneOf(['switch'])\n }),\n PropTypes.shape({\n ...Select.propTypes,\n type: PropTypes.oneOf(['select'])\n }),\n PropTypes.shape({\n ...InputCheckbox.propTypes,\n type: PropTypes.oneOf(['checkbox'])\n }),\n PropTypes.shape({\n ...ImageUpload.propTypes,\n type: PropTypes.oneOf(['image'])\n }),\n PropTypes.shape({\n ...InputReadonly.propTypes,\n type: PropTypes.oneOf(['readonly'])\n }),\n PropTypes.shape({\n ...InputDoublestep.propTypes,\n type: PropTypes.oneOf(['doublestep'])\n }),\n PropTypes.shape({\n ...SetupCohortItem.propTypes,\n type: PropTypes.oneOf(['splitForm'])\n }),\n PropTypes.shape({\n ...MessagePopin.propTypes,\n type: PropTypes.oneOf(['alert'])\n }),\n PropTypes.shape(InputText.propTypes),\n PropTypes.shape({\n ...BrandDownloadBox.propTypes,\n type: PropTypes.oneOf(['downloadbox'])\n })\n ])\n )\n});\n\nconst SetupSliderPropTypes = {\n tabProps: PropTypes.arrayOf(PropTypes.shape(Accordion.propTypes)),\n slides: PropTypes.arrayOf(SlidePropTypes)\n};\n\nSetupSlider.propTypes = SetupSliderPropTypes;\n\nexport default SetupSlider;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAGC,KAAK,IAAI;EAC3B,MAAM;IAACC,QAAQ,GAAG,EAAZ;IAAgBC,MAAM,GAAG;EAAzB,IAA+BF,KAArC;;EACA,MAAMG,WAAW,GAAGC,OAAO,IAAI;IAC7B,OAAO,cAAIC,OAAJ,CAAY;MAACC,GAAG,EAAE;IAAN,CAAZ,EAA0B,CAACC,KAAD,EAAQC,GAAR,KAAgB;MAC/C,MAAMC,UAAU,GAAGC,KAAK,IAAI;QAC1B,MAAM;UAACC;QAAD,IAASD,KAAf;;QACA,QAAQC,IAAR;UACE,KAAK,QAAL;YACE,oBAAO,6BAAC,oBAAD,EAAiBD,KAAjB,CAAP;;UACF,KAAK,QAAL;YACE,oBAAO,6BAAC,eAAD,eAAYA,KAAZ;cAAmB,KAAK,EAAE;YAA1B,GAAP;;UACF,KAAK,UAAL;YACE,oBAAO,6BAAC,sBAAD,EAAmBA,KAAnB,CAAP;;UACF,KAAK,OAAL;YACE,oBACE;cAAK,SAAS,EAAEE,cAAA,CAAMC;YAAtB,gBACE,6BAAC,oBAAD,EAAiBH,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AAgBP,SADrB;IAEElB,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,YAAD,CAAhB;EAFR,GAzBkB,EA6BlBL,kBAAA,CAAUC,KAAV,cACKW,wBAAA,CAAgBR,SADrB;IAEElB,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,WAAD,CAAhB;EAFR,GA7BkB,EAiClBL,kBAAA,CAAUC,KAAV,cACKY,qBAAA,CAAaT,SADlB;IAEElB,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,OAAD,CAAhB;EAFR,GAjCkB,EAqClBL,kBAAA,CAAUC,KAAV,CAAgBa,kBAAA,CAAUV,SAA1B,CArCkB,EAsClBJ,kBAAA,CAAUC,KAAV,cACKc,yBAAA,CAAiBX,SADtB;IAEElB,IAAI,EAAEc,kBAAA,CAAUK,KAAV,CAAgB,CAAC,aAAD,CAAhB;EAFR,GAtCkB,CAApB,CADM;AAD6B,CAAhB,CAAvB;AAgDA,MAAMW,oBAAN,2CAA6B;EAC3BxC,QAAQ,EAAEwB,kBAAA,CAAUE,OAAV,CAAkBF,kBAAA,CAAUC,KAAV,CAAgBgB,gBAAA,CAAUb,SAA1B,CAAlB,CADiB;EAE3B3B,MAAM,EAAEuB,kBAAA,CAAUE,OAAV,CAAkBH,cAAlB;AAFmB,CAA7B;AAKAzB,WAAW,CAAC8B,SAAZ,2CAAwBY,oBAAxB;eAEe1C,W"}
@@ -47,7 +47,7 @@ declare namespace TitleAndCheckBoxWrapper {
47
47
  name: PropTypes.Requireable<string>;
48
48
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
49
49
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
50
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
50
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
51
51
  error: PropTypes.Requireable<string>;
52
52
  buttonAriaLabel: PropTypes.Requireable<string>;
53
53
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -68,7 +68,6 @@ declare namespace TitleAndCheckBoxWrapper {
68
68
  children: PropTypes.Requireable<(...args: any[]) => any>;
69
69
  pdfButtonLabel: PropTypes.Requireable<string>;
70
70
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
71
- multiple: PropTypes.Requireable<boolean>;
72
71
  }> | null | undefined)[]>;
73
72
  'data-name': PropTypes.Requireable<string>;
74
73
  }> | null | undefined>>;
@@ -19,27 +19,10 @@ declare const TitleRadioWrapper: {
19
19
  'data-name': import("prop-types").Requireable<string>;
20
20
  }>>;
21
21
  field: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
22
- title: import("prop-types").Requireable<string>;
23
- placeholder: import("prop-types").Requireable<string>;
24
- description: import("prop-types").Requireable<string>;
25
- hint: import("prop-types").Requireable<string>;
26
- options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
27
- selected: import("prop-types").Validator<boolean>;
28
- name: import("prop-types").Validator<string>;
29
- value: import("prop-types").Requireable<string>;
30
- }>>[]>;
31
- onChange: import("prop-types").Requireable<(...args: any[]) => any>;
32
- onError: import("prop-types").Requireable<(...args: any[]) => any>;
33
- multiple: import("prop-types").Requireable<boolean>;
34
- modified: import("prop-types").Requireable<boolean>;
35
- disabled: import("prop-types").Requireable<boolean>;
36
- error: import("prop-types").Requireable<string>;
37
- theme: import("prop-types").Requireable<string>;
38
- }> | import("prop-types").InferProps<{
39
22
  name: import("prop-types").Requireable<string>;
40
23
  onChange: import("prop-types").Requireable<(...args: any[]) => any>;
41
24
  onReset: import("prop-types").Requireable<(...args: any[]) => any>;
42
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
25
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
43
26
  error: import("prop-types").Requireable<string>;
44
27
  buttonAriaLabel: import("prop-types").Requireable<string>;
45
28
  errorButtonLabel: import("prop-types").Requireable<string>;
@@ -60,7 +43,23 @@ declare const TitleRadioWrapper: {
60
43
  children: import("prop-types").Requireable<(...args: any[]) => any>;
61
44
  pdfButtonLabel: import("prop-types").Requireable<string>;
62
45
  pdfButtonAriaLabel: import("prop-types").Requireable<string>;
46
+ }> | import("prop-types").InferProps<{
47
+ title: import("prop-types").Requireable<string>;
48
+ placeholder: import("prop-types").Requireable<string>;
49
+ description: import("prop-types").Requireable<string>;
50
+ hint: import("prop-types").Requireable<string>;
51
+ options: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
52
+ selected: import("prop-types").Validator<boolean>;
53
+ name: import("prop-types").Validator<string>;
54
+ value: import("prop-types").Requireable<string>;
55
+ }>>[]>;
56
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
57
+ onError: import("prop-types").Requireable<(...args: any[]) => any>;
63
58
  multiple: import("prop-types").Requireable<boolean>;
59
+ modified: import("prop-types").Requireable<boolean>;
60
+ disabled: import("prop-types").Requireable<boolean>;
61
+ error: import("prop-types").Requireable<string>;
62
+ theme: import("prop-types").Requireable<string>;
64
63
  }> | null | undefined>>;
65
64
  childType: import("prop-types").Requireable<string>;
66
65
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAqB1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQvD,CAAC;AAIF,eAAe,iBAAiB,CAAC"}
@@ -11,7 +11,7 @@ var _radioWithTitle = _interopRequireDefault(require("../../atom/radio-with-titl
11
11
 
12
12
  var _selectMultiple = _interopRequireDefault(require("../select-multiple"));
13
13
 
14
- var _inputFileDraggable = _interopRequireDefault(require("../../atom/input-file-draggable"));
14
+ var _imageUpload = _interopRequireDefault(require("../../atom/image-upload"));
15
15
 
16
16
  var _types = _interopRequireDefault(require("./types"));
17
17
 
@@ -26,7 +26,7 @@ const getContainerStyle = (field, childType) => {
26
26
  const buildInput = (childType, field) => {
27
27
  return childType === 'select-multiple' ? /*#__PURE__*/_react.default.createElement(_selectMultiple.default, field) : /*#__PURE__*/_react.default.createElement("div", {
28
28
  className: field.loading || (0, _isEmpty.default)(field.previewContent) ? _style.default.containerImageUpload : ''
29
- }, /*#__PURE__*/_react.default.createElement(_inputFileDraggable.default, field));
29
+ }, /*#__PURE__*/_react.default.createElement(_imageUpload.default, field));
30
30
  };
31
31
 
32
32
  const TitleRadioWrapper = props => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getContainerStyle","field","childType","loading","isEmpty","previewContent","style","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle","propTypes"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport propTypes, {TitleRadioWrapperProps} from './types';\nimport style from './style.css';\n\nconst getContainerStyle = (field: Record<string, unknown>, childType: string): string => {\n return childType === 'massive-upload' && (field.loading || isEmpty(field.previewContent))\n ? style.containerUpload\n : style.container;\n};\n\nconst buildInput = (childType: string, field: any) => {\n return childType === 'select-multiple' ? (\n <SelectMultiple {...field} />\n ) : (\n <div\n className={field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''}\n >\n <InputFileDraggable {...field} />\n </div>\n );\n};\n\nconst TitleRadioWrapper = (props: TitleRadioWrapperProps) => {\n const {radioWithTitle, field, childType} = props;\n return (\n <div className={getContainerStyle(field, childType)}>\n {radioWithTitle ? <RadioWithTitle {...radioWithTitle} /> : null}\n <div className={style.field}>{buildInput(childType, field)}</div>\n </div>\n );\n};\n\nTitleRadioWrapper.propTypes = propTypes;\n\nexport default TitleRadioWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAApD,IACHC,cAAA,CAAMC,eADH,GAEHD,cAAA,CAAME,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACP,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,6BAAC,uBAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAAjB,GAAiDC,cAAA,CAAMI,oBAAvD,GAA8E;EAD3F,gBAGE,6BAAC,2BAAD,EAAwBT,KAAxB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMU,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBZ,KAAjB;IAAwBC;EAAxB,IAAqCU,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEZ,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGW,cAAc,gBAAG,6BAAC,uBAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEP,cAAA,CAAML;EAAtB,GAA8BQ,UAAU,CAACP,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAU,iBAAiB,CAACG,SAAlB,2CAA8BA,cAA9B;eAEeH,iB"}
1
+ {"version":3,"file":"index.js","names":["getContainerStyle","field","childType","loading","isEmpty","previewContent","style","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle","propTypes"],"sources":["../../../src/molecule/title-radio-wrapper/index.tsx"],"sourcesContent":["import React from 'react';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport RadioWithTitle from '../../atom/radio-with-title';\nimport SelectMultiple from '../select-multiple';\nimport ImageUpload from '../../atom/image-upload';\nimport propTypes, {TitleRadioWrapperProps} from './types';\nimport style from './style.css';\n\nconst getContainerStyle = (field: Record<string, unknown>, childType: string): string => {\n return childType === 'massive-upload' && (field.loading || isEmpty(field.previewContent))\n ? style.containerUpload\n : style.container;\n};\n\nconst buildInput = (childType: string, field: any) => {\n return childType === 'select-multiple' ? (\n <SelectMultiple {...field} />\n ) : (\n <div\n className={field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''}\n >\n <ImageUpload {...field} />\n </div>\n );\n};\n\nconst TitleRadioWrapper = (props: TitleRadioWrapperProps) => {\n const {radioWithTitle, field, childType} = props;\n return (\n <div className={getContainerStyle(field, childType)}>\n {radioWithTitle ? <RadioWithTitle {...radioWithTitle} /> : null}\n <div className={style.field}>{buildInput(childType, field)}</div>\n </div>\n );\n};\n\nTitleRadioWrapper.propTypes = propTypes;\n\nexport default TitleRadioWrapper;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAApD,IACHC,cAAA,CAAMC,eADH,GAEHD,cAAA,CAAME,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACP,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,6BAAC,uBAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiB,IAAAC,gBAAA,EAAQH,KAAK,CAACI,cAAd,CAAjB,GAAiDC,cAAA,CAAMI,oBAAvD,GAA8E;EAD3F,gBAGE,6BAAC,oBAAD,EAAiBT,KAAjB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMU,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBZ,KAAjB;IAAwBC;EAAxB,IAAqCU,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEZ,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGW,cAAc,gBAAG,6BAAC,uBAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEP,cAAA,CAAML;EAAtB,GAA8BQ,UAAU,CAACP,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAU,iBAAiB,CAACG,SAAlB,2CAA8BA,cAA9B;eAEeH,iB"}
@@ -1,5 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
- import InputFileDraggable from '../../atom/input-file-draggable';
2
+ import ImageUpload from '../../atom/image-upload';
3
3
  import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
4
4
  import SelectMultiple from '../select-multiple';
5
5
  declare const propTypes: {
@@ -19,27 +19,10 @@ declare const propTypes: {
19
19
  'data-name': PropTypes.Requireable<string>;
20
20
  }>>;
21
21
  field: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
22
- title: PropTypes.Requireable<string>;
23
- placeholder: PropTypes.Requireable<string>;
24
- description: PropTypes.Requireable<string>;
25
- hint: PropTypes.Requireable<string>;
26
- options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
27
- selected: PropTypes.Validator<boolean>;
28
- name: PropTypes.Validator<string>;
29
- value: PropTypes.Requireable<string>;
30
- }>>[]>;
31
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
32
- onError: PropTypes.Requireable<(...args: any[]) => any>;
33
- multiple: PropTypes.Requireable<boolean>;
34
- modified: PropTypes.Requireable<boolean>;
35
- disabled: PropTypes.Requireable<boolean>;
36
- error: PropTypes.Requireable<string>;
37
- theme: PropTypes.Requireable<string>;
38
- }> | PropTypes.InferProps<{
39
22
  name: PropTypes.Requireable<string>;
40
23
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
41
24
  onReset: PropTypes.Requireable<(...args: any[]) => any>;
42
- filesTypes: (props: any, propName: any, componentName: any) => Error | null;
25
+ imageTypes: (props: any, propName: any, componentName: any) => Error | null;
43
26
  error: PropTypes.Requireable<string>;
44
27
  buttonAriaLabel: PropTypes.Requireable<string>;
45
28
  errorButtonLabel: PropTypes.Requireable<string>;
@@ -60,13 +43,29 @@ declare const propTypes: {
60
43
  children: PropTypes.Requireable<(...args: any[]) => any>;
61
44
  pdfButtonLabel: PropTypes.Requireable<string>;
62
45
  pdfButtonAriaLabel: PropTypes.Requireable<string>;
46
+ }> | PropTypes.InferProps<{
47
+ title: PropTypes.Requireable<string>;
48
+ placeholder: PropTypes.Requireable<string>;
49
+ description: PropTypes.Requireable<string>;
50
+ hint: PropTypes.Requireable<string>;
51
+ options: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
52
+ selected: PropTypes.Validator<boolean>;
53
+ name: PropTypes.Validator<string>;
54
+ value: PropTypes.Requireable<string>;
55
+ }>>[]>;
56
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
57
+ onError: PropTypes.Requireable<(...args: any[]) => any>;
63
58
  multiple: PropTypes.Requireable<boolean>;
59
+ modified: PropTypes.Requireable<boolean>;
60
+ disabled: PropTypes.Requireable<boolean>;
61
+ error: PropTypes.Requireable<string>;
62
+ theme: PropTypes.Requireable<string>;
64
63
  }> | null | undefined>>;
65
64
  childType: PropTypes.Requireable<string>;
66
65
  };
67
66
  export declare type TitleRadioWrapperProps = {
68
67
  radioWithTitle: RadioWithTitleProps;
69
- field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;
68
+ field: typeof SelectMultiple.propTypes | typeof ImageUpload.propTypes;
70
69
  childType: 'select-multiple' | 'massive-upload';
71
70
  };
72
71
  export default propTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,kBAAkB,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,kBAAkB,CAAC,SAAS,CAAC;IAC7E,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/title-radio-wrapper/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAElD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACtE,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAEhD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOd,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACnC,cAAc,EAAE,mBAAmB,CAAC;IACpC,KAAK,EAAE,OAAO,cAAc,CAAC,SAAS,GAAG,OAAO,WAAW,CAAC,SAAS,CAAC;IACtE,SAAS,EAAE,iBAAiB,GAAG,gBAAgB,CAAC;CACjD,CAAC;AAEF,eAAe,SAAS,CAAC"}