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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/AnnounceDecorator/tests/Announce-specs.js +2 -2
  2. package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +2 -2
  3. package/AnnounceDecorator/tests/useAnnounce-specs.js +3 -3
  4. package/BodyText/tests/BodyText-specs.js +6 -6
  5. package/Button/tests/Button-specs.js +10 -10
  6. package/CHANGELOG.md +28 -1
  7. package/Cancelable/Cancelable.d.ts +1 -1
  8. package/Cancelable/Cancelable.js +2 -2
  9. package/Cancelable/cancelHandler.js +1 -1
  10. package/Cancelable/tests/Cancelable-specs.js +17 -17
  11. package/Changeable/tests/Changeable-specs.js +25 -25
  12. package/ComponentOverride/ComponentOverride.js +1 -1
  13. package/FloatingLayer/FloatingLayer.js +2 -2
  14. package/FloatingLayer/FloatingLayerDecorator.js +1 -1
  15. package/FloatingLayer/tests/FloatingLayer-specs.js +7 -7
  16. package/FloatingLayer/tests/Scrim-specs.js +2 -2
  17. package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +3 -3
  18. package/Group/tests/Group-specs.js +11 -11
  19. package/Heading/Heading.d.ts +1 -1
  20. package/Heading/Heading.js +1 -1
  21. package/Heading/tests/Heading-specs.js +14 -14
  22. package/Icon/tests/Icon-specs.js +9 -9
  23. package/Image/tests/Image-specs.js +5 -5
  24. package/ImageItem/tests/ImageItem-specs.js +11 -11
  25. package/Item/tests/Item-specs.js +7 -7
  26. package/LabeledIcon/LabeledIcon.js +1 -1
  27. package/LabeledIcon/tests/LabeledIcon-specs.js +4 -4
  28. package/Layout/Cell.js +2 -2
  29. package/Layout/Layout.d.ts +1 -1
  30. package/Layout/Layout.js +2 -2
  31. package/Layout/tests/Layout-specs.js +10 -10
  32. package/Marquee/MarqueeController.js +1 -1
  33. package/Marquee/MarqueeDecorator.js +1 -1
  34. package/Marquee/tests/Marquee-specs.js +44 -44
  35. package/Measurable/tests/Measurable-specs.js +3 -3
  36. package/Media/Media.js +1 -1
  37. package/Media/tests/Media-specs.js +12 -12
  38. package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
  39. package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
  40. package/ProgressBar/tests/ProgressBar-specs.js +7 -7
  41. package/Repeater/Repeater.d.ts +1 -1
  42. package/Repeater/Repeater.js +1 -1
  43. package/Repeater/tests/Repeater-specs.js +14 -14
  44. package/Resizable/tests/Resizable-specs.js +1 -1
  45. package/Resizable/tests/useResize-specs.js +1 -1
  46. package/Routable/Router.js +1 -1
  47. package/Routable/tests/Routable-specs.js +1 -1
  48. package/Routable/tests/Router-specs.js +10 -10
  49. package/Routable/util.js +3 -3
  50. package/Scroller/tests/Scroller-specs.js +3 -3
  51. package/Skinnable/Skinnable.js +2 -2
  52. package/Skinnable/tests/Skinnable-specs.js +19 -19
  53. package/Skinnable/tests/useSkins-specs.js +14 -14
  54. package/Skinnable/util.js +1 -1
  55. package/Slider/Knob.js +1 -1
  56. package/Slider/Slider.d.ts +4 -4
  57. package/Slider/Slider.js +3 -3
  58. package/Slider/tests/Slider-specs.js +7 -7
  59. package/Slottable/tests/Slottable-specs.js +10 -10
  60. package/Slottable/tests/useSlots-specs.js +10 -10
  61. package/Slottable/useSlots.js +2 -2
  62. package/Spinner/tests/Spinner-specs.js +5 -5
  63. package/ToggleIcon/tests/ToggleIcon-specs.js +5 -5
  64. package/Toggleable/tests/Toggleable-specs.js +41 -41
  65. package/Touchable/ClickAllow.js +1 -1
  66. package/Touchable/config.js +1 -1
  67. package/Touchable/tests/Touchable-specs.js +36 -36
  68. package/Touchable/tests/useTouch-specs.js +15 -15
  69. package/Transition/Transition.d.ts +3 -3
  70. package/Transition/Transition.js +5 -5
  71. package/Transition/tests/Transition-specs.js +13 -13
  72. package/ViewManager/Arranger.js +3 -3
  73. package/ViewManager/ViewManager.d.ts +3 -3
  74. package/ViewManager/tests/View-specs.js +13 -13
  75. package/ViewManager/tests/ViewManager-specs.js +50 -50
  76. package/VirtualList/VirtualListBasic.js +1 -6
  77. package/VirtualList/tests/VirtualGridList-native-specs.js +6 -6
  78. package/VirtualList/tests/VirtualGridList-specs.js +23 -23
  79. package/VirtualList/tests/VirtualList-native-specs.js +7 -7
  80. package/VirtualList/tests/VirtualList-specs.js +29 -29
  81. package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
  82. package/internal/IdProvider/tests/useId-specs.js +6 -6
  83. package/internal/Pure/tests/Pure-specs.js +5 -5
  84. package/package.json +6 -6
  85. package/resolution/index.d.ts +1 -1
  86. package/resolution/resolution.js +1 -1
  87. package/resolution/tests/ResolutionDecorator-specs.js +2 -2
  88. package/styles/mixins.less +3 -5
  89. package/useControlledState/tests/useControlledState-specs.js +10 -10
  90. package/useScroll/ScrollAnimator.js +3 -3
  91. package/useScroll/useScroll.js +3 -0
@@ -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), {}, {
package/Skinnable/util.js CHANGED
@@ -65,7 +65,7 @@ function determineVariants(defaultVariants, allowedVariants, authorVariants, par
65
65
  authorVariants = objectify(authorVariants);
66
66
  parentVariants = objectify(parentVariants);
67
67
 
68
- // Merge all of the variants objects, preferring values in objects from left to right.
68
+ // Merge all the variants objects, preferring values in objects from left to right.
69
69
  var mergedObj = [defaultVariants, parentVariants, authorVariants].reduce(function (obj, a) {
70
70
  if (a) {
71
71
  Object.keys(a).forEach(function (key) {
package/Slider/Knob.js CHANGED
@@ -54,7 +54,7 @@ var Knob = exports.Knob = (0, _kind["default"])({
54
54
  * * `orientation` - The value of the `orientation` prop from the slider
55
55
  * * `proportion` - The value of the `proportion` prop from the knob
56
56
  *
57
- * This prop accepts either a Component (e.g. `MyTooltip`} which will be instantiated with
57
+ * This prop accepts either a Component (e.g. `MyTooltip`) which will be instantiated with
58
58
  * the above props or a component instance (e.g. `<MyTooltip customProp="value" />`) which
59
59
  * will have its props merged with the above props.
60
60
  *
@@ -25,7 +25,7 @@ and `max` props of the slider.
25
25
  * * `orientation` - The value of the `orientation` prop from the slider
26
26
  * * `proportion` - The value of the `proportion` prop from the knob
27
27
  *
28
- * This prop accepts either a Component (e.g. `MyTooltip` } which will be instantiated with
28
+ * This prop accepts either a Component (e.g. `MyTooltip` ) which will be instantiated with
29
29
  the above props or a component instance (e.g. `<MyTooltip customProp="value" />` ) which
30
30
  will have its props merged with the above props.
31
31
  */
@@ -53,7 +53,7 @@ export interface SliderBaseProps {
53
53
  * * progress - The `value` as a proportion between `min` and `max`
54
54
  * * progressAnchor - The value of `progressAnchor`
55
55
  *
56
- * This prop accepts either a Component (e.g. `MyProgress` } which will be instantiated with
56
+ * This prop accepts either a Component (e.g. `MyProgress` ) which will be instantiated with
57
57
  the above props or a component instance (e.g. `<MyProgress customProp="value" />` ) which
58
58
  will have its props merged with the above props.
59
59
  */
@@ -99,7 +99,7 @@ corresponding internal elements and states of this component.
99
99
  * * `tooltipComponent` - The value of `tooltipComponent`
100
100
  * * `value` - The value of `value`
101
101
  *
102
- * This prop accepts either a Component (e.g. `MyKnob` } which will be instantiated with
102
+ * This prop accepts either a Component (e.g. `MyKnob` ) which will be instantiated with
103
103
  the above props or a component instance (e.g. `<MyKnob customProp="value" />` ) which
104
104
  will have its props merged with the above props.
105
105
  */
@@ -158,7 +158,7 @@ than always from the start of the slider.
158
158
  * * `orientation` - The value of the `orientation` prop from the slider
159
159
  * * `proportion` - The `value` as a proportion between `min` and `max`
160
160
  *
161
- * This prop accepts either a Component (e.g. `MyTooltip` } which will be instantiated with
161
+ * This prop accepts either a Component (e.g. `MyTooltip` ) which will be instantiated with
162
162
  the above props or a component instance (e.g. `<MyTooltip customProp="value" />` ) which
163
163
  will have its props merged with the above props.
164
164
  */
package/Slider/Slider.js CHANGED
@@ -60,7 +60,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
60
60
  * * progress - The `value` as a proportion between `min` and `max`
61
61
  * * progressAnchor - The value of `progressAnchor`
62
62
  *
63
- * This prop accepts either a Component (e.g. `MyProgress`} which will be instantiated with
63
+ * This prop accepts either a Component (e.g. `MyProgress`) which will be instantiated with
64
64
  * the above props or a component instance (e.g. `<MyProgress customProp="value" />`) which
65
65
  * will have its props merged with the above props.
66
66
  *
@@ -126,7 +126,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
126
126
  * * `tooltipComponent` - The value of `tooltipComponent`
127
127
  * * `value` - The value of `value`
128
128
  *
129
- * This prop accepts either a Component (e.g. `MyKnob`} which will be instantiated with
129
+ * This prop accepts either a Component (e.g. `MyKnob`) which will be instantiated with
130
130
  * the above props or a component instance (e.g. `<MyKnob customProp="value" />`) which
131
131
  * will have its props merged with the above props.
132
132
  *
@@ -219,7 +219,7 @@ var SliderBase = exports.SliderBase = (0, _kind["default"])({
219
219
  * * `orientation` - The value of the `orientation` prop from the slider
220
220
  * * `proportion` - The `value` as a proportion between `min` and `max`
221
221
  *
222
- * This prop accepts either a Component (e.g. `MyTooltip`} which will be instantiated with
222
+ * This prop accepts either a Component (e.g. `MyTooltip`) which will be instantiated with
223
223
  * the above props or a component instance (e.g. `<MyTooltip customProp="value" />`) which
224
224
  * will have its props merged with the above props.
225
225
  *
@@ -13,7 +13,7 @@ describe('Slider', function () {
13
13
  }
14
14
  test('should return a DOM node reference for `componentRef`', function () {
15
15
  var ref = jest.fn();
16
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
16
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
17
17
  progressBarComponent: CustomProgressBar,
18
18
  ref: ref
19
19
  }));
@@ -23,7 +23,7 @@ describe('Slider', function () {
23
23
  });
24
24
  test('should set \'ui-slider-proportion-end-knob\' to 0 when \'defaultValue\' is smaller than min value', function () {
25
25
  jest.spyOn(console, 'warn').mockImplementation(function () {});
26
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
26
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
27
27
  defaultValue: -10,
28
28
  knobComponent: _Knob["default"],
29
29
  max: 100,
@@ -39,7 +39,7 @@ describe('Slider', function () {
39
39
  });
40
40
  test('should set \'ui-slider-proportion-end-knob\' to 1 when \'defaultValue\' is bigger than max value', function () {
41
41
  jest.spyOn(console, 'warn').mockImplementation(function () {});
42
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
42
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
43
43
  defaultValue: 110,
44
44
  knobComponent: _Knob["default"],
45
45
  max: 100,
@@ -54,7 +54,7 @@ describe('Slider', function () {
54
54
  });
55
55
  });
56
56
  test('should set \'ui-slider-proportion-end-knob\' to 0.5 when \'defaultValue\' is half of the range between min and max value', function () {
57
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
57
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
58
58
  defaultValue: 50,
59
59
  knobComponent: _Knob["default"],
60
60
  max: 100,
@@ -70,7 +70,7 @@ describe('Slider', function () {
70
70
  });
71
71
  test('should fire `onChange` with `onChange` type of horizontal slider when value changed', function () {
72
72
  var handleChange = jest.fn();
73
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
73
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
74
74
  defaultValue: 50,
75
75
  onChange: handleChange,
76
76
  progressBarComponent: _ProgressBar["default"],
@@ -86,7 +86,7 @@ describe('Slider', function () {
86
86
  });
87
87
  test('should fire `onChange` with `onChange` type of vertical slider when value changed', function () {
88
88
  var handleChange = jest.fn();
89
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
89
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Slider["default"], {
90
90
  defaultValue: 50,
91
91
  onChange: handleChange,
92
92
  progressBarComponent: _ProgressBar["default"],
@@ -104,7 +104,7 @@ describe('Slider', function () {
104
104
  });
105
105
  describe('Knob', function () {
106
106
  test('should render a knob', function () {
107
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Knob["default"], {
107
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Knob["default"], {
108
108
  role: "knob"
109
109
  }));
110
110
  var knob = _react.screen.queryByRole('knob');
@@ -21,7 +21,7 @@ describe('Slottable Specs', function () {
21
21
  children: [c, b, a]
22
22
  });
23
23
  });
24
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
24
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
25
25
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
26
26
  slot: "a",
27
27
  children: "A"
@@ -50,7 +50,7 @@ describe('Slottable Specs', function () {
50
50
  children: [c, b, a, custom]
51
51
  });
52
52
  });
53
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
53
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
54
54
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
55
55
  slot: "a",
56
56
  children: "A"
@@ -90,7 +90,7 @@ describe('Slottable Specs', function () {
90
90
  children: [c, b, a]
91
91
  });
92
92
  });
93
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
93
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
94
94
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
95
  slot: "a",
96
96
  children: "A"
@@ -117,7 +117,7 @@ describe('Slottable Specs', function () {
117
117
  children: [children, b, a]
118
118
  });
119
119
  });
120
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
120
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
121
121
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
122
122
  slot: "a",
123
123
  children: "A"
@@ -147,7 +147,7 @@ describe('Slottable Specs', function () {
147
147
  children: [c, b, a]
148
148
  });
149
149
  });
150
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
150
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
151
151
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
152
152
  slot: "a",
153
153
  children: "A"
@@ -185,7 +185,7 @@ describe('Slottable Specs', function () {
185
185
  children: [c, b, a, custom]
186
186
  });
187
187
  });
188
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
188
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
189
189
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
190
190
  slot: "a",
191
191
  title: "Div A"
@@ -219,7 +219,7 @@ describe('Slottable Specs', function () {
219
219
  children: a
220
220
  });
221
221
  });
222
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
222
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
223
223
  a: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
224
224
  children: "X"
225
225
  }, "X"),
@@ -244,7 +244,7 @@ describe('Slottable Specs', function () {
244
244
  });
245
245
 
246
246
  /* eslint-disable jsx-a11y/anchor-is-valid */
247
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
247
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
248
248
  a: ['a', 'b'],
249
249
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
250
250
  children: "c"
@@ -267,7 +267,7 @@ describe('Slottable Specs', function () {
267
267
  var Component = (0, _Slottable["default"])({
268
268
  slots: ['a']
269
269
  }, ComponentBase);
270
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
270
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
271
271
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
272
272
  slot: "a",
273
273
  children: "A"
@@ -295,7 +295,7 @@ describe('Slottable Specs', function () {
295
295
  var Component = (0, _Slottable["default"])({
296
296
  slots: ['a']
297
297
  }, ComponentBase);
298
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
298
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {}));
299
299
  var actual = _react.screen.getByTestId('slottable');
300
300
  expect(actual).toHaveTextContent('Default A');
301
301
  });
@@ -25,7 +25,7 @@ describe('useSlots', function () {
25
25
  children: [slots.c, slots.b, slots.a]
26
26
  });
27
27
  }
28
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
28
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
29
29
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
30
30
  slot: "a",
31
31
  children: "A"
@@ -58,7 +58,7 @@ describe('useSlots', function () {
58
58
  children: slots.children
59
59
  });
60
60
  }
61
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
61
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
62
62
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
63
63
  slot: "a",
64
64
  children: "A"
@@ -93,7 +93,7 @@ describe('useSlots', function () {
93
93
  children: [slots.c, slots.b, slots.a, slots.custom]
94
94
  });
95
95
  }
96
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
96
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
97
97
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
98
98
  slot: "a",
99
99
  children: "A"
@@ -134,7 +134,7 @@ describe('useSlots', function () {
134
134
  children: [slots.c, slots.b, slots.a]
135
135
  });
136
136
  }
137
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
137
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
138
138
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
139
139
  slot: "a",
140
140
  children: "A"
@@ -164,7 +164,7 @@ describe('useSlots', function () {
164
164
  children: [slots.children, slots.b, slots.a]
165
165
  });
166
166
  }
167
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
167
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
168
168
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
169
169
  slot: "a",
170
170
  children: "A"
@@ -197,7 +197,7 @@ describe('useSlots', function () {
197
197
  children: [slots.c, slots.b, slots.a]
198
198
  });
199
199
  }
200
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
200
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
201
201
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
202
202
  slot: "a",
203
203
  children: "A"
@@ -242,7 +242,7 @@ describe('useSlots', function () {
242
242
  children: [slots.c, slots.b, slots.a, slots.custom]
243
243
  });
244
244
  }
245
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
245
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
246
246
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
247
247
  slot: "a",
248
248
  title: "Div A"
@@ -276,7 +276,7 @@ describe('useSlots', function () {
276
276
  children: slots.a
277
277
  });
278
278
  }
279
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
279
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)(Component, {
280
280
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
281
281
  slot: "a",
282
282
  children: "A"
@@ -305,7 +305,7 @@ describe('useSlots', function () {
305
305
  children: slots.a
306
306
  });
307
307
  }
308
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
308
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
309
309
  a: "B",
310
310
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
311
311
  slot: "a",
@@ -328,7 +328,7 @@ describe('useSlots', function () {
328
328
  children: slots.a
329
329
  });
330
330
  }
331
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
331
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
332
332
  a: "B"
333
333
  }));
334
334
  var actual = _react.screen.getByTestId('useSlots');
@@ -110,8 +110,8 @@ function distribute(_ref) {
110
110
  /**
111
111
  * Distributes `children` into the configured `slots`.
112
112
  *
113
- * `useSlots` iterates over all of the `children` in `props` and distributes any children based on
114
- * the followig rules:
113
+ * `useSlots` iterates over all the `children` in `props` and distributes any children based on
114
+ * the following rules:
115
115
  *
116
116
  * * If the child has a `slot` property matching a valid slot, or
117
117
  * * If the component for the child has the `defaultSlot` static member matching a valid slot, or
@@ -7,7 +7,7 @@ var _FloatingLayer = require("../../FloatingLayer");
7
7
  var _jsxRuntime = require("react/jsx-runtime");
8
8
  describe('Spinner Specs', function () {
9
9
  test('should have centered class when centered prop equals true', function () {
10
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
10
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
11
11
  centered: true,
12
12
  component: "div",
13
13
  children: "Loading..."
@@ -17,7 +17,7 @@ describe('Spinner Specs', function () {
17
17
  expect(spinner).toHaveClass(expected);
18
18
  });
19
19
  test('should not have content class when Spinner has no children', function () {
20
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
20
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
21
21
  component: "div",
22
22
  "data-testid": "spinner"
23
23
  }));
@@ -26,7 +26,7 @@ describe('Spinner Specs', function () {
26
26
  expect(spinner).not.toHaveClass(expected);
27
27
  });
28
28
  test('should have no scrim class when blockClickOn prop equals container', function () {
29
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
29
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
30
30
  blockClickOn: "container",
31
31
  component: "div",
32
32
  "data-testid": "spinner"
@@ -36,7 +36,7 @@ describe('Spinner Specs', function () {
36
36
  expect(spinnerContainer).not.toHaveClass(expected);
37
37
  });
38
38
  test('should have scrim class when blockClickOn prop equals container and when scrim prop equals true', function () {
39
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
39
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
40
40
  blockClickOn: "container",
41
41
  component: "div",
42
42
  "data-testid": "spinner",
@@ -48,7 +48,7 @@ describe('Spinner Specs', function () {
48
48
  });
49
49
  test('should have FloatingLayer when blockClickOn prop equals screen', function () {
50
50
  var Root = (0, _FloatingLayer.FloatingLayerDecorator)('div');
51
- (0, _react.render)( /*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
51
+ (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Root, {
52
52
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Spinner.SpinnerBase, {
53
53
  blockClickOn: "screen",
54
54
  component: "div",