@thecb/components 11.2.14-beta.0 → 11.2.14-beta.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.
- package/dist/index.cjs.js +8 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +8 -8
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/nav-menu/NavMenuMobile.js +16 -6
- package/src/components/molecules/nav-menu/NavMenuMobile.stories.js +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -44704,7 +44704,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
44704
44704
|
};
|
|
44705
44705
|
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
|
|
44706
44706
|
|
|
44707
|
-
//
|
|
44707
|
+
// Animate with transforms (x) instead of left/right
|
|
44708
44708
|
var menuVariants = {
|
|
44709
44709
|
invisible: {
|
|
44710
44710
|
x: "-100vw",
|
|
@@ -44724,9 +44724,9 @@ var menuVariants = {
|
|
|
44724
44724
|
var ImposterMenu = styled(Motion).withConfig({
|
|
44725
44725
|
displayName: "NavMenuMobile__ImposterMenu",
|
|
44726
44726
|
componentId: "sc-1pf0qp7-0"
|
|
44727
|
-
})(["position:fixed;top:
|
|
44728
|
-
var
|
|
44729
|
-
return
|
|
44727
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;background:", ";z-index:9999;"], function (_ref) {
|
|
44728
|
+
var themeValues = _ref.themeValues;
|
|
44729
|
+
return (themeValues === null || themeValues === void 0 ? void 0 : themeValues.overlayColor) || "rgba(0, 0, 0, 0.5)";
|
|
44730
44730
|
});
|
|
44731
44731
|
var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
44732
44732
|
var id = _ref2.id,
|
|
@@ -44735,18 +44735,18 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
|
44735
44735
|
_ref2$visible = _ref2.visible,
|
|
44736
44736
|
visible = _ref2$visible === void 0 ? false : _ref2$visible,
|
|
44737
44737
|
_ref2$headerSize = _ref2.headerSize,
|
|
44738
|
-
headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
|
|
44739
44738
|
themeValues = _ref2.themeValues;
|
|
44740
44739
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
44741
44740
|
id: id,
|
|
44742
44741
|
variants: menuVariants,
|
|
44743
44742
|
initial: "invisible",
|
|
44744
44743
|
animate: visible ? "visible" : "invisible",
|
|
44745
|
-
|
|
44744
|
+
themeValues: themeValues
|
|
44746
44745
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
44747
|
-
width: "
|
|
44746
|
+
width: "100%",
|
|
44747
|
+
maxWidth: "400px",
|
|
44748
44748
|
padding: "1rem 0.5rem",
|
|
44749
|
-
extraStyles: "\n position: relative;\n
|
|
44749
|
+
extraStyles: "\n position: relative;\n height: 100%;\n ",
|
|
44750
44750
|
background: themeValues.backgroundColor
|
|
44751
44751
|
}, menuContent));
|
|
44752
44752
|
};
|