@zohodesk/components 1.2.32 → 1.2.34
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/.cli/propValidation_report.html +1 -1
- package/README.md +8 -0
- package/es/AppContainer/__tests__/AppContainer.spec.js +82 -0
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/es/Button/__tests__/Button.spec.js +8 -21
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/es/CheckBox/__tests__/CheckBox.spec.js +240 -0
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +6 -2
- package/es/MultiSelect/props/defaultProps.js +2 -1
- package/es/MultiSelect/props/propTypes.js +2 -1
- package/es/Radio/__tests__/Radio.spec.js +6 -9
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/es/Select/GroupSelect.js +2 -2
- package/es/Tag/__tests__/Tag.spec.js +235 -0
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/es/TextBox/__tests__/TextBox.spec.js +327 -0
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/es/TextBox/props/propTypes.js +0 -3
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +268 -0
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/es/TextBoxIcon/props/propTypes.js +1 -1
- package/es/Textarea/__tests__/Textarea.spec.js +228 -0
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/es/utils/dropDownUtils.js +4 -1
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +6 -2
- package/es/v1/MultiSelect/props/defaultProps.js +2 -1
- package/es/v1/MultiSelect/props/propTypes.js +2 -1
- package/es/v1/Select/GroupSelect.js +2 -2
- package/lib/AppContainer/__tests__/AppContainer.spec.js +90 -0
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/lib/Button/__tests__/Button.spec.js +8 -21
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +0 -28
- package/lib/CheckBox/__tests__/CheckBox.spec.js +248 -0
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/MultiSelect/props/defaultProps.js +2 -1
- package/lib/MultiSelect/props/propTypes.js +2 -1
- package/lib/Radio/__tests__/Radio.spec.js +9 -13
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +128 -49
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +0 -10
- package/lib/Select/GroupSelect.js +12 -12
- package/lib/Tag/__tests__/Tag.spec.js +252 -0
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3054 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +334 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/lib/TextBox/props/propTypes.js +53 -51
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +279 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/lib/TextBoxIcon/props/propTypes.js +1 -1
- package/lib/Textarea/__tests__/Textarea.spec.js +235 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +476 -0
- package/lib/utils/dropDownUtils.js +14 -2
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +5 -2
- package/lib/v1/MultiSelect/props/defaultProps.js +2 -1
- package/lib/v1/MultiSelect/props/propTypes.js +2 -1
- package/lib/v1/Select/GroupSelect.js +12 -12
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Textarea component Should be render autofocus true 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<textarea
|
|
6
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
7
|
+
data-id="TextareaComp"
|
|
8
|
+
data-selector-id="textarea"
|
|
9
|
+
data-test-id="TextareaComp"
|
|
10
|
+
/>
|
|
11
|
+
</DocumentFragment>
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
exports[`Textarea component Should be render customClass 1`] = `
|
|
15
|
+
<DocumentFragment>
|
|
16
|
+
<textarea
|
|
17
|
+
class="textAreaCustomClass container small default needBorder noresize effect borderColor_default"
|
|
18
|
+
data-id="TextareaComp"
|
|
19
|
+
data-selector-id="textarea"
|
|
20
|
+
data-test-id="TextareaComp"
|
|
21
|
+
/>
|
|
22
|
+
</DocumentFragment>
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
exports[`Textarea component Should be render htmlId 1`] = `
|
|
26
|
+
<DocumentFragment>
|
|
27
|
+
<textarea
|
|
28
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
29
|
+
data-id="TextareaComp"
|
|
30
|
+
data-selector-id="textarea"
|
|
31
|
+
data-test-id="TextareaComp"
|
|
32
|
+
id="textAreahtmlId"
|
|
33
|
+
/>
|
|
34
|
+
</DocumentFragment>
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
exports[`Textarea component Should be render isDisabled is false and needEffect is false 1`] = `
|
|
38
|
+
<DocumentFragment>
|
|
39
|
+
<textarea
|
|
40
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
41
|
+
data-id="TextareaComp"
|
|
42
|
+
data-selector-id="textarea"
|
|
43
|
+
data-test-id="TextareaComp"
|
|
44
|
+
/>
|
|
45
|
+
</DocumentFragment>
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
exports[`Textarea component Should be render isDisabled is true 1`] = `
|
|
49
|
+
<DocumentFragment>
|
|
50
|
+
<textarea
|
|
51
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
52
|
+
data-id="TextareaComp"
|
|
53
|
+
data-selector-id="textarea"
|
|
54
|
+
data-test-id="TextareaComp"
|
|
55
|
+
disabled=""
|
|
56
|
+
/>
|
|
57
|
+
</DocumentFragment>
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is false 1`] = `
|
|
61
|
+
<DocumentFragment>
|
|
62
|
+
<textarea
|
|
63
|
+
class=" container small default needBorder noresize borderColor_default"
|
|
64
|
+
data-id="TextareaComp"
|
|
65
|
+
data-selector-id="textarea"
|
|
66
|
+
data-test-id="TextareaComp"
|
|
67
|
+
disabled=""
|
|
68
|
+
/>
|
|
69
|
+
</DocumentFragment>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`Textarea component Should be render isDisabled is true and needEffect is true 1`] = `
|
|
73
|
+
<DocumentFragment>
|
|
74
|
+
<textarea
|
|
75
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
76
|
+
data-id="TextareaComp"
|
|
77
|
+
data-selector-id="textarea"
|
|
78
|
+
data-test-id="TextareaComp"
|
|
79
|
+
disabled=""
|
|
80
|
+
/>
|
|
81
|
+
</DocumentFragment>
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
exports[`Textarea component Should be render isReadOnly is false and needEffect is false 1`] = `
|
|
85
|
+
<DocumentFragment>
|
|
86
|
+
<textarea
|
|
87
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
88
|
+
data-id="TextareaComp"
|
|
89
|
+
data-selector-id="textarea"
|
|
90
|
+
data-test-id="TextareaComp"
|
|
91
|
+
/>
|
|
92
|
+
</DocumentFragment>
|
|
93
|
+
`;
|
|
94
|
+
|
|
95
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is false 1`] = `
|
|
96
|
+
<DocumentFragment>
|
|
97
|
+
<textarea
|
|
98
|
+
class=" readonly container small default needBorder noresize borderColor_default"
|
|
99
|
+
data-id="TextareaComp"
|
|
100
|
+
data-selector-id="textarea"
|
|
101
|
+
data-test-id="TextareaComp"
|
|
102
|
+
readonly=""
|
|
103
|
+
/>
|
|
104
|
+
</DocumentFragment>
|
|
105
|
+
`;
|
|
106
|
+
|
|
107
|
+
exports[`Textarea component Should be render isReadOnly is true and needEffect is true 1`] = `
|
|
108
|
+
<DocumentFragment>
|
|
109
|
+
<textarea
|
|
110
|
+
class=" readonly container small default needBorder noresize effect borderColor_default"
|
|
111
|
+
data-id="TextareaComp"
|
|
112
|
+
data-selector-id="textarea"
|
|
113
|
+
data-test-id="TextareaComp"
|
|
114
|
+
readonly=""
|
|
115
|
+
/>
|
|
116
|
+
</DocumentFragment>
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
exports[`Textarea component Should be render maxLength in number 1`] = `
|
|
120
|
+
<DocumentFragment>
|
|
121
|
+
<textarea
|
|
122
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
123
|
+
data-id="TextareaComp"
|
|
124
|
+
data-selector-id="textarea"
|
|
125
|
+
data-test-id="TextareaComp"
|
|
126
|
+
maxlength="11"
|
|
127
|
+
/>
|
|
128
|
+
</DocumentFragment>
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Textarea component Should be render maxLength in string 1`] = `
|
|
132
|
+
<DocumentFragment>
|
|
133
|
+
<textarea
|
|
134
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
135
|
+
data-id="TextareaComp"
|
|
136
|
+
data-selector-id="textarea"
|
|
137
|
+
data-test-id="TextareaComp"
|
|
138
|
+
maxlength="Ten"
|
|
139
|
+
/>
|
|
140
|
+
</DocumentFragment>
|
|
141
|
+
`;
|
|
142
|
+
|
|
143
|
+
exports[`Textarea component Should be render needAppearance is false 1`] = `
|
|
144
|
+
<DocumentFragment>
|
|
145
|
+
<textarea
|
|
146
|
+
class=" basic borderColor_default"
|
|
147
|
+
data-id="TextareaComp"
|
|
148
|
+
data-selector-id="textarea"
|
|
149
|
+
data-test-id="TextareaComp"
|
|
150
|
+
/>
|
|
151
|
+
</DocumentFragment>
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
exports[`Textarea component Should be render needBorder is false 1`] = `
|
|
155
|
+
<DocumentFragment>
|
|
156
|
+
<textarea
|
|
157
|
+
class=" container small default noBorder noresize effect borderColor_default"
|
|
158
|
+
data-id="TextareaComp"
|
|
159
|
+
data-selector-id="textarea"
|
|
160
|
+
data-test-id="TextareaComp"
|
|
161
|
+
/>
|
|
162
|
+
</DocumentFragment>
|
|
163
|
+
`;
|
|
164
|
+
|
|
165
|
+
exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
|
|
166
|
+
<DocumentFragment>
|
|
167
|
+
<textarea
|
|
168
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
169
|
+
data-id="TextareaComp"
|
|
170
|
+
data-selector-id="textarea"
|
|
171
|
+
data-test-id="TextareaComp"
|
|
172
|
+
/>
|
|
173
|
+
</DocumentFragment>
|
|
174
|
+
`;
|
|
175
|
+
|
|
176
|
+
exports[`Textarea component Should be render placeholder 1`] = `
|
|
177
|
+
<DocumentFragment>
|
|
178
|
+
<textarea
|
|
179
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
180
|
+
data-id="TextareaComp"
|
|
181
|
+
data-selector-id="textarea"
|
|
182
|
+
data-test-id="TextareaComp"
|
|
183
|
+
placeholder="TextAreaPlaceHolder"
|
|
184
|
+
/>
|
|
185
|
+
</DocumentFragment>
|
|
186
|
+
`;
|
|
187
|
+
|
|
188
|
+
exports[`Textarea component Should be render text 1`] = `
|
|
189
|
+
<DocumentFragment>
|
|
190
|
+
<textarea
|
|
191
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
192
|
+
data-id="TextareaComp"
|
|
193
|
+
data-selector-id="textarea"
|
|
194
|
+
data-test-id="TextareaComp"
|
|
195
|
+
>
|
|
196
|
+
TextAreaText
|
|
197
|
+
</textarea>
|
|
198
|
+
</DocumentFragment>
|
|
199
|
+
`;
|
|
200
|
+
|
|
201
|
+
exports[`Textarea component Should be render with the basic set of default props 1`] = `
|
|
202
|
+
<DocumentFragment>
|
|
203
|
+
<textarea
|
|
204
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
205
|
+
data-id="TextareaComp"
|
|
206
|
+
data-selector-id="textarea"
|
|
207
|
+
data-test-id="TextareaComp"
|
|
208
|
+
/>
|
|
209
|
+
</DocumentFragment>
|
|
210
|
+
`;
|
|
211
|
+
|
|
212
|
+
exports[`Textarea component Should render Varient - default 1`] = `
|
|
213
|
+
<DocumentFragment>
|
|
214
|
+
<textarea
|
|
215
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
216
|
+
data-id="TextareaComp"
|
|
217
|
+
data-selector-id="textarea"
|
|
218
|
+
data-test-id="TextareaComp"
|
|
219
|
+
/>
|
|
220
|
+
</DocumentFragment>
|
|
221
|
+
`;
|
|
222
|
+
|
|
223
|
+
exports[`Textarea component Should render Varient - primary 1`] = `
|
|
224
|
+
<DocumentFragment>
|
|
225
|
+
<textarea
|
|
226
|
+
class=" container small primary needBorder noresize effect borderColor_default"
|
|
227
|
+
data-id="TextareaComp"
|
|
228
|
+
data-selector-id="textarea"
|
|
229
|
+
data-test-id="TextareaComp"
|
|
230
|
+
/>
|
|
231
|
+
</DocumentFragment>
|
|
232
|
+
`;
|
|
233
|
+
|
|
234
|
+
exports[`Textarea component Should render animated is false - large 1`] = `
|
|
235
|
+
<DocumentFragment>
|
|
236
|
+
<textarea
|
|
237
|
+
class=" container large default needBorder noresize effect borderColor_default"
|
|
238
|
+
data-id="TextareaComp"
|
|
239
|
+
data-selector-id="textarea"
|
|
240
|
+
data-test-id="TextareaComp"
|
|
241
|
+
/>
|
|
242
|
+
</DocumentFragment>
|
|
243
|
+
`;
|
|
244
|
+
|
|
245
|
+
exports[`Textarea component Should render animated is false - medium 1`] = `
|
|
246
|
+
<DocumentFragment>
|
|
247
|
+
<textarea
|
|
248
|
+
class=" container medium default needBorder noresize effect borderColor_default"
|
|
249
|
+
data-id="TextareaComp"
|
|
250
|
+
data-selector-id="textarea"
|
|
251
|
+
data-test-id="TextareaComp"
|
|
252
|
+
/>
|
|
253
|
+
</DocumentFragment>
|
|
254
|
+
`;
|
|
255
|
+
|
|
256
|
+
exports[`Textarea component Should render animated is false - small 1`] = `
|
|
257
|
+
<DocumentFragment>
|
|
258
|
+
<textarea
|
|
259
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
260
|
+
data-id="TextareaComp"
|
|
261
|
+
data-selector-id="textarea"
|
|
262
|
+
data-test-id="TextareaComp"
|
|
263
|
+
/>
|
|
264
|
+
</DocumentFragment>
|
|
265
|
+
`;
|
|
266
|
+
|
|
267
|
+
exports[`Textarea component Should render animated is false - xmedium 1`] = `
|
|
268
|
+
<DocumentFragment>
|
|
269
|
+
<textarea
|
|
270
|
+
class=" container xmedium default needBorder noresize effect borderColor_default"
|
|
271
|
+
data-id="TextareaComp"
|
|
272
|
+
data-selector-id="textarea"
|
|
273
|
+
data-test-id="TextareaComp"
|
|
274
|
+
/>
|
|
275
|
+
</DocumentFragment>
|
|
276
|
+
`;
|
|
277
|
+
|
|
278
|
+
exports[`Textarea component Should render animated is false - xsmall 1`] = `
|
|
279
|
+
<DocumentFragment>
|
|
280
|
+
<textarea
|
|
281
|
+
class=" container xsmall default needBorder noresize effect borderColor_default"
|
|
282
|
+
data-id="TextareaComp"
|
|
283
|
+
data-selector-id="textarea"
|
|
284
|
+
data-test-id="TextareaComp"
|
|
285
|
+
/>
|
|
286
|
+
</DocumentFragment>
|
|
287
|
+
`;
|
|
288
|
+
|
|
289
|
+
exports[`Textarea component Should render animated is true - large 1`] = `
|
|
290
|
+
<DocumentFragment>
|
|
291
|
+
<textarea
|
|
292
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
293
|
+
data-id="TextareaComp"
|
|
294
|
+
data-selector-id="textarea"
|
|
295
|
+
data-test-id="TextareaComp"
|
|
296
|
+
/>
|
|
297
|
+
</DocumentFragment>
|
|
298
|
+
`;
|
|
299
|
+
|
|
300
|
+
exports[`Textarea component Should render animated is true - medium 1`] = `
|
|
301
|
+
<DocumentFragment>
|
|
302
|
+
<textarea
|
|
303
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
304
|
+
data-id="TextareaComp"
|
|
305
|
+
data-selector-id="textarea"
|
|
306
|
+
data-test-id="TextareaComp"
|
|
307
|
+
/>
|
|
308
|
+
</DocumentFragment>
|
|
309
|
+
`;
|
|
310
|
+
|
|
311
|
+
exports[`Textarea component Should render animated is true - small 1`] = `
|
|
312
|
+
<DocumentFragment>
|
|
313
|
+
<textarea
|
|
314
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
315
|
+
data-id="TextareaComp"
|
|
316
|
+
data-selector-id="textarea"
|
|
317
|
+
data-test-id="TextareaComp"
|
|
318
|
+
/>
|
|
319
|
+
</DocumentFragment>
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Textarea component Should render animated is true - xmedium 1`] = `
|
|
323
|
+
<DocumentFragment>
|
|
324
|
+
<textarea
|
|
325
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
326
|
+
data-id="TextareaComp"
|
|
327
|
+
data-selector-id="textarea"
|
|
328
|
+
data-test-id="TextareaComp"
|
|
329
|
+
/>
|
|
330
|
+
</DocumentFragment>
|
|
331
|
+
`;
|
|
332
|
+
|
|
333
|
+
exports[`Textarea component Should render animated is true - xsmall 1`] = `
|
|
334
|
+
<DocumentFragment>
|
|
335
|
+
<textarea
|
|
336
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
337
|
+
data-id="TextareaComp"
|
|
338
|
+
data-selector-id="textarea"
|
|
339
|
+
data-test-id="TextareaComp"
|
|
340
|
+
/>
|
|
341
|
+
</DocumentFragment>
|
|
342
|
+
`;
|
|
343
|
+
|
|
344
|
+
exports[`Textarea component Should render borderColor - default 1`] = `
|
|
345
|
+
<DocumentFragment>
|
|
346
|
+
<textarea
|
|
347
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
348
|
+
data-id="TextareaComp"
|
|
349
|
+
data-selector-id="textarea"
|
|
350
|
+
data-test-id="TextareaComp"
|
|
351
|
+
/>
|
|
352
|
+
</DocumentFragment>
|
|
353
|
+
`;
|
|
354
|
+
|
|
355
|
+
exports[`Textarea component Should render borderColor - transparent 1`] = `
|
|
356
|
+
<DocumentFragment>
|
|
357
|
+
<textarea
|
|
358
|
+
class=" container small default needBorder noresize effect borderColor_transparent"
|
|
359
|
+
data-id="TextareaComp"
|
|
360
|
+
data-selector-id="textarea"
|
|
361
|
+
data-test-id="TextareaComp"
|
|
362
|
+
/>
|
|
363
|
+
</DocumentFragment>
|
|
364
|
+
`;
|
|
365
|
+
|
|
366
|
+
exports[`Textarea component Should render resize - both 1`] = `
|
|
367
|
+
<DocumentFragment>
|
|
368
|
+
<textarea
|
|
369
|
+
class=" container small default needBorder resizeboth effect borderColor_default"
|
|
370
|
+
data-id="TextareaComp"
|
|
371
|
+
data-selector-id="textarea"
|
|
372
|
+
data-test-id="TextareaComp"
|
|
373
|
+
/>
|
|
374
|
+
</DocumentFragment>
|
|
375
|
+
`;
|
|
376
|
+
|
|
377
|
+
exports[`Textarea component Should render resize - horizontal 1`] = `
|
|
378
|
+
<DocumentFragment>
|
|
379
|
+
<textarea
|
|
380
|
+
class=" container small default needBorder resizeX effect borderColor_default"
|
|
381
|
+
data-id="TextareaComp"
|
|
382
|
+
data-selector-id="textarea"
|
|
383
|
+
data-test-id="TextareaComp"
|
|
384
|
+
/>
|
|
385
|
+
</DocumentFragment>
|
|
386
|
+
`;
|
|
387
|
+
|
|
388
|
+
exports[`Textarea component Should render resize - none 1`] = `
|
|
389
|
+
<DocumentFragment>
|
|
390
|
+
<textarea
|
|
391
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
392
|
+
data-id="TextareaComp"
|
|
393
|
+
data-selector-id="textarea"
|
|
394
|
+
data-test-id="TextareaComp"
|
|
395
|
+
/>
|
|
396
|
+
</DocumentFragment>
|
|
397
|
+
`;
|
|
398
|
+
|
|
399
|
+
exports[`Textarea component Should render resize - vertical 1`] = `
|
|
400
|
+
<DocumentFragment>
|
|
401
|
+
<textarea
|
|
402
|
+
class=" container small default needBorder resizeY effect borderColor_default"
|
|
403
|
+
data-id="TextareaComp"
|
|
404
|
+
data-selector-id="textarea"
|
|
405
|
+
data-test-id="TextareaComp"
|
|
406
|
+
/>
|
|
407
|
+
</DocumentFragment>
|
|
408
|
+
`;
|
|
409
|
+
|
|
410
|
+
exports[`Textarea component Should render size - large 1`] = `
|
|
411
|
+
<DocumentFragment>
|
|
412
|
+
<textarea
|
|
413
|
+
class=" container large default needBorder noresize largeanimated effect borderColor_default"
|
|
414
|
+
data-id="TextareaComp"
|
|
415
|
+
data-selector-id="textarea"
|
|
416
|
+
data-test-id="TextareaComp"
|
|
417
|
+
/>
|
|
418
|
+
</DocumentFragment>
|
|
419
|
+
`;
|
|
420
|
+
|
|
421
|
+
exports[`Textarea component Should render size - medium 1`] = `
|
|
422
|
+
<DocumentFragment>
|
|
423
|
+
<textarea
|
|
424
|
+
class=" container medium default needBorder noresize undefined effect borderColor_default"
|
|
425
|
+
data-id="TextareaComp"
|
|
426
|
+
data-selector-id="textarea"
|
|
427
|
+
data-test-id="TextareaComp"
|
|
428
|
+
/>
|
|
429
|
+
</DocumentFragment>
|
|
430
|
+
`;
|
|
431
|
+
|
|
432
|
+
exports[`Textarea component Should render size - small 1`] = `
|
|
433
|
+
<DocumentFragment>
|
|
434
|
+
<textarea
|
|
435
|
+
class=" container small default needBorder noresize smallanimated effect borderColor_default"
|
|
436
|
+
data-id="TextareaComp"
|
|
437
|
+
data-selector-id="textarea"
|
|
438
|
+
data-test-id="TextareaComp"
|
|
439
|
+
/>
|
|
440
|
+
</DocumentFragment>
|
|
441
|
+
`;
|
|
442
|
+
|
|
443
|
+
exports[`Textarea component Should render size - xmedium 1`] = `
|
|
444
|
+
<DocumentFragment>
|
|
445
|
+
<textarea
|
|
446
|
+
class=" container xmedium default needBorder noresize xmediumanimated effect borderColor_default"
|
|
447
|
+
data-id="TextareaComp"
|
|
448
|
+
data-selector-id="textarea"
|
|
449
|
+
data-test-id="TextareaComp"
|
|
450
|
+
/>
|
|
451
|
+
</DocumentFragment>
|
|
452
|
+
`;
|
|
453
|
+
|
|
454
|
+
exports[`Textarea component Should render size - xsmall 1`] = `
|
|
455
|
+
<DocumentFragment>
|
|
456
|
+
<textarea
|
|
457
|
+
class=" container xsmall default needBorder noresize xsmallanimated effect borderColor_default"
|
|
458
|
+
data-id="TextareaComp"
|
|
459
|
+
data-selector-id="textarea"
|
|
460
|
+
data-test-id="TextareaComp"
|
|
461
|
+
/>
|
|
462
|
+
</DocumentFragment>
|
|
463
|
+
`;
|
|
464
|
+
|
|
465
|
+
exports[`Textarea component rendering ally clearLabel 1`] = `
|
|
466
|
+
<DocumentFragment>
|
|
467
|
+
<textarea
|
|
468
|
+
aria-label="TextAreaAriaLabel"
|
|
469
|
+
aria-labelledby="TexareaAriaLabelledby"
|
|
470
|
+
class=" container small default needBorder noresize effect borderColor_default"
|
|
471
|
+
data-id="TextareaComp"
|
|
472
|
+
data-selector-id="textarea"
|
|
473
|
+
data-test-id="TextareaComp"
|
|
474
|
+
/>
|
|
475
|
+
</DocumentFragment>
|
|
476
|
+
`;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
6
|
+
exports.optionIdGrouping = exports.makeObjectConcat = exports.makeGetSelectedValueText = exports.makeGetOptionIdChange = exports.makeGetMultiSelectSelectedOptions = exports.makeGetMultiSelectFilterSuggestions = exports.makeGetIsShowClearIcon = exports.makeGetGroupSelectOptions = exports.makeGetGroupSelectFilterSuggestions = exports.makeFormatOptions = exports.getValueField = exports.getTextField = exports.getPrefixText = exports.getOptions = exports.getOptionType = exports.getImageField = exports.getIconSize = exports.getIconName = exports.filterSelectedOptions = exports.extractOptionIdFromJson = exports.extractOptionId = exports.dummyObj = exports.dummyArray = void 0;
|
|
7
7
|
|
|
8
8
|
var _reselect = require("reselect");
|
|
9
9
|
|
|
@@ -17,6 +17,10 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
17
17
|
|
|
18
18
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19
19
|
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
20
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
25
|
|
|
22
26
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
@@ -217,6 +221,12 @@ var extractOptionId = function extractOptionId(id) {
|
|
|
217
221
|
|
|
218
222
|
exports.extractOptionId = extractOptionId;
|
|
219
223
|
|
|
224
|
+
var extractOptionIdFromJson = function extractOptionIdFromJson(id, localData) {
|
|
225
|
+
return localData[id] || {};
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
exports.extractOptionIdFromJson = extractOptionIdFromJson;
|
|
229
|
+
|
|
220
230
|
var makeFormatOptions = function makeFormatOptions() {
|
|
221
231
|
return (0, _reselect.createSelector)([getOptions, getValueField, getTextField, getImageField, getPrefixText, getIconName, getIconSize, getOptionType, getDisabledOptions, getListItemProps], function (options, valueField, textField, imageField, prefixText, iconName, iconSize, optionType, disabledOptions, listItemProps) {
|
|
222
232
|
var revampOptions = [];
|
|
@@ -268,7 +278,9 @@ var makeFormatOptions = function makeFormatOptions() {
|
|
|
268
278
|
}
|
|
269
279
|
|
|
270
280
|
normalizedFormatOptions[id] = optionDetails;
|
|
271
|
-
normalizedAllOptions[id] = option
|
|
281
|
+
normalizedAllOptions[id] = _objectSpread(_objectSpread({}, option), {}, {
|
|
282
|
+
groupId: prefixText
|
|
283
|
+
});
|
|
272
284
|
revampOptions.push(optionDetails);
|
|
273
285
|
}
|
|
274
286
|
}
|
|
@@ -435,11 +435,14 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
435
435
|
needEffect = _this$props5.needEffect,
|
|
436
436
|
disabledOptions = _this$props5.disabledOptions,
|
|
437
437
|
isLoading = _this$props5.isLoading,
|
|
438
|
-
dataSelectorId = _this$props5.dataSelectorId
|
|
438
|
+
dataSelectorId = _this$props5.dataSelectorId,
|
|
439
|
+
customClass = _this$props5.customClass;
|
|
439
440
|
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
440
441
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
441
442
|
_customProps$DropBoxP = customProps.DropBoxProps,
|
|
442
443
|
DropBoxProps = _customProps$DropBoxP === void 0 ? {} : _customProps$DropBoxP;
|
|
444
|
+
var _customClass$containe = customClass.containerClass,
|
|
445
|
+
containerClass = _customClass$containe === void 0 ? '' : _customClass$containe;
|
|
443
446
|
var _i18nKeys = i18nKeys,
|
|
444
447
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
445
448
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -473,7 +476,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
473
476
|
|
|
474
477
|
var isShowClearIcon = !isReadOnly && !isDisabled && isShowClear;
|
|
475
478
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
476
|
-
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
479
|
+
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(containerClass),
|
|
477
480
|
"data-id": dataIdMultiSelectComp,
|
|
478
481
|
"data-test-id": dataIdMultiSelectComp,
|
|
479
482
|
"data-title": isDisabled ? title : null,
|
|
@@ -75,7 +75,8 @@ var AdvancedMultiSelect_defaultProps = {
|
|
|
75
75
|
customProps: {},
|
|
76
76
|
needEffect: true,
|
|
77
77
|
isLoading: false,
|
|
78
|
-
dataSelectorId: 'advancedMultiSelect'
|
|
78
|
+
dataSelectorId: 'advancedMultiSelect',
|
|
79
|
+
customClass: {}
|
|
79
80
|
};
|
|
80
81
|
exports.AdvancedMultiSelect_defaultProps = AdvancedMultiSelect_defaultProps;
|
|
81
82
|
var EmptyState_defaultProps = {
|
|
@@ -334,7 +334,8 @@ var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_
|
|
|
334
334
|
DropBoxProps: _propTypes["default"].object
|
|
335
335
|
}),
|
|
336
336
|
isLoading: _propTypes["default"].bool,
|
|
337
|
-
dataSelectorId: _propTypes["default"].string
|
|
337
|
+
dataSelectorId: _propTypes["default"].string,
|
|
338
|
+
customClass: _propTypes["default"].object
|
|
338
339
|
});
|
|
339
340
|
|
|
340
341
|
exports.AdvancedMultiSelect_propTypes = AdvancedMultiSelect_propTypes;
|
|
@@ -422,9 +422,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
422
422
|
isReadOnly = _this$props4.isReadOnly;
|
|
423
423
|
var normalizedAllOptions = this.normalizedAllOptions;
|
|
424
424
|
|
|
425
|
-
var
|
|
426
|
-
selected =
|
|
427
|
-
groupId =
|
|
425
|
+
var _ref = (0, _dropDownUtils.extractOptionId)(id) || (0, _dropDownUtils.extractOptionIdFromJson)(id, normalizedAllOptions),
|
|
426
|
+
selected = _ref.id,
|
|
427
|
+
groupId = _ref.groupId;
|
|
428
428
|
|
|
429
429
|
if (!(0, _Common.getIsEmptyValue)(id) && !isReadOnly) {
|
|
430
430
|
onChange && onChange({
|
|
@@ -479,8 +479,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
479
479
|
}, {
|
|
480
480
|
key: "handleSelectFocus",
|
|
481
481
|
value: function handleSelectFocus(e) {
|
|
482
|
-
var
|
|
483
|
-
target =
|
|
482
|
+
var _ref2 = e || {},
|
|
483
|
+
target = _ref2.target;
|
|
484
484
|
|
|
485
485
|
target && target.setSelectionRange(target, 0);
|
|
486
486
|
}
|
|
@@ -610,8 +610,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
610
610
|
}
|
|
611
611
|
}, {
|
|
612
612
|
key: "responsiveFunc",
|
|
613
|
-
value: function responsiveFunc(
|
|
614
|
-
var mediaQueryOR =
|
|
613
|
+
value: function responsiveFunc(_ref3) {
|
|
614
|
+
var mediaQueryOR = _ref3.mediaQueryOR;
|
|
615
615
|
return {
|
|
616
616
|
tabletMode: mediaQueryOR([{
|
|
617
617
|
maxWidth: 700
|
|
@@ -679,9 +679,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
679
679
|
suggestionGroups = _this$handleFilterSug4.suggestionGroups,
|
|
680
680
|
suggestionOptionIds = _this$handleFilterSug4.suggestionOptionIds;
|
|
681
681
|
|
|
682
|
-
var
|
|
683
|
-
|
|
684
|
-
selected =
|
|
682
|
+
var _ref4 = normalizedFormatOptions[selectedId] || {},
|
|
683
|
+
_ref4$value = _ref4.value,
|
|
684
|
+
selected = _ref4$value === void 0 ? '' : _ref4$value;
|
|
685
685
|
|
|
686
686
|
var setAriaId = this.getNextAriaId();
|
|
687
687
|
var ariaErrorId = this.getNextAriaId();
|
|
@@ -767,8 +767,8 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
767
767
|
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
768
768
|
query: this.responsiveFunc,
|
|
769
769
|
responsiveId: "Helmet"
|
|
770
|
-
}, function (
|
|
771
|
-
var tabletMode =
|
|
770
|
+
}, function (_ref5) {
|
|
771
|
+
var tabletMode = _ref5.tabletMode;
|
|
772
772
|
return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
|
|
773
773
|
animationStyle: animationStyle,
|
|
774
774
|
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|