@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
|
@@ -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 { render } from '@testing-library/react-native';
|
|
@@ -30,25 +30,25 @@ describe('<Dropdown />', function () {
|
|
|
30
30
|
describe('Snapshots', function () {
|
|
31
31
|
it('should match snapshot', function () {
|
|
32
32
|
var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Dropdown, dropdownProps))),
|
|
33
|
-
|
|
33
|
+
toJSON = _render.toJSON;
|
|
34
34
|
|
|
35
|
-
expect(
|
|
35
|
+
expect(toJSON()).toMatchSnapshot();
|
|
36
36
|
});
|
|
37
37
|
it('should match snapshot when disabled', function () {
|
|
38
38
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
39
39
|
disabled: true
|
|
40
40
|
}, dropdownProps)))),
|
|
41
|
-
|
|
41
|
+
toJSON = _render2.toJSON;
|
|
42
42
|
|
|
43
|
-
expect(
|
|
43
|
+
expect(toJSON()).toMatchSnapshot();
|
|
44
44
|
});
|
|
45
45
|
it('should match snapshot when full', function () {
|
|
46
46
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
47
47
|
full: true
|
|
48
48
|
}, dropdownProps)))),
|
|
49
|
-
|
|
49
|
+
toJSON = _render3.toJSON;
|
|
50
50
|
|
|
51
|
-
expect(
|
|
51
|
+
expect(toJSON()).toMatchSnapshot();
|
|
52
52
|
});
|
|
53
53
|
it('should match snapshot when has a selected value', function () {
|
|
54
54
|
var selectedOption = {
|
|
@@ -62,17 +62,17 @@ describe('<Dropdown />', function () {
|
|
|
62
62
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
63
63
|
disabled: true
|
|
64
64
|
}, props)))),
|
|
65
|
-
|
|
65
|
+
toJSON = _render4.toJSON;
|
|
66
66
|
|
|
67
|
-
expect(
|
|
67
|
+
expect(toJSON()).toMatchSnapshot();
|
|
68
68
|
});
|
|
69
69
|
it('should match snapshot with error', function () {
|
|
70
70
|
var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Dropdown, _extends({}, dropdownProps, {
|
|
71
71
|
error: "Please, select one activity"
|
|
72
72
|
})))),
|
|
73
|
-
|
|
73
|
+
toJSON = _render5.toJSON;
|
|
74
74
|
|
|
75
|
-
expect(
|
|
75
|
+
expect(toJSON()).toMatchSnapshot();
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
});
|
|
@@ -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
|
|
|
@@ -3,7 +3,7 @@ var _excluded = ["isOpen", "selected"],
|
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
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
|
|
|
@@ -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 { render, screen, fireEvent } from '@testing-library/react';
|
|
@@ -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 { arrayOf, node, oneOf, oneOfType, string } from 'prop-types';
|
|
4
4
|
import React from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["onClick"];
|
|
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,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["onClick", "icon"];
|
|
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/Heading/web/Title.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["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
|
|
package/esm/Icon/Icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["as", "size", "width", "height", "fill", "stroke", "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
|
|
|
@@ -18,9 +18,9 @@ describe('Snapshots', function () {
|
|
|
18
18
|
height: "small",
|
|
19
19
|
fill: "stamina"
|
|
20
20
|
}))),
|
|
21
|
-
|
|
21
|
+
toJSON = _render.toJSON;
|
|
22
22
|
|
|
23
|
-
expect(
|
|
23
|
+
expect(toJSON()).toMatchSnapshot();
|
|
24
24
|
});
|
|
25
25
|
it('should match snapshot with size prop', function () {
|
|
26
26
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -28,9 +28,9 @@ describe('Snapshots', function () {
|
|
|
28
28
|
size: "small",
|
|
29
29
|
fill: "stamina"
|
|
30
30
|
}))),
|
|
31
|
-
|
|
31
|
+
toJSON = _render2.toJSON;
|
|
32
32
|
|
|
33
|
-
expect(
|
|
33
|
+
expect(toJSON()).toMatchSnapshot();
|
|
34
34
|
});
|
|
35
35
|
it('should match snapshot with system props', function () {
|
|
36
36
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -40,8 +40,8 @@ describe('Snapshots', function () {
|
|
|
40
40
|
margin: "medium",
|
|
41
41
|
elevation: "medium"
|
|
42
42
|
}))),
|
|
43
|
-
|
|
43
|
+
toJSON = _render3.toJSON;
|
|
44
44
|
|
|
45
|
-
expect(
|
|
45
|
+
expect(toJSON()).toMatchSnapshot();
|
|
46
46
|
});
|
|
47
47
|
});
|
|
@@ -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.Email />', 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.Email, null))),
|
|
8
|
-
|
|
8
|
+
toJSON = _render.toJSON;
|
|
9
9
|
|
|
10
|
-
expect(
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["cleanable", "disabled", "error", "full", "helper", "label", "maxLength", "readOnly", "style", "textContentType", "value", "onBlur", "onClean", "onFocus", "hideMaxLength", "theme"],
|
|
2
2
|
_excluded2 = ["height"];
|
|
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
|
|
|
@@ -5,53 +5,53 @@ describe('<Input />', 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, null))),
|
|
8
|
-
|
|
8
|
+
toJSON = _render.toJSON;
|
|
9
9
|
|
|
10
|
-
expect(
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
it('should match with label', function () {
|
|
13
13
|
var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
14
14
|
label: "Input"
|
|
15
15
|
}))),
|
|
16
|
-
|
|
16
|
+
toJSON = _render2.toJSON;
|
|
17
17
|
|
|
18
|
-
expect(
|
|
18
|
+
expect(toJSON()).toMatchSnapshot();
|
|
19
19
|
});
|
|
20
20
|
it('should match when input is focused', function () {
|
|
21
21
|
var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
22
22
|
label: "Input",
|
|
23
23
|
testID: "input"
|
|
24
24
|
}))),
|
|
25
|
-
|
|
25
|
+
toJSON = _render3.toJSON,
|
|
26
26
|
getByTestId = _render3.getByTestId;
|
|
27
27
|
|
|
28
|
-
fireEvent
|
|
29
|
-
expect(
|
|
28
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
29
|
+
expect(toJSON()).toMatchSnapshot();
|
|
30
30
|
});
|
|
31
31
|
it('should match with disabled input', function () {
|
|
32
32
|
var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
33
33
|
disabled: true
|
|
34
34
|
}))),
|
|
35
|
-
|
|
35
|
+
toJSON = _render4.toJSON;
|
|
36
36
|
|
|
37
|
-
expect(
|
|
37
|
+
expect(toJSON()).toMatchSnapshot();
|
|
38
38
|
});
|
|
39
39
|
it('should match with error', function () {
|
|
40
40
|
var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
41
41
|
error: "Error message"
|
|
42
42
|
}))),
|
|
43
|
-
|
|
43
|
+
toJSON = _render5.toJSON;
|
|
44
44
|
|
|
45
|
-
expect(
|
|
45
|
+
expect(toJSON()).toMatchSnapshot();
|
|
46
46
|
});
|
|
47
47
|
it('should match with helper text and max length', function () {
|
|
48
48
|
var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
49
49
|
helper: "Helper text",
|
|
50
50
|
maxLength: 20
|
|
51
51
|
}))),
|
|
52
|
-
|
|
52
|
+
toJSON = _render6.toJSON;
|
|
53
53
|
|
|
54
|
-
expect(
|
|
54
|
+
expect(toJSON()).toMatchSnapshot();
|
|
55
55
|
});
|
|
56
56
|
it('should match with helper text, max length and hideMaxLength', function () {
|
|
57
57
|
var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -59,18 +59,18 @@ describe('<Input />', function () {
|
|
|
59
59
|
maxLength: 20,
|
|
60
60
|
hideMaxLength: true
|
|
61
61
|
}))),
|
|
62
|
-
|
|
62
|
+
toJSON = _render7.toJSON;
|
|
63
63
|
|
|
64
|
-
expect(
|
|
64
|
+
expect(toJSON()).toMatchSnapshot();
|
|
65
65
|
});
|
|
66
66
|
it('should match with full width', function () {
|
|
67
67
|
var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
68
68
|
label: "Label",
|
|
69
69
|
full: true
|
|
70
70
|
}))),
|
|
71
|
-
|
|
71
|
+
toJSON = _render8.toJSON;
|
|
72
72
|
|
|
73
|
-
expect(
|
|
73
|
+
expect(toJSON()).toMatchSnapshot();
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
describe('Events', function () {
|
|
@@ -98,7 +98,7 @@ describe('<Input />', function () {
|
|
|
98
98
|
}))),
|
|
99
99
|
getByTestId = _render10.getByTestId;
|
|
100
100
|
|
|
101
|
-
fireEvent
|
|
101
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
102
102
|
expect(onChangeTextMock).not.toHaveBeenCalled();
|
|
103
103
|
});
|
|
104
104
|
it('should call onFocus', function () {
|
|
@@ -111,7 +111,7 @@ describe('<Input />', function () {
|
|
|
111
111
|
}))),
|
|
112
112
|
getByTestId = _render11.getByTestId;
|
|
113
113
|
|
|
114
|
-
fireEvent
|
|
114
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
115
115
|
expect(onFocusMock).toHaveBeenCalled();
|
|
116
116
|
});
|
|
117
117
|
it('should call onBlur', function () {
|
|
@@ -124,8 +124,8 @@ describe('<Input />', function () {
|
|
|
124
124
|
}))),
|
|
125
125
|
getByTestId = _render12.getByTestId;
|
|
126
126
|
|
|
127
|
-
fireEvent
|
|
128
|
-
fireEvent
|
|
127
|
+
fireEvent(getByTestId('input'), 'focus');
|
|
128
|
+
fireEvent(getByTestId('input'), 'blur');
|
|
129
129
|
expect(onBlurMock).toHaveBeenCalled();
|
|
130
130
|
});
|
|
131
131
|
});
|
|
@@ -139,13 +139,13 @@ describe('<Input />', function () {
|
|
|
139
139
|
getByText = _render13.getByText,
|
|
140
140
|
rerender = _render13.rerender;
|
|
141
141
|
|
|
142
|
-
expect(getByText('0/10')
|
|
142
|
+
expect(getByText('0/10')).toBeTruthy();
|
|
143
143
|
rerender( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Input, {
|
|
144
144
|
label: "Input",
|
|
145
145
|
value: "foo",
|
|
146
146
|
maxLength: 10
|
|
147
147
|
})));
|
|
148
|
-
expect(getByText('3/10')
|
|
148
|
+
expect(getByText('3/10')).toBeTruthy();
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
describe('clean button', function () {
|
|
@@ -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.Number />', 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.Number, null))),
|
|
8
|
-
|
|
8
|
+
toJSON = _render.toJSON;
|
|
9
9
|
|
|
10
|
-
expect(
|
|
10
|
+
expect(toJSON()).toMatchSnapshot();
|
|
11
11
|
});
|
|
12
12
|
});
|
|
13
13
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["disabled", "style", "full", "onBlur", "onFocus", "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
|
|
|
@@ -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
|
|