@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.
- package/AnnounceDecorator/tests/Announce-specs.js +2 -2
- package/AnnounceDecorator/tests/AnnounceDecorator-specs.js +2 -2
- package/AnnounceDecorator/tests/useAnnounce-specs.js +3 -3
- package/BodyText/tests/BodyText-specs.js +6 -6
- package/Button/tests/Button-specs.js +10 -10
- package/CHANGELOG.md +28 -1
- package/Cancelable/Cancelable.d.ts +1 -1
- package/Cancelable/Cancelable.js +2 -2
- package/Cancelable/cancelHandler.js +1 -1
- package/Cancelable/tests/Cancelable-specs.js +17 -17
- package/Changeable/tests/Changeable-specs.js +25 -25
- package/ComponentOverride/ComponentOverride.js +1 -1
- package/FloatingLayer/FloatingLayer.js +2 -2
- package/FloatingLayer/FloatingLayerDecorator.js +1 -1
- package/FloatingLayer/tests/FloatingLayer-specs.js +7 -7
- package/FloatingLayer/tests/Scrim-specs.js +2 -2
- package/FloatingLayer/tests/useFloatingLayerDecorator-specs.js +3 -3
- package/Group/tests/Group-specs.js +11 -11
- package/Heading/Heading.d.ts +1 -1
- package/Heading/Heading.js +1 -1
- package/Heading/tests/Heading-specs.js +14 -14
- package/Icon/tests/Icon-specs.js +9 -9
- package/Image/tests/Image-specs.js +5 -5
- package/ImageItem/tests/ImageItem-specs.js +11 -11
- package/Item/tests/Item-specs.js +7 -7
- package/LabeledIcon/LabeledIcon.js +1 -1
- package/LabeledIcon/tests/LabeledIcon-specs.js +4 -4
- package/Layout/Cell.js +2 -2
- package/Layout/Layout.d.ts +1 -1
- package/Layout/Layout.js +2 -2
- package/Layout/tests/Layout-specs.js +10 -10
- package/Marquee/MarqueeController.js +1 -1
- package/Marquee/MarqueeDecorator.js +1 -1
- package/Marquee/tests/Marquee-specs.js +44 -44
- package/Measurable/tests/Measurable-specs.js +3 -3
- package/Media/Media.js +1 -1
- package/Media/tests/Media-specs.js +12 -12
- package/Placeholder/tests/PlaceholderControllerDecorator-specs.js +1 -1
- package/Placeholder/tests/PlaceholderDecorator-specs.js +1 -1
- package/ProgressBar/tests/ProgressBar-specs.js +7 -7
- package/Repeater/Repeater.d.ts +1 -1
- package/Repeater/Repeater.js +1 -1
- package/Repeater/tests/Repeater-specs.js +14 -14
- package/Resizable/tests/Resizable-specs.js +1 -1
- package/Resizable/tests/useResize-specs.js +1 -1
- package/Routable/Router.js +1 -1
- package/Routable/tests/Routable-specs.js +1 -1
- package/Routable/tests/Router-specs.js +10 -10
- package/Routable/util.js +3 -3
- package/Scroller/tests/Scroller-specs.js +3 -3
- package/Skinnable/Skinnable.js +2 -2
- package/Skinnable/tests/Skinnable-specs.js +19 -19
- package/Skinnable/tests/useSkins-specs.js +14 -14
- package/Skinnable/util.js +1 -1
- package/Slider/Knob.js +1 -1
- package/Slider/Slider.d.ts +4 -4
- package/Slider/Slider.js +3 -3
- package/Slider/tests/Slider-specs.js +7 -7
- package/Slottable/tests/Slottable-specs.js +10 -10
- package/Slottable/tests/useSlots-specs.js +10 -10
- package/Slottable/useSlots.js +2 -2
- package/Spinner/tests/Spinner-specs.js +5 -5
- package/ToggleIcon/tests/ToggleIcon-specs.js +5 -5
- package/Toggleable/tests/Toggleable-specs.js +41 -41
- package/Touchable/ClickAllow.js +1 -1
- package/Touchable/config.js +1 -1
- package/Touchable/tests/Touchable-specs.js +36 -36
- package/Touchable/tests/useTouch-specs.js +15 -15
- package/Transition/Transition.d.ts +3 -3
- package/Transition/Transition.js +5 -5
- package/Transition/tests/Transition-specs.js +13 -13
- package/ViewManager/Arranger.js +3 -3
- package/ViewManager/ViewManager.d.ts +3 -3
- package/ViewManager/tests/View-specs.js +13 -13
- package/ViewManager/tests/ViewManager-specs.js +50 -50
- package/VirtualList/VirtualListBasic.js +1 -6
- package/VirtualList/tests/VirtualGridList-native-specs.js +6 -6
- package/VirtualList/tests/VirtualGridList-specs.js +23 -23
- package/VirtualList/tests/VirtualList-native-specs.js +7 -7
- package/VirtualList/tests/VirtualList-specs.js +29 -29
- package/internal/IdProvider/tests/IdProvider-specs.js +2 -2
- package/internal/IdProvider/tests/useId-specs.js +6 -6
- package/internal/Pure/tests/Pure-specs.js +5 -5
- package/package.json +6 -6
- package/resolution/index.d.ts +1 -1
- package/resolution/resolution.js +1 -1
- package/resolution/tests/ResolutionDecorator-specs.js +2 -2
- package/styles/mixins.less +3 -5
- package/useControlledState/tests/useControlledState-specs.js +10 -10
- package/useScroll/ScrollAnimator.js +3 -3
- 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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
373
|
+
var _render = (0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(SkinnableParent, {
|
|
374
374
|
children: childrenProp
|
|
375
375
|
})),
|
|
376
376
|
rerender = _render.rerender;
|
|
377
|
-
rerender(
|
|
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(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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
|
|
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`
|
|
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
|
*
|
package/Slider/Slider.d.ts
CHANGED
|
@@ -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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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`
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
331
|
+
(0, _react.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, {
|
|
332
332
|
a: "B"
|
|
333
333
|
}));
|
|
334
334
|
var actual = _react.screen.getByTestId('useSlots');
|
package/Slottable/useSlots.js
CHANGED
|
@@ -110,8 +110,8 @@ function distribute(_ref) {
|
|
|
110
110
|
/**
|
|
111
111
|
* Distributes `children` into the configured `slots`.
|
|
112
112
|
*
|
|
113
|
-
* `useSlots` iterates over all
|
|
114
|
-
* the
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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)(
|
|
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",
|