@zohodesk/components 1.6.8 → 1.6.11

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 (107) hide show
  1. package/README.md +7 -0
  2. package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +68 -0
  3. package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +68 -0
  4. package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +68 -0
  5. package/es/Buttongroup/Buttongroup.module.css +10 -30
  6. package/es/CheckBox/CheckBox.module.css +3 -10
  7. package/es/DateTime/DateTime.module.css +22 -35
  8. package/es/DateTime/YearView.module.css +8 -10
  9. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +3 -2
  10. package/es/DropDown/DropDown.module.css +2 -1
  11. package/es/DropDown/DropDownItem.module.css +1 -8
  12. package/es/DropDown/DropDownSeparator.module.css +2 -1
  13. package/es/ListItem/ListItem.module.css +4 -15
  14. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +3 -2
  15. package/es/MultiSelect/MultiSelect.module.css +21 -34
  16. package/es/MultiSelect/SelectedOptions.module.css +6 -10
  17. package/es/Radio/Radio.module.css +3 -3
  18. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
  19. package/es/Ribbon/Ribbon.module.css +9 -12
  20. package/es/Select/Select.module.css +22 -17
  21. package/es/Switch/Switch.module.css +1 -8
  22. package/es/Tab/Tab.module.css +8 -15
  23. package/es/Tab/Tabs.module.css +12 -22
  24. package/es/Tag/Tag.module.css +4 -3
  25. package/es/Tooltip/Tooltip.module.css +3 -2
  26. package/es/shared/ArrowIcon/ArrowIcon.module.css +3 -2
  27. package/es/v1/Button/Button.js +201 -0
  28. package/es/v1/Button/README.md +110 -0
  29. package/es/v1/Button/__tests__/Button.spec.js +272 -0
  30. package/es/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
  31. package/es/v1/Button/_shared/Loader/Loader.js +33 -0
  32. package/es/v1/Button/_shared/Loader/Loader.module.css +42 -0
  33. package/es/v1/Button/_shared/Loader/__tests__/Loader.spec.js +21 -0
  34. package/es/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
  35. package/es/v1/Button/_shared/Loader/props/defaultProps.js +4 -0
  36. package/es/v1/Button/_shared/Loader/props/propTypes.js +7 -0
  37. package/es/v1/Button/_shared/SuccessTick/SuccessTick.js +25 -0
  38. package/es/v1/Button/_shared/SuccessTick/SuccessTick.module.css +21 -0
  39. package/es/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +21 -0
  40. package/es/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
  41. package/es/v1/Button/_shared/SuccessTick/props/defaultProps.js +4 -0
  42. package/es/v1/Button/_shared/SuccessTick/props/propTypes.js +7 -0
  43. package/es/v1/Button/constants/index.js +82 -0
  44. package/es/v1/Button/css/Button_v1.module.css +119 -0
  45. package/es/v1/Button/css/cssJSLogic.js +96 -0
  46. package/es/v1/Button/index.js +2 -0
  47. package/es/v1/Button/props/defaultProps.js +26 -0
  48. package/es/v1/Button/props/propTypes.js +43 -0
  49. package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
  50. package/es/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
  51. package/es/v1/helpers/colorHelpers/colorHelper.js +176 -0
  52. package/es/v1/helpers/colorHelpers/constants/index.js +79 -0
  53. package/es/v1/helpers/colorHelpers/index.js +4 -0
  54. package/es/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
  55. package/es/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
  56. package/lib/Buttongroup/Buttongroup.module.css +10 -30
  57. package/lib/CheckBox/CheckBox.module.css +3 -10
  58. package/lib/DateTime/DateTime.module.css +22 -35
  59. package/lib/DateTime/YearView.module.css +8 -10
  60. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +3 -2
  61. package/lib/DropDown/DropDown.module.css +2 -1
  62. package/lib/DropDown/DropDownItem.module.css +1 -8
  63. package/lib/DropDown/DropDownSeparator.module.css +2 -1
  64. package/lib/ListItem/ListItem.module.css +4 -15
  65. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +3 -2
  66. package/lib/MultiSelect/MultiSelect.module.css +21 -34
  67. package/lib/MultiSelect/SelectedOptions.module.css +6 -10
  68. package/lib/Radio/Radio.module.css +3 -3
  69. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +1 -1
  70. package/lib/Ribbon/Ribbon.module.css +9 -12
  71. package/lib/Select/Select.module.css +22 -17
  72. package/lib/Switch/Switch.module.css +1 -8
  73. package/lib/Tab/Tab.module.css +8 -15
  74. package/lib/Tab/Tabs.module.css +12 -22
  75. package/lib/Tag/Tag.module.css +4 -3
  76. package/lib/Tooltip/Tooltip.module.css +3 -2
  77. package/lib/shared/ArrowIcon/ArrowIcon.module.css +3 -2
  78. package/lib/v1/Button/Button.js +239 -0
  79. package/lib/v1/Button/README.md +110 -0
  80. package/lib/v1/Button/__tests__/Button.spec.js +293 -0
  81. package/lib/v1/Button/__tests__/__snapshots__/Button.spec.js.snap +1160 -0
  82. package/lib/v1/Button/_shared/Loader/Loader.js +43 -0
  83. package/lib/v1/Button/_shared/Loader/Loader.module.css +42 -0
  84. package/lib/v1/Button/_shared/Loader/__tests__/Loader.spec.js +28 -0
  85. package/lib/v1/Button/_shared/Loader/__tests__/__snapshots__/Loader.spec.js.snap +49 -0
  86. package/lib/v1/Button/_shared/Loader/props/defaultProps.js +11 -0
  87. package/lib/v1/Button/_shared/Loader/props/propTypes.js +18 -0
  88. package/lib/v1/Button/_shared/SuccessTick/SuccessTick.js +35 -0
  89. package/lib/v1/Button/_shared/SuccessTick/SuccessTick.module.css +21 -0
  90. package/lib/v1/Button/_shared/SuccessTick/__tests__/SuccessTick.spec.js +28 -0
  91. package/lib/v1/Button/_shared/SuccessTick/__tests__/__snapshots__/SuccessTick.spec.js.snap +31 -0
  92. package/lib/v1/Button/_shared/SuccessTick/props/defaultProps.js +11 -0
  93. package/lib/v1/Button/_shared/SuccessTick/props/propTypes.js +18 -0
  94. package/lib/v1/Button/constants/index.js +114 -0
  95. package/lib/v1/Button/css/Button_v1.module.css +119 -0
  96. package/lib/v1/Button/css/cssJSLogic.js +88 -0
  97. package/lib/v1/Button/index.js +21 -0
  98. package/lib/v1/Button/props/defaultProps.js +36 -0
  99. package/lib/v1/Button/props/propTypes.js +56 -0
  100. package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +629 -0
  101. package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +489 -0
  102. package/lib/v1/helpers/colorHelpers/colorHelper.js +190 -0
  103. package/lib/v1/helpers/colorHelpers/constants/index.js +87 -0
  104. package/lib/v1/helpers/colorHelpers/index.js +57 -0
  105. package/lib/v1/helpers/colorHelpers/paletteUtilities.README.md +415 -0
  106. package/lib/v1/helpers/colorHelpers/text/textColor.module.css +368 -0
  107. package/package.json +4 -4
@@ -0,0 +1,1160 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Button - Component Should apply a11yAttributes to the button 1`] = `
4
+ <DocumentFragment>
5
+ <button
6
+ aria-busy="false"
7
+ aria-describedby="button-description"
8
+ aria-disabled="false"
9
+ aria-label="Smart Button"
10
+ aria-pressed="false"
11
+ aria-readonly="false"
12
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
13
+ type="button"
14
+ >
15
+ <div
16
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
17
+ data-id="flex"
18
+ data-test-id="flex"
19
+ >
20
+ <div
21
+ class="dotted size13"
22
+ >
23
+ Button
24
+ </div>
25
+ </div>
26
+ </button>
27
+ </DocumentFragment>
28
+ `;
29
+
30
+ exports[`Button - Component Should apply customClass to wrapper and text 1`] = `
31
+ <DocumentFragment>
32
+ <button
33
+ aria-busy="false"
34
+ aria-disabled="false"
35
+ aria-pressed="false"
36
+ aria-readonly="false"
37
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle customButtonClass"
38
+ type="button"
39
+ >
40
+ <div
41
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
42
+ data-id="flex"
43
+ data-test-id="flex"
44
+ >
45
+ <div
46
+ class="dotted size13 customTextClass"
47
+ >
48
+ Button
49
+ </div>
50
+ </div>
51
+ </button>
52
+ </DocumentFragment>
53
+ `;
54
+
55
+ exports[`Button - Component Should apply customProps to wrapper, text and icon 1`] = `
56
+ <DocumentFragment>
57
+ <button
58
+ aria-busy="false"
59
+ aria-disabled="false"
60
+ aria-pressed="false"
61
+ aria-readonly="false"
62
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
63
+ type="button"
64
+ >
65
+ <div
66
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
67
+ data-id="flex"
68
+ data-test-id="flex"
69
+ >
70
+ <div
71
+ class="dotted size13"
72
+ >
73
+ Button
74
+ </div>
75
+ </div>
76
+ </button>
77
+ </DocumentFragment>
78
+ `;
79
+
80
+ exports[`Button - Component Should be disabled when isDisabled prop is true 1`] = `
81
+ <DocumentFragment>
82
+ <button
83
+ aria-busy="false"
84
+ aria-disabled="true"
85
+ aria-pressed="false"
86
+ aria-readonly="false"
87
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
88
+ type="button"
89
+ >
90
+ <div
91
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
92
+ data-id="flex"
93
+ data-test-id="flex"
94
+ />
95
+ </button>
96
+ </DocumentFragment>
97
+ `;
98
+
99
+ exports[`Button - Component Should render Sizes of buttons - full 1`] = `
100
+ <DocumentFragment>
101
+ <button
102
+ aria-busy="false"
103
+ aria-disabled="false"
104
+ aria-pressed="false"
105
+ aria-readonly="false"
106
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeFull shapeRoundedRectangle"
107
+ type="button"
108
+ >
109
+ <div
110
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
111
+ data-id="flex"
112
+ data-test-id="flex"
113
+ />
114
+ </button>
115
+ </DocumentFragment>
116
+ `;
117
+
118
+ exports[`Button - Component Should render Sizes of buttons - large 1`] = `
119
+ <DocumentFragment>
120
+ <button
121
+ aria-busy="false"
122
+ aria-disabled="false"
123
+ aria-pressed="false"
124
+ aria-readonly="false"
125
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeLarge shapeRoundedRectangle"
126
+ type="button"
127
+ >
128
+ <div
129
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
130
+ data-id="flex"
131
+ data-test-id="flex"
132
+ />
133
+ </button>
134
+ </DocumentFragment>
135
+ `;
136
+
137
+ exports[`Button - Component Should render Sizes of buttons - medium 1`] = `
138
+ <DocumentFragment>
139
+ <button
140
+ aria-busy="false"
141
+ aria-disabled="false"
142
+ aria-pressed="false"
143
+ aria-readonly="false"
144
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
145
+ type="button"
146
+ >
147
+ <div
148
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
149
+ data-id="flex"
150
+ data-test-id="flex"
151
+ />
152
+ </button>
153
+ </DocumentFragment>
154
+ `;
155
+
156
+ exports[`Button - Component Should render Sizes of buttons - small 1`] = `
157
+ <DocumentFragment>
158
+ <button
159
+ aria-busy="false"
160
+ aria-disabled="false"
161
+ aria-pressed="false"
162
+ aria-readonly="false"
163
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeSmall shapeRoundedRectangle"
164
+ type="button"
165
+ >
166
+ <div
167
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
168
+ data-id="flex"
169
+ data-test-id="flex"
170
+ />
171
+ </button>
172
+ </DocumentFragment>
173
+ `;
174
+
175
+ exports[`Button - Component Should render Status of buttons - default 1`] = `
176
+ <DocumentFragment>
177
+ <button
178
+ aria-busy="false"
179
+ aria-disabled="false"
180
+ aria-pressed="false"
181
+ aria-readonly="false"
182
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
183
+ type="button"
184
+ >
185
+ <div
186
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
187
+ data-id="flex"
188
+ data-test-id="flex"
189
+ />
190
+ </button>
191
+ </DocumentFragment>
192
+ `;
193
+
194
+ exports[`Button - Component Should render Status of buttons - loading 1`] = `
195
+ <DocumentFragment>
196
+ <button
197
+ aria-busy="true"
198
+ aria-disabled="true"
199
+ aria-pressed="false"
200
+ aria-readonly="false"
201
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
202
+ type="button"
203
+ >
204
+ <div
205
+ class="flex row alignItems_center justifyContent_center shrink overlayHidden"
206
+ data-id="flex"
207
+ data-test-id="flex"
208
+ />
209
+ <div
210
+ class="flex row alignItems_center justifyContent_center loaderOverlay"
211
+ data-id="flex"
212
+ data-test-id="flex"
213
+ >
214
+ <svg
215
+ aria-hidden="true"
216
+ class="spinner "
217
+ role="img"
218
+ viewBox="0 0 24 24"
219
+ >
220
+ <circle
221
+ class="spinnerTrack"
222
+ cx="12"
223
+ cy="12"
224
+ r="10"
225
+ />
226
+ <circle
227
+ class="spinnerHead"
228
+ cx="12"
229
+ cy="12"
230
+ r="10"
231
+ />
232
+ </svg>
233
+ </div>
234
+ </button>
235
+ </DocumentFragment>
236
+ `;
237
+
238
+ exports[`Button - Component Should render Status of buttons - success 1`] = `
239
+ <DocumentFragment>
240
+ <button
241
+ aria-busy="false"
242
+ aria-disabled="false"
243
+ aria-pressed="false"
244
+ aria-readonly="false"
245
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
246
+ type="button"
247
+ >
248
+ <div
249
+ class="flex row alignItems_center justifyContent_center shrink overlayHidden"
250
+ data-id="flex"
251
+ data-test-id="flex"
252
+ />
253
+ <div
254
+ class="flex row alignItems_center justifyContent_center successOverlay"
255
+ data-id="flex"
256
+ data-test-id="flex"
257
+ >
258
+ <svg
259
+ aria-hidden="true"
260
+ class="tick "
261
+ role="img"
262
+ viewBox="0 0 24 24"
263
+ >
264
+ <path
265
+ d="M4 12l5 5L20 6"
266
+ />
267
+ </svg>
268
+ </div>
269
+ </button>
270
+ </DocumentFragment>
271
+ `;
272
+
273
+ exports[`Button - Component Should render bgAppearance of buttons - default 1`] = `
274
+ <DocumentFragment>
275
+ <button
276
+ aria-busy="false"
277
+ aria-disabled="false"
278
+ aria-pressed="false"
279
+ aria-readonly="false"
280
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
281
+ type="button"
282
+ >
283
+ <div
284
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
285
+ data-id="flex"
286
+ data-test-id="flex"
287
+ />
288
+ </button>
289
+ </DocumentFragment>
290
+ `;
291
+
292
+ exports[`Button - Component Should render bgAppearance of buttons - none 1`] = `
293
+ <DocumentFragment>
294
+ <button
295
+ aria-busy="false"
296
+ aria-disabled="false"
297
+ aria-pressed="false"
298
+ aria-readonly="false"
299
+ class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
300
+ type="button"
301
+ >
302
+ <div
303
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
304
+ data-id="flex"
305
+ data-test-id="flex"
306
+ />
307
+ </button>
308
+ </DocumentFragment>
309
+ `;
310
+
311
+ exports[`Button - Component Should render bgAppearance of buttons - onHover 1`] = `
312
+ <DocumentFragment>
313
+ <button
314
+ aria-busy="false"
315
+ aria-disabled="false"
316
+ aria-pressed="false"
317
+ aria-readonly="false"
318
+ class="buttonReset button text-brand-80 border-brand-80 sizeMedium shapeRoundedRectangle"
319
+ type="button"
320
+ >
321
+ <div
322
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
323
+ data-id="flex"
324
+ data-test-id="flex"
325
+ />
326
+ </button>
327
+ </DocumentFragment>
328
+ `;
329
+
330
+ exports[`Button - Component Should render borderAppearance of buttons - default 1`] = `
331
+ <DocumentFragment>
332
+ <button
333
+ aria-busy="false"
334
+ aria-disabled="false"
335
+ aria-pressed="false"
336
+ aria-readonly="false"
337
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
338
+ type="button"
339
+ >
340
+ <div
341
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
342
+ data-id="flex"
343
+ data-test-id="flex"
344
+ />
345
+ </button>
346
+ </DocumentFragment>
347
+ `;
348
+
349
+ exports[`Button - Component Should render borderAppearance of buttons - none 1`] = `
350
+ <DocumentFragment>
351
+ <button
352
+ aria-busy="false"
353
+ aria-disabled="false"
354
+ aria-pressed="false"
355
+ aria-readonly="false"
356
+ class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
357
+ type="button"
358
+ >
359
+ <div
360
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
361
+ data-id="flex"
362
+ data-test-id="flex"
363
+ />
364
+ </button>
365
+ </DocumentFragment>
366
+ `;
367
+
368
+ exports[`Button - Component Should render borderAppearance of buttons - onHover 1`] = `
369
+ <DocumentFragment>
370
+ <button
371
+ aria-busy="false"
372
+ aria-disabled="false"
373
+ aria-pressed="false"
374
+ aria-readonly="false"
375
+ class="buttonReset button bg-brand-80 text-brand-filled border-transparent sizeMedium shapeRoundedRectangle"
376
+ type="button"
377
+ >
378
+ <div
379
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
380
+ data-id="flex"
381
+ data-test-id="flex"
382
+ />
383
+ </button>
384
+ </DocumentFragment>
385
+ `;
386
+
387
+ exports[`Button - Component Should render disabledAppearance of buttons - dull 1`] = `
388
+ <DocumentFragment>
389
+ <button
390
+ aria-busy="false"
391
+ aria-disabled="true"
392
+ aria-pressed="false"
393
+ aria-readonly="false"
394
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
395
+ type="button"
396
+ >
397
+ <div
398
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
399
+ data-id="flex"
400
+ data-test-id="flex"
401
+ />
402
+ </button>
403
+ </DocumentFragment>
404
+ `;
405
+
406
+ exports[`Button - Component Should render disabledAppearance of buttons - none 1`] = `
407
+ <DocumentFragment>
408
+ <button
409
+ aria-busy="false"
410
+ aria-disabled="true"
411
+ aria-pressed="false"
412
+ aria-readonly="false"
413
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer"
414
+ type="button"
415
+ >
416
+ <div
417
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
418
+ data-id="flex"
419
+ data-test-id="flex"
420
+ />
421
+ </button>
422
+ </DocumentFragment>
423
+ `;
424
+
425
+ exports[`Button - Component Should render disabledAppearance of buttons - strike 1`] = `
426
+ <DocumentFragment>
427
+ <button
428
+ aria-busy="false"
429
+ aria-disabled="true"
430
+ aria-pressed="false"
431
+ aria-readonly="false"
432
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledPointer strike"
433
+ type="button"
434
+ >
435
+ <div
436
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
437
+ data-id="flex"
438
+ data-test-id="flex"
439
+ />
440
+ </button>
441
+ </DocumentFragment>
442
+ `;
443
+
444
+ exports[`Button - Component Should render loaderPlacement of buttons - end 1`] = `
445
+ <DocumentFragment>
446
+ <button
447
+ aria-busy="true"
448
+ aria-disabled="true"
449
+ aria-pressed="false"
450
+ aria-readonly="false"
451
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
452
+ type="button"
453
+ >
454
+ <div
455
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
456
+ data-id="flex"
457
+ data-test-id="flex"
458
+ >
459
+ <div
460
+ class="flex row alignItems_center justifyContent_center"
461
+ data-id="flex"
462
+ data-test-id="flex"
463
+ >
464
+ <svg
465
+ aria-hidden="true"
466
+ class="spinner "
467
+ role="img"
468
+ viewBox="0 0 24 24"
469
+ >
470
+ <circle
471
+ class="spinnerTrack"
472
+ cx="12"
473
+ cy="12"
474
+ r="10"
475
+ />
476
+ <circle
477
+ class="spinnerHead"
478
+ cx="12"
479
+ cy="12"
480
+ r="10"
481
+ />
482
+ </svg>
483
+ </div>
484
+ </div>
485
+ </button>
486
+ </DocumentFragment>
487
+ `;
488
+
489
+ exports[`Button - Component Should render loaderPlacement of buttons - overlay 1`] = `
490
+ <DocumentFragment>
491
+ <button
492
+ aria-busy="true"
493
+ aria-disabled="true"
494
+ aria-pressed="false"
495
+ aria-readonly="false"
496
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
497
+ type="button"
498
+ >
499
+ <div
500
+ class="flex row alignItems_center justifyContent_center shrink overlayHidden"
501
+ data-id="flex"
502
+ data-test-id="flex"
503
+ />
504
+ <div
505
+ class="flex row alignItems_center justifyContent_center loaderOverlay"
506
+ data-id="flex"
507
+ data-test-id="flex"
508
+ >
509
+ <svg
510
+ aria-hidden="true"
511
+ class="spinner "
512
+ role="img"
513
+ viewBox="0 0 24 24"
514
+ >
515
+ <circle
516
+ class="spinnerTrack"
517
+ cx="12"
518
+ cy="12"
519
+ r="10"
520
+ />
521
+ <circle
522
+ class="spinnerHead"
523
+ cx="12"
524
+ cy="12"
525
+ r="10"
526
+ />
527
+ </svg>
528
+ </div>
529
+ </button>
530
+ </DocumentFragment>
531
+ `;
532
+
533
+ exports[`Button - Component Should render loaderPlacement of buttons - start 1`] = `
534
+ <DocumentFragment>
535
+ <button
536
+ aria-busy="true"
537
+ aria-disabled="true"
538
+ aria-pressed="false"
539
+ aria-readonly="false"
540
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
541
+ type="button"
542
+ >
543
+ <div
544
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
545
+ data-id="flex"
546
+ data-test-id="flex"
547
+ >
548
+ <div
549
+ class="flex row alignItems_center justifyContent_center"
550
+ data-id="flex"
551
+ data-test-id="flex"
552
+ >
553
+ <svg
554
+ aria-hidden="true"
555
+ class="spinner "
556
+ role="img"
557
+ viewBox="0 0 24 24"
558
+ >
559
+ <circle
560
+ class="spinnerTrack"
561
+ cx="12"
562
+ cy="12"
563
+ r="10"
564
+ />
565
+ <circle
566
+ class="spinnerHead"
567
+ cx="12"
568
+ cy="12"
569
+ r="10"
570
+ />
571
+ </svg>
572
+ </div>
573
+ </div>
574
+ </button>
575
+ </DocumentFragment>
576
+ `;
577
+
578
+ exports[`Button - Component Should render palette of buttons - danger 1`] = `
579
+ <DocumentFragment>
580
+ <button
581
+ aria-busy="false"
582
+ aria-disabled="false"
583
+ aria-pressed="false"
584
+ aria-readonly="false"
585
+ class="buttonReset button bg-red-70 text-white border-red-70 sizeMedium shapeRoundedRectangle"
586
+ type="button"
587
+ >
588
+ <div
589
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
590
+ data-id="flex"
591
+ data-test-id="flex"
592
+ />
593
+ </button>
594
+ </DocumentFragment>
595
+ `;
596
+
597
+ exports[`Button - Component Should render palette of buttons - default 1`] = `
598
+ <DocumentFragment>
599
+ <button
600
+ aria-busy="false"
601
+ aria-disabled="false"
602
+ aria-pressed="false"
603
+ aria-readonly="false"
604
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
605
+ type="button"
606
+ >
607
+ <div
608
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
609
+ data-id="flex"
610
+ data-test-id="flex"
611
+ />
612
+ </button>
613
+ </DocumentFragment>
614
+ `;
615
+
616
+ exports[`Button - Component Should render palette of buttons - primary 1`] = `
617
+ <DocumentFragment>
618
+ <button
619
+ aria-busy="false"
620
+ aria-disabled="false"
621
+ aria-pressed="false"
622
+ aria-readonly="false"
623
+ class="buttonReset button bg-blue-80 text-white border-blue-80 sizeMedium shapeRoundedRectangle"
624
+ type="button"
625
+ >
626
+ <div
627
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
628
+ data-id="flex"
629
+ data-test-id="flex"
630
+ />
631
+ </button>
632
+ </DocumentFragment>
633
+ `;
634
+
635
+ exports[`Button - Component Should render palette of buttons - secondary 1`] = `
636
+ <DocumentFragment>
637
+ <button
638
+ aria-busy="false"
639
+ aria-disabled="false"
640
+ aria-pressed="false"
641
+ aria-readonly="false"
642
+ class="buttonReset button bg-grey-65 text-white border-grey-65 sizeMedium shapeRoundedRectangle"
643
+ type="button"
644
+ >
645
+ <div
646
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
647
+ data-id="flex"
648
+ data-test-id="flex"
649
+ />
650
+ </button>
651
+ </DocumentFragment>
652
+ `;
653
+
654
+ exports[`Button - Component Should render palette of buttons - success 1`] = `
655
+ <DocumentFragment>
656
+ <button
657
+ aria-busy="false"
658
+ aria-disabled="false"
659
+ aria-pressed="false"
660
+ aria-readonly="false"
661
+ class="buttonReset button bg-green-80 text-white border-green-80 sizeMedium shapeRoundedRectangle"
662
+ type="button"
663
+ >
664
+ <div
665
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
666
+ data-id="flex"
667
+ data-test-id="flex"
668
+ />
669
+ </button>
670
+ </DocumentFragment>
671
+ `;
672
+
673
+ exports[`Button - Component Should render paletteShade of buttons - default 1`] = `
674
+ <DocumentFragment>
675
+ <button
676
+ aria-busy="false"
677
+ aria-disabled="false"
678
+ aria-pressed="false"
679
+ aria-readonly="false"
680
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
681
+ type="button"
682
+ >
683
+ <div
684
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
685
+ data-id="flex"
686
+ data-test-id="flex"
687
+ />
688
+ </button>
689
+ </DocumentFragment>
690
+ `;
691
+
692
+ exports[`Button - Component Should render paletteShade of buttons - lighter 1`] = `
693
+ <DocumentFragment>
694
+ <button
695
+ aria-busy="false"
696
+ aria-disabled="false"
697
+ aria-pressed="false"
698
+ aria-readonly="false"
699
+ class="buttonReset button bg-brand-10 text-brand-80 border-brand-10 sizeMedium shapeRoundedRectangle"
700
+ type="button"
701
+ >
702
+ <div
703
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
704
+ data-id="flex"
705
+ data-test-id="flex"
706
+ />
707
+ </button>
708
+ </DocumentFragment>
709
+ `;
710
+
711
+ exports[`Button - Component Should render shape of buttons - pill 1`] = `
712
+ <DocumentFragment>
713
+ <button
714
+ aria-busy="false"
715
+ aria-disabled="false"
716
+ aria-pressed="false"
717
+ aria-readonly="false"
718
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapePill"
719
+ type="button"
720
+ >
721
+ <div
722
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
723
+ data-id="flex"
724
+ data-test-id="flex"
725
+ />
726
+ </button>
727
+ </DocumentFragment>
728
+ `;
729
+
730
+ exports[`Button - Component Should render shape of buttons - rectangle 1`] = `
731
+ <DocumentFragment>
732
+ <button
733
+ aria-busy="false"
734
+ aria-disabled="false"
735
+ aria-pressed="false"
736
+ aria-readonly="false"
737
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRectangle"
738
+ type="button"
739
+ >
740
+ <div
741
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
742
+ data-id="flex"
743
+ data-test-id="flex"
744
+ />
745
+ </button>
746
+ </DocumentFragment>
747
+ `;
748
+
749
+ exports[`Button - Component Should render shape of buttons - roundedRectangle 1`] = `
750
+ <DocumentFragment>
751
+ <button
752
+ aria-busy="false"
753
+ aria-disabled="false"
754
+ aria-pressed="false"
755
+ aria-readonly="false"
756
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
757
+ type="button"
758
+ >
759
+ <div
760
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
761
+ data-id="flex"
762
+ data-test-id="flex"
763
+ />
764
+ </button>
765
+ </DocumentFragment>
766
+ `;
767
+
768
+ exports[`Button - Component Should render type of buttons - button 1`] = `
769
+ <DocumentFragment>
770
+ <button
771
+ aria-busy="false"
772
+ aria-disabled="false"
773
+ aria-pressed="false"
774
+ aria-readonly="false"
775
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
776
+ type="button"
777
+ >
778
+ <div
779
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
780
+ data-id="flex"
781
+ data-test-id="flex"
782
+ />
783
+ </button>
784
+ </DocumentFragment>
785
+ `;
786
+
787
+ exports[`Button - Component Should render type of buttons - reset 1`] = `
788
+ <DocumentFragment>
789
+ <button
790
+ aria-busy="false"
791
+ aria-disabled="false"
792
+ aria-pressed="false"
793
+ aria-readonly="false"
794
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
795
+ type="reset"
796
+ >
797
+ <div
798
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
799
+ data-id="flex"
800
+ data-test-id="flex"
801
+ />
802
+ </button>
803
+ </DocumentFragment>
804
+ `;
805
+
806
+ exports[`Button - Component Should render type of buttons - submit 1`] = `
807
+ <DocumentFragment>
808
+ <button
809
+ aria-busy="false"
810
+ aria-disabled="false"
811
+ aria-pressed="false"
812
+ aria-readonly="false"
813
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
814
+ type="submit"
815
+ >
816
+ <div
817
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
818
+ data-id="flex"
819
+ data-test-id="flex"
820
+ />
821
+ </button>
822
+ </DocumentFragment>
823
+ `;
824
+
825
+ exports[`Button - Component Should render variant of buttons - icon 1`] = `
826
+ <DocumentFragment>
827
+ <button
828
+ aria-busy="false"
829
+ aria-disabled="false"
830
+ aria-pressed="false"
831
+ aria-readonly="false"
832
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
833
+ type="button"
834
+ >
835
+ <div
836
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
837
+ data-id="flex"
838
+ data-test-id="flex"
839
+ />
840
+ </button>
841
+ </DocumentFragment>
842
+ `;
843
+
844
+ exports[`Button - Component Should render variant of buttons - iconWithText 1`] = `
845
+ <DocumentFragment>
846
+ <button
847
+ aria-busy="false"
848
+ aria-disabled="false"
849
+ aria-pressed="false"
850
+ aria-readonly="false"
851
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
852
+ type="button"
853
+ >
854
+ <div
855
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
856
+ data-id="flex"
857
+ data-test-id="flex"
858
+ />
859
+ </button>
860
+ </DocumentFragment>
861
+ `;
862
+
863
+ exports[`Button - Component Should render variant of buttons - text 1`] = `
864
+ <DocumentFragment>
865
+ <button
866
+ aria-busy="false"
867
+ aria-disabled="false"
868
+ aria-pressed="false"
869
+ aria-readonly="false"
870
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
871
+ type="button"
872
+ >
873
+ <div
874
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
875
+ data-id="flex"
876
+ data-test-id="flex"
877
+ />
878
+ </button>
879
+ </DocumentFragment>
880
+ `;
881
+
882
+ exports[`Button - Component Should render with children 1`] = `
883
+ <DocumentFragment>
884
+ <button
885
+ aria-busy="false"
886
+ aria-disabled="false"
887
+ aria-pressed="false"
888
+ aria-readonly="false"
889
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
890
+ type="button"
891
+ >
892
+ <div
893
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
894
+ data-id="flex"
895
+ data-test-id="flex"
896
+ >
897
+ <div
898
+ class="dotted size13"
899
+ >
900
+ Click Me
901
+ </div>
902
+ </div>
903
+ </button>
904
+ </DocumentFragment>
905
+ `;
906
+
907
+ exports[`Button - Component Should render with customId and testId 1`] = `
908
+ <DocumentFragment>
909
+ <button
910
+ aria-busy="false"
911
+ aria-disabled="false"
912
+ aria-pressed="false"
913
+ aria-readonly="false"
914
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
915
+ data-id="customIdValue"
916
+ data-test-id="testIdValue"
917
+ type="button"
918
+ >
919
+ <div
920
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
921
+ data-id="flex"
922
+ data-test-id="flex"
923
+ />
924
+ </button>
925
+ </DocumentFragment>
926
+ `;
927
+
928
+ exports[`Button - Component Should render with iconName and iconSize 1`] = `
929
+ <DocumentFragment>
930
+ <button
931
+ aria-busy="false"
932
+ aria-disabled="false"
933
+ aria-pressed="false"
934
+ aria-readonly="false"
935
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
936
+ type="button"
937
+ >
938
+ <div
939
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
940
+ data-id="flex"
941
+ data-test-id="flex"
942
+ >
943
+ <i
944
+ aria-hidden="true"
945
+ class="zd_font_icons basic icon-plus "
946
+ data-id="fontIcon"
947
+ data-selector-id="fontIcon"
948
+ style="--zd-iconfont-size: var(--zd_font_size20);"
949
+ />
950
+ </div>
951
+ </button>
952
+ </DocumentFragment>
953
+ `;
954
+
955
+ exports[`Button - Component Should render with iconPlacement 1`] = `
956
+ <DocumentFragment>
957
+ <button
958
+ aria-busy="false"
959
+ aria-disabled="false"
960
+ aria-pressed="false"
961
+ aria-readonly="false"
962
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
963
+ type="button"
964
+ >
965
+ <div
966
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
967
+ data-id="flex"
968
+ data-test-id="flex"
969
+ >
970
+ <div
971
+ class="dotted size13"
972
+ >
973
+ Button
974
+ </div>
975
+ <i
976
+ aria-hidden="true"
977
+ class="zd_font_icons basic icon-plus "
978
+ data-id="fontIcon"
979
+ data-selector-id="fontIcon"
980
+ style="--zd-iconfont-size: var(--zd_font_size16);"
981
+ />
982
+ </div>
983
+ </button>
984
+ </DocumentFragment>
985
+ `;
986
+
987
+ exports[`Button - Component Should render with readOnly style when isReadOnly prop is true 1`] = `
988
+ <DocumentFragment>
989
+ <button
990
+ aria-busy="false"
991
+ aria-disabled="false"
992
+ aria-pressed="false"
993
+ aria-readonly="true"
994
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle disabledOpac disabledPointer"
995
+ type="button"
996
+ >
997
+ <div
998
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
999
+ data-id="flex"
1000
+ data-test-id="flex"
1001
+ />
1002
+ </button>
1003
+ </DocumentFragment>
1004
+ `;
1005
+
1006
+ exports[`Button - Component Should render with renderBefore and renderAfter 1`] = `
1007
+ <DocumentFragment>
1008
+ <button
1009
+ aria-busy="false"
1010
+ aria-disabled="false"
1011
+ aria-pressed="false"
1012
+ aria-readonly="false"
1013
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1014
+ type="button"
1015
+ >
1016
+ <div
1017
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
1018
+ data-id="flex"
1019
+ data-test-id="flex"
1020
+ >
1021
+ <span>
1022
+ Before
1023
+ </span>
1024
+ <div
1025
+ class="dotted size13"
1026
+ >
1027
+ Button
1028
+ </div>
1029
+ <span>
1030
+ After
1031
+ </span>
1032
+ </div>
1033
+ </button>
1034
+ </DocumentFragment>
1035
+ `;
1036
+
1037
+ exports[`Button - Component Should render with renderIcon 1`] = `
1038
+ <DocumentFragment>
1039
+ <button
1040
+ aria-busy="false"
1041
+ aria-disabled="false"
1042
+ aria-pressed="false"
1043
+ aria-readonly="false"
1044
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1045
+ type="button"
1046
+ >
1047
+ <div
1048
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
1049
+ data-id="flex"
1050
+ data-test-id="flex"
1051
+ >
1052
+ <span>
1053
+ CustomIcon
1054
+ </span>
1055
+ </div>
1056
+ </button>
1057
+ </DocumentFragment>
1058
+ `;
1059
+
1060
+ exports[`Button - Component Should render with renderLoader 1`] = `
1061
+ <DocumentFragment>
1062
+ <button
1063
+ aria-busy="true"
1064
+ aria-disabled="true"
1065
+ aria-pressed="false"
1066
+ aria-readonly="false"
1067
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle loading"
1068
+ type="button"
1069
+ >
1070
+ <div
1071
+ class="flex row alignItems_center justifyContent_center shrink overlayHidden"
1072
+ data-id="flex"
1073
+ data-test-id="flex"
1074
+ />
1075
+ <span>
1076
+ Loading...
1077
+ </span>
1078
+ </button>
1079
+ </DocumentFragment>
1080
+ `;
1081
+
1082
+ exports[`Button - Component Should render with renderSuccess 1`] = `
1083
+ <DocumentFragment>
1084
+ <button
1085
+ aria-busy="false"
1086
+ aria-disabled="false"
1087
+ aria-pressed="false"
1088
+ aria-readonly="false"
1089
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1090
+ type="button"
1091
+ >
1092
+ <div
1093
+ class="flex row alignItems_center justifyContent_center shrink overlayHidden"
1094
+ data-id="flex"
1095
+ data-test-id="flex"
1096
+ />
1097
+ <span>
1098
+ Success!
1099
+ </span>
1100
+ </button>
1101
+ </DocumentFragment>
1102
+ `;
1103
+
1104
+ exports[`Button - Component Should render with selected style when isSelected prop is true 1`] = `
1105
+ <DocumentFragment>
1106
+ <button
1107
+ aria-busy="false"
1108
+ aria-disabled="false"
1109
+ aria-pressed="true"
1110
+ aria-readonly="false"
1111
+ class="buttonReset button sizeMedium shapeRoundedRectangle"
1112
+ type="button"
1113
+ >
1114
+ <div
1115
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
1116
+ data-id="flex"
1117
+ data-test-id="flex"
1118
+ />
1119
+ </button>
1120
+ </DocumentFragment>
1121
+ `;
1122
+
1123
+ exports[`Button - Component Should render with the basic set of default props 1`] = `
1124
+ <DocumentFragment>
1125
+ <button
1126
+ aria-busy="false"
1127
+ aria-disabled="false"
1128
+ aria-pressed="false"
1129
+ aria-readonly="false"
1130
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1131
+ type="button"
1132
+ >
1133
+ <div
1134
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
1135
+ data-id="flex"
1136
+ data-test-id="flex"
1137
+ />
1138
+ </button>
1139
+ </DocumentFragment>
1140
+ `;
1141
+
1142
+ exports[`Button - Component Should render with title attribute 1`] = `
1143
+ <DocumentFragment>
1144
+ <button
1145
+ aria-busy="false"
1146
+ aria-disabled="false"
1147
+ aria-pressed="false"
1148
+ aria-readonly="false"
1149
+ class="buttonReset button bg-brand-80 text-brand-filled border-brand-80 sizeMedium shapeRoundedRectangle"
1150
+ data-title="Button test title"
1151
+ type="button"
1152
+ >
1153
+ <div
1154
+ class="flex row alignItems_center justifyContent_center shrink contentWrapper"
1155
+ data-id="flex"
1156
+ data-test-id="flex"
1157
+ />
1158
+ </button>
1159
+ </DocumentFragment>
1160
+ `;