@gympass/yoga 2.5.7 → 2.5.10

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/LICENSE +21 -0
  2. package/cjs/AutoComplete/AutoComplete.theme.js +2 -2
  3. package/cjs/AutoComplete/web/AutoComplete.js +61 -15
  4. package/cjs/Button/native/Button.js +1 -1
  5. package/cjs/Button/native/Link.js +1 -1
  6. package/cjs/Button/native/Outline.js +1 -1
  7. package/cjs/Button/native/Text.js +1 -1
  8. package/cjs/Button/native/withTouchable.js +1 -1
  9. package/cjs/Button/web/Button.js +2 -4
  10. package/cjs/Button/web/Link.js +11 -3
  11. package/cjs/Button/web/Outline.js +11 -3
  12. package/cjs/Button/web/StyledButton.js +11 -3
  13. package/cjs/Button/web/Text.js +11 -3
  14. package/cjs/Card/index.js +4 -4
  15. package/cjs/Card/index.native.js +1 -1
  16. package/cjs/Card/native/Card/Actions.js +1 -1
  17. package/cjs/Card/native/Card/Card.js +1 -1
  18. package/cjs/Card/native/Card/Content.js +1 -1
  19. package/cjs/Card/native/Card/Header.js +1 -1
  20. package/cjs/Card/native/EventCard/EventCard.js +1 -1
  21. package/cjs/Card/native/GymCard/CheckIn/Avatar.js +1 -1
  22. package/cjs/Card/native/GymCard/CheckIn/CheckIn.js +1 -1
  23. package/cjs/Card/native/GymCard/CheckIn/Content.js +1 -1
  24. package/cjs/Card/native/GymCard/CheckIn/Header.js +1 -1
  25. package/cjs/Card/native/PlanCard/Actions.js +1 -1
  26. package/cjs/Card/native/PlanCard/Content.js +1 -1
  27. package/cjs/Card/native/PlanCard/PlanCard.js +1 -1
  28. package/cjs/Card/native/index.js +1 -1
  29. package/cjs/Card/web/Card/Actions.js +11 -3
  30. package/cjs/Card/web/Card/Card.js +23 -7
  31. package/cjs/Card/web/Card/Content.js +11 -3
  32. package/cjs/Card/web/Card/Header.js +11 -3
  33. package/cjs/Card/web/EventCard/EventCard.js +82 -16
  34. package/cjs/Card/web/PlanCard/Actions.js +11 -3
  35. package/cjs/Card/web/PlanCard/Content.js +34 -8
  36. package/cjs/Card/web/PlanCard/PlanCard.js +12 -4
  37. package/cjs/Card/web/index.js +4 -4
  38. package/cjs/Checkbox/native/Checkbox.js +1 -1
  39. package/cjs/Checkbox/native/Switch.js +1 -1
  40. package/cjs/Checkbox/native/index.js +1 -1
  41. package/cjs/Checkbox/web/Checkbox.js +80 -14
  42. package/cjs/Checkbox/web/Switch.js +100 -14
  43. package/cjs/Checkbox/web/index.js +4 -4
  44. package/cjs/Dropdown/native/Backdrop.js +1 -1
  45. package/cjs/Dropdown/native/Dropdown.js +1 -1
  46. package/cjs/Dropdown/native/Options.android.js +1 -1
  47. package/cjs/Dropdown/native/Options.ios.js +1 -1
  48. package/cjs/Dropdown/web/Dropdown.js +80 -15
  49. package/cjs/Grid/index.js +8 -8
  50. package/cjs/Grid/web/Col.js +34 -6
  51. package/cjs/Grid/web/Container.js +68 -10
  52. package/cjs/Grid/web/Hide.js +11 -3
  53. package/cjs/Grid/web/Row.js +33 -5
  54. package/cjs/Grid/web/hideQuery.js +164 -16
  55. package/cjs/Grid/web/index.js +8 -8
  56. package/cjs/Grid/web/query.js +11 -3
  57. package/cjs/Grid/web/query.test.js +22 -4
  58. package/cjs/Input/native/Input.js +1 -1
  59. package/cjs/Input/native/Password.js +1 -1
  60. package/cjs/Input/native/index.js +1 -1
  61. package/cjs/Input/web/Email.js +1 -1
  62. package/cjs/Input/web/Field.js +45 -7
  63. package/cjs/Input/web/Fieldset.js +11 -3
  64. package/cjs/Input/web/Helper.js +22 -4
  65. package/cjs/Input/web/Input.js +31 -14
  66. package/cjs/Input/web/Label.js +27 -11
  67. package/cjs/Input/web/Legend.js +24 -8
  68. package/cjs/Input/web/Number.js +1 -1
  69. package/cjs/Input/web/Password.js +39 -13
  70. package/cjs/Input/web/Tel.js +1 -1
  71. package/cjs/Input/web/Wrapper.js +11 -3
  72. package/cjs/Input/web/index.js +8 -8
  73. package/cjs/List/native/List.js +1 -1
  74. package/cjs/List/native/ListItem.js +1 -1
  75. package/cjs/List/native/index.js +1 -1
  76. package/cjs/List/web/LinkItem.js +12 -4
  77. package/cjs/List/web/List.js +13 -7
  78. package/cjs/List/web/ListItem.js +12 -4
  79. package/cjs/List/web/index.js +4 -4
  80. package/cjs/Progress/native/Progress.js +1 -1
  81. package/cjs/Progress/web/Progress.js +35 -9
  82. package/cjs/RadioGroup/RadioGroupContext.js +1 -1
  83. package/cjs/RadioGroup/native/Button/RadioButton.js +1 -1
  84. package/cjs/RadioGroup/native/Radio/Radio.js +1 -1
  85. package/cjs/RadioGroup/native/RadioGroup.js +1 -1
  86. package/cjs/RadioGroup/native/index.js +1 -1
  87. package/cjs/RadioGroup/web/Button/RadioButton.js +28 -13
  88. package/cjs/RadioGroup/web/Radio/Radio.js +41 -15
  89. package/cjs/RadioGroup/web/RadioGroup.js +15 -9
  90. package/cjs/RadioGroup/web/index.js +4 -4
  91. package/cjs/Rating/native/Rating.js +1 -1
  92. package/cjs/Rating/web/Rating.js +17 -11
  93. package/cjs/Slider/native/Label.js +1 -1
  94. package/cjs/Slider/native/Slider.js +1 -1
  95. package/cjs/Slider/native/Tooltip.js +1 -1
  96. package/cjs/Slider/web/Marker.js +13 -7
  97. package/cjs/Slider/web/Slider.js +31 -17
  98. package/cjs/Slider/web/Tooltip.js +68 -12
  99. package/cjs/Stepper/native/Dots.js +1 -1
  100. package/cjs/Stepper/native/Line.js +1 -1
  101. package/cjs/Stepper/native/Step.js +1 -1
  102. package/cjs/Stepper/native/Stepper.js +1 -1
  103. package/cjs/Stepper/native/index.js +1 -1
  104. package/cjs/Stepper/web/Dots.js +80 -12
  105. package/cjs/Stepper/web/Line.js +24 -6
  106. package/cjs/Stepper/web/Step.js +11 -3
  107. package/cjs/Stepper/web/Stepper.js +37 -11
  108. package/cjs/Stepper/web/index.js +4 -4
  109. package/cjs/Tag/native/Tag.js +1 -1
  110. package/cjs/Tag/web/Tag.js +16 -10
  111. package/cjs/Text/native/Text.js +1 -1
  112. package/cjs/Text/native/index.js +1 -1
  113. package/cjs/Text/textStyle.js +10 -2
  114. package/cjs/Text/web/Text.js +12 -4
  115. package/cjs/Text/web/index.js +6 -6
  116. package/cjs/TextArea/native/TextArea.js +1 -1
  117. package/cjs/TextArea/web/TextArea.js +40 -14
  118. package/cjs/Theme/Provider/Provider.js +5 -7
  119. package/cjs/Theme/Provider/index.js +4 -4
  120. package/cjs/Theme/Provider/web/GlobalStyle.js +10 -2
  121. package/cjs/Theme/Provider/web/ThemeProvider.js +1 -3
  122. package/cjs/Theme/Provider/web/index.js +4 -4
  123. package/cjs/Theme/helpers/themeReader/base.test.js +1 -1
  124. package/cjs/Theme/helpers/themeReader/index.js +1 -1
  125. package/cjs/Theme/index.js +7 -7
  126. package/cjs/Theme/index.native.js +1 -1
  127. package/cjs/Theme/themes/BaseTheme.js +3 -3
  128. package/cjs/Theme/themes/Corporate.js +2 -2
  129. package/cjs/Theme/themes/EndUser.js +2 -2
  130. package/cjs/Theme/themes/Gyms.js +2 -2
  131. package/cjs/Theme/themes/Wellness.js +2 -2
  132. package/cjs/Theme/themes/index.js +6 -6
  133. package/cjs/index.js +51 -51
  134. package/cjs/index.native.js +1 -1
  135. package/cjs/shared/HiddenInput.js +11 -3
  136. package/cjs/shared/index.js +8 -8
  137. package/cjs/shared/index.native.js +1 -1
  138. package/cjs/shared/propTypes/index.js +8 -8
  139. package/esm/AutoComplete/AutoComplete.theme.js +2 -2
  140. package/esm/AutoComplete/web/AutoComplete.js +58 -12
  141. package/esm/Button/web/Button.js +2 -4
  142. package/esm/Button/web/Link.js +10 -2
  143. package/esm/Button/web/Outline.js +10 -2
  144. package/esm/Button/web/StyledButton.js +10 -2
  145. package/esm/Button/web/Text.js +10 -2
  146. package/esm/Card/web/Card/Actions.js +10 -2
  147. package/esm/Card/web/Card/Card.js +23 -7
  148. package/esm/Card/web/Card/Content.js +10 -2
  149. package/esm/Card/web/Card/Header.js +10 -2
  150. package/esm/Card/web/EventCard/EventCard.js +80 -14
  151. package/esm/Card/web/PlanCard/Actions.js +10 -2
  152. package/esm/Card/web/PlanCard/Content.js +34 -8
  153. package/esm/Card/web/PlanCard/PlanCard.js +11 -3
  154. package/esm/Checkbox/web/Checkbox.js +81 -15
  155. package/esm/Checkbox/web/Switch.js +97 -11
  156. package/esm/Dropdown/web/Dropdown.js +80 -15
  157. package/esm/Grid/web/Col.js +33 -5
  158. package/esm/Grid/web/Container.js +64 -6
  159. package/esm/Grid/web/Hide.js +10 -2
  160. package/esm/Grid/web/Row.js +32 -4
  161. package/esm/Grid/web/hideQuery.js +164 -16
  162. package/esm/Grid/web/query.js +10 -2
  163. package/esm/Grid/web/query.test.js +21 -3
  164. package/esm/Input/web/Email.js +1 -1
  165. package/esm/Input/web/Field.js +42 -4
  166. package/esm/Input/web/Fieldset.js +10 -2
  167. package/esm/Input/web/Helper.js +21 -3
  168. package/esm/Input/web/Input.js +28 -11
  169. package/esm/Input/web/Label.js +24 -8
  170. package/esm/Input/web/Legend.js +24 -8
  171. package/esm/Input/web/Number.js +1 -1
  172. package/esm/Input/web/Password.js +36 -10
  173. package/esm/Input/web/Tel.js +1 -1
  174. package/esm/Input/web/Wrapper.js +10 -2
  175. package/esm/List/web/LinkItem.js +11 -3
  176. package/esm/List/web/List.js +13 -7
  177. package/esm/List/web/ListItem.js +11 -3
  178. package/esm/Progress/web/Progress.js +35 -9
  179. package/esm/RadioGroup/RadioGroupContext.js +1 -1
  180. package/esm/RadioGroup/web/Button/RadioButton.js +25 -10
  181. package/esm/RadioGroup/web/Radio/Radio.js +38 -12
  182. package/esm/RadioGroup/web/RadioGroup.js +15 -9
  183. package/esm/Rating/web/Rating.js +14 -8
  184. package/esm/Slider/web/Marker.js +13 -7
  185. package/esm/Slider/web/Slider.js +28 -14
  186. package/esm/Slider/web/Tooltip.js +68 -12
  187. package/esm/Stepper/web/Dots.js +76 -8
  188. package/esm/Stepper/web/Line.js +21 -3
  189. package/esm/Stepper/web/Step.js +10 -2
  190. package/esm/Stepper/web/Stepper.js +34 -8
  191. package/esm/Tag/web/Tag.js +13 -7
  192. package/esm/Text/textStyle.js +10 -2
  193. package/esm/Text/web/Text.js +10 -2
  194. package/esm/TextArea/web/TextArea.js +37 -11
  195. package/esm/Theme/Provider/Provider.js +2 -4
  196. package/esm/Theme/Provider/web/GlobalStyle.js +10 -2
  197. package/esm/Theme/Provider/web/ThemeProvider.js +1 -3
  198. package/esm/Theme/helpers/themeReader/base.test.js +1 -1
  199. package/esm/Theme/helpers/themeReader/index.js +1 -1
  200. package/esm/Theme/themes/BaseTheme.js +3 -3
  201. package/esm/Theme/themes/Corporate.js +2 -2
  202. package/esm/Theme/themes/EndUser.js +2 -2
  203. package/esm/Theme/themes/Gyms.js +2 -2
  204. package/esm/Theme/themes/Wellness.js +2 -2
  205. package/esm/shared/HiddenInput.js +10 -2
  206. package/package.json +5 -2
package/cjs/Grid/index.js CHANGED
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Col", {
6
+ Object.defineProperty(exports, "Container", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _web.Col;
9
+ return _web.Container;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Container", {
12
+ Object.defineProperty(exports, "Row", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _web.Container;
15
+ return _web.Row;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "Hide", {
18
+ Object.defineProperty(exports, "Col", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _web.Hide;
21
+ return _web.Col;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "Row", {
24
+ Object.defineProperty(exports, "Hide", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _web.Row;
27
+ return _web.Hide;
28
28
  }
29
29
  });
30
30
 
@@ -15,22 +15,50 @@ var _query = _interopRequireDefault(require("./query"));
15
15
 
16
16
  var _hideQuery = _interopRequireDefault(require("./hideQuery"));
17
17
 
18
- var _templateObject, _templateObject2, _templateObject3;
19
-
20
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
19
 
20
+ function _templateObject3() {
21
+ var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n min-width: 0;\n min-height: 0;\n\n ", "\n\n ", "\n"]);
22
+
23
+ _templateObject3 = function _templateObject3() {
24
+ return data;
25
+ };
26
+
27
+ return data;
28
+ }
29
+
22
30
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
23
31
 
24
32
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
33
 
26
34
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
27
35
 
28
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
36
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
29
37
 
30
38
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
31
39
 
32
40
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
33
41
 
42
+ function _templateObject2() {
43
+ var data = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "]);
44
+
45
+ _templateObject2 = function _templateObject2() {
46
+ return data;
47
+ };
48
+
49
+ return data;
50
+ }
51
+
52
+ function _templateObject() {
53
+ var data = _taggedTemplateLiteral(["\n grid-column-end: span ", ";\n "]);
54
+
55
+ _templateObject = function _templateObject() {
56
+ return data;
57
+ };
58
+
59
+ return data;
60
+ }
61
+
34
62
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
35
63
 
36
64
  var breakpoints = _yogaTokens["default"].breakpoints;
@@ -40,12 +68,12 @@ var columnPosition = function columnPosition(props) {
40
68
  var position = breakpointKeys.filter(function (breakpoint) {
41
69
  return props[breakpoint];
42
70
  }).map(function (filteredBreakpoint) {
43
- return _query["default"][filteredBreakpoint](_templateObject || (_templateObject = _taggedTemplateLiteral(["\n grid-column-end: span ", ";\n "])), props[filteredBreakpoint] || 12);
71
+ return _query["default"][filteredBreakpoint](_templateObject(), props[filteredBreakpoint] || 12);
44
72
  });
45
73
  var starts = breakpointKeys.filter(function (breakpoint) {
46
74
  return props["".concat(breakpoint, "-start")];
47
75
  }).map(function (start) {
48
- return _query["default"][start](_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n grid-column-start: ", ";\n "])), props["".concat(start, "-start")]);
76
+ return _query["default"][start](_templateObject2(), props["".concat(start, "-start")]);
49
77
  });
50
78
  return [].concat(_toConsumableArray(position), _toConsumableArray(starts));
51
79
  };
@@ -56,7 +84,7 @@ var hideColumn = function hideColumn(hideProp) {
56
84
  });
57
85
  };
58
86
 
59
- var Col = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n min-width: 0;\n min-height: 0;\n\n ", "\n\n ", "\n"])), function (props) {
87
+ var Col = _styledComponents["default"].div(_templateObject3(), function (props) {
60
88
  return columnPosition(props);
61
89
  }, function (_ref) {
62
90
  var hide = _ref.hide;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -11,37 +11,95 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
11
 
12
12
  var _query = _interopRequireDefault(require("./query"));
13
13
 
14
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
15
-
16
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
15
 
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
17
+
18
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+
20
+ function _templateObject6() {
21
+ var data = _taggedTemplateLiteral(["\n max-width: ", "px;\n ", "\n ", "\n ", "\n "]);
22
+
23
+ _templateObject6 = function _templateObject6() {
24
+ return data;
25
+ };
26
+
27
+ return data;
28
+ }
29
+
30
+ function _templateObject5() {
31
+ var data = _taggedTemplateLiteral(["\n ", "\n "]);
32
+
33
+ _templateObject5 = function _templateObject5() {
34
+ return data;
35
+ };
36
+
37
+ return data;
38
+ }
39
+
40
+ function _templateObject4() {
41
+ var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n ", "\n"]);
42
+
43
+ _templateObject4 = function _templateObject4() {
44
+ return data;
45
+ };
46
+
47
+ return data;
48
+ }
49
+
50
+ function _templateObject3() {
51
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
52
+
53
+ _templateObject3 = function _templateObject3() {
54
+ return data;
55
+ };
56
+
57
+ return data;
58
+ }
59
+
60
+ function _templateObject2() {
61
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
62
+
63
+ _templateObject2 = function _templateObject2() {
64
+ return data;
65
+ };
66
+
67
+ return data;
68
+ }
69
+
70
+ function _templateObject() {
71
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
72
+
73
+ _templateObject = function _templateObject() {
74
+ return data;
75
+ };
19
76
 
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
77
+ return data;
78
+ }
21
79
 
22
80
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
23
81
 
24
- var mobile = _query["default"].xxs(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
82
+ var mobile = _query["default"].xxs(_templateObject(), function (_ref) {
25
83
  var grid = _ref.theme.yoga.components.grid;
26
84
  return "\n margin-left: ".concat(grid.container.margin.mobile.left, "px;\n margin-right: ").concat(grid.container.margin.mobile.right, "px;\n ");
27
85
  });
28
86
 
29
- var desktop = _query["default"].lg(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
87
+ var desktop = _query["default"].lg(_templateObject2(), function (_ref2) {
30
88
  var grid = _ref2.theme.yoga.components.grid;
31
89
  return "\n margin-left: ".concat(grid.container.margin.desktop.left, "px;\n margin-right: ").concat(grid.container.margin.desktop.right, "px;\n ");
32
90
  });
33
91
 
34
- var xxxlarge = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
92
+ var xxxlarge = (0, _styledComponents.css)(_templateObject3(), function (_ref3) {
35
93
  var _ref3$theme$yoga$brea = _ref3.theme.yoga.breakpoints.xxxl,
36
94
  width = _ref3$theme$yoga$brea.width,
37
95
  margin = _ref3$theme$yoga$brea.margin;
38
96
  return "\n @media (min-width: ".concat(width + margin * 2, "px) {\n margin-left: auto;\n margin-right: auto;\n }\n ");
39
97
  });
40
98
 
41
- var Container = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n ", "\n"])), function (_ref4) {
99
+ var Container = _styledComponents["default"].div(_templateObject4(), function (_ref4) {
42
100
  var fluid = _ref4.fluid,
43
101
  grid = _ref4.theme.yoga.components.grid;
44
- return (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", "\n "])), fluid ? 'max-width: 100%;' : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n max-width: ", "px;\n ", "\n ", "\n ", "\n "])), grid.container.width, mobile, desktop, xxxlarge));
102
+ return (0, _styledComponents.css)(_templateObject5(), fluid ? 'max-width: 100%;' : (0, _styledComponents.css)(_templateObject6(), grid.container.width, mobile, desktop, xxxlarge));
45
103
  });
46
104
 
47
105
  var _default = Container;
@@ -13,15 +13,23 @@ var _yogaTokens = _interopRequireDefault(require("@gympass/yoga-tokens"));
13
13
 
14
14
  var _hideQuery = _interopRequireDefault(require("./hideQuery"));
15
15
 
16
- var _templateObject;
17
-
18
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
17
 
18
+ function _templateObject() {
19
+ var data = _taggedTemplateLiteral(["\n ", "\n\n ", "\n"]);
20
+
21
+ _templateObject = function _templateObject() {
22
+ return data;
23
+ };
24
+
25
+ return data;
26
+ }
27
+
20
28
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
21
29
 
22
30
  var breakpoints = _yogaTokens["default"].breakpoints;
23
31
 
24
- var Hide = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n"])), function (props) {
32
+ var Hide = _styledComponents["default"].div(_templateObject(), function (props) {
25
33
  return Object.keys(props).filter(function (prop) {
26
34
  return props[prop] && Object.keys(breakpoints).includes(prop);
27
35
  }).map(function (breakpoint) {
@@ -9,23 +9,51 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
9
9
 
10
10
  var _query = _interopRequireDefault(require("./query"));
11
11
 
12
- var _templateObject, _templateObject2, _templateObject3;
13
-
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
13
 
14
+ function _templateObject3() {
15
+ var data = _taggedTemplateLiteral(["\n display: grid;\n box-sizing: border-box;\n\n grid-template-columns: repeat(12, 1fr);\n\n ", "\n ", "\n"]);
16
+
17
+ _templateObject3 = function _templateObject3() {
18
+ return data;
19
+ };
20
+
21
+ return data;
22
+ }
23
+
24
+ function _templateObject2() {
25
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
26
+
27
+ _templateObject2 = function _templateObject2() {
28
+ return data;
29
+ };
30
+
31
+ return data;
32
+ }
33
+
34
+ function _templateObject() {
35
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
36
+
37
+ _templateObject = function _templateObject() {
38
+ return data;
39
+ };
40
+
41
+ return data;
42
+ }
43
+
16
44
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
45
 
18
- var desktop = _query["default"].lg(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
46
+ var desktop = _query["default"].lg(_templateObject(), function (_ref) {
19
47
  var grid = _ref.theme.yoga.components.grid;
20
48
  return "\n grid-column-gap: ".concat(grid.gutter.desktop, "px;\n ");
21
49
  });
22
50
 
23
- var mobile = _query["default"].xxs(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
51
+ var mobile = _query["default"].xxs(_templateObject2(), function (_ref2) {
24
52
  var grid = _ref2.theme.yoga.components.grid;
25
53
  return "\n grid-column-gap: ".concat(grid.gutter.mobile, "px;\n ");
26
54
  });
27
55
 
28
- var Row = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: grid;\n box-sizing: border-box;\n\n grid-template-columns: repeat(12, 1fr);\n\n ", "\n ", "\n"])), mobile, desktop);
56
+ var Row = _styledComponents["default"].div(_templateObject3(), mobile, desktop);
29
57
 
30
58
  var _default = Row;
31
59
  exports["default"] = _default;
@@ -7,7 +7,155 @@ exports["default"] = void 0;
7
7
 
8
8
  var _styledComponents = require("styled-components");
9
9
 
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
10
+ function _templateObject15() {
11
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
12
+
13
+ _templateObject15 = function _templateObject15() {
14
+ return data;
15
+ };
16
+
17
+ return data;
18
+ }
19
+
20
+ function _templateObject14() {
21
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
22
+
23
+ _templateObject14 = function _templateObject14() {
24
+ return data;
25
+ };
26
+
27
+ return data;
28
+ }
29
+
30
+ function _templateObject13() {
31
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
32
+
33
+ _templateObject13 = function _templateObject13() {
34
+ return data;
35
+ };
36
+
37
+ return data;
38
+ }
39
+
40
+ function _templateObject12() {
41
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
42
+
43
+ _templateObject12 = function _templateObject12() {
44
+ return data;
45
+ };
46
+
47
+ return data;
48
+ }
49
+
50
+ function _templateObject11() {
51
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
52
+
53
+ _templateObject11 = function _templateObject11() {
54
+ return data;
55
+ };
56
+
57
+ return data;
58
+ }
59
+
60
+ function _templateObject10() {
61
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
62
+
63
+ _templateObject10 = function _templateObject10() {
64
+ return data;
65
+ };
66
+
67
+ return data;
68
+ }
69
+
70
+ function _templateObject9() {
71
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
72
+
73
+ _templateObject9 = function _templateObject9() {
74
+ return data;
75
+ };
76
+
77
+ return data;
78
+ }
79
+
80
+ function _templateObject8() {
81
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
82
+
83
+ _templateObject8 = function _templateObject8() {
84
+ return data;
85
+ };
86
+
87
+ return data;
88
+ }
89
+
90
+ function _templateObject7() {
91
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
92
+
93
+ _templateObject7 = function _templateObject7() {
94
+ return data;
95
+ };
96
+
97
+ return data;
98
+ }
99
+
100
+ function _templateObject6() {
101
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
102
+
103
+ _templateObject6 = function _templateObject6() {
104
+ return data;
105
+ };
106
+
107
+ return data;
108
+ }
109
+
110
+ function _templateObject5() {
111
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
112
+
113
+ _templateObject5 = function _templateObject5() {
114
+ return data;
115
+ };
116
+
117
+ return data;
118
+ }
119
+
120
+ function _templateObject4() {
121
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
122
+
123
+ _templateObject4 = function _templateObject4() {
124
+ return data;
125
+ };
126
+
127
+ return data;
128
+ }
129
+
130
+ function _templateObject3() {
131
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "]);
132
+
133
+ _templateObject3 = function _templateObject3() {
134
+ return data;
135
+ };
136
+
137
+ return data;
138
+ }
139
+
140
+ function _templateObject2() {
141
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "]);
142
+
143
+ _templateObject2 = function _templateObject2() {
144
+ return data;
145
+ };
146
+
147
+ return data;
148
+ }
149
+
150
+ function _templateObject() {
151
+ var data = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n display: none !important;\n }\n "]);
152
+
153
+ _templateObject = function _templateObject() {
154
+ return data;
155
+ };
156
+
157
+ return data;
158
+ }
11
159
 
12
160
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
161
 
@@ -37,21 +185,21 @@ var hideQuery = function hideQuery(_ref) {
37
185
  _ref$xxxl = _ref$xxxl === void 0 ? {} : _ref$xxxl;
38
186
  var xxxlWidth = _ref$xxxl.width;
39
187
  return {
40
- xxs: (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n display: none !important;\n }\n "])), xsWidth),
41
- 'xxs-start': (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), xxsWidth),
42
- xs: (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), xsWidth, smWidth - 1),
43
- 'xs-start': (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), xsWidth),
44
- sm: (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), smWidth, mdWidth - 1),
45
- 'sm-start': (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), smWidth),
46
- md: (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), mdWidth, lgWidth - 1),
47
- 'md-start': (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), mdWidth),
48
- lg: (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), lgWidth, xlWidth - 1),
49
- 'lg-start': (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), lgWidth),
50
- xl: (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), xlWidth, xxlWidth - 1),
51
- 'xl-start': (0, _styledComponents.css)(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), xlWidth),
52
- xxl: (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), xxlWidth, xxxlWidth - 1),
53
- 'xxl-start': (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) and (max-width: ", "px) {\n display: none !important;\n }\n "])), xxlWidth, xxxlWidth - 1),
54
- xxxl: (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n display: none !important;\n }\n "])), xxxlWidth)
188
+ xxs: (0, _styledComponents.css)(_templateObject(), xsWidth),
189
+ 'xxs-start': (0, _styledComponents.css)(_templateObject2(), xxsWidth),
190
+ xs: (0, _styledComponents.css)(_templateObject3(), xsWidth, smWidth - 1),
191
+ 'xs-start': (0, _styledComponents.css)(_templateObject4(), xsWidth),
192
+ sm: (0, _styledComponents.css)(_templateObject5(), smWidth, mdWidth - 1),
193
+ 'sm-start': (0, _styledComponents.css)(_templateObject6(), smWidth),
194
+ md: (0, _styledComponents.css)(_templateObject7(), mdWidth, lgWidth - 1),
195
+ 'md-start': (0, _styledComponents.css)(_templateObject8(), mdWidth),
196
+ lg: (0, _styledComponents.css)(_templateObject9(), lgWidth, xlWidth - 1),
197
+ 'lg-start': (0, _styledComponents.css)(_templateObject10(), lgWidth),
198
+ xl: (0, _styledComponents.css)(_templateObject11(), xlWidth, xxlWidth - 1),
199
+ 'xl-start': (0, _styledComponents.css)(_templateObject12(), xlWidth),
200
+ xxl: (0, _styledComponents.css)(_templateObject13(), xxlWidth, xxxlWidth - 1),
201
+ 'xxl-start': (0, _styledComponents.css)(_templateObject14(), xxlWidth, xxxlWidth - 1),
202
+ xxxl: (0, _styledComponents.css)(_templateObject15(), xxxlWidth)
55
203
  };
56
204
  };
57
205
 
@@ -3,28 +3,28 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "Col", {
6
+ Object.defineProperty(exports, "Container", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _Col["default"];
9
+ return _Container["default"];
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "Container", {
12
+ Object.defineProperty(exports, "Row", {
13
13
  enumerable: true,
14
14
  get: function get() {
15
- return _Container["default"];
15
+ return _Row["default"];
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "Hide", {
18
+ Object.defineProperty(exports, "Col", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _Hide["default"];
21
+ return _Col["default"];
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "Row", {
24
+ Object.defineProperty(exports, "Hide", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Row["default"];
27
+ return _Hide["default"];
28
28
  }
29
29
  });
30
30
 
@@ -9,16 +9,24 @@ var _yogaTokens = _interopRequireDefault(require("@gympass/yoga-tokens"));
9
9
 
10
10
  var _styledComponents = require("styled-components");
11
11
 
12
- var _templateObject;
13
-
14
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
13
 
14
+ function _templateObject() {
15
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n ", "\n }\n "]);
16
+
17
+ _templateObject = function _templateObject() {
18
+ return data;
19
+ };
20
+
21
+ return data;
22
+ }
23
+
16
24
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
25
 
18
26
  var breakpoints = _yogaTokens["default"].breakpoints;
19
27
  var query = Object.keys(breakpoints).reduce(function (acc, label) {
20
28
  acc[label] = function () {
21
- return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n ", "\n }\n "])), breakpoints[label].width, _styledComponents.css.apply(void 0, arguments));
29
+ return (0, _styledComponents.css)(_templateObject(), breakpoints[label].width, _styledComponents.css.apply(void 0, arguments));
22
30
  };
23
31
 
24
32
  return acc;
@@ -6,10 +6,28 @@ var _yogaTokens = _interopRequireDefault(require("@gympass/yoga-tokens"));
6
6
 
7
7
  var _query = _interopRequireDefault(require("./query"));
8
8
 
9
- var _templateObject, _templateObject2;
10
-
11
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
10
 
11
+ function _templateObject2() {
12
+ var data = _taggedTemplateLiteral(["\n padding: 10px;\n "]);
13
+
14
+ _templateObject2 = function _templateObject2() {
15
+ return data;
16
+ };
17
+
18
+ return data;
19
+ }
20
+
21
+ function _templateObject() {
22
+ var data = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n padding: 10px;\n }\n "]);
23
+
24
+ _templateObject = function _templateObject() {
25
+ return data;
26
+ };
27
+
28
+ return data;
29
+ }
30
+
13
31
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
14
32
 
15
33
  var breakpoints = _yogaTokens["default"].breakpoints;
@@ -21,11 +39,11 @@ var formatCss = function formatCss(style) {
21
39
  describe('query helper function', function () {
22
40
  it('should create a media query rule for all breakpoints', function () {
23
41
  var expectedStyle = function expectedStyle(breakpoint) {
24
- return (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n @media (min-width: ", "px) {\n padding: 10px;\n }\n "])), breakpoint.width);
42
+ return (0, _styledComponents.css)(_templateObject(), breakpoint.width);
25
43
  };
26
44
 
27
45
  Object.keys(breakpoints).map(function (breakpoint) {
28
- var style = _query["default"][breakpoint](_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 10px;\n "])));
46
+ var style = _query["default"][breakpoint](_templateObject2());
29
47
 
30
48
  return expect(formatCss(style)).toBe(formatCss(expectedStyle(breakpoints[breakpoint])));
31
49
  });