@storybook/addon-interactions 6.4.0-beta.29 → 6.4.0-beta.33

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.
@@ -1,16 +1,34 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.symbol.js");
4
+
5
+ require("core-js/modules/es.symbol.description.js");
6
+
7
+ require("core-js/modules/es.symbol.iterator.js");
8
+
9
+ require("core-js/modules/es.string.iterator.js");
10
+
11
+ require("core-js/modules/es.array.iterator.js");
12
+
13
+ require("core-js/modules/web.dom-collections.iterator.js");
14
+
15
+ require("core-js/modules/es.array.slice.js");
16
+
17
+ require("core-js/modules/es.function.name.js");
18
+
19
+ require("core-js/modules/es.array.from.js");
20
+
3
21
  Object.defineProperty(exports, "__esModule", {
4
22
  value: true
5
23
  });
6
- exports.VerificationSuccess = exports.VerificationPasswordMismatch = exports.VerificationPasssword1 = exports.Verification = exports.StandardFailHover = exports.StandardPasswordFailed = exports.StandardEmailSuccess = exports.StandardEmailFailed = exports.StandardEmailFilled = exports.Standard = exports.WaitFor = exports.Demo = exports.default = void 0;
7
-
8
- require("core-js/modules/es.object.assign.js");
24
+ exports.VerificationSuccess = exports.VerificationPasswordMismatch = exports.VerificationPasssword1 = exports.Verification = exports.StandardFailHover = exports.StandardPasswordFailed = exports.StandardEmailSuccess = exports.StandardEmailFailed = exports.StandardEmailFilled = exports.Standard = exports.WithLoaders = exports.WaitForElementToBeRemoved = exports.WaitFor = exports.Demo = exports.default = void 0;
9
25
 
10
26
  require("core-js/modules/es.promise.js");
11
27
 
12
28
  require("core-js/modules/es.object.to-string.js");
13
29
 
30
+ require("core-js/modules/es.object.assign.js");
31
+
14
32
  require("regenerator-runtime/runtime.js");
15
33
 
16
34
  var _jest = require("@storybook/jest");
@@ -23,6 +41,18 @@ var _AccountForm = require("./AccountForm");
23
41
 
24
42
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
25
43
 
44
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
45
+
46
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
47
+
48
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
49
+
50
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
51
+
52
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
53
+
54
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
+
26
56
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
27
57
 
28
58
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -145,6 +175,139 @@ WaitFor.play = /*#__PURE__*/function () {
145
175
  };
146
176
  }();
147
177
 
178
+ var WaitForElementToBeRemoved = function WaitForElementToBeRemoved() {
179
+ var _React$useState = _react.default.useState(true),
180
+ _React$useState2 = _slicedToArray(_React$useState, 2),
181
+ isLoading = _React$useState2[0],
182
+ setIsLoading = _React$useState2[1];
183
+
184
+ _react.default.useEffect(function () {
185
+ setTimeout(function () {
186
+ return setIsLoading(false);
187
+ }, 1500);
188
+ }, []);
189
+
190
+ return isLoading ? /*#__PURE__*/_react.default.createElement("div", null, "Loading...") : /*#__PURE__*/_react.default.createElement("button", {
191
+ type: "button"
192
+ }, "Loaded!");
193
+ };
194
+
195
+ exports.WaitForElementToBeRemoved = WaitForElementToBeRemoved;
196
+
197
+ WaitForElementToBeRemoved.play = /*#__PURE__*/function () {
198
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(_ref6) {
199
+ var canvasElement, canvas, button;
200
+ return regeneratorRuntime.wrap(function _callee4$(_context4) {
201
+ while (1) {
202
+ switch (_context4.prev = _context4.next) {
203
+ case 0:
204
+ canvasElement = _ref6.canvasElement;
205
+ canvas = (0, _testingLibrary.within)(canvasElement);
206
+ _context4.t0 = _testingLibrary.waitForElementToBeRemoved;
207
+ _context4.next = 5;
208
+ return canvas.findByText('Loading...');
209
+
210
+ case 5:
211
+ _context4.t1 = _context4.sent;
212
+ _context4.t2 = {
213
+ timeout: 2000
214
+ };
215
+ _context4.next = 9;
216
+ return (0, _context4.t0)(_context4.t1, _context4.t2);
217
+
218
+ case 9:
219
+ _context4.next = 11;
220
+ return canvas.findByText('Loaded!');
221
+
222
+ case 11:
223
+ button = _context4.sent;
224
+ _context4.next = 14;
225
+ return (0, _jest.expect)(button).not.toBeNull();
226
+
227
+ case 14:
228
+ case "end":
229
+ return _context4.stop();
230
+ }
231
+ }
232
+ }, _callee4);
233
+ }));
234
+
235
+ return function (_x3) {
236
+ return _ref7.apply(this, arguments);
237
+ };
238
+ }();
239
+
240
+ var WithLoaders = function WithLoaders(args, _ref8) {
241
+ var todo = _ref8.loaded.todo;
242
+ return /*#__PURE__*/_react.default.createElement("button", {
243
+ type: "button",
244
+ onClick: args.onSubmit(todo.title)
245
+ }, "Todo: ", todo.title);
246
+ };
247
+
248
+ exports.WithLoaders = WithLoaders;
249
+ WithLoaders.loaders = [/*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
250
+ return regeneratorRuntime.wrap(function _callee5$(_context5) {
251
+ while (1) {
252
+ switch (_context5.prev = _context5.next) {
253
+ case 0:
254
+ _context5.next = 2;
255
+ return new Promise(function (resolve) {
256
+ return setTimeout(resolve, 2000);
257
+ });
258
+
259
+ case 2:
260
+ return _context5.abrupt("return", {
261
+ todo: {
262
+ userId: 1,
263
+ id: 1,
264
+ title: 'delectus aut autem',
265
+ completed: false
266
+ }
267
+ });
268
+
269
+ case 3:
270
+ case "end":
271
+ return _context5.stop();
272
+ }
273
+ }
274
+ }, _callee5);
275
+ }))];
276
+
277
+ WithLoaders.play = /*#__PURE__*/function () {
278
+ var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(_ref10) {
279
+ var args, canvasElement, canvas, todoItem;
280
+ return regeneratorRuntime.wrap(function _callee6$(_context6) {
281
+ while (1) {
282
+ switch (_context6.prev = _context6.next) {
283
+ case 0:
284
+ args = _ref10.args, canvasElement = _ref10.canvasElement;
285
+ canvas = (0, _testingLibrary.within)(canvasElement);
286
+ _context6.next = 4;
287
+ return canvas.findByText('Todo: delectus aut autem');
288
+
289
+ case 4:
290
+ todoItem = _context6.sent;
291
+ _context6.next = 7;
292
+ return _testingLibrary.userEvent.click(todoItem);
293
+
294
+ case 7:
295
+ _context6.next = 9;
296
+ return (0, _jest.expect)(args.onSubmit).toHaveBeenCalledWith('delectus aut autem');
297
+
298
+ case 9:
299
+ case "end":
300
+ return _context6.stop();
301
+ }
302
+ }
303
+ }, _callee6);
304
+ }));
305
+
306
+ return function (_x4) {
307
+ return _ref11.apply(this, arguments);
308
+ };
309
+ }();
310
+
148
311
  var Standard = {
149
312
  args: {
150
313
  passwordVerification: false
@@ -153,15 +316,15 @@ var Standard = {
153
316
  exports.Standard = Standard;
154
317
  var StandardEmailFilled = Object.assign({}, Standard, {
155
318
  play: function () {
156
- var _play = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(_ref6) {
319
+ var _play = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(_ref12) {
157
320
  var canvasElement, canvas;
158
- return regeneratorRuntime.wrap(function _callee4$(_context4) {
321
+ return regeneratorRuntime.wrap(function _callee7$(_context7) {
159
322
  while (1) {
160
- switch (_context4.prev = _context4.next) {
323
+ switch (_context7.prev = _context7.next) {
161
324
  case 0:
162
- canvasElement = _ref6.canvasElement;
325
+ canvasElement = _ref12.canvasElement;
163
326
  canvas = (0, _testingLibrary.within)(canvasElement);
164
- _context4.next = 4;
327
+ _context7.next = 4;
165
328
  return _testingLibrary.fireEvent.change(canvas.getByTestId('email'), {
166
329
  target: {
167
330
  value: 'michael@chromatic.com'
@@ -170,13 +333,13 @@ var StandardEmailFilled = Object.assign({}, Standard, {
170
333
 
171
334
  case 4:
172
335
  case "end":
173
- return _context4.stop();
336
+ return _context7.stop();
174
337
  }
175
338
  }
176
- }, _callee4);
339
+ }, _callee7);
177
340
  }));
178
341
 
179
- function play(_x3) {
342
+ function play(_x5) {
180
343
  return _play.apply(this, arguments);
181
344
  }
182
345
 
@@ -186,29 +349,29 @@ var StandardEmailFilled = Object.assign({}, Standard, {
186
349
  exports.StandardEmailFilled = StandardEmailFilled;
187
350
  var StandardEmailFailed = Object.assign({}, Standard, {
188
351
  play: function () {
189
- var _play2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref7) {
352
+ var _play2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(_ref13) {
190
353
  var args, canvasElement, canvas;
191
- return regeneratorRuntime.wrap(function _callee5$(_context5) {
354
+ return regeneratorRuntime.wrap(function _callee8$(_context8) {
192
355
  while (1) {
193
- switch (_context5.prev = _context5.next) {
356
+ switch (_context8.prev = _context8.next) {
194
357
  case 0:
195
- args = _ref7.args, canvasElement = _ref7.canvasElement;
358
+ args = _ref13.args, canvasElement = _ref13.canvasElement;
196
359
  canvas = (0, _testingLibrary.within)(canvasElement);
197
- _context5.next = 4;
360
+ _context8.next = 4;
198
361
  return _testingLibrary.userEvent.type(canvas.getByTestId('email'), 'gert@chromatic');
199
362
 
200
363
  case 4:
201
- _context5.next = 6;
364
+ _context8.next = 6;
202
365
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'supersecret');
203
366
 
204
367
  case 6:
205
- _context5.next = 8;
368
+ _context8.next = 8;
206
369
  return _testingLibrary.userEvent.click(canvas.getByRole('button', {
207
370
  name: /create account/i
208
371
  }));
209
372
 
210
373
  case 8:
211
- _context5.next = 10;
374
+ _context8.next = 10;
212
375
  return canvas.findByText('Please enter a correctly formatted email address');
213
376
 
214
377
  case 10:
@@ -216,13 +379,13 @@ var StandardEmailFailed = Object.assign({}, Standard, {
216
379
 
217
380
  case 11:
218
381
  case "end":
219
- return _context5.stop();
382
+ return _context8.stop();
220
383
  }
221
384
  }
222
- }, _callee5);
385
+ }, _callee8);
223
386
  }));
224
387
 
225
- function play(_x4) {
388
+ function play(_x6) {
226
389
  return _play2.apply(this, arguments);
227
390
  }
228
391
 
@@ -232,37 +395,37 @@ var StandardEmailFailed = Object.assign({}, Standard, {
232
395
  exports.StandardEmailFailed = StandardEmailFailed;
233
396
  var StandardEmailSuccess = Object.assign({}, Standard, {
234
397
  play: function () {
235
- var _play3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(_ref8) {
398
+ var _play3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(_ref14) {
236
399
  var args, canvasElement, canvas;
237
- return regeneratorRuntime.wrap(function _callee7$(_context7) {
400
+ return regeneratorRuntime.wrap(function _callee10$(_context10) {
238
401
  while (1) {
239
- switch (_context7.prev = _context7.next) {
402
+ switch (_context10.prev = _context10.next) {
240
403
  case 0:
241
- args = _ref8.args, canvasElement = _ref8.canvasElement;
404
+ args = _ref14.args, canvasElement = _ref14.canvasElement;
242
405
  canvas = (0, _testingLibrary.within)(canvasElement);
243
- _context7.next = 4;
406
+ _context10.next = 4;
244
407
  return _testingLibrary.userEvent.type(canvas.getByTestId('email'), 'michael@chromatic.com');
245
408
 
246
409
  case 4:
247
- _context7.next = 6;
410
+ _context10.next = 6;
248
411
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'testpasswordthatwontfail');
249
412
 
250
413
  case 6:
251
- _context7.next = 8;
414
+ _context10.next = 8;
252
415
  return _testingLibrary.userEvent.click(canvas.getByTestId('submit'));
253
416
 
254
417
  case 8:
255
- _context7.next = 10;
256
- return (0, _testingLibrary.waitFor)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
257
- return regeneratorRuntime.wrap(function _callee6$(_context6) {
418
+ _context10.next = 10;
419
+ return (0, _testingLibrary.waitFor)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
420
+ return regeneratorRuntime.wrap(function _callee9$(_context9) {
258
421
  while (1) {
259
- switch (_context6.prev = _context6.next) {
422
+ switch (_context9.prev = _context9.next) {
260
423
  case 0:
261
- _context6.next = 2;
424
+ _context9.next = 2;
262
425
  return (0, _jest.expect)(args.onSubmit).toHaveBeenCalledTimes(1);
263
426
 
264
427
  case 2:
265
- _context6.next = 4;
428
+ _context9.next = 4;
266
429
  return (0, _jest.expect)(args.onSubmit).toHaveBeenCalledWith({
267
430
  email: 'michael@chromatic.com',
268
431
  password: 'testpasswordthatwontfail'
@@ -270,21 +433,21 @@ var StandardEmailSuccess = Object.assign({}, Standard, {
270
433
 
271
434
  case 4:
272
435
  case "end":
273
- return _context6.stop();
436
+ return _context9.stop();
274
437
  }
275
438
  }
276
- }, _callee6);
439
+ }, _callee9);
277
440
  })));
278
441
 
279
442
  case 10:
280
443
  case "end":
281
- return _context7.stop();
444
+ return _context10.stop();
282
445
  }
283
446
  }
284
- }, _callee7);
447
+ }, _callee10);
285
448
  }));
286
449
 
287
- function play(_x5) {
450
+ function play(_x7) {
288
451
  return _play3.apply(this, arguments);
289
452
  }
290
453
 
@@ -294,33 +457,33 @@ var StandardEmailSuccess = Object.assign({}, Standard, {
294
457
  exports.StandardEmailSuccess = StandardEmailSuccess;
295
458
  var StandardPasswordFailed = Object.assign({}, Standard, {
296
459
  play: function () {
297
- var _play4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(context) {
460
+ var _play4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(context) {
298
461
  var canvas;
299
- return regeneratorRuntime.wrap(function _callee8$(_context8) {
462
+ return regeneratorRuntime.wrap(function _callee11$(_context11) {
300
463
  while (1) {
301
- switch (_context8.prev = _context8.next) {
464
+ switch (_context11.prev = _context11.next) {
302
465
  case 0:
303
466
  canvas = (0, _testingLibrary.within)(context.canvasElement);
304
- _context8.next = 3;
467
+ _context11.next = 3;
305
468
  return StandardEmailFilled.play(context);
306
469
 
307
470
  case 3:
308
- _context8.next = 5;
471
+ _context11.next = 5;
309
472
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'asdf');
310
473
 
311
474
  case 5:
312
- _context8.next = 7;
475
+ _context11.next = 7;
313
476
  return _testingLibrary.userEvent.click(canvas.getByTestId('submit'));
314
477
 
315
478
  case 7:
316
479
  case "end":
317
- return _context8.stop();
480
+ return _context11.stop();
318
481
  }
319
482
  }
320
- }, _callee8);
483
+ }, _callee11);
321
484
  }));
322
485
 
323
- function play(_x6) {
486
+ function play(_x8) {
324
487
  return _play4.apply(this, arguments);
325
488
  }
326
489
 
@@ -330,43 +493,43 @@ var StandardPasswordFailed = Object.assign({}, Standard, {
330
493
  exports.StandardPasswordFailed = StandardPasswordFailed;
331
494
  var StandardFailHover = Object.assign({}, StandardPasswordFailed, {
332
495
  play: function () {
333
- var _play5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(context) {
496
+ var _play5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(context) {
334
497
  var canvas;
335
- return regeneratorRuntime.wrap(function _callee10$(_context10) {
498
+ return regeneratorRuntime.wrap(function _callee13$(_context13) {
336
499
  while (1) {
337
- switch (_context10.prev = _context10.next) {
500
+ switch (_context13.prev = _context13.next) {
338
501
  case 0:
339
502
  canvas = (0, _testingLibrary.within)(context.canvasElement);
340
- _context10.next = 3;
503
+ _context13.next = 3;
341
504
  return StandardPasswordFailed.play(context);
342
505
 
343
506
  case 3:
344
- _context10.next = 5;
345
- return (0, _testingLibrary.waitFor)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9() {
346
- return regeneratorRuntime.wrap(function _callee9$(_context9) {
507
+ _context13.next = 5;
508
+ return (0, _testingLibrary.waitFor)( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
509
+ return regeneratorRuntime.wrap(function _callee12$(_context12) {
347
510
  while (1) {
348
- switch (_context9.prev = _context9.next) {
511
+ switch (_context12.prev = _context12.next) {
349
512
  case 0:
350
- _context9.next = 2;
513
+ _context12.next = 2;
351
514
  return _testingLibrary.userEvent.hover(canvas.getByTestId('password-error-info'));
352
515
 
353
516
  case 2:
354
517
  case "end":
355
- return _context9.stop();
518
+ return _context12.stop();
356
519
  }
357
520
  }
358
- }, _callee9);
521
+ }, _callee12);
359
522
  })));
360
523
 
361
524
  case 5:
362
525
  case "end":
363
- return _context10.stop();
526
+ return _context13.stop();
364
527
  }
365
528
  }
366
- }, _callee10);
529
+ }, _callee13);
367
530
  }));
368
531
 
369
- function play(_x7) {
532
+ function play(_x9) {
370
533
  return _play5.apply(this, arguments);
371
534
  }
372
535
 
@@ -387,33 +550,33 @@ var Verification = {
387
550
  exports.Verification = Verification;
388
551
  var VerificationPasssword1 = Object.assign({}, Verification, {
389
552
  play: function () {
390
- var _play6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(context) {
553
+ var _play6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(context) {
391
554
  var canvas;
392
- return regeneratorRuntime.wrap(function _callee11$(_context11) {
555
+ return regeneratorRuntime.wrap(function _callee14$(_context14) {
393
556
  while (1) {
394
- switch (_context11.prev = _context11.next) {
557
+ switch (_context14.prev = _context14.next) {
395
558
  case 0:
396
559
  canvas = (0, _testingLibrary.within)(context.canvasElement);
397
- _context11.next = 3;
560
+ _context14.next = 3;
398
561
  return StandardEmailFilled.play(context);
399
562
 
400
563
  case 3:
401
- _context11.next = 5;
564
+ _context14.next = 5;
402
565
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'asdfasdf');
403
566
 
404
567
  case 5:
405
- _context11.next = 7;
568
+ _context14.next = 7;
406
569
  return _testingLibrary.userEvent.click(canvas.getByTestId('submit'));
407
570
 
408
571
  case 7:
409
572
  case "end":
410
- return _context11.stop();
573
+ return _context14.stop();
411
574
  }
412
575
  }
413
- }, _callee11);
576
+ }, _callee14);
414
577
  }));
415
578
 
416
- function play(_x8) {
579
+ function play(_x10) {
417
580
  return _play6.apply(this, arguments);
418
581
  }
419
582
 
@@ -423,37 +586,37 @@ var VerificationPasssword1 = Object.assign({}, Verification, {
423
586
  exports.VerificationPasssword1 = VerificationPasssword1;
424
587
  var VerificationPasswordMismatch = Object.assign({}, Verification, {
425
588
  play: function () {
426
- var _play7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(context) {
589
+ var _play7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee15(context) {
427
590
  var canvas;
428
- return regeneratorRuntime.wrap(function _callee12$(_context12) {
591
+ return regeneratorRuntime.wrap(function _callee15$(_context15) {
429
592
  while (1) {
430
- switch (_context12.prev = _context12.next) {
593
+ switch (_context15.prev = _context15.next) {
431
594
  case 0:
432
595
  canvas = (0, _testingLibrary.within)(context.canvasElement);
433
- _context12.next = 3;
596
+ _context15.next = 3;
434
597
  return StandardEmailFilled.play(context);
435
598
 
436
599
  case 3:
437
- _context12.next = 5;
600
+ _context15.next = 5;
438
601
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'asdfasdf');
439
602
 
440
603
  case 5:
441
- _context12.next = 7;
604
+ _context15.next = 7;
442
605
  return _testingLibrary.userEvent.type(canvas.getByTestId('password2'), 'asdf1234');
443
606
 
444
607
  case 7:
445
- _context12.next = 9;
608
+ _context15.next = 9;
446
609
  return _testingLibrary.userEvent.click(canvas.getByTestId('submit'));
447
610
 
448
611
  case 9:
449
612
  case "end":
450
- return _context12.stop();
613
+ return _context15.stop();
451
614
  }
452
615
  }
453
- }, _callee12);
616
+ }, _callee15);
454
617
  }));
455
618
 
456
- function play(_x9) {
619
+ function play(_x11) {
457
620
  return _play7.apply(this, arguments);
458
621
  }
459
622
 
@@ -463,59 +626,59 @@ var VerificationPasswordMismatch = Object.assign({}, Verification, {
463
626
  exports.VerificationPasswordMismatch = VerificationPasswordMismatch;
464
627
  var VerificationSuccess = Object.assign({}, Verification, {
465
628
  play: function () {
466
- var _play8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(context) {
629
+ var _play8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee16(context) {
467
630
  var canvas;
468
- return regeneratorRuntime.wrap(function _callee13$(_context13) {
631
+ return regeneratorRuntime.wrap(function _callee16$(_context16) {
469
632
  while (1) {
470
- switch (_context13.prev = _context13.next) {
633
+ switch (_context16.prev = _context16.next) {
471
634
  case 0:
472
635
  canvas = (0, _testingLibrary.within)(context.canvasElement);
473
- _context13.next = 3;
636
+ _context16.next = 3;
474
637
  return StandardEmailFilled.play(context);
475
638
 
476
639
  case 3:
477
- _context13.next = 5;
640
+ _context16.next = 5;
478
641
  return new Promise(function (resolve) {
479
642
  return setTimeout(resolve, 1000);
480
643
  });
481
644
 
482
645
  case 5:
483
- _context13.next = 7;
646
+ _context16.next = 7;
484
647
  return _testingLibrary.userEvent.type(canvas.getByTestId('password1'), 'helloyou', {
485
648
  delay: 50
486
649
  });
487
650
 
488
651
  case 7:
489
- _context13.next = 9;
652
+ _context16.next = 9;
490
653
  return new Promise(function (resolve) {
491
654
  return setTimeout(resolve, 1000);
492
655
  });
493
656
 
494
657
  case 9:
495
- _context13.next = 11;
658
+ _context16.next = 11;
496
659
  return _testingLibrary.userEvent.type(canvas.getByTestId('password2'), 'helloyou', {
497
660
  delay: 50
498
661
  });
499
662
 
500
663
  case 11:
501
- _context13.next = 13;
664
+ _context16.next = 13;
502
665
  return new Promise(function (resolve) {
503
666
  return setTimeout(resolve, 1000);
504
667
  });
505
668
 
506
669
  case 13:
507
- _context13.next = 15;
670
+ _context16.next = 15;
508
671
  return _testingLibrary.userEvent.click(canvas.getByTestId('submit'));
509
672
 
510
673
  case 15:
511
674
  case "end":
512
- return _context13.stop();
675
+ return _context16.stop();
513
676
  }
514
677
  }
515
- }, _callee13);
678
+ }, _callee16);
516
679
  }));
517
680
 
518
- function play(_x10) {
681
+ function play(_x12) {
519
682
  return _play8.apply(this, arguments);
520
683
  }
521
684
 
@@ -52,16 +52,11 @@ var Note = (0, _theming.styled)(_components.TooltipNote)(function (_ref3) {
52
52
  fontFamily: theme.typography.fonts.base
53
53
  };
54
54
  });
55
- var StyledIconButton = (0, _theming.styled)(StyledButton)(function (_ref4) {
55
+ var StyledIconButton = (0, _theming.styled)(_components.IconButton)(function (_ref4) {
56
56
  var theme = _ref4.theme;
57
57
  return {
58
58
  color: theme.color.mediumdark,
59
- margin: '0 3px',
60
- '&:not(:disabled)': {
61
- '&:hover,&:focus-visible': {
62
- background: theme.background.hoverable
63
- }
64
- }
59
+ margin: '0 3px'
65
60
  };
66
61
  });
67
62
  exports.StyledIconButton = StyledIconButton;
@@ -132,7 +127,6 @@ var Subnav = function Subnav(_ref6) {
132
127
  note: "Go to start"
133
128
  })
134
129
  }, /*#__PURE__*/_react.default.createElement(RewindButton, {
135
- containsIcon: true,
136
130
  onClick: onStart,
137
131
  disabled: isDisabled || !hasPrevious
138
132
  }, /*#__PURE__*/_react.default.createElement(_components.Icons, {
@@ -145,7 +139,6 @@ var Subnav = function Subnav(_ref6) {
145
139
  note: "Go back"
146
140
  })
147
141
  }, /*#__PURE__*/_react.default.createElement(StyledIconButton, {
148
- containsIcon: true,
149
142
  onClick: onPrevious,
150
143
  disabled: isDisabled || !hasPrevious
151
144
  }, /*#__PURE__*/_react.default.createElement(_components.Icons, {
@@ -158,7 +151,6 @@ var Subnav = function Subnav(_ref6) {
158
151
  note: "Go forward"
159
152
  })
160
153
  }, /*#__PURE__*/_react.default.createElement(StyledIconButton, {
161
- containsIcon: true,
162
154
  onClick: onNext,
163
155
  disabled: isDisabled || !hasNext
164
156
  }, /*#__PURE__*/_react.default.createElement(_components.Icons, {
@@ -171,7 +163,6 @@ var Subnav = function Subnav(_ref6) {
171
163
  note: "Go to end"
172
164
  })
173
165
  }, /*#__PURE__*/_react.default.createElement(StyledIconButton, {
174
- containsIcon: true,
175
166
  onClick: onEnd,
176
167
  disabled: isDisabled || !hasNext
177
168
  }, /*#__PURE__*/_react.default.createElement(_components.Icons, {