@zohodesk/components 1.2.60 → 1.2.62
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/README.md +11 -1
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +8 -0
- package/assets/Appearance/light/mode/Component_LightMode.module.css +8 -0
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +8 -0
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
- package/es/Button/css/Button.module.css +57 -10
- package/es/Button/css/cssJSLogic.js +1 -1
- package/es/Button/props/propTypes.js +1 -1
- package/es/RippleEffect/RippleEffect.module.css +16 -0
- package/es/RippleEffect/props/propTypes.js +1 -1
- package/es/Tag/Tag.js +1 -1
- package/es/Textarea/Textarea.js +1 -1
- package/es/Textarea/__tests__/Textarea.spec.js +18 -0
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +66 -42
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +2 -2
- package/lib/Button/css/Button.module.css +57 -10
- package/lib/Button/css/cssJSLogic.js +1 -1
- package/lib/Button/props/propTypes.js +1 -1
- package/lib/RippleEffect/RippleEffect.module.css +16 -0
- package/lib/RippleEffect/props/propTypes.js +1 -1
- package/lib/Tag/Tag.js +1 -1
- package/lib/Textarea/Textarea.js +1 -1
- package/lib/Textarea/__tests__/Textarea.spec.js +20 -2
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +66 -42
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Textarea component Should be render cols only 1`] = `
|
|
4
|
+
<DocumentFragment>
|
|
5
|
+
<textarea
|
|
6
|
+
class=" container defaultHeight default needBorder noresize effect borderColor_default"
|
|
7
|
+
cols="3"
|
|
8
|
+
data-id="TextareaComp"
|
|
9
|
+
data-selector-id="textarea"
|
|
10
|
+
data-test-id="TextareaComp"
|
|
11
|
+
/>
|
|
12
|
+
</DocumentFragment>
|
|
13
|
+
`;
|
|
14
|
+
|
|
3
15
|
exports[`Textarea component Should be render autofocus true 1`] = `
|
|
4
16
|
<DocumentFragment>
|
|
5
17
|
<textarea
|
|
6
|
-
class=" container small
|
|
18
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
7
19
|
data-id="TextareaComp"
|
|
8
20
|
data-selector-id="textarea"
|
|
9
21
|
data-test-id="TextareaComp"
|
|
@@ -14,7 +26,7 @@ exports[`Textarea component Should be render autofocus true 1`] = `
|
|
|
14
26
|
exports[`Textarea component Should be render custom Attributes 1`] = `
|
|
15
27
|
<DocumentFragment>
|
|
16
28
|
<textarea
|
|
17
|
-
class=" container small
|
|
29
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
18
30
|
data-id="TextareaComp"
|
|
19
31
|
data-selector-id="textarea"
|
|
20
32
|
data-test-id="TextareaComp"
|
|
@@ -26,7 +38,7 @@ exports[`Textarea component Should be render custom Attributes 1`] = `
|
|
|
26
38
|
exports[`Textarea component Should be render customClass 1`] = `
|
|
27
39
|
<DocumentFragment>
|
|
28
40
|
<textarea
|
|
29
|
-
class="textAreaCustomClass container small
|
|
41
|
+
class="textAreaCustomClass container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
30
42
|
data-id="TextareaComp"
|
|
31
43
|
data-selector-id="textarea"
|
|
32
44
|
data-test-id="TextareaComp"
|
|
@@ -37,7 +49,7 @@ exports[`Textarea component Should be render customClass 1`] = `
|
|
|
37
49
|
exports[`Textarea component Should be render htmlId 1`] = `
|
|
38
50
|
<DocumentFragment>
|
|
39
51
|
<textarea
|
|
40
|
-
class=" container small
|
|
52
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
41
53
|
data-id="TextareaComp"
|
|
42
54
|
data-selector-id="textarea"
|
|
43
55
|
data-test-id="TextareaComp"
|
|
@@ -49,7 +61,7 @@ exports[`Textarea component Should be render htmlId 1`] = `
|
|
|
49
61
|
exports[`Textarea component Should be render isDisabled is false and needEffect is false 1`] = `
|
|
50
62
|
<DocumentFragment>
|
|
51
63
|
<textarea
|
|
52
|
-
class=" container small
|
|
64
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
53
65
|
data-id="TextareaComp"
|
|
54
66
|
data-selector-id="textarea"
|
|
55
67
|
data-test-id="TextareaComp"
|
|
@@ -60,7 +72,7 @@ exports[`Textarea component Should be render isDisabled is false and needEffect
|
|
|
60
72
|
exports[`Textarea component Should be render isDisabled is true 1`] = `
|
|
61
73
|
<DocumentFragment>
|
|
62
74
|
<textarea
|
|
63
|
-
class=" container small
|
|
75
|
+
class=" container small defaultWidth default needBorder noresize borderColor_default"
|
|
64
76
|
data-id="TextareaComp"
|
|
65
77
|
data-selector-id="textarea"
|
|
66
78
|
data-test-id="TextareaComp"
|
|
@@ -72,7 +84,7 @@ exports[`Textarea component Should be render isDisabled is true 1`] = `
|
|
|
72
84
|
exports[`Textarea component Should be render isDisabled is true and needEffect is false 1`] = `
|
|
73
85
|
<DocumentFragment>
|
|
74
86
|
<textarea
|
|
75
|
-
class=" container small
|
|
87
|
+
class=" container small defaultWidth default needBorder noresize borderColor_default"
|
|
76
88
|
data-id="TextareaComp"
|
|
77
89
|
data-selector-id="textarea"
|
|
78
90
|
data-test-id="TextareaComp"
|
|
@@ -84,7 +96,7 @@ exports[`Textarea component Should be render isDisabled is true and needEffect i
|
|
|
84
96
|
exports[`Textarea component Should be render isDisabled is true and needEffect is true 1`] = `
|
|
85
97
|
<DocumentFragment>
|
|
86
98
|
<textarea
|
|
87
|
-
class=" container small
|
|
99
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
88
100
|
data-id="TextareaComp"
|
|
89
101
|
data-selector-id="textarea"
|
|
90
102
|
data-test-id="TextareaComp"
|
|
@@ -96,7 +108,7 @@ exports[`Textarea component Should be render isDisabled is true and needEffect i
|
|
|
96
108
|
exports[`Textarea component Should be render isReadOnly is false and needEffect is false 1`] = `
|
|
97
109
|
<DocumentFragment>
|
|
98
110
|
<textarea
|
|
99
|
-
class=" container small
|
|
111
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
100
112
|
data-id="TextareaComp"
|
|
101
113
|
data-selector-id="textarea"
|
|
102
114
|
data-test-id="TextareaComp"
|
|
@@ -107,7 +119,7 @@ exports[`Textarea component Should be render isReadOnly is false and needEffect
|
|
|
107
119
|
exports[`Textarea component Should be render isReadOnly is true and needEffect is false 1`] = `
|
|
108
120
|
<DocumentFragment>
|
|
109
121
|
<textarea
|
|
110
|
-
class=" readonly container small
|
|
122
|
+
class=" readonly container small defaultWidth default needBorder noresize borderColor_default"
|
|
111
123
|
data-id="TextareaComp"
|
|
112
124
|
data-selector-id="textarea"
|
|
113
125
|
data-test-id="TextareaComp"
|
|
@@ -119,7 +131,7 @@ exports[`Textarea component Should be render isReadOnly is true and needEffect i
|
|
|
119
131
|
exports[`Textarea component Should be render isReadOnly is true and needEffect is true 1`] = `
|
|
120
132
|
<DocumentFragment>
|
|
121
133
|
<textarea
|
|
122
|
-
class=" readonly container small
|
|
134
|
+
class=" readonly container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
123
135
|
data-id="TextareaComp"
|
|
124
136
|
data-selector-id="textarea"
|
|
125
137
|
data-test-id="TextareaComp"
|
|
@@ -131,7 +143,7 @@ exports[`Textarea component Should be render isReadOnly is true and needEffect i
|
|
|
131
143
|
exports[`Textarea component Should be render maxLength in number 1`] = `
|
|
132
144
|
<DocumentFragment>
|
|
133
145
|
<textarea
|
|
134
|
-
class=" container small
|
|
146
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
135
147
|
data-id="TextareaComp"
|
|
136
148
|
data-selector-id="textarea"
|
|
137
149
|
data-test-id="TextareaComp"
|
|
@@ -143,7 +155,7 @@ exports[`Textarea component Should be render maxLength in number 1`] = `
|
|
|
143
155
|
exports[`Textarea component Should be render maxLength in string 1`] = `
|
|
144
156
|
<DocumentFragment>
|
|
145
157
|
<textarea
|
|
146
|
-
class=" container small
|
|
158
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
147
159
|
data-id="TextareaComp"
|
|
148
160
|
data-selector-id="textarea"
|
|
149
161
|
data-test-id="TextareaComp"
|
|
@@ -166,7 +178,7 @@ exports[`Textarea component Should be render needAppearance is false 1`] = `
|
|
|
166
178
|
exports[`Textarea component Should be render needBorder is false 1`] = `
|
|
167
179
|
<DocumentFragment>
|
|
168
180
|
<textarea
|
|
169
|
-
class=" container small
|
|
181
|
+
class=" container small defaultWidth default noBorder noresize effect borderColor_default"
|
|
170
182
|
data-id="TextareaComp"
|
|
171
183
|
data-selector-id="textarea"
|
|
172
184
|
data-test-id="TextareaComp"
|
|
@@ -177,7 +189,7 @@ exports[`Textarea component Should be render needBorder is false 1`] = `
|
|
|
177
189
|
exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
|
|
178
190
|
<DocumentFragment>
|
|
179
191
|
<textarea
|
|
180
|
-
class=" container small
|
|
192
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
181
193
|
data-id="TextareaComp"
|
|
182
194
|
data-selector-id="textarea"
|
|
183
195
|
data-test-id="TextareaComp"
|
|
@@ -188,7 +200,7 @@ exports[`Textarea component Should be render needReadOnlyStyle is false 1`] = `
|
|
|
188
200
|
exports[`Textarea component Should be render placeholder 1`] = `
|
|
189
201
|
<DocumentFragment>
|
|
190
202
|
<textarea
|
|
191
|
-
class=" container small
|
|
203
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
192
204
|
data-id="TextareaComp"
|
|
193
205
|
data-selector-id="textarea"
|
|
194
206
|
data-test-id="TextareaComp"
|
|
@@ -210,10 +222,22 @@ exports[`Textarea component Should be render rows and cols 1`] = `
|
|
|
210
222
|
</DocumentFragment>
|
|
211
223
|
`;
|
|
212
224
|
|
|
225
|
+
exports[`Textarea component Should be render rows only 1`] = `
|
|
226
|
+
<DocumentFragment>
|
|
227
|
+
<textarea
|
|
228
|
+
class=" container defaultWidth default needBorder noresize effect borderColor_default"
|
|
229
|
+
data-id="TextareaComp"
|
|
230
|
+
data-selector-id="textarea"
|
|
231
|
+
data-test-id="TextareaComp"
|
|
232
|
+
rows="3"
|
|
233
|
+
/>
|
|
234
|
+
</DocumentFragment>
|
|
235
|
+
`;
|
|
236
|
+
|
|
213
237
|
exports[`Textarea component Should be render text 1`] = `
|
|
214
238
|
<DocumentFragment>
|
|
215
239
|
<textarea
|
|
216
|
-
class=" container small
|
|
240
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
217
241
|
data-id="TextareaComp"
|
|
218
242
|
data-selector-id="textarea"
|
|
219
243
|
data-test-id="TextareaComp"
|
|
@@ -226,7 +250,7 @@ exports[`Textarea component Should be render text 1`] = `
|
|
|
226
250
|
exports[`Textarea component Should be render with the basic set of default props 1`] = `
|
|
227
251
|
<DocumentFragment>
|
|
228
252
|
<textarea
|
|
229
|
-
class=" container small
|
|
253
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
230
254
|
data-id="TextareaComp"
|
|
231
255
|
data-selector-id="textarea"
|
|
232
256
|
data-test-id="TextareaComp"
|
|
@@ -237,7 +261,7 @@ exports[`Textarea component Should be render with the basic set of default props
|
|
|
237
261
|
exports[`Textarea component Should render Varient - default 1`] = `
|
|
238
262
|
<DocumentFragment>
|
|
239
263
|
<textarea
|
|
240
|
-
class=" container small
|
|
264
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
241
265
|
data-id="TextareaComp"
|
|
242
266
|
data-selector-id="textarea"
|
|
243
267
|
data-test-id="TextareaComp"
|
|
@@ -248,7 +272,7 @@ exports[`Textarea component Should render Varient - default 1`] = `
|
|
|
248
272
|
exports[`Textarea component Should render Varient - primary 1`] = `
|
|
249
273
|
<DocumentFragment>
|
|
250
274
|
<textarea
|
|
251
|
-
class=" container small
|
|
275
|
+
class=" container small defaultWidth primary needBorder noresize effect borderColor_default"
|
|
252
276
|
data-id="TextareaComp"
|
|
253
277
|
data-selector-id="textarea"
|
|
254
278
|
data-test-id="TextareaComp"
|
|
@@ -259,7 +283,7 @@ exports[`Textarea component Should render Varient - primary 1`] = `
|
|
|
259
283
|
exports[`Textarea component Should render animated is false - large 1`] = `
|
|
260
284
|
<DocumentFragment>
|
|
261
285
|
<textarea
|
|
262
|
-
class=" container large
|
|
286
|
+
class=" container large defaultWidth default needBorder noresize effect borderColor_default"
|
|
263
287
|
data-id="TextareaComp"
|
|
264
288
|
data-selector-id="textarea"
|
|
265
289
|
data-test-id="TextareaComp"
|
|
@@ -270,7 +294,7 @@ exports[`Textarea component Should render animated is false - large 1`] = `
|
|
|
270
294
|
exports[`Textarea component Should render animated is false - medium 1`] = `
|
|
271
295
|
<DocumentFragment>
|
|
272
296
|
<textarea
|
|
273
|
-
class=" container medium
|
|
297
|
+
class=" container medium defaultWidth default needBorder noresize effect borderColor_default"
|
|
274
298
|
data-id="TextareaComp"
|
|
275
299
|
data-selector-id="textarea"
|
|
276
300
|
data-test-id="TextareaComp"
|
|
@@ -281,7 +305,7 @@ exports[`Textarea component Should render animated is false - medium 1`] = `
|
|
|
281
305
|
exports[`Textarea component Should render animated is false - small 1`] = `
|
|
282
306
|
<DocumentFragment>
|
|
283
307
|
<textarea
|
|
284
|
-
class=" container small
|
|
308
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
285
309
|
data-id="TextareaComp"
|
|
286
310
|
data-selector-id="textarea"
|
|
287
311
|
data-test-id="TextareaComp"
|
|
@@ -292,7 +316,7 @@ exports[`Textarea component Should render animated is false - small 1`] = `
|
|
|
292
316
|
exports[`Textarea component Should render animated is false - xmedium 1`] = `
|
|
293
317
|
<DocumentFragment>
|
|
294
318
|
<textarea
|
|
295
|
-
class=" container xmedium
|
|
319
|
+
class=" container xmedium defaultWidth default needBorder noresize effect borderColor_default"
|
|
296
320
|
data-id="TextareaComp"
|
|
297
321
|
data-selector-id="textarea"
|
|
298
322
|
data-test-id="TextareaComp"
|
|
@@ -303,7 +327,7 @@ exports[`Textarea component Should render animated is false - xmedium 1`] = `
|
|
|
303
327
|
exports[`Textarea component Should render animated is false - xsmall 1`] = `
|
|
304
328
|
<DocumentFragment>
|
|
305
329
|
<textarea
|
|
306
|
-
class=" container xsmall
|
|
330
|
+
class=" container xsmall defaultWidth default needBorder noresize effect borderColor_default"
|
|
307
331
|
data-id="TextareaComp"
|
|
308
332
|
data-selector-id="textarea"
|
|
309
333
|
data-test-id="TextareaComp"
|
|
@@ -314,7 +338,7 @@ exports[`Textarea component Should render animated is false - xsmall 1`] = `
|
|
|
314
338
|
exports[`Textarea component Should render animated is true - large 1`] = `
|
|
315
339
|
<DocumentFragment>
|
|
316
340
|
<textarea
|
|
317
|
-
class=" container large
|
|
341
|
+
class=" container large defaultWidth default needBorder noresize largeanimated effect borderColor_default"
|
|
318
342
|
data-id="TextareaComp"
|
|
319
343
|
data-selector-id="textarea"
|
|
320
344
|
data-test-id="TextareaComp"
|
|
@@ -325,7 +349,7 @@ exports[`Textarea component Should render animated is true - large 1`] = `
|
|
|
325
349
|
exports[`Textarea component Should render animated is true - medium 1`] = `
|
|
326
350
|
<DocumentFragment>
|
|
327
351
|
<textarea
|
|
328
|
-
class=" container medium
|
|
352
|
+
class=" container medium defaultWidth default needBorder noresize undefined effect borderColor_default"
|
|
329
353
|
data-id="TextareaComp"
|
|
330
354
|
data-selector-id="textarea"
|
|
331
355
|
data-test-id="TextareaComp"
|
|
@@ -336,7 +360,7 @@ exports[`Textarea component Should render animated is true - medium 1`] = `
|
|
|
336
360
|
exports[`Textarea component Should render animated is true - small 1`] = `
|
|
337
361
|
<DocumentFragment>
|
|
338
362
|
<textarea
|
|
339
|
-
class=" container small
|
|
363
|
+
class=" container small defaultWidth default needBorder noresize smallanimated effect borderColor_default"
|
|
340
364
|
data-id="TextareaComp"
|
|
341
365
|
data-selector-id="textarea"
|
|
342
366
|
data-test-id="TextareaComp"
|
|
@@ -347,7 +371,7 @@ exports[`Textarea component Should render animated is true - small 1`] = `
|
|
|
347
371
|
exports[`Textarea component Should render animated is true - xmedium 1`] = `
|
|
348
372
|
<DocumentFragment>
|
|
349
373
|
<textarea
|
|
350
|
-
class=" container xmedium
|
|
374
|
+
class=" container xmedium defaultWidth default needBorder noresize xmediumanimated effect borderColor_default"
|
|
351
375
|
data-id="TextareaComp"
|
|
352
376
|
data-selector-id="textarea"
|
|
353
377
|
data-test-id="TextareaComp"
|
|
@@ -358,7 +382,7 @@ exports[`Textarea component Should render animated is true - xmedium 1`] = `
|
|
|
358
382
|
exports[`Textarea component Should render animated is true - xsmall 1`] = `
|
|
359
383
|
<DocumentFragment>
|
|
360
384
|
<textarea
|
|
361
|
-
class=" container xsmall
|
|
385
|
+
class=" container xsmall defaultWidth default needBorder noresize xsmallanimated effect borderColor_default"
|
|
362
386
|
data-id="TextareaComp"
|
|
363
387
|
data-selector-id="textarea"
|
|
364
388
|
data-test-id="TextareaComp"
|
|
@@ -369,7 +393,7 @@ exports[`Textarea component Should render animated is true - xsmall 1`] = `
|
|
|
369
393
|
exports[`Textarea component Should render borderColor - default 1`] = `
|
|
370
394
|
<DocumentFragment>
|
|
371
395
|
<textarea
|
|
372
|
-
class=" container small
|
|
396
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
373
397
|
data-id="TextareaComp"
|
|
374
398
|
data-selector-id="textarea"
|
|
375
399
|
data-test-id="TextareaComp"
|
|
@@ -380,7 +404,7 @@ exports[`Textarea component Should render borderColor - default 1`] = `
|
|
|
380
404
|
exports[`Textarea component Should render borderColor - transparent 1`] = `
|
|
381
405
|
<DocumentFragment>
|
|
382
406
|
<textarea
|
|
383
|
-
class=" container small
|
|
407
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_transparent"
|
|
384
408
|
data-id="TextareaComp"
|
|
385
409
|
data-selector-id="textarea"
|
|
386
410
|
data-test-id="TextareaComp"
|
|
@@ -391,7 +415,7 @@ exports[`Textarea component Should render borderColor - transparent 1`] = `
|
|
|
391
415
|
exports[`Textarea component Should render resize - both 1`] = `
|
|
392
416
|
<DocumentFragment>
|
|
393
417
|
<textarea
|
|
394
|
-
class=" container small
|
|
418
|
+
class=" container small defaultWidth default needBorder resizeboth effect borderColor_default"
|
|
395
419
|
data-id="TextareaComp"
|
|
396
420
|
data-selector-id="textarea"
|
|
397
421
|
data-test-id="TextareaComp"
|
|
@@ -402,7 +426,7 @@ exports[`Textarea component Should render resize - both 1`] = `
|
|
|
402
426
|
exports[`Textarea component Should render resize - horizontal 1`] = `
|
|
403
427
|
<DocumentFragment>
|
|
404
428
|
<textarea
|
|
405
|
-
class=" container small
|
|
429
|
+
class=" container small defaultWidth default needBorder resizeX effect borderColor_default"
|
|
406
430
|
data-id="TextareaComp"
|
|
407
431
|
data-selector-id="textarea"
|
|
408
432
|
data-test-id="TextareaComp"
|
|
@@ -413,7 +437,7 @@ exports[`Textarea component Should render resize - horizontal 1`] = `
|
|
|
413
437
|
exports[`Textarea component Should render resize - none 1`] = `
|
|
414
438
|
<DocumentFragment>
|
|
415
439
|
<textarea
|
|
416
|
-
class=" container small
|
|
440
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
417
441
|
data-id="TextareaComp"
|
|
418
442
|
data-selector-id="textarea"
|
|
419
443
|
data-test-id="TextareaComp"
|
|
@@ -424,7 +448,7 @@ exports[`Textarea component Should render resize - none 1`] = `
|
|
|
424
448
|
exports[`Textarea component Should render resize - vertical 1`] = `
|
|
425
449
|
<DocumentFragment>
|
|
426
450
|
<textarea
|
|
427
|
-
class=" container small
|
|
451
|
+
class=" container small defaultWidth default needBorder resizeY effect borderColor_default"
|
|
428
452
|
data-id="TextareaComp"
|
|
429
453
|
data-selector-id="textarea"
|
|
430
454
|
data-test-id="TextareaComp"
|
|
@@ -435,7 +459,7 @@ exports[`Textarea component Should render resize - vertical 1`] = `
|
|
|
435
459
|
exports[`Textarea component Should render size - large 1`] = `
|
|
436
460
|
<DocumentFragment>
|
|
437
461
|
<textarea
|
|
438
|
-
class=" container large
|
|
462
|
+
class=" container large defaultWidth default needBorder noresize largeanimated effect borderColor_default"
|
|
439
463
|
data-id="TextareaComp"
|
|
440
464
|
data-selector-id="textarea"
|
|
441
465
|
data-test-id="TextareaComp"
|
|
@@ -446,7 +470,7 @@ exports[`Textarea component Should render size - large 1`] = `
|
|
|
446
470
|
exports[`Textarea component Should render size - medium 1`] = `
|
|
447
471
|
<DocumentFragment>
|
|
448
472
|
<textarea
|
|
449
|
-
class=" container medium
|
|
473
|
+
class=" container medium defaultWidth default needBorder noresize undefined effect borderColor_default"
|
|
450
474
|
data-id="TextareaComp"
|
|
451
475
|
data-selector-id="textarea"
|
|
452
476
|
data-test-id="TextareaComp"
|
|
@@ -457,7 +481,7 @@ exports[`Textarea component Should render size - medium 1`] = `
|
|
|
457
481
|
exports[`Textarea component Should render size - small 1`] = `
|
|
458
482
|
<DocumentFragment>
|
|
459
483
|
<textarea
|
|
460
|
-
class=" container small
|
|
484
|
+
class=" container small defaultWidth default needBorder noresize smallanimated effect borderColor_default"
|
|
461
485
|
data-id="TextareaComp"
|
|
462
486
|
data-selector-id="textarea"
|
|
463
487
|
data-test-id="TextareaComp"
|
|
@@ -468,7 +492,7 @@ exports[`Textarea component Should render size - small 1`] = `
|
|
|
468
492
|
exports[`Textarea component Should render size - xmedium 1`] = `
|
|
469
493
|
<DocumentFragment>
|
|
470
494
|
<textarea
|
|
471
|
-
class=" container xmedium
|
|
495
|
+
class=" container xmedium defaultWidth default needBorder noresize xmediumanimated effect borderColor_default"
|
|
472
496
|
data-id="TextareaComp"
|
|
473
497
|
data-selector-id="textarea"
|
|
474
498
|
data-test-id="TextareaComp"
|
|
@@ -479,7 +503,7 @@ exports[`Textarea component Should render size - xmedium 1`] = `
|
|
|
479
503
|
exports[`Textarea component Should render size - xsmall 1`] = `
|
|
480
504
|
<DocumentFragment>
|
|
481
505
|
<textarea
|
|
482
|
-
class=" container xsmall
|
|
506
|
+
class=" container xsmall defaultWidth default needBorder noresize xsmallanimated effect borderColor_default"
|
|
483
507
|
data-id="TextareaComp"
|
|
484
508
|
data-selector-id="textarea"
|
|
485
509
|
data-test-id="TextareaComp"
|
|
@@ -492,7 +516,7 @@ exports[`Textarea component rendering ally clearLabel 1`] = `
|
|
|
492
516
|
<textarea
|
|
493
517
|
aria-label="TextAreaAriaLabel"
|
|
494
518
|
aria-labelledby="TexareaAriaLabelledby"
|
|
495
|
-
class=" container small
|
|
519
|
+
class=" container small defaultWidth default needBorder noresize effect borderColor_default"
|
|
496
520
|
data-id="TextareaComp"
|
|
497
521
|
data-selector-id="textarea"
|
|
498
522
|
data-test-id="TextareaComp"
|
|
@@ -139,7 +139,7 @@ exports[`Button component Should render CustomStatusclassname of buttons - succe
|
|
|
139
139
|
class="overlay"
|
|
140
140
|
>
|
|
141
141
|
<div
|
|
142
|
-
class="
|
|
142
|
+
class="successstate"
|
|
143
143
|
>
|
|
144
144
|
<div
|
|
145
145
|
class="customStautusClassName successelement primarysuccess"
|
|
@@ -260,7 +260,7 @@ exports[`Button component Should render Status of buttons - success 1`] = `
|
|
|
260
260
|
class="overlay"
|
|
261
261
|
>
|
|
262
262
|
<div
|
|
263
|
-
class="
|
|
263
|
+
class="successstate"
|
|
264
264
|
>
|
|
265
265
|
<div
|
|
266
266
|
class="successelement primarysuccess"
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
/* button success status default variable */
|
|
26
26
|
--button_success_border_color: var(--zdt_button_success_default_border);
|
|
27
27
|
}
|
|
28
|
+
|
|
28
29
|
.native {
|
|
29
30
|
composes: varClass;
|
|
30
31
|
/* transition: all var(--zd_transition2) ease 0s; */
|
|
@@ -130,22 +131,43 @@
|
|
|
130
131
|
composes: container;
|
|
131
132
|
}
|
|
132
133
|
|
|
133
|
-
.plainprimary
|
|
134
|
-
|
|
134
|
+
.plainprimary,
|
|
135
|
+
.plaindanger,
|
|
136
|
+
.plainsuccess,
|
|
137
|
+
.plainsecondary {
|
|
135
138
|
--button_padding: var(--zd_size5);
|
|
136
139
|
--button_min_width: initial;
|
|
137
140
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
138
141
|
}
|
|
142
|
+
|
|
143
|
+
.plainprimary {
|
|
144
|
+
--button_text_color: var(--zdt_button_default_text);
|
|
145
|
+
}
|
|
146
|
+
|
|
139
147
|
.plainprimary:hover {
|
|
140
148
|
--button_text_color: var(--zdt_button_plainprimary_hover_text);
|
|
141
149
|
}
|
|
142
150
|
|
|
151
|
+
.plaindanger {
|
|
152
|
+
--button_text_color: var(--zdt_button_danger_text);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.plaindanger:hover {
|
|
156
|
+
--button_text_color: var(--zdt_button_danger_hover_text);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.plainsuccess {
|
|
160
|
+
--button_text_color: var(--zdt_button_success_text);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.plainsuccess:hover {
|
|
164
|
+
--button_text_color: var(--zdt_button_success_hover_text);
|
|
165
|
+
}
|
|
166
|
+
|
|
143
167
|
.plainsecondary {
|
|
144
168
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
145
|
-
--button_padding: var(--zd_size5);
|
|
146
|
-
--button_min_width: initial;
|
|
147
|
-
--button_bg_color: var(--zdt_button_default_bg);
|
|
148
169
|
}
|
|
170
|
+
|
|
149
171
|
.plainsecondary:hover {
|
|
150
172
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
151
173
|
}
|
|
@@ -156,10 +178,12 @@
|
|
|
156
178
|
.dangerfilled,
|
|
157
179
|
.secondary,
|
|
158
180
|
.secondaryfilled,
|
|
181
|
+
.success,
|
|
159
182
|
.successfilled,
|
|
160
183
|
.tertiaryfilled {
|
|
161
184
|
--button_border_width: 1px;
|
|
162
185
|
}
|
|
186
|
+
|
|
163
187
|
.primary:hover {
|
|
164
188
|
--button_border_color: var(--zdt_button_primary_hover_border);
|
|
165
189
|
--button_text_color: var(--zdt_button_primary_hover_text);
|
|
@@ -170,6 +194,7 @@
|
|
|
170
194
|
--button_bg_color: var(--zdt_button_primaryfill_bg);
|
|
171
195
|
--button_text_color: var(--zdt_button_primaryfill_text);
|
|
172
196
|
}
|
|
197
|
+
|
|
173
198
|
.primaryfilled:hover {
|
|
174
199
|
--button_bg_color: var(--zdt_button_primaryfill_hover_bg);
|
|
175
200
|
}
|
|
@@ -179,16 +204,29 @@
|
|
|
179
204
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
180
205
|
--button_text_color: var(--zdt_button_danger_text);
|
|
181
206
|
}
|
|
207
|
+
|
|
182
208
|
.danger:hover {
|
|
183
209
|
--button_border_color: var(--zdt_button_danger_hover_border);
|
|
184
210
|
--button_text_color: var(--zdt_button_danger_hover_text);
|
|
185
211
|
}
|
|
186
212
|
|
|
213
|
+
.success {
|
|
214
|
+
--button_border_color: var(--zdt_button_success_border);
|
|
215
|
+
--button_bg_color: var(--zdt_button_default_bg);
|
|
216
|
+
--button_text_color: var(--zdt_button_success_text);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.success:hover {
|
|
220
|
+
--button_border_color: var(--zdt_button_success_hover_border);
|
|
221
|
+
--button_text_color: var(--zdt_button_success_hover_text);
|
|
222
|
+
}
|
|
223
|
+
|
|
187
224
|
.dangerfilled {
|
|
188
225
|
--button_border_color: var(--zdt_button_primaryfill_border);
|
|
189
226
|
--button_bg_color: var(--zdt_button_dangerfill_bg);
|
|
190
227
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
191
228
|
}
|
|
229
|
+
|
|
192
230
|
.dangerfilled:hover {
|
|
193
231
|
--button_bg_color: var(--zdt_button_dangerfill_hover_bg);
|
|
194
232
|
}
|
|
@@ -198,6 +236,7 @@
|
|
|
198
236
|
--button_bg_color: var(--zdt_button_default_bg);
|
|
199
237
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
200
238
|
}
|
|
239
|
+
|
|
201
240
|
.secondary:hover {
|
|
202
241
|
--button_border_color: var(--zdt_button_secondary_hover_border);
|
|
203
242
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
@@ -208,6 +247,7 @@
|
|
|
208
247
|
--button_bg_color: var(--zdt_button_secondaryfill_bg);
|
|
209
248
|
--button_text_color: var(--zdt_button_secondary_text);
|
|
210
249
|
}
|
|
250
|
+
|
|
211
251
|
.secondaryfilled:hover {
|
|
212
252
|
--button_text_color: var(--zdt_button_secondary_hover_text);
|
|
213
253
|
}
|
|
@@ -217,6 +257,7 @@
|
|
|
217
257
|
--button_bg_color: var(--zdt_button_successfill_bg);
|
|
218
258
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
219
259
|
}
|
|
260
|
+
|
|
220
261
|
.successfilled:hover {
|
|
221
262
|
--button_border_color: var(--zdt_button_successfill_hover_border);
|
|
222
263
|
--button_bg_color: var(--zdt_button_successfill_hover_bg);
|
|
@@ -227,6 +268,7 @@
|
|
|
227
268
|
--button_bg_color: var(--zdt_button_tertiaryfill_bg);
|
|
228
269
|
--button_text_color: var(--zdt_button_dangerfill_text);
|
|
229
270
|
}
|
|
271
|
+
|
|
230
272
|
.tertiaryfilled:hover {
|
|
231
273
|
--button_bg_color: var(--zdt_button_tertiaryfill_hover_bg);
|
|
232
274
|
}
|
|
@@ -326,18 +368,23 @@
|
|
|
326
368
|
.loadingelement {
|
|
327
369
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
328
370
|
}
|
|
371
|
+
|
|
329
372
|
.primaryelement {
|
|
330
373
|
--button_loading_bg_color: var(--zdt_button_loading_default_bg);
|
|
331
374
|
}
|
|
375
|
+
|
|
332
376
|
.primaryfilledelement {
|
|
333
377
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
334
378
|
}
|
|
379
|
+
|
|
335
380
|
.dangerelement {
|
|
336
381
|
--button_loading_bg_color: var(--zdt_button_loading_default_bg);
|
|
337
382
|
}
|
|
383
|
+
|
|
338
384
|
.dangerfilledelement {
|
|
339
385
|
--button_loading_bg_color: var(--zdt_button_dangerfill_bg);
|
|
340
386
|
}
|
|
387
|
+
|
|
341
388
|
.loadingelement:after,
|
|
342
389
|
.primaryelement:after,
|
|
343
390
|
.primaryfilledelement:after,
|
|
@@ -366,13 +413,13 @@
|
|
|
366
413
|
|
|
367
414
|
.primaryelement:before {
|
|
368
415
|
--button_loading_bg_color: var(--zdt_button_primaryfill_bg);
|
|
369
|
-
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_primary_linear_gradient);
|
|
416
|
+
--zdt_button_loading_linear_gradient: var(--zdt_button_loading_primary_linear_gradient);
|
|
370
417
|
transform: rotateX(180deg);
|
|
371
418
|
}
|
|
372
419
|
|
|
373
420
|
.dangerelement:before {
|
|
374
421
|
--button_loading_bg_color: var(--zdt_button_dangerfill_bg);
|
|
375
|
-
--zdt_button_loading_linear_gradient:var(--zdt_button_loading_danger_linear_gradient);
|
|
422
|
+
--zdt_button_loading_linear_gradient: var(--zdt_button_loading_danger_linear_gradient);
|
|
376
423
|
transform: rotateX(180deg);
|
|
377
424
|
}
|
|
378
425
|
|
|
@@ -447,7 +494,7 @@
|
|
|
447
494
|
-webkit-transform: scaleX(-1) rotate(360deg);
|
|
448
495
|
}
|
|
449
496
|
}
|
|
450
|
-
.
|
|
497
|
+
.successstate {
|
|
451
498
|
position: absolute;
|
|
452
499
|
top: 50% ;
|
|
453
500
|
left: 50% ;
|
|
@@ -523,6 +570,6 @@
|
|
|
523
570
|
}
|
|
524
571
|
}
|
|
525
572
|
|
|
526
|
-
.loader{
|
|
527
|
-
color:var(--dot_mirror)
|
|
573
|
+
.loader {
|
|
574
|
+
color: var(--dot_mirror)
|
|
528
575
|
}
|
|
@@ -31,7 +31,7 @@ function cssJSLogic(_ref) {
|
|
|
31
31
|
var paletteLower = palette.toLowerCase();
|
|
32
32
|
var statusLower = status.toLowerCase();
|
|
33
33
|
var buttonClass = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, customButton, !!customButton), _defineProperty(_compileClassNames, style.bold, isBold), _defineProperty(_compileClassNames, style["default"], !needAppearance), _defineProperty(_compileClassNames, style[paletteLower], needAppearance), _defineProperty(_compileClassNames, style.rounded, needAppearance && rounded), _defineProperty(_compileClassNames, style[size.toLowerCase()], needAppearance && !children), _defineProperty(_compileClassNames, style["".concat(size, "Btn")], needAppearance && children), _defineProperty(_compileClassNames, style["".concat(size, "Btn").concat(paletteLower)], needAppearance && children && rounded), _defineProperty(_compileClassNames, style.loader, !!needAppearance && statusLower !== 'none'), _compileClassNames));
|
|
34
|
-
var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, customStatusSize, !!customStatusSize), _defineProperty(_compileClassNames2, style.loading, statusLower === 'loading'), _defineProperty(_compileClassNames2, style["".concat(size, "loading")], statusLower === 'loading'), _defineProperty(_compileClassNames2, style.
|
|
34
|
+
var loaderParentClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, customStatusSize, !!customStatusSize), _defineProperty(_compileClassNames2, style.loading, statusLower === 'loading'), _defineProperty(_compileClassNames2, style["".concat(size, "loading")], statusLower === 'loading'), _defineProperty(_compileClassNames2, style.successstate, statusLower != 'loading'), _compileClassNames2));
|
|
35
35
|
var loaderChildClass = (0, _utils.compileClassNames)((_compileClassNames3 = {}, _defineProperty(_compileClassNames3, customStatus, !!customStatus), _defineProperty(_compileClassNames3, style.loadingelement, statusLower === 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "element")], statusLower === 'loading'), _defineProperty(_compileClassNames3, style.successelement, statusLower != 'loading'), _defineProperty(_compileClassNames3, style["".concat(paletteLower, "success")], statusLower != 'loading'), _compileClassNames3));
|
|
36
36
|
return {
|
|
37
37
|
buttonClass: buttonClass,
|
|
@@ -18,7 +18,7 @@ var propTypes = {
|
|
|
18
18
|
isBold: _propTypes["default"].bool,
|
|
19
19
|
needAppearance: _propTypes["default"].bool,
|
|
20
20
|
onClick: _propTypes["default"].func,
|
|
21
|
-
palette: _propTypes["default"].oneOf(['plainPrimary', 'plainSecondary', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'successFilled', 'info', 'tertiaryFilled']),
|
|
21
|
+
palette: _propTypes["default"].oneOf(['plainPrimary', 'plainSecondary', 'plainDanger', 'plainSuccess', 'primary', 'primaryFilled', 'danger', 'dangerFilled', 'secondary', 'secondaryFilled', 'success', 'successFilled', 'info', 'tertiaryFilled']),
|
|
22
22
|
rounded: _propTypes["default"].bool,
|
|
23
23
|
size: _propTypes["default"].oneOf(['small', 'medium', 'large', 'xlarge']),
|
|
24
24
|
status: _propTypes["default"].oneOf(['loading', 'success', 'none']),
|
|
@@ -90,3 +90,19 @@
|
|
|
90
90
|
.notAllowed {
|
|
91
91
|
cursor: not-allowed;
|
|
92
92
|
}
|
|
93
|
+
.secondary.defaultHover, .hoverEffect:hover.secondary.borderHover
|
|
94
|
+
/* .hoverEffect:focus.secondary.borderHover */
|
|
95
|
+
{
|
|
96
|
+
border-color: var(--zdt_rippleeffect_secondary_border);
|
|
97
|
+
}
|
|
98
|
+
.hoverEffect:hover.secondary.bgHover
|
|
99
|
+
/* .hoverEffect:focus.secondary.bgHover */
|
|
100
|
+
{
|
|
101
|
+
background-color: var(--zdt_rippleeffect_secondary_bg);
|
|
102
|
+
}
|
|
103
|
+
.secondary.active {
|
|
104
|
+
background-color: var(--zdt_rippleeffect_secondary_active_bg);
|
|
105
|
+
}
|
|
106
|
+
.secondary.active.border {
|
|
107
|
+
border-color: var(--zdt_rippleeffect_secondary_active_border);
|
|
108
|
+
}
|
|
@@ -16,7 +16,7 @@ var propTypes = {
|
|
|
16
16
|
isDisabled: _propTypes["default"].bool,
|
|
17
17
|
isNeedEffect: _propTypes["default"].bool,
|
|
18
18
|
needBorder: _propTypes["default"].bool,
|
|
19
|
-
palette: _propTypes["default"].oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger']),
|
|
19
|
+
palette: _propTypes["default"].oneOf(['default', 'secondary', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger']),
|
|
20
20
|
cssClassPropOfChild: _propTypes["default"].string,
|
|
21
21
|
isCopyTextEnabled: _propTypes["default"].bool
|
|
22
22
|
};
|