@gympass/yoga 7.37.2 → 7.39.1
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/Card.native.theme.js +9 -7
- package/cjs/Card/Card.theme.js +1 -1
- package/cjs/Card/Card.web.theme.js +8 -6
- 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/Content.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 +1 -1
- package/cjs/Card/web/PlanCard/Content.js +28 -32
- 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 +2 -2
- 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/Card.native.theme.js +9 -7
- package/esm/Card/Card.theme.js +1 -1
- package/esm/Card/Card.web.theme.js +8 -6
- 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 +1 -1
- package/esm/Card/native/PlanCard/Content.js +16 -23
- 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 +1 -1
- package/esm/Card/web/PlanCard/Content.js +25 -30
- 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 +2 -2
- 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 +13 -11
- 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
|
@@ -5,37 +5,37 @@ describe('<Input.Password />', function () {
|
|
|
5
5
|
describe('Snapshots', function () {
|
|
6
6
|
it('should match with default input', function () {
|
|
7
7
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input.Password, null))),
|
|
8
|
-
|
|
8
|
+
toJSON = _render.toJSON;
|
|
9
9
|
|
|
10
|
-
expect(
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
it('should match when input is focused', function () {
|
|
13
13
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input.Password, {
|
|
14
14
|
label: "Input",
|
|
15
15
|
testID: "input"
|
|
16
16
|
}))),
|
|
17
|
-
|
|
17
|
+
toJSON = _render2.toJSON,
|
|
18
18
|
getByTestId = _render2.getByTestId;
|
|
19
19
|
|
|
20
|
-
fireEvent
|
|
21
|
-
expect(
|
|
20
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
21
|
+
expect(toJSON()).toMatchSnapshot();
|
|
22
22
|
});
|
|
23
23
|
it('should match with disabled input', function () {
|
|
24
24
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input.Password, {
|
|
25
25
|
disabled: true
|
|
26
26
|
}))),
|
|
27
|
-
|
|
27
|
+
toJSON = _render3.toJSON;
|
|
28
28
|
|
|
29
|
-
expect(
|
|
29
|
+
expect(toJSON()).toMatchSnapshot();
|
|
30
30
|
});
|
|
31
31
|
it('should match with full width', function () {
|
|
32
32
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input.Password, {
|
|
33
33
|
label: "Label",
|
|
34
34
|
full: true
|
|
35
35
|
}))),
|
|
36
|
-
|
|
36
|
+
toJSON = _render4.toJSON;
|
|
37
37
|
|
|
38
|
-
expect(
|
|
38
|
+
expect(toJSON()).toMatchSnapshot();
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
41
|
describe('Events', function () {
|
|
@@ -63,7 +63,7 @@ describe('<Input.Password />', function () {
|
|
|
63
63
|
}))),
|
|
64
64
|
getByTestId = _render6.getByTestId;
|
|
65
65
|
|
|
66
|
-
fireEvent
|
|
66
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
67
67
|
expect(onChangeTextMock).not.toHaveBeenCalled();
|
|
68
68
|
});
|
|
69
69
|
it('should not call onChangeText when input is disabled', function () {
|
|
@@ -77,7 +77,7 @@ describe('<Input.Password />', function () {
|
|
|
77
77
|
}))),
|
|
78
78
|
getByTestId = _render7.getByTestId;
|
|
79
79
|
|
|
80
|
-
fireEvent
|
|
80
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
81
81
|
expect(onChangeTextMock).not.toHaveBeenCalled();
|
|
82
82
|
});
|
|
83
83
|
it('should call onFocus', function () {
|
|
@@ -90,7 +90,7 @@ describe('<Input.Password />', function () {
|
|
|
90
90
|
}))),
|
|
91
91
|
getByTestId = _render8.getByTestId;
|
|
92
92
|
|
|
93
|
-
fireEvent
|
|
93
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
94
94
|
expect(onFocusMock).toHaveBeenCalled();
|
|
95
95
|
});
|
|
96
96
|
it('should call onBlur', function () {
|
|
@@ -103,8 +103,8 @@ describe('<Input.Password />', function () {
|
|
|
103
103
|
}))),
|
|
104
104
|
getByTestId = _render9.getByTestId;
|
|
105
105
|
|
|
106
|
-
fireEvent
|
|
107
|
-
fireEvent
|
|
106
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
107
|
+
fireEvent(getByTestId('input'), 'blur');
|
|
108
108
|
expect(onBlurMock).toHaveBeenCalled();
|
|
109
109
|
});
|
|
110
110
|
});
|
package/esm/Input/native/Tel.js
CHANGED
|
@@ -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 Input from './Input';
|
|
@@ -5,9 +5,9 @@ describe('<Input.Tel />', function () {
|
|
|
5
5
|
describe('Snapshots', function () {
|
|
6
6
|
it('should match with default input', function () {
|
|
7
7
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input.Tel, null))),
|
|
8
|
-
|
|
8
|
+
toJSON = _render.toJSON;
|
|
9
9
|
|
|
10
|
-
expect(
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
});
|
package/esm/Input/web/Email.js
CHANGED
|
@@ -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 Input from './Input';
|
package/esm/Input/web/Input.js
CHANGED
|
@@ -2,7 +2,7 @@ var _excluded = ["cleanable", "disabled", "error", "full", "helper", "label", "m
|
|
|
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
|
|
package/esm/Input/web/Legend.js
CHANGED
|
@@ -2,7 +2,7 @@ var _excluded = ["children"];
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
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/Input/web/Number.js
CHANGED
|
@@ -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 Input from './Input';
|
|
@@ -2,7 +2,7 @@ var _excluded = ["disabled", "style", "className", "full"];
|
|
|
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
|
|
package/esm/Input/web/Tel.js
CHANGED
|
@@ -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 Input from './Input';
|
package/esm/List/native/List.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
|
|
|
@@ -35,9 +35,9 @@ describe('<List />', function () {
|
|
|
35
35
|
return /*#__PURE__*/React.createElement(List.Item, null, /*#__PURE__*/React.createElement(Text, null, item.key));
|
|
36
36
|
}
|
|
37
37
|
}))),
|
|
38
|
-
|
|
38
|
+
toJSON = _render.toJSON;
|
|
39
39
|
|
|
40
|
-
expect(
|
|
40
|
+
expect(toJSON()).toMatchSnapshot();
|
|
41
41
|
});
|
|
42
42
|
it('should match snapshot with a small list', function () {
|
|
43
43
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(List, {
|
|
@@ -49,9 +49,9 @@ describe('<List />', function () {
|
|
|
49
49
|
}, /*#__PURE__*/React.createElement(Text, null, item.key));
|
|
50
50
|
}
|
|
51
51
|
}))),
|
|
52
|
-
|
|
52
|
+
toJSON = _render2.toJSON;
|
|
53
53
|
|
|
54
|
-
expect(
|
|
54
|
+
expect(toJSON()).toMatchSnapshot();
|
|
55
55
|
});
|
|
56
56
|
it('should match snapshot with a list without divisors', function () {
|
|
57
57
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(List, {
|
|
@@ -63,9 +63,9 @@ describe('<List />', function () {
|
|
|
63
63
|
}, /*#__PURE__*/React.createElement(Text, null, item.key));
|
|
64
64
|
}
|
|
65
65
|
}))),
|
|
66
|
-
|
|
66
|
+
toJSON = _render3.toJSON;
|
|
67
67
|
|
|
68
|
-
expect(
|
|
68
|
+
expect(toJSON()).toMatchSnapshot();
|
|
69
69
|
});
|
|
70
70
|
it('should match snapshot with a horizontal list', function () {
|
|
71
71
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(List, {
|
|
@@ -76,9 +76,9 @@ describe('<List />', function () {
|
|
|
76
76
|
return /*#__PURE__*/React.createElement(List.Item, null, /*#__PURE__*/React.createElement(Text, null, item.key));
|
|
77
77
|
}
|
|
78
78
|
}))),
|
|
79
|
-
|
|
79
|
+
toJSON = _render4.toJSON;
|
|
80
80
|
|
|
81
|
-
expect(
|
|
81
|
+
expect(toJSON()).toMatchSnapshot();
|
|
82
82
|
});
|
|
83
83
|
it('should call onPress when selectable item is pressed', function () {
|
|
84
84
|
var a = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["theme", "small", "divided", "onPress"];
|
|
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
|
|
package/esm/List/web/LinkItem.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
|
|
package/esm/List/web/List.js
CHANGED
|
@@ -2,7 +2,7 @@ var _excluded = ["horizontal", "divided"];
|
|
|
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/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
|
|