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