@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,615 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Textbox component Should be render autoComplete false 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<input
|
|
6
|
+
autocomplete="off"
|
|
7
|
+
class=" container medium default border effect borderColor_default "
|
|
8
|
+
data-id="textBox"
|
|
9
|
+
data-selector-id="textBox"
|
|
10
|
+
data-test-id="textBox"
|
|
11
|
+
type="text"
|
|
12
|
+
value=""
|
|
13
|
+
/>
|
|
14
|
+
</DocumentFragment>
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
exports[`Textbox component Should be render autoComplete true 1`] = `
|
|
18
|
+
<DocumentFragment>
|
|
19
|
+
<input
|
|
20
|
+
class=" container medium default border effect borderColor_default "
|
|
21
|
+
data-id="textBox"
|
|
22
|
+
data-selector-id="textBox"
|
|
23
|
+
data-test-id="textBox"
|
|
24
|
+
type="text"
|
|
25
|
+
value=""
|
|
26
|
+
/>
|
|
27
|
+
</DocumentFragment>
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
exports[`Textbox component Should be render autofocus false 1`] = `
|
|
31
|
+
<DocumentFragment>
|
|
32
|
+
<input
|
|
33
|
+
class=" container medium default border effect borderColor_default "
|
|
34
|
+
data-id="textBox"
|
|
35
|
+
data-selector-id="textBox"
|
|
36
|
+
data-test-id="textBox"
|
|
37
|
+
type="text"
|
|
38
|
+
value=""
|
|
39
|
+
/>
|
|
40
|
+
</DocumentFragment>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
exports[`Textbox component Should be render autofocus true 1`] = `
|
|
44
|
+
<DocumentFragment>
|
|
45
|
+
<input
|
|
46
|
+
class=" container medium default border effect borderColor_default "
|
|
47
|
+
data-id="textBox"
|
|
48
|
+
data-selector-id="textBox"
|
|
49
|
+
data-test-id="textBox"
|
|
50
|
+
type="text"
|
|
51
|
+
value=""
|
|
52
|
+
/>
|
|
53
|
+
</DocumentFragment>
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
exports[`Textbox component Should be render customClass 1`] = `
|
|
57
|
+
<DocumentFragment>
|
|
58
|
+
<input
|
|
59
|
+
class=" container medium default border effect borderColor_default TextBoxCustomClass"
|
|
60
|
+
data-id="textBox"
|
|
61
|
+
data-selector-id="textBox"
|
|
62
|
+
data-test-id="textBox"
|
|
63
|
+
type="text"
|
|
64
|
+
value=""
|
|
65
|
+
/>
|
|
66
|
+
</DocumentFragment>
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
exports[`Textbox component Should be render htmlId 1`] = `
|
|
70
|
+
<DocumentFragment>
|
|
71
|
+
<input
|
|
72
|
+
class=" container medium default border effect borderColor_default "
|
|
73
|
+
data-id="textBox"
|
|
74
|
+
data-selector-id="textBox"
|
|
75
|
+
data-test-id="textBox"
|
|
76
|
+
id="textBoxhtmlId"
|
|
77
|
+
type="text"
|
|
78
|
+
value=""
|
|
79
|
+
/>
|
|
80
|
+
</DocumentFragment>
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
exports[`Textbox component Should be render id 1`] = `
|
|
84
|
+
<DocumentFragment>
|
|
85
|
+
<input
|
|
86
|
+
class=" container medium default border effect borderColor_default "
|
|
87
|
+
data-id="textBox"
|
|
88
|
+
data-selector-id="textBox"
|
|
89
|
+
data-test-id="textBox"
|
|
90
|
+
id="TextboxId"
|
|
91
|
+
type="text"
|
|
92
|
+
value=""
|
|
93
|
+
/>
|
|
94
|
+
</DocumentFragment>
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
exports[`Textbox component Should be render isClickable is ture 1`] = `
|
|
98
|
+
<DocumentFragment>
|
|
99
|
+
<input
|
|
100
|
+
class=" pointer container medium default border effect borderColor_default "
|
|
101
|
+
data-id="textBox"
|
|
102
|
+
data-selector-id="textBox"
|
|
103
|
+
data-test-id="textBox"
|
|
104
|
+
type="text"
|
|
105
|
+
value=""
|
|
106
|
+
/>
|
|
107
|
+
</DocumentFragment>
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
exports[`Textbox component Should be render isDisabled is false and needEffect is false 1`] = `
|
|
111
|
+
<DocumentFragment>
|
|
112
|
+
<input
|
|
113
|
+
class=" container medium default border effect borderColor_default "
|
|
114
|
+
data-id="textBox"
|
|
115
|
+
data-selector-id="textBox"
|
|
116
|
+
data-test-id="textBox"
|
|
117
|
+
type="text"
|
|
118
|
+
value=""
|
|
119
|
+
/>
|
|
120
|
+
</DocumentFragment>
|
|
121
|
+
`;
|
|
122
|
+
|
|
123
|
+
exports[`Textbox component Should be render isDisabled is true and needEffect is false 1`] = `
|
|
124
|
+
<DocumentFragment>
|
|
125
|
+
<input
|
|
126
|
+
class=" container medium default border borderColor_default "
|
|
127
|
+
data-id="textBox"
|
|
128
|
+
data-selector-id="textBox"
|
|
129
|
+
data-test-id="textBox"
|
|
130
|
+
disabled=""
|
|
131
|
+
type="text"
|
|
132
|
+
value=""
|
|
133
|
+
/>
|
|
134
|
+
</DocumentFragment>
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
exports[`Textbox component Should be render isDisabled is true and needEffect is true 1`] = `
|
|
138
|
+
<DocumentFragment>
|
|
139
|
+
<input
|
|
140
|
+
class=" container medium default border effect borderColor_default "
|
|
141
|
+
data-id="textBox"
|
|
142
|
+
data-selector-id="textBox"
|
|
143
|
+
data-test-id="textBox"
|
|
144
|
+
disabled=""
|
|
145
|
+
type="text"
|
|
146
|
+
value=""
|
|
147
|
+
/>
|
|
148
|
+
</DocumentFragment>
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
exports[`Textbox component Should be render isFocus is true 1`] = `
|
|
152
|
+
<DocumentFragment>
|
|
153
|
+
<input
|
|
154
|
+
class=" container medium default border effect focus borderColor_default "
|
|
155
|
+
data-id="textBox"
|
|
156
|
+
data-selector-id="textBox"
|
|
157
|
+
data-test-id="textBox"
|
|
158
|
+
type="text"
|
|
159
|
+
value=""
|
|
160
|
+
/>
|
|
161
|
+
</DocumentFragment>
|
|
162
|
+
`;
|
|
163
|
+
|
|
164
|
+
exports[`Textbox component Should be render isReadOnly is false and needEffect is false 1`] = `
|
|
165
|
+
<DocumentFragment>
|
|
166
|
+
<input
|
|
167
|
+
class=" container medium default border effect borderColor_default "
|
|
168
|
+
data-id="textBox"
|
|
169
|
+
data-selector-id="textBox"
|
|
170
|
+
data-test-id="textBox"
|
|
171
|
+
type="text"
|
|
172
|
+
value=""
|
|
173
|
+
/>
|
|
174
|
+
</DocumentFragment>
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
exports[`Textbox component Should be render isReadOnly is true and needEffect is false 1`] = `
|
|
178
|
+
<DocumentFragment>
|
|
179
|
+
<input
|
|
180
|
+
class="readonly container medium default border borderColor_default "
|
|
181
|
+
data-id="textBox"
|
|
182
|
+
data-selector-id="textBox"
|
|
183
|
+
data-test-id="textBox"
|
|
184
|
+
readonly=""
|
|
185
|
+
type="text"
|
|
186
|
+
value=""
|
|
187
|
+
/>
|
|
188
|
+
</DocumentFragment>
|
|
189
|
+
`;
|
|
190
|
+
|
|
191
|
+
exports[`Textbox component Should be render isReadOnly is true and needEffect is true 1`] = `
|
|
192
|
+
<DocumentFragment>
|
|
193
|
+
<input
|
|
194
|
+
class="readonly container medium default border effect borderColor_default "
|
|
195
|
+
data-id="textBox"
|
|
196
|
+
data-selector-id="textBox"
|
|
197
|
+
data-test-id="textBox"
|
|
198
|
+
readonly=""
|
|
199
|
+
type="text"
|
|
200
|
+
value=""
|
|
201
|
+
/>
|
|
202
|
+
</DocumentFragment>
|
|
203
|
+
`;
|
|
204
|
+
|
|
205
|
+
exports[`Textbox component Should be render isScrollPrevent is true 1`] = `
|
|
206
|
+
<DocumentFragment>
|
|
207
|
+
<input
|
|
208
|
+
class=" container medium default border effect borderColor_default inputDotted "
|
|
209
|
+
data-id="textBox"
|
|
210
|
+
data-selector-id="textBox"
|
|
211
|
+
data-test-id="textBox"
|
|
212
|
+
type="text"
|
|
213
|
+
value=""
|
|
214
|
+
/>
|
|
215
|
+
</DocumentFragment>
|
|
216
|
+
`;
|
|
217
|
+
|
|
218
|
+
exports[`Textbox component Should be render maxLength in number 1`] = `
|
|
219
|
+
<DocumentFragment>
|
|
220
|
+
<input
|
|
221
|
+
class=" container medium default border effect borderColor_default "
|
|
222
|
+
data-id="textBox"
|
|
223
|
+
data-selector-id="textBox"
|
|
224
|
+
data-test-id="textBox"
|
|
225
|
+
maxlength="11"
|
|
226
|
+
type="text"
|
|
227
|
+
value=""
|
|
228
|
+
/>
|
|
229
|
+
</DocumentFragment>
|
|
230
|
+
`;
|
|
231
|
+
|
|
232
|
+
exports[`Textbox component Should be render maxLength in string 1`] = `
|
|
233
|
+
<DocumentFragment>
|
|
234
|
+
<input
|
|
235
|
+
class=" container medium default border effect borderColor_default "
|
|
236
|
+
data-id="textBox"
|
|
237
|
+
data-selector-id="textBox"
|
|
238
|
+
data-test-id="textBox"
|
|
239
|
+
maxlength="Ten"
|
|
240
|
+
type="text"
|
|
241
|
+
value=""
|
|
242
|
+
/>
|
|
243
|
+
</DocumentFragment>
|
|
244
|
+
`;
|
|
245
|
+
|
|
246
|
+
exports[`Textbox component Should be render name 1`] = `
|
|
247
|
+
<DocumentFragment>
|
|
248
|
+
<input
|
|
249
|
+
class=" container medium default border effect borderColor_default "
|
|
250
|
+
data-id="textBox"
|
|
251
|
+
data-selector-id="textBox"
|
|
252
|
+
data-test-id="textBox"
|
|
253
|
+
name="TextboxName"
|
|
254
|
+
type="text"
|
|
255
|
+
value=""
|
|
256
|
+
/>
|
|
257
|
+
</DocumentFragment>
|
|
258
|
+
`;
|
|
259
|
+
|
|
260
|
+
exports[`Textbox component Should be render needAppearance is false 1`] = `
|
|
261
|
+
<DocumentFragment>
|
|
262
|
+
<input
|
|
263
|
+
class=" basic borderColor_default "
|
|
264
|
+
data-id="textBox"
|
|
265
|
+
data-selector-id="textBox"
|
|
266
|
+
data-test-id="textBox"
|
|
267
|
+
type="text"
|
|
268
|
+
value=""
|
|
269
|
+
/>
|
|
270
|
+
</DocumentFragment>
|
|
271
|
+
`;
|
|
272
|
+
|
|
273
|
+
exports[`Textbox component Should be render needBorder is false 1`] = `
|
|
274
|
+
<DocumentFragment>
|
|
275
|
+
<input
|
|
276
|
+
class=" container medium default effect borderColor_default "
|
|
277
|
+
data-id="textBox"
|
|
278
|
+
data-selector-id="textBox"
|
|
279
|
+
data-test-id="textBox"
|
|
280
|
+
type="text"
|
|
281
|
+
value=""
|
|
282
|
+
/>
|
|
283
|
+
</DocumentFragment>
|
|
284
|
+
`;
|
|
285
|
+
|
|
286
|
+
exports[`Textbox component Should be render needReadOnlyStyle is false 1`] = `
|
|
287
|
+
<DocumentFragment>
|
|
288
|
+
<input
|
|
289
|
+
class=" container medium default border effect borderColor_default "
|
|
290
|
+
data-id="textBox"
|
|
291
|
+
data-selector-id="textBox"
|
|
292
|
+
data-test-id="textBox"
|
|
293
|
+
type="text"
|
|
294
|
+
value=""
|
|
295
|
+
/>
|
|
296
|
+
</DocumentFragment>
|
|
297
|
+
`;
|
|
298
|
+
|
|
299
|
+
exports[`Textbox component Should be render needReadOnlyStyle is false and isReadOnly true 1`] = `
|
|
300
|
+
<DocumentFragment>
|
|
301
|
+
<input
|
|
302
|
+
class=" container medium default border effect borderColor_default "
|
|
303
|
+
data-id="textBox"
|
|
304
|
+
data-selector-id="textBox"
|
|
305
|
+
data-test-id="textBox"
|
|
306
|
+
readonly=""
|
|
307
|
+
type="text"
|
|
308
|
+
value=""
|
|
309
|
+
/>
|
|
310
|
+
</DocumentFragment>
|
|
311
|
+
`;
|
|
312
|
+
|
|
313
|
+
exports[`Textbox component Should be render needReadOnlyStyle is true and isReadOnly true 1`] = `
|
|
314
|
+
<DocumentFragment>
|
|
315
|
+
<input
|
|
316
|
+
class="readonly container medium default border effect borderColor_default "
|
|
317
|
+
data-id="textBox"
|
|
318
|
+
data-selector-id="textBox"
|
|
319
|
+
data-test-id="textBox"
|
|
320
|
+
readonly=""
|
|
321
|
+
type="text"
|
|
322
|
+
value=""
|
|
323
|
+
/>
|
|
324
|
+
</DocumentFragment>
|
|
325
|
+
`;
|
|
326
|
+
|
|
327
|
+
exports[`Textbox component Should be render placeholder 1`] = `
|
|
328
|
+
<DocumentFragment>
|
|
329
|
+
<input
|
|
330
|
+
class=" container medium default border effect borderColor_default "
|
|
331
|
+
data-id="textBox"
|
|
332
|
+
data-selector-id="textBox"
|
|
333
|
+
data-test-id="textBox"
|
|
334
|
+
placeholder="TextBoxPlaceHolder"
|
|
335
|
+
type="text"
|
|
336
|
+
value=""
|
|
337
|
+
/>
|
|
338
|
+
</DocumentFragment>
|
|
339
|
+
`;
|
|
340
|
+
|
|
341
|
+
exports[`Textbox component Should be render value in number 1`] = `
|
|
342
|
+
<DocumentFragment>
|
|
343
|
+
<input
|
|
344
|
+
class=" container medium default border effect borderColor_default "
|
|
345
|
+
data-id="textBox"
|
|
346
|
+
data-selector-id="textBox"
|
|
347
|
+
data-test-id="textBox"
|
|
348
|
+
type="text"
|
|
349
|
+
value="20"
|
|
350
|
+
/>
|
|
351
|
+
</DocumentFragment>
|
|
352
|
+
`;
|
|
353
|
+
|
|
354
|
+
exports[`Textbox component Should be render value in string 1`] = `
|
|
355
|
+
<DocumentFragment>
|
|
356
|
+
<input
|
|
357
|
+
class=" container medium default border effect borderColor_default "
|
|
358
|
+
data-id="textBox"
|
|
359
|
+
data-selector-id="textBox"
|
|
360
|
+
data-test-id="textBox"
|
|
361
|
+
type="text"
|
|
362
|
+
value="Tewnty"
|
|
363
|
+
/>
|
|
364
|
+
</DocumentFragment>
|
|
365
|
+
`;
|
|
366
|
+
|
|
367
|
+
exports[`Textbox component Should be render with the basic set of default props 1`] = `
|
|
368
|
+
<DocumentFragment>
|
|
369
|
+
<input
|
|
370
|
+
class=" container medium default border effect borderColor_default "
|
|
371
|
+
data-id="textBox"
|
|
372
|
+
data-selector-id="textBox"
|
|
373
|
+
data-test-id="textBox"
|
|
374
|
+
type="text"
|
|
375
|
+
value=""
|
|
376
|
+
/>
|
|
377
|
+
</DocumentFragment>
|
|
378
|
+
`;
|
|
379
|
+
|
|
380
|
+
exports[`Textbox component Should render Varient - default 1`] = `
|
|
381
|
+
<DocumentFragment>
|
|
382
|
+
<input
|
|
383
|
+
class=" container medium default border effect borderColor_default "
|
|
384
|
+
data-id="textBox"
|
|
385
|
+
data-selector-id="textBox"
|
|
386
|
+
data-test-id="textBox"
|
|
387
|
+
type="text"
|
|
388
|
+
value=""
|
|
389
|
+
/>
|
|
390
|
+
</DocumentFragment>
|
|
391
|
+
`;
|
|
392
|
+
|
|
393
|
+
exports[`Textbox component Should render Varient - light 1`] = `
|
|
394
|
+
<DocumentFragment>
|
|
395
|
+
<input
|
|
396
|
+
class=" container medium light border effect borderColor_default "
|
|
397
|
+
data-id="textBox"
|
|
398
|
+
data-selector-id="textBox"
|
|
399
|
+
data-test-id="textBox"
|
|
400
|
+
type="text"
|
|
401
|
+
value=""
|
|
402
|
+
/>
|
|
403
|
+
</DocumentFragment>
|
|
404
|
+
`;
|
|
405
|
+
|
|
406
|
+
exports[`Textbox component Should render Varient - primary 1`] = `
|
|
407
|
+
<DocumentFragment>
|
|
408
|
+
<input
|
|
409
|
+
class=" container medium primary border effect borderColor_default "
|
|
410
|
+
data-id="textBox"
|
|
411
|
+
data-selector-id="textBox"
|
|
412
|
+
data-test-id="textBox"
|
|
413
|
+
type="text"
|
|
414
|
+
value=""
|
|
415
|
+
/>
|
|
416
|
+
</DocumentFragment>
|
|
417
|
+
`;
|
|
418
|
+
|
|
419
|
+
exports[`Textbox component Should render Varient - secondary 1`] = `
|
|
420
|
+
<DocumentFragment>
|
|
421
|
+
<input
|
|
422
|
+
class=" container medium secondary border effect borderColor_default "
|
|
423
|
+
data-id="textBox"
|
|
424
|
+
data-selector-id="textBox"
|
|
425
|
+
data-test-id="textBox"
|
|
426
|
+
type="text"
|
|
427
|
+
value=""
|
|
428
|
+
/>
|
|
429
|
+
</DocumentFragment>
|
|
430
|
+
`;
|
|
431
|
+
|
|
432
|
+
exports[`Textbox component Should render borderColor - default 1`] = `
|
|
433
|
+
<DocumentFragment>
|
|
434
|
+
<input
|
|
435
|
+
class=" container medium default border effect borderColor_default "
|
|
436
|
+
data-id="textBox"
|
|
437
|
+
data-selector-id="textBox"
|
|
438
|
+
data-test-id="textBox"
|
|
439
|
+
type="text"
|
|
440
|
+
value=""
|
|
441
|
+
/>
|
|
442
|
+
</DocumentFragment>
|
|
443
|
+
`;
|
|
444
|
+
|
|
445
|
+
exports[`Textbox component Should render borderColor - transparent 1`] = `
|
|
446
|
+
<DocumentFragment>
|
|
447
|
+
<input
|
|
448
|
+
class=" container medium default border effect borderColor_transparent "
|
|
449
|
+
data-id="textBox"
|
|
450
|
+
data-selector-id="textBox"
|
|
451
|
+
data-test-id="textBox"
|
|
452
|
+
type="text"
|
|
453
|
+
value=""
|
|
454
|
+
/>
|
|
455
|
+
</DocumentFragment>
|
|
456
|
+
`;
|
|
457
|
+
|
|
458
|
+
exports[`Textbox component Should render size - medium 1`] = `
|
|
459
|
+
<DocumentFragment>
|
|
460
|
+
<input
|
|
461
|
+
class=" container medium default border effect borderColor_default "
|
|
462
|
+
data-id="textBox"
|
|
463
|
+
data-selector-id="textBox"
|
|
464
|
+
data-test-id="textBox"
|
|
465
|
+
type="text"
|
|
466
|
+
value=""
|
|
467
|
+
/>
|
|
468
|
+
</DocumentFragment>
|
|
469
|
+
`;
|
|
470
|
+
|
|
471
|
+
exports[`Textbox component Should render size - small 1`] = `
|
|
472
|
+
<DocumentFragment>
|
|
473
|
+
<input
|
|
474
|
+
class=" container small default border effect borderColor_default "
|
|
475
|
+
data-id="textBox"
|
|
476
|
+
data-selector-id="textBox"
|
|
477
|
+
data-test-id="textBox"
|
|
478
|
+
type="text"
|
|
479
|
+
value=""
|
|
480
|
+
/>
|
|
481
|
+
</DocumentFragment>
|
|
482
|
+
`;
|
|
483
|
+
|
|
484
|
+
exports[`Textbox component Should render size - xmedium 1`] = `
|
|
485
|
+
<DocumentFragment>
|
|
486
|
+
<input
|
|
487
|
+
class=" container xmedium default border effect borderColor_default "
|
|
488
|
+
data-id="textBox"
|
|
489
|
+
data-selector-id="textBox"
|
|
490
|
+
data-test-id="textBox"
|
|
491
|
+
type="text"
|
|
492
|
+
value=""
|
|
493
|
+
/>
|
|
494
|
+
</DocumentFragment>
|
|
495
|
+
`;
|
|
496
|
+
|
|
497
|
+
exports[`Textbox component Should render size - xsmall 1`] = `
|
|
498
|
+
<DocumentFragment>
|
|
499
|
+
<input
|
|
500
|
+
class=" container xsmall default border effect borderColor_default "
|
|
501
|
+
data-id="textBox"
|
|
502
|
+
data-selector-id="textBox"
|
|
503
|
+
data-test-id="textBox"
|
|
504
|
+
type="text"
|
|
505
|
+
value=""
|
|
506
|
+
/>
|
|
507
|
+
</DocumentFragment>
|
|
508
|
+
`;
|
|
509
|
+
|
|
510
|
+
exports[`Textbox component Should render type - number 1`] = `
|
|
511
|
+
<DocumentFragment>
|
|
512
|
+
<input
|
|
513
|
+
class=" container medium default border effect borderColor_default "
|
|
514
|
+
data-id="textBox"
|
|
515
|
+
data-selector-id="textBox"
|
|
516
|
+
data-test-id="textBox"
|
|
517
|
+
type="number"
|
|
518
|
+
value=""
|
|
519
|
+
/>
|
|
520
|
+
</DocumentFragment>
|
|
521
|
+
`;
|
|
522
|
+
|
|
523
|
+
exports[`Textbox component Should render type - password 1`] = `
|
|
524
|
+
<DocumentFragment>
|
|
525
|
+
<input
|
|
526
|
+
class=" container medium default border effect borderColor_default "
|
|
527
|
+
data-id="textBox"
|
|
528
|
+
data-selector-id="textBox"
|
|
529
|
+
data-test-id="textBox"
|
|
530
|
+
type="password"
|
|
531
|
+
value=""
|
|
532
|
+
/>
|
|
533
|
+
</DocumentFragment>
|
|
534
|
+
`;
|
|
535
|
+
|
|
536
|
+
exports[`Textbox component Should render type - text 1`] = `
|
|
537
|
+
<DocumentFragment>
|
|
538
|
+
<input
|
|
539
|
+
class=" container medium default border effect borderColor_default "
|
|
540
|
+
data-id="textBox"
|
|
541
|
+
data-selector-id="textBox"
|
|
542
|
+
data-test-id="textBox"
|
|
543
|
+
type="text"
|
|
544
|
+
value=""
|
|
545
|
+
/>
|
|
546
|
+
</DocumentFragment>
|
|
547
|
+
`;
|
|
548
|
+
|
|
549
|
+
exports[`Textbox component rendering ally ariaExpanded,ariaHaspopup,ariaRequired,ariaLabelledby,ariaReadonly,ariaMultiselectable is false 1`] = `
|
|
550
|
+
<DocumentFragment>
|
|
551
|
+
<input
|
|
552
|
+
aria-activedescendant="textBoxAriaActivedescendant"
|
|
553
|
+
aria-autocomplete="textboxAriaAutocomplete"
|
|
554
|
+
aria-controls="textboxAriaControls"
|
|
555
|
+
aria-describedby="textboxAriaDescribedby"
|
|
556
|
+
aria-expanded="false"
|
|
557
|
+
aria-haspopup="false"
|
|
558
|
+
aria-invalid="false"
|
|
559
|
+
aria-label="textboxAriaLabel"
|
|
560
|
+
aria-labelledby="textboxAriaLabelledby"
|
|
561
|
+
aria-multiselectable="false"
|
|
562
|
+
aria-owns="textboxAriaOwns"
|
|
563
|
+
aria-readonly="false"
|
|
564
|
+
aria-required="false"
|
|
565
|
+
class=" container medium default border effect borderColor_default "
|
|
566
|
+
data-id="textBox"
|
|
567
|
+
data-selector-id="textBox"
|
|
568
|
+
data-test-id="textBox"
|
|
569
|
+
role="TextboxRole"
|
|
570
|
+
type="text"
|
|
571
|
+
value=""
|
|
572
|
+
/>
|
|
573
|
+
</DocumentFragment>
|
|
574
|
+
`;
|
|
575
|
+
|
|
576
|
+
exports[`Textbox component rendering ally ariaExpanded,ariaHaspopup,ariaRequired,ariaLabelledby,ariaReadonly,ariaMultiselectable is true 1`] = `
|
|
577
|
+
<DocumentFragment>
|
|
578
|
+
<input
|
|
579
|
+
aria-activedescendant="textBoxAriaActivedescendant"
|
|
580
|
+
aria-autocomplete="textboxAriaAutocomplete"
|
|
581
|
+
aria-controls="textboxAriaControls"
|
|
582
|
+
aria-describedby="textboxAriaDescribedby"
|
|
583
|
+
aria-expanded="true"
|
|
584
|
+
aria-haspopup="true"
|
|
585
|
+
aria-invalid="true"
|
|
586
|
+
aria-label="textboxAriaLabel"
|
|
587
|
+
aria-labelledby="textboxAriaLabelledby"
|
|
588
|
+
aria-multiselectable="true"
|
|
589
|
+
aria-owns="textboxAriaOwns"
|
|
590
|
+
aria-readonly="true"
|
|
591
|
+
aria-required="true"
|
|
592
|
+
class=" container medium default border effect borderColor_default "
|
|
593
|
+
data-id="textBox"
|
|
594
|
+
data-selector-id="textBox"
|
|
595
|
+
data-test-id="textBox"
|
|
596
|
+
role="TextboxRole"
|
|
597
|
+
type="text"
|
|
598
|
+
value=""
|
|
599
|
+
/>
|
|
600
|
+
</DocumentFragment>
|
|
601
|
+
`;
|
|
602
|
+
|
|
603
|
+
exports[`Textbox component rendering the Custom Props 1`] = `
|
|
604
|
+
<DocumentFragment>
|
|
605
|
+
<input
|
|
606
|
+
class=" container medium default border effect borderColor_default "
|
|
607
|
+
data-id="textBox"
|
|
608
|
+
data-selector-id="textBox"
|
|
609
|
+
data-test-id="textBox"
|
|
610
|
+
textbox-props="true"
|
|
611
|
+
type="text"
|
|
612
|
+
value=""
|
|
613
|
+
/>
|
|
614
|
+
</DocumentFragment>
|
|
615
|
+
`;
|
|
@@ -3,7 +3,6 @@ export const propTypes = {
|
|
|
3
3
|
autofocus: PropTypes.bool,
|
|
4
4
|
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
5
5
|
dataId: PropTypes.string,
|
|
6
|
-
htmlId: PropTypes.string,
|
|
7
6
|
id: PropTypes.string,
|
|
8
7
|
inputRef: PropTypes.func,
|
|
9
8
|
isClickable: PropTypes.bool,
|
|
@@ -28,7 +27,6 @@ export const propTypes = {
|
|
|
28
27
|
type: PropTypes.oneOf(['text', 'password', 'number']),
|
|
29
28
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
30
29
|
variant: PropTypes.oneOf(['primary', 'secondary', 'default', 'light']),
|
|
31
|
-
htmlId: PropTypes.string,
|
|
32
30
|
customClass: PropTypes.string,
|
|
33
31
|
htmlId: PropTypes.string,
|
|
34
32
|
a11y: PropTypes.shape({
|
|
@@ -38,7 +36,6 @@ export const propTypes = {
|
|
|
38
36
|
ariaDescribedby: PropTypes.string,
|
|
39
37
|
ariaExpanded: PropTypes.bool,
|
|
40
38
|
ariaLabel: PropTypes.string,
|
|
41
|
-
autoComplete: PropTypes.bool,
|
|
42
39
|
ariaHaspopup: PropTypes.bool,
|
|
43
40
|
ariaRequired: PropTypes.bool,
|
|
44
41
|
ariaLabelledby: PropTypes.string,
|