@zohodesk/components 1.0.0-temp-260 → 1.0.0-temp-259.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +5 -20
  3. package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +5 -20
  4. package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +5 -20
  5. package/es/v1/Button/Button.js +160 -107
  6. package/es/v1/Button/README.md +106 -42
  7. package/es/v1/Button/__tests__/Button.spec.js +138 -47
  8. package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1105 -332
  9. package/es/v1/Button/constants/index.js +26 -20
  10. package/es/v1/Button/constants/presets.js +149 -0
  11. package/es/v1/Button/css/Button_v1.module.css +33 -16
  12. package/es/v1/Button/css/cssJSLogic.js +56 -28
  13. package/es/v1/Button/props/defaultProps.js +2 -6
  14. package/es/v1/Button/props/propTypes.js +26 -8
  15. package/es/v1/helpers/colorHelpers/__tests__/colorHelper.spec.js +357 -0
  16. package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +40 -40
  17. package/es/v1/helpers/colorHelpers/border/borderColor.module.css +25 -25
  18. package/es/v1/helpers/colorHelpers/colorHelper.js +117 -139
  19. package/es/v1/helpers/colorHelpers/constants/index.js +45 -4
  20. package/es/v1/helpers/colorHelpers/index.js +0 -1
  21. package/es/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
  22. package/lib/v1/Button/Button.js +179 -119
  23. package/lib/v1/Button/README.md +106 -42
  24. package/lib/v1/Button/__tests__/Button.spec.js +194 -87
  25. package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1105 -332
  26. package/lib/v1/Button/constants/index.js +31 -28
  27. package/lib/v1/Button/constants/presets.js +167 -0
  28. package/lib/v1/Button/css/Button_v1.module.css +33 -16
  29. package/lib/v1/Button/css/cssJSLogic.js +42 -19
  30. package/lib/v1/Button/props/defaultProps.js +1 -5
  31. package/lib/v1/Button/props/propTypes.js +41 -7
  32. package/lib/v1/helpers/colorHelpers/__tests__/colorHelper.spec.js +363 -0
  33. package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +40 -40
  34. package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +25 -25
  35. package/lib/v1/helpers/colorHelpers/colorHelper.js +127 -153
  36. package/lib/v1/helpers/colorHelpers/constants/index.js +45 -4
  37. package/lib/v1/helpers/colorHelpers/index.js +2 -24
  38. package/lib/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
  39. package/package.json +4 -4
  40. package/es/AdvancedPopup/AdvancedPopup.js +0 -105
  41. package/lib/AdvancedPopup/AdvancedPopup.js +0 -122
@@ -1,15 +1,34 @@
1
- // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Button - Component Should apply a11yAttributes to the button 1`] = `
3
+ exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER 1`] = `
4
4
  <DocumentFragment>
5
5
  <button
6
6
  aria-busy="false"
7
- aria-describedby="button-description"
8
- aria-disabled="false"
9
- aria-label="Smart Button"
10
7
  aria-pressed="false"
11
- aria-readonly="false"
12
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
8
+ class="buttonReset button text-black hover:text-brand-80 focus:text-brand-80 active:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
9
+ type="button"
10
+ >
11
+ <div
12
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
13
+ data-id="flex"
14
+ data-test-id="flex"
15
+ >
16
+ <div
17
+ class="dotted size13"
18
+ >
19
+ Button
20
+ </div>
21
+ </div>
22
+ </button>
23
+ </DocumentFragment>
24
+ `;
25
+
26
+ exports[`Button Presets Should render preset BLACK_TEXT_BRAND_ONHOVER in selected state 1`] = `
27
+ <DocumentFragment>
28
+ <button
29
+ aria-busy="false"
30
+ aria-pressed="true"
31
+ class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
13
32
  type="button"
14
33
  >
15
34
  <div
@@ -27,14 +46,12 @@ exports[`Button - Component Should apply a11yAttributes to the button 1`] = `
27
46
  </DocumentFragment>
28
47
  `;
29
48
 
30
- exports[`Button - Component Should apply customClass to wrapper, text and icon 1`] = `
49
+ exports[`Button Presets Should render preset BRAND_BG_ONSELECT 1`] = `
31
50
  <DocumentFragment>
32
51
  <button
33
52
  aria-busy="false"
34
- aria-disabled="false"
35
53
  aria-pressed="false"
36
- aria-readonly="false"
37
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle customButtonClass"
54
+ class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
38
55
  type="button"
39
56
  >
40
57
  <div
@@ -42,15 +59,215 @@ exports[`Button - Component Should apply customClass to wrapper, text and icon 1
42
59
  data-id="flex"
43
60
  data-test-id="flex"
44
61
  >
45
- <i
46
- aria-hidden="true"
47
- class="zd_font_icons basic icon-plus customIconClass"
48
- data-id="fontIcon"
49
- data-selector-id="fontIcon"
50
- style="--zd-iconfont-size: var(--zd_font_size16);"
51
- />
52
62
  <div
53
- class="dotted size13 customTextClass"
63
+ class="dotted size13"
64
+ >
65
+ Button
66
+ </div>
67
+ </div>
68
+ </button>
69
+ </DocumentFragment>
70
+ `;
71
+
72
+ exports[`Button Presets Should render preset BRAND_BG_ONSELECT in selected state 1`] = `
73
+ <DocumentFragment>
74
+ <button
75
+ aria-busy="false"
76
+ aria-pressed="true"
77
+ class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
78
+ type="button"
79
+ >
80
+ <div
81
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
82
+ data-id="flex"
83
+ data-test-id="flex"
84
+ >
85
+ <div
86
+ class="dotted size13"
87
+ >
88
+ Button
89
+ </div>
90
+ </div>
91
+ </button>
92
+ </DocumentFragment>
93
+ `;
94
+
95
+ exports[`Button Presets Should render preset BRAND_GHOST 1`] = `
96
+ <DocumentFragment>
97
+ <button
98
+ aria-busy="false"
99
+ aria-pressed="false"
100
+ class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-80 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
101
+ type="button"
102
+ >
103
+ <div
104
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
105
+ data-id="flex"
106
+ data-test-id="flex"
107
+ >
108
+ <div
109
+ class="dotted size13"
110
+ >
111
+ Button
112
+ </div>
113
+ </div>
114
+ </button>
115
+ </DocumentFragment>
116
+ `;
117
+
118
+ exports[`Button Presets Should render preset BRAND_GHOST in selected state 1`] = `
119
+ <DocumentFragment>
120
+ <button
121
+ aria-busy="false"
122
+ aria-pressed="true"
123
+ class="buttonReset button selected:text-brand-80 selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
124
+ type="button"
125
+ >
126
+ <div
127
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
128
+ data-id="flex"
129
+ data-test-id="flex"
130
+ >
131
+ <div
132
+ class="dotted size13"
133
+ >
134
+ Button
135
+ </div>
136
+ </div>
137
+ </button>
138
+ </DocumentFragment>
139
+ `;
140
+
141
+ exports[`Button Presets Should render preset BRAND_TEXT_ONLY 1`] = `
142
+ <DocumentFragment>
143
+ <button
144
+ aria-busy="false"
145
+ aria-pressed="false"
146
+ class="buttonReset button text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
147
+ type="button"
148
+ >
149
+ <div
150
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
151
+ data-id="flex"
152
+ data-test-id="flex"
153
+ >
154
+ <div
155
+ class="dotted size13"
156
+ >
157
+ Button
158
+ </div>
159
+ </div>
160
+ </button>
161
+ </DocumentFragment>
162
+ `;
163
+
164
+ exports[`Button Presets Should render preset BRAND_TEXT_ONLY in selected state 1`] = `
165
+ <DocumentFragment>
166
+ <button
167
+ aria-busy="false"
168
+ aria-pressed="true"
169
+ class="buttonReset button selected:text-brand-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
170
+ type="button"
171
+ >
172
+ <div
173
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
174
+ data-id="flex"
175
+ data-test-id="flex"
176
+ >
177
+ <div
178
+ class="dotted size13"
179
+ >
180
+ Button
181
+ </div>
182
+ </div>
183
+ </button>
184
+ </DocumentFragment>
185
+ `;
186
+
187
+ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER 1`] = `
188
+ <DocumentFragment>
189
+ <button
190
+ aria-busy="false"
191
+ aria-pressed="false"
192
+ class="buttonReset button hover:bg-red-10 focus:bg-red-10 active:bg-red-10 text-brand-80 hover:text-red-70 focus:text-red-70 active:text-red-70 border-transparent sizeMedium shapeRoundedRectangle variantText"
193
+ type="button"
194
+ >
195
+ <div
196
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
197
+ data-id="flex"
198
+ data-test-id="flex"
199
+ >
200
+ <div
201
+ class="dotted size13"
202
+ >
203
+ Button
204
+ </div>
205
+ </div>
206
+ </button>
207
+ </DocumentFragment>
208
+ `;
209
+
210
+ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_DANGER_HOVER in selected state 1`] = `
211
+ <DocumentFragment>
212
+ <button
213
+ aria-busy="false"
214
+ aria-pressed="true"
215
+ class="buttonReset button selected:bg-red-10 selected:text-red-70 selected:border-red-30 sizeMedium shapeRoundedRectangle variantText"
216
+ type="button"
217
+ >
218
+ <div
219
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
220
+ data-id="flex"
221
+ data-test-id="flex"
222
+ >
223
+ <div
224
+ class="dotted size13"
225
+ >
226
+ Button
227
+ </div>
228
+ </div>
229
+ </button>
230
+ </DocumentFragment>
231
+ `;
232
+
233
+ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER 1`] = `
234
+ <DocumentFragment>
235
+ <button
236
+ aria-busy="false"
237
+ aria-pressed="false"
238
+ class="buttonReset button hover:bg-brand-10 focus:bg-brand-10 active:bg-brand-10 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
239
+ type="button"
240
+ >
241
+ <div
242
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
243
+ data-id="flex"
244
+ data-test-id="flex"
245
+ >
246
+ <div
247
+ class="dotted size13"
248
+ >
249
+ Button
250
+ </div>
251
+ </div>
252
+ </button>
253
+ </DocumentFragment>
254
+ `;
255
+
256
+ exports[`Button Presets Should render preset BRAND_TEXT_TINTED_HOVER in selected state 1`] = `
257
+ <DocumentFragment>
258
+ <button
259
+ aria-busy="false"
260
+ aria-pressed="true"
261
+ class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
262
+ type="button"
263
+ >
264
+ <div
265
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
266
+ data-id="flex"
267
+ data-test-id="flex"
268
+ >
269
+ <div
270
+ class="dotted size13"
54
271
  >
55
272
  Button
56
273
  </div>
@@ -59,14 +276,35 @@ exports[`Button - Component Should apply customClass to wrapper, text and icon 1
59
276
  </DocumentFragment>
60
277
  `;
61
278
 
62
- exports[`Button - Component Should apply customProps to wrapper, text and icon 1`] = `
279
+ exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE 1`] = `
63
280
  <DocumentFragment>
64
281
  <button
65
282
  aria-busy="false"
66
- aria-disabled="false"
67
283
  aria-pressed="false"
68
- aria-readonly="false"
69
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
284
+ class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-brand-10 hover:border-brand-100 focus:border-brand-100 active:border-brand-100 sizeMedium shapeRoundedRectangle variantText"
285
+ type="button"
286
+ >
287
+ <div
288
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
289
+ data-id="flex"
290
+ data-test-id="flex"
291
+ >
292
+ <div
293
+ class="dotted size13"
294
+ >
295
+ Button
296
+ </div>
297
+ </div>
298
+ </button>
299
+ </DocumentFragment>
300
+ `;
301
+
302
+ exports[`Button Presets Should render preset BRAND_TINTED_OUTLINE in selected state 1`] = `
303
+ <DocumentFragment>
304
+ <button
305
+ aria-busy="false"
306
+ aria-pressed="true"
307
+ class="buttonReset button selected:bg-brand-10 selected:text-brand-80 selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
70
308
  type="button"
71
309
  >
72
310
  <div
@@ -84,14 +322,608 @@ exports[`Button - Component Should apply customProps to wrapper, text and icon 1
84
322
  </DocumentFragment>
85
323
  `;
86
324
 
87
- exports[`Button - Component Should be disabled when isDisabled prop is true 1`] = `
325
+ exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELECT 1`] = `
326
+ <DocumentFragment>
327
+ <button
328
+ aria-busy="false"
329
+ aria-pressed="false"
330
+ class="buttonReset button text-black hover:text-black focus:text-black active:text-black border-grey-65 hover:border-grey-55 focus:border-grey-55 active:border-grey-55 sizeMedium shapeRoundedRectangle variantText"
331
+ type="button"
332
+ >
333
+ <div
334
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
335
+ data-id="flex"
336
+ data-test-id="flex"
337
+ >
338
+ <div
339
+ class="dotted size13"
340
+ >
341
+ Button
342
+ </div>
343
+ </div>
344
+ </button>
345
+ </DocumentFragment>
346
+ `;
347
+
348
+ exports[`Button Presets Should render preset SECONDARY_GHOST_BRAND_TINTED_ONSELECT in selected state 1`] = `
349
+ <DocumentFragment>
350
+ <button
351
+ aria-busy="false"
352
+ aria-pressed="true"
353
+ class="buttonReset button selected:bg-brand-10 selected:text-black selected:border-brand-10 sizeMedium shapeRoundedRectangle variantText"
354
+ type="button"
355
+ >
356
+ <div
357
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
358
+ data-id="flex"
359
+ data-test-id="flex"
360
+ >
361
+ <div
362
+ class="dotted size13"
363
+ >
364
+ Button
365
+ </div>
366
+ </div>
367
+ </button>
368
+ </DocumentFragment>
369
+ `;
370
+
371
+ exports[`Button Presets Should render preset SUCCESS_GHOST 1`] = `
372
+ <DocumentFragment>
373
+ <button
374
+ aria-busy="false"
375
+ aria-pressed="false"
376
+ class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-80 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
377
+ type="button"
378
+ >
379
+ <div
380
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
381
+ data-id="flex"
382
+ data-test-id="flex"
383
+ >
384
+ <div
385
+ class="dotted size13"
386
+ >
387
+ Button
388
+ </div>
389
+ </div>
390
+ </button>
391
+ </DocumentFragment>
392
+ `;
393
+
394
+ exports[`Button Presets Should render preset SUCCESS_GHOST in selected state 1`] = `
395
+ <DocumentFragment>
396
+ <button
397
+ aria-busy="false"
398
+ aria-pressed="true"
399
+ class="buttonReset button selected:text-green-80 selected:border-green-80 sizeMedium shapeRoundedRectangle variantText"
400
+ type="button"
401
+ >
402
+ <div
403
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
404
+ data-id="flex"
405
+ data-test-id="flex"
406
+ >
407
+ <div
408
+ class="dotted size13"
409
+ >
410
+ Button
411
+ </div>
412
+ </div>
413
+ </button>
414
+ </DocumentFragment>
415
+ `;
416
+
417
+ exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY 1`] = `
418
+ <DocumentFragment>
419
+ <button
420
+ aria-busy="false"
421
+ aria-pressed="false"
422
+ class="buttonReset button text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
423
+ type="button"
424
+ >
425
+ <div
426
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
427
+ data-id="flex"
428
+ data-test-id="flex"
429
+ >
430
+ <div
431
+ class="dotted size13"
432
+ >
433
+ Button
434
+ </div>
435
+ </div>
436
+ </button>
437
+ </DocumentFragment>
438
+ `;
439
+
440
+ exports[`Button Presets Should render preset SUCCESS_TEXT_ONLY in selected state 1`] = `
441
+ <DocumentFragment>
442
+ <button
443
+ aria-busy="false"
444
+ aria-pressed="true"
445
+ class="buttonReset button selected:text-green-80 border-transparent sizeMedium shapeRoundedRectangle variantText"
446
+ type="button"
447
+ >
448
+ <div
449
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
450
+ data-id="flex"
451
+ data-test-id="flex"
452
+ >
453
+ <div
454
+ class="dotted size13"
455
+ >
456
+ Button
457
+ </div>
458
+ </div>
459
+ </button>
460
+ </DocumentFragment>
461
+ `;
462
+
463
+ exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE 1`] = `
464
+ <DocumentFragment>
465
+ <button
466
+ aria-busy="false"
467
+ aria-pressed="false"
468
+ class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-green-30 hover:border-green-100 focus:border-green-100 active:border-green-100 sizeMedium shapeRoundedRectangle variantText"
469
+ type="button"
470
+ >
471
+ <div
472
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
473
+ data-id="flex"
474
+ data-test-id="flex"
475
+ >
476
+ <div
477
+ class="dotted size13"
478
+ >
479
+ Button
480
+ </div>
481
+ </div>
482
+ </button>
483
+ </DocumentFragment>
484
+ `;
485
+
486
+ exports[`Button Presets Should render preset SUCCESS_TINTED_OUTLINE in selected state 1`] = `
487
+ <DocumentFragment>
488
+ <button
489
+ aria-busy="false"
490
+ aria-pressed="true"
491
+ class="buttonReset button selected:bg-green-10 selected:text-green-80 selected:border-green-30 sizeMedium shapeRoundedRectangle variantText"
492
+ type="button"
493
+ >
494
+ <div
495
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
496
+ data-id="flex"
497
+ data-test-id="flex"
498
+ >
499
+ <div
500
+ class="dotted size13"
501
+ >
502
+ Button
503
+ </div>
504
+ </div>
505
+ </button>
506
+ </DocumentFragment>
507
+ `;
508
+
509
+ exports[`Button Should apply a11yAttributes to the button 1`] = `
510
+ <DocumentFragment>
511
+ <button
512
+ aria-busy="false"
513
+ aria-describedby="button-description"
514
+ aria-label="Smart Button"
515
+ aria-pressed="false"
516
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
517
+ type="button"
518
+ >
519
+ <div
520
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
521
+ data-id="flex"
522
+ data-test-id="flex"
523
+ >
524
+ <div
525
+ class="dotted size13"
526
+ >
527
+ Button
528
+ </div>
529
+ </div>
530
+ </button>
531
+ </DocumentFragment>
532
+ `;
533
+
534
+ exports[`Button Should apply customAttributes to button elements 1`] = `
535
+ <DocumentFragment>
536
+ <button
537
+ aria-busy="false"
538
+ aria-pressed="false"
539
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
540
+ data-wrapper="wrapperAttr"
541
+ type="button"
542
+ >
543
+ <div
544
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
545
+ data-id="flex"
546
+ data-test-id="flex"
547
+ >
548
+ <div
549
+ class="dotted size13"
550
+ data-text="textAttr"
551
+ >
552
+ Button
553
+ </div>
554
+ </div>
555
+ </button>
556
+ </DocumentFragment>
557
+ `;
558
+
559
+ exports[`Button Should apply customClass to wrapper, text and icon 1`] = `
560
+ <DocumentFragment>
561
+ <button
562
+ aria-busy="false"
563
+ aria-pressed="false"
564
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText customButtonClass"
565
+ type="button"
566
+ >
567
+ <div
568
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
569
+ data-id="flex"
570
+ data-test-id="flex"
571
+ >
572
+ <i
573
+ aria-hidden="true"
574
+ class="zd_font_icons basic icon-plus customIconClass"
575
+ data-id="fontIcon"
576
+ data-selector-id="fontIcon"
577
+ style="--zd-iconfont-size: var(--zd_font_size16);"
578
+ />
579
+ <div
580
+ class="dotted size13 customTextClass"
581
+ >
582
+ Button
583
+ </div>
584
+ </div>
585
+ </button>
586
+ </DocumentFragment>
587
+ `;
588
+
589
+ exports[`Button Should apply customProps to wrapper, text and icon 1`] = `
590
+ <DocumentFragment>
591
+ <button
592
+ aria-busy="false"
593
+ aria-pressed="false"
594
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
595
+ type="button"
596
+ >
597
+ <div
598
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
599
+ data-id="flex"
600
+ data-test-id="flex"
601
+ >
602
+ <div
603
+ class="dotted size13"
604
+ >
605
+ Button
606
+ </div>
607
+ </div>
608
+ </button>
609
+ </DocumentFragment>
610
+ `;
611
+
612
+ exports[`Button Should be disabled when isDisabled prop is true 1`] = `
613
+ <DocumentFragment>
614
+ <button
615
+ aria-busy="false"
616
+ aria-pressed="false"
617
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
618
+ data-id="undefined_disabled"
619
+ data-test-id="undefined_disabled"
620
+ disabled=""
621
+ type="button"
622
+ >
623
+ <div
624
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
625
+ data-id="flex"
626
+ data-test-id="flex"
627
+ />
628
+ </button>
629
+ </DocumentFragment>
630
+ `;
631
+
632
+ exports[`Button Should render Sizes of buttons - full 1`] = `
633
+ <DocumentFragment>
634
+ <button
635
+ aria-busy="false"
636
+ aria-pressed="false"
637
+ class="buttonReset button border-transparent sizeFull shapeRoundedRectangle variantText"
638
+ type="button"
639
+ >
640
+ <div
641
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
642
+ data-id="flex"
643
+ data-test-id="flex"
644
+ />
645
+ </button>
646
+ </DocumentFragment>
647
+ `;
648
+
649
+ exports[`Button Should render Sizes of buttons - large 1`] = `
650
+ <DocumentFragment>
651
+ <button
652
+ aria-busy="false"
653
+ aria-pressed="false"
654
+ class="buttonReset button border-transparent sizeLarge shapeRoundedRectangle variantText"
655
+ type="button"
656
+ >
657
+ <div
658
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
659
+ data-id="flex"
660
+ data-test-id="flex"
661
+ />
662
+ </button>
663
+ </DocumentFragment>
664
+ `;
665
+
666
+ exports[`Button Should render Sizes of buttons - medium 1`] = `
667
+ <DocumentFragment>
668
+ <button
669
+ aria-busy="false"
670
+ aria-pressed="false"
671
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
672
+ type="button"
673
+ >
674
+ <div
675
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
676
+ data-id="flex"
677
+ data-test-id="flex"
678
+ />
679
+ </button>
680
+ </DocumentFragment>
681
+ `;
682
+
683
+ exports[`Button Should render Sizes of buttons - small 1`] = `
684
+ <DocumentFragment>
685
+ <button
686
+ aria-busy="false"
687
+ aria-pressed="false"
688
+ class="buttonReset button border-transparent sizeSmall shapeRoundedRectangle variantText"
689
+ type="button"
690
+ >
691
+ <div
692
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
693
+ data-id="flex"
694
+ data-test-id="flex"
695
+ />
696
+ </button>
697
+ </DocumentFragment>
698
+ `;
699
+
700
+ exports[`Button Should render Status of buttons - default 1`] = `
701
+ <DocumentFragment>
702
+ <button
703
+ aria-busy="false"
704
+ aria-pressed="false"
705
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
706
+ type="button"
707
+ >
708
+ <div
709
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
710
+ data-id="flex"
711
+ data-test-id="flex"
712
+ />
713
+ </button>
714
+ </DocumentFragment>
715
+ `;
716
+
717
+ exports[`Button Should render Status of buttons - loading 1`] = `
718
+ <DocumentFragment>
719
+ <button
720
+ aria-busy="true"
721
+ aria-pressed="false"
722
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
723
+ disabled=""
724
+ type="button"
725
+ >
726
+ <div
727
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
728
+ data-id="flex"
729
+ data-test-id="flex"
730
+ />
731
+ <div
732
+ class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
733
+ data-id="flex"
734
+ data-test-id="flex"
735
+ >
736
+ <svg
737
+ aria-hidden="true"
738
+ class="spinner"
739
+ role="img"
740
+ viewBox="0 0 24 24"
741
+ >
742
+ <circle
743
+ class="spinnerTrack"
744
+ cx="12"
745
+ cy="12"
746
+ r="10"
747
+ />
748
+ <circle
749
+ class="spinnerHead"
750
+ cx="12"
751
+ cy="12"
752
+ r="10"
753
+ />
754
+ </svg>
755
+ </div>
756
+ </button>
757
+ </DocumentFragment>
758
+ `;
759
+
760
+ exports[`Button Should render Status of buttons - success 1`] = `
761
+ <DocumentFragment>
762
+ <button
763
+ aria-busy="false"
764
+ aria-pressed="false"
765
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
766
+ type="button"
767
+ >
768
+ <div
769
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
770
+ data-id="flex"
771
+ data-test-id="flex"
772
+ />
773
+ <div
774
+ class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
775
+ data-id="flex"
776
+ data-test-id="flex"
777
+ >
778
+ <svg
779
+ aria-hidden="true"
780
+ class="tick"
781
+ role="img"
782
+ viewBox="0 0 24 24"
783
+ >
784
+ <path
785
+ d="M4 12l5 5L20 6"
786
+ />
787
+ </svg>
788
+ </div>
789
+ </button>
790
+ </DocumentFragment>
791
+ `;
792
+
793
+ exports[`Button Should render appearance of buttons - { bg: false, border: true } 1`] = `
794
+ <DocumentFragment>
795
+ <button
796
+ aria-busy="false"
797
+ aria-pressed="false"
798
+ class="buttonReset button hover:bg-brand-80 focus:bg-brand-80 active:bg-brand-80 text-brand-80 hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
799
+ type="button"
800
+ >
801
+ <div
802
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
803
+ data-id="flex"
804
+ data-test-id="flex"
805
+ />
806
+ </button>
807
+ </DocumentFragment>
808
+ `;
809
+
810
+ exports[`Button Should render appearance of buttons - { bg: true, text: 'black' } 1`] = `
811
+ <DocumentFragment>
812
+ <button
813
+ aria-busy="false"
814
+ aria-pressed="false"
815
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-black hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
816
+ type="button"
817
+ >
818
+ <div
819
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
820
+ data-id="flex"
821
+ data-test-id="flex"
822
+ />
823
+ </button>
824
+ </DocumentFragment>
825
+ `;
826
+
827
+ exports[`Button Should render appearance of buttons - { border: true } 1`] = `
828
+ <DocumentFragment>
829
+ <button
830
+ aria-busy="false"
831
+ aria-pressed="false"
832
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle variantText"
833
+ type="button"
834
+ >
835
+ <div
836
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
837
+ data-id="flex"
838
+ data-test-id="flex"
839
+ />
840
+ </button>
841
+ </DocumentFragment>
842
+ `;
843
+
844
+ exports[`Button Should render appearance of buttons - { text: true } 1`] = `
845
+ <DocumentFragment>
846
+ <button
847
+ aria-busy="false"
848
+ aria-pressed="false"
849
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
850
+ type="button"
851
+ >
852
+ <div
853
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
854
+ data-id="flex"
855
+ data-test-id="flex"
856
+ />
857
+ </button>
858
+ </DocumentFragment>
859
+ `;
860
+
861
+ exports[`Button Should render appearance of buttons - {} 1`] = `
862
+ <DocumentFragment>
863
+ <button
864
+ aria-busy="false"
865
+ aria-pressed="false"
866
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
867
+ type="button"
868
+ >
869
+ <div
870
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
871
+ data-id="flex"
872
+ data-test-id="flex"
873
+ />
874
+ </button>
875
+ </DocumentFragment>
876
+ `;
877
+
878
+ exports[`Button Should render disabledAppearance of buttons - dull 1`] = `
879
+ <DocumentFragment>
880
+ <button
881
+ aria-busy="false"
882
+ aria-pressed="false"
883
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledOpac disabledPointer"
884
+ data-id="undefined_disabled"
885
+ data-test-id="undefined_disabled"
886
+ disabled=""
887
+ type="button"
888
+ >
889
+ <div
890
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
891
+ data-id="flex"
892
+ data-test-id="flex"
893
+ />
894
+ </button>
895
+ </DocumentFragment>
896
+ `;
897
+
898
+ exports[`Button Should render disabledAppearance of buttons - none 1`] = `
899
+ <DocumentFragment>
900
+ <button
901
+ aria-busy="false"
902
+ aria-pressed="false"
903
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer"
904
+ data-id="undefined_disabled"
905
+ data-test-id="undefined_disabled"
906
+ disabled=""
907
+ type="button"
908
+ >
909
+ <div
910
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
911
+ data-id="flex"
912
+ data-test-id="flex"
913
+ />
914
+ </button>
915
+ </DocumentFragment>
916
+ `;
917
+
918
+ exports[`Button Should render disabledAppearance of buttons - strike 1`] = `
88
919
  <DocumentFragment>
89
920
  <button
90
921
  aria-busy="false"
91
- aria-disabled="true"
92
922
  aria-pressed="false"
93
- aria-readonly="false"
94
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
923
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText disabledPointer strike"
924
+ data-id="undefined_disabled"
925
+ data-test-id="undefined_disabled"
926
+ disabled=""
95
927
  type="button"
96
928
  >
97
929
  <div
@@ -103,14 +935,12 @@ exports[`Button - Component Should be disabled when isDisabled prop is true 1`]
103
935
  </DocumentFragment>
104
936
  `;
105
937
 
106
- exports[`Button - Component Should render Sizes of buttons - full 1`] = `
938
+ exports[`Button Should render hoverAppearance of buttons - { bg: false, border: true } 1`] = `
107
939
  <DocumentFragment>
108
940
  <button
109
941
  aria-busy="false"
110
- aria-disabled="false"
111
942
  aria-pressed="false"
112
- aria-readonly="false"
113
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeFull shapeRoundedRectangle"
943
+ class="buttonReset button bg-brand-80 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
114
944
  type="button"
115
945
  >
116
946
  <div
@@ -122,14 +952,12 @@ exports[`Button - Component Should render Sizes of buttons - full 1`] = `
122
952
  </DocumentFragment>
123
953
  `;
124
954
 
125
- exports[`Button - Component Should render Sizes of buttons - large 1`] = `
955
+ exports[`Button Should render hoverAppearance of buttons - { bg: true, text: 'black' } 1`] = `
126
956
  <DocumentFragment>
127
957
  <button
128
958
  aria-busy="false"
129
- aria-disabled="false"
130
959
  aria-pressed="false"
131
- aria-readonly="false"
132
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeLarge shapeRoundedRectangle"
960
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-black focus:text-black active:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
133
961
  type="button"
134
962
  >
135
963
  <div
@@ -141,14 +969,12 @@ exports[`Button - Component Should render Sizes of buttons - large 1`] = `
141
969
  </DocumentFragment>
142
970
  `;
143
971
 
144
- exports[`Button - Component Should render Sizes of buttons - medium 1`] = `
972
+ exports[`Button Should render hoverAppearance of buttons - { border: true } 1`] = `
145
973
  <DocumentFragment>
146
974
  <button
147
975
  aria-busy="false"
148
- aria-disabled="false"
149
976
  aria-pressed="false"
150
- aria-readonly="false"
151
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
977
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent hover:border-brand-80 focus:border-brand-80 active:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
152
978
  type="button"
153
979
  >
154
980
  <div
@@ -160,14 +986,12 @@ exports[`Button - Component Should render Sizes of buttons - medium 1`] = `
160
986
  </DocumentFragment>
161
987
  `;
162
988
 
163
- exports[`Button - Component Should render Sizes of buttons - small 1`] = `
989
+ exports[`Button Should render hoverAppearance of buttons - { text: true } 1`] = `
164
990
  <DocumentFragment>
165
991
  <button
166
992
  aria-busy="false"
167
- aria-disabled="false"
168
993
  aria-pressed="false"
169
- aria-readonly="false"
170
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeSmall shapeRoundedRectangle"
994
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
171
995
  type="button"
172
996
  >
173
997
  <div
@@ -179,14 +1003,12 @@ exports[`Button - Component Should render Sizes of buttons - small 1`] = `
179
1003
  </DocumentFragment>
180
1004
  `;
181
1005
 
182
- exports[`Button - Component Should render Status of buttons - default 1`] = `
1006
+ exports[`Button Should render hoverAppearance of buttons - {} 1`] = `
183
1007
  <DocumentFragment>
184
1008
  <button
185
1009
  aria-busy="false"
186
- aria-disabled="false"
187
1010
  aria-pressed="false"
188
- aria-readonly="false"
189
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1011
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
190
1012
  type="button"
191
1013
  >
192
1014
  <div
@@ -198,14 +1020,13 @@ exports[`Button - Component Should render Status of buttons - default 1`] = `
198
1020
  </DocumentFragment>
199
1021
  `;
200
1022
 
201
- exports[`Button - Component Should render Status of buttons - loading 1`] = `
1023
+ exports[`Button Should render loader overlay when status is loading and loaderPlacement is overlay 1`] = `
202
1024
  <DocumentFragment>
203
1025
  <button
204
1026
  aria-busy="true"
205
- aria-disabled="true"
206
1027
  aria-pressed="false"
207
- aria-readonly="false"
208
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1028
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
1029
+ disabled=""
209
1030
  type="button"
210
1031
  >
211
1032
  <div
@@ -242,14 +1063,57 @@ exports[`Button - Component Should render Status of buttons - loading 1`] = `
242
1063
  </DocumentFragment>
243
1064
  `;
244
1065
 
245
- exports[`Button - Component Should render Status of buttons - success 1`] = `
1066
+ exports[`Button Should render loaderPlacement of buttons - end 1`] = `
246
1067
  <DocumentFragment>
247
1068
  <button
248
- aria-busy="false"
249
- aria-disabled="false"
1069
+ aria-busy="true"
1070
+ aria-pressed="false"
1071
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
1072
+ disabled=""
1073
+ type="button"
1074
+ >
1075
+ <div
1076
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
1077
+ data-id="flex"
1078
+ data-test-id="flex"
1079
+ >
1080
+ <div
1081
+ class="d-flex d-flex-row d-items-center d-justify-center"
1082
+ data-id="flex"
1083
+ data-test-id="flex"
1084
+ >
1085
+ <svg
1086
+ aria-hidden="true"
1087
+ class="spinner"
1088
+ role="img"
1089
+ viewBox="0 0 24 24"
1090
+ >
1091
+ <circle
1092
+ class="spinnerTrack"
1093
+ cx="12"
1094
+ cy="12"
1095
+ r="10"
1096
+ />
1097
+ <circle
1098
+ class="spinnerHead"
1099
+ cx="12"
1100
+ cy="12"
1101
+ r="10"
1102
+ />
1103
+ </svg>
1104
+ </div>
1105
+ </div>
1106
+ </button>
1107
+ </DocumentFragment>
1108
+ `;
1109
+
1110
+ exports[`Button Should render loaderPlacement of buttons - overlay 1`] = `
1111
+ <DocumentFragment>
1112
+ <button
1113
+ aria-busy="true"
250
1114
  aria-pressed="false"
251
- aria-readonly="false"
252
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1115
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
1116
+ disabled=""
253
1117
  type="button"
254
1118
  >
255
1119
  <div
@@ -258,18 +1122,27 @@ exports[`Button - Component Should render Status of buttons - success 1`] = `
258
1122
  data-test-id="flex"
259
1123
  />
260
1124
  <div
261
- class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
1125
+ class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
262
1126
  data-id="flex"
263
1127
  data-test-id="flex"
264
1128
  >
265
1129
  <svg
266
1130
  aria-hidden="true"
267
- class="tick"
1131
+ class="spinner"
268
1132
  role="img"
269
1133
  viewBox="0 0 24 24"
270
1134
  >
271
- <path
272
- d="M4 12l5 5L20 6"
1135
+ <circle
1136
+ class="spinnerTrack"
1137
+ cx="12"
1138
+ cy="12"
1139
+ r="10"
1140
+ />
1141
+ <circle
1142
+ class="spinnerHead"
1143
+ cx="12"
1144
+ cy="12"
1145
+ r="10"
273
1146
  />
274
1147
  </svg>
275
1148
  </div>
@@ -277,33 +1150,56 @@ exports[`Button - Component Should render Status of buttons - success 1`] = `
277
1150
  </DocumentFragment>
278
1151
  `;
279
1152
 
280
- exports[`Button - Component Should render bgAppearance of buttons - default 1`] = `
1153
+ exports[`Button Should render loaderPlacement of buttons - start 1`] = `
281
1154
  <DocumentFragment>
282
1155
  <button
283
- aria-busy="false"
284
- aria-disabled="false"
1156
+ aria-busy="true"
285
1157
  aria-pressed="false"
286
- aria-readonly="false"
287
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1158
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
1159
+ disabled=""
288
1160
  type="button"
289
1161
  >
290
1162
  <div
291
1163
  class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
292
1164
  data-id="flex"
293
1165
  data-test-id="flex"
294
- />
1166
+ >
1167
+ <div
1168
+ class="d-flex d-flex-row d-items-center d-justify-center"
1169
+ data-id="flex"
1170
+ data-test-id="flex"
1171
+ >
1172
+ <svg
1173
+ aria-hidden="true"
1174
+ class="spinner"
1175
+ role="img"
1176
+ viewBox="0 0 24 24"
1177
+ >
1178
+ <circle
1179
+ class="spinnerTrack"
1180
+ cx="12"
1181
+ cy="12"
1182
+ r="10"
1183
+ />
1184
+ <circle
1185
+ class="spinnerHead"
1186
+ cx="12"
1187
+ cy="12"
1188
+ r="10"
1189
+ />
1190
+ </svg>
1191
+ </div>
1192
+ </div>
295
1193
  </button>
296
1194
  </DocumentFragment>
297
1195
  `;
298
1196
 
299
- exports[`Button - Component Should render bgAppearance of buttons - none 1`] = `
1197
+ exports[`Button Should render palette of buttons - brand 1`] = `
300
1198
  <DocumentFragment>
301
1199
  <button
302
1200
  aria-busy="false"
303
- aria-disabled="false"
304
1201
  aria-pressed="false"
305
- aria-readonly="false"
306
- class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
1202
+ class="buttonReset button bg-brand-80 hover:bg-brand-100 focus:bg-brand-100 active:bg-brand-100 text-brand-filled hover:text-brand-filled focus:text-brand-filled active:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
307
1203
  type="button"
308
1204
  >
309
1205
  <div
@@ -315,14 +1211,12 @@ exports[`Button - Component Should render bgAppearance of buttons - none 1`] = `
315
1211
  </DocumentFragment>
316
1212
  `;
317
1213
 
318
- exports[`Button - Component Should render bgAppearance of buttons - onHover 1`] = `
1214
+ exports[`Button Should render palette of buttons - brandLighter 1`] = `
319
1215
  <DocumentFragment>
320
1216
  <button
321
1217
  aria-busy="false"
322
- aria-disabled="false"
323
1218
  aria-pressed="false"
324
- aria-readonly="false"
325
- class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
1219
+ class="buttonReset button bg-brand-10 hover:bg-brand-20 focus:bg-brand-20 active:bg-brand-20 text-brand-80 hover:text-brand-100 focus:text-brand-100 active:text-brand-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
326
1220
  type="button"
327
1221
  >
328
1222
  <div
@@ -334,14 +1228,12 @@ exports[`Button - Component Should render bgAppearance of buttons - onHover 1`]
334
1228
  </DocumentFragment>
335
1229
  `;
336
1230
 
337
- exports[`Button - Component Should render borderAppearance of buttons - default 1`] = `
1231
+ exports[`Button Should render palette of buttons - danger 1`] = `
338
1232
  <DocumentFragment>
339
1233
  <button
340
1234
  aria-busy="false"
341
- aria-disabled="false"
342
1235
  aria-pressed="false"
343
- aria-readonly="false"
344
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1236
+ class="buttonReset button bg-red-70 hover:bg-red-100 focus:bg-red-100 active:bg-red-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
345
1237
  type="button"
346
1238
  >
347
1239
  <div
@@ -353,14 +1245,12 @@ exports[`Button - Component Should render borderAppearance of buttons - default
353
1245
  </DocumentFragment>
354
1246
  `;
355
1247
 
356
- exports[`Button - Component Should render borderAppearance of buttons - none 1`] = `
1248
+ exports[`Button Should render palette of buttons - dangerLighter 1`] = `
357
1249
  <DocumentFragment>
358
1250
  <button
359
1251
  aria-busy="false"
360
- aria-disabled="false"
361
1252
  aria-pressed="false"
362
- aria-readonly="false"
363
- class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
1253
+ class="buttonReset button bg-red-10 hover:bg-red-30 focus:bg-red-30 active:bg-red-30 text-red-70 hover:text-red-100 focus:text-red-100 active:text-red-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
364
1254
  type="button"
365
1255
  >
366
1256
  <div
@@ -372,14 +1262,12 @@ exports[`Button - Component Should render borderAppearance of buttons - none 1`]
372
1262
  </DocumentFragment>
373
1263
  `;
374
1264
 
375
- exports[`Button - Component Should render borderAppearance of buttons - onHover 1`] = `
1265
+ exports[`Button Should render palette of buttons - info 1`] = `
376
1266
  <DocumentFragment>
377
1267
  <button
378
1268
  aria-busy="false"
379
- aria-disabled="false"
380
1269
  aria-pressed="false"
381
- aria-readonly="false"
382
- class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
1270
+ class="buttonReset button bg-blue-80 hover:bg-blue-100 focus:bg-blue-100 active:bg-blue-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
383
1271
  type="button"
384
1272
  >
385
1273
  <div
@@ -391,14 +1279,12 @@ exports[`Button - Component Should render borderAppearance of buttons - onHover
391
1279
  </DocumentFragment>
392
1280
  `;
393
1281
 
394
- exports[`Button - Component Should render disabledAppearance of buttons - dull 1`] = `
1282
+ exports[`Button Should render palette of buttons - infoLighter 1`] = `
395
1283
  <DocumentFragment>
396
1284
  <button
397
1285
  aria-busy="false"
398
- aria-disabled="true"
399
1286
  aria-pressed="false"
400
- aria-readonly="false"
401
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
1287
+ class="buttonReset button bg-blue-10 hover:bg-blue-20 focus:bg-blue-20 active:bg-blue-20 text-blue-80 hover:text-blue-100 focus:text-blue-100 active:text-blue-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
402
1288
  type="button"
403
1289
  >
404
1290
  <div
@@ -410,14 +1296,12 @@ exports[`Button - Component Should render disabledAppearance of buttons - dull 1
410
1296
  </DocumentFragment>
411
1297
  `;
412
1298
 
413
- exports[`Button - Component Should render disabledAppearance of buttons - none 1`] = `
1299
+ exports[`Button Should render palette of buttons - secondary 1`] = `
414
1300
  <DocumentFragment>
415
1301
  <button
416
1302
  aria-busy="false"
417
- aria-disabled="true"
418
1303
  aria-pressed="false"
419
- aria-readonly="false"
420
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer"
1304
+ class="buttonReset button bg-grey-65 hover:bg-grey-55 focus:bg-grey-55 active:bg-grey-55 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
421
1305
  type="button"
422
1306
  >
423
1307
  <div
@@ -429,14 +1313,12 @@ exports[`Button - Component Should render disabledAppearance of buttons - none 1
429
1313
  </DocumentFragment>
430
1314
  `;
431
1315
 
432
- exports[`Button - Component Should render disabledAppearance of buttons - strike 1`] = `
1316
+ exports[`Button Should render palette of buttons - secondaryLighter 1`] = `
433
1317
  <DocumentFragment>
434
1318
  <button
435
1319
  aria-busy="false"
436
- aria-disabled="true"
437
1320
  aria-pressed="false"
438
- aria-readonly="false"
439
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer strike"
1321
+ class="buttonReset button bg-grey-10 hover:bg-grey-20 focus:bg-grey-20 active:bg-grey-20 text-grey-65 hover:text-grey-100 focus:text-grey-100 active:text-grey-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
440
1322
  type="button"
441
1323
  >
442
1324
  <div
@@ -448,148 +1330,63 @@ exports[`Button - Component Should render disabledAppearance of buttons - strike
448
1330
  </DocumentFragment>
449
1331
  `;
450
1332
 
451
- exports[`Button - Component Should render loaderPlacement of buttons - end 1`] = `
1333
+ exports[`Button Should render palette of buttons - success 1`] = `
452
1334
  <DocumentFragment>
453
1335
  <button
454
- aria-busy="true"
455
- aria-disabled="true"
1336
+ aria-busy="false"
456
1337
  aria-pressed="false"
457
- aria-readonly="false"
458
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1338
+ class="buttonReset button bg-green-80 hover:bg-green-100 focus:bg-green-100 active:bg-green-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
459
1339
  type="button"
460
1340
  >
461
1341
  <div
462
1342
  class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
463
1343
  data-id="flex"
464
1344
  data-test-id="flex"
465
- >
466
- <div
467
- class="d-flex d-flex-row d-items-center d-justify-center"
468
- data-id="flex"
469
- data-test-id="flex"
470
- >
471
- <svg
472
- aria-hidden="true"
473
- class="spinner"
474
- role="img"
475
- viewBox="0 0 24 24"
476
- >
477
- <circle
478
- class="spinnerTrack"
479
- cx="12"
480
- cy="12"
481
- r="10"
482
- />
483
- <circle
484
- class="spinnerHead"
485
- cx="12"
486
- cy="12"
487
- r="10"
488
- />
489
- </svg>
490
- </div>
491
- </div>
1345
+ />
492
1346
  </button>
493
1347
  </DocumentFragment>
494
1348
  `;
495
1349
 
496
- exports[`Button - Component Should render loaderPlacement of buttons - overlay 1`] = `
1350
+ exports[`Button Should render palette of buttons - successLighter 1`] = `
497
1351
  <DocumentFragment>
498
1352
  <button
499
- aria-busy="true"
500
- aria-disabled="true"
1353
+ aria-busy="false"
501
1354
  aria-pressed="false"
502
- aria-readonly="false"
503
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1355
+ class="buttonReset button bg-green-10 hover:bg-green-30 focus:bg-green-30 active:bg-green-30 text-green-80 hover:text-green-100 focus:text-green-100 active:text-green-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
504
1356
  type="button"
505
1357
  >
506
1358
  <div
507
- class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
1359
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
508
1360
  data-id="flex"
509
1361
  data-test-id="flex"
510
1362
  />
511
- <div
512
- class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
513
- data-id="flex"
514
- data-test-id="flex"
515
- >
516
- <svg
517
- aria-hidden="true"
518
- class="spinner"
519
- role="img"
520
- viewBox="0 0 24 24"
521
- >
522
- <circle
523
- class="spinnerTrack"
524
- cx="12"
525
- cy="12"
526
- r="10"
527
- />
528
- <circle
529
- class="spinnerHead"
530
- cx="12"
531
- cy="12"
532
- r="10"
533
- />
534
- </svg>
535
- </div>
536
1363
  </button>
537
1364
  </DocumentFragment>
538
1365
  `;
539
1366
 
540
- exports[`Button - Component Should render loaderPlacement of buttons - start 1`] = `
1367
+ exports[`Button Should render palette of buttons - warning 1`] = `
541
1368
  <DocumentFragment>
542
1369
  <button
543
- aria-busy="true"
544
- aria-disabled="true"
1370
+ aria-busy="false"
545
1371
  aria-pressed="false"
546
- aria-readonly="false"
547
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1372
+ class="buttonReset button bg-orange-80 hover:bg-orange-100 focus:bg-orange-100 active:bg-orange-100 text-white hover:text-white focus:text-white active:text-white border-transparent sizeMedium shapeRoundedRectangle variantText"
548
1373
  type="button"
549
1374
  >
550
1375
  <div
551
1376
  class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
552
1377
  data-id="flex"
553
1378
  data-test-id="flex"
554
- >
555
- <div
556
- class="d-flex d-flex-row d-items-center d-justify-center"
557
- data-id="flex"
558
- data-test-id="flex"
559
- >
560
- <svg
561
- aria-hidden="true"
562
- class="spinner"
563
- role="img"
564
- viewBox="0 0 24 24"
565
- >
566
- <circle
567
- class="spinnerTrack"
568
- cx="12"
569
- cy="12"
570
- r="10"
571
- />
572
- <circle
573
- class="spinnerHead"
574
- cx="12"
575
- cy="12"
576
- r="10"
577
- />
578
- </svg>
579
- </div>
580
- </div>
1379
+ />
581
1380
  </button>
582
1381
  </DocumentFragment>
583
1382
  `;
584
1383
 
585
- exports[`Button - Component Should render palette of buttons - danger 1`] = `
1384
+ exports[`Button Should render palette of buttons - warningLighter 1`] = `
586
1385
  <DocumentFragment>
587
1386
  <button
588
1387
  aria-busy="false"
589
- aria-disabled="false"
590
1388
  aria-pressed="false"
591
- aria-readonly="false"
592
- class="buttonReset button bg-red-70 text-white border-red-70 sizeMedium shapeRoundedRectangle"
1389
+ class="buttonReset button bg-orange-10 hover:bg-orange-15 focus:bg-orange-15 active:bg-orange-15 text-orange-80 hover:text-orange-100 focus:text-orange-100 active:text-orange-100 border-transparent sizeMedium shapeRoundedRectangle variantText"
593
1390
  type="button"
594
1391
  >
595
1392
  <div
@@ -601,14 +1398,12 @@ exports[`Button - Component Should render palette of buttons - danger 1`] = `
601
1398
  </DocumentFragment>
602
1399
  `;
603
1400
 
604
- exports[`Button - Component Should render palette of buttons - default 1`] = `
1401
+ exports[`Button Should render selectedAppearance of buttons - { bg: false, border: true } 1`] = `
605
1402
  <DocumentFragment>
606
1403
  <button
607
1404
  aria-busy="false"
608
- aria-disabled="false"
609
- aria-pressed="false"
610
- aria-readonly="false"
611
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1405
+ aria-pressed="true"
1406
+ class="buttonReset button bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
612
1407
  type="button"
613
1408
  >
614
1409
  <div
@@ -620,14 +1415,12 @@ exports[`Button - Component Should render palette of buttons - default 1`] = `
620
1415
  </DocumentFragment>
621
1416
  `;
622
1417
 
623
- exports[`Button - Component Should render palette of buttons - primary 1`] = `
1418
+ exports[`Button Should render selectedAppearance of buttons - { bg: true, text: 'black' } 1`] = `
624
1419
  <DocumentFragment>
625
1420
  <button
626
1421
  aria-busy="false"
627
- aria-disabled="false"
628
- aria-pressed="false"
629
- aria-readonly="false"
630
- class="buttonReset button bg-blue-80 text-white border-blue-80 sizeMedium shapeRoundedRectangle"
1422
+ aria-pressed="true"
1423
+ class="buttonReset button selected:bg-brand-80 selected:text-black border-transparent sizeMedium shapeRoundedRectangle variantText"
631
1424
  type="button"
632
1425
  >
633
1426
  <div
@@ -639,14 +1432,12 @@ exports[`Button - Component Should render palette of buttons - primary 1`] = `
639
1432
  </DocumentFragment>
640
1433
  `;
641
1434
 
642
- exports[`Button - Component Should render palette of buttons - secondary 1`] = `
1435
+ exports[`Button Should render selectedAppearance of buttons - { border: true } 1`] = `
643
1436
  <DocumentFragment>
644
1437
  <button
645
1438
  aria-busy="false"
646
- aria-disabled="false"
647
- aria-pressed="false"
648
- aria-readonly="false"
649
- class="buttonReset button bg-grey-65 text-white border-grey-65 sizeMedium shapeRoundedRectangle"
1439
+ aria-pressed="true"
1440
+ class="buttonReset button selected:bg-brand-80 selected:text-brand-filled selected:border-brand-80 sizeMedium shapeRoundedRectangle variantText"
650
1441
  type="button"
651
1442
  >
652
1443
  <div
@@ -658,14 +1449,12 @@ exports[`Button - Component Should render palette of buttons - secondary 1`] = `
658
1449
  </DocumentFragment>
659
1450
  `;
660
1451
 
661
- exports[`Button - Component Should render palette of buttons - success 1`] = `
1452
+ exports[`Button Should render selectedAppearance of buttons - { text: true } 1`] = `
662
1453
  <DocumentFragment>
663
1454
  <button
664
1455
  aria-busy="false"
665
- aria-disabled="false"
666
- aria-pressed="false"
667
- aria-readonly="false"
668
- class="buttonReset button bg-green-80 text-white border-green-80 sizeMedium shapeRoundedRectangle"
1456
+ aria-pressed="true"
1457
+ class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
669
1458
  type="button"
670
1459
  >
671
1460
  <div
@@ -677,14 +1466,12 @@ exports[`Button - Component Should render palette of buttons - success 1`] = `
677
1466
  </DocumentFragment>
678
1467
  `;
679
1468
 
680
- exports[`Button - Component Should render paletteShade of buttons - default 1`] = `
1469
+ exports[`Button Should render selectedAppearance of buttons - {} 1`] = `
681
1470
  <DocumentFragment>
682
1471
  <button
683
1472
  aria-busy="false"
684
- aria-disabled="false"
685
- aria-pressed="false"
686
- aria-readonly="false"
687
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1473
+ aria-pressed="true"
1474
+ class="buttonReset button selected:bg-brand-80 selected:text-brand-filled border-transparent sizeMedium shapeRoundedRectangle variantText"
688
1475
  type="button"
689
1476
  >
690
1477
  <div
@@ -696,14 +1483,12 @@ exports[`Button - Component Should render paletteShade of buttons - default 1`]
696
1483
  </DocumentFragment>
697
1484
  `;
698
1485
 
699
- exports[`Button - Component Should render paletteShade of buttons - lighter 1`] = `
1486
+ exports[`Button Should render shape of buttons - pill 1`] = `
700
1487
  <DocumentFragment>
701
1488
  <button
702
1489
  aria-busy="false"
703
- aria-disabled="false"
704
1490
  aria-pressed="false"
705
- aria-readonly="false"
706
- class="buttonReset button bg-brand-10 text-brand-80 border-brand-10 sizeMedium shapeRoundedRectangle"
1491
+ class="buttonReset button border-transparent sizeMedium shapePill variantText"
707
1492
  type="button"
708
1493
  >
709
1494
  <div
@@ -715,14 +1500,12 @@ exports[`Button - Component Should render paletteShade of buttons - lighter 1`]
715
1500
  </DocumentFragment>
716
1501
  `;
717
1502
 
718
- exports[`Button - Component Should render shape of buttons - pill 1`] = `
1503
+ exports[`Button Should render shape of buttons - rectangle 1`] = `
719
1504
  <DocumentFragment>
720
1505
  <button
721
1506
  aria-busy="false"
722
- aria-disabled="false"
723
1507
  aria-pressed="false"
724
- aria-readonly="false"
725
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapePill"
1508
+ class="buttonReset button border-transparent sizeMedium shapeRectangle variantText"
726
1509
  type="button"
727
1510
  >
728
1511
  <div
@@ -734,14 +1517,12 @@ exports[`Button - Component Should render shape of buttons - pill 1`] = `
734
1517
  </DocumentFragment>
735
1518
  `;
736
1519
 
737
- exports[`Button - Component Should render shape of buttons - rectangle 1`] = `
1520
+ exports[`Button Should render shape of buttons - roundedRectangle 1`] = `
738
1521
  <DocumentFragment>
739
1522
  <button
740
1523
  aria-busy="false"
741
- aria-disabled="false"
742
1524
  aria-pressed="false"
743
- aria-readonly="false"
744
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRectangle"
1525
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
745
1526
  type="button"
746
1527
  >
747
1528
  <div
@@ -753,33 +1534,45 @@ exports[`Button - Component Should render shape of buttons - rectangle 1`] = `
753
1534
  </DocumentFragment>
754
1535
  `;
755
1536
 
756
- exports[`Button - Component Should render shape of buttons - roundedRectangle 1`] = `
1537
+ exports[`Button Should render success overlay when status is success and loaderPlacement is overlay 1`] = `
757
1538
  <DocumentFragment>
758
1539
  <button
759
1540
  aria-busy="false"
760
- aria-disabled="false"
761
1541
  aria-pressed="false"
762
- aria-readonly="false"
763
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1542
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
764
1543
  type="button"
765
1544
  >
766
1545
  <div
767
- class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
1546
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink overlayHidden"
768
1547
  data-id="flex"
769
1548
  data-test-id="flex"
770
1549
  />
1550
+ <div
1551
+ class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
1552
+ data-id="flex"
1553
+ data-test-id="flex"
1554
+ >
1555
+ <svg
1556
+ aria-hidden="true"
1557
+ class="tick"
1558
+ role="img"
1559
+ viewBox="0 0 24 24"
1560
+ >
1561
+ <path
1562
+ d="M4 12l5 5L20 6"
1563
+ />
1564
+ </svg>
1565
+ </div>
771
1566
  </button>
772
1567
  </DocumentFragment>
773
1568
  `;
774
1569
 
775
- exports[`Button - Component Should render type of buttons - button 1`] = `
1570
+ exports[`Button Should render type of buttons - button 1`] = `
776
1571
  <DocumentFragment>
777
1572
  <button
778
1573
  aria-busy="false"
779
- aria-disabled="false"
780
1574
  aria-pressed="false"
781
- aria-readonly="false"
782
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1575
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
783
1576
  type="button"
784
1577
  >
785
1578
  <div
@@ -791,14 +1584,12 @@ exports[`Button - Component Should render type of buttons - button 1`] = `
791
1584
  </DocumentFragment>
792
1585
  `;
793
1586
 
794
- exports[`Button - Component Should render type of buttons - reset 1`] = `
1587
+ exports[`Button Should render type of buttons - reset 1`] = `
795
1588
  <DocumentFragment>
796
1589
  <button
797
1590
  aria-busy="false"
798
- aria-disabled="false"
799
1591
  aria-pressed="false"
800
- aria-readonly="false"
801
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1592
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
802
1593
  type="reset"
803
1594
  >
804
1595
  <div
@@ -810,14 +1601,12 @@ exports[`Button - Component Should render type of buttons - reset 1`] = `
810
1601
  </DocumentFragment>
811
1602
  `;
812
1603
 
813
- exports[`Button - Component Should render type of buttons - submit 1`] = `
1604
+ exports[`Button Should render type of buttons - submit 1`] = `
814
1605
  <DocumentFragment>
815
1606
  <button
816
1607
  aria-busy="false"
817
- aria-disabled="false"
818
1608
  aria-pressed="false"
819
- aria-readonly="false"
820
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1609
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
821
1610
  type="submit"
822
1611
  >
823
1612
  <div
@@ -829,14 +1618,12 @@ exports[`Button - Component Should render type of buttons - submit 1`] = `
829
1618
  </DocumentFragment>
830
1619
  `;
831
1620
 
832
- exports[`Button - Component Should render variant of buttons - icon 1`] = `
1621
+ exports[`Button Should render variant of buttons - icon 1`] = `
833
1622
  <DocumentFragment>
834
1623
  <button
835
1624
  aria-busy="false"
836
- aria-disabled="false"
837
1625
  aria-pressed="false"
838
- aria-readonly="false"
839
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1626
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
840
1627
  type="button"
841
1628
  >
842
1629
  <div
@@ -848,14 +1635,12 @@ exports[`Button - Component Should render variant of buttons - icon 1`] = `
848
1635
  </DocumentFragment>
849
1636
  `;
850
1637
 
851
- exports[`Button - Component Should render variant of buttons - iconWithText 1`] = `
1638
+ exports[`Button Should render variant of buttons - iconWithText 1`] = `
852
1639
  <DocumentFragment>
853
1640
  <button
854
1641
  aria-busy="false"
855
- aria-disabled="false"
856
1642
  aria-pressed="false"
857
- aria-readonly="false"
858
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1643
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
859
1644
  type="button"
860
1645
  >
861
1646
  <div
@@ -867,14 +1652,12 @@ exports[`Button - Component Should render variant of buttons - iconWithText 1`]
867
1652
  </DocumentFragment>
868
1653
  `;
869
1654
 
870
- exports[`Button - Component Should render variant of buttons - text 1`] = `
1655
+ exports[`Button Should render variant of buttons - text 1`] = `
871
1656
  <DocumentFragment>
872
1657
  <button
873
1658
  aria-busy="false"
874
- aria-disabled="false"
875
1659
  aria-pressed="false"
876
- aria-readonly="false"
877
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1660
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
878
1661
  type="button"
879
1662
  >
880
1663
  <div
@@ -886,14 +1669,12 @@ exports[`Button - Component Should render variant of buttons - text 1`] = `
886
1669
  </DocumentFragment>
887
1670
  `;
888
1671
 
889
- exports[`Button - Component Should render with children 1`] = `
1672
+ exports[`Button Should render with children 1`] = `
890
1673
  <DocumentFragment>
891
1674
  <button
892
1675
  aria-busy="false"
893
- aria-disabled="false"
894
1676
  aria-pressed="false"
895
- aria-readonly="false"
896
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1677
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
897
1678
  type="button"
898
1679
  >
899
1680
  <div
@@ -911,14 +1692,12 @@ exports[`Button - Component Should render with children 1`] = `
911
1692
  </DocumentFragment>
912
1693
  `;
913
1694
 
914
- exports[`Button - Component Should render with customId and testId 1`] = `
1695
+ exports[`Button Should render with customId and testId 1`] = `
915
1696
  <DocumentFragment>
916
1697
  <button
917
1698
  aria-busy="false"
918
- aria-disabled="false"
919
1699
  aria-pressed="false"
920
- aria-readonly="false"
921
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1700
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
922
1701
  data-id="customIdValue"
923
1702
  data-test-id="testIdValue"
924
1703
  type="button"
@@ -932,14 +1711,30 @@ exports[`Button - Component Should render with customId and testId 1`] = `
932
1711
  </DocumentFragment>
933
1712
  `;
934
1713
 
935
- exports[`Button - Component Should render with iconName and iconSize 1`] = `
1714
+ exports[`Button Should render with dataSelectorId 1`] = `
1715
+ <DocumentFragment>
1716
+ <button
1717
+ aria-busy="false"
1718
+ aria-pressed="false"
1719
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1720
+ data-selector-id="selectorId"
1721
+ type="button"
1722
+ >
1723
+ <div
1724
+ class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
1725
+ data-id="flex"
1726
+ data-test-id="flex"
1727
+ />
1728
+ </button>
1729
+ </DocumentFragment>
1730
+ `;
1731
+
1732
+ exports[`Button Should render with iconName and iconSize 1`] = `
936
1733
  <DocumentFragment>
937
1734
  <button
938
1735
  aria-busy="false"
939
- aria-disabled="false"
940
1736
  aria-pressed="false"
941
- aria-readonly="false"
942
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1737
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
943
1738
  type="button"
944
1739
  >
945
1740
  <div
@@ -959,14 +1754,12 @@ exports[`Button - Component Should render with iconName and iconSize 1`] = `
959
1754
  </DocumentFragment>
960
1755
  `;
961
1756
 
962
- exports[`Button - Component Should render with iconPlacement 1`] = `
1757
+ exports[`Button Should render with iconPlacement 1`] = `
963
1758
  <DocumentFragment>
964
1759
  <button
965
1760
  aria-busy="false"
966
- aria-disabled="false"
967
1761
  aria-pressed="false"
968
- aria-readonly="false"
969
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1762
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIconWithText"
970
1763
  type="button"
971
1764
  >
972
1765
  <div
@@ -991,33 +1784,12 @@ exports[`Button - Component Should render with iconPlacement 1`] = `
991
1784
  </DocumentFragment>
992
1785
  `;
993
1786
 
994
- exports[`Button - Component Should render with readOnly style when isReadOnly prop is true 1`] = `
995
- <DocumentFragment>
996
- <button
997
- aria-busy="false"
998
- aria-disabled="false"
999
- aria-pressed="false"
1000
- aria-readonly="true"
1001
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
1002
- type="button"
1003
- >
1004
- <div
1005
- class="d-flex d-flex-row d-items-center d-justify-center d-min-w-0 d-flex-shrink contentWrapper"
1006
- data-id="flex"
1007
- data-test-id="flex"
1008
- />
1009
- </button>
1010
- </DocumentFragment>
1011
- `;
1012
-
1013
- exports[`Button - Component Should render with renderBefore and renderAfter 1`] = `
1787
+ exports[`Button Should render with renderBefore and renderAfter 1`] = `
1014
1788
  <DocumentFragment>
1015
1789
  <button
1016
1790
  aria-busy="false"
1017
- aria-disabled="false"
1018
1791
  aria-pressed="false"
1019
- aria-readonly="false"
1020
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1792
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1021
1793
  type="button"
1022
1794
  >
1023
1795
  <div
@@ -1041,14 +1813,12 @@ exports[`Button - Component Should render with renderBefore and renderAfter 1`]
1041
1813
  </DocumentFragment>
1042
1814
  `;
1043
1815
 
1044
- exports[`Button - Component Should render with renderIcon 1`] = `
1816
+ exports[`Button Should render with renderIcon 1`] = `
1045
1817
  <DocumentFragment>
1046
1818
  <button
1047
1819
  aria-busy="false"
1048
- aria-disabled="false"
1049
1820
  aria-pressed="false"
1050
- aria-readonly="false"
1051
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1821
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantIcon"
1052
1822
  type="button"
1053
1823
  >
1054
1824
  <div
@@ -1064,14 +1834,13 @@ exports[`Button - Component Should render with renderIcon 1`] = `
1064
1834
  </DocumentFragment>
1065
1835
  `;
1066
1836
 
1067
- exports[`Button - Component Should render with renderLoader 1`] = `
1837
+ exports[`Button Should render with renderLoader 1`] = `
1068
1838
  <DocumentFragment>
1069
1839
  <button
1070
1840
  aria-busy="true"
1071
- aria-disabled="true"
1072
1841
  aria-pressed="false"
1073
- aria-readonly="false"
1074
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1842
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText loading"
1843
+ disabled=""
1075
1844
  type="button"
1076
1845
  >
1077
1846
  <div
@@ -1079,21 +1848,25 @@ exports[`Button - Component Should render with renderLoader 1`] = `
1079
1848
  data-id="flex"
1080
1849
  data-test-id="flex"
1081
1850
  />
1082
- <span>
1083
- Loading...
1084
- </span>
1851
+ <div
1852
+ class="d-flex d-flex-row d-items-center d-justify-center loaderOverlay"
1853
+ data-id="flex"
1854
+ data-test-id="flex"
1855
+ >
1856
+ <span>
1857
+ Loading...
1858
+ </span>
1859
+ </div>
1085
1860
  </button>
1086
1861
  </DocumentFragment>
1087
1862
  `;
1088
1863
 
1089
- exports[`Button - Component Should render with renderSuccess 1`] = `
1864
+ exports[`Button Should render with renderSuccess 1`] = `
1090
1865
  <DocumentFragment>
1091
1866
  <button
1092
1867
  aria-busy="false"
1093
- aria-disabled="false"
1094
1868
  aria-pressed="false"
1095
- aria-readonly="false"
1096
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1869
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1097
1870
  type="button"
1098
1871
  >
1099
1872
  <div
@@ -1101,21 +1874,25 @@ exports[`Button - Component Should render with renderSuccess 1`] = `
1101
1874
  data-id="flex"
1102
1875
  data-test-id="flex"
1103
1876
  />
1104
- <span>
1105
- Success!
1106
- </span>
1877
+ <div
1878
+ class="d-flex d-flex-row d-items-center d-justify-center successOverlay"
1879
+ data-id="flex"
1880
+ data-test-id="flex"
1881
+ >
1882
+ <span>
1883
+ Success!
1884
+ </span>
1885
+ </div>
1107
1886
  </button>
1108
1887
  </DocumentFragment>
1109
1888
  `;
1110
1889
 
1111
- exports[`Button - Component Should render with selected style when isSelected prop is true 1`] = `
1890
+ exports[`Button Should render with selected style when isSelected prop is true 1`] = `
1112
1891
  <DocumentFragment>
1113
1892
  <button
1114
1893
  aria-busy="false"
1115
- aria-disabled="false"
1116
1894
  aria-pressed="true"
1117
- aria-readonly="false"
1118
- class="buttonReset button sizeMedium shapeRoundedRectangle"
1895
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1119
1896
  type="button"
1120
1897
  >
1121
1898
  <div
@@ -1127,14 +1904,12 @@ exports[`Button - Component Should render with selected style when isSelected pr
1127
1904
  </DocumentFragment>
1128
1905
  `;
1129
1906
 
1130
- exports[`Button - Component Should render with the basic set of default props 1`] = `
1907
+ exports[`Button Should render with the basic set of default props 1`] = `
1131
1908
  <DocumentFragment>
1132
1909
  <button
1133
1910
  aria-busy="false"
1134
- aria-disabled="false"
1135
1911
  aria-pressed="false"
1136
- aria-readonly="false"
1137
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1912
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1138
1913
  type="button"
1139
1914
  >
1140
1915
  <div
@@ -1146,14 +1921,12 @@ exports[`Button - Component Should render with the basic set of default props 1`
1146
1921
  </DocumentFragment>
1147
1922
  `;
1148
1923
 
1149
- exports[`Button - Component Should render with title attribute 1`] = `
1924
+ exports[`Button Should render with title attribute 1`] = `
1150
1925
  <DocumentFragment>
1151
1926
  <button
1152
1927
  aria-busy="false"
1153
- aria-disabled="false"
1154
1928
  aria-pressed="false"
1155
- aria-readonly="false"
1156
- class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1929
+ class="buttonReset button border-transparent sizeMedium shapeRoundedRectangle variantText"
1157
1930
  data-title="Button test title"
1158
1931
  type="button"
1159
1932
  >