@gympass/yoga 7.79.1 → 7.79.2
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.
|
@@ -39,6 +39,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
39
39
|
|
|
40
40
|
function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; }
|
|
41
41
|
|
|
42
|
+
function getMaxZIndex() {
|
|
43
|
+
return Math.max.apply(Math, Array.from(document.querySelectorAll('body *'), function (el) {
|
|
44
|
+
return parseFloat(window.getComputedStyle(el).zIndex);
|
|
45
|
+
}).filter(function (zIndex) {
|
|
46
|
+
return !Number.isNaN(zIndex);
|
|
47
|
+
}).concat([0]));
|
|
48
|
+
}
|
|
49
|
+
|
|
42
50
|
var IconButtonWrapper = _styledComponents["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n cursor: pointer;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"])), _Theme.theme.colors.text.secondary);
|
|
43
51
|
|
|
44
52
|
var ActionsWrapper = _styledComponents["default"].aside(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n margin-left: ", "px;\n margin-right: ", ";\n }\n"])), _Theme.theme.spacing.small, _Theme.theme.spacing.zero);
|
|
@@ -46,7 +54,7 @@ var ActionsWrapper = _styledComponents["default"].aside(_templateObject2 || (_te
|
|
|
46
54
|
var StyledSnackbar = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n"])), function (_ref) {
|
|
47
55
|
var variant = _ref.variant,
|
|
48
56
|
snackbar = _ref.theme.yoga.components.snackbar;
|
|
49
|
-
return "\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n \n position: fixed;\n bottom: " + snackbar.position.mobile.bottom + "px;\n right: " + snackbar.position.mobile.right + "px;\n left: " + snackbar.position.mobile.left + "px;\n \n min-width: " + snackbar.minWidth.mobile + "px;\n max-width: " + snackbar.maxWidth["default"] + "px;\n \n min-height: " + snackbar.height.min + "px;\n max-height: " + snackbar.height.max + "px;\n \n padding: " + snackbar.padding["default"] + "px;\n \n border-radius: " + snackbar.border.radius + "px;\n \n box-shadow: " + snackbar.shadow["default"] + ";\n\n background-color: " + snackbar.variant.color[variant] + ";\n\n z-index:
|
|
57
|
+
return "\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n \n position: fixed;\n bottom: " + snackbar.position.mobile.bottom + "px;\n right: " + snackbar.position.mobile.right + "px;\n left: " + snackbar.position.mobile.left + "px;\n \n min-width: " + snackbar.minWidth.mobile + "px;\n max-width: " + snackbar.maxWidth["default"] + "px;\n \n min-height: " + snackbar.height.min + "px;\n max-height: " + snackbar.height.max + "px;\n \n padding: " + snackbar.padding["default"] + "px;\n \n border-radius: " + snackbar.border.radius + "px;\n \n box-shadow: " + snackbar.shadow["default"] + ";\n\n background-color: " + snackbar.variant.color[variant] + ";\n\n z-index: " + (getMaxZIndex() + 1) + ";\n ";
|
|
50
58
|
}, _yogaHelpers.media.md(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n left: auto;\n bottom: ", "px;\n right: ", "px;\n\n min-width: ", "px;\n "])), _Theme.theme.components.snackbar.position.desktop.bottom, _Theme.theme.components.snackbar.position.desktop.right, _Theme.theme.components.snackbar.minWidth.desktop));
|
|
51
59
|
|
|
52
60
|
var fadeIn = (0, _styledComponents.keyframes)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"])));
|
|
@@ -18,12 +18,21 @@ import Box from '../../Box';
|
|
|
18
18
|
import Button from '../../Button';
|
|
19
19
|
import Icon from '../../Icon';
|
|
20
20
|
import Text from '../../Text';
|
|
21
|
+
|
|
22
|
+
function getMaxZIndex() {
|
|
23
|
+
return Math.max.apply(Math, Array.from(document.querySelectorAll('body *'), function (el) {
|
|
24
|
+
return parseFloat(window.getComputedStyle(el).zIndex);
|
|
25
|
+
}).filter(function (zIndex) {
|
|
26
|
+
return !Number.isNaN(zIndex);
|
|
27
|
+
}).concat([0]));
|
|
28
|
+
}
|
|
29
|
+
|
|
21
30
|
var IconButtonWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n cursor: pointer;\n\n &:hover {\n svg {\n fill: ", ";\n }\n }\n"])), theme.colors.text.secondary);
|
|
22
31
|
var ActionsWrapper = styled.aside(_templateObject2 || (_templateObject2 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n svg {\n margin-left: ", "px;\n margin-right: ", ";\n }\n"])), theme.spacing.small, theme.spacing.zero);
|
|
23
32
|
var StyledSnackbar = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n"])), function (_ref) {
|
|
24
33
|
var variant = _ref.variant,
|
|
25
34
|
snackbar = _ref.theme.yoga.components.snackbar;
|
|
26
|
-
return "\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n \n position: fixed;\n bottom: " + snackbar.position.mobile.bottom + "px;\n right: " + snackbar.position.mobile.right + "px;\n left: " + snackbar.position.mobile.left + "px;\n \n min-width: " + snackbar.minWidth.mobile + "px;\n max-width: " + snackbar.maxWidth["default"] + "px;\n \n min-height: " + snackbar.height.min + "px;\n max-height: " + snackbar.height.max + "px;\n \n padding: " + snackbar.padding["default"] + "px;\n \n border-radius: " + snackbar.border.radius + "px;\n \n box-shadow: " + snackbar.shadow["default"] + ";\n\n background-color: " + snackbar.variant.color[variant] + ";\n\n z-index:
|
|
35
|
+
return "\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n \n position: fixed;\n bottom: " + snackbar.position.mobile.bottom + "px;\n right: " + snackbar.position.mobile.right + "px;\n left: " + snackbar.position.mobile.left + "px;\n \n min-width: " + snackbar.minWidth.mobile + "px;\n max-width: " + snackbar.maxWidth["default"] + "px;\n \n min-height: " + snackbar.height.min + "px;\n max-height: " + snackbar.height.max + "px;\n \n padding: " + snackbar.padding["default"] + "px;\n \n border-radius: " + snackbar.border.radius + "px;\n \n box-shadow: " + snackbar.shadow["default"] + ";\n\n background-color: " + snackbar.variant.color[variant] + ";\n\n z-index: " + (getMaxZIndex() + 1) + ";\n ";
|
|
27
36
|
}, media.md(_templateObject4 || (_templateObject4 = _taggedTemplateLiteralLoose(["\n left: auto;\n bottom: ", "px;\n right: ", "px;\n\n min-width: ", "px;\n "])), theme.components.snackbar.position.desktop.bottom, theme.components.snackbar.position.desktop.right, theme.components.snackbar.minWidth.desktop));
|
|
28
37
|
var fadeIn = keyframes(_templateObject5 || (_templateObject5 = _taggedTemplateLiteralLoose(["\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n"])));
|
|
29
38
|
var AnimatedSnackbar = styled(StyledSnackbar)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteralLoose(["\n animation: ", " 0.2s ease-in-out;\n"])), fadeIn);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.79.
|
|
3
|
+
"version": "7.79.2",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react-native": "0.72.3",
|
|
56
56
|
"styled-components": "^4.4.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "9dddaea4b4e84e03160e254195498c813410e594",
|
|
59
59
|
"module": "./esm",
|
|
60
60
|
"types": "./typings/index.d.ts",
|
|
61
61
|
"private": false,
|