@beequip/hexagon 0.22.3 → 0.22.4
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.
|
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var React = require("react");
|
|
6
6
|
var ReactDOM = require("react-dom");
|
|
7
7
|
var styled_components_1 = require("styled-components");
|
|
8
|
-
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"], ["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"])), function (props) { return (props
|
|
8
|
+
var StyledContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"], ["\n background: white;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n transform: translateY(", ");\n transition: transform cubic-bezier(0.62, 0.28, 0.23, 0.99) 0.7s;\n overflow-y: scroll;\n -webkit-overflow-scrolling: touch;\n"])), function (props) { return (props.$portalOpen ? '0' : '100%'); });
|
|
9
9
|
// TODO: Use hooks
|
|
10
10
|
var Portal = /** @class */ (function (_super) {
|
|
11
11
|
tslib_1.__extends(Portal, _super);
|
|
@@ -43,7 +43,7 @@ var Portal = /** @class */ (function (_super) {
|
|
|
43
43
|
if (!this.el) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
return (React.createElement(React.Fragment, null, ReactDOM.createPortal(React.createElement(StyledContainer, { portalOpen: this.props.portalOpen }, this.props.children), this.el)));
|
|
46
|
+
return (React.createElement(React.Fragment, null, ReactDOM.createPortal(React.createElement(StyledContainer, { "$portalOpen": this.props.portalOpen }, this.props.children), this.el)));
|
|
47
47
|
};
|
|
48
48
|
return Portal;
|
|
49
49
|
}(React.Component));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,oCAAqC;AACrC,uDAAsC;AAEtC,IAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Portal/index.tsx"],"names":[],"mappings":";;;;AAAA,6BAA8B;AAC9B,oCAAqC;AACrC,uDAAsC;AAEtC,IAAM,eAAe,GAAG,2BAAM,CAAC,GAAG,yXAA0B,+JAQhC,EAA6C,6IAIxE,KAJ2B,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAlC,CAAkC,CAIxE,CAAA;AAOD,kBAAkB;AAClB;IAA4B,kCAAqC;IAAjE;;IAgDA,CAAC;IA3CU,kCAAiB,GAAxB;QACI,IAAI,CAAC,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACvC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAA;QAC9C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAA;QAEnD,IAAI,IAAI,CAAC,UAAU,EAAE;YACjB,IAAI,CAAC,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 || (template
|
|
|
15
15
|
medium: 500,
|
|
16
16
|
bold: 'bold',
|
|
17
17
|
}), function (props) {
|
|
18
|
-
return props
|
|
18
|
+
return props.$color === 'light'
|
|
19
19
|
? 'white'
|
|
20
|
-
: props
|
|
20
|
+
: props.$color === 'grey'
|
|
21
21
|
? props.theme.colors.text.light
|
|
22
22
|
: props.theme.colors.text.default;
|
|
23
23
|
}, function (props) { return props.theme.font.lineHeight; }, function (props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/components/Text/styles.ts"],"names":[],"mappings":";;;;AAAA,yCAAkC;AAClC,uDAA4D;AAC5D,8BAA2B;AASd,QAAA,UAAU,GAAG,2BAAM,CAAC,CAAC,qOAAiB,QAC7C,EAA6C,sBAChC,EAAmC,oBACrC,EAKX,sBACa,EAIb,gBACO,EAKgC,sBAC1B,EAAsC,yBAEnD,EACqE,KAC1E,KAvBK,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,OAAO,IAAI,iBAAiB,EAAlC,CAAkC,EAChC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAxB,CAAwB,EACrC,IAAA,oBAAS,EAAC,OAAO,EAAE;IAC5B,EAAE,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAzB,CAAyB;IAC1D,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB;IACxD,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAAwB;IACxD,CAAC,EAAE,UAAC,KAAuB,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAxB,CAA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