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