@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.
Files changed (216) hide show
  1. package/cjs/AutoComplete/AutoComplete.theme.js +1 -1
  2. package/cjs/AutoComplete/web/AutoComplete.js +1 -1
  3. package/cjs/Avatar/native/Avatar.js +1 -1
  4. package/cjs/Avatar/native/Avatar.test.js +1 -1
  5. package/cjs/Avatar/web/Avatar.js +1 -1
  6. package/cjs/Avatar/web/AvatarCircle.js +1 -1
  7. package/cjs/Banner/native/Banner.test.js +1 -1
  8. package/cjs/Banner/web/Banner.js +1 -1
  9. package/cjs/Box/native/Box.test.js +1 -1
  10. package/cjs/Button/native/Button.test.js +1 -1
  11. package/cjs/Button/web/Button.js +1 -1
  12. package/cjs/Button/web/Icon.js +1 -1
  13. package/cjs/Card/Card.native.theme.js +9 -7
  14. package/cjs/Card/Card.theme.js +1 -1
  15. package/cjs/Card/Card.web.theme.js +8 -6
  16. package/cjs/Card/native/Card/Card.test.js +1 -1
  17. package/cjs/Card/native/EventCard/EventCard.test.js +1 -1
  18. package/cjs/Card/native/GymCard/CheckIn/CheckIn.test.js +1 -1
  19. package/cjs/Card/native/PlanCard/Actions.js +1 -1
  20. package/cjs/Card/native/PlanCard/Content.js +1 -1
  21. package/cjs/Card/native/PlanCard/PlanCard.js +1 -1
  22. package/cjs/Card/native/PlanCard/PlanCard.test.js +1 -1
  23. package/cjs/Card/web/Card/Card.js +1 -1
  24. package/cjs/Card/web/PlanCard/Actions.js +1 -1
  25. package/cjs/Card/web/PlanCard/Content.js +28 -32
  26. package/cjs/Card/web/PlanCard/PlanCard.js +1 -1
  27. package/cjs/Checkbox/native/Checkbox.test.js +1 -1
  28. package/cjs/Checkbox/native/Switch.test.js +1 -1
  29. package/cjs/Checkbox/web/Checkbox.js +1 -1
  30. package/cjs/Checkbox/web/Checkbox.test.js +1 -1
  31. package/cjs/Checkbox/web/Switch.js +1 -1
  32. package/cjs/Chips/native/Chips.test.js +1 -1
  33. package/cjs/Chips/web/Chips.js +1 -1
  34. package/cjs/Dialog/web/Content.js +1 -1
  35. package/cjs/Dialog/web/Dialog.js +1 -1
  36. package/cjs/Dialog/web/Footer.js +1 -1
  37. package/cjs/Dialog/web/Header.js +1 -1
  38. package/cjs/Divider/native/Divider.test.js +1 -1
  39. package/cjs/Dropdown/native/Backdrop.test.js +1 -1
  40. package/cjs/Dropdown/native/Dropdown.test.js +1 -1
  41. package/cjs/Dropdown/web/Dropdown.js +1 -1
  42. package/cjs/Dropdown/web/Dropdown.test.js +1 -1
  43. package/cjs/Feedback/web/Feedback.js +1 -1
  44. package/cjs/Heading/web/BackButton.js +1 -1
  45. package/cjs/Heading/web/RightButton.js +2 -2
  46. package/cjs/Heading/web/Title.js +1 -1
  47. package/cjs/Icon/Icon.js +1 -1
  48. package/cjs/Icon/native/Icon.test.js +1 -1
  49. package/cjs/Input/native/Email.test.js +1 -1
  50. package/cjs/Input/native/Input.test.js +1 -1
  51. package/cjs/Input/native/Number.test.js +1 -1
  52. package/cjs/Input/native/Password.test.js +1 -1
  53. package/cjs/Input/native/Tel.test.js +1 -1
  54. package/cjs/Input/web/Email.js +1 -1
  55. package/cjs/Input/web/Input.js +1 -1
  56. package/cjs/Input/web/Legend.js +1 -1
  57. package/cjs/Input/web/Number.js +1 -1
  58. package/cjs/Input/web/Password.js +1 -1
  59. package/cjs/Input/web/Tel.js +1 -1
  60. package/cjs/List/native/List.test.js +1 -1
  61. package/cjs/List/web/LinkItem.js +1 -1
  62. package/cjs/List/web/List.js +1 -1
  63. package/cjs/List/web/ListItem.js +1 -1
  64. package/cjs/Progress/native/Progress.test.js +1 -1
  65. package/cjs/Progress/web/Progress.js +1 -1
  66. package/cjs/RadioGroup/native/Button/RadioButton.test.js +1 -1
  67. package/cjs/RadioGroup/native/Radio/Radio.test.js +1 -1
  68. package/cjs/RadioGroup/native/RadioGroup.js +1 -1
  69. package/cjs/RadioGroup/native/RadioGroup.test.js +1 -1
  70. package/cjs/RadioGroup/web/Button/RadioButton.js +1 -1
  71. package/cjs/RadioGroup/web/Radio/Radio.js +1 -1
  72. package/cjs/RadioGroup/web/RadioGroup.js +1 -1
  73. package/cjs/Rating/native/Rating.test.js +1 -1
  74. package/cjs/Rating/web/Rating.js +1 -1
  75. package/cjs/Result/native/Result.test.js +1 -1
  76. package/cjs/Slider/native/Slider.test.js +1 -1
  77. package/cjs/Slider/web/Marker.js +1 -1
  78. package/cjs/Slider/web/Slider.js +1 -1
  79. package/cjs/Slider/web/Tooltip.js +1 -1
  80. package/cjs/Snackbar/native/Snackbar.test.js +1 -1
  81. package/cjs/Snackbar/web/Snackbar.js +1 -1
  82. package/cjs/Snackbar/web/Snackbar.test.js +6 -4
  83. package/cjs/Stepper/native/Stepper.test.js +1 -1
  84. package/cjs/Tag/native/Tag.test.js +1 -1
  85. package/cjs/Tag/web/Informative.js +1 -1
  86. package/cjs/Text/native/Text.test.js +1 -1
  87. package/cjs/TextArea/native/TextArea.test.js +1 -1
  88. package/cjs/TextArea/web/TextArea.js +1 -1
  89. package/cjs/Theme/Provider/Provider.js +1 -1
  90. package/cjs/Theme/helpers/themeReader/native/native.test.js +1 -1
  91. package/cjs/Theme/theme/theme.js +1 -1
  92. package/esm/AutoComplete/AutoComplete.theme.js +1 -1
  93. package/esm/AutoComplete/web/AutoComplete.js +1 -1
  94. package/esm/Avatar/native/Avatar.js +1 -1
  95. package/esm/Avatar/native/Avatar.test.js +10 -10
  96. package/esm/Avatar/native/AvatarCircle.js +1 -1
  97. package/esm/Avatar/web/Avatar.js +1 -1
  98. package/esm/Avatar/web/AvatarCircle.js +1 -1
  99. package/esm/Banner/native/Banner.js +1 -1
  100. package/esm/Banner/native/Banner.test.js +10 -10
  101. package/esm/Banner/web/Banner.js +1 -1
  102. package/esm/Box/native/Box.test.js +2 -2
  103. package/esm/Button/native/Button.js +1 -1
  104. package/esm/Button/native/Button.test.js +91 -91
  105. package/esm/Button/native/Icon.js +1 -1
  106. package/esm/Button/native/Link.js +1 -1
  107. package/esm/Button/native/Text.js +1 -1
  108. package/esm/Button/native/withTouchable.js +1 -1
  109. package/esm/Button/web/Button.js +1 -1
  110. package/esm/Button/web/Icon.js +1 -1
  111. package/esm/Card/Card.native.theme.js +9 -7
  112. package/esm/Card/Card.theme.js +1 -1
  113. package/esm/Card/Card.web.theme.js +8 -6
  114. package/esm/Card/native/Card/Card.js +1 -1
  115. package/esm/Card/native/Card/Card.test.js +2 -2
  116. package/esm/Card/native/EventCard/EventCard.js +1 -1
  117. package/esm/Card/native/EventCard/EventCard.test.js +11 -11
  118. package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +5 -5
  119. package/esm/Card/native/PlanCard/Actions.js +1 -1
  120. package/esm/Card/native/PlanCard/Content.js +16 -23
  121. package/esm/Card/native/PlanCard/PlanCard.js +1 -1
  122. package/esm/Card/native/PlanCard/PlanCard.test.js +6 -6
  123. package/esm/Card/web/Card/Card.js +1 -1
  124. package/esm/Card/web/PlanCard/Actions.js +1 -1
  125. package/esm/Card/web/PlanCard/Content.js +25 -30
  126. package/esm/Card/web/PlanCard/PlanCard.js +1 -1
  127. package/esm/Checkbox/native/Checkbox.js +1 -1
  128. package/esm/Checkbox/native/Checkbox.test.js +24 -24
  129. package/esm/Checkbox/native/Switch.test.js +9 -9
  130. package/esm/Checkbox/web/Checkbox.js +1 -1
  131. package/esm/Checkbox/web/Checkbox.test.js +1 -1
  132. package/esm/Checkbox/web/Switch.js +1 -1
  133. package/esm/Chips/native/Chips.js +1 -1
  134. package/esm/Chips/native/Chips.test.js +19 -10
  135. package/esm/Chips/web/Chips.js +1 -1
  136. package/esm/Dialog/web/Content.js +1 -1
  137. package/esm/Dialog/web/Dialog.js +1 -1
  138. package/esm/Dialog/web/Footer.js +1 -1
  139. package/esm/Dialog/web/Header.js +1 -1
  140. package/esm/Divider/native/Divider.test.js +4 -4
  141. package/esm/Dropdown/native/Backdrop.js +1 -1
  142. package/esm/Dropdown/native/Backdrop.test.js +4 -4
  143. package/esm/Dropdown/native/Dropdown.js +1 -1
  144. package/esm/Dropdown/native/Dropdown.test.js +11 -11
  145. package/esm/Dropdown/native/Options.ios.js +1 -1
  146. package/esm/Dropdown/web/Dropdown.js +1 -1
  147. package/esm/Dropdown/web/Dropdown.test.js +1 -1
  148. package/esm/Feedback/web/Feedback.js +1 -1
  149. package/esm/Heading/web/BackButton.js +1 -1
  150. package/esm/Heading/web/RightButton.js +2 -2
  151. package/esm/Heading/web/Title.js +1 -1
  152. package/esm/Icon/Icon.js +1 -1
  153. package/esm/Icon/native/Icon.test.js +6 -6
  154. package/esm/Input/native/Email.js +1 -1
  155. package/esm/Input/native/Email.test.js +2 -2
  156. package/esm/Input/native/Input.js +1 -1
  157. package/esm/Input/native/Input.test.js +23 -23
  158. package/esm/Input/native/Number.js +1 -1
  159. package/esm/Input/native/Number.test.js +2 -2
  160. package/esm/Input/native/Password.js +1 -1
  161. package/esm/Input/native/Password.test.js +14 -14
  162. package/esm/Input/native/Tel.js +1 -1
  163. package/esm/Input/native/Tel.test.js +2 -2
  164. package/esm/Input/web/Email.js +1 -1
  165. package/esm/Input/web/Input.js +1 -1
  166. package/esm/Input/web/Legend.js +1 -1
  167. package/esm/Input/web/Number.js +1 -1
  168. package/esm/Input/web/Password.js +1 -1
  169. package/esm/Input/web/Tel.js +1 -1
  170. package/esm/List/native/List.js +1 -1
  171. package/esm/List/native/List.test.js +8 -8
  172. package/esm/List/native/ListItem.js +1 -1
  173. package/esm/List/web/LinkItem.js +1 -1
  174. package/esm/List/web/List.js +1 -1
  175. package/esm/List/web/ListItem.js +1 -1
  176. package/esm/Progress/native/Progress.js +1 -1
  177. package/esm/Progress/native/Progress.test.js +18 -18
  178. package/esm/Progress/web/Progress.js +1 -1
  179. package/esm/RadioGroup/native/Button/RadioButton.js +1 -1
  180. package/esm/RadioGroup/native/Button/RadioButton.test.js +5 -3
  181. package/esm/RadioGroup/native/Radio/Radio.js +1 -1
  182. package/esm/RadioGroup/native/Radio/Radio.test.js +18 -8
  183. package/esm/RadioGroup/native/RadioGroup.js +1 -1
  184. package/esm/RadioGroup/native/RadioGroup.test.js +7 -5
  185. package/esm/RadioGroup/web/Button/RadioButton.js +1 -1
  186. package/esm/RadioGroup/web/Radio/Radio.js +1 -1
  187. package/esm/RadioGroup/web/RadioGroup.js +1 -1
  188. package/esm/Rating/native/Rating.js +1 -1
  189. package/esm/Rating/native/Rating.test.js +10 -10
  190. package/esm/Rating/web/Rating.js +1 -1
  191. package/esm/Result/native/Details.js +1 -1
  192. package/esm/Result/native/Result.test.js +6 -6
  193. package/esm/Result/native/Tags.js +1 -1
  194. package/esm/Result/native/TinyTextIcon.js +1 -1
  195. package/esm/Slider/native/Slider.js +1 -1
  196. package/esm/Slider/native/Slider.test.js +17 -10
  197. package/esm/Slider/web/Marker.js +1 -1
  198. package/esm/Slider/web/Slider.js +1 -1
  199. package/esm/Slider/web/Tooltip.js +1 -1
  200. package/esm/Snackbar/native/Snackbar.js +1 -1
  201. package/esm/Snackbar/native/Snackbar.test.js +13 -11
  202. package/esm/Snackbar/web/Snackbar.js +1 -1
  203. package/esm/Snackbar/web/Snackbar.test.js +6 -4
  204. package/esm/Stepper/native/Stepper.test.js +5 -3
  205. package/esm/Tag/native/Informative.js +1 -1
  206. package/esm/Tag/native/Tag.js +1 -1
  207. package/esm/Tag/native/Tag.test.js +14 -14
  208. package/esm/Tag/web/Informative.js +1 -1
  209. package/esm/Text/native/Text.test.js +30 -30
  210. package/esm/TextArea/native/TextArea.js +1 -1
  211. package/esm/TextArea/native/TextArea.test.js +2 -2
  212. package/esm/TextArea/web/TextArea.js +1 -1
  213. package/esm/Theme/Provider/Provider.js +1 -1
  214. package/esm/Theme/helpers/themeReader/native/native.test.js +5 -5
  215. package/esm/Theme/theme/theme.js +1 -1
  216. package/package.json +4 -4
@@ -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
- container = _render.container;
10
+ toJSON = _render.toJSON;
11
11
 
12
- expect(container).toMatchSnapshot();
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
- container = _render2.container;
18
+ toJSON = _render2.toJSON;
19
19
 
20
- expect(container).toMatchSnapshot();
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
- container = _render3.container;
60
+ toJSON = _render3.toJSON;
61
61
 
62
- expect(container).toMatchSnapshot();
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
- container = _render4.container;
87
+ toJSON = _render4.toJSON;
88
88
 
89
- expect(container).toMatchSnapshot();
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
- container = _render5.container;
116
+ toJSON = _render5.toJSON;
117
117
 
118
- expect(container).toMatchSnapshot();
118
+ expect(toJSON()).toMatchSnapshot();
119
119
  });
120
120
  });
121
121
  });
@@ -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 || 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
+ 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 || 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
+ 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
- container = _render.container;
64
+ toJSON = _render.toJSON;
65
65
 
66
- expect(container).toMatchSnapshot();
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
- container = _render2.container;
88
+ toJSON = _render2.toJSON;
89
89
 
90
- expect(container).toMatchSnapshot();
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
- container = _render3.container;
103
+ toJSON = _render3.toJSON;
104
104
 
105
- expect(container).toMatchSnapshot();
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 || 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); }
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 || 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); }
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 || 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); }
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, toJSON, fireEvent } from '@testing-library/react-native';
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.responderGrant(getByRole('adjustable'), {
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.responderGrant(getByRole('adjustable'), {
111
+ fireEvent(getByRole('adjustable'), 'responderGrant', {
105
112
  touchHistory: {
106
113
  touchBank: {}
107
114
  }
@@ -2,7 +2,7 @@ var _excluded = ["values", "dragging", "index", "tooltip"];
2
2
 
3
3
  var _templateObject;
4
4
 
5
- function _extends() { _extends = Object.assign || 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
+ 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
 
@@ -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 || 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
+ 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 || 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
+ 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 || 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
+ 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,11 +1,11 @@
1
- function _extends() { _extends = Object.assign || 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); }
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, { useRef } from 'react';
4
4
  import { render, fireEvent } from '@testing-library/react-native';
5
5
  import * as RN from 'react-native';
6
6
  import { CheckedFull } from '@gympass/yoga-icons';
7
7
  import { ThemeProvider, Snackbar } from '../..';
8
- import { Button } from '../../Card/web/PlanCard/Actions';
8
+ import Button from '../../Button';
9
9
  RN.Animated.spring = jest.fn().mockReturnValue({
10
10
  start: jest.fn()
11
11
  });
@@ -13,6 +13,8 @@ RN.Animated.spring = jest.fn().mockReturnValue({
13
13
  var Component = function Component(overrideProps) {
14
14
  var snackbarRef = useRef();
15
15
  return /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Button, {
16
+ full: true,
17
+ small: true,
16
18
  onPress: function onPress() {
17
19
  snackbarRef.current.open();
18
20
  }
@@ -25,9 +27,9 @@ var Component = function Component(overrideProps) {
25
27
  describe('<Snackbar />', function () {
26
28
  it('should match snapshot when snackbar is default', function () {
27
29
  var _render = render( /*#__PURE__*/React.createElement(Component, null)),
28
- container = _render.container;
30
+ toJSON = _render.toJSON;
29
31
 
30
- expect(container).toMatchSnapshot();
32
+ expect(toJSON()).toMatchSnapshot();
31
33
  });
32
34
  it('should match snapshot when have an icon and action', function () {
33
35
  var overrideProps = {
@@ -37,9 +39,9 @@ describe('<Snackbar />', function () {
37
39
  };
38
40
 
39
41
  var _render2 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
40
- container = _render2.container;
42
+ toJSON = _render2.toJSON;
41
43
 
42
- expect(container).toMatchSnapshot();
44
+ expect(toJSON()).toMatchSnapshot();
43
45
  });
44
46
  it('should match snapshot when have a long text', function () {
45
47
  var overrideProps = {
@@ -50,9 +52,9 @@ describe('<Snackbar />', function () {
50
52
  };
51
53
 
52
54
  var _render3 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
53
- container = _render3.container;
55
+ toJSON = _render3.toJSON;
54
56
 
55
- expect(container).toMatchSnapshot();
57
+ expect(toJSON()).toMatchSnapshot();
56
58
  });
57
59
  it('should match snapshot when have a variant informative or attention prop', function () {
58
60
  var overrideProps = {
@@ -60,9 +62,9 @@ describe('<Snackbar />', function () {
60
62
  };
61
63
 
62
64
  var _render4 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
63
- container = _render4.container;
65
+ toJSON = _render4.toJSON;
64
66
 
65
- expect(container).toMatchSnapshot();
67
+ expect(toJSON()).toMatchSnapshot();
66
68
  });
67
69
  it('should show and hide snackbar when the open and close Animation function is called', function () {
68
70
  var overrideProps = {
@@ -75,7 +77,7 @@ describe('<Snackbar />', function () {
75
77
  getByText = _render5.getByText,
76
78
  getByTestId = _render5.getByTestId;
77
79
 
78
- fireEvent.layout(getByTestId('wrapper'), {
80
+ fireEvent(getByTestId('wrapper'), 'layout', {
79
81
  nativeEvent: {
80
82
  layout: {
81
83
  height: 200
@@ -2,7 +2,7 @@ var _excluded = ["open", "duration", "variant", "hideIcon", "message", "actionLa
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
4
4
 
5
- function _extends() { _extends = Object.assign || 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
+ 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,3 +1,5 @@
1
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
2
+
1
3
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
4
 
3
5
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -63,9 +65,9 @@ describe('<Snackbar />', function () {
63
65
  fireEvent.click(button);
64
66
  expect(onCloseMock).toHaveBeenCalledTimes(1);
65
67
  });
66
- it('should close after timeout', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
68
+ it('should close after timeout', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
67
69
  var onCloseMock;
68
- return regeneratorRuntime.wrap(function _callee$(_context) {
70
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
69
71
  while (1) {
70
72
  switch (_context.prev = _context.next) {
71
73
  case 0:
@@ -89,9 +91,9 @@ describe('<Snackbar />', function () {
89
91
  }
90
92
  }, _callee);
91
93
  })));
92
- it('should close with timeout set up', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
94
+ it('should close with timeout set up', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
93
95
  var onCloseMock, button;
94
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
96
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
95
97
  while (1) {
96
98
  switch (_context2.prev = _context2.next) {
97
99
  case 0:
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Text } from 'react-native';
3
- import { render, toJSON } from '@testing-library/react-native';
3
+ import { render } from '@testing-library/react-native';
4
4
  import ThemeProvider from '../../Theme';
5
5
  import Stepper from '..';
6
6
  describe('<Stepper />', function () {
@@ -15,7 +15,8 @@ describe('<Stepper />', function () {
15
15
  }, /*#__PURE__*/React.createElement(Text, null, "step two content")), /*#__PURE__*/React.createElement(Stepper.Step, {
16
16
  label: "step three"
17
17
  }, /*#__PURE__*/React.createElement(Text, null, "step three content"))))),
18
- container = _render.container;
18
+ container = _render.container,
19
+ toJSON = _render.toJSON;
19
20
 
20
21
  expect(toJSON(container)).toMatchSnapshot();
21
22
  });
@@ -29,7 +30,8 @@ describe('<Stepper />', function () {
29
30
  }, /*#__PURE__*/React.createElement(Text, null, "step two content")), /*#__PURE__*/React.createElement(Stepper.Step, {
30
31
  label: "step three"
31
32
  }, /*#__PURE__*/React.createElement(Text, null, "step three content"))))),
32
- container = _render2.container;
33
+ container = _render2.container,
34
+ toJSON = _render2.toJSON;
33
35
 
34
36
  expect(toJSON(container)).toMatchSnapshot();
35
37
  });
@@ -2,7 +2,7 @@ var _excluded = ["children", "icon", "theme", "small"];
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3;
4
4
 
5
- function _extends() { _extends = Object.assign || 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
+ 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
 
@@ -3,7 +3,7 @@ var _excluded = ["variant"],
3
3
 
4
4
  var _templateObject, _templateObject2;
5
5
 
6
- function _extends() { _extends = Object.assign || 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
+ 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
 
@@ -5,9 +5,9 @@ import { ThemeProvider, Tag } from '../..';
5
5
  describe('<Tag />', function () {
6
6
  it('should match snapshot', function () {
7
7
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag, null, "default"))),
8
- container = _render.container;
8
+ toJSON = _render.toJSON;
9
9
 
10
- expect(container).toMatchSnapshot();
10
+ expect(toJSON()).toMatchSnapshot();
11
11
  });
12
12
  it('should match snapshot with custom icon and informative type', function () {
13
13
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag.Informative, {
@@ -18,9 +18,9 @@ describe('<Tag />', function () {
18
18
  icon: Building,
19
19
  small: true
20
20
  }, "success with custom icon"))),
21
- container = _render2.container;
21
+ toJSON = _render2.toJSON;
22
22
 
23
- expect(container).toMatchSnapshot();
23
+ expect(toJSON()).toMatchSnapshot();
24
24
  });
25
25
  it('should match snapshot with without icon and informative type', function () {
26
26
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag.Informative, {
@@ -29,9 +29,9 @@ describe('<Tag />', function () {
29
29
  variant: "success",
30
30
  small: true
31
31
  }, "success without icon"))),
32
- container = _render3.container;
32
+ toJSON = _render3.toJSON;
33
33
 
34
- expect(container).toMatchSnapshot();
34
+ expect(toJSON()).toMatchSnapshot();
35
35
  });
36
36
  it('should match snapshot with variant prop', function () {
37
37
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag, {
@@ -44,9 +44,9 @@ describe('<Tag />', function () {
44
44
  variant: "attention",
45
45
  small: true
46
46
  }, "attention small"))),
47
- container = _render4.container;
47
+ toJSON = _render4.toJSON;
48
48
 
49
- expect(container).toMatchSnapshot();
49
+ expect(toJSON()).toMatchSnapshot();
50
50
  });
51
51
  it('should match snapshot with variant prop and informative type', function () {
52
52
  var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag.Informative, {
@@ -59,9 +59,9 @@ describe('<Tag />', function () {
59
59
  variant: "attention",
60
60
  small: true
61
61
  }, "attention small"))),
62
- container = _render5.container;
62
+ toJSON = _render5.toJSON;
63
63
 
64
- expect(container).toMatchSnapshot();
64
+ expect(toJSON()).toMatchSnapshot();
65
65
  });
66
66
  it('should match snapshot with variant and margin prop ', function () {
67
67
  var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag, {
@@ -72,9 +72,9 @@ describe('<Tag />', function () {
72
72
  }, "informative"), /*#__PURE__*/React.createElement(Tag, {
73
73
  variant: "attention"
74
74
  }, "attention"))),
75
- container = _render6.container;
75
+ toJSON = _render6.toJSON;
76
76
 
77
- expect(container).toMatchSnapshot();
77
+ expect(toJSON()).toMatchSnapshot();
78
78
  });
79
79
  it('should match snapshot with variant prop and informative type with margin prop', function () {
80
80
  var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Tag.Informative, {
@@ -85,8 +85,8 @@ describe('<Tag />', function () {
85
85
  }, "informative"), /*#__PURE__*/React.createElement(Tag.Informative, {
86
86
  variant: "attention"
87
87
  }, "attention"))),
88
- container = _render7.container;
88
+ toJSON = _render7.toJSON;
89
89
 
90
- expect(container).toMatchSnapshot();
90
+ expect(toJSON()).toMatchSnapshot();
91
91
  });
92
92
  });
@@ -2,7 +2,7 @@ var _excluded = ["children", "icon", "theme", "small"];
2
2
 
3
3
  var _templateObject;
4
4
 
5
- function _extends() { _extends = Object.assign || 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
+ 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