@gympass/yoga 2.5.5 → 2.5.7

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