@enact/ui 4.1.0 → 4.1.3

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 (89) hide show
  1. package/AnnounceDecorator/tests/Announce-specs.js +13 -5
  2. package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +9 -7
  3. package/AnnounceDecorator/tests/useAnnounce-specs.js +25 -17
  4. package/BodyText/BodyText.d.ts +1 -1
  5. package/BodyText/tests/BodyText-specs.js +49 -35
  6. package/Button/Button.d.ts +6 -6
  7. package/Button/tests/Button-specs.js +104 -3
  8. package/CHANGELOG.md +15 -0
  9. package/Cancelable/Cancelable.js +1 -1
  10. package/Cancelable/tests/Cancelable-specs.js +131 -70
  11. package/Changeable/tests/Changeable-specs.js +162 -110
  12. package/FloatingLayer/FloatingLayer.js +5 -17
  13. package/FloatingLayer/tests/FloatingLayer-specs.js +83 -8
  14. package/FloatingLayer/tests/Scrim-specs.js +20 -11
  15. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +15 -9
  16. package/GridListImageItem/GridListImageItem.d.ts +1 -1
  17. package/Group/Group.d.ts +2 -2
  18. package/Group/tests/Group-specs.js +71 -41
  19. package/Heading/Heading.d.ts +2 -1
  20. package/Heading/tests/Heading-specs.js +27 -20
  21. package/Icon/Icon.d.ts +4 -4
  22. package/Icon/tests/Icon-specs.js +52 -31
  23. package/IconButton/IconButton.d.ts +4 -4
  24. package/IconButton/tests/IconButton-specs.js +2 -2
  25. package/Image/tests/Image-specs.js +39 -29
  26. package/ImageItem/tests/ImageItem-specs.js +71 -68
  27. package/Item/tests/Item-specs.js +59 -35
  28. package/LabeledIcon/LabeledIcon.d.ts +4 -4
  29. package/LabeledIcon/tests/LabeledIcon-specs.js +30 -19
  30. package/Layout/Layout.d.ts +16 -16
  31. package/Layout/tests/Layout-specs.js +37 -25
  32. package/Marquee/MarqueeBase.js +1 -5
  33. package/Marquee/tests/Marquee-specs.js +221 -116
  34. package/Media/Media.js +1 -3
  35. package/ProgressBar/tests/ProgressBar-specs.js +60 -42
  36. package/README.md +1 -1
  37. package/RadioDecorator/RadioDecorator.js +3 -5
  38. package/RadioDecorator/tests/RadioDecorator-specs.js +179 -65
  39. package/Repeater/Repeater.d.ts +2 -1
  40. package/Repeater/tests/Repeater-specs.js +86 -45
  41. package/Routable/Routable.d.ts +2 -2
  42. package/Routable/tests/Routable-specs.js +26 -17
  43. package/Routable/tests/Router-specs.js +65 -41
  44. package/Scrollable/Scrollable.js +2 -1
  45. package/Scrollable/ScrollableNative.js +2 -1
  46. package/Scroller/Scroller.d.ts +2 -2
  47. package/Scroller/ScrollerBasic.js +1 -1
  48. package/Scroller/UiScrollerBase.js +1 -1
  49. package/Skinnable/tests/Skinnable-specs.js +102 -54
  50. package/Skinnable/tests/useSkins-specs.js +37 -42
  51. package/Slider/Slider.d.ts +3 -3
  52. package/Slider/tests/Slider-specs.js +4 -4
  53. package/SlotItem/SlotItem.d.ts +2 -2
  54. package/SlotItem/tests/SlotItem-specs.js +4 -4
  55. package/Slottable/tests/Slottable-specs.js +67 -36
  56. package/Slottable/tests/useSlots-specs.js +68 -35
  57. package/Spinner/Spinner.d.ts +1 -1
  58. package/Spinner/tests/Spinner-specs.js +46 -31
  59. package/ToggleIcon/tests/ToggleIcon-specs.js +32 -20
  60. package/ToggleItem/ToggleItem.d.ts +13 -11
  61. package/ToggleItem/tests/ToggleItem-specs.js +51 -34
  62. package/Toggleable/Toggle.js +6 -6
  63. package/Toggleable/Toggleable.js +6 -12
  64. package/Toggleable/tests/Toggleable-specs.js +428 -324
  65. package/Touchable/Drag.js +13 -17
  66. package/Touchable/Flick.js +20 -16
  67. package/Touchable/Hold.js +14 -19
  68. package/Touchable/Touchable.d.ts +3 -3
  69. package/Touchable/tests/Touchable-specs.js +223 -109
  70. package/Touchable/tests/useTouch-specs.js +159 -84
  71. package/Transition/Transition.d.ts +29 -27
  72. package/Transition/Transition.js +5 -9
  73. package/Transition/tests/Transition-specs.js +135 -31
  74. package/ViewManager/TransitionGroup.js +6 -5
  75. package/ViewManager/View.js +1 -1
  76. package/ViewManager/ViewManager.d.ts +4 -4
  77. package/ViewManager/ViewManager.js +10 -10
  78. package/ViewManager/tests/View-specs.js +109 -81
  79. package/ViewManager/tests/ViewManager-specs.js +471 -185
  80. package/VirtualList/UiVirtualListBase.js +1 -1
  81. package/VirtualList/VirtualList.d.ts +11 -9
  82. package/VirtualList/VirtualListBasic.js +1 -1
  83. package/VirtualList/tests/VirtualList-specs.js +44 -31
  84. package/internal/IdProvider/tests/useId-specs.js +35 -18
  85. package/package.json +11 -11
  86. package/resolution/tests/ResolutionDecorator-specs.js +17 -8
  87. package/styles/mixins.less +14 -2
  88. package/useControlledState/tests/useControlledState-specs.js +67 -42
  89. package/useScroll/useScroll.js +2 -2
@@ -866,7 +866,7 @@ var useScrollBase = function useScrollBase(props) {
866
866
  }
867
867
 
868
868
  if (rtl && canScrollH) {
869
- scrollLeft = _platform.platform.ios || _platform.platform.safari || _platform.platform.chrome >= 85 ? -scrollLeft : bounds.maxLeft - scrollLeft;
869
+ scrollLeft = _platform.platform.ios || _platform.platform.safari || _platform.platform.chrome >= 85 || _platform.platform.androidChrome >= 85 ? -scrollLeft : bounds.maxLeft - scrollLeft;
870
870
  }
871
871
 
872
872
  if (scrollLeft !== mutableRef.current.scrollLeft) {
@@ -1594,7 +1594,7 @@ var useScrollBase = function useScrollBase(props) {
1594
1594
  // Prevent scroll by focus.
1595
1595
  // VirtualList and VirtualGridList DO NOT receive `onscroll` event.
1596
1596
  // Only Scroller could get `onscroll` event.
1597
- if (!mutableRef.current.animator.isAnimating() && scrollContentHandle.current && scrollContentRef.current && scrollContentHandle.current.getRtlPositionX) {
1597
+ if (!mutableRef.current.animator.isAnimating() && scrollContentHandle.current && scrollContentRef.current && scrollContentHandle.current.getRtlPositionX && !mutableRef.current.isDragging) {
1598
1598
  // For Scroller
1599
1599
  scrollContentRef.current.scrollTop = mutableRef.current.scrollTop;
1600
1600
  scrollContentRef.current.scrollLeft = scrollContentHandle.current.getRtlPositionX(mutableRef.current.scrollLeft);