@enact/ui 5.0.0-alpha.3 → 5.0.0-alpha.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.
Files changed (66) hide show
  1. package/AnnounceDecorator/tests/Announce-specs.js +2 -2
  2. package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +2 -2
  3. package/AnnounceDecorator/tests/useAnnounce-specs.js +3 -3
  4. package/BodyText/tests/BodyText-specs.js +6 -6
  5. package/Button/tests/Button-specs.js +10 -10
  6. package/CHANGELOG.md +12 -1
  7. package/Cancelable/tests/Cancelable-specs.js +17 -17
  8. package/Changeable/tests/Changeable-specs.js +25 -25
  9. package/ComponentOverride/ComponentOverride.js +1 -1
  10. package/FloatingLayer/FloatingLayer.js +1 -1
  11. package/FloatingLayer/FloatingLayerDecorator.js +1 -1
  12. package/FloatingLayer/tests/FloatingLayer-specs.js +6 -6
  13. package/FloatingLayer/tests/Scrim-specs.js +2 -2
  14. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +3 -3
  15. package/Group/tests/Group-specs.js +11 -11
  16. package/Heading/tests/Heading-specs.js +14 -14
  17. package/Icon/tests/Icon-specs.js +9 -9
  18. package/Image/tests/Image-specs.js +5 -5
  19. package/ImageItem/tests/ImageItem-specs.js +11 -11
  20. package/Item/tests/Item-specs.js +7 -7
  21. package/LabeledIcon/LabeledIcon.js +1 -1
  22. package/LabeledIcon/tests/LabeledIcon-specs.js +4 -4
  23. package/Layout/tests/Layout-specs.js +10 -10
  24. package/Marquee/MarqueeController.js +1 -1
  25. package/Marquee/tests/Marquee-specs.js +44 -44
  26. package/Measurable/tests/Measurable-specs.js +3 -3
  27. package/Media/Media.js +1 -1
  28. package/Media/tests/Media-specs.js +12 -12
  29. package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
  30. package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
  31. package/ProgressBar/tests/ProgressBar-specs.js +7 -7
  32. package/Repeater/tests/Repeater-specs.js +14 -14
  33. package/Resizable/tests/Resizable-specs.js +1 -1
  34. package/Resizable/tests/useResize-specs.js +1 -1
  35. package/Routable/tests/Routable-specs.js +1 -1
  36. package/Routable/tests/Router-specs.js +10 -10
  37. package/Routable/util.js +3 -3
  38. package/Scroller/tests/Scroller-specs.js +3 -3
  39. package/Skinnable/Skinnable.js +1 -1
  40. package/Skinnable/tests/Skinnable-specs.js +19 -19
  41. package/Skinnable/tests/useSkins-specs.js +14 -14
  42. package/Slider/tests/Slider-specs.js +7 -7
  43. package/Slottable/tests/Slottable-specs.js +10 -10
  44. package/Slottable/tests/useSlots-specs.js +10 -10
  45. package/Spinner/tests/Spinner-specs.js +5 -5
  46. package/ToggleIcon/tests/ToggleIcon-specs.js +5 -5
  47. package/Toggleable/tests/Toggleable-specs.js +41 -41
  48. package/Touchable/tests/Touchable-specs.js +36 -36
  49. package/Touchable/tests/useTouch-specs.js +15 -15
  50. package/Transition/tests/Transition-specs.js +11 -11
  51. package/ViewManager/tests/View-specs.js +13 -13
  52. package/ViewManager/tests/ViewManager-specs.js +50 -50
  53. package/VirtualList/VirtualListBasic.js +1 -1
  54. package/VirtualList/tests/VirtualGridList-native-specs.js +6 -6
  55. package/VirtualList/tests/VirtualGridList-specs.js +23 -23
  56. package/VirtualList/tests/VirtualList-native-specs.js +7 -7
  57. package/VirtualList/tests/VirtualList-specs.js +29 -29
  58. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  59. package/internal/IdProvider/tests/useId-specs.js +6 -6
  60. package/internal/Pure/tests/Pure-specs.js +5 -5
  61. package/package.json +6 -6
  62. package/resolution/tests/ResolutionDecorator-specs.js +2 -2
  63. package/styles/mixins.less +0 -2
  64. package/useControlledState/tests/useControlledState-specs.js +10 -10
  65. package/useScroll/ScrollAnimator.js +3 -3
  66. package/useScroll/useScroll.js +3 -0
@@ -54,7 +54,7 @@ describe('Touchable', function () {
54
54
  var Component = (0, _Touchable["default"])({
55
55
  activeProp: 'active'
56
56
  }, DivComponent);
57
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
57
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
58
58
  var expected = data.active;
59
59
  expect(expected).toBeDefined();
60
60
  });
@@ -68,7 +68,7 @@ describe('Touchable', function () {
68
68
  };
69
69
  var Component = (0, _Touchable["default"])(DivComponent);
70
70
  var handler = jest.fn();
71
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
71
+ var _render = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
72
72
  onHoldStart: function onHoldStart() {},
73
73
  holdConfig: holdConfig
74
74
  })),
@@ -76,7 +76,7 @@ describe('Touchable', function () {
76
76
  var component = _react.screen.getByTestId('component');
77
77
  var ev = {};
78
78
  _react.fireEvent.mouseDown(component, ev);
79
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
79
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
80
80
  holdConfig: holdConfig,
81
81
  onHold: handler,
82
82
  onHoldStart: function onHoldStart() {}
@@ -95,7 +95,7 @@ describe('Touchable', function () {
95
95
  };
96
96
  var Component = (0, _Touchable["default"])(DivComponent);
97
97
  var handler = jest.fn();
98
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
98
+ var _render2 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
99
99
  holdConfig: holdConfig,
100
100
  onHold: function onHold() {}
101
101
  })),
@@ -103,7 +103,7 @@ describe('Touchable', function () {
103
103
  var component = _react.screen.getByTestId('component');
104
104
  var ev = {};
105
105
  _react.fireEvent.mouseDown(component, ev);
106
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
106
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
107
107
  holdConfig: holdConfig,
108
108
  onHold: function onHold() {},
109
109
  onHoldStart: handler
@@ -122,7 +122,7 @@ describe('Touchable', function () {
122
122
  };
123
123
  var Component = (0, _Touchable["default"])(DivComponent);
124
124
  var handler = jest.fn();
125
- var _render3 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
125
+ var _render3 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
126
126
  holdConfig: holdConfig,
127
127
  onHold: function onHold() {}
128
128
  })),
@@ -131,7 +131,7 @@ describe('Touchable', function () {
131
131
  var ev = {};
132
132
  _react.fireEvent.mouseDown(component, ev);
133
133
  _react.fireEvent.mouseLeave(component, ev);
134
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
134
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
135
135
  holdConfig: holdConfig,
136
136
  onHold: function onHold() {},
137
137
  onHoldStart: handler
@@ -150,7 +150,7 @@ describe('Touchable', function () {
150
150
  };
151
151
  var Component = (0, _Touchable["default"])(DivComponent);
152
152
  var handler = jest.fn();
153
- var _render4 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
153
+ var _render4 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
154
154
  holdConfig: holdConfig,
155
155
  onHold: function onHold() {}
156
156
  })),
@@ -161,7 +161,7 @@ describe('Touchable', function () {
161
161
  };
162
162
  _react.fireEvent.mouseDown(component, ev);
163
163
  _react.fireEvent.mouseEnter(component, ev);
164
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
164
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
165
165
  holdConfig: holdConfig,
166
166
  onHold: function onHold() {},
167
167
  onHoldEnd: handler
@@ -182,7 +182,7 @@ describe('Touchable', function () {
182
182
  };
183
183
  var Component = (0, _Touchable["default"])(DivComponent);
184
184
  var handler = jest.fn();
185
- var _render5 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
185
+ var _render5 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
186
186
  holdConfig: holdConfig,
187
187
  onHold: function onHold() {}
188
188
  })),
@@ -193,7 +193,7 @@ describe('Touchable', function () {
193
193
  };
194
194
  _react.fireEvent.mouseDown(component, ev);
195
195
  _react.fireEvent.mouseMove(component, ev);
196
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
196
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
197
197
  holdConfig: holdConfig,
198
198
  onHold: function onHold() {},
199
199
  onHoldEnd: handler
@@ -210,7 +210,7 @@ describe('Touchable', function () {
210
210
  };
211
211
  var Component = (0, _Touchable["default"])(DivComponent);
212
212
  var handler = jest.fn();
213
- var _render6 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
213
+ var _render6 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
214
214
  pinchConfig: pinchConfig,
215
215
  onPinch: function onPinch() {}
216
216
  })),
@@ -236,7 +236,7 @@ describe('Touchable', function () {
236
236
  clientY: 10
237
237
  }]
238
238
  };
239
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
239
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
240
240
  pinchConfig: pinchConfig,
241
241
  onPinch: function onPinch() {},
242
242
  onPinchStart: handler
@@ -254,7 +254,7 @@ describe('Touchable', function () {
254
254
  };
255
255
  var Component = (0, _Touchable["default"])(DivComponent);
256
256
  var handler = jest.fn();
257
- var _render7 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
257
+ var _render7 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
258
258
  pinchConfig: pinchConfig,
259
259
  onPinch: function onPinch() {}
260
260
  })),
@@ -282,7 +282,7 @@ describe('Touchable', function () {
282
282
  };
283
283
  _react.fireEvent.touchStart(component, touchEvent);
284
284
  _react.fireEvent.mouseDown(component, touchEvent);
285
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
285
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
286
286
  pinchConfig: pinchConfig,
287
287
  onPinch: function onPinch() {},
288
288
  onPinchEnd: handler
@@ -318,7 +318,7 @@ describe('Touchable', function () {
318
318
  test('should call onFlick event', function (done) {
319
319
  var Component = (0, _Touchable["default"])(DivComponent);
320
320
  var handler = jest.fn();
321
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
321
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
322
322
  onFlick: handler
323
323
  }));
324
324
  var component = _react.screen.getByTestId('component');
@@ -388,7 +388,7 @@ describe('Touchable', function () {
388
388
  test('should call onDragStart event', function (done) {
389
389
  var Component = (0, _Touchable["default"])(DivComponent);
390
390
  var handler = jest.fn();
391
- var _render8 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
391
+ var _render8 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
392
392
  onDrag: function onDrag() {}
393
393
  })),
394
394
  rerender = _render8.rerender;
@@ -400,7 +400,7 @@ describe('Touchable', function () {
400
400
  (0, _react.act)(function () {
401
401
  return jest.advanceTimersByTime(20);
402
402
  });
403
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
403
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
404
404
  onDrag: function onDrag() {},
405
405
  onDragStart: handler
406
406
  }));
@@ -437,7 +437,7 @@ describe('Touchable', function () {
437
437
  test('should call onDragEnd event', function (done) {
438
438
  var Component = (0, _Touchable["default"])(DivComponent);
439
439
  var handler = jest.fn();
440
- var _render9 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
440
+ var _render9 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
441
441
  onDrag: function onDrag() {}
442
442
  })),
443
443
  rerender = _render9.rerender;
@@ -467,7 +467,7 @@ describe('Touchable', function () {
467
467
  clientX: 40,
468
468
  clientY: 50
469
469
  });
470
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
470
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
471
471
  onDrag: function onDrag() {},
472
472
  onDragEnd: handler
473
473
  }));
@@ -482,7 +482,7 @@ describe('Touchable', function () {
482
482
  test('should not call onDragEnd on mouseLeave', function (done) {
483
483
  var Component = (0, _Touchable["default"])(DivComponent);
484
484
  var handler = jest.fn();
485
- var _render10 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
485
+ var _render10 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
486
486
  onDrag: function onDrag() {}
487
487
  })),
488
488
  rerender = _render10.rerender;
@@ -512,7 +512,7 @@ describe('Touchable', function () {
512
512
  clientX: 40,
513
513
  clientY: 50
514
514
  });
515
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
515
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
516
516
  onDrag: function onDrag() {},
517
517
  onDragEnd: handler
518
518
  }));
@@ -526,7 +526,7 @@ describe('Touchable', function () {
526
526
  test('should invoke onDown handle on mouse down', function () {
527
527
  var Component = (0, _Touchable["default"])(DivComponent);
528
528
  var handler = jest.fn();
529
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
529
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
530
530
  onDown: handler
531
531
  }));
532
532
  var component = _react.screen.getByTestId('component');
@@ -541,7 +541,7 @@ describe('Touchable', function () {
541
541
  activeProp: 'active'
542
542
  }, DivComponent);
543
543
  var handler = jest.fn();
544
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
544
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
545
545
  onUp: handler
546
546
  }));
547
547
  var component = _react.screen.getByTestId('component');
@@ -558,7 +558,7 @@ describe('Touchable', function () {
558
558
  activeProp: 'active'
559
559
  }, DivComponent);
560
560
  var handler = jest.fn();
561
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
561
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
562
562
  onTap: handler
563
563
  }));
564
564
  var component = _react.screen.getByTestId('component');
@@ -573,7 +573,7 @@ describe('Touchable', function () {
573
573
  activeProp: 'active'
574
574
  }, DivComponent);
575
575
  var handler = jest.fn();
576
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
576
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
577
577
  onTap: handler
578
578
  }));
579
579
  var component = _react.screen.getByTestId('component');
@@ -586,7 +586,7 @@ describe('Touchable', function () {
586
586
  activeProp: 'active'
587
587
  }, DivComponent);
588
588
  var handler = jest.fn();
589
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
589
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
590
590
  onClick: handler,
591
591
  onTap: handler
592
592
  }));
@@ -603,7 +603,7 @@ describe('Touchable', function () {
603
603
  activeProp: 'active'
604
604
  }, DivComponent);
605
605
  var handler = jest.fn();
606
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
606
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
607
607
  onClick: handler,
608
608
  onTap: handler
609
609
  }));
@@ -637,7 +637,7 @@ describe('Touchable', function () {
637
637
  activeProp: 'active'
638
638
  }, DivComponent);
639
639
  var handler = jest.fn();
640
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
640
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
641
641
  onTap: handler,
642
642
  onUp: preventDefault
643
643
  }));
@@ -655,7 +655,7 @@ describe('Touchable', function () {
655
655
  activeProp: 'active'
656
656
  }, DivComponent);
657
657
  var handler = jest.fn();
658
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
658
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
659
659
  onDown: handler
660
660
  }));
661
661
  var component = _react.screen.getByTestId('component');
@@ -672,7 +672,7 @@ describe('Touchable', function () {
672
672
  activeProp: 'active'
673
673
  }, DivComponent);
674
674
  var handler = jest.fn();
675
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
675
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
676
676
  disabled: true,
677
677
  onDown: handler
678
678
  }));
@@ -689,7 +689,7 @@ describe('Touchable', function () {
689
689
  var handler = function handler(ev) {
690
690
  return ev.preventDefault();
691
691
  };
692
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
692
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
693
693
  onDown: handler
694
694
  }));
695
695
  var component = _react.screen.getByTestId('component');
@@ -705,7 +705,7 @@ describe('Touchable', function () {
705
705
  activeProp: 'active'
706
706
  }, DivComponent);
707
707
  var handler = jest.fn();
708
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
708
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
709
709
  onDown: handler
710
710
  }));
711
711
  var component = _react.screen.getByTestId('component');
@@ -723,7 +723,7 @@ describe('Touchable', function () {
723
723
  activeProp: 'active'
724
724
  }, DivComponent);
725
725
  var handler = jest.fn();
726
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
726
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
727
727
  disabled: true,
728
728
  onDown: handler
729
729
  }));
@@ -741,7 +741,7 @@ describe('Touchable', function () {
741
741
  var Component = (0, _Touchable["default"])({
742
742
  activeProp: 'active'
743
743
  }, DivComponent);
744
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
744
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
745
745
  onDown: preventDefault
746
746
  }));
747
747
  var component = _react.screen.getByTestId('component');
@@ -760,7 +760,7 @@ describe('Touchable', function () {
760
760
  test('should only emit onTap once when tapping an child instance of Touchable', function () {
761
761
  var Component = (0, _Touchable["default"])(DivComponent);
762
762
  var handler = jest.fn();
763
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
763
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
764
764
  id: "outer",
765
765
  onTap: handler,
766
766
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
@@ -41,7 +41,7 @@ describe('useTouch', function () {
41
41
  beforeEach(_config.resetDefaultConfig);
42
42
  afterEach(_config.resetDefaultConfig);
43
43
  test('should return active state when activeProp is configured', function () {
44
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
44
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
45
45
  activeProp: "active"
46
46
  }));
47
47
  var expected = data.active;
@@ -100,7 +100,7 @@ describe('useTouch', function () {
100
100
  describe('#onDown', function () {
101
101
  test('should invoke onDown handle on mouse down', function () {
102
102
  var handler = jest.fn();
103
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
103
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
104
104
  activeProp: "active",
105
105
  onDown: handler
106
106
  }));
@@ -113,7 +113,7 @@ describe('useTouch', function () {
113
113
  describe('#onUp', function () {
114
114
  test('should invoke onUp handle on mouse up', function () {
115
115
  var handler = jest.fn();
116
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
116
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
117
117
  activeProp: "active",
118
118
  onUp: handler
119
119
  }));
@@ -127,7 +127,7 @@ describe('useTouch', function () {
127
127
  describe('#onTap', function () {
128
128
  test('should be called on mouse up', function () {
129
129
  var handler = jest.fn();
130
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
130
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
131
131
  activeProp: "active",
132
132
  onTap: handler
133
133
  }));
@@ -139,7 +139,7 @@ describe('useTouch', function () {
139
139
  });
140
140
  test('should be called on click', function () {
141
141
  var handler = jest.fn();
142
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
142
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
143
143
  activeProp: "active",
144
144
  onTap: handler
145
145
  }));
@@ -150,7 +150,7 @@ describe('useTouch', function () {
150
150
  });
151
151
  test('should be called before onClick on click', function () {
152
152
  var handler = jest.fn();
153
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
153
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
154
154
  activeProp: "active",
155
155
  onClick: handler,
156
156
  onTap: handler
@@ -165,7 +165,7 @@ describe('useTouch', function () {
165
165
  });
166
166
  test('should be called before onClick on mouse up', function () {
167
167
  var handler = jest.fn();
168
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
168
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
169
169
  activeProp: "active",
170
170
  onClick: handler,
171
171
  onTap: handler
@@ -197,7 +197,7 @@ describe('useTouch', function () {
197
197
  });
198
198
  test('should be preventable via onUp handler', function () {
199
199
  var handler = jest.fn();
200
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
200
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
201
201
  activeProp: "active",
202
202
  onTap: handler,
203
203
  onUp: preventDefault
@@ -212,7 +212,7 @@ describe('useTouch', function () {
212
212
  describe('activate', function () {
213
213
  test('should update active state on mouse down when activeProp is configured', function () {
214
214
  var handler = jest.fn();
215
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
215
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
216
216
  activeProp: "active",
217
217
  onDown: handler
218
218
  }));
@@ -226,7 +226,7 @@ describe('useTouch', function () {
226
226
  });
227
227
  test('should not update active state on mouse down when disabled', function () {
228
228
  var handler = jest.fn();
229
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
229
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
230
230
  activeProp: "active",
231
231
  disabled: true,
232
232
  onDown: handler
@@ -238,7 +238,7 @@ describe('useTouch', function () {
238
238
  expect(actual).toBe(expected);
239
239
  });
240
240
  test('should not update active state on mouse down when preventDefault is called', function () {
241
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
241
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
242
242
  activeProp: "active",
243
243
  onDown: preventDefault
244
244
  }));
@@ -252,7 +252,7 @@ describe('useTouch', function () {
252
252
  describe('deactivate', function () {
253
253
  test('should update active state on mouse up when activeProp is configured', function () {
254
254
  var handler = jest.fn();
255
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
255
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
256
256
  activeProp: "active",
257
257
  onDown: handler
258
258
  }));
@@ -267,7 +267,7 @@ describe('useTouch', function () {
267
267
  });
268
268
  test('should not update active state on mouse down when disabled', function () {
269
269
  var handler = jest.fn();
270
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
270
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
271
271
  activeProp: "active",
272
272
  disabled: true,
273
273
  onDown: handler
@@ -282,7 +282,7 @@ describe('useTouch', function () {
282
282
  expect(actual).toBe(expected);
283
283
  });
284
284
  test('should not update active state on mouse down when preventDefault is called', function () {
285
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
285
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(TouchableComponent, {
286
286
  activeProp: "active",
287
287
  onDown: preventDefault
288
288
  }));
@@ -315,7 +315,7 @@ describe('useTouch', function () {
315
315
  }))
316
316
  }));
317
317
  };
318
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
318
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
319
319
  var inner = _react.screen.getByTestId('inner');
320
320
  var mouseEvent = {
321
321
  timeStamp: 1
@@ -26,7 +26,7 @@ describe('Transition Specs', function () {
26
26
  children: "Body"
27
27
  }));
28
28
  };
29
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
29
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
30
30
  className: className,
31
31
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildNode, {})
32
32
  }));
@@ -46,7 +46,7 @@ describe('Transition Specs', function () {
46
46
  children: "Body"
47
47
  }));
48
48
  };
49
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
49
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
50
50
  style: styles,
51
51
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildNode, {})
52
52
  }));
@@ -55,7 +55,7 @@ describe('Transition Specs', function () {
55
55
  expect(actual).toHaveStyle(expected);
56
56
  });
57
57
  test('should apply \'shown\' class when visible', function () {
58
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
58
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
59
59
  "data-testid": "transition"
60
60
  }));
61
61
  var expected = 'shown';
@@ -63,7 +63,7 @@ describe('Transition Specs', function () {
63
63
  expect(actual).toHaveClass(expected);
64
64
  });
65
65
  test('should apply \'hidden\' class when not visible', function () {
66
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
66
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
67
67
  "data-testid": "transition",
68
68
  visible: false
69
69
  }));
@@ -72,7 +72,7 @@ describe('Transition Specs', function () {
72
72
  expect(actual).toHaveClass(expected);
73
73
  });
74
74
  test('should apply \'shown\' class when visible with noAnimation', function () {
75
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
75
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
76
76
  "data-testid": "transition",
77
77
  noAnimation: true
78
78
  }));
@@ -81,7 +81,7 @@ describe('Transition Specs', function () {
81
81
  expect(actual).toHaveClass(expected);
82
82
  });
83
83
  test('should apply \'hidden\' class when not visible with noAnimation', function () {
84
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
84
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.TransitionBase, {
85
85
  "data-testid": "transition",
86
86
  noAnimation: true,
87
87
  visible: false
@@ -97,14 +97,14 @@ describe('Transition Specs', function () {
97
97
  children: "Body"
98
98
  }));
99
99
  };
100
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
100
+ var _render = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
101
101
  noAnimation: true,
102
102
  onShow: handleShow,
103
103
  visible: false,
104
104
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildNode, {})
105
105
  })),
106
106
  rerender = _render.rerender;
107
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
107
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
108
108
  noAnimation: true,
109
109
  onShow: handleShow,
110
110
  visible: true,
@@ -125,14 +125,14 @@ describe('Transition Specs', function () {
125
125
  children: "Body"
126
126
  }));
127
127
  };
128
- var _render2 = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
128
+ var _render2 = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
129
129
  noAnimation: true,
130
130
  onHide: handleHide,
131
131
  visible: true,
132
132
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ChildNode, {})
133
133
  })),
134
134
  rerender = _render2.rerender;
135
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
135
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], {
136
136
  noAnimation: true,
137
137
  onHide: handleHide,
138
138
  visible: false,
@@ -162,7 +162,7 @@ describe('Transition Specs', function () {
162
162
  value = _ref4[1];
163
163
  test("should apply classes for ".concat(prop, "=\"").concat(value, "\""), function () {
164
164
  var propValue = _defineProperty({}, prop, value);
165
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], _objectSpread(_objectSpread({}, propValue), {}, {
165
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition["default"], _objectSpread(_objectSpread({}, propValue), {}, {
166
166
  "data-testid": "transition",
167
167
  visible: true,
168
168
  children: "Body"
@@ -9,7 +9,7 @@ var _jsxRuntime = require("react/jsx-runtime");
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  describe('View', function () {
11
11
  test('should render its child when neither enteringProp or childProps is specified', function () {
12
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
12
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
13
13
  duration: 1000,
14
14
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
15
15
  "data-testid": "span"
@@ -19,7 +19,7 @@ describe('View', function () {
19
19
  expect(actual).toBeInTheDocument();
20
20
  });
21
21
  test('should pass the value of entering to its child in enteringProp', function () {
22
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
22
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
23
23
  duration: 1000,
24
24
  enteringProp: "data-entering",
25
25
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -33,7 +33,7 @@ describe('View', function () {
33
33
  test('should pass enteringProp as false for an appearing view', function () {
34
34
  // Views visible on mount are "appearing" and shouldn't perform "entering" logic like
35
35
  // deferring children rendering
36
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
36
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
37
37
  appearing: true,
38
38
  duration: 1000,
39
39
  enteringProp: "data-entering",
@@ -48,7 +48,7 @@ describe('View', function () {
48
48
  test('should call callback immediately for "stay"', function () {
49
49
  var spy = jest.fn();
50
50
  var ref = /*#__PURE__*/(0, _react2.createRef)();
51
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
51
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
52
52
  duration: 16,
53
53
  ref: ref,
54
54
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {})
@@ -62,7 +62,7 @@ describe('View', function () {
62
62
  test('should call callback immediately for "enter"', function () {
63
63
  var spy = jest.fn();
64
64
  var ref = /*#__PURE__*/(0, _react2.createRef)();
65
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
65
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
66
66
  duration: 16,
67
67
  ref: ref,
68
68
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {})
@@ -76,7 +76,7 @@ describe('View', function () {
76
76
  test('should call callback immediately for "leave"', function () {
77
77
  var spy = jest.fn();
78
78
  var ref = /*#__PURE__*/(0, _react2.createRef)();
79
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
79
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
80
80
  duration: 16,
81
81
  ref: ref,
82
82
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {})
@@ -91,7 +91,7 @@ describe('View', function () {
91
91
  jest.useFakeTimers();
92
92
  var spy = jest.fn();
93
93
  var ref = /*#__PURE__*/(0, _react2.createRef)();
94
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
94
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
95
95
  duration: 16,
96
96
  enteringProp: "data-entering",
97
97
  ref: ref,
@@ -127,7 +127,7 @@ describe('View', function () {
127
127
  children: [{}]
128
128
  };
129
129
  };
130
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
130
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
131
131
  arranger: _testUtils.MockArranger,
132
132
  duration: 16,
133
133
  ref: ref,
@@ -151,7 +151,7 @@ describe('View', function () {
151
151
  children: [{}]
152
152
  };
153
153
  };
154
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
154
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
155
155
  arranger: _testUtils.MockArranger,
156
156
  duration: 16,
157
157
  ref: ref,
@@ -175,7 +175,7 @@ describe('View', function () {
175
175
  children: [{}]
176
176
  };
177
177
  };
178
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
178
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
179
179
  arranger: _testUtils.MockArranger,
180
180
  duration: 16,
181
181
  ref: ref,
@@ -200,7 +200,7 @@ describe('View', function () {
200
200
  children: [{}]
201
201
  };
202
202
  };
203
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
203
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
204
204
  arranger: _testUtils.MockArranger,
205
205
  duration: 16,
206
206
  noAnimation: true,
@@ -222,7 +222,7 @@ describe('View', function () {
222
222
  children: [{}]
223
223
  };
224
224
  };
225
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
225
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
226
226
  arranger: _testUtils.MockArranger,
227
227
  duration: 16,
228
228
  ref: ref,
@@ -257,7 +257,7 @@ describe('View', function () {
257
257
  children: [{}]
258
258
  };
259
259
  };
260
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
260
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_View["default"], {
261
261
  arranger: arranger,
262
262
  duration: 1000,
263
263
  ref: ref,