@gympass/yoga 7.74.0 → 7.75.1

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.
@@ -17,7 +17,7 @@ var _Content = _interopRequireDefault(require("./Content"));
17
17
 
18
18
  var _excluded = ["title", "subtitle", "children", "disabled", "expanded", "small", "hasHorizontalPadding"];
19
19
 
20
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
20
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
@@ -31,12 +31,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
31
31
 
32
32
  function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
33
33
 
34
- var AccordionWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n border: none;\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n z-index: 1;\n\n ", "\n\n hr {\n bottom: 0;\n left: 0;\n margin: 0;\n position: absolute;\n z-index: -1;\n }\n"])), function (_ref) {
35
- var _ref$theme$yoga$color = _ref.theme.yoga.colors,
36
- white = _ref$theme$yoga$color.white,
37
- elements = _ref$theme$yoga$color.elements,
38
- disabled = _ref.disabled;
39
- return "\n background: " + (disabled ? elements.backgroundAndDisabled : white) + "\n";
34
+ var AccordionWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border: none;\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n z-index: 1;\n\n ", "\n\n hr {\n bottom: 0;\n left: 0;\n margin: 0;\n position: absolute;\n z-index: -1;\n }\n"])), function (_ref) {
35
+ var theme = _ref.theme;
36
+ return theme.yoga.colors.white;
37
+ }, function (_ref2) {
38
+ var disabled = _ref2.disabled,
39
+ elements = _ref2.theme.yoga.colors.elements;
40
+ return disabled && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), elements.backgroundAndDisabled);
40
41
  });
41
42
 
42
43
  var getVerticalPadding = function getVerticalPadding(accordion, small) {
@@ -49,66 +50,66 @@ var getHorizontalPadding = function getHorizontalPadding(accordion, hasHorizonta
49
50
  return accordion.padding.zero;
50
51
  };
51
52
 
52
- var Header = _styledComponents["default"].button(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n ", "\n"])), function (_ref2) {
53
- var accordion = _ref2.theme.yoga.components.accordion,
54
- small = _ref2.small,
55
- hasHorizontalPadding = _ref2.hasHorizontalPadding;
53
+ var Header = _styledComponents["default"].button(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n ", "\n"])), function (_ref3) {
54
+ var accordion = _ref3.theme.yoga.components.accordion,
55
+ small = _ref3.small,
56
+ hasHorizontalPadding = _ref3.hasHorizontalPadding;
56
57
  return "\n padding:" + getVerticalPadding(accordion, small) + "px " + getHorizontalPadding(accordion, hasHorizontalPadding) + "px;\n";
57
- }, function (_ref3) {
58
- var elements = _ref3.theme.yoga.colors.elements;
59
- return "\n background: " + elements.backgroundAndDisabled + ";\n\n ";
60
58
  }, function (_ref4) {
61
- var disabled = _ref4.disabled;
62
- return disabled && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n cursor: not-allowed;\n "])));
59
+ var elements = _ref4.theme.yoga.colors.elements;
60
+ return "\n background: " + elements.backgroundAndDisabled + ";\n\n ";
61
+ }, function (_ref5) {
62
+ var disabled = _ref5.disabled;
63
+ return disabled && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n cursor: not-allowed;\n "])));
63
64
  });
64
65
 
65
- var Title = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n text-align: start;\n\n ", "\n\n ", "\n"])), function (_ref5) {
66
- var accordion = _ref5.theme.yoga.components.accordion,
67
- subtitle = _ref5.subtitle;
66
+ var Title = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n text-align: start;\n\n ", "\n\n ", "\n"])), function (_ref6) {
67
+ var accordion = _ref6.theme.yoga.components.accordion,
68
+ subtitle = _ref6.subtitle;
68
69
  return "\n gap: " + (subtitle ? accordion.gap.header : 0) + "px;\n margin: " + (subtitle ? 0 : accordion.paddingArrow.total + "px 0") + ";\n";
69
- }, function (_ref6) {
70
- var disabled = _ref6.disabled;
71
- return disabled && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n ", "\n "])), function (_ref7) {
72
- var text = _ref7.theme.yoga.colors.text;
70
+ }, function (_ref7) {
71
+ var disabled = _ref7.disabled;
72
+ return disabled && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n ", "\n "])), function (_ref8) {
73
+ var text = _ref8.theme.yoga.colors.text;
73
74
  return "\n color: " + text.secundary + ";\n ";
74
75
  });
75
76
  });
76
77
 
77
- var AccordionContent = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: ", ";\n overflow: hidden;\n transition: max-height 200ms ease-in-out;\n\n ", "\n\n ", "\n"])), function (_ref8) {
78
- var isOpen = _ref8.isOpen;
78
+ var AccordionContent = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: ", ";\n overflow: hidden;\n transition: max-height 200ms ease-in-out;\n\n ", "\n\n ", "\n"])), function (_ref9) {
79
+ var isOpen = _ref9.isOpen;
79
80
  return isOpen ? '9999px' : '0';
80
- }, function (_ref9) {
81
- var accordion = _ref9.theme.yoga.components.accordion,
82
- small = _ref9.small;
83
- return small && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-bottom: ", "px;\n }\n "])), _Content["default"], accordion.padding.small);
84
81
  }, function (_ref10) {
85
- var hasHorizontalPadding = _ref10.hasHorizontalPadding;
86
- return !hasHorizontalPadding && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-left: 0;\n padding-right: 0;\n }\n "])), _Content["default"]);
82
+ var accordion = _ref10.theme.yoga.components.accordion,
83
+ small = _ref10.small;
84
+ return small && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-bottom: ", "px;\n }\n "])), _Content["default"], accordion.padding.small);
85
+ }, function (_ref11) {
86
+ var hasHorizontalPadding = _ref11.hasHorizontalPadding;
87
+ return !hasHorizontalPadding && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-left: 0;\n padding-right: 0;\n }\n "])), _Content["default"]);
87
88
  });
88
89
 
89
- var ArrowWrapper = _styledComponents["default"].div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n svg {\n transform: ", ";\n transition: all 200ms ease-out 0s;\n\n ", "\n }\n\n ", "\n"])), function (_ref11) {
90
- var isOpen = _ref11.isOpen;
90
+ var ArrowWrapper = _styledComponents["default"].div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n svg {\n transform: ", ";\n transition: all 200ms ease-out 0s;\n\n ", "\n }\n\n ", "\n"])), function (_ref12) {
91
+ var isOpen = _ref12.isOpen;
91
92
  return isOpen ? 'rotate(180deg)' : 'rotate(0deg)';
92
- }, function (_ref12) {
93
- var _ref12$theme$yoga$col = _ref12.theme.yoga.colors,
94
- primary = _ref12$theme$yoga$col.primary,
95
- text = _ref12$theme$yoga$col.text,
96
- disabled = _ref12.disabled;
97
- return "\n fill: " + (disabled ? text.secondary : primary) + ";\n ";
98
93
  }, function (_ref13) {
99
- var accordion = _ref13.theme.yoga.components.accordion;
94
+ var _ref13$theme$yoga$col = _ref13.theme.yoga.colors,
95
+ primary = _ref13$theme$yoga$col.primary,
96
+ text = _ref13$theme$yoga$col.text,
97
+ disabled = _ref13.disabled;
98
+ return "\n fill: " + (disabled ? text.secondary : primary) + ";\n ";
99
+ }, function (_ref14) {
100
+ var accordion = _ref14.theme.yoga.components.accordion;
100
101
  return "\n padding: " + accordion.paddingArrow.total + "px;\n";
101
102
  });
102
103
 
103
- var Accordion = function Accordion(_ref14) {
104
- var title = _ref14.title,
105
- subtitle = _ref14.subtitle,
106
- children = _ref14.children,
107
- disabled = _ref14.disabled,
108
- expanded = _ref14.expanded,
109
- small = _ref14.small,
110
- hasHorizontalPadding = _ref14.hasHorizontalPadding,
111
- props = _objectWithoutPropertiesLoose(_ref14, _excluded);
104
+ var Accordion = function Accordion(_ref15) {
105
+ var title = _ref15.title,
106
+ subtitle = _ref15.subtitle,
107
+ children = _ref15.children,
108
+ disabled = _ref15.disabled,
109
+ expanded = _ref15.expanded,
110
+ small = _ref15.small,
111
+ hasHorizontalPadding = _ref15.hasHorizontalPadding,
112
+ props = _objectWithoutPropertiesLoose(_ref15, _excluded);
112
113
 
113
114
  var _useState = (0, _react.useState)(expanded),
114
115
  open = _useState[0],
@@ -24,11 +24,13 @@ var StyledBottomSheet = (0, _styledComponents["default"])(_Dialog["default"])(_t
24
24
  return "\n padding: " + bottomsheet.padding.top + "px " + bottomsheet.padding.right + "px " + bottomsheet.padding.bottom + "px " + bottomsheet.padding.left + "px;\n width: " + bottomsheet.width["default"] + "%;\n border-radius: " + bottomsheet.border.radius + "px " + bottomsheet.border.radius + "px 0 0;\n ";
25
25
  });
26
26
 
27
- var BottomSheet = function BottomSheet(props) {
27
+ var BottomSheet = /*#__PURE__*/_react["default"].forwardRef(function (props, forwardedRef) {
28
28
  return /*#__PURE__*/_react["default"].createElement(StyledBottomSheet, _extends({
29
29
  hideCloseButton: true
30
- }, props));
31
- };
30
+ }, props, {
31
+ ref: forwardedRef
32
+ }));
33
+ });
32
34
 
33
35
  BottomSheet.propTypes = {
34
36
  children: _propTypes.node.isRequired
@@ -15,6 +15,8 @@ var _templateObject;
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
+ 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); }
19
+
18
20
  function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
19
21
 
20
22
  var StyledDrawer = (0, _styledComponents["default"])(_Dialog["default"])(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n ", "\n border-radius: 0!important;\n height: 100%;\n align-self: flex-end;\n position: absolute;\n right: 0;\n animation: content;\n animation-duration: 400ms;\n animation-fill-mode: forwards;\n transition: 0.25s ease-in-out;\n @keyframes content {\n 0% {\n transform: translate3d(100%, 0, 0);\n }\n }\n"])), function (_ref) {
@@ -22,9 +24,11 @@ var StyledDrawer = (0, _styledComponents["default"])(_Dialog["default"])(_templa
22
24
  return "\n padding: " + drawer.padding.top + "px " + drawer.padding.right + "px " + drawer.padding.bottom + "px " + drawer.padding.left + "px;\n width: min(" + drawer.width["default"] + "px, 100%);\n ";
23
25
  });
24
26
 
25
- function Drawer(props) {
26
- return /*#__PURE__*/_react["default"].createElement(StyledDrawer, props);
27
- }
27
+ var Drawer = /*#__PURE__*/_react["default"].forwardRef(function (props, forwardedRef) {
28
+ return /*#__PURE__*/_react["default"].createElement(StyledDrawer, _extends({}, props, {
29
+ ref: forwardedRef
30
+ }));
31
+ });
28
32
 
29
33
  Drawer.propTypes = {
30
34
  children: _propTypes.node.isRequired,
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["title", "subtitle", "children", "disabled", "expanded", "small", "hasHorizontalPadding"];
2
2
 
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
4
4
 
5
5
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
6
 
@@ -14,12 +14,13 @@ import { string, node, bool } from 'prop-types';
14
14
  import { ChevronDown } from '@gympass/yoga-icons';
15
15
  import { Text, Divider } from '@gympass/yoga';
16
16
  import Content from './Content';
17
- var AccordionWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n border: none;\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n z-index: 1;\n\n ", "\n\n hr {\n bottom: 0;\n left: 0;\n margin: 0;\n position: absolute;\n z-index: -1;\n }\n"])), function (_ref) {
18
- var _ref$theme$yoga$color = _ref.theme.yoga.colors,
19
- white = _ref$theme$yoga$color.white,
20
- elements = _ref$theme$yoga$color.elements,
21
- disabled = _ref.disabled;
22
- return "\n background: " + (disabled ? elements.backgroundAndDisabled : white) + "\n";
17
+ var AccordionWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n border: none;\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n z-index: 1;\n\n ", "\n\n hr {\n bottom: 0;\n left: 0;\n margin: 0;\n position: absolute;\n z-index: -1;\n }\n"])), function (_ref) {
18
+ var theme = _ref.theme;
19
+ return theme.yoga.colors.white;
20
+ }, function (_ref2) {
21
+ var disabled = _ref2.disabled,
22
+ elements = _ref2.theme.yoga.colors.elements;
23
+ return disabled && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n "])), elements.backgroundAndDisabled);
23
24
  });
24
25
 
25
26
  var getVerticalPadding = function getVerticalPadding(accordion, small) {
@@ -32,63 +33,63 @@ var getHorizontalPadding = function getHorizontalPadding(accordion, hasHorizonta
32
33
  return accordion.padding.zero;
33
34
  };
34
35
 
35
- var Header = styled.button(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n ", "\n"])), function (_ref2) {
36
- var accordion = _ref2.theme.yoga.components.accordion,
37
- small = _ref2.small,
38
- hasHorizontalPadding = _ref2.hasHorizontalPadding;
36
+ var Header = styled.button(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n align-items: center;\n background-color: transparent;\n border: none;\n cursor: pointer;\n display: flex;\n justify-content: space-between;\n width: 100%;\n\n ", "\n\n &:focus-visible {\n ", "\n }\n\n ", "\n"])), function (_ref3) {
37
+ var accordion = _ref3.theme.yoga.components.accordion,
38
+ small = _ref3.small,
39
+ hasHorizontalPadding = _ref3.hasHorizontalPadding;
39
40
  return "\n padding:" + getVerticalPadding(accordion, small) + "px " + getHorizontalPadding(accordion, hasHorizontalPadding) + "px;\n";
40
- }, function (_ref3) {
41
- var elements = _ref3.theme.yoga.colors.elements;
42
- return "\n background: " + elements.backgroundAndDisabled + ";\n\n ";
43
41
  }, function (_ref4) {
44
- var disabled = _ref4.disabled;
45
- return disabled && css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n cursor: not-allowed;\n "])));
42
+ var elements = _ref4.theme.yoga.colors.elements;
43
+ return "\n background: " + elements.backgroundAndDisabled + ";\n\n ";
44
+ }, function (_ref5) {
45
+ var disabled = _ref5.disabled;
46
+ return disabled && css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n cursor: not-allowed;\n "])));
46
47
  });
47
- var Title = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n text-align: start;\n\n ", "\n\n ", "\n"])), function (_ref5) {
48
- var accordion = _ref5.theme.yoga.components.accordion,
49
- subtitle = _ref5.subtitle;
48
+ var Title = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n text-align: start;\n\n ", "\n\n ", "\n"])), function (_ref6) {
49
+ var accordion = _ref6.theme.yoga.components.accordion,
50
+ subtitle = _ref6.subtitle;
50
51
  return "\n gap: " + (subtitle ? accordion.gap.header : 0) + "px;\n margin: " + (subtitle ? 0 : accordion.paddingArrow.total + "px 0") + ";\n";
51
- }, function (_ref6) {
52
- var disabled = _ref6.disabled;
53
- return disabled && css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n ", "\n "])), function (_ref7) {
54
- var text = _ref7.theme.yoga.colors.text;
52
+ }, function (_ref7) {
53
+ var disabled = _ref7.disabled;
54
+ return disabled && css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n ", "\n "])), function (_ref8) {
55
+ var text = _ref8.theme.yoga.colors.text;
55
56
  return "\n color: " + text.secundary + ";\n ";
56
57
  });
57
58
  });
58
- var AccordionContent = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: ", ";\n overflow: hidden;\n transition: max-height 200ms ease-in-out;\n\n ", "\n\n ", "\n"])), function (_ref8) {
59
- var isOpen = _ref8.isOpen;
59
+ var AccordionContent = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n height: auto;\n max-height: ", ";\n overflow: hidden;\n transition: max-height 200ms ease-in-out;\n\n ", "\n\n ", "\n"])), function (_ref9) {
60
+ var isOpen = _ref9.isOpen;
60
61
  return isOpen ? '9999px' : '0';
61
- }, function (_ref9) {
62
- var accordion = _ref9.theme.yoga.components.accordion,
63
- small = _ref9.small;
64
- return small && css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-bottom: ", "px;\n }\n "])), Content, accordion.padding.small);
65
62
  }, function (_ref10) {
66
- var hasHorizontalPadding = _ref10.hasHorizontalPadding;
67
- return !hasHorizontalPadding && css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-left: 0;\n padding-right: 0;\n }\n "])), Content);
63
+ var accordion = _ref10.theme.yoga.components.accordion,
64
+ small = _ref10.small;
65
+ return small && css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-bottom: ", "px;\n }\n "])), Content, accordion.padding.small);
66
+ }, function (_ref11) {
67
+ var hasHorizontalPadding = _ref11.hasHorizontalPadding;
68
+ return !hasHorizontalPadding && css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n ", " {\n padding-left: 0;\n padding-right: 0;\n }\n "])), Content);
68
69
  });
69
- var ArrowWrapper = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteralLoose(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n svg {\n transform: ", ";\n transition: all 200ms ease-out 0s;\n\n ", "\n }\n\n ", "\n"])), function (_ref11) {
70
- var isOpen = _ref11.isOpen;
70
+ var ArrowWrapper = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteralLoose(["\n align-items: center;\n display: flex;\n justify-content: center;\n\n svg {\n transform: ", ";\n transition: all 200ms ease-out 0s;\n\n ", "\n }\n\n ", "\n"])), function (_ref12) {
71
+ var isOpen = _ref12.isOpen;
71
72
  return isOpen ? 'rotate(180deg)' : 'rotate(0deg)';
72
- }, function (_ref12) {
73
- var _ref12$theme$yoga$col = _ref12.theme.yoga.colors,
74
- primary = _ref12$theme$yoga$col.primary,
75
- text = _ref12$theme$yoga$col.text,
76
- disabled = _ref12.disabled;
77
- return "\n fill: " + (disabled ? text.secondary : primary) + ";\n ";
78
73
  }, function (_ref13) {
79
- var accordion = _ref13.theme.yoga.components.accordion;
74
+ var _ref13$theme$yoga$col = _ref13.theme.yoga.colors,
75
+ primary = _ref13$theme$yoga$col.primary,
76
+ text = _ref13$theme$yoga$col.text,
77
+ disabled = _ref13.disabled;
78
+ return "\n fill: " + (disabled ? text.secondary : primary) + ";\n ";
79
+ }, function (_ref14) {
80
+ var accordion = _ref14.theme.yoga.components.accordion;
80
81
  return "\n padding: " + accordion.paddingArrow.total + "px;\n";
81
82
  });
82
83
 
83
- var Accordion = function Accordion(_ref14) {
84
- var title = _ref14.title,
85
- subtitle = _ref14.subtitle,
86
- children = _ref14.children,
87
- disabled = _ref14.disabled,
88
- expanded = _ref14.expanded,
89
- small = _ref14.small,
90
- hasHorizontalPadding = _ref14.hasHorizontalPadding,
91
- props = _objectWithoutPropertiesLoose(_ref14, _excluded);
84
+ var Accordion = function Accordion(_ref15) {
85
+ var title = _ref15.title,
86
+ subtitle = _ref15.subtitle,
87
+ children = _ref15.children,
88
+ disabled = _ref15.disabled,
89
+ expanded = _ref15.expanded,
90
+ small = _ref15.small,
91
+ hasHorizontalPadding = _ref15.hasHorizontalPadding,
92
+ props = _objectWithoutPropertiesLoose(_ref15, _excluded);
92
93
 
93
94
  var _useState = useState(expanded),
94
95
  open = _useState[0],
@@ -12,13 +12,13 @@ var StyledBottomSheet = styled(Dialog)(_templateObject || (_templateObject = _ta
12
12
  var bottomsheet = _ref.theme.yoga.components.bottomsheet;
13
13
  return "\n padding: " + bottomsheet.padding.top + "px " + bottomsheet.padding.right + "px " + bottomsheet.padding.bottom + "px " + bottomsheet.padding.left + "px;\n width: " + bottomsheet.width["default"] + "%;\n border-radius: " + bottomsheet.border.radius + "px " + bottomsheet.border.radius + "px 0 0;\n ";
14
14
  });
15
-
16
- var BottomSheet = function BottomSheet(props) {
15
+ var BottomSheet = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
17
16
  return /*#__PURE__*/React.createElement(StyledBottomSheet, _extends({
18
17
  hideCloseButton: true
19
- }, props));
20
- };
21
-
18
+ }, props, {
19
+ ref: forwardedRef
20
+ }));
21
+ });
22
22
  BottomSheet.propTypes = {
23
23
  children: node.isRequired
24
24
  };
@@ -1,5 +1,7 @@
1
1
  var _templateObject;
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); }
4
+
3
5
  function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
4
6
 
5
7
  import React from 'react';
@@ -10,11 +12,11 @@ var StyledDrawer = styled(Dialog)(_templateObject || (_templateObject = _taggedT
10
12
  var drawer = _ref.theme.yoga.components.drawer;
11
13
  return "\n padding: " + drawer.padding.top + "px " + drawer.padding.right + "px " + drawer.padding.bottom + "px " + drawer.padding.left + "px;\n width: min(" + drawer.width["default"] + "px, 100%);\n ";
12
14
  });
13
-
14
- function Drawer(props) {
15
- return /*#__PURE__*/React.createElement(StyledDrawer, props);
16
- }
17
-
15
+ var Drawer = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
16
+ return /*#__PURE__*/React.createElement(StyledDrawer, _extends({}, props, {
17
+ ref: forwardedRef
18
+ }));
19
+ });
18
20
  Drawer.propTypes = {
19
21
  children: node.isRequired,
20
22
  zIndex: number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.74.0",
3
+ "version": "7.75.1",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "sideEffects": false,
@@ -53,7 +53,7 @@
53
53
  "react": ">=16",
54
54
  "styled-components": "^4.4.0"
55
55
  },
56
- "gitHead": "21322a4a3a083f86796151e7687dd2b257fe445e",
56
+ "gitHead": "434800f1376c100d6a36598c7e6295f096c98e0b",
57
57
  "module": "./esm",
58
58
  "private": false,
59
59
  "react-native": "./cjs/index.native.js"