@enact/ui 5.0.0-alpha.1 → 5.0.0-alpha.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 (148) hide show
  1. package/AnnounceDecorator/Announce.js +19 -21
  2. package/AnnounceDecorator/AnnounceDecorator.js +4 -4
  3. package/AnnounceDecorator/tests/Announce-specs.js +1 -1
  4. package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +1 -1
  5. package/AnnounceDecorator/tests/useAnnounce-specs.js +1 -1
  6. package/AnnounceDecorator/useAnnounce.js +1 -1
  7. package/BodyText/BodyText.js +4 -4
  8. package/Button/Button.js +4 -4
  9. package/Button/tests/Button-specs.js +3 -3
  10. package/CHANGELOG.md +51 -4
  11. package/Cancelable/Cancelable.d.ts +1 -1
  12. package/Cancelable/Cancelable.js +23 -25
  13. package/Cancelable/cancelHandler.js +1 -1
  14. package/Cancelable/tests/Cancelable-specs.js +3 -3
  15. package/Changeable/Changeable.js +21 -23
  16. package/Changeable/tests/Changeable-specs.js +1 -1
  17. package/ComponentOverride/ComponentOverride.js +3 -3
  18. package/FloatingLayer/FloatingLayer.js +20 -22
  19. package/FloatingLayer/FloatingLayerContainer.js +5 -6
  20. package/FloatingLayer/FloatingLayerDecorator.js +4 -4
  21. package/FloatingLayer/Scrim.js +17 -19
  22. package/FloatingLayer/tests/FloatingLayer-specs.js +2 -2
  23. package/FloatingLayer/tests/Scrim-specs.js +1 -1
  24. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +1 -1
  25. package/FloatingLayer/useFloatingLayer.js +4 -4
  26. package/FloatingLayer/useFloatingLayerDecorator.js +1 -1
  27. package/ForwardRef/ForwardRef.js +2 -2
  28. package/Group/Group.js +4 -4
  29. package/Group/GroupItem.js +4 -4
  30. package/Group/tests/Group-specs.js +3 -3
  31. package/Heading/Heading.d.ts +1 -1
  32. package/Heading/Heading.js +5 -5
  33. package/Heading/tests/Heading-specs.js +1 -1
  34. package/Icon/Icon.js +4 -4
  35. package/Image/Image.js +4 -4
  36. package/ImageItem/ImageItem.js +4 -4
  37. package/ImageItem/tests/ImageItem-specs.js +1 -1
  38. package/Item/Item.js +4 -4
  39. package/Item/tests/Item-specs.js +3 -3
  40. package/LabeledIcon/LabeledIcon.js +4 -4
  41. package/LabeledIcon/tests/LabeledIcon-specs.js +1 -1
  42. package/Layout/Cell.js +6 -6
  43. package/Layout/Layout.d.ts +1 -1
  44. package/Layout/Layout.js +6 -6
  45. package/Layout/tests/Layout-specs.js +5 -5
  46. package/Marquee/MarqueeBase.js +4 -4
  47. package/Marquee/MarqueeController.js +2 -2
  48. package/Marquee/MarqueeDecorator.js +27 -29
  49. package/Marquee/index.js +1 -1
  50. package/Marquee/tests/Marquee-specs.js +4 -5
  51. package/Marquee/useMarqueeController.js +2 -2
  52. package/Measurable/Measurable.js +7 -7
  53. package/Measurable/tests/Measurable-specs.js +6 -8
  54. package/Media/Media.js +16 -18
  55. package/Placeholder/PlaceholderControllerDecorator.js +22 -24
  56. package/Placeholder/PlaceholderDecorator.js +19 -21
  57. package/Placeholder/index.js +1 -1
  58. package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
  59. package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
  60. package/ProgressBar/ProgressBar.js +4 -4
  61. package/ProgressBar/tests/ProgressBar-specs.js +1 -1
  62. package/Repeater/Repeater.d.ts +1 -1
  63. package/Repeater/Repeater.js +5 -5
  64. package/Repeater/tests/Repeater-specs.js +1 -1
  65. package/Resizable/Resizable.js +2 -2
  66. package/Resizable/tests/Resizable-specs.js +1 -1
  67. package/Resizable/tests/useResize-specs.js +2 -2
  68. package/Resizable/useResize.js +2 -2
  69. package/Routable/Link.js +16 -18
  70. package/Routable/Routable.js +4 -4
  71. package/Routable/Route.js +1 -1
  72. package/Routable/Router.js +22 -24
  73. package/Routable/tests/Routable-specs.js +8 -8
  74. package/Routable/tests/Router-specs.js +1 -1
  75. package/Routable/util.js +1 -1
  76. package/Scroller/Scroller.js +4 -3
  77. package/Scroller/ScrollerBasic.js +18 -20
  78. package/Scroller/tests/Scroller-specs.js +1 -1
  79. package/Skinnable/Skinnable.js +5 -5
  80. package/Skinnable/tests/Skinnable-specs.js +2 -2
  81. package/Skinnable/tests/useSkins-specs.js +2 -2
  82. package/Skinnable/util.js +2 -2
  83. package/Slider/Knob.js +5 -5
  84. package/Slider/PositionDecorator.js +24 -26
  85. package/Slider/Slider.d.ts +4 -4
  86. package/Slider/Slider.js +7 -7
  87. package/Slider/tests/Slider-specs.js +1 -1
  88. package/Slottable/Slottable.js +2 -2
  89. package/Slottable/tests/Slottable-specs.js +1 -1
  90. package/Slottable/tests/useSlots-specs.js +1 -1
  91. package/Slottable/useSlots.js +6 -6
  92. package/Spinner/Spinner.js +4 -4
  93. package/ToggleIcon/ToggleIcon.js +4 -4
  94. package/ToggleIcon/tests/ToggleIcon-specs.js +3 -3
  95. package/Toggleable/Toggle.js +5 -6
  96. package/Toggleable/Toggleable.js +4 -4
  97. package/Toggleable/tests/Toggleable-specs.js +1 -1
  98. package/Toggleable/useToggle.js +8 -8
  99. package/Touchable/ClickAllow.js +5 -6
  100. package/Touchable/Drag.js +5 -5
  101. package/Touchable/Flick.js +6 -7
  102. package/Touchable/Hold.js +6 -7
  103. package/Touchable/Pinch.js +5 -5
  104. package/Touchable/Touch.js +5 -6
  105. package/Touchable/Touchable.js +4 -4
  106. package/Touchable/config.js +2 -2
  107. package/Touchable/tests/Touchable-specs.js +3 -3
  108. package/Touchable/tests/useTouch-specs.js +4 -4
  109. package/Touchable/useTouch.js +6 -6
  110. package/Transition/Transition.d.ts +3 -3
  111. package/Transition/Transition.js +21 -23
  112. package/Transition/tests/Transition-specs.js +7 -7
  113. package/ViewManager/Arranger.js +5 -5
  114. package/ViewManager/TransitionGroup.js +17 -19
  115. package/ViewManager/View.js +14 -16
  116. package/ViewManager/ViewManager.d.ts +3 -3
  117. package/ViewManager/ViewManager.js +23 -25
  118. package/ViewManager/tests/View-specs.js +1 -1
  119. package/ViewManager/tests/ViewManager-specs.js +15 -17
  120. package/VirtualList/VirtualList.js +5 -4
  121. package/VirtualList/VirtualListBasic.js +42 -43
  122. package/VirtualList/tests/VirtualGridList-native-specs.js +3 -3
  123. package/VirtualList/tests/VirtualGridList-specs.js +5 -5
  124. package/VirtualList/tests/VirtualList-native-specs.js +4 -4
  125. package/VirtualList/tests/VirtualList-specs.js +6 -6
  126. package/internal/IdProvider/IdProvider.js +2 -2
  127. package/internal/IdProvider/Provider.js +4 -5
  128. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  129. package/internal/IdProvider/tests/useId-specs.js +2 -2
  130. package/internal/IdProvider/useId.js +1 -1
  131. package/internal/Pure/Pure.js +19 -21
  132. package/internal/Pure/tests/Pure-specs.js +14 -16
  133. package/internal/localized-fonts/localized-fonts.js +4 -4
  134. package/internal/selection/selection.js +1 -1
  135. package/package.json +6 -5
  136. package/resolution/ResolutionDecorator.js +20 -22
  137. package/resolution/index.d.ts +1 -1
  138. package/resolution/index.js +1 -1
  139. package/resolution/resolution.js +1 -1
  140. package/resolution/tests/ResolutionDecorator-specs.js +1 -1
  141. package/styles/mixins.less +3 -3
  142. package/useControlledState/tests/useControlledState-specs.js +5 -5
  143. package/useControlledState/useControlledState.js +4 -4
  144. package/useScroll/ScrollAnimator.js +5 -6
  145. package/useScroll/Scrollbar.js +4 -4
  146. package/useScroll/ScrollbarTrack.js +4 -4
  147. package/useScroll/useScroll.js +8 -8
  148. package/useScroll/utilDOM.js +1 -1
@@ -5,9 +5,9 @@ var _config = require("../config");
5
5
  var _Touchable = _interopRequireDefault(require("../Touchable"));
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
7
  var _excluded = ["children", "id", "onClick", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseUp", "onTouchStart", "onTouchEnd"];
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- 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; }
10
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
11
11
  describe('Touchable', function () {
12
12
  beforeEach(function () {
13
13
  jest.useFakeTimers();
@@ -5,14 +5,14 @@ var _config = require("../config");
5
5
  var _useTouch = _interopRequireDefault(require("../useTouch"));
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
7
  var _excluded = ["activeProp", "id"];
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
9
  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; }
10
10
  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; }
11
- 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; }
11
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
12
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
13
13
  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); }
14
- 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; }
15
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
16
16
  describe('useTouch', function () {
17
17
  var data;
18
18
  var DivComponent = function DivComponent(props) {
@@ -9,18 +9,18 @@ var _useClass = _interopRequireDefault(require("@enact/core/useClass"));
9
9
  var _react = require("react");
10
10
  var _state = require("./state");
11
11
  var _Touch = _interopRequireDefault(require("./Touch"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  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; }
14
14
  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; }
15
- 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; }
15
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
17
17
  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); }
18
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
19
19
  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."); }
20
- 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); }
21
- 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; }
20
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
21
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22
22
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
23
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
24
24
  /**
25
25
  * Configuration for `useTouch`
26
26
  *
@@ -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)
@@ -15,22 +15,22 @@ var _TransitionModule = _interopRequireDefault(require("./Transition.module.css"
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  var _excluded = ["css", "childRef", "children", "innerStyle"],
17
17
  _excluded2 = ["visible"];
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
21
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
22
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
23
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
24
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
26
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
18
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
23
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
24
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
27
25
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
28
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
- 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; }
30
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
26
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
27
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
28
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
29
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
30
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
31
31
  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; }
32
32
  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; }
33
- 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; }
33
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
34
34
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
35
35
  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); } /**
36
36
  * A component that can transition its children components onto the screen.
@@ -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
  }
@@ -317,12 +317,10 @@ var TRANSITION_STATE = {
317
317
  * @public
318
318
  */
319
319
  var Transition = exports.Transition = /*#__PURE__*/function (_Component) {
320
- _inherits(Transition, _Component);
321
- var _super = _createSuper(Transition);
322
320
  function Transition(props) {
323
321
  var _this;
324
322
  _classCallCheck(this, Transition);
325
- _this = _super.call(this, props);
323
+ _this = _callSuper(this, Transition, [props]);
326
324
  _this.measuringJob = new _util.Job(function () {
327
325
  _this.setState({
328
326
  renderState: TRANSITION_STATE.MEASURE
@@ -376,7 +374,8 @@ var Transition = exports.Transition = /*#__PURE__*/function (_Component) {
376
374
  _this.resizeRegistry = null;
377
375
  return _this;
378
376
  }
379
- _createClass(Transition, [{
377
+ _inherits(Transition, _Component);
378
+ return _createClass(Transition, [{
380
379
  key: "componentDidMount",
381
380
  value: function componentDidMount() {
382
381
  if (!this.props.visible) {
@@ -474,7 +473,6 @@ var Transition = exports.Transition = /*#__PURE__*/function (_Component) {
474
473
  return null;
475
474
  }
476
475
  }]);
477
- return Transition;
478
476
  }(_react.Component);
479
477
  Transition.contextType = _Resizable.ResizeContext;
480
478
  Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
@@ -502,7 +500,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
502
500
  * `'medium'` (500ms) is default when no others are specified.
503
501
  *
504
502
  * Any valid CSS duration value is also accepted, e.g. "200ms" or "3s". Pure numeric values
505
- * are also supported and treated as miliseconds.
503
+ * are also supported and treated as milliseconds.
506
504
  *
507
505
  * @type {String|Number}
508
506
  * @default 'medium'
@@ -557,7 +555,7 @@ Transition.propTypes = /** @lends ui/Transition.Transition.prototype */{
557
555
  * screen.
558
556
  * * `'clip'` - This is useful for showing a component that transitions-in from a location
559
557
  * that is already on the screen. Examples would be an expanding header or an
560
- * 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
561
559
  * elements to make room for itself. Because of this, repainting the layout does happen
562
560
  * during transition.
563
561
  * * `'fade'` - Fade the components onto the screen, from 0 opacity (completely invisible)
@@ -6,15 +6,15 @@ var _Transition = _interopRequireWildcard(require("../Transition"));
6
6
  var _jsxRuntime = require("react/jsx-runtime");
7
7
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
8
8
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
9
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
10
10
  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."); }
11
- 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); }
12
- 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; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
13
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
15
15
  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; }
16
16
  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; }
17
- 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; }
17
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
19
19
  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); }
20
20
  describe('Transition Specs', function () {
@@ -90,7 +90,7 @@ 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), {}, {
@@ -118,7 +118,7 @@ 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), {}, {
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.shape = exports.arrange = exports.SlideTopArranger = exports.SlideRightArranger = exports.SlideLeftArranger = exports.SlideBottomArranger = exports.SlideArranger = void 0;
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
9
  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; }
10
10
  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; }
11
- 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; }
11
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
12
12
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
13
13
  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); } /*
14
14
  * Exports a number of pre-defined arrangers for use with {@link ui/ViewManager}.
@@ -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
@@ -17,19 +17,19 @@ var _unionWith = _interopRequireDefault(require("ramda/src/unionWith"));
17
17
  var _useWith = _interopRequireDefault(require("ramda/src/useWith"));
18
18
  var _react = require("react");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
22
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
23
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
21
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
22
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
23
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
24
24
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
25
25
  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); }
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
30
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
26
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
27
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
28
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
31
29
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /*
30
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
31
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
32
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
33
33
  * Exports the {@link ui/ViewManager.TransitionGroup} component.
34
34
  */ // Using string refs from the source code of ReactTransitionGroup
35
35
  /**
@@ -88,17 +88,15 @@ var forwardOnStay = (0, _handle.forward)('onStay');
88
88
  * @private
89
89
  */
90
90
  var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Component) {
91
- _inherits(TransitionGroup, _Component);
92
- var _super = _createSuper(TransitionGroup);
93
91
  function TransitionGroup(props) {
94
92
  var _this;
95
93
  _classCallCheck(this, TransitionGroup);
96
- _this = _super.call(this, props);
94
+ _this = _callSuper(this, TransitionGroup, [props]);
97
95
  _this.performAppear = function (key) {
98
96
  _this.currentlyTransitioningKeys[key] = true;
99
97
  var component = _this.groupRefs[key];
100
98
  if (component.componentWillAppear) {
101
- component.componentWillAppear(_this._handleDoneAppearing.bind(_assertThisInitialized(_this), key));
99
+ component.componentWillAppear(_this._handleDoneAppearing.bind(_this, key));
102
100
  } else {
103
101
  _this._handleDoneAppearing(key);
104
102
  }
@@ -128,7 +126,7 @@ var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Componen
128
126
  _this.currentlyTransitioningKeys[key] = true;
129
127
  var component = _this.groupRefs[key];
130
128
  if (component.componentWillEnter) {
131
- component.componentWillEnter(_this._handleDoneEntering.bind(_assertThisInitialized(_this), key));
129
+ component.componentWillEnter(_this._handleDoneEntering.bind(_this, key));
132
130
  } else {
133
131
  _this._handleDoneEntering(key);
134
132
  }
@@ -149,7 +147,7 @@ var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Componen
149
147
  _this.performStay = function (key) {
150
148
  var component = _this.groupRefs[key];
151
149
  if (component.componentWillStay) {
152
- component.componentWillStay(_this._handleDoneStaying.bind(_assertThisInitialized(_this), key));
150
+ component.componentWillStay(_this._handleDoneStaying.bind(_this, key));
153
151
  } else {
154
152
  _this._handleDoneStaying(key);
155
153
  }
@@ -168,7 +166,7 @@ var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Componen
168
166
  _this.currentlyTransitioningKeys[key] = true;
169
167
  var component = _this.groupRefs[key];
170
168
  if (component.componentWillLeave) {
171
- component.componentWillLeave(_this._handleDoneLeaving.bind(_assertThisInitialized(_this), key));
169
+ component.componentWillLeave(_this._handleDoneLeaving.bind(_this, key));
172
170
  } else {
173
171
  // Note that this is somewhat dangerous b/c it calls setState()
174
172
  // again, effectively mutating the component before all the work
@@ -231,7 +229,8 @@ var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Componen
231
229
  _this.refNodeId = '#transition#group#';
232
230
  return _this;
233
231
  }
234
- _createClass(TransitionGroup, [{
232
+ _inherits(TransitionGroup, _Component);
233
+ return _createClass(TransitionGroup, [{
235
234
  key: "componentDidMount",
236
235
  value: function componentDidMount() {
237
236
  var _this2 = this;
@@ -416,7 +415,6 @@ var TransitionGroup = exports.TransitionGroup = /*#__PURE__*/function (_Componen
416
415
  };
417
416
  }
418
417
  }]);
419
- return TransitionGroup;
420
418
  }(_react.Component);
421
419
  TransitionGroup.propTypes = /** @lends ui/ViewManager.TransitionGroup.prototype */{
422
420
  children: _propTypes2["default"].node.isRequired,
@@ -9,22 +9,22 @@ var _react = require("react");
9
9
  var _propTypes = _interopRequireDefault(require("prop-types"));
10
10
  var _Arranger = require("./Arranger");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  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; }
14
14
  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; }
15
- 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; }
16
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
17
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
18
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
19
19
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20
20
  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); }
21
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
24
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
25
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
21
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == typeof e || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
23
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
26
24
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } /*
25
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
26
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
27
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
28
28
  * Exports the {@link ui/ViewManager.View} component.
29
29
  */ // If the View was "appearing", then entering will always be false and this will not result in a
30
30
  // re-render. If the view should enter, state.enter will be true and this will toggle it to false
@@ -45,12 +45,10 @@ var clearEntering = function clearEntering(_ref) {
45
45
  * @private
46
46
  */
47
47
  var View = exports.View = /*#__PURE__*/function (_Component) {
48
- _inherits(View, _Component);
49
- var _super = _createSuper(View);
50
48
  function View(props) {
51
49
  var _this;
52
50
  _classCallCheck(this, View);
53
- _this = _super.call(this, props);
51
+ _this = _callSuper(this, View, [props]);
54
52
  _this.enteringJob = new _util.Job(function () {
55
53
  _this.setState(clearEntering);
56
54
  });
@@ -114,7 +112,8 @@ var View = exports.View = /*#__PURE__*/function (_Component) {
114
112
  };
115
113
  return _this;
116
114
  }
117
- _createClass(View, [{
115
+ _inherits(View, _Component);
116
+ return _createClass(View, [{
118
117
  key: "shouldComponentUpdate",
119
118
  value: function shouldComponentUpdate(nextProps) {
120
119
  if (nextProps.leaving) {
@@ -244,7 +243,6 @@ var View = exports.View = /*#__PURE__*/function (_Component) {
244
243
  }
245
244
  }
246
245
  }]);
247
- return View;
248
246
  }(_react.Component); // Not a true render method but instead a wrapper for TransitionGroup to wrap arbitrary children
249
247
  // with a TransitionGroup-compatible child that supports animation
250
248
  //
@@ -156,15 +156,15 @@ export function SlideArranger(config: object): Arranger;
156
156
  */
157
157
  export declare const SlideRightArranger: Arranger;
158
158
  /**
159
- * An arranger that enters from the right and leaves to the left..
159
+ * An arranger that enters from the right and leaves to the left.
160
160
  */
161
161
  export declare const SlideLeftArranger: Arranger;
162
162
  /**
163
- * An arranger that enters from the bottom and leaves to the top..
163
+ * An arranger that enters from the bottom and leaves to the top.
164
164
  */
165
165
  export declare const SlideTopArranger: Arranger;
166
166
  /**
167
- * An arranger that enters from the top and leaves to the bottom..
167
+ * An arranger that enters from the top and leaves to the bottom.
168
168
  */
169
169
  export declare const SlideBottomArranger: Arranger;
170
170