@gympass/yoga 7.38.0 → 7.40.0
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/cjs/AutoComplete/AutoComplete.theme.js +1 -1
- package/cjs/AutoComplete/web/AutoComplete.js +1 -1
- package/cjs/Avatar/native/Avatar.js +1 -1
- package/cjs/Avatar/native/Avatar.test.js +1 -1
- package/cjs/Avatar/web/Avatar.js +1 -1
- package/cjs/Avatar/web/AvatarCircle.js +1 -1
- package/cjs/Banner/native/Banner.test.js +1 -1
- package/cjs/Banner/web/Banner.js +1 -1
- package/cjs/Box/native/Box.test.js +1 -1
- package/cjs/Button/native/Button.test.js +1 -1
- package/cjs/Button/web/Button.js +1 -1
- package/cjs/Button/web/Icon.js +1 -1
- package/cjs/Card/native/Card/Card.test.js +1 -1
- package/cjs/Card/native/EventCard/EventCard.test.js +1 -1
- package/cjs/Card/native/GymCard/CheckIn/CheckIn.test.js +1 -1
- package/cjs/Card/native/PlanCard/Actions.js +1 -1
- package/cjs/Card/native/PlanCard/PlanCard.js +1 -1
- package/cjs/Card/native/PlanCard/PlanCard.test.js +1 -1
- package/cjs/Card/web/Card/Card.js +1 -1
- package/cjs/Card/web/PlanCard/Actions.js +0 -2
- package/cjs/Card/web/PlanCard/PlanCard.js +1 -1
- package/cjs/Checkbox/native/Checkbox.test.js +1 -1
- package/cjs/Checkbox/native/Switch.test.js +1 -1
- package/cjs/Checkbox/web/Checkbox.js +1 -1
- package/cjs/Checkbox/web/Checkbox.test.js +1 -1
- package/cjs/Checkbox/web/Switch.js +1 -1
- package/cjs/Chips/native/Chips.test.js +1 -1
- package/cjs/Chips/web/Chips.js +1 -1
- package/cjs/Dialog/web/Content.js +1 -1
- package/cjs/Dialog/web/Dialog.js +1 -1
- package/cjs/Dialog/web/Footer.js +1 -1
- package/cjs/Dialog/web/Header.js +1 -1
- package/cjs/Divider/native/Divider.test.js +1 -1
- package/cjs/Dropdown/native/Backdrop.test.js +1 -1
- package/cjs/Dropdown/native/Dropdown.test.js +1 -1
- package/cjs/Dropdown/web/Dropdown.js +1 -1
- package/cjs/Dropdown/web/Dropdown.test.js +1 -1
- package/cjs/Feedback/web/Feedback.js +1 -1
- package/cjs/Heading/web/BackButton.js +1 -1
- package/cjs/Heading/web/RightButton.js +1 -1
- package/cjs/Heading/web/Title.js +1 -1
- package/cjs/Icon/Icon.js +1 -1
- package/cjs/Icon/native/Icon.test.js +1 -1
- package/cjs/Input/native/Email.test.js +1 -1
- package/cjs/Input/native/Input.test.js +1 -1
- package/cjs/Input/native/Number.test.js +1 -1
- package/cjs/Input/native/Password.test.js +1 -1
- package/cjs/Input/native/Tel.test.js +1 -1
- package/cjs/Input/web/Email.js +1 -1
- package/cjs/Input/web/Input.js +1 -1
- package/cjs/Input/web/Legend.js +1 -1
- package/cjs/Input/web/Number.js +1 -1
- package/cjs/Input/web/Password.js +1 -1
- package/cjs/Input/web/Tel.js +1 -1
- package/cjs/List/native/List.test.js +1 -1
- package/cjs/List/web/LinkItem.js +1 -1
- package/cjs/List/web/List.js +1 -1
- package/cjs/List/web/ListItem.js +1 -1
- package/cjs/Progress/native/Progress.test.js +1 -1
- package/cjs/Progress/web/Progress.js +1 -1
- package/cjs/RadioGroup/native/Button/RadioButton.test.js +1 -1
- package/cjs/RadioGroup/native/Radio/Radio.test.js +1 -1
- package/cjs/RadioGroup/native/RadioGroup.js +1 -1
- package/cjs/RadioGroup/native/RadioGroup.test.js +1 -1
- package/cjs/RadioGroup/web/Button/RadioButton.js +1 -1
- package/cjs/RadioGroup/web/Radio/Radio.js +1 -1
- package/cjs/RadioGroup/web/RadioGroup.js +1 -1
- package/cjs/Rating/native/Rating.test.js +1 -1
- package/cjs/Rating/web/Rating.js +1 -1
- package/cjs/Result/native/Result.test.js +1 -1
- package/cjs/Slider/native/Slider.test.js +1 -1
- package/cjs/Slider/web/Marker.js +1 -1
- package/cjs/Slider/web/Slider.js +1 -1
- package/cjs/Slider/web/Tooltip.js +1 -1
- package/cjs/Snackbar/native/Snackbar.test.js +1 -1
- package/cjs/Snackbar/web/Snackbar.js +1 -1
- package/cjs/Snackbar/web/Snackbar.test.js +6 -4
- package/cjs/Stepper/native/Stepper.test.js +1 -1
- package/cjs/Tag/native/Tag.test.js +1 -1
- package/cjs/Tag/web/Informative.js +1 -1
- package/cjs/Text/native/Text.test.js +1 -1
- package/cjs/TextArea/native/TextArea.test.js +1 -1
- package/cjs/TextArea/web/TextArea.js +1 -1
- package/cjs/Theme/Provider/Provider.js +1 -1
- package/cjs/Theme/helpers/themeReader/native/native.test.js +1 -1
- package/cjs/Theme/theme/theme.js +1 -1
- package/esm/AutoComplete/AutoComplete.theme.js +1 -1
- package/esm/AutoComplete/web/AutoComplete.js +1 -1
- package/esm/Avatar/native/Avatar.js +1 -1
- package/esm/Avatar/native/Avatar.test.js +10 -10
- package/esm/Avatar/native/AvatarCircle.js +1 -1
- package/esm/Avatar/web/Avatar.js +1 -1
- package/esm/Avatar/web/AvatarCircle.js +1 -1
- package/esm/Banner/native/Banner.js +1 -1
- package/esm/Banner/native/Banner.test.js +10 -10
- package/esm/Banner/web/Banner.js +1 -1
- package/esm/Box/native/Box.test.js +2 -2
- package/esm/Button/native/Button.js +1 -1
- package/esm/Button/native/Button.test.js +91 -91
- package/esm/Button/native/Icon.js +1 -1
- package/esm/Button/native/Link.js +1 -1
- package/esm/Button/native/Text.js +1 -1
- package/esm/Button/native/withTouchable.js +1 -1
- package/esm/Button/web/Button.js +1 -1
- package/esm/Button/web/Icon.js +1 -1
- package/esm/Card/native/Card/Card.js +1 -1
- package/esm/Card/native/Card/Card.test.js +2 -2
- package/esm/Card/native/EventCard/EventCard.js +1 -1
- package/esm/Card/native/EventCard/EventCard.test.js +11 -11
- package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +5 -5
- package/esm/Card/native/PlanCard/Actions.js +0 -2
- package/esm/Card/native/PlanCard/PlanCard.js +1 -1
- package/esm/Card/native/PlanCard/PlanCard.test.js +6 -6
- package/esm/Card/web/Card/Card.js +1 -1
- package/esm/Card/web/PlanCard/Actions.js +0 -2
- package/esm/Card/web/PlanCard/PlanCard.js +1 -1
- package/esm/Checkbox/native/Checkbox.js +1 -1
- package/esm/Checkbox/native/Checkbox.test.js +24 -24
- package/esm/Checkbox/native/Switch.test.js +9 -9
- package/esm/Checkbox/web/Checkbox.js +1 -1
- package/esm/Checkbox/web/Checkbox.test.js +1 -1
- package/esm/Checkbox/web/Switch.js +1 -1
- package/esm/Chips/native/Chips.js +1 -1
- package/esm/Chips/native/Chips.test.js +19 -10
- package/esm/Chips/web/Chips.js +1 -1
- package/esm/Dialog/web/Content.js +1 -1
- package/esm/Dialog/web/Dialog.js +1 -1
- package/esm/Dialog/web/Footer.js +1 -1
- package/esm/Dialog/web/Header.js +1 -1
- package/esm/Divider/native/Divider.test.js +4 -4
- package/esm/Dropdown/native/Backdrop.js +1 -1
- package/esm/Dropdown/native/Backdrop.test.js +4 -4
- package/esm/Dropdown/native/Dropdown.js +1 -1
- package/esm/Dropdown/native/Dropdown.test.js +11 -11
- package/esm/Dropdown/native/Options.ios.js +1 -1
- package/esm/Dropdown/web/Dropdown.js +1 -1
- package/esm/Dropdown/web/Dropdown.test.js +1 -1
- package/esm/Feedback/web/Feedback.js +1 -1
- package/esm/Heading/web/BackButton.js +1 -1
- package/esm/Heading/web/RightButton.js +1 -1
- package/esm/Heading/web/Title.js +1 -1
- package/esm/Icon/Icon.js +1 -1
- package/esm/Icon/native/Icon.test.js +6 -6
- package/esm/Input/native/Email.js +1 -1
- package/esm/Input/native/Email.test.js +2 -2
- package/esm/Input/native/Input.js +1 -1
- package/esm/Input/native/Input.test.js +23 -23
- package/esm/Input/native/Number.js +1 -1
- package/esm/Input/native/Number.test.js +2 -2
- package/esm/Input/native/Password.js +1 -1
- package/esm/Input/native/Password.test.js +14 -14
- package/esm/Input/native/Tel.js +1 -1
- package/esm/Input/native/Tel.test.js +2 -2
- package/esm/Input/web/Email.js +1 -1
- package/esm/Input/web/Input.js +1 -1
- package/esm/Input/web/Legend.js +1 -1
- package/esm/Input/web/Number.js +1 -1
- package/esm/Input/web/Password.js +1 -1
- package/esm/Input/web/Tel.js +1 -1
- package/esm/List/native/List.js +1 -1
- package/esm/List/native/List.test.js +8 -8
- package/esm/List/native/ListItem.js +1 -1
- package/esm/List/web/LinkItem.js +1 -1
- package/esm/List/web/List.js +1 -1
- package/esm/List/web/ListItem.js +1 -1
- package/esm/Progress/native/Progress.js +1 -1
- package/esm/Progress/native/Progress.test.js +18 -18
- package/esm/Progress/web/Progress.js +1 -1
- package/esm/RadioGroup/native/Button/RadioButton.js +1 -1
- package/esm/RadioGroup/native/Button/RadioButton.test.js +5 -3
- package/esm/RadioGroup/native/Radio/Radio.js +1 -1
- package/esm/RadioGroup/native/Radio/Radio.test.js +18 -8
- package/esm/RadioGroup/native/RadioGroup.js +1 -1
- package/esm/RadioGroup/native/RadioGroup.test.js +7 -5
- package/esm/RadioGroup/web/Button/RadioButton.js +1 -1
- package/esm/RadioGroup/web/Radio/Radio.js +1 -1
- package/esm/RadioGroup/web/RadioGroup.js +1 -1
- package/esm/Rating/native/Rating.js +1 -1
- package/esm/Rating/native/Rating.test.js +10 -10
- package/esm/Rating/web/Rating.js +1 -1
- package/esm/Result/native/Details.js +1 -1
- package/esm/Result/native/Result.test.js +6 -6
- package/esm/Result/native/Tags.js +1 -1
- package/esm/Result/native/TinyTextIcon.js +1 -1
- package/esm/Slider/native/Slider.js +1 -1
- package/esm/Slider/native/Slider.test.js +17 -10
- package/esm/Slider/web/Marker.js +1 -1
- package/esm/Slider/web/Slider.js +1 -1
- package/esm/Slider/web/Tooltip.js +1 -1
- package/esm/Snackbar/native/Snackbar.js +1 -1
- package/esm/Snackbar/native/Snackbar.test.js +10 -10
- package/esm/Snackbar/web/Snackbar.js +1 -1
- package/esm/Snackbar/web/Snackbar.test.js +6 -4
- package/esm/Stepper/native/Stepper.test.js +5 -3
- package/esm/Tag/native/Informative.js +1 -1
- package/esm/Tag/native/Tag.js +1 -1
- package/esm/Tag/native/Tag.test.js +14 -14
- package/esm/Tag/web/Informative.js +1 -1
- package/esm/Text/native/Text.test.js +30 -30
- package/esm/TextArea/native/TextArea.js +1 -1
- package/esm/TextArea/native/TextArea.test.js +2 -2
- package/esm/TextArea/web/TextArea.js +1 -1
- package/esm/Theme/Provider/Provider.js +1 -1
- package/esm/Theme/helpers/themeReader/native/native.test.js +5 -5
- package/esm/Theme/theme/theme.js +1 -1
- package/package.json +4 -4
package/esm/List/web/ListItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _templateObject;
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["label", "max", "value", "variant"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -9,9 +9,9 @@ describe('<Progress />', function () {
|
|
|
9
9
|
max: 100,
|
|
10
10
|
value: 60
|
|
11
11
|
}))),
|
|
12
|
-
|
|
12
|
+
toJSON = _render.toJSON;
|
|
13
13
|
|
|
14
|
-
expect(
|
|
14
|
+
expect(toJSON()).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
it('should match snapshot with label string', function () {
|
|
17
17
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
@@ -27,9 +27,9 @@ describe('<Progress />', function () {
|
|
|
27
27
|
placement: 'right'
|
|
28
28
|
}
|
|
29
29
|
}))),
|
|
30
|
-
|
|
30
|
+
toJSON = _render2.toJSON;
|
|
31
31
|
|
|
32
|
-
expect(
|
|
32
|
+
expect(toJSON()).toMatchSnapshot();
|
|
33
33
|
});
|
|
34
34
|
it('should match snapshot with label number', function () {
|
|
35
35
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
@@ -46,9 +46,9 @@ describe('<Progress />', function () {
|
|
|
46
46
|
placement: 'right'
|
|
47
47
|
}
|
|
48
48
|
}))),
|
|
49
|
-
|
|
49
|
+
toJSON = _render3.toJSON;
|
|
50
50
|
|
|
51
|
-
expect(
|
|
51
|
+
expect(toJSON()).toMatchSnapshot();
|
|
52
52
|
});
|
|
53
53
|
it('should match snapshot with all variants', function () {
|
|
54
54
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
@@ -171,9 +171,9 @@ describe('<Progress />', function () {
|
|
|
171
171
|
},
|
|
172
172
|
variant: "white"
|
|
173
173
|
}))),
|
|
174
|
-
|
|
174
|
+
toJSON = _render4.toJSON;
|
|
175
175
|
|
|
176
|
-
expect(
|
|
176
|
+
expect(toJSON()).toMatchSnapshot();
|
|
177
177
|
});
|
|
178
178
|
it('should match snapshot with positions prop system', function () {
|
|
179
179
|
var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
@@ -181,42 +181,42 @@ describe('<Progress />', function () {
|
|
|
181
181
|
top: "small",
|
|
182
182
|
left: "small"
|
|
183
183
|
}))),
|
|
184
|
-
|
|
184
|
+
toJSON = _render5.toJSON;
|
|
185
185
|
|
|
186
|
-
expect(
|
|
186
|
+
expect(toJSON()).toMatchSnapshot();
|
|
187
187
|
});
|
|
188
188
|
it('should match snapshot with spacing prop system', function () {
|
|
189
189
|
var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
190
190
|
m: "small",
|
|
191
191
|
padding: "medium"
|
|
192
192
|
}))),
|
|
193
|
-
|
|
193
|
+
toJSON = _render6.toJSON;
|
|
194
194
|
|
|
195
|
-
expect(
|
|
195
|
+
expect(toJSON()).toMatchSnapshot();
|
|
196
196
|
});
|
|
197
197
|
it('should match snapshot with background color prop system', function () {
|
|
198
198
|
var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
199
199
|
backgroundColor: "primary"
|
|
200
200
|
}))),
|
|
201
|
-
|
|
201
|
+
toJSON = _render7.toJSON;
|
|
202
202
|
|
|
203
|
-
expect(
|
|
203
|
+
expect(toJSON()).toMatchSnapshot();
|
|
204
204
|
});
|
|
205
205
|
it('should match snapshot with border prop system', function () {
|
|
206
206
|
var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
207
207
|
b: "small",
|
|
208
208
|
bRadius: "small"
|
|
209
209
|
}))),
|
|
210
|
-
|
|
210
|
+
toJSON = _render8.toJSON;
|
|
211
211
|
|
|
212
|
-
expect(
|
|
212
|
+
expect(toJSON()).toMatchSnapshot();
|
|
213
213
|
});
|
|
214
214
|
it('should match snapshot with elevation prop system', function () {
|
|
215
215
|
var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Progress, {
|
|
216
216
|
elevation: "small"
|
|
217
217
|
}))),
|
|
218
|
-
|
|
218
|
+
toJSON = _render9.toJSON;
|
|
219
219
|
|
|
220
|
-
expect(
|
|
220
|
+
expect(toJSON()).toMatchSnapshot();
|
|
221
221
|
});
|
|
222
222
|
});
|
|
@@ -2,7 +2,7 @@ var _excluded = ["label", "max", "value", "variant"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "children"],
|
|
2
2
|
_excluded2 = ["onChange", "small", "selectedValue"];
|
|
3
3
|
|
|
4
|
-
function _extends() { _extends = Object.assign
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
5
|
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render, fireEvent
|
|
2
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
3
3
|
import RadioGroup from '../..';
|
|
4
4
|
import ThemeProvider from '../../../Theme';
|
|
5
5
|
import RadioGroupContext from '../../RadioGroupContext';
|
|
@@ -8,7 +8,8 @@ describe('<RadioGroup />', function () {
|
|
|
8
8
|
describe('Snapshots', function () {
|
|
9
9
|
it('should match snapshot with default radio button', function () {
|
|
10
10
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Radio 1"))),
|
|
11
|
-
container = _render.container
|
|
11
|
+
container = _render.container,
|
|
12
|
+
toJSON = _render.toJSON;
|
|
12
13
|
|
|
13
14
|
expect(toJSON(container)).toMatchSnapshot();
|
|
14
15
|
});
|
|
@@ -18,7 +19,8 @@ describe('<RadioGroup />', function () {
|
|
|
18
19
|
small: true
|
|
19
20
|
}
|
|
20
21
|
}, /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Radio 1")))),
|
|
21
|
-
container = _render2.container
|
|
22
|
+
container = _render2.container,
|
|
23
|
+
toJSON = _render2.toJSON;
|
|
22
24
|
|
|
23
25
|
expect(toJSON(container)).toMatchSnapshot();
|
|
24
26
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["value", "disabled"],
|
|
2
2
|
_excluded2 = ["onChange", "small", "selectedValue"];
|
|
3
3
|
|
|
4
|
-
function _extends() { _extends = Object.assign
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
5
|
|
|
6
6
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render, fireEvent
|
|
2
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
3
3
|
import RadioGroup from '../..';
|
|
4
4
|
import ThemeProvider from '../../../Theme';
|
|
5
5
|
import RadioGroupContext from '../../RadioGroupContext';
|
|
@@ -8,7 +8,8 @@ describe('<RadioGroup />', function () {
|
|
|
8
8
|
describe('Snapshots', function () {
|
|
9
9
|
it('should match snapshot with default radio', function () {
|
|
10
10
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Radio, null))),
|
|
11
|
-
container = _render.container
|
|
11
|
+
container = _render.container,
|
|
12
|
+
toJSON = _render.toJSON;
|
|
12
13
|
|
|
13
14
|
expect(toJSON(container)).toMatchSnapshot();
|
|
14
15
|
});
|
|
@@ -16,25 +17,34 @@ describe('<RadioGroup />', function () {
|
|
|
16
17
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Radio, {
|
|
17
18
|
disabled: true
|
|
18
19
|
}))),
|
|
19
|
-
container = _render2.container
|
|
20
|
+
container = _render2.container,
|
|
21
|
+
toJSON = _render2.toJSON;
|
|
20
22
|
|
|
21
23
|
expect(toJSON(container)).toMatchSnapshot();
|
|
22
24
|
});
|
|
23
25
|
it('should match snapshot with default radio', function () {
|
|
24
26
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Radio, null))),
|
|
25
|
-
container = _render3.container
|
|
27
|
+
container = _render3.container,
|
|
28
|
+
toJSON = _render3.toJSON;
|
|
26
29
|
|
|
27
30
|
expect(toJSON(container)).toMatchSnapshot();
|
|
28
31
|
});
|
|
29
32
|
it('should match snapshot with default radio pressed', function () {
|
|
30
|
-
var
|
|
33
|
+
var onChangeMock = jest.fn();
|
|
34
|
+
|
|
35
|
+
var _render4 = render( /*#__PURE__*/React.createElement(RadioGroupContext.Provider, {
|
|
36
|
+
value: {
|
|
37
|
+
onChange: onChangeMock
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup.Radio, {
|
|
31
40
|
testID: "radio"
|
|
32
|
-
}))),
|
|
41
|
+
})))),
|
|
33
42
|
container = _render4.container,
|
|
34
|
-
getByTestId = _render4.getByTestId
|
|
43
|
+
getByTestId = _render4.getByTestId,
|
|
44
|
+
toJSON = _render4.toJSON;
|
|
35
45
|
|
|
36
46
|
var radio = getByTestId(/^radio/);
|
|
37
|
-
fireEvent.
|
|
47
|
+
fireEvent.press(radio);
|
|
38
48
|
expect(toJSON(container)).toMatchSnapshot();
|
|
39
49
|
});
|
|
40
50
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["onChange", "selectedValue", "small", "children"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render, fireEvent
|
|
2
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
3
3
|
import RadioGroup from '..';
|
|
4
4
|
import ThemeProvider from '../../Theme';
|
|
5
5
|
describe('<RadioGroup />', function () {
|
|
@@ -7,7 +7,8 @@ describe('<RadioGroup />', function () {
|
|
|
7
7
|
it('should match snapshot with radio button as children', function () {
|
|
8
8
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup, null, /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 1"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 2"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 3")))),
|
|
9
9
|
container = _render.container,
|
|
10
|
-
getAllByText = _render.getAllByText
|
|
10
|
+
getAllByText = _render.getAllByText,
|
|
11
|
+
toJSON = _render.toJSON;
|
|
11
12
|
|
|
12
13
|
expect(toJSON(container)).toMatchSnapshot();
|
|
13
14
|
expect(getAllByText(/^Option/)).toHaveLength(3);
|
|
@@ -16,7 +17,8 @@ describe('<RadioGroup />', function () {
|
|
|
16
17
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup, {
|
|
17
18
|
small: true
|
|
18
19
|
}, /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 1"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 2"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 3")))),
|
|
19
|
-
container = _render2.container
|
|
20
|
+
container = _render2.container,
|
|
21
|
+
toJSON = _render2.toJSON;
|
|
20
22
|
|
|
21
23
|
expect(toJSON(container)).toMatchSnapshot();
|
|
22
24
|
});
|
|
@@ -24,10 +26,10 @@ describe('<RadioGroup />', function () {
|
|
|
24
26
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(RadioGroup, {
|
|
25
27
|
selectedValue: "Option 2"
|
|
26
28
|
}, /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 1"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 2"), /*#__PURE__*/React.createElement(RadioGroup.Button, null, "Option 3")))),
|
|
27
|
-
|
|
29
|
+
toJSON = _render3.toJSON,
|
|
28
30
|
getByText = _render3.getByText;
|
|
29
31
|
|
|
30
|
-
expect(
|
|
32
|
+
expect(toJSON()).toMatchSnapshot();
|
|
31
33
|
expect(getByText('Option 2').props.checked).toBe(true);
|
|
32
34
|
});
|
|
33
35
|
});
|
|
@@ -3,7 +3,7 @@ var _excluded = ["children", "value"],
|
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
5
|
|
|
6
|
-
function _extends() { _extends = Object.assign
|
|
6
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7
7
|
|
|
8
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ var _excluded = ["value", "disabled", "style", "className"],
|
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3;
|
|
5
5
|
|
|
6
|
-
function _extends() { _extends = Object.assign
|
|
6
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7
7
|
|
|
8
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
9
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["name", "onChange", "selectedValue", "small", "full", "children
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["value", "max", "readOnly", "onRate", "theme", "icon"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -7,17 +7,17 @@ describe('<Rating />', function () {
|
|
|
7
7
|
describe('Snapshots', function () {
|
|
8
8
|
it('should match snapshot with Rating', function () {
|
|
9
9
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Rating, null))),
|
|
10
|
-
|
|
10
|
+
toJSON = _render.toJSON;
|
|
11
11
|
|
|
12
|
-
expect(
|
|
12
|
+
expect(toJSON()).toMatchSnapshot();
|
|
13
13
|
});
|
|
14
14
|
it('should match snapshot when it is not readOnly', function () {
|
|
15
15
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Rating, {
|
|
16
16
|
readOnly: false
|
|
17
17
|
}))),
|
|
18
|
-
|
|
18
|
+
toJSON = _render2.toJSON;
|
|
19
19
|
|
|
20
|
-
expect(
|
|
20
|
+
expect(toJSON()).toMatchSnapshot();
|
|
21
21
|
});
|
|
22
22
|
it('should match snapshot with different values', function () {
|
|
23
23
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Rating, {
|
|
@@ -57,9 +57,9 @@ describe('<Rating />', function () {
|
|
|
57
57
|
}), /*#__PURE__*/React.createElement(Rating, {
|
|
58
58
|
value: 4.5
|
|
59
59
|
}))),
|
|
60
|
-
|
|
60
|
+
toJSON = _render3.toJSON;
|
|
61
61
|
|
|
62
|
-
expect(
|
|
62
|
+
expect(toJSON()).toMatchSnapshot();
|
|
63
63
|
});
|
|
64
64
|
it('should match snapshot with different icon quantity', function () {
|
|
65
65
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Rating, {
|
|
@@ -84,9 +84,9 @@ describe('<Rating />', function () {
|
|
|
84
84
|
max: 3,
|
|
85
85
|
value: 3
|
|
86
86
|
}))),
|
|
87
|
-
|
|
87
|
+
toJSON = _render4.toJSON;
|
|
88
88
|
|
|
89
|
-
expect(
|
|
89
|
+
expect(toJSON()).toMatchSnapshot();
|
|
90
90
|
});
|
|
91
91
|
it('should match snapshot with different icon', function () {
|
|
92
92
|
var CircleIcon = function CircleIcon(props) {
|
|
@@ -113,9 +113,9 @@ describe('<Rating />', function () {
|
|
|
113
113
|
},
|
|
114
114
|
value: 2
|
|
115
115
|
}))),
|
|
116
|
-
|
|
116
|
+
toJSON = _render5.toJSON;
|
|
117
117
|
|
|
118
|
-
expect(
|
|
118
|
+
expect(toJSON()).toMatchSnapshot();
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
});
|
package/esm/Rating/web/Rating.js
CHANGED
|
@@ -2,7 +2,7 @@ var _excluded = ["value", "max", "readOnly", "onRate", "onMouseOver", "onMouseMo
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["icon", "variant"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -61,9 +61,9 @@ describe('<Result />', function () {
|
|
|
61
61
|
}), /*#__PURE__*/React.createElement(Result.Tags, {
|
|
62
62
|
items: tagsList
|
|
63
63
|
}), /*#__PURE__*/React.createElement(Result.Button, null, "See Details")))),
|
|
64
|
-
|
|
64
|
+
toJSON = _render.toJSON;
|
|
65
65
|
|
|
66
|
-
expect(
|
|
66
|
+
expect(toJSON()).toMatchSnapshot();
|
|
67
67
|
});
|
|
68
68
|
it('should match snapshot without limitLabel prop', function () {
|
|
69
69
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Result, {
|
|
@@ -85,9 +85,9 @@ describe('<Result />', function () {
|
|
|
85
85
|
}), /*#__PURE__*/React.createElement(Result.Tags, {
|
|
86
86
|
items: tagsList
|
|
87
87
|
}), /*#__PURE__*/React.createElement(Result.Button, null, "See Details")))),
|
|
88
|
-
|
|
88
|
+
toJSON = _render2.toJSON;
|
|
89
89
|
|
|
90
|
-
expect(
|
|
90
|
+
expect(toJSON()).toMatchSnapshot();
|
|
91
91
|
});
|
|
92
92
|
it('should match snapshot without attendence', function () {
|
|
93
93
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Result, {
|
|
@@ -100,8 +100,8 @@ describe('<Result />', function () {
|
|
|
100
100
|
items: activitiesList,
|
|
101
101
|
dots: true
|
|
102
102
|
})))),
|
|
103
|
-
|
|
103
|
+
toJSON = _render3.toJSON;
|
|
104
104
|
|
|
105
|
-
expect(
|
|
105
|
+
expect(toJSON()).toMatchSnapshot();
|
|
106
106
|
});
|
|
107
107
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _templateObject, _templateObject2;
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Box from '../../Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["max", "maxLabel", "min", "minLabel", "snapped", "values", "tooltip", "sliderLength", "theme"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render,
|
|
2
|
+
import { render, fireEvent } from '@testing-library/react-native';
|
|
3
3
|
import ThemeProvider from '../../Theme';
|
|
4
4
|
import Slider from './Slider';
|
|
5
5
|
describe('<Slider />', function () {
|
|
@@ -7,7 +7,8 @@ describe('<Slider />', function () {
|
|
|
7
7
|
describe('With one marker', function () {
|
|
8
8
|
it('should match snapshot with default Slider', function () {
|
|
9
9
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Slider, null))),
|
|
10
|
-
container = _render.container
|
|
10
|
+
container = _render.container,
|
|
11
|
+
toJSON = _render.toJSON;
|
|
11
12
|
|
|
12
13
|
expect(toJSON(container)).toMatchSnapshot();
|
|
13
14
|
});
|
|
@@ -16,7 +17,8 @@ describe('<Slider />', function () {
|
|
|
16
17
|
minLabel: 0,
|
|
17
18
|
maxLabel: 10
|
|
18
19
|
}))),
|
|
19
|
-
container = _render2.container
|
|
20
|
+
container = _render2.container,
|
|
21
|
+
toJSON = _render2.toJSON;
|
|
20
22
|
|
|
21
23
|
expect(toJSON(container)).toMatchSnapshot();
|
|
22
24
|
});
|
|
@@ -24,7 +26,8 @@ describe('<Slider />', function () {
|
|
|
24
26
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Slider, {
|
|
25
27
|
snapped: true
|
|
26
28
|
}))),
|
|
27
|
-
container = _render3.container
|
|
29
|
+
container = _render3.container,
|
|
30
|
+
toJSON = _render3.toJSON;
|
|
28
31
|
|
|
29
32
|
expect(toJSON(container)).toMatchSnapshot();
|
|
30
33
|
});
|
|
@@ -34,7 +37,8 @@ describe('<Slider />', function () {
|
|
|
34
37
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Slider, {
|
|
35
38
|
values: [3, 7]
|
|
36
39
|
}))),
|
|
37
|
-
container = _render4.container
|
|
40
|
+
container = _render4.container,
|
|
41
|
+
toJSON = _render4.toJSON;
|
|
38
42
|
|
|
39
43
|
expect(toJSON(container)).toMatchSnapshot();
|
|
40
44
|
});
|
|
@@ -43,7 +47,8 @@ describe('<Slider />', function () {
|
|
|
43
47
|
values: [3, 7],
|
|
44
48
|
snapped: true
|
|
45
49
|
}))),
|
|
46
|
-
container = _render5.container
|
|
50
|
+
container = _render5.container,
|
|
51
|
+
toJSON = _render5.toJSON;
|
|
47
52
|
|
|
48
53
|
expect(toJSON(container)).toMatchSnapshot();
|
|
49
54
|
});
|
|
@@ -74,9 +79,10 @@ describe('<Slider />', function () {
|
|
|
74
79
|
}))),
|
|
75
80
|
container = _render7.container,
|
|
76
81
|
getByText = _render7.getByText,
|
|
77
|
-
getByRole = _render7.getByRole
|
|
82
|
+
getByRole = _render7.getByRole,
|
|
83
|
+
toJSON = _render7.toJSON;
|
|
78
84
|
|
|
79
|
-
fireEvent
|
|
85
|
+
fireEvent(getByRole('adjustable'), 'responderGrant', {
|
|
80
86
|
touchHistory: {
|
|
81
87
|
touchBank: {}
|
|
82
88
|
}
|
|
@@ -99,9 +105,10 @@ describe('<Slider />', function () {
|
|
|
99
105
|
}))),
|
|
100
106
|
container = _render8.container,
|
|
101
107
|
getByText = _render8.getByText,
|
|
102
|
-
getByRole = _render8.getByRole
|
|
108
|
+
getByRole = _render8.getByRole,
|
|
109
|
+
toJSON = _render8.toJSON;
|
|
103
110
|
|
|
104
|
-
fireEvent
|
|
111
|
+
fireEvent(getByRole('adjustable'), 'responderGrant', {
|
|
105
112
|
touchHistory: {
|
|
106
113
|
touchBank: {}
|
|
107
114
|
}
|
package/esm/Slider/web/Marker.js
CHANGED
|
@@ -2,7 +2,7 @@ var _excluded = ["values", "dragging", "index", "tooltip"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
package/esm/Slider/web/Slider.js
CHANGED
|
@@ -4,7 +4,7 @@ var _excluded = ["snapped", "tooltip", "values", "max", "maxLabel", "min", "minL
|
|
|
4
4
|
|
|
5
5
|
var _templateObject, _templateObject2;
|
|
6
6
|
|
|
7
|
-
function _extends() { _extends = Object.assign
|
|
7
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8
8
|
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["data"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ var _excluded = ["icon", "message", "actionLabel", "onAction", "variant", "onSna
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
function _extends() { _extends = Object.assign
|
|
5
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
6
6
|
|
|
7
7
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8
8
|
|