@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.
Files changed (206) 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/native/Card/Card.test.js +1 -1
  14. package/cjs/Card/native/EventCard/EventCard.test.js +1 -1
  15. package/cjs/Card/native/GymCard/CheckIn/CheckIn.test.js +1 -1
  16. package/cjs/Card/native/PlanCard/Actions.js +1 -1
  17. package/cjs/Card/native/PlanCard/PlanCard.js +1 -1
  18. package/cjs/Card/native/PlanCard/PlanCard.test.js +1 -1
  19. package/cjs/Card/web/Card/Card.js +1 -1
  20. package/cjs/Card/web/PlanCard/Actions.js +0 -2
  21. package/cjs/Card/web/PlanCard/PlanCard.js +1 -1
  22. package/cjs/Checkbox/native/Checkbox.test.js +1 -1
  23. package/cjs/Checkbox/native/Switch.test.js +1 -1
  24. package/cjs/Checkbox/web/Checkbox.js +1 -1
  25. package/cjs/Checkbox/web/Checkbox.test.js +1 -1
  26. package/cjs/Checkbox/web/Switch.js +1 -1
  27. package/cjs/Chips/native/Chips.test.js +1 -1
  28. package/cjs/Chips/web/Chips.js +1 -1
  29. package/cjs/Dialog/web/Content.js +1 -1
  30. package/cjs/Dialog/web/Dialog.js +1 -1
  31. package/cjs/Dialog/web/Footer.js +1 -1
  32. package/cjs/Dialog/web/Header.js +1 -1
  33. package/cjs/Divider/native/Divider.test.js +1 -1
  34. package/cjs/Dropdown/native/Backdrop.test.js +1 -1
  35. package/cjs/Dropdown/native/Dropdown.test.js +1 -1
  36. package/cjs/Dropdown/web/Dropdown.js +1 -1
  37. package/cjs/Dropdown/web/Dropdown.test.js +1 -1
  38. package/cjs/Feedback/web/Feedback.js +1 -1
  39. package/cjs/Heading/web/BackButton.js +1 -1
  40. package/cjs/Heading/web/RightButton.js +1 -1
  41. package/cjs/Heading/web/Title.js +1 -1
  42. package/cjs/Icon/Icon.js +1 -1
  43. package/cjs/Icon/native/Icon.test.js +1 -1
  44. package/cjs/Input/native/Email.test.js +1 -1
  45. package/cjs/Input/native/Input.test.js +1 -1
  46. package/cjs/Input/native/Number.test.js +1 -1
  47. package/cjs/Input/native/Password.test.js +1 -1
  48. package/cjs/Input/native/Tel.test.js +1 -1
  49. package/cjs/Input/web/Email.js +1 -1
  50. package/cjs/Input/web/Input.js +1 -1
  51. package/cjs/Input/web/Legend.js +1 -1
  52. package/cjs/Input/web/Number.js +1 -1
  53. package/cjs/Input/web/Password.js +1 -1
  54. package/cjs/Input/web/Tel.js +1 -1
  55. package/cjs/List/native/List.test.js +1 -1
  56. package/cjs/List/web/LinkItem.js +1 -1
  57. package/cjs/List/web/List.js +1 -1
  58. package/cjs/List/web/ListItem.js +1 -1
  59. package/cjs/Progress/native/Progress.test.js +1 -1
  60. package/cjs/Progress/web/Progress.js +1 -1
  61. package/cjs/RadioGroup/native/Button/RadioButton.test.js +1 -1
  62. package/cjs/RadioGroup/native/Radio/Radio.test.js +1 -1
  63. package/cjs/RadioGroup/native/RadioGroup.js +1 -1
  64. package/cjs/RadioGroup/native/RadioGroup.test.js +1 -1
  65. package/cjs/RadioGroup/web/Button/RadioButton.js +1 -1
  66. package/cjs/RadioGroup/web/Radio/Radio.js +1 -1
  67. package/cjs/RadioGroup/web/RadioGroup.js +1 -1
  68. package/cjs/Rating/native/Rating.test.js +1 -1
  69. package/cjs/Rating/web/Rating.js +1 -1
  70. package/cjs/Result/native/Result.test.js +1 -1
  71. package/cjs/Slider/native/Slider.test.js +1 -1
  72. package/cjs/Slider/web/Marker.js +1 -1
  73. package/cjs/Slider/web/Slider.js +1 -1
  74. package/cjs/Slider/web/Tooltip.js +1 -1
  75. package/cjs/Snackbar/native/Snackbar.test.js +1 -1
  76. package/cjs/Snackbar/web/Snackbar.js +1 -1
  77. package/cjs/Snackbar/web/Snackbar.test.js +6 -4
  78. package/cjs/Stepper/native/Stepper.test.js +1 -1
  79. package/cjs/Tag/native/Tag.test.js +1 -1
  80. package/cjs/Tag/web/Informative.js +1 -1
  81. package/cjs/Text/native/Text.test.js +1 -1
  82. package/cjs/TextArea/native/TextArea.test.js +1 -1
  83. package/cjs/TextArea/web/TextArea.js +1 -1
  84. package/cjs/Theme/Provider/Provider.js +1 -1
  85. package/cjs/Theme/helpers/themeReader/native/native.test.js +1 -1
  86. package/cjs/Theme/theme/theme.js +1 -1
  87. package/esm/AutoComplete/AutoComplete.theme.js +1 -1
  88. package/esm/AutoComplete/web/AutoComplete.js +1 -1
  89. package/esm/Avatar/native/Avatar.js +1 -1
  90. package/esm/Avatar/native/Avatar.test.js +10 -10
  91. package/esm/Avatar/native/AvatarCircle.js +1 -1
  92. package/esm/Avatar/web/Avatar.js +1 -1
  93. package/esm/Avatar/web/AvatarCircle.js +1 -1
  94. package/esm/Banner/native/Banner.js +1 -1
  95. package/esm/Banner/native/Banner.test.js +10 -10
  96. package/esm/Banner/web/Banner.js +1 -1
  97. package/esm/Box/native/Box.test.js +2 -2
  98. package/esm/Button/native/Button.js +1 -1
  99. package/esm/Button/native/Button.test.js +91 -91
  100. package/esm/Button/native/Icon.js +1 -1
  101. package/esm/Button/native/Link.js +1 -1
  102. package/esm/Button/native/Text.js +1 -1
  103. package/esm/Button/native/withTouchable.js +1 -1
  104. package/esm/Button/web/Button.js +1 -1
  105. package/esm/Button/web/Icon.js +1 -1
  106. package/esm/Card/native/Card/Card.js +1 -1
  107. package/esm/Card/native/Card/Card.test.js +2 -2
  108. package/esm/Card/native/EventCard/EventCard.js +1 -1
  109. package/esm/Card/native/EventCard/EventCard.test.js +11 -11
  110. package/esm/Card/native/GymCard/CheckIn/CheckIn.test.js +5 -5
  111. package/esm/Card/native/PlanCard/Actions.js +0 -2
  112. package/esm/Card/native/PlanCard/PlanCard.js +1 -1
  113. package/esm/Card/native/PlanCard/PlanCard.test.js +6 -6
  114. package/esm/Card/web/Card/Card.js +1 -1
  115. package/esm/Card/web/PlanCard/Actions.js +0 -2
  116. package/esm/Card/web/PlanCard/PlanCard.js +1 -1
  117. package/esm/Checkbox/native/Checkbox.js +1 -1
  118. package/esm/Checkbox/native/Checkbox.test.js +24 -24
  119. package/esm/Checkbox/native/Switch.test.js +9 -9
  120. package/esm/Checkbox/web/Checkbox.js +1 -1
  121. package/esm/Checkbox/web/Checkbox.test.js +1 -1
  122. package/esm/Checkbox/web/Switch.js +1 -1
  123. package/esm/Chips/native/Chips.js +1 -1
  124. package/esm/Chips/native/Chips.test.js +19 -10
  125. package/esm/Chips/web/Chips.js +1 -1
  126. package/esm/Dialog/web/Content.js +1 -1
  127. package/esm/Dialog/web/Dialog.js +1 -1
  128. package/esm/Dialog/web/Footer.js +1 -1
  129. package/esm/Dialog/web/Header.js +1 -1
  130. package/esm/Divider/native/Divider.test.js +4 -4
  131. package/esm/Dropdown/native/Backdrop.js +1 -1
  132. package/esm/Dropdown/native/Backdrop.test.js +4 -4
  133. package/esm/Dropdown/native/Dropdown.js +1 -1
  134. package/esm/Dropdown/native/Dropdown.test.js +11 -11
  135. package/esm/Dropdown/native/Options.ios.js +1 -1
  136. package/esm/Dropdown/web/Dropdown.js +1 -1
  137. package/esm/Dropdown/web/Dropdown.test.js +1 -1
  138. package/esm/Feedback/web/Feedback.js +1 -1
  139. package/esm/Heading/web/BackButton.js +1 -1
  140. package/esm/Heading/web/RightButton.js +1 -1
  141. package/esm/Heading/web/Title.js +1 -1
  142. package/esm/Icon/Icon.js +1 -1
  143. package/esm/Icon/native/Icon.test.js +6 -6
  144. package/esm/Input/native/Email.js +1 -1
  145. package/esm/Input/native/Email.test.js +2 -2
  146. package/esm/Input/native/Input.js +1 -1
  147. package/esm/Input/native/Input.test.js +23 -23
  148. package/esm/Input/native/Number.js +1 -1
  149. package/esm/Input/native/Number.test.js +2 -2
  150. package/esm/Input/native/Password.js +1 -1
  151. package/esm/Input/native/Password.test.js +14 -14
  152. package/esm/Input/native/Tel.js +1 -1
  153. package/esm/Input/native/Tel.test.js +2 -2
  154. package/esm/Input/web/Email.js +1 -1
  155. package/esm/Input/web/Input.js +1 -1
  156. package/esm/Input/web/Legend.js +1 -1
  157. package/esm/Input/web/Number.js +1 -1
  158. package/esm/Input/web/Password.js +1 -1
  159. package/esm/Input/web/Tel.js +1 -1
  160. package/esm/List/native/List.js +1 -1
  161. package/esm/List/native/List.test.js +8 -8
  162. package/esm/List/native/ListItem.js +1 -1
  163. package/esm/List/web/LinkItem.js +1 -1
  164. package/esm/List/web/List.js +1 -1
  165. package/esm/List/web/ListItem.js +1 -1
  166. package/esm/Progress/native/Progress.js +1 -1
  167. package/esm/Progress/native/Progress.test.js +18 -18
  168. package/esm/Progress/web/Progress.js +1 -1
  169. package/esm/RadioGroup/native/Button/RadioButton.js +1 -1
  170. package/esm/RadioGroup/native/Button/RadioButton.test.js +5 -3
  171. package/esm/RadioGroup/native/Radio/Radio.js +1 -1
  172. package/esm/RadioGroup/native/Radio/Radio.test.js +18 -8
  173. package/esm/RadioGroup/native/RadioGroup.js +1 -1
  174. package/esm/RadioGroup/native/RadioGroup.test.js +7 -5
  175. package/esm/RadioGroup/web/Button/RadioButton.js +1 -1
  176. package/esm/RadioGroup/web/Radio/Radio.js +1 -1
  177. package/esm/RadioGroup/web/RadioGroup.js +1 -1
  178. package/esm/Rating/native/Rating.js +1 -1
  179. package/esm/Rating/native/Rating.test.js +10 -10
  180. package/esm/Rating/web/Rating.js +1 -1
  181. package/esm/Result/native/Details.js +1 -1
  182. package/esm/Result/native/Result.test.js +6 -6
  183. package/esm/Result/native/Tags.js +1 -1
  184. package/esm/Result/native/TinyTextIcon.js +1 -1
  185. package/esm/Slider/native/Slider.js +1 -1
  186. package/esm/Slider/native/Slider.test.js +17 -10
  187. package/esm/Slider/web/Marker.js +1 -1
  188. package/esm/Slider/web/Slider.js +1 -1
  189. package/esm/Slider/web/Tooltip.js +1 -1
  190. package/esm/Snackbar/native/Snackbar.js +1 -1
  191. package/esm/Snackbar/native/Snackbar.test.js +10 -10
  192. package/esm/Snackbar/web/Snackbar.js +1 -1
  193. package/esm/Snackbar/web/Snackbar.test.js +6 -4
  194. package/esm/Stepper/native/Stepper.test.js +5 -3
  195. package/esm/Tag/native/Informative.js +1 -1
  196. package/esm/Tag/native/Tag.js +1 -1
  197. package/esm/Tag/native/Tag.test.js +14 -14
  198. package/esm/Tag/web/Informative.js +1 -1
  199. package/esm/Text/native/Text.test.js +30 -30
  200. package/esm/TextArea/native/TextArea.js +1 -1
  201. package/esm/TextArea/native/TextArea.test.js +2 -2
  202. package/esm/TextArea/web/TextArea.js +1 -1
  203. package/esm/Theme/Provider/Provider.js +1 -1
  204. package/esm/Theme/helpers/themeReader/native/native.test.js +5 -5
  205. package/esm/Theme/theme/theme.js +1 -1
  206. package/package.json +4 -4
@@ -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 { render } from '@testing-library/react-native';
@@ -20,9 +20,9 @@ describe('<EventCard />', function () {
20
20
  describe('Snapshots', function () {
21
21
  it('should match snapshot with full EventCard', function () {
22
22
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(EventCard, defaultProps))),
23
- container = _render.container;
23
+ toJSON = _render.toJSON;
24
24
 
25
- expect(container).toMatchSnapshot();
25
+ expect(toJSON()).toMatchSnapshot();
26
26
  });
27
27
  it('should match snapshot of small EventCard with event indicator disabled', function () {
28
28
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(EventCard, _extends({}, defaultProps, {
@@ -30,18 +30,18 @@ describe('<EventCard />', function () {
30
30
  small: true,
31
31
  onPress: function onPress() {}
32
32
  })))),
33
- container = _render2.container;
33
+ toJSON = _render2.toJSON;
34
34
 
35
- expect(container).toMatchSnapshot();
35
+ expect(toJSON()).toMatchSnapshot();
36
36
  });
37
37
  it('should match snapshot of small EventCard with event indicator enabled', function () {
38
38
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(EventCard, _extends({}, defaultProps, {
39
39
  small: true,
40
40
  onPress: function onPress() {}
41
41
  })))),
42
- container = _render3.container;
42
+ toJSON = _render3.toJSON;
43
43
 
44
- expect(container).toMatchSnapshot();
44
+ expect(toJSON()).toMatchSnapshot();
45
45
  });
46
46
  it('should match snapshot of small EventCard active', function () {
47
47
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(EventCard, _extends({}, defaultProps, {
@@ -49,17 +49,17 @@ describe('<EventCard />', function () {
49
49
  active: true,
50
50
  onPress: function onPress() {}
51
51
  })))),
52
- container = _render4.container;
52
+ toJSON = _render4.toJSON;
53
53
 
54
- expect(container).toMatchSnapshot();
54
+ expect(toJSON()).toMatchSnapshot();
55
55
  });
56
56
  it('should match snapshot of small EventCard with day of week and without indicator', function () {
57
57
  var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(EventCard, _extends({}, defaultProps, {
58
58
  small: true
59
59
  })))),
60
- container = _render5.container;
60
+ toJSON = _render5.toJSON;
61
61
 
62
- expect(container).toMatchSnapshot();
62
+ expect(toJSON()).toMatchSnapshot();
63
63
  });
64
64
  });
65
65
  });
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { render, toJSON } from '@testing-library/react-native';
2
+ import { render } from '@testing-library/react-native';
3
3
  import ThemeProvider from '../../../../Theme';
4
4
  import GymCard from '..';
5
5
  describe('<GymCard.CheckIn />', function () {
@@ -17,9 +17,9 @@ describe('<GymCard.CheckIn />', function () {
17
17
  rating: data.rating,
18
18
  address: data.address
19
19
  }))),
20
- container = _render.container;
20
+ toJSON = _render.toJSON;
21
21
 
22
- expect(toJSON(container)).toMatchSnapshot();
22
+ expect(toJSON()).toMatchSnapshot();
23
23
  });
24
24
  it('should match snapshot with avatar', function () {
25
25
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(GymCard.CheckIn, {
@@ -31,9 +31,9 @@ describe('<GymCard.CheckIn />', function () {
31
31
  rating: data.rating,
32
32
  address: data.address
33
33
  }))),
34
- container = _render2.container;
34
+ toJSON = _render2.toJSON;
35
35
 
36
- expect(toJSON(container)).toMatchSnapshot();
36
+ expect(toJSON()).toMatchSnapshot();
37
37
  });
38
38
  });
39
39
  });
@@ -10,11 +10,9 @@ var _theme$components = theme.components,
10
10
  cardnative = _theme$components.cardnative,
11
11
  card = _theme$components.card;
12
12
  var PlanCardButton = styled(Button).attrs({
13
- small: false,
14
13
  full: true
15
14
  })(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([""])));
16
15
  var PlanCardButtonText = styled(Button.Text).attrs({
17
- small: true,
18
16
  full: true
19
17
  })(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), cardnative.plan.actions.buttonText.margin.top, card.plan.actions.buttonText.margin.bottom);
20
18
  var PlanCardActions = styled(Actions)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin-top: ", "px;\n"])), cardnative.plan.actions.margin.top);
@@ -12,7 +12,7 @@ import { node, oneOf } from 'prop-types';
12
12
  import theme from '../../../Theme/helpers/themeReader';
13
13
  import Card from '../Card';
14
14
  export var PLAN_LINE_HEIGHT = 8;
15
- var Plan = styled(Card)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n max-width: 288px;\n width: 100%;\n position: relative;\n\n ", "\n"])), function (props) {
15
+ var Plan = styled(Card)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n max-width: 312px;\n width: 100%;\n position: relative;\n\n ", "\n"])), function (props) {
16
16
  var _theme = theme(props),
17
17
  colors = _theme.colors,
18
18
  plan = _theme.components.card.plan;
@@ -47,9 +47,9 @@ describe('<PlanCard />', function () {
47
47
  describe('Snapshots', function () {
48
48
  it('should match snapshot with default PlanCard', function () {
49
49
  var _renderPlan2 = renderPlan(),
50
- planCard = _renderPlan2.container;
50
+ toJSON = _renderPlan2.toJSON;
51
51
 
52
- expect(planCard).toMatchSnapshot();
52
+ expect(toJSON()).toMatchSnapshot();
53
53
  });
54
54
  it('should match snapshot with variant', function () {
55
55
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(PlanCard, {
@@ -61,9 +61,9 @@ describe('<PlanCard />', function () {
61
61
  price: "99.90",
62
62
  period: "/month"
63
63
  })))),
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 with suffix', function () {
69
69
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(PlanCard, {
@@ -76,9 +76,9 @@ describe('<PlanCard />', function () {
76
76
  price: "99.90",
77
77
  period: "/month"
78
78
  })))),
79
- container = _render2.container;
79
+ toJSON = _render2.toJSON;
80
80
 
81
- expect(container).toMatchSnapshot();
81
+ expect(toJSON()).toMatchSnapshot();
82
82
  });
83
83
  });
84
84
  });
@@ -2,7 +2,7 @@ var _excluded = ["ribbon", "children"];
2
2
 
3
3
  var _templateObject, _templateObject2;
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
 
@@ -10,11 +10,9 @@ var _theme$components = theme.components,
10
10
  card = _theme$components.card,
11
11
  cardweb = _theme$components.cardweb;
12
12
  var PlanCardButton = styled(Button).attrs({
13
- small: false,
14
13
  full: true
15
14
  })(_templateObject || (_templateObject = _taggedTemplateLiteralLoose([""])));
16
15
  var PlanCardButtonText = styled(Button.Text).attrs({
17
- small: true,
18
16
  full: true
19
17
  })(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n margin-top: ", "px;\n margin-bottom: ", "px;\n"])), cardweb.plan.actions.buttonText.margin.top, card.plan.actions.buttonText.margin.bottom);
20
18
  var PlanCardActions = styled(Actions)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n margin-top: ", "px;\n"])), theme.components.cardweb.plan.actions.margin.top);
@@ -11,7 +11,7 @@ import styled, { css } from 'styled-components';
11
11
  import { node, oneOf } from 'prop-types';
12
12
  import theme from '../../../Theme/helpers/themeReader';
13
13
  export var PLAN_LINE_HEIGHT = 8;
14
- var Plan = styled.article(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: inline-block;\n position: relative;\n max-width: 288px;\n\n overflow: hidden;\n\n ", "\n"])), function (props) {
14
+ var Plan = styled.article(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n width: 100%;\n display: inline-block;\n position: relative;\n max-width: 312px;\n\n overflow: hidden;\n\n ", "\n"])), function (props) {
15
15
  var _theme = theme(props),
16
16
  colors = _theme.colors,
17
17
  _theme$components$car = _theme.components.card,
@@ -2,7 +2,7 @@ var _excluded = ["label", "helper", "disabled", "checked", "error", "style", "on
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,7 +1,7 @@
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
- import { render, fireEvent, toJSON } from '@testing-library/react-native';
4
+ import { render, fireEvent } from '@testing-library/react-native';
5
5
  import Checkbox from '..';
6
6
  import ThemeProvider from '../../Theme';
7
7
  var data = {
@@ -12,80 +12,80 @@ describe('<Checkbox />', function () {
12
12
  describe('Snapshots', function () {
13
13
  it('should match snapshot without label', function () {
14
14
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, null))),
15
- container = _render.container;
15
+ toJSON = _render.toJSON;
16
16
 
17
- expect(toJSON(container)).toMatchSnapshot();
17
+ expect(toJSON()).toMatchSnapshot();
18
18
  });
19
19
  it('should match snapshot without label', function () {
20
20
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, null))),
21
- container = _render2.container;
21
+ toJSON = _render2.toJSON;
22
22
 
23
- expect(toJSON(container)).toMatchSnapshot();
23
+ expect(toJSON()).toMatchSnapshot();
24
24
  });
25
25
  it('should match snapshot with default checkbox', function () {
26
26
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, data))),
27
- container = _render3.container;
27
+ toJSON = _render3.toJSON;
28
28
 
29
- expect(toJSON(container)).toMatchSnapshot();
29
+ expect(toJSON()).toMatchSnapshot();
30
30
  });
31
31
  it('should match snapshot with disabled checkbox', function () {
32
32
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
33
33
  disabled: true
34
34
  })))),
35
- container = _render4.container;
35
+ toJSON = _render4.toJSON;
36
36
 
37
- expect(toJSON(container)).toMatchSnapshot();
37
+ expect(toJSON()).toMatchSnapshot();
38
38
  });
39
39
  it('should match snapshot with checked checkbox', function () {
40
40
  var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
41
41
  checked: true
42
42
  })))),
43
- container = _render5.container;
43
+ toJSON = _render5.toJSON;
44
44
 
45
- expect(toJSON(container)).toMatchSnapshot();
45
+ expect(toJSON()).toMatchSnapshot();
46
46
  });
47
47
  it('should match snapshot with disabled and checked checkbox', function () {
48
48
  var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
49
49
  disabled: true,
50
50
  checked: true
51
51
  })))),
52
- container = _render6.container;
52
+ toJSON = _render6.toJSON;
53
53
 
54
- expect(toJSON(container)).toMatchSnapshot();
54
+ expect(toJSON()).toMatchSnapshot();
55
55
  });
56
56
  it('should match snapshot with error checkbox', function () {
57
57
  var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
58
58
  error: "Error text"
59
59
  })))),
60
- container = _render7.container;
60
+ toJSON = _render7.toJSON;
61
61
 
62
- expect(toJSON(container)).toMatchSnapshot();
62
+ expect(toJSON()).toMatchSnapshot();
63
63
  });
64
64
  it('should match snapshot with error and checked checkbox', function () {
65
65
  var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
66
66
  error: "Error text",
67
67
  checked: true
68
68
  })))),
69
- container = _render8.container;
69
+ toJSON = _render8.toJSON;
70
70
 
71
- expect(toJSON(container)).toMatchSnapshot();
71
+ expect(toJSON()).toMatchSnapshot();
72
72
  });
73
73
  it('should match snapshot with inverted', function () {
74
74
  var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
75
75
  inverted: true
76
76
  })))),
77
- container = _render9.container;
77
+ toJSON = _render9.toJSON;
78
78
 
79
- expect(toJSON(container)).toMatchSnapshot();
79
+ expect(toJSON()).toMatchSnapshot();
80
80
  });
81
81
  it('should match snapshot with inverted and checked', function () {
82
82
  var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
83
83
  inverted: true,
84
84
  checked: true
85
85
  })))),
86
- container = _render10.container;
86
+ toJSON = _render10.toJSON;
87
87
 
88
- expect(toJSON(container)).toMatchSnapshot();
88
+ expect(toJSON()).toMatchSnapshot();
89
89
  });
90
90
  it('should match snapshot with inverted and checked and disabled', function () {
91
91
  var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox, _extends({}, data, {
@@ -93,9 +93,9 @@ describe('<Checkbox />', function () {
93
93
  checked: true,
94
94
  disabled: true
95
95
  })))),
96
- container = _render11.container;
96
+ toJSON = _render11.toJSON;
97
97
 
98
- expect(toJSON(container)).toMatchSnapshot();
98
+ expect(toJSON()).toMatchSnapshot();
99
99
  });
100
100
  });
101
101
  describe('Events', function () {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { render, fireEvent, toJSON } from '@testing-library/react-native';
2
+ import { render, fireEvent } from '@testing-library/react-native';
3
3
  import Checkbox from '..';
4
4
  import ThemeProvider from '../../Theme';
5
5
  jest.useFakeTimers();
@@ -8,34 +8,34 @@ describe('<Checkbox />', function () {
8
8
  describe('Snapshots', function () {
9
9
  it('should match snapshot with default switch', function () {
10
10
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox.Switch, null))),
11
- container = _render.container;
11
+ toJSON = _render.toJSON;
12
12
 
13
- expect(toJSON(container)).toMatchSnapshot();
13
+ expect(toJSON()).toMatchSnapshot();
14
14
  });
15
15
  it('should match snapshot with disabled switch', function () {
16
16
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox.Switch, {
17
17
  disabled: true
18
18
  }))),
19
- container = _render2.container;
19
+ toJSON = _render2.toJSON;
20
20
 
21
- expect(toJSON(container)).toMatchSnapshot();
21
+ expect(toJSON()).toMatchSnapshot();
22
22
  });
23
23
  it('should match snapshot with checked switch', function () {
24
24
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox.Switch, {
25
25
  checked: true
26
26
  }))),
27
- container = _render3.container;
27
+ toJSON = _render3.toJSON;
28
28
 
29
- expect(toJSON(container)).toMatchSnapshot();
29
+ expect(toJSON()).toMatchSnapshot();
30
30
  });
31
31
  it('should match snapshot with disabled and checked switch', function () {
32
32
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Checkbox.Switch, {
33
33
  disabled: true,
34
34
  checked: true
35
35
  }))),
36
- container = _render4.container;
36
+ toJSON = _render4.toJSON;
37
37
 
38
- expect(toJSON(container)).toMatchSnapshot();
38
+ expect(toJSON()).toMatchSnapshot();
39
39
  });
40
40
  it('should call onChange function when click on Checkbox.Switch', function () {
41
41
  var onChangeMock = jest.fn();
@@ -2,7 +2,7 @@ var _excluded = ["value", "label", "helper", "disabled", "checked", "error", "st
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
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,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
  /* eslint-disable no-console */
4
4
  import React from 'react';
@@ -2,7 +2,7 @@ var _excluded = ["checked", "disabled", "onChange"];
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
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 = ["children", "selected", "counter", "icons", "disabled", "onTogg
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
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,12 +1,13 @@
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 { MapPin, ChevronDown } from '@gympass/yoga-icons';
4
4
  import { ThemeProvider, Chips } from '../..';
5
5
  describe('<Chips />', function () {
6
6
  describe('Snapshots', function () {
7
7
  it('should match snapshot', function () {
8
8
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, null, "Classes"))),
9
- container = _render.container;
9
+ container = _render.container,
10
+ toJSON = _render.toJSON;
10
11
 
11
12
  expect(toJSON(container)).toMatchSnapshot();
12
13
  });
@@ -14,19 +15,22 @@ describe('<Chips />', function () {
14
15
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, {
15
16
  disabled: true
16
17
  }, "Classes"))),
17
- container = _render2.container;
18
+ container = _render2.container,
19
+ toJSON = _render2.toJSON;
18
20
 
19
21
  expect(toJSON(container)).toMatchSnapshot();
20
22
  });
21
23
  it('should match snapshot with more than one Chip', function () {
22
24
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, null, "Classes"), /*#__PURE__*/React.createElement(Chips, null, "Gyms and studios"), /*#__PURE__*/React.createElement(Chips, null, "Personal trainers"))),
23
- container = _render3.container;
25
+ container = _render3.container,
26
+ toJSON = _render3.toJSON;
24
27
 
25
28
  expect(toJSON(container)).toMatchSnapshot();
26
29
  });
27
30
  it('should match snapshot with a long text', function () {
28
31
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, null, "Classes with a very long text"))),
29
- container = _render4.container;
32
+ container = _render4.container,
33
+ toJSON = _render4.toJSON;
30
34
 
31
35
  expect(toJSON(container)).toMatchSnapshot();
32
36
  });
@@ -35,7 +39,8 @@ describe('<Chips />', function () {
35
39
  var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, {
36
40
  selected: true
37
41
  }, "Classes"))),
38
- container = _render5.container;
42
+ container = _render5.container,
43
+ toJSON = _render5.toJSON;
39
44
 
40
45
  expect(toJSON(container)).toMatchSnapshot();
41
46
  });
@@ -45,7 +50,8 @@ describe('<Chips />', function () {
45
50
  }, "Gyms and studios"), /*#__PURE__*/React.createElement(Chips, {
46
51
  selected: true
47
52
  }, "Personal trainers"))),
48
- container = _render6.container;
53
+ container = _render6.container,
54
+ toJSON = _render6.toJSON;
49
55
 
50
56
  expect(toJSON(container)).toMatchSnapshot();
51
57
  });
@@ -55,7 +61,8 @@ describe('<Chips />', function () {
55
61
  var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Chips, {
56
62
  counter: 8
57
63
  }, "Classes"))),
58
- container = _render7.container;
64
+ container = _render7.container,
65
+ toJSON = _render7.toJSON;
59
66
 
60
67
  expect(toJSON(container)).toMatchSnapshot();
61
68
  });
@@ -69,7 +76,8 @@ describe('<Chips />', function () {
69
76
  counter: 1732,
70
77
  selected: true
71
78
  }, "Personal trainers"))),
72
- container = _render8.container;
79
+ container = _render8.container,
80
+ toJSON = _render8.toJSON;
73
81
 
74
82
  expect(toJSON(container)).toMatchSnapshot();
75
83
  });
@@ -101,7 +109,8 @@ describe('<Chips />', function () {
101
109
  selected: true,
102
110
  icon: [MapPin]
103
111
  }, "Availability"))),
104
- container = _render9.container;
112
+ container = _render9.container,
113
+ toJSON = _render9.toJSON;
105
114
 
106
115
  expect(toJSON(container)).toMatchSnapshot();
107
116
  });
@@ -3,7 +3,7 @@ var _excluded = ["selected"],
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
 
@@ -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';
@@ -2,7 +2,7 @@ var _excluded = ["isOpen", "children", "onClose"];
2
2
 
3
3
  var _templateObject, _templateObject2;
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,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,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';
@@ -9,9 +9,9 @@ describe('<Divider />', function () {
9
9
  minWidth: 300,
10
10
  justifyContent: "space-between"
11
11
  }, /*#__PURE__*/React.createElement(Text.H4, null, "First Content"), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(Text.H4, null, "Second Content")))),
12
- container = _render.container;
12
+ toJSON = _render.toJSON;
13
13
 
14
- expect(container).toMatchSnapshot();
14
+ expect(toJSON()).toMatchSnapshot();
15
15
  });
16
16
  it('should create vertical divider component', function () {
17
17
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Box, {
@@ -22,8 +22,8 @@ describe('<Divider />', function () {
22
22
  }, /*#__PURE__*/React.createElement(Text.H4, null, "First Content"), /*#__PURE__*/React.createElement(Divider, {
23
23
  vertical: true
24
24
  }), /*#__PURE__*/React.createElement(Text.H4, null, "Second Content")))),
25
- container = _render2.container;
25
+ toJSON = _render2.toJSON;
26
26
 
27
- expect(container).toMatchSnapshot();
27
+ expect(toJSON()).toMatchSnapshot();
28
28
  });
29
29
  });
@@ -2,7 +2,7 @@ var _excluded = ["visible", "title", "children", "onClose", "theme"];
2
2
 
3
3
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
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
 
@@ -9,18 +9,18 @@ describe('<Backdrop />', function () {
9
9
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Backdrop, {
10
10
  title: "Find an Activity"
11
11
  }, "Some Content"))),
12
- container = _render.container;
12
+ toJSON = _render.toJSON;
13
13
 
14
- expect(container).toMatchSnapshot();
14
+ expect(toJSON()).toMatchSnapshot();
15
15
  });
16
16
  it('should match snapshot when visible', function () {
17
17
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Backdrop, {
18
18
  visible: true,
19
19
  title: "Find an Activity"
20
20
  }, "Some Content"))),
21
- container = _render2.container;
21
+ toJSON = _render2.toJSON;
22
22
 
23
- expect(container).toMatchSnapshot();
23
+ expect(toJSON()).toMatchSnapshot();
24
24
  });
25
25
  });
26
26
  });
@@ -2,7 +2,7 @@ var _excluded = ["error", "label", "disabled", "full", "options", "cancelActionL
2
2
 
3
3
  var _templateObject, _templateObject2;
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