@enact/ui 5.0.0-alpha.2 → 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 (91) 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 +28 -1
  7. package/Cancelable/Cancelable.d.ts +1 -1
  8. package/Cancelable/Cancelable.js +2 -2
  9. package/Cancelable/cancelHandler.js +1 -1
  10. package/Cancelable/tests/Cancelable-specs.js +17 -17
  11. package/Changeable/tests/Changeable-specs.js +25 -25
  12. package/ComponentOverride/ComponentOverride.js +1 -1
  13. package/FloatingLayer/FloatingLayer.js +2 -2
  14. package/FloatingLayer/FloatingLayerDecorator.js +1 -1
  15. package/FloatingLayer/tests/FloatingLayer-specs.js +7 -7
  16. package/FloatingLayer/tests/Scrim-specs.js +2 -2
  17. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +3 -3
  18. package/Group/tests/Group-specs.js +11 -11
  19. package/Heading/Heading.d.ts +1 -1
  20. package/Heading/Heading.js +1 -1
  21. package/Heading/tests/Heading-specs.js +14 -14
  22. package/Icon/tests/Icon-specs.js +9 -9
  23. package/Image/tests/Image-specs.js +5 -5
  24. package/ImageItem/tests/ImageItem-specs.js +11 -11
  25. package/Item/tests/Item-specs.js +7 -7
  26. package/LabeledIcon/LabeledIcon.js +1 -1
  27. package/LabeledIcon/tests/LabeledIcon-specs.js +4 -4
  28. package/Layout/Cell.js +2 -2
  29. package/Layout/Layout.d.ts +1 -1
  30. package/Layout/Layout.js +2 -2
  31. package/Layout/tests/Layout-specs.js +10 -10
  32. package/Marquee/MarqueeController.js +1 -1
  33. package/Marquee/MarqueeDecorator.js +1 -1
  34. package/Marquee/tests/Marquee-specs.js +44 -44
  35. package/Measurable/tests/Measurable-specs.js +3 -3
  36. package/Media/Media.js +1 -1
  37. package/Media/tests/Media-specs.js +12 -12
  38. package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
  39. package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
  40. package/ProgressBar/tests/ProgressBar-specs.js +7 -7
  41. package/Repeater/Repeater.d.ts +1 -1
  42. package/Repeater/Repeater.js +1 -1
  43. package/Repeater/tests/Repeater-specs.js +14 -14
  44. package/Resizable/tests/Resizable-specs.js +1 -1
  45. package/Resizable/tests/useResize-specs.js +1 -1
  46. package/Routable/Router.js +1 -1
  47. package/Routable/tests/Routable-specs.js +1 -1
  48. package/Routable/tests/Router-specs.js +10 -10
  49. package/Routable/util.js +3 -3
  50. package/Scroller/tests/Scroller-specs.js +3 -3
  51. package/Skinnable/Skinnable.js +2 -2
  52. package/Skinnable/tests/Skinnable-specs.js +19 -19
  53. package/Skinnable/tests/useSkins-specs.js +14 -14
  54. package/Skinnable/util.js +1 -1
  55. package/Slider/Knob.js +1 -1
  56. package/Slider/Slider.d.ts +4 -4
  57. package/Slider/Slider.js +3 -3
  58. package/Slider/tests/Slider-specs.js +7 -7
  59. package/Slottable/tests/Slottable-specs.js +10 -10
  60. package/Slottable/tests/useSlots-specs.js +10 -10
  61. package/Slottable/useSlots.js +2 -2
  62. package/Spinner/tests/Spinner-specs.js +5 -5
  63. package/ToggleIcon/tests/ToggleIcon-specs.js +5 -5
  64. package/Toggleable/tests/Toggleable-specs.js +41 -41
  65. package/Touchable/ClickAllow.js +1 -1
  66. package/Touchable/config.js +1 -1
  67. package/Touchable/tests/Touchable-specs.js +36 -36
  68. package/Touchable/tests/useTouch-specs.js +15 -15
  69. package/Transition/Transition.d.ts +3 -3
  70. package/Transition/Transition.js +5 -5
  71. package/Transition/tests/Transition-specs.js +13 -13
  72. package/ViewManager/Arranger.js +3 -3
  73. package/ViewManager/ViewManager.d.ts +3 -3
  74. package/ViewManager/tests/View-specs.js +13 -13
  75. package/ViewManager/tests/ViewManager-specs.js +50 -50
  76. package/VirtualList/VirtualListBasic.js +1 -6
  77. package/VirtualList/tests/VirtualGridList-native-specs.js +6 -6
  78. package/VirtualList/tests/VirtualGridList-specs.js +23 -23
  79. package/VirtualList/tests/VirtualList-native-specs.js +7 -7
  80. package/VirtualList/tests/VirtualList-specs.js +29 -29
  81. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  82. package/internal/IdProvider/tests/useId-specs.js +6 -6
  83. package/internal/Pure/tests/Pure-specs.js +5 -5
  84. package/package.json +6 -6
  85. package/resolution/index.d.ts +1 -1
  86. package/resolution/resolution.js +1 -1
  87. package/resolution/tests/ResolutionDecorator-specs.js +2 -2
  88. package/styles/mixins.less +3 -5
  89. package/useControlledState/tests/useControlledState-specs.js +10 -10
  90. package/useScroll/ScrollAnimator.js +3 -3
  91. 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
@@ -93,7 +93,7 @@ all, which makes it less useful for transitioning from a place already on the
93
93
  screen.
94
94
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
95
95
  that is already on the screen. Examples would be an expanding header or an
96
- accordion. This type does affects layout, its current size will push other sibling
96
+ accordion. This type does affect layout, its current size will push other sibling
97
97
  elements to make room for itself. Because of this, repainting the layout does happen
98
98
  during transition.
99
99
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -133,7 +133,7 @@ export interface TransitionProps {
133
133
  `'medium'` (500ms) is default when no others are specified.
134
134
  *
135
135
  * Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
136
- are also supported and treated as miliseconds.
136
+ are also supported and treated as milliseconds.
137
137
  */
138
138
  duration?: string | number;
139
139
  /**
@@ -169,7 +169,7 @@ all, which makes it less useful for transitioning from a place already on the
169
169
  screen.
170
170
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
171
171
  that is already on the screen. Examples would be an expanding header or an
172
- accordion. This type does affects layout, its current size will push other sibling
172
+ accordion. This type does affect layout, its current size will push other sibling
173
173
  elements to make room for itself. Because of this, repainting the layout does happen
174
174
  during transition.
175
175
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -190,7 +190,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
190
190
  * screen.
191
191
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
192
192
  * that is already on the screen. Examples would be an expanding header or an
193
- * accordion. This type does affects layout, its current size will push other sibling
193
+ * accordion. This type does affect layout, its current size will push other sibling
194
194
  * elements to make room for itself. Because of this, repainting the layout does happen
195
195
  * during transition.
196
196
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -246,7 +246,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
246
246
  if (type === 'clip' && (direction === 'left' || direction === 'right')) {
247
247
  style.width = clipWidth;
248
248
  } else if ((type === 'fade' || type === 'slide') && duration && !css[duration]) {
249
- // If it's a number, assume it's miliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
249
+ // If it's a number, assume it's milliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
250
250
  style.transitionDuration = formatter(duration);
251
251
  }
252
252
  return style;
@@ -268,7 +268,7 @@ var TransitionBase = exports.TransitionBase = (0, _kind["default"])({
268
268
  }
269
269
  // If duration isn't a known named string, assume it is a CSS duration value
270
270
  if (duration && !css[duration]) {
271
- // If it's a number, assume it's miliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
271
+ // If it's a number, assume it's milliseconds, if not, assume it's already a CSS duration string (like "200ms" or "2s")
272
272
  _style.transitionDuration = formatter(duration);
273
273
  }
274
274
  }
@@ -500,7 +500,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
500
500
  * `'medium'` (500ms) is default when no others are specified.
501
501
  *
502
502
  * Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
503
- * are also supported and treated as miliseconds.
503
+ * are also supported and treated as milliseconds.
504
504
  *
505
505
  * @type {String|Number}
506
506
  * @default 'medium'
@@ -555,7 +555,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
555
555
  * screen.
556
556
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
557
557
  * that is already on the screen. Examples would be an expanding header or an
558
- * accordion. This type does affects layout, its current size will push other sibling
558
+ * accordion. This type does affect layout, its current size will push other sibling
559
559
  * elements to make room for itself. Because of this, repainting the layout does happen
560
560
  * during transition.
561
561
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -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
@@ -90,21 +90,21 @@ describe('Transition Specs', function () {
90
90
  var actual = _react.screen.getByTestId('transition');
91
91
  expect(actual).toHaveClass(expected);
92
92
  });
93
- test('should fire \'onShow\' event with type when \'visible\' prop bacomes true', function () {
93
+ test('should fire \'onShow\' event with type when \'visible\' prop becomes true', function () {
94
94
  var handleShow = jest.fn();
95
95
  var ChildNode = function ChildNode(props) {
96
96
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, props), {}, {
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,
@@ -118,21 +118,21 @@ describe('Transition Specs', function () {
118
118
  expect(handleShow).toBeCalledTimes(expected);
119
119
  expect(actual).toMatchObject(expectedType);
120
120
  });
121
- test('should fire \'onHide\' event with type when \'visible\' prop bacomes false', function () {
121
+ test('should fire \'onHide\' event with type when \'visible\' prop becomes false', function () {
122
122
  var handleHide = jest.fn();
123
123
  var ChildNode = function ChildNode(props) {
124
124
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, props), {}, {
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"
@@ -124,7 +124,7 @@ var SlideRightArranger = exports.SlideRightArranger = SlideArranger({
124
124
  });
125
125
 
126
126
  /**
127
- * An arranger that enters from the right and leaves to the left..
127
+ * An arranger that enters from the right and leaves to the left.
128
128
  *
129
129
  * @type {Arranger}
130
130
  * @memberof ui/ViewManager
@@ -135,7 +135,7 @@ var SlideLeftArranger = exports.SlideLeftArranger = SlideArranger({
135
135
  });
136
136
 
137
137
  /**
138
- * An arranger that enters from the bottom and leaves to the top..
138
+ * An arranger that enters from the bottom and leaves to the top.
139
139
  *
140
140
  * @type {Arranger}
141
141
  * @memberof ui/ViewManager
@@ -146,7 +146,7 @@ var SlideTopArranger = exports.SlideTopArranger = SlideArranger({
146
146
  });
147
147
 
148
148
  /**
149
- * An arranger that enters from the top and leaves to the bottom..
149
+ * An arranger that enters from the top and leaves to the bottom.
150
150
  *
151
151
  * @type {Arranger}
152
152
  * @memberof ui/ViewManager