@gympass/yoga 2.5.7 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/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 +81 -15
  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 +79 -13
  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 +78 -12
  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 +79 -13
  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/fonts/Fonts/Open Sans Bold Italic.ttf +0 -0
  207. package/fonts/Fonts/Open Sans Bold.ttf +0 -0
  208. package/fonts/Fonts/Open Sans Extrabold Italic.ttf +0 -0
  209. package/fonts/Fonts/Open Sans Extrabold.ttf +0 -0
  210. package/fonts/Fonts/Open Sans Italic.ttf +0 -0
  211. package/fonts/Fonts/Open Sans Light Italic.ttf +0 -0
  212. package/fonts/Fonts/Open Sans Light.ttf +0 -0
  213. package/fonts/Fonts/Open Sans Semibold Italic.ttf +0 -0
  214. package/fonts/Fonts/Open Sans Semibold.ttf +0 -0
  215. package/fonts/Fonts/Open Sans.ttf +0 -0
  216. package/package.json +4 -2
@@ -1,16 +1,54 @@
1
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
1
+ function _templateObject4() {
2
+ var data = _taggedTemplateLiteral(["\n & + label {\n ", "\n }\n "]);
3
+
4
+ _templateObject4 = function _templateObject4() {
5
+ return data;
6
+ };
7
+
8
+ return data;
9
+ }
10
+
11
+ function _templateObject3() {
12
+ var data = _taggedTemplateLiteral(["\n height: 100%;\n\n padding-top: ", "px;\n padding-right: ", "px;\n padding-bottom: ", "px;\n padding-left: ", "px;\n\n color: ", ";\n border: none;\n\n font-family: ", ", sans-serif;\n font-size: ", "px;\n font-weight: ", ";\n\n box-sizing: border-box;\n\n &:focus {\n color: ", ";\n\n & + label {\n ", "\n\n font-weight: ", ";\n color: ", ";\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n }\n\n ", "\n "]);
13
+
14
+ _templateObject3 = function _templateObject3() {
15
+ return data;
16
+ };
17
+
18
+ return data;
19
+ }
20
+
21
+ function _templateObject2() {
22
+ var data = _taggedTemplateLiteral(["\n width: 100%;\n\n background-color: transparent;\n\n appearance: none;\n outline: none;\n\n ", "\n\n &[type=\"number\"]::-webkit-outer-spin-button,\n &[type=\"number\"]::-webkit-inner-spin-button {\n display: none;\n }\n\n &:invalid {\n box-shadow: none;\n }\n"]);
23
+
24
+ _templateObject2 = function _templateObject2() {
25
+ return data;
26
+ };
27
+
28
+ return data;
29
+ }
30
+
31
+ function _templateObject() {
32
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
33
+
34
+ _templateObject = function _templateObject() {
35
+ return data;
36
+ };
37
+
38
+ return data;
39
+ }
2
40
 
3
41
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
42
 
5
43
  import styled, { css } from 'styled-components';
6
44
  var ICON_SIZE = 24;
7
- var labelTransition = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
45
+ var labelTransition = css(_templateObject(), function (_ref) {
8
46
  var _ref$theme$yoga = _ref.theme.yoga,
9
47
  transition = _ref$theme$yoga.transition,
10
48
  input = _ref$theme$yoga.components.input;
11
49
  return "\n top: 0;\n left: ".concat(input.padding.left, "px;\n\n font-size: ").concat(input.label.font.size.typed, "px;\n\n transform: translateY(-50%);\n transition-duration: ").concat(transition.duration[1], "ms;\n transition-timing-function: cubic-bezier(").concat(transition.timing[0].join(), ");\n ");
12
50
  });
13
- var Field = styled.input(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n\n background-color: transparent;\n\n appearance: none;\n outline: none;\n\n ", "\n\n &[type=\"number\"]::-webkit-outer-spin-button,\n &[type=\"number\"]::-webkit-inner-spin-button {\n display: none;\n }\n\n &:invalid {\n box-shadow: none;\n }\n"])), function (_ref2) {
51
+ var Field = styled.input(_templateObject2(), function (_ref2) {
14
52
  var cleanable = _ref2.cleanable,
15
53
  error = _ref2.error,
16
54
  typed = _ref2.typed,
@@ -18,6 +56,6 @@ var Field = styled.input(_templateObject2 || (_templateObject2 = _taggedTemplate
18
56
  colors = _ref2$theme$yoga.colors,
19
57
  baseFont = _ref2$theme$yoga.baseFont,
20
58
  input = _ref2$theme$yoga.components.input;
21
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: 100%;\n\n padding-top: ", "px;\n padding-right: ", "px;\n padding-bottom: ", "px;\n padding-left: ", "px;\n\n color: ", ";\n border: none;\n\n font-family: ", ", sans-serif;\n font-size: ", "px;\n font-weight: ", ";\n\n box-sizing: border-box;\n\n &:focus {\n color: ", ";\n\n & + label {\n ", "\n\n font-weight: ", ";\n color: ", ";\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n color: ", ";\n }\n\n &::placeholder {\n color: ", ";\n }\n\n ", "\n "])), input.padding.top, cleanable ? ICON_SIZE + input.padding.right : input.padding.right, input.padding.bottom, input.padding.left, input.font.color.focus, baseFont.family, input.font.size, input.font.weight, input.font.color.focus, labelTransition, input.label.font.weight.typed, error ? "".concat(colors.negative[1]) : "".concat(colors.gray.darker), colors.disabled.background, input.label.color["default"], typed ? css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n & + label {\n ", "\n }\n "])), labelTransition) : '');
59
+ return css(_templateObject3(), input.padding.top, cleanable ? ICON_SIZE + input.padding.right : input.padding.right, input.padding.bottom, input.padding.left, input.font.color.focus, baseFont.family, input.font.size, input.font.weight, input.font.color.focus, labelTransition, input.label.font.weight.typed, error ? "".concat(colors.negative[1]) : "".concat(colors.gray.darker), colors.disabled.background, input.label.color["default"], typed ? css(_templateObject4(), labelTransition) : '');
22
60
  });
23
61
  export default Field;
@@ -1,9 +1,17 @@
1
- var _templateObject;
1
+ function _templateObject() {
2
+ var data = _taggedTemplateLiteral(["\n position: absolute;\n top: -7px;\n left: 0;\n padding: 0;\n padding-left: 0px;\n right: 0;\n bottom: 0;\n margin: 0;\n pointer-events: none;\n\n ", "\n"]);
3
+
4
+ _templateObject = function _templateObject() {
5
+ return data;
6
+ };
7
+
8
+ return data;
9
+ }
2
10
 
3
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
12
 
5
13
  import styled from 'styled-components';
6
- var Fieldset = styled.fieldset(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: -7px;\n left: 0;\n padding: 0;\n padding-left: 0px;\n right: 0;\n bottom: 0;\n margin: 0;\n pointer-events: none;\n\n ", "\n"])), function (_ref) {
14
+ var Fieldset = styled.fieldset(_templateObject(), function (_ref) {
7
15
  var input = _ref.theme.yoga.components.input;
8
16
  return "\n border-radius: ".concat(input.border.radius, "px;\n border: ").concat(input.border.width, "px solid ").concat(input.border.color["default"], ";\n padding-left: ").concat(input.label.padding.left + input.border.radius, "px;\n ");
9
17
  });
@@ -1,11 +1,29 @@
1
- var _templateObject, _templateObject2;
1
+ function _templateObject2() {
2
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
3
+
4
+ _templateObject2 = function _templateObject2() {
5
+ return data;
6
+ };
7
+
8
+ return data;
9
+ }
10
+
11
+ function _templateObject() {
12
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
13
+
14
+ _templateObject = function _templateObject() {
15
+ return data;
16
+ };
17
+
18
+ return data;
19
+ }
2
20
 
3
21
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
22
 
5
23
  import React from 'react';
6
24
  import styled from 'styled-components';
7
25
  import { bool, string, number } from 'prop-types';
8
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
26
+ var Wrapper = styled.div(_templateObject(), function (_ref) {
9
27
  var disabled = _ref.disabled,
10
28
  error = _ref.error,
11
29
  _ref$theme$yoga = _ref.theme.yoga,
@@ -13,7 +31,7 @@ var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLi
13
31
  input = _ref$theme$yoga.components.input;
14
32
  return "\n display: flex;\n margin-top: ".concat(input.helper.margin.top, "px;\n\n color: ").concat(input.helper.color, ";\n\n ").concat(error ? "color: ".concat(colors.negative[1], ";") : '', "\n ").concat(disabled ? "color: ".concat(colors.disabled.background, ";") : '', "\n ");
15
33
  });
16
- var Info = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
34
+ var Info = styled.span(_templateObject2(), function (_ref2) {
17
35
  var right = _ref2.right,
18
36
  input = _ref2.theme.yoga.components.input;
19
37
  return "\n font-size: ".concat(input.helper.font.size, "px;\n \n ").concat(right ? 'margin-left: auto;' : '', "\n ");
@@ -1,8 +1,4 @@
1
- var _excluded = ["className", "cleanable", "disabled", "error", "full", "helper", "label", "maxLength", "readOnly", "style", "value", "onChange", "onClean"];
2
-
3
- var _templateObject, _templateObject2;
4
-
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); }
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); }
6
2
 
7
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
4
 
@@ -12,7 +8,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
8
 
13
9
  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; }
14
10
 
15
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
11
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
12
 
17
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
14
 
@@ -20,6 +16,26 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
20
16
 
21
17
  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; }
22
18
 
19
+ function _templateObject2() {
20
+ var data = _taggedTemplateLiteral(["\n ", "px\n "]);
21
+
22
+ _templateObject2 = function _templateObject2() {
23
+ return data;
24
+ };
25
+
26
+ return data;
27
+ }
28
+
29
+ function _templateObject() {
30
+ var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: ", ";\n"]);
31
+
32
+ _templateObject = function _templateObject() {
33
+ return data;
34
+ };
35
+
36
+ return data;
37
+ }
38
+
23
39
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
40
 
25
41
  import React, { useState, useRef, useEffect } from 'react';
@@ -31,11 +47,11 @@ import Wrapper from './Wrapper';
31
47
  import Field from './Field';
32
48
  import Label from './Label';
33
49
  import Helper from './Helper';
34
- var Control = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n width: ", ";\n"])), function (_ref) {
50
+ var Control = styled.div(_templateObject(), function (_ref) {
35
51
  var full = _ref.full;
36
- return full ? '100%' : css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "px\n "])), theme.components.input.width);
52
+ return full ? '100%' : css(_templateObject2(), theme.components.input.width);
37
53
  });
38
- var Input = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
54
+ var Input = React.forwardRef(function (_ref2, ref) {
39
55
  var className = _ref2.className,
40
56
  cleanable = _ref2.cleanable,
41
57
  disabled = _ref2.disabled,
@@ -49,7 +65,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
49
65
  value = _ref2.value,
50
66
  _onChange = _ref2.onChange,
51
67
  onClean = _ref2.onClean,
52
- props = _objectWithoutProperties(_ref2, _excluded);
68
+ props = _objectWithoutProperties(_ref2, ["className", "cleanable", "disabled", "error", "full", "helper", "label", "maxLength", "readOnly", "style", "value", "onChange", "onClean"]);
53
69
 
54
70
  var _useState = useState(Boolean(value)),
55
71
  _useState2 = _slicedToArray(_useState, 2),
@@ -92,7 +108,8 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
92
108
  full: full,
93
109
  readOnly: readOnly,
94
110
  maxLength: maxLength,
95
- typed: typed,
111
+ typed: typed
112
+ }, {
96
113
  ref: inputRef,
97
114
  value: inputValue,
98
115
  onChange: function onChange(e) {
@@ -1,13 +1,29 @@
1
- var _excluded = ["children", "typed", "error", "disabled"];
2
-
3
- var _templateObject, _templateObject2;
4
-
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); }
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); }
6
2
 
7
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
4
 
9
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; }
10
6
 
7
+ function _templateObject2() {
8
+ var data = _taggedTemplateLiteral(["\n top: ", "px;\n left: ", "px;\n\n font-size: ", "px;\n font-weight: ", ";\n color: ", ";\n\n transform: translateY(-40%);\n\n transition-duration: ", "ms;\n transition-timing-function: cubic-bezier(", ");\n\n ", "\n ", "\n "]);
9
+
10
+ _templateObject2 = function _templateObject2() {
11
+ return data;
12
+ };
13
+
14
+ return data;
15
+ }
16
+
17
+ function _templateObject() {
18
+ var data = _taggedTemplateLiteral(["\n position: absolute;\n\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n\n ", "\n"]);
19
+
20
+ _templateObject = function _templateObject() {
21
+ return data;
22
+ };
23
+
24
+ return data;
25
+ }
26
+
11
27
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
28
 
13
29
  import React from 'react';
@@ -15,14 +31,14 @@ import styled, { css } from 'styled-components';
15
31
  import { bool, node, string } from 'prop-types';
16
32
  import Fieldset from './Fieldset';
17
33
  import Legend from './Legend';
18
- var StyledLabel = styled.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n\n letter-spacing: normal;\n pointer-events: none;\n user-select: none;\n\n ", "\n"])), function (_ref) {
34
+ var StyledLabel = styled.label(_templateObject(), function (_ref) {
19
35
  var disabled = _ref.disabled,
20
36
  error = _ref.error,
21
37
  _ref$theme$yoga = _ref.theme.yoga,
22
38
  colors = _ref$theme$yoga.colors,
23
39
  transition = _ref$theme$yoga.transition,
24
40
  input = _ref$theme$yoga.components.input;
25
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n top: ", "px;\n left: ", "px;\n\n font-size: ", "px;\n font-weight: ", ";\n color: ", ";\n\n transform: translateY(-40%);\n\n transition-duration: ", "ms;\n transition-timing-function: cubic-bezier(", ");\n\n ", "\n ", "\n "])), input.padding.top * 1.5, input.padding.left, input.label.font.size["default"], input.label.font.weight["default"], input.label.color["default"], transition.duration[1], transition.timing[0].join(), error ? "color: ".concat(colors.negative[1], ";") : '', disabled ? "color: ".concat(colors.disabled.background, ";") : '');
41
+ return css(_templateObject2(), input.padding.top * 1.5, input.padding.left, input.label.font.size["default"], input.label.font.weight["default"], input.label.color["default"], transition.duration[1], transition.timing[0].join(), error ? "color: ".concat(colors.negative[1], ";") : '', disabled ? "color: ".concat(colors.disabled.background, ";") : '');
26
42
  });
27
43
 
28
44
  var Label = function Label(_ref2) {
@@ -30,7 +46,7 @@ var Label = function Label(_ref2) {
30
46
  typed = _ref2.typed,
31
47
  error = _ref2.error,
32
48
  disabled = _ref2.disabled,
33
- props = _objectWithoutProperties(_ref2, _excluded);
49
+ props = _objectWithoutProperties(_ref2, ["children", "typed", "error", "disabled"]);
34
50
 
35
51
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledLabel, _extends({
36
52
  error: error,
@@ -1,24 +1,40 @@
1
- var _excluded = ["children", "typed"];
2
-
3
- var _templateObject, _templateObject2;
4
-
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); }
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); }
6
2
 
7
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
4
 
9
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; }
10
6
 
7
+ function _templateObject2() {
8
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
9
+
10
+ _templateObject2 = function _templateObject2() {
11
+ return data;
12
+ };
13
+
14
+ return data;
15
+ }
16
+
17
+ function _templateObject() {
18
+ var data = _taggedTemplateLiteral(["\n position: relative;\n padding: 0;\n\n max-width: 0.01px;\n width: auto;\n height: 14px;\n\n font-weight: normal;\n\n transition: max-width ease 50ms;\n visibility: hidden;\n\n ", "\n"]);
19
+
20
+ _templateObject = function _templateObject() {
21
+ return data;
22
+ };
23
+
24
+ return data;
25
+ }
26
+
11
27
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
28
 
13
29
  import React from 'react';
14
30
  import styled from 'styled-components';
15
31
  import { bool, node } from 'prop-types';
16
- var StyledLegend = styled.legend(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n padding: 0;\n\n max-width: 0.01px;\n width: auto;\n height: 14px;\n\n font-weight: normal;\n\n transition: max-width ease 50ms;\n visibility: hidden;\n\n ", "\n"])), function (_ref) {
32
+ var StyledLegend = styled.legend(_templateObject(), function (_ref) {
17
33
  var typed = _ref.typed,
18
34
  input = _ref.theme.yoga.components.input;
19
35
  return "\n max-width: ".concat(typed ? '1000' : '0.01', "px;\n\n font-size: ").concat(input.label.font.size.typed, "px;\n letter-spacing: normal;\n ");
20
36
  });
21
- var HiddenSpan = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
37
+ var HiddenSpan = styled.span(_templateObject2(), function (_ref2) {
22
38
  var input = _ref2.theme.yoga.components.input;
23
39
  return "\n padding-left: ".concat(input.label.padding.left, "px;\n padding-right: ").concat(input.label.padding.right, "px;\n ");
24
40
  });
@@ -26,7 +42,7 @@ var HiddenSpan = styled.span(_templateObject2 || (_templateObject2 = _taggedTemp
26
42
  var Legend = function Legend(_ref3) {
27
43
  var children = _ref3.children,
28
44
  typed = _ref3.typed,
29
- props = _objectWithoutProperties(_ref3, _excluded);
45
+ props = _objectWithoutProperties(_ref3, ["children", "typed"]);
30
46
 
31
47
  return /*#__PURE__*/React.createElement(StyledLegend, _extends({
32
48
  typed: typed
@@ -1,4 +1,4 @@
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); }
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); }
2
2
 
3
3
  import React from 'react';
4
4
  import Input from './Input';
@@ -1,8 +1,4 @@
1
- var _excluded = ["disabled", "style", "className", "full"];
2
-
3
- var _templateObject, _templateObject2, _templateObject3;
4
-
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); }
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); }
6
2
 
7
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
4
 
@@ -12,7 +8,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
12
8
 
13
9
  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; }
14
10
 
15
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
11
+ function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
12
 
17
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
14
 
@@ -20,6 +16,36 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
20
16
 
21
17
  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; }
22
18
 
19
+ function _templateObject3() {
20
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
21
+
22
+ _templateObject3 = function _templateObject3() {
23
+ return data;
24
+ };
25
+
26
+ return data;
27
+ }
28
+
29
+ function _templateObject2() {
30
+ var data = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n\n ", "\n"]);
31
+
32
+ _templateObject2 = function _templateObject2() {
33
+ return data;
34
+ };
35
+
36
+ return data;
37
+ }
38
+
39
+ function _templateObject() {
40
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
41
+
42
+ _templateObject = function _templateObject() {
43
+ return data;
44
+ };
45
+
46
+ return data;
47
+ }
48
+
23
49
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
24
50
 
25
51
  import React, { useState, useRef, useEffect } from 'react';
@@ -28,15 +54,15 @@ import { bool, string, shape } from 'prop-types';
28
54
  import { Visibility, VisibilityOff } from '@gympass/yoga-icons';
29
55
  import Input from './Input';
30
56
  var ICON_SIZE = 24;
31
- var StyledInput = styled(Input)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
57
+ var StyledInput = styled(Input)(_templateObject(), function (_ref) {
32
58
  var input = _ref.theme.yoga.components.input;
33
59
  return "\n input {\n padding-right: ".concat(ICON_SIZE + input.padding.right, "px;\n }\n ");
34
60
  });
35
- var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n\n ", "\n"])), function (_ref2) {
61
+ var Wrapper = styled.div(_templateObject2(), function (_ref2) {
36
62
  var full = _ref2.full;
37
63
  return "\n ".concat(full ? 'width: 100%;' : '', "\n ");
38
64
  });
39
- var IconWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
65
+ var IconWrapper = styled.div(_templateObject3(), function (_ref3) {
40
66
  var disabled = _ref3.disabled,
41
67
  _ref3$theme$yoga = _ref3.theme.yoga,
42
68
  colors = _ref3$theme$yoga.colors,
@@ -50,7 +76,7 @@ var Password = function Password(_ref4) {
50
76
  style = _ref4.style,
51
77
  className = _ref4.className,
52
78
  full = _ref4.full,
53
- props = _objectWithoutProperties(_ref4, _excluded);
79
+ props = _objectWithoutProperties(_ref4, ["disabled", "style", "className", "full"]);
54
80
 
55
81
  var _useState = useState(false),
56
82
  _useState2 = _slicedToArray(_useState, 2),
@@ -1,4 +1,4 @@
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); }
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); }
2
2
 
3
3
  import React from 'react';
4
4
  import Input from './Input';
@@ -1,9 +1,17 @@
1
- var _templateObject;
1
+ function _templateObject() {
2
+ var data = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n\n vertical-align: top;\n\n ", "\n"]);
3
+
4
+ _templateObject = function _templateObject() {
5
+ return data;
6
+ };
7
+
8
+ return data;
9
+ }
2
10
 
3
11
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
4
12
 
5
13
  import styled from 'styled-components';
6
- var Wrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n display: inline-block;\n\n vertical-align: top;\n\n ", "\n"])), function (_ref) {
14
+ var Wrapper = styled.div(_templateObject(), function (_ref) {
7
15
  var disabled = _ref.disabled,
8
16
  error = _ref.error,
9
17
  full = _ref.full,
@@ -1,12 +1,20 @@
1
- var _templateObject;
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); }
2
2
 
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); }
3
+ function _templateObject() {
4
+ var data = _taggedTemplateLiteral(["\n display: inline-block;\n\n width: 100%;\n height: 100%;\n\n box-sizing: border-box;\n\n text-decoration: none;\n\n ", "\n"]);
5
+
6
+ _templateObject = function _templateObject() {
7
+ return data;
8
+ };
9
+
10
+ return data;
11
+ }
4
12
 
5
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
6
14
 
7
15
  import React from 'react';
8
16
  import styled from 'styled-components';
9
- var StyledLinkItem = styled.a(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-block;\n\n width: 100%;\n height: 100%;\n\n box-sizing: border-box;\n\n text-decoration: none;\n\n ", "\n"])), function (_ref) {
17
+ var StyledLinkItem = styled.a(_templateObject(), function (_ref) {
10
18
  var list = _ref.theme.yoga.components.list;
11
19
  return "\n padding:\n ".concat(list.listItem.padding.top, "px\n ").concat(list.listItem.padding.right, "px\n ").concat(list.listItem.padding.bottom, "px\n ").concat(list.listItem.padding.left, "px;\n ");
12
20
  });
@@ -1,19 +1,25 @@
1
- var _excluded = ["horizontal", "divided"];
2
-
3
- var _templateObject;
4
-
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); }
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); }
6
2
 
7
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
4
 
9
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; }
10
6
 
7
+ function _templateObject() {
8
+ var data = _taggedTemplateLiteral(["\n display: flex;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n ", "\n"]);
9
+
10
+ _templateObject = function _templateObject() {
11
+ return data;
12
+ };
13
+
14
+ return data;
15
+ }
16
+
11
17
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
18
 
13
19
  import React from 'react';
14
20
  import PropTypes from 'prop-types';
15
21
  import styled from 'styled-components';
16
- var StyledList = styled.ul(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n width: 100%;\n padding: 0;\n margin: 0;\n\n list-style: none;\n\n ", "\n"])), function (_ref) {
22
+ var StyledList = styled.ul(_templateObject(), function (_ref) {
17
23
  var divided = _ref.divided,
18
24
  horizontal = _ref.horizontal,
19
25
  list = _ref.theme.yoga.components.list;
@@ -26,7 +32,7 @@ text. */
26
32
  var List = function List(_ref2) {
27
33
  var horizontal = _ref2.horizontal,
28
34
  divided = _ref2.divided,
29
- rest = _objectWithoutProperties(_ref2, _excluded);
35
+ rest = _objectWithoutProperties(_ref2, ["horizontal", "divided"]);
30
36
 
31
37
  return /*#__PURE__*/React.createElement(StyledList, _extends({
32
38
  horizontal: horizontal,
@@ -1,12 +1,20 @@
1
- var _templateObject;
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); }
2
2
 
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); }
3
+ function _templateObject() {
4
+ var data = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n ", "\n"]);
5
+
6
+ _templateObject = function _templateObject() {
7
+ return data;
8
+ };
9
+
10
+ return data;
11
+ }
4
12
 
5
13
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
6
14
 
7
15
  import React from 'react';
8
16
  import styled from 'styled-components';
9
- var StyledItem = styled.li(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n\n ", "\n"])), function (_ref) {
17
+ var StyledItem = styled.li(_templateObject(), function (_ref) {
10
18
  var list = _ref.theme.yoga.components.list;
11
19
  return "\n padding:\n ".concat(list.listItem.padding.top, "px\n ").concat(list.listItem.padding.right, "px\n ").concat(list.listItem.padding.bottom, "px\n ").concat(list.listItem.padding.left, "px;\n ");
12
20
  });
@@ -1,20 +1,46 @@
1
- var _excluded = ["label", "max", "value", "variant"];
2
-
3
- var _templateObject, _templateObject2, _templateObject3;
4
-
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); }
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); }
6
2
 
7
3
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
8
4
 
9
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; }
10
6
 
7
+ function _templateObject3() {
8
+ var data = _taggedTemplateLiteral(["\n display: flex;\n\n width: 100%;\n\n ", "\n"]);
9
+
10
+ _templateObject3 = function _templateObject3() {
11
+ return data;
12
+ };
13
+
14
+ return data;
15
+ }
16
+
17
+ function _templateObject2() {
18
+ var data = _taggedTemplateLiteral(["\n ", "\n"]);
19
+
20
+ _templateObject2 = function _templateObject2() {
21
+ return data;
22
+ };
23
+
24
+ return data;
25
+ }
26
+
27
+ function _templateObject() {
28
+ var data = _taggedTemplateLiteral(["\n width: 100%;\n\n border: none;\n\n ", "\n"]);
29
+
30
+ _templateObject = function _templateObject() {
31
+ return data;
32
+ };
33
+
34
+ return data;
35
+ }
36
+
11
37
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
12
38
 
13
39
  import React from 'react';
14
40
  import styled from 'styled-components';
15
41
  import { string, number, shape, oneOfType, oneOf, bool } from 'prop-types';
16
42
  import { charLength } from '../../shared';
17
- var ProgressBar = styled.progress(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n\n border: none;\n\n ", "\n"])), function (_ref) {
43
+ var ProgressBar = styled.progress(_templateObject(), function (_ref) {
18
44
  var variant = _ref.variant,
19
45
  _ref$theme$yoga = _ref.theme.yoga,
20
46
  _ref$theme$yoga$color = _ref$theme$yoga.colors[variant],
@@ -22,11 +48,11 @@ var ProgressBar = styled.progress(_templateObject || (_templateObject = _taggedT
22
48
  progress = _ref$theme$yoga.components.progress;
23
49
  return "\n height: ".concat(progress.height, "px;\n\n &&,\n &::-webkit-progress-value,\n &[value]::-webkit-progress-bar,\n &:not(value)::-webkit-progress-bar {\n border-radius: ").concat(progress.border.radius, "px;\n }\n\n &:not(value)::-moz-progress-bar,\n &[value]::-moz-progress-bar {\n border-radius: ").concat(progress.border.radius, "px;\n }\n\n &:not(value)::-webkit-progress-bar {\n background-color: ").concat(progress.backgroundColor.bar, ";\n }\n\n &::-webkit-progress-value {\n background-color: ").concat(color[3], ";\n }\n\n &&,\n &:not(value)::-moz-progress-bar {\n background-color: ").concat(progress.backgroundColor.bar, ";\n }\n\n &[value]::-moz-progress-bar {\n background-color: ").concat(color[3], ";\n }\n");
24
50
  });
25
- var Label = styled.label(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref2) {
51
+ var Label = styled.label(_templateObject2(), function (_ref2) {
26
52
  var progress = _ref2.theme.yoga.components.progress;
27
53
  return "\n font-size: ".concat(progress.label.font.size, "px;\n letter-spacing: normal;\n");
28
54
  });
29
- var Wrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n\n width: 100%;\n\n ", "\n"])), function (_ref3) {
55
+ var Wrapper = styled.div(_templateObject3(), function (_ref3) {
30
56
  var isNumber = _ref3.isNumber,
31
57
  align = _ref3.align,
32
58
  spacing = _ref3.theme.yoga.spacing;
@@ -49,7 +75,7 @@ var Progress = function Progress(_ref4) {
49
75
  max = _ref4.max,
50
76
  value = _ref4.value,
51
77
  variant = _ref4.variant,
52
- props = _objectWithoutProperties(_ref4, _excluded);
78
+ props = _objectWithoutProperties(_ref4, ["label", "max", "value", "variant"]);
53
79
 
54
80
  var isNumber = !isNaN(label.value);
55
81
  return /*#__PURE__*/React.createElement(Wrapper, _extends({
@@ -1,3 +1,3 @@
1
1
  import { createContext } from 'react';
2
- var RadioGroupContext = /*#__PURE__*/createContext({});
2
+ var RadioGroupContext = createContext({});
3
3
  export default RadioGroupContext;