@coorpacademy/components 11.19.0 → 11.19.1-alpha.10
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.
- package/es/atom/button-link/index.js +2 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/style.css +1 -0
- package/es/atom/drag-and-drop/index.d.ts +1 -0
- package/es/atom/drag-and-drop/index.d.ts.map +1 -1
- package/es/atom/drag-and-drop/index.js +24 -6
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/style.css +22 -7
- package/es/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
- package/es/atom/input-file-draggable/index.d.ts.map +1 -0
- package/es/atom/{image-upload → input-file-draggable}/index.js +34 -11
- package/es/atom/input-file-draggable/index.js.map +1 -0
- package/es/atom/input-file-draggable/style.css +81 -0
- package/es/atom/video-upload/index.d.ts +1 -0
- package/es/molecule/brand-form-group/index.js +5 -5
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/cm-popin/index.d.ts.map +1 -1
- package/es/molecule/cm-popin/index.js +27 -20
- package/es/molecule/cm-popin/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +111 -72
- package/es/molecule/cm-popin/types.d.ts +182 -5
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/cm-popin/types.js +5 -3
- package/es/molecule/cm-popin/types.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
- package/es/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/es/molecule/setup-slider/index.js +3 -3
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/es/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/index.js +2 -2
- package/es/molecule/title-radio-wrapper/index.js.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +20 -19
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.js +2 -2
- package/es/molecule/title-radio-wrapper/types.js.map +1 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +2 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +3 -7
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +1 -3
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/list-items/style.css +1 -4
- package/es/organism/rewards-form/index.d.ts +2 -1
- package/es/organism/select-opponents/index.d.ts +18 -17
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +18 -17
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/setup-header/style.css +3 -1
- package/es/organism/title-and-input/index.d.ts +18 -17
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +18 -17
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +2 -1
- package/es/template/app-player/loading/index.d.ts +178 -2
- package/es/template/app-player/player/index.d.ts +356 -4
- package/es/template/app-player/player/slides/index.d.ts +178 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +178 -2
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +178 -2
- package/es/template/app-review/index.d.ts +178 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +178 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +178 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +178 -2
- package/es/template/cockpit/jw-uploader/index.d.ts +1 -0
- package/es/template/common/dashboard/index.d.ts +356 -4
- package/es/template/common/search-page/index.d.ts +178 -2
- package/es/template/external-course/index.d.ts +178 -2
- package/es/util/proptypes.d.ts +1 -1
- package/es/util/proptypes.d.ts.map +1 -1
- package/es/util/proptypes.js +6 -5
- package/es/util/proptypes.js.map +1 -1
- package/lib/atom/button-link/index.js +2 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/style.css +1 -0
- package/lib/atom/drag-and-drop/index.d.ts +1 -0
- package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
- package/lib/atom/drag-and-drop/index.js +24 -6
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/style.css +22 -7
- package/lib/atom/{image-upload → input-file-draggable}/index.d.ts +10 -5
- package/lib/atom/input-file-draggable/index.d.ts.map +1 -0
- package/lib/atom/{image-upload → input-file-draggable}/index.js +34 -10
- package/lib/atom/input-file-draggable/index.js.map +1 -0
- package/lib/atom/input-file-draggable/style.css +81 -0
- package/lib/atom/video-upload/index.d.ts +1 -0
- package/lib/molecule/brand-form-group/index.js +5 -5
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/cm-popin/index.d.ts.map +1 -1
- package/lib/molecule/cm-popin/index.js +29 -19
- package/lib/molecule/cm-popin/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +111 -72
- package/lib/molecule/cm-popin/types.d.ts +182 -5
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/cm-popin/types.js +6 -3
- package/lib/molecule/cm-popin/types.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +2 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +3 -3
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -1
- package/lib/molecule/setup-slider/index.js +3 -3
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +2 -1
- package/lib/molecule/title-radio-wrapper/index.d.ts +18 -17
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/index.js +2 -2
- package/lib/molecule/title-radio-wrapper/index.js.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +20 -19
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.js +2 -2
- package/lib/molecule/title-radio-wrapper/types.js.map +1 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +3 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +3 -7
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +1 -3
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/list-items/style.css +1 -4
- package/lib/organism/rewards-form/index.d.ts +2 -1
- package/lib/organism/select-opponents/index.d.ts +18 -17
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +18 -17
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/setup-header/style.css +3 -1
- package/lib/organism/title-and-input/index.d.ts +18 -17
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +18 -17
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +2 -1
- package/lib/template/app-player/loading/index.d.ts +178 -2
- package/lib/template/app-player/player/index.d.ts +356 -4
- package/lib/template/app-player/player/slides/index.d.ts +178 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +178 -2
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +178 -2
- package/lib/template/app-review/index.d.ts +178 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +178 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +178 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +178 -2
- package/lib/template/cockpit/jw-uploader/index.d.ts +1 -0
- package/lib/template/common/dashboard/index.d.ts +356 -4
- package/lib/template/common/search-page/index.d.ts +178 -2
- package/lib/template/external-course/index.d.ts +178 -2
- package/lib/util/proptypes.d.ts +1 -1
- package/lib/util/proptypes.d.ts.map +1 -1
- package/lib/util/proptypes.js +10 -7
- package/lib/util/proptypes.js.map +1 -1
- package/package.json +2 -2
- package/es/atom/image-upload/index.d.ts.map +0 -1
- package/es/atom/image-upload/index.js.map +0 -1
- package/es/atom/image-upload/style.css +0 -28
- package/lib/atom/image-upload/index.d.ts.map +0 -1
- package/lib/atom/image-upload/index.js.map +0 -1
- package/lib/atom/image-upload/style.css +0 -28
|
@@ -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:
|
|
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:
|
|
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,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,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.
|
|
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.
|
|
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,OAAOC,GAAP,MAAgB,wBAAhB;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAEA,OAAOC,SAAP,MAAsB,2BAAtB;AACA,OAAOC,SAAP,MAAsB,2BAAtB;AAEA,MAAMC,SAAS,GAAG;EAChBC,OAAO,EAAEP,SAAS,CAACQ,MADH;EAEhBC,IAAI,EAAET,SAAS,CAACU,KAAV,CAAgB,CAAC,OAAD,EAAU,aAAV,EAAyB,QAAzB,EA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AzB,CAAhB,CAHqB;IAI3B,cAAcV,SAAS,CAACQ,MAJG;IAK3BY,WAAW,EAAEpB,SAAS,CAACqB,IALI;IAM3BE,WAAW,EAAEtB,GAAG,CAACK,SAAJ,CAAciB;EANA,CAAhB,CAxBG;EAgChBG,OAAO,EAAE1B,SAAS,CAACmB,IAhCH;EAiChBQ,IAAI,EAAE3B,SAAS,CAACQ,MAjCA;EAkChBoB,kBAAkB,EAAE5B,SAAS,CAACQ,MAlCd;EAmChBqB,eAAe,EAAE7B,SAAS,CAACQ,MAnCX;EAoChBsB,WAAW,EAAE9B,SAAS,CAACQ,MApCP;EAqChBuB,cAAc,EAAE/B,SAAS,CAACQ,MArCV;EAsChBwB,iBAAiB,EAAEhC,SAAS,CAACQ,MAtCb;EAuChByB,aAAa,EAAEjC,SAAS,CAACkC,OAAV,CAAkBlC,SAAS,CAACY,KAAV,CAAgBV,WAAW,CAACI,SAA5B,CAAlB,CAvCC;EAwChB6B,KAAK,EAAEnC,SAAS,CAACY,KAAV,CAAgB;IACrBU,IAAI,EAAEtB,SAAS,CAACU,KAAV,CAAgB,CAAC,SAAD,EAAY,MAAZ,CAAhB,CADe;IAErB0B,IAAI,EAAEpC,SAAS,CAACqC,SAAV,CAAoB,CACxBrC,SAAS,CAACY,KAAV,CAAgBR,SAAS,CAACE,SAA1B,CADwB,EAExBN,SAAS,CAACY,KAAV,CAAgBP,SAAS,CAACC,SAA1B,CAFwB,CAApB;EAFe,CAAhB;AAxCS,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
|
-
|
|
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
|
|
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(
|
|
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(
|
|
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","
|
|
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
|
|
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(
|
|
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({},
|
|
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'])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","PropTypes","Accordion","Select","InputReadonly","InputText","InputCheckbox","InputDoublestep","InputSwitch","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","PropTypes","Accordion","Select","InputReadonly","InputText","InputCheckbox","InputDoublestep","InputSwitch","InputFileDraggable","SetupCohortItem","MessagePopin","BrandDownloadBox","Title","style","SetupSlider","props","tabProps","slides","buildSlides","slides_","convert","cap","slide","key","buildInput","field","type","imageUploadContainer","title","subtitle","buildField","index","input","fieldsList","fields","wrapper","slidesView","wrapperStyle","SlidePropTypes","shape","arrayOf","oneOfType","propTypes","oneOf","SetupSliderPropTypes"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,SAAP,MAAsB,kCAAtB;AACA,OAAOC,MAAP,MAAmB,mBAAnB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,SAAP,MAAsB,uBAAtB;AACA,OAAOC,aAAP,MAA0B,2BAA1B;AACA,OAAOC,eAAP,MAA4B,6BAA5B;AACA,OAAOC,WAAP,MAAwB,yBAAxB;AACA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,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,KAAIC,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,oBAAC,WAAD,EAAiBD,KAAjB,CAAP;;UACF,KAAK,QAAL;YACE,oBAAO,oBAAC,MAAD,eAAYA,KAA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<(...args: any[]) => any>;
|
|
49
49
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
50
|
-
|
|
50
|
+
filesTypes: (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,6 +68,7 @@ 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>;
|
|
71
72
|
}> | null | undefined)[]>;
|
|
72
73
|
'data-name': PropTypes.Requireable<string>;
|
|
73
74
|
}> | null | undefined>>;
|
|
@@ -19,10 +19,27 @@ 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<{
|
|
22
39
|
name: import("prop-types").Requireable<string>;
|
|
23
40
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
24
41
|
onReset: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
25
|
-
|
|
42
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
26
43
|
error: import("prop-types").Requireable<string>;
|
|
27
44
|
buttonAriaLabel: import("prop-types").Requireable<string>;
|
|
28
45
|
errorButtonLabel: import("prop-types").Requireable<string>;
|
|
@@ -43,23 +60,7 @@ declare const TitleRadioWrapper: {
|
|
|
43
60
|
children: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
44
61
|
pdfButtonLabel: import("prop-types").Requireable<string>;
|
|
45
62
|
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>;
|
|
58
63
|
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>;
|
|
63
64
|
}> | null | undefined>>;
|
|
64
65
|
childType: import("prop-types").Requireable<string>;
|
|
65
66
|
};
|
|
@@ -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
|
|
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"}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import isEmpty from 'lodash/fp/isEmpty';
|
|
3
3
|
import RadioWithTitle from '../../atom/radio-with-title';
|
|
4
4
|
import SelectMultiple from '../select-multiple';
|
|
5
|
-
import
|
|
5
|
+
import InputFileDraggable from '../../atom/input-file-draggable';
|
|
6
6
|
import propTypes from './types';
|
|
7
7
|
import style from './style.css';
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ const getContainerStyle = (field, childType) => {
|
|
|
13
13
|
const buildInput = (childType, field) => {
|
|
14
14
|
return childType === 'select-multiple' ? /*#__PURE__*/React.createElement(SelectMultiple, field) : /*#__PURE__*/React.createElement("div", {
|
|
15
15
|
className: field.loading || isEmpty(field.previewContent) ? style.containerImageUpload : ''
|
|
16
|
-
}, /*#__PURE__*/React.createElement(
|
|
16
|
+
}, /*#__PURE__*/React.createElement(InputFileDraggable, field));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
const TitleRadioWrapper = props => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","isEmpty","RadioWithTitle","SelectMultiple","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","isEmpty","RadioWithTitle","SelectMultiple","InputFileDraggable","propTypes","style","getContainerStyle","field","childType","loading","previewContent","containerUpload","container","buildInput","containerImageUpload","TitleRadioWrapper","props","radioWithTitle"],"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,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,cAAP,MAA2B,6BAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,kBAAP,MAA+B,iCAA/B;AACA,OAAOC,SAAP,MAAgD,SAAhD;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,KAAD,EAAiCC,SAAjC,KAA+D;EACvF,OAAOA,SAAS,KAAK,gBAAd,KAAmCD,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAA3D,IACHL,KAAK,CAACM,eADH,GAEHN,KAAK,CAACO,SAFV;AAGD,CAJD;;AAMA,MAAMC,UAAU,GAAG,CAACL,SAAD,EAAoBD,KAApB,KAAmC;EACpD,OAAOC,SAAS,KAAK,iBAAd,gBACL,oBAAC,cAAD,EAAoBD,KAApB,CADK,gBAGL;IACE,SAAS,EAAEA,KAAK,CAACE,OAAN,IAAiBT,OAAO,CAACO,KAAK,CAACG,cAAP,CAAxB,GAAiDL,KAAK,CAACS,oBAAvD,GAA8E;EAD3F,gBAGE,oBAAC,kBAAD,EAAwBP,KAAxB,CAHF,CAHF;AASD,CAVD;;AAYA,MAAMQ,iBAAiB,GAAIC,KAAD,IAAmC;EAC3D,MAAM;IAACC,cAAD;IAAiBV,KAAjB;IAAwBC;EAAxB,IAAqCQ,KAA3C;EACA,oBACE;IAAK,SAAS,EAAEV,iBAAiB,CAACC,KAAD,EAAQC,SAAR;EAAjC,GACGS,cAAc,gBAAG,oBAAC,cAAD,EAAoBA,cAApB,CAAH,GAA4C,IAD7D,eAEE;IAAK,SAAS,EAAEZ,KAAK,CAACE;EAAtB,GAA8BM,UAAU,CAACL,SAAD,EAAYD,KAAZ,CAAxC,CAFF,CADF;AAMD,CARD;;AAUAQ,iBAAiB,CAACX,SAAlB,2CAA8BA,SAA9B;AAEA,eAAeW,iBAAf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import
|
|
2
|
+
import InputFileDraggable from '../../atom/input-file-draggable';
|
|
3
3
|
import { RadioWithTitleProps } from '../../atom/radio-with-title/types';
|
|
4
4
|
import SelectMultiple from '../select-multiple';
|
|
5
5
|
declare const propTypes: {
|
|
@@ -19,10 +19,27 @@ 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<{
|
|
22
39
|
name: PropTypes.Requireable<string>;
|
|
23
40
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
41
|
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
|
|
42
|
+
filesTypes: (props: any, propName: any, componentName: any) => Error | null;
|
|
26
43
|
error: PropTypes.Requireable<string>;
|
|
27
44
|
buttonAriaLabel: PropTypes.Requireable<string>;
|
|
28
45
|
errorButtonLabel: PropTypes.Requireable<string>;
|
|
@@ -43,29 +60,13 @@ declare const propTypes: {
|
|
|
43
60
|
children: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
61
|
pdfButtonLabel: PropTypes.Requireable<string>;
|
|
45
62
|
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>;
|
|
58
63
|
multiple: PropTypes.Requireable<boolean>;
|
|
59
|
-
modified: PropTypes.Requireable<boolean>;
|
|
60
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
61
|
-
error: PropTypes.Requireable<string>;
|
|
62
|
-
theme: PropTypes.Requireable<string>;
|
|
63
64
|
}> | null | undefined>>;
|
|
64
65
|
childType: PropTypes.Requireable<string>;
|
|
65
66
|
};
|
|
66
67
|
export declare type TitleRadioWrapperProps = {
|
|
67
68
|
radioWithTitle: RadioWithTitleProps;
|
|
68
|
-
field: typeof SelectMultiple.propTypes | typeof
|
|
69
|
+
field: typeof SelectMultiple.propTypes | typeof InputFileDraggable.propTypes;
|
|
69
70
|
childType: 'select-multiple' | 'massive-upload';
|
|
70
71
|
};
|
|
71
72
|
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,
|
|
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"}
|