@gympass/yoga 7.50.0 → 7.50.3
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports["default"] = void 0;
|
|
5
|
+
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
|
+
|
|
8
|
+
var _Dialog = _interopRequireDefault(require("../../Dialog"));
|
|
9
|
+
|
|
10
|
+
var _templateObject;
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
15
|
+
|
|
16
|
+
var Content = (0, _styledComponents["default"])(_Dialog["default"].Content)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n ", "\n margin: 0;\n height: 100%;\n width: 100%;\n align-self: flex-start;\n text-align: left;\n"])), function (_ref) {
|
|
17
|
+
var drawer = _ref.theme.yoga.components.drawer;
|
|
18
|
+
return "\n ";
|
|
19
|
+
});
|
|
20
|
+
Content.displayName = 'Drawer.Content';
|
|
21
|
+
var _default = Content;
|
|
22
|
+
exports["default"] = _default;
|
|
@@ -14,7 +14,7 @@ var GympassLogo = function GympassLogo() {
|
|
|
14
14
|
viewBox: "0 0 129 24",
|
|
15
15
|
fill: "none",
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
17
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
17
|
+
}, /*#__PURE__*/_react["default"].createElement("title", null, "Gympass Logo"), /*#__PURE__*/_react["default"].createElement("path", {
|
|
18
18
|
d: "M14.814 6.64083L18.1979 4.72868C17.0449 1.75711 14.1623 0 10.3021 0C3.93536 0 0 4.05685 0 9.97416C0 16.4341 5.21372 20 10.1768 20C14.7388 20 17.7216 17.8036 19 15.969V9.01809H9.19921V12.2222H15.3404L15.3153 14.4186C15.3153 14.4186 13.5106 16.2015 10.252 16.2015C6.74274 16.2015 4.73747 13.7468 4.73747 9.8708C4.73747 5.96899 6.74274 3.51421 10.2018 3.51421C12.2573 3.51421 13.7863 4.78036 14.814 6.64083Z",
|
|
19
19
|
fill: "#F46152"
|
|
20
20
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
@@ -25,6 +25,11 @@ describe('<Header />', function () {
|
|
|
25
25
|
href: gympassLink
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
+
it('should show gympass logo', function () {
|
|
29
|
+
(0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_.ThemeProvider, null, /*#__PURE__*/_react["default"].createElement(_.Header, null)));
|
|
30
|
+
|
|
31
|
+
_react2.screen.getByTitle('Gympass Logo');
|
|
32
|
+
});
|
|
28
33
|
it('should show custom logo', function () {
|
|
29
34
|
var CustomLogo = function CustomLogo() {
|
|
30
35
|
return /*#__PURE__*/_react["default"].createElement("div", null, "Custom logo");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
4
|
+
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import Dialog from '../../Dialog';
|
|
7
|
+
var Content = styled(Dialog.Content)(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n ", "\n margin: 0;\n height: 100%;\n width: 100%;\n align-self: flex-start;\n text-align: left;\n"])), function (_ref) {
|
|
8
|
+
var drawer = _ref.theme.yoga.components.drawer;
|
|
9
|
+
return "\n ";
|
|
10
|
+
});
|
|
11
|
+
Content.displayName = 'Drawer.Content';
|
|
12
|
+
export default Content;
|
|
@@ -7,7 +7,7 @@ var GympassLogo = function GympassLogo() {
|
|
|
7
7
|
viewBox: "0 0 129 24",
|
|
8
8
|
fill: "none",
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
10
|
+
}, /*#__PURE__*/React.createElement("title", null, "Gympass Logo"), /*#__PURE__*/React.createElement("path", {
|
|
11
11
|
d: "M14.814 6.64083L18.1979 4.72868C17.0449 1.75711 14.1623 0 10.3021 0C3.93536 0 0 4.05685 0 9.97416C0 16.4341 5.21372 20 10.1768 20C14.7388 20 17.7216 17.8036 19 15.969V9.01809H9.19921V12.2222H15.3404L15.3153 14.4186C15.3153 14.4186 13.5106 16.2015 10.252 16.2015C6.74274 16.2015 4.73747 13.7468 4.73747 9.8708C4.73747 5.96899 6.74274 3.51421 10.2018 3.51421C12.2573 3.51421 13.7863 4.78036 14.814 6.64083Z",
|
|
12
12
|
fill: "#F46152"
|
|
13
13
|
}), /*#__PURE__*/React.createElement("path", {
|
|
@@ -17,6 +17,10 @@ describe('<Header />', function () {
|
|
|
17
17
|
href: gympassLink
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
|
+
it('should show gympass logo', function () {
|
|
21
|
+
render( /*#__PURE__*/React.createElement(ThemeProvider, null, /*#__PURE__*/React.createElement(Header, null)));
|
|
22
|
+
screen.getByTitle('Gympass Logo');
|
|
23
|
+
});
|
|
20
24
|
it('should show custom logo', function () {
|
|
21
25
|
var CustomLogo = function CustomLogo() {
|
|
22
26
|
return /*#__PURE__*/React.createElement("div", null, "Custom logo");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.50.
|
|
3
|
+
"version": "7.50.3",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@radix-ui/react-dropdown-menu": "^0.1.6",
|
|
36
36
|
"downshift": "^5.0.0",
|
|
37
37
|
"lodash.get": "^4.4.2",
|
|
38
|
+
"moment": "^2.29.4",
|
|
38
39
|
"prop-types": "^15.7.2",
|
|
39
40
|
"proxy-polyfill": "^0.3.1",
|
|
40
41
|
"rc-slider": "^8.7.1",
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
"react": ">=16",
|
|
52
53
|
"styled-components": "^4.4.0"
|
|
53
54
|
},
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "baf915a1a4bf2726e7465c8713bf311a31f03ef5",
|
|
55
56
|
"module": "./esm",
|
|
56
57
|
"private": false,
|
|
57
58
|
"react-native": "./cjs/index.native.js"
|