@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.cjs.js
CHANGED
|
@@ -44712,7 +44712,7 @@ var NavMenuDesktop = function NavMenuDesktop(_ref) {
|
|
|
44712
44712
|
};
|
|
44713
44713
|
var NavMenuDesktop$1 = themeComponent(NavMenuDesktop, "NavMenu", fallbackValues$M, "profile");
|
|
44714
44714
|
|
|
44715
|
-
//
|
|
44715
|
+
// Animate with transforms (x) instead of left/right
|
|
44716
44716
|
var menuVariants = {
|
|
44717
44717
|
invisible: {
|
|
44718
44718
|
x: "-100vw",
|
|
@@ -44732,9 +44732,9 @@ var menuVariants = {
|
|
|
44732
44732
|
var ImposterMenu = styled__default(Motion).withConfig({
|
|
44733
44733
|
displayName: "NavMenuMobile__ImposterMenu",
|
|
44734
44734
|
componentId: "sc-1pf0qp7-0"
|
|
44735
|
-
})(["position:fixed;top:
|
|
44736
|
-
var
|
|
44737
|
-
return
|
|
44735
|
+
})(["position:fixed;top:0;left:0;right:0;bottom:0;background:", ";z-index:9999;"], function (_ref) {
|
|
44736
|
+
var themeValues = _ref.themeValues;
|
|
44737
|
+
return (themeValues === null || themeValues === void 0 ? void 0 : themeValues.overlayColor) || "rgba(0, 0, 0, 0.5)";
|
|
44738
44738
|
});
|
|
44739
44739
|
var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
44740
44740
|
var id = _ref2.id,
|
|
@@ -44743,18 +44743,18 @@ var NavMenuMobile = function NavMenuMobile(_ref2) {
|
|
|
44743
44743
|
_ref2$visible = _ref2.visible,
|
|
44744
44744
|
visible = _ref2$visible === void 0 ? false : _ref2$visible,
|
|
44745
44745
|
_ref2$headerSize = _ref2.headerSize,
|
|
44746
|
-
headerSize = _ref2$headerSize === void 0 ? "72px" : _ref2$headerSize,
|
|
44747
44746
|
themeValues = _ref2.themeValues;
|
|
44748
44747
|
return /*#__PURE__*/React__default.createElement(ImposterMenu, {
|
|
44749
44748
|
id: id,
|
|
44750
44749
|
variants: menuVariants,
|
|
44751
44750
|
initial: "invisible",
|
|
44752
44751
|
animate: visible ? "visible" : "invisible",
|
|
44753
|
-
|
|
44752
|
+
themeValues: themeValues
|
|
44754
44753
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
44755
|
-
width: "
|
|
44754
|
+
width: "100%",
|
|
44755
|
+
maxWidth: "400px",
|
|
44756
44756
|
padding: "1rem 0.5rem",
|
|
44757
|
-
extraStyles: "\n position: relative;\n
|
|
44757
|
+
extraStyles: "\n position: relative;\n height: 100%;\n ",
|
|
44758
44758
|
background: themeValues.backgroundColor
|
|
44759
44759
|
}, menuContent));
|
|
44760
44760
|
};
|