@enact/ui 4.7.9 → 4.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnnounceDecorator/Announce.js +2 -2
- package/AnnounceDecorator/AnnounceDecorator.js +2 -2
- package/BodyText/BodyText.js +2 -2
- package/BodyText/tests/BodyText-specs.js +2 -2
- package/Button/Button.js +16 -16
- package/CHANGELOG.md +16 -0
- package/Cancelable/Cancelable.js +14 -14
- package/Cancelable/tests/Cancelable-specs.js +2 -2
- package/Changeable/Changeable.js +14 -14
- package/ComponentOverride/ComponentOverride.js +3 -3
- package/FloatingLayer/FloatingLayer.js +11 -11
- package/FloatingLayer/FloatingLayerContainer.js +2 -2
- package/FloatingLayer/FloatingLayerDecorator.js +2 -2
- package/FloatingLayer/Scrim.js +2 -2
- package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +2 -2
- package/ForwardRef/ForwardRef.js +12 -12
- package/GridListImageItem/GridListImageItem.js +2 -2
- package/Group/Group.js +2 -2
- package/Group/GroupItem.js +16 -17
- package/Group/tests/Group-specs.js +2 -2
- package/Heading/Heading.js +21 -21
- package/Icon/Icon.js +2 -2
- package/Icon/tests/Icon-specs.js +2 -2
- package/IconButton/IconButton.js +2 -2
- package/Image/Image.js +2 -2
- package/Image/tests/Image-specs.js +2 -2
- package/ImageItem/ImageItem.js +2 -2
- package/ImageItem/tests/ImageItem-specs.js +4 -4
- package/Item/Item.js +2 -2
- package/LabeledIcon/LabeledIcon.js +2 -2
- package/Layout/Cell.js +2 -2
- package/Layout/Layout.js +154 -154
- package/Layout/tests/Layout-specs.js +4 -4
- package/Marquee/MarqueeBase.js +2 -2
- package/Marquee/MarqueeController.js +2 -3
- package/Marquee/MarqueeDecorator.js +2 -2
- package/Marquee/tests/Marquee-specs.js +2 -2
- package/Measurable/Measurable.js +13 -15
- package/Measurable/tests/Measurable-specs.js +4 -4
- package/Media/Media.js +31 -31
- package/Placeholder/PlaceholderControllerDecorator.js +8 -8
- package/Placeholder/PlaceholderDecorator.js +8 -8
- package/ProgressBar/ProgressBar.js +14 -15
- package/README.md +1 -1
- package/RadioDecorator/RadioControllerDecorator.js +2 -2
- package/RadioDecorator/RadioDecorator.js +14 -14
- package/Repeater/Repeater.js +15 -15
- package/Repeater/tests/Repeater-specs.js +4 -4
- package/Resizable/Resizable.js +12 -12
- package/Resizable/tests/Resizable-specs.js +2 -2
- package/Resizable/tests/useResize-specs.js +2 -2
- package/Resizable/useResize.js +3 -2
- package/Routable/Link.js +2 -2
- package/Routable/Routable.js +15 -15
- package/Routable/Router.js +2 -2
- package/Routable/tests/Routable-specs.js +2 -2
- package/Scrollable/ScrollAnimator.js +2 -2
- package/Scrollable/ScrollThumb.js +9 -9
- package/Scrollable/Scrollable.js +12 -12
- package/Scrollable/ScrollableNative.js +4 -5
- package/Scrollable/Scrollbar.js +2 -2
- package/Scroller/Scroller.js +9 -9
- package/Scroller/ScrollerBasic.js +9 -9
- package/Scroller/UiScrollerBase.js +12 -12
- package/Skinnable/Skinnable.js +2 -2
- package/Skinnable/tests/Skinnable-specs.js +2 -2
- package/Skinnable/tests/useSkins-specs.js +2 -2
- package/Slider/Knob.js +2 -2
- package/Slider/PositionDecorator.js +2 -2
- package/Slider/Slider.js +17 -17
- package/SlotItem/SlotItem.js +2 -2
- package/Slottable/Slottable.js +15 -15
- package/Slottable/useSlots.js +2 -2
- package/Spinner/Spinner.js +2 -2
- package/ToggleIcon/ToggleIcon.js +2 -2
- package/ToggleItem/ToggleItem.js +2 -2
- package/ToggleItem/tests/ToggleItem-specs.js +4 -4
- package/Toggleable/Toggle.js +2 -2
- package/Toggleable/Toggleable.js +15 -16
- package/Toggleable/useToggle.js +1 -0
- package/Touchable/ClickAllow.js +2 -2
- package/Touchable/Drag.js +2 -2
- package/Touchable/Flick.js +2 -2
- package/Touchable/Hold.js +2 -2
- package/Touchable/Pinch.js +2 -2
- package/Touchable/Touch.js +2 -2
- package/Touchable/Touchable.js +2 -2
- package/Touchable/config.js +2 -2
- package/Touchable/tests/useTouch-specs.js +2 -2
- package/Touchable/useTouch.js +3 -2
- package/Transition/Transition.js +18 -18
- package/Transition/tests/Transition-specs.js +4 -4
- package/ViewManager/Arranger.js +5 -5
- package/ViewManager/TransitionGroup.js +6 -5
- package/ViewManager/View.js +4 -4
- package/ViewManager/ViewManager.js +4 -4
- package/ViewManager/tests/ViewManager-specs.js +2 -3
- package/VirtualList/UiVirtualListBase.js +2 -2
- package/VirtualList/VirtualList.js +12 -12
- package/VirtualList/VirtualListBasic.js +2 -2
- package/VirtualList/tests/VirtualGridList-native-specs.js +2 -2
- package/VirtualList/tests/VirtualGridList-specs.js +2 -2
- package/VirtualList/tests/VirtualList-native-specs.js +2 -2
- package/VirtualList/tests/VirtualList-specs.js +2 -2
- package/internal/IdProvider/IdProvider.js +7 -7
- package/internal/IdProvider/Provider.js +2 -2
- package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
- package/internal/IdProvider/tests/useId-specs.js +2 -2
- package/internal/IdProvider/useId.js +1 -0
- package/internal/Pure/Pure.js +12 -12
- package/internal/Pure/tests/Pure-specs.js +2 -2
- package/internal/localized-fonts/tests/localized-fonts-specs.js +0 -1
- package/package.json +2 -2
- package/resolution/ResolutionDecorator.js +11 -11
- package/resolution/index.js +2 -2
- package/useScroll/ScrollAnimator.js +2 -2
- package/useScroll/Scrollbar.js +2 -2
- package/useScroll/ScrollbarTrack.js +2 -2
- package/useScroll/useScroll.js +2 -4
package/useScroll/useScroll.js
CHANGED
|
@@ -46,8 +46,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
46
46
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47
47
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48
48
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49
|
-
function _toPropertyKey(
|
|
50
|
-
function _toPrimitive(
|
|
49
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
50
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
51
51
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
52
52
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
53
53
|
var constants = exports.constants = {
|
|
@@ -641,7 +641,6 @@ var useScrollBase = exports.useScrollBase = function useScrollBase(props) {
|
|
|
641
641
|
targetY: mutableRef.current.scrollTop + (isVerticalFlick ? -ev.velocityY : 0) * overscrollVelocityFactor // 'vertical' or 'both'
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
|
|
645
644
|
if (props.onFlick) {
|
|
646
645
|
(0, _handle.forward)('onFlick', ev, props);
|
|
647
646
|
}
|
|
@@ -1460,7 +1459,6 @@ var useScrollBase = exports.useScrollBase = function useScrollBase(props) {
|
|
|
1460
1459
|
onFlick: onFlick,
|
|
1461
1460
|
onTouchStart: scrollMode === 'native' ? onTouchStart : null // scrollMode 'native'
|
|
1462
1461
|
}));
|
|
1463
|
-
|
|
1464
1462
|
var scrollContentProps = props.itemRenderer ?
|
|
1465
1463
|
// If the child component is a VirtualList
|
|
1466
1464
|
{
|