@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, { useRef } from 'react';
4
4
  import { render, fireEvent } from '@testing-library/react-native';
@@ -27,9 +27,9 @@ var Component = function Component(overrideProps) {
27
27
  describe('<Snackbar />', function () {
28
28
  it('should match snapshot when snackbar is default', function () {
29
29
  var _render = render( /*#__PURE__*/React.createElement(Component, null)),
30
- container = _render.container;
30
+ toJSON = _render.toJSON;
31
31
 
32
- expect(container).toMatchSnapshot();
32
+ expect(toJSON()).toMatchSnapshot();
33
33
  });
34
34
  it('should match snapshot when have an icon and action', function () {
35
35
  var overrideProps = {
@@ -39,9 +39,9 @@ describe('<Snackbar />', function () {
39
39
  };
40
40
 
41
41
  var _render2 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
42
- container = _render2.container;
42
+ toJSON = _render2.toJSON;
43
43
 
44
- expect(container).toMatchSnapshot();
44
+ expect(toJSON()).toMatchSnapshot();
45
45
  });
46
46
  it('should match snapshot when have a long text', function () {
47
47
  var overrideProps = {
@@ -52,9 +52,9 @@ describe('<Snackbar />', function () {
52
52
  };
53
53
 
54
54
  var _render3 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
55
- container = _render3.container;
55
+ toJSON = _render3.toJSON;
56
56
 
57
- expect(container).toMatchSnapshot();
57
+ expect(toJSON()).toMatchSnapshot();
58
58
  });
59
59
  it('should match snapshot when have a variant informative or attention prop', function () {
60
60
  var overrideProps = {
@@ -62,9 +62,9 @@ describe('<Snackbar />', function () {
62
62
  };
63
63
 
64
64
  var _render4 = render( /*#__PURE__*/React.createElement(Component, overrideProps)),
65
- container = _render4.container;
65
+ toJSON = _render4.toJSON;
66
66
 
67
- expect(container).toMatchSnapshot();
67
+ expect(toJSON()).toMatchSnapshot();
68
68
  });
69
69
  it('should show and hide snackbar when the open and close Animation function is called', function () {
70
70
  var overrideProps = {
@@ -77,7 +77,7 @@ describe('<Snackbar />', function () {
77
77
  getByText = _render5.getByText,
78
78
  getByTestId = _render5.getByTestId;
79
79
 
80
- fireEvent.layout(getByTestId('wrapper'), {
80
+ fireEvent(getByTestId('wrapper'), 'layout', {
81
81
  nativeEvent: {
82
82
  layout: {
83
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
 
@@ -6,9 +6,9 @@ describe('<Text />', function () {
6
6
  describe('Snapshots', function () {
7
7
  it('should match snapshot with Text', function () {
8
8
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H2, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.H4, null, "Live the mission"), /*#__PURE__*/React.createElement(Text, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Small, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Tiny, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Regular, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Medium, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Bold, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.Black, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.SectionTitle, null, "Live the mission"), /*#__PURE__*/React.createElement(Text.SmallestException, null, "Live the mission"))),
9
- container = _render.container;
9
+ toJSON = _render.toJSON;
10
10
 
11
- expect(container).toMatchSnapshot();
11
+ expect(toJSON()).toMatchSnapshot();
12
12
  });
13
13
  it('should match snapshot with Text variant', function () {
14
14
  var _render2 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, {
@@ -18,9 +18,9 @@ describe('<Text />', function () {
18
18
  }, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, {
19
19
  variant: "tertiary"
20
20
  }, "Live the mission"))),
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 Text light', function () {
26
26
  var _render3 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.H1, {
@@ -30,9 +30,9 @@ describe('<Text />', function () {
30
30
  }, "Live the mission"), /*#__PURE__*/React.createElement(Text.H3, {
31
31
  light: true
32
32
  }, "Live the mission"))),
33
- container = _render3.container;
33
+ toJSON = _render3.toJSON;
34
34
 
35
- expect(container).toMatchSnapshot();
35
+ expect(toJSON()).toMatchSnapshot();
36
36
  });
37
37
  it('should match snapshot with Text size', function () {
38
38
  var _render4 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text.Small, {
@@ -44,50 +44,50 @@ describe('<Text />', function () {
44
44
  }, "Live the xlarge mission"), /*#__PURE__*/React.createElement(Text.Medium, {
45
45
  size: "xxxlarge"
46
46
  }, "Live the xxxlarge mission"))),
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 inverted Text', function () {
52
52
  var _render5 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
53
53
  inverted: true
54
54
  }, "Live the mission"))),
55
- container = _render5.container;
55
+ toJSON = _render5.toJSON;
56
56
 
57
- expect(container).toMatchSnapshot();
57
+ expect(toJSON()).toMatchSnapshot();
58
58
  });
59
59
  it('should match snapshot with truncated lines Text', function () {
60
60
  var _render6 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
61
61
  numberOfLines: 1
62
62
  }, "Live the mission", /*#__PURE__*/React.createElement("br", null), "even in one line"))),
63
- container = _render6.container;
63
+ toJSON = _render6.toJSON;
64
64
 
65
- expect(container).toMatchSnapshot();
65
+ expect(toJSON()).toMatchSnapshot();
66
66
  });
67
67
  it('should match snapshot with border prop system', function () {
68
68
  var _render7 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
69
69
  border: "small",
70
70
  bRadius: "small"
71
71
  }, "Live the mission"))),
72
- container = _render7.container;
72
+ toJSON = _render7.toJSON;
73
73
 
74
- expect(container).toMatchSnapshot();
74
+ expect(toJSON()).toMatchSnapshot();
75
75
  });
76
76
  it('should match snapshot with background color prop system', function () {
77
77
  var _render8 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
78
78
  backgroundColor: "vibin"
79
79
  }, "Live the mission"))),
80
- container = _render8.container;
80
+ toJSON = _render8.toJSON;
81
81
 
82
- expect(container).toMatchSnapshot();
82
+ expect(toJSON()).toMatchSnapshot();
83
83
  });
84
84
  it('should match snapshot with elevation prop system', function () {
85
85
  var _render9 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
86
86
  elevation: "medium"
87
87
  }, "Live the mission"))),
88
- container = _render9.container;
88
+ toJSON = _render9.toJSON;
89
89
 
90
- expect(container).toMatchSnapshot();
90
+ expect(toJSON()).toMatchSnapshot();
91
91
  });
92
92
  it('should match snapshot with spacing prop system', function () {
93
93
  var _render10 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
@@ -95,9 +95,9 @@ describe('<Text />', function () {
95
95
  paddingVertical: "large",
96
96
  paddingHorizontal: "small"
97
97
  }, "Live the mission"))),
98
- container = _render10.container;
98
+ toJSON = _render10.toJSON;
99
99
 
100
- expect(container).toMatchSnapshot();
100
+ expect(toJSON()).toMatchSnapshot();
101
101
  });
102
102
  it('should match snapshot with typography prop system', function () {
103
103
  var _render11 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
@@ -106,17 +106,17 @@ describe('<Text />', function () {
106
106
  fontWeight: "medium",
107
107
  lineHeight: "small"
108
108
  }, "Live the mission"))),
109
- container = _render11.container;
109
+ toJSON = _render11.toJSON;
110
110
 
111
- expect(container).toMatchSnapshot();
111
+ expect(toJSON()).toMatchSnapshot();
112
112
  });
113
113
  it('should match snapshot with display prop system', function () {
114
114
  var _render12 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
115
115
  display: "flex"
116
116
  }, "Live the mission"))),
117
- container = _render12.container;
117
+ toJSON = _render12.toJSON;
118
118
 
119
- expect(container).toMatchSnapshot();
119
+ expect(toJSON()).toMatchSnapshot();
120
120
  });
121
121
  it('should match snapshot with position prop system', function () {
122
122
  var _render13 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
@@ -124,26 +124,26 @@ describe('<Text />', function () {
124
124
  top: "small",
125
125
  left: "small"
126
126
  }, "Live the mission"))),
127
- container = _render13.container;
127
+ toJSON = _render13.toJSON;
128
128
 
129
- expect(container).toMatchSnapshot();
129
+ expect(toJSON()).toMatchSnapshot();
130
130
  });
131
131
  it('should match snapshot with flexes prop system', function () {
132
132
  var _render14 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
133
133
  display: "flex",
134
134
  flexGrow: 1
135
135
  }, "Live the mission"))),
136
- container = _render14.container;
136
+ toJSON = _render14.toJSON;
137
137
 
138
- expect(container).toMatchSnapshot();
138
+ expect(toJSON()).toMatchSnapshot();
139
139
  });
140
140
  it('should match snapshot with overflows prop system', function () {
141
141
  var _render15 = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Text, {
142
142
  overflow: "scroll"
143
143
  }, "Live the mission"))),
144
- container = _render15.container;
144
+ toJSON = _render15.toJSON;
145
145
 
146
- expect(container).toMatchSnapshot();
146
+ expect(toJSON()).toMatchSnapshot();
147
147
  });
148
148
  });
149
149
  });
@@ -1,6 +1,6 @@
1
1
  var _templateObject;
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
 
@@ -4,8 +4,8 @@ import { ThemeProvider, TextArea } from '../..';
4
4
  describe('<TextArea />', function () {
5
5
  it('should match snapshot', function () {
6
6
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(TextArea, null))),
7
- container = _render.container;
7
+ toJSON = _render.toJSON;
8
8
 
9
- expect(container).toMatchSnapshot();
9
+ expect(toJSON()).toMatchSnapshot();
10
10
  });
11
11
  });
@@ -2,7 +2,7 @@ var _excluded = ["disabled", "error", "full", "helper", "label", "maxLength", "c
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
 
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["locale", "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
 
@@ -14,9 +14,9 @@ describe('themeReader - web specs', function () {
14
14
  var _render = render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Component, {
15
15
  testID: "component"
16
16
  }, "Teste"))),
17
- asJSON = _render.asJSON;
17
+ toJSON = _render.toJSON;
18
18
 
19
- expect(asJSON().children[0].props.style).toEqual([{
19
+ expect(toJSON().props.style).toEqual([{
20
20
  borderWidth: 1,
21
21
  borderColor: 'black',
22
22
  borderStyle: 'solid'
@@ -32,10 +32,10 @@ describe('themeReader - web specs', function () {
32
32
  borders: false,
33
33
  testID: "component"
34
34
  }, "Teste"))),
35
- asJSON = _render2.asJSON,
35
+ toJSON = _render2.toJSON,
36
36
  rerender = _render2.rerender;
37
37
 
38
- expect(asJSON().children[0].props.style).toEqual([{
38
+ expect(toJSON().props.style).toEqual([{
39
39
  borderWidth: 0,
40
40
  borderColor: 'black',
41
41
  borderStyle: 'solid'
@@ -44,7 +44,7 @@ describe('themeReader - web specs', function () {
44
44
  borders: true,
45
45
  "data-testid": "component"
46
46
  })));
47
- expect(asJSON().children[0].props.style).toEqual([{
47
+ expect(toJSON().props.style).toEqual([{
48
48
  borderWidth: 1,
49
49
  borderColor: 'black',
50
50
  borderStyle: 'solid'
@@ -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 prefer-destructuring */
4
4
  import { merge } from '@gympass/yoga-common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.38.0",
3
+ "version": "7.40.0",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "sideEffects": false,
@@ -39,8 +39,8 @@
39
39
  "react-google-font-loader": "^1.1.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@testing-library/react": "^9.1.4",
43
- "@testing-library/react-native": "^4.1.0",
42
+ "@testing-library/react": "^12.0.4",
43
+ "@testing-library/react-native": "^9.1.0",
44
44
  "babel-plugin-inline-react-svg": "^1.1.1",
45
45
  "styled-components": "^4.4.0"
46
46
  },
@@ -49,7 +49,7 @@
49
49
  "react": ">=16",
50
50
  "styled-components": "^4.4.0"
51
51
  },
52
- "gitHead": "8632b41839e5bc3869cf7eb6d54053feb57485de",
52
+ "gitHead": "111ff054a87fbb3e00ca49c8dea6d83ebf695a8a",
53
53
  "module": "./esm",
54
54
  "private": false,
55
55
  "react-native": "./cjs/index.native.js"