@thefreshop/tb 1.0.30 → 1.0.31

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/cjs/index.js CHANGED
@@ -398,12 +398,15 @@ const Tabs = ({ nav: { menuSet, openIcon, closeIcon }, frameStyle }) => {
398
398
  })));
399
399
  };
400
400
 
401
- var css_248z$7 = ".main-module_mainFrame__Etjvl{height:100%;width:100%}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw4QkFFRSxXQUFZLENBRFosVUFFRiIsImZpbGUiOiJtYWluLm1vZHVsZS5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWFpbkZyYW1lIHtcclxuICB3aWR0aDogMTAwJTtcclxuICBoZWlnaHQ6IDEwMCU7XHJcbn1cclxuIl19 */";
402
- var styles$5 = {"mainFrame":"main-module_mainFrame__Etjvl"};
401
+ var css_248z$7 = ".main-module_mainFrame__Etjvl{height:100%;width:100%}.main-module_mainFrameFullscreen__oEwV8{background:#fff;inset:0;overflow:auto;padding:0;position:fixed;z-index:9999}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1haW4ubW9kdWxlLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw4QkFFSSxXQUFZLENBRFosVUFFSixDQUVBLHdDQU1JLGVBQWdCLENBSmhCLE9BQVEsQ0FHUixhQUFjLENBRGQsU0FBVSxDQUhWLGNBQWUsQ0FFZixZQUlKIiwiZmlsZSI6Im1haW4ubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIi5tYWluRnJhbWUge1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBoZWlnaHQ6IDEwMCU7XHJcbn1cclxuXHJcbi5tYWluRnJhbWVGdWxsc2NyZWVuIHtcclxuICAgIHBvc2l0aW9uOiBmaXhlZDtcclxuICAgIGluc2V0OiAwO1xyXG4gICAgei1pbmRleDogOTk5OTtcclxuICAgIHBhZGRpbmc6IDA7XHJcbiAgICBvdmVyZmxvdzogYXV0bztcclxuICAgIGJhY2tncm91bmQ6ICNmZmY7XHJcbn1cclxuIl19 */";
402
+ var styles$5 = {"mainFrame":"main-module_mainFrame__Etjvl","mainFrameFullscreen":"main-module_mainFrameFullscreen__oEwV8"};
403
403
  styleInject(css_248z$7);
404
404
 
405
405
  const Main = () => {
406
- return (React.createElement("div", { className: styles$5.mainFrame },
406
+ const [sp] = reactRouter.useSearchParams();
407
+ const isFs = sp.get("fs") === "1" || sp.get("fullscreen") === "1";
408
+ // console.log("Main render, isFs:", isFs);
409
+ return (React.createElement("div", { className: isFs ? styles$5.mainFrameFullscreen : styles$5.mainFrame },
407
410
  React.createElement(reactRouter.Outlet, null)));
408
411
  };
409
412