@enact/ui 5.0.0-alpha.3 → 5.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/AnnounceDecorator/tests/Announce-specs.js +2 -2
  2. package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +2 -2
  3. package/AnnounceDecorator/tests/useAnnounce-specs.js +3 -3
  4. package/BodyText/tests/BodyText-specs.js +6 -6
  5. package/Button/tests/Button-specs.js +10 -10
  6. package/CHANGELOG.md +12 -1
  7. package/Cancelable/tests/Cancelable-specs.js +17 -17
  8. package/Changeable/tests/Changeable-specs.js +25 -25
  9. package/ComponentOverride/ComponentOverride.js +1 -1
  10. package/FloatingLayer/FloatingLayer.js +1 -1
  11. package/FloatingLayer/FloatingLayerDecorator.js +1 -1
  12. package/FloatingLayer/tests/FloatingLayer-specs.js +6 -6
  13. package/FloatingLayer/tests/Scrim-specs.js +2 -2
  14. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +3 -3
  15. package/Group/tests/Group-specs.js +11 -11
  16. package/Heading/tests/Heading-specs.js +14 -14
  17. package/Icon/tests/Icon-specs.js +9 -9
  18. package/Image/tests/Image-specs.js +5 -5
  19. package/ImageItem/tests/ImageItem-specs.js +11 -11
  20. package/Item/tests/Item-specs.js +7 -7
  21. package/LabeledIcon/LabeledIcon.js +1 -1
  22. package/LabeledIcon/tests/LabeledIcon-specs.js +4 -4
  23. package/Layout/tests/Layout-specs.js +10 -10
  24. package/Marquee/MarqueeController.js +1 -1
  25. package/Marquee/tests/Marquee-specs.js +44 -44
  26. package/Measurable/tests/Measurable-specs.js +3 -3
  27. package/Media/Media.js +1 -1
  28. package/Media/tests/Media-specs.js +12 -12
  29. package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
  30. package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
  31. package/ProgressBar/tests/ProgressBar-specs.js +7 -7
  32. package/Repeater/tests/Repeater-specs.js +14 -14
  33. package/Resizable/tests/Resizable-specs.js +1 -1
  34. package/Resizable/tests/useResize-specs.js +1 -1
  35. package/Routable/tests/Routable-specs.js +1 -1
  36. package/Routable/tests/Router-specs.js +10 -10
  37. package/Routable/util.js +3 -3
  38. package/Scroller/tests/Scroller-specs.js +3 -3
  39. package/Skinnable/Skinnable.js +1 -1
  40. package/Skinnable/tests/Skinnable-specs.js +19 -19
  41. package/Skinnable/tests/useSkins-specs.js +14 -14
  42. package/Slider/tests/Slider-specs.js +7 -7
  43. package/Slottable/tests/Slottable-specs.js +10 -10
  44. package/Slottable/tests/useSlots-specs.js +10 -10
  45. package/Spinner/tests/Spinner-specs.js +5 -5
  46. package/ToggleIcon/tests/ToggleIcon-specs.js +5 -5
  47. package/Toggleable/tests/Toggleable-specs.js +41 -41
  48. package/Touchable/tests/Touchable-specs.js +36 -36
  49. package/Touchable/tests/useTouch-specs.js +15 -15
  50. package/Transition/tests/Transition-specs.js +11 -11
  51. package/ViewManager/tests/View-specs.js +13 -13
  52. package/ViewManager/tests/ViewManager-specs.js +50 -50
  53. package/VirtualList/VirtualListBasic.js +1 -1
  54. package/VirtualList/tests/VirtualGridList-native-specs.js +6 -6
  55. package/VirtualList/tests/VirtualGridList-specs.js +23 -23
  56. package/VirtualList/tests/VirtualList-native-specs.js +7 -7
  57. package/VirtualList/tests/VirtualList-specs.js +29 -29
  58. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  59. package/internal/IdProvider/tests/useId-specs.js +6 -6
  60. package/internal/Pure/tests/Pure-specs.js +5 -5
  61. package/package.json +6 -6
  62. package/resolution/tests/ResolutionDecorator-specs.js +2 -2
  63. package/styles/mixins.less +0 -2
  64. package/useControlledState/tests/useControlledState-specs.js +10 -10
  65. package/useScroll/ScrollAnimator.js +3 -3
  66. package/useScroll/useScroll.js +3 -0
@@ -8,7 +8,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
8
8
  describe('ProgressBar Specs', function () {
9
9
  test('should return a DOM node reference for `componentRef`', function () {
10
10
  var ref = jest.fn();
11
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
11
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
12
12
  ref: ref
13
13
  }));
14
14
  var expected = 'DIV';
@@ -17,7 +17,7 @@ describe('ProgressBar Specs', function () {
17
17
  });
18
18
  describe('horizontal', function () {
19
19
  test('should have width of 0.5', function () {
20
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
20
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
21
21
  progress: 0.5
22
22
  }));
23
23
  var progressBar = _react.screen.getByRole('progressbar');
@@ -27,7 +27,7 @@ describe('ProgressBar Specs', function () {
27
27
  });
28
28
  });
29
29
  test('should have background width of 0.75', function () {
30
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
30
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
31
31
  backgroundProgress: 0.75
32
32
  }));
33
33
  var progressBar = _react.screen.getByRole('progressbar');
@@ -39,7 +39,7 @@ describe('ProgressBar Specs', function () {
39
39
  });
40
40
  describe('vertical', function () {
41
41
  test('should have height of 0.5', function () {
42
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
42
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
43
43
  orientation: "vertical",
44
44
  progress: 0.5
45
45
  }));
@@ -50,7 +50,7 @@ describe('ProgressBar Specs', function () {
50
50
  });
51
51
  });
52
52
  test('should have background height of 0.75', function () {
53
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
53
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
54
54
  backgroundProgress: 0.75,
55
55
  orientation: "vertical",
56
56
  progress: 0.5
@@ -64,7 +64,7 @@ describe('ProgressBar Specs', function () {
64
64
  });
65
65
  describe('radial', function () {
66
66
  test('should have a radius of 0.5', function () {
67
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
67
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
68
68
  orientation: "radial",
69
69
  progress: 0.5
70
70
  }));
@@ -75,7 +75,7 @@ describe('ProgressBar Specs', function () {
75
75
  });
76
76
  });
77
77
  test('should have background radius of 0.75', function () {
78
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
78
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProgressBar["default"], {
79
79
  backgroundProgress: 0.75,
80
80
  orientation: "radial",
81
81
  progress: 0.5
@@ -28,7 +28,7 @@ describe('Repeater Specs', function () {
28
28
  });
29
29
  };
30
30
  test('should have a root span element', function () {
31
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
31
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
32
32
  childComponent: "div",
33
33
  "data-testid": "repeater",
34
34
  children: stringItems
@@ -38,7 +38,7 @@ describe('Repeater Specs', function () {
38
38
  expect(rootElementName).toBe(expected);
39
39
  });
40
40
  test('should accept a nodeName as root element', function () {
41
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
41
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
42
42
  childComponent: "div",
43
43
  component: "div",
44
44
  "data-testid": "repeater",
@@ -49,7 +49,7 @@ describe('Repeater Specs', function () {
49
49
  expect(rootElementName).toBe(expected);
50
50
  });
51
51
  test('should accept a function as root element', function () {
52
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
52
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
53
53
  childComponent: "div",
54
54
  component: CustomRootType,
55
55
  "data-testid": "repeater",
@@ -60,7 +60,7 @@ describe('Repeater Specs', function () {
60
60
  expect(rootElementName).toBe(expected);
61
61
  });
62
62
  test('should accept a nodeName as childComponent', function () {
63
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
63
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
64
64
  childComponent: "div",
65
65
  "data-testid": "repeater",
66
66
  children: stringItems
@@ -70,7 +70,7 @@ describe('Repeater Specs', function () {
70
70
  expect(actual).toBe(expected);
71
71
  });
72
72
  test('should accept a function as childComponent', function () {
73
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
73
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
74
74
  childComponent: CustomType,
75
75
  "data-testid": "repeater",
76
76
  children: stringItems
@@ -80,7 +80,7 @@ describe('Repeater Specs', function () {
80
80
  expect(actual).toBe(expected);
81
81
  });
82
82
  test('should create a number of children matching the length of items', function () {
83
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
83
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
84
84
  childComponent: "div",
85
85
  "data-testid": "repeater",
86
86
  children: stringItems
@@ -90,7 +90,7 @@ describe('Repeater Specs', function () {
90
90
  expect(actual).toBe(expected);
91
91
  });
92
92
  test('should support an array of objects as items', function () {
93
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
93
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
94
94
  childComponent: CustomType,
95
95
  "data-testid": "repeater",
96
96
  children: objItems
@@ -100,7 +100,7 @@ describe('Repeater Specs', function () {
100
100
  expect(actual).toBe(expected);
101
101
  });
102
102
  test('should support passing itemProps to children', function () {
103
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
103
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
104
104
  childComponent: "div",
105
105
  "data-testid": "repeater",
106
106
  itemProps: {
@@ -113,7 +113,7 @@ describe('Repeater Specs', function () {
113
113
  expect(actual).toHaveAttribute('title', expected);
114
114
  });
115
115
  test('should pass index to each child', function () {
116
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
116
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
117
117
  childComponent: "div",
118
118
  "data-testid": "repeater",
119
119
  children: stringItems
@@ -123,7 +123,7 @@ describe('Repeater Specs', function () {
123
123
  expect(actual).toHaveAttribute('data-index', expected);
124
124
  });
125
125
  test('should pass data to each child', function () {
126
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
126
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
127
127
  childComponent: "div",
128
128
  childProp: "data-str",
129
129
  "data-testid": "repeater",
@@ -134,7 +134,7 @@ describe('Repeater Specs', function () {
134
134
  expect(actual).toHaveAttribute('data-str', expected);
135
135
  });
136
136
  test('should pass item as children to each child', function () {
137
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
137
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
138
138
  childComponent: "div",
139
139
  "data-testid": "repeater",
140
140
  children: stringItems
@@ -144,7 +144,7 @@ describe('Repeater Specs', function () {
144
144
  expect(actual).toHaveTextContent(expected);
145
145
  });
146
146
  test('should set role to list by default', function () {
147
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
147
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
148
148
  childComponent: "div",
149
149
  "data-testid": "repeater",
150
150
  children: stringItems
@@ -154,7 +154,7 @@ describe('Repeater Specs', function () {
154
154
  expect(listElement).toHaveAttribute('role', expected);
155
155
  });
156
156
  test('should allow role to be overridden', function () {
157
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
157
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater.RepeaterBase, {
158
158
  childComponent: "div",
159
159
  "data-testid": "repeater",
160
160
  role: "listbox",
@@ -166,7 +166,7 @@ describe('Repeater Specs', function () {
166
166
  });
167
167
  test('should return a DOM node reference for `componentRef`', function () {
168
168
  var ref = jest.fn();
169
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater["default"], {
169
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Repeater["default"], {
170
170
  childComponent: "div",
171
171
  component: "div",
172
172
  ref: ref,
@@ -21,7 +21,7 @@ describe('Resizable', function () {
21
21
  describe('config', function () {
22
22
  test('should pass \'onClick\' handler to the wrapped component', function () {
23
23
  var resizeRegistry = _Registry["default"].create();
24
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizable.ResizeContext.Provider, {
24
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizable.ResizeContext.Provider, {
25
25
  value: resizeRegistry.register,
26
26
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ResizableComponent, {})
27
27
  }));
@@ -30,7 +30,7 @@ describe('useResize', function () {
30
30
  describe('config', function () {
31
31
  test('should pass \'onClick\' handler to the wrapped component', function () {
32
32
  var resizeRegistry = _Registry["default"].create();
33
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizable.ResizeContext.Provider, {
33
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Resizable.ResizeContext.Provider, {
34
34
  value: resizeRegistry.register,
35
35
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ResizeButtonWithHook, {})
36
36
  }));
@@ -67,7 +67,7 @@ describe('Routable', function () {
67
67
  }));
68
68
  }
69
69
  var user = _userEvent["default"].setup();
70
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Sample, {}));
70
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Sample, {}));
71
71
  var linkToSecondPage = _react.screen.getByText('Page 2');
72
72
 
73
73
  // click once to navigate to new path
@@ -40,7 +40,7 @@ describe('Router', function () {
40
40
  }
41
41
  };
42
42
  test('should render a single component matching the {path}', function () {
43
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
43
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
44
44
  routes: routes,
45
45
  path: "/app"
46
46
  }));
@@ -48,7 +48,7 @@ describe('Router', function () {
48
48
  expect(view).toBeInTheDocument();
49
49
  });
50
50
  test('should render an array of components matching the {path}', function () {
51
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
51
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
52
52
  routes: routes,
53
53
  path: "/app/home"
54
54
  }));
@@ -57,7 +57,7 @@ describe('Router', function () {
57
57
  expect(view.length).toBe(expected);
58
58
  });
59
59
  test('should render an array of components matching the {path} as an array', function () {
60
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
60
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
61
61
  routes: routes,
62
62
  path: ['app', 'home']
63
63
  }));
@@ -69,7 +69,7 @@ describe('Router', function () {
69
69
  // Modify the console spy to silence error output with
70
70
  // an empty mock implementation
71
71
  console.error.mockImplementation();
72
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
72
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.RouterBase, {
73
73
  routes: routes,
74
74
  path: "/help"
75
75
  }));
@@ -86,7 +86,7 @@ describe('Router', function () {
86
86
  })
87
87
  });
88
88
  };
89
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.Router, {
89
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.Router, {
90
90
  routes: routes,
91
91
  path: "/app/settings",
92
92
  component: component
@@ -97,7 +97,7 @@ describe('Router', function () {
97
97
  expect(actual).toBe(expected);
98
98
  });
99
99
  test('should render an array of components matching the {path} using JSX routes', function () {
100
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
100
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
101
101
  path: "/app/home",
102
102
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Route["default"], {
103
103
  path: "app",
@@ -120,7 +120,7 @@ describe('Router', function () {
120
120
  expect(actual).toBe(expected);
121
121
  });
122
122
  test('should render a different component when the routes change for the same {path}', function () {
123
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
123
+ var _render = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
124
124
  path: "/app",
125
125
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Route["default"], {
126
126
  path: "app",
@@ -143,7 +143,7 @@ describe('Router', function () {
143
143
  "data-testid": "span"
144
144
  });
145
145
  };
146
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.Router, {
146
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Router.Router, {
147
147
  path: "/app",
148
148
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Route["default"], {
149
149
  path: "app",
@@ -161,7 +161,7 @@ describe('Router', function () {
161
161
  // Modify the console spy to silence error output with
162
162
  // an empty mock implementation
163
163
  console.error.mockImplementation();
164
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
164
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
165
165
  path: "/does/not/exist",
166
166
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Route["default"], {
167
167
  path: "app",
@@ -185,7 +185,7 @@ describe('Router', function () {
185
185
  // Modify the console spy to silence error output with
186
186
  // an empty mock implementation
187
187
  console.error.mockImplementation();
188
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
188
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Router.Router, {
189
189
  path: "/app/home/other",
190
190
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Route["default"], {
191
191
  path: "app",
package/Routable/util.js CHANGED
@@ -11,20 +11,20 @@ var RouteContext = exports.RouteContext = /*#__PURE__*/(0, _react.createContext)
11
11
  var toSegments = exports.toSegments = function toSegments(path) {
12
12
  return Array.isArray(path) ? path : (path || '').split('/').filter(Boolean);
13
13
  };
14
- var getPaths = function getPaths(routes, base) {
14
+ var _getPaths = function getPaths(routes, base) {
15
15
  var result = [];
16
16
  Object.keys(routes).filter(function (s) {
17
17
  return s[0] !== '$';
18
18
  }).forEach(function (p) {
19
19
  var path = base + '/' + p;
20
20
  result.push(path);
21
- result = result.concat(getPaths(routes[p], path));
21
+ result = result.concat(_getPaths(routes[p], path));
22
22
  });
23
23
  return result;
24
24
  };
25
25
  var stringifyRoutes = exports.stringifyRoutes = function stringifyRoutes(routes) {
26
26
  var pad = '\n\t';
27
- var paths = getPaths(routes, '');
27
+ var paths = _getPaths(routes, '');
28
28
  return pad + paths.join(pad);
29
29
  };
30
30
 
@@ -17,7 +17,7 @@ describe('Scroller', function () {
17
17
  });
18
18
  describe('Scrollbar visibility', function () {
19
19
  test('should render both horizontal and vertical scrollbars when \'horizontalScrollbar\' and \'verticalScrollbar\' are "visible"', function () {
20
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
20
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
21
21
  "data-testid": "scroller",
22
22
  horizontalScrollbar: "visible",
23
23
  verticalScrollbar: "visible",
@@ -29,7 +29,7 @@ describe('Scroller', function () {
29
29
  expect(verticalScrollbar).toBeInTheDocument();
30
30
  });
31
31
  test('should render only vertical scrollbar when \'verticalScrollbar\' is "visible" and \'horizontalScrollbar\' is "hidden"', function () {
32
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
32
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
33
33
  "data-testid": "scroller",
34
34
  horizontalScrollbar: "hidden",
35
35
  verticalScrollbar: "visible",
@@ -41,7 +41,7 @@ describe('Scroller', function () {
41
41
  expect(verticalScrollbar).toBeInTheDocument();
42
42
  });
43
43
  test('should not render any scrollbar when \'horizontalScrollbar\' and \'verticalScrollbar\' are "hidden"', function () {
44
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
44
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Scroller["default"], {
45
45
  "data-testid": "scroller",
46
46
  horizontalScrollbar: "hidden",
47
47
  verticalScrollbar: "hidden",
@@ -167,7 +167,7 @@ var Skinnable = exports.Skinnable = (0, _hoc["default"])(defaultConfig, function
167
167
  if (variantsProp) {
168
168
  rest[variantsProp] = hook.variants;
169
169
  }
170
- return hook.provideSkins( /*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, rest)));
170
+ return hook.provideSkins(/*#__PURE__*/(0, _jsxRuntime.jsx)(Wrapped, _objectSpread({}, rest)));
171
171
  }
172
172
  Skinnable.propTypes = /** @lends ui/Skinnable.Skinnable.prototype */{
173
173
  /**
@@ -19,7 +19,7 @@ describe('Skinnable Specs', function () {
19
19
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
20
20
  };
21
21
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
22
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {}));
22
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {}));
23
23
  expect(data).toMatchObject({});
24
24
  });
25
25
  test('should add a default skin class when no skin prop is specified', function () {
@@ -34,7 +34,7 @@ describe('Skinnable Specs', function () {
34
34
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
35
35
  };
36
36
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
37
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
37
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
38
38
  "data-testid": "skinnableComponent"
39
39
  }));
40
40
  var expected = 'darkSkin';
@@ -53,7 +53,7 @@ describe('Skinnable Specs', function () {
53
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
54
54
  };
55
55
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
56
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
56
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
57
57
  "data-testid": "skinnableComponent",
58
58
  skin: "light"
59
59
  }));
@@ -75,7 +75,7 @@ describe('Skinnable Specs', function () {
75
75
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
76
76
  };
77
77
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
78
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
78
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
79
79
  "data-testid": "skinnableComponent",
80
80
  skin: "potato"
81
81
  }));
@@ -93,7 +93,7 @@ describe('Skinnable Specs', function () {
93
93
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
94
94
  };
95
95
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
96
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
96
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
97
97
  className: "cheatingComponent",
98
98
  "data-testid": "skinnableComponent",
99
99
  skin: "potato"
@@ -114,7 +114,7 @@ describe('Skinnable Specs', function () {
114
114
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
115
115
  };
116
116
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
117
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
117
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
118
118
  "data-testid": "skinnableComponent",
119
119
  skinVariants: "potato"
120
120
  }));
@@ -135,7 +135,7 @@ describe('Skinnable Specs', function () {
135
135
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
136
136
  };
137
137
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
138
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
138
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
139
139
  "data-testid": "skinnableComponent",
140
140
  skinVariants: "normal potato unicase"
141
141
  }));
@@ -157,7 +157,7 @@ describe('Skinnable Specs', function () {
157
157
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
158
158
  };
159
159
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
160
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
160
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
161
161
  "data-testid": "skinnableComponent",
162
162
  skinVariants: ""
163
163
  }));
@@ -179,7 +179,7 @@ describe('Skinnable Specs', function () {
179
179
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
180
180
  };
181
181
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
182
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
182
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
183
183
  "data-testid": "skinnableComponent",
184
184
  skinVariants: "unicase"
185
185
  }));
@@ -201,12 +201,12 @@ describe('Skinnable Specs', function () {
201
201
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
202
202
  };
203
203
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
204
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
204
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
205
205
  "data-testid": "skinnableComponent1",
206
206
  skinVariants: "normal unicase"
207
207
  }));
208
208
  var component1ClassNames = _react.screen.getByTestId('skinnableComponent1').className;
209
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
209
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
210
210
  "data-testid": "skinnableComponent2",
211
211
  skinVariants: ['normal', 'unicase']
212
212
  }));
@@ -227,7 +227,7 @@ describe('Skinnable Specs', function () {
227
227
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
228
228
  };
229
229
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
230
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
230
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
231
231
  "data-testid": "skinnableComponent",
232
232
  skinVariants: {
233
233
  normal: false,
@@ -252,7 +252,7 @@ describe('Skinnable Specs', function () {
252
252
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread({}, props));
253
253
  };
254
254
  var SkinnableComponent = (0, _Skinnable["default"])(config, Component);
255
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
255
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableComponent, {
256
256
  "data-testid": "skinnableComponent",
257
257
  skinVariants: {
258
258
  normal: null,
@@ -279,7 +279,7 @@ describe('Skinnable Specs', function () {
279
279
  };
280
280
  var SkinnableParent = (0, _Skinnable["default"])(config, Component);
281
281
  var SkinnableChild = (0, _Skinnable["default"])(config, Component);
282
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
282
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
283
283
  skinVariants: "unicase",
284
284
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableChild, {
285
285
  "data-testid": "skinnableChild",
@@ -305,7 +305,7 @@ describe('Skinnable Specs', function () {
305
305
  };
306
306
  var SkinnableParent = (0, _Skinnable["default"])(config, Component);
307
307
  var SkinnableChild = (0, _Skinnable["default"])(config, Component);
308
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
308
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
309
309
  skinVariants: "smallCaps unicase",
310
310
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableChild, {
311
311
  "data-testid": "skinnableChild",
@@ -333,7 +333,7 @@ describe('Skinnable Specs', function () {
333
333
  };
334
334
  var SkinnableParent = (0, _Skinnable["default"])(config, Component);
335
335
  var SkinnableChild = (0, _Skinnable["default"])(config, Component);
336
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
336
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
337
337
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableChild, {
338
338
  skinVariants: {
339
339
  normal: false
@@ -370,17 +370,17 @@ describe('Skinnable Specs', function () {
370
370
  var SkinnableParent = (0, _Skinnable["default"])(config, Component);
371
371
  var SkinnableChild = (0, _Skinnable["default"])(config, ChildComponent);
372
372
  var childrenProp = /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableChild, {});
373
- var _render = (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
373
+ var _render = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
374
374
  children: childrenProp
375
375
  })),
376
376
  rerender = _render.rerender;
377
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
377
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
378
378
  className: "foo",
379
379
  children: childrenProp
380
380
  }));
381
381
  var expected1 = 1;
382
382
  var actual1 = wasRendered.mock.calls.length;
383
- rerender( /*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
383
+ rerender(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
384
384
  className: "foo",
385
385
  skin: "light",
386
386
  children: childrenProp
@@ -35,7 +35,7 @@ describe('Skinnable Specs', function () {
35
35
  light: 'lightSkin'
36
36
  }
37
37
  };
38
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
38
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
39
39
  config: config
40
40
  }));
41
41
  var expected = 'darkSkin';
@@ -50,7 +50,7 @@ describe('Skinnable Specs', function () {
50
50
  light: 'lightSkin'
51
51
  }
52
52
  };
53
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
53
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
54
54
  config: config
55
55
  }));
56
56
  var expected = 'lightSkin';
@@ -65,7 +65,7 @@ describe('Skinnable Specs', function () {
65
65
  light: 'lightSkin'
66
66
  }
67
67
  };
68
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
68
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
69
69
  config: config
70
70
  }));
71
71
  var expected = '';
@@ -80,7 +80,7 @@ describe('Skinnable Specs', function () {
80
80
  light: 'lightSkin'
81
81
  }
82
82
  };
83
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
83
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
84
84
  config: config
85
85
  }));
86
86
  var expected = 'darkSkin';
@@ -96,7 +96,7 @@ describe('Skinnable Specs', function () {
96
96
  },
97
97
  variants: ['normal', 'smallCaps', 'unicase']
98
98
  };
99
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
99
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
100
100
  config: config
101
101
  }));
102
102
  var expected = 'darkSkin normal unicase';
@@ -113,7 +113,7 @@ describe('Skinnable Specs', function () {
113
113
  },
114
114
  variants: ['normal', 'smallCaps', 'unicase']
115
115
  };
116
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
116
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
117
117
  config: config
118
118
  }));
119
119
  var expected = 'darkSkin normal';
@@ -130,7 +130,7 @@ describe('Skinnable Specs', function () {
130
130
  },
131
131
  variants: ['normal', 'smallCaps', 'unicase']
132
132
  };
133
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
133
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
134
134
  config: config
135
135
  }));
136
136
  var expected = 'darkSkin normal unicase';
@@ -146,13 +146,13 @@ describe('Skinnable Specs', function () {
146
146
  },
147
147
  variants: ['normal', 'smallCaps', 'unicase']
148
148
  };
149
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
149
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
150
150
  config: _objectSpread(_objectSpread({}, config), {}, {
151
151
  skinVariants: 'normal unicase'
152
152
  })
153
153
  }));
154
154
  var component1Class = data.className;
155
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
155
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
156
156
  config: _objectSpread(_objectSpread({}, config), {}, {
157
157
  skinVariants: ['normal', 'unicase']
158
158
  })
@@ -174,7 +174,7 @@ describe('Skinnable Specs', function () {
174
174
  },
175
175
  variants: ['normal', 'smallCaps', 'unicase']
176
176
  };
177
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
177
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
178
178
  config: config
179
179
  }));
180
180
  var expected = 'darkSkin unicase';
@@ -195,7 +195,7 @@ describe('Skinnable Specs', function () {
195
195
  },
196
196
  variants: ['normal', 'smallCaps', 'unicase']
197
197
  };
198
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
198
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
199
199
  config: config
200
200
  }));
201
201
  var expected = 'darkSkin normal';
@@ -211,7 +211,7 @@ describe('Skinnable Specs', function () {
211
211
  },
212
212
  variants: ['normal', 'smallCaps', 'unicase']
213
213
  };
214
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
214
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
215
215
  config: _objectSpread(_objectSpread({}, config), {}, {
216
216
  skinVariants: 'unicase'
217
217
  }),
@@ -234,7 +234,7 @@ describe('Skinnable Specs', function () {
234
234
  },
235
235
  variants: ['normal', 'smallCaps', 'unicase']
236
236
  };
237
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
237
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
238
238
  config: _objectSpread(_objectSpread({}, config), {}, {
239
239
  skinVariants: 'smallCaps unicase'
240
240
  }),
@@ -259,7 +259,7 @@ describe('Skinnable Specs', function () {
259
259
  },
260
260
  variants: ['normal', 'smallCaps', 'unicase']
261
261
  };
262
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
262
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
263
263
  config: config,
264
264
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Parent, {
265
265
  config: _objectSpread(_objectSpread({}, config), {}, {