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