@thefittingroom/shop-ui 5.0.3 → 5.0.4
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.js +31 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20855,8 +20855,10 @@ function ModalTitlebar({
|
|
|
20855
20855
|
let titleNode;
|
|
20856
20856
|
if (typeof title === "string") {
|
|
20857
20857
|
titleNode = /* @__PURE__ */ jsx$1(Text, { variant: "base", css: css2.titleText, children: title });
|
|
20858
|
-
} else {
|
|
20858
|
+
} else if (title) {
|
|
20859
20859
|
titleNode = title;
|
|
20860
|
+
} else {
|
|
20861
|
+
titleNode = /* @__PURE__ */ jsx$1("div", { children: " " });
|
|
20860
20862
|
}
|
|
20861
20863
|
let backNode;
|
|
20862
20864
|
if (onBackClick) {
|
|
@@ -20875,6 +20877,7 @@ function SidecarModalFrame({
|
|
|
20875
20877
|
children
|
|
20876
20878
|
}) {
|
|
20877
20879
|
const deviceLayout = useMainStore((state) => state.deviceLayout);
|
|
20880
|
+
const isMobileLayout = deviceLayout === DeviceLayout.MOBILE_PORTRAIT || deviceLayout === DeviceLayout.TABLET_PORTRAIT;
|
|
20878
20881
|
const css2 = useCss((_theme) => ({
|
|
20879
20882
|
frameContentBase: {
|
|
20880
20883
|
position: "absolute",
|
|
@@ -20897,7 +20900,7 @@ function SidecarModalFrame({
|
|
|
20897
20900
|
backgroundColor: "#FFFFFF"
|
|
20898
20901
|
}
|
|
20899
20902
|
}));
|
|
20900
|
-
return /* @__PURE__ */ jsx$1(ModalFrame, { isOpen: true, onRequestClose, contentStyle:
|
|
20903
|
+
return /* @__PURE__ */ jsx$1(ModalFrame, { isOpen: true, onRequestClose, contentStyle: isMobileLayout ? css2.frameContentFullScreen : css2.frameContentBase, children });
|
|
20901
20904
|
}
|
|
20902
20905
|
var dayjs_min$1 = { exports: {} };
|
|
20903
20906
|
var dayjs_min = dayjs_min$1.exports;
|
|
@@ -41734,8 +41737,8 @@ function MobileLayout({
|
|
|
41734
41737
|
// availableColorLabels,
|
|
41735
41738
|
// selectedColorLabel,
|
|
41736
41739
|
// selectedSizeLabel,
|
|
41737
|
-
frameUrls
|
|
41738
|
-
|
|
41740
|
+
frameUrls,
|
|
41741
|
+
onClose
|
|
41739
41742
|
// onChangeColor,
|
|
41740
41743
|
// onChangeSize,
|
|
41741
41744
|
// onAddToCart,
|
|
@@ -41745,9 +41748,29 @@ function MobileLayout({
|
|
|
41745
41748
|
mainContainer: {
|
|
41746
41749
|
width: "100%",
|
|
41747
41750
|
height: "100%"
|
|
41751
|
+
},
|
|
41752
|
+
closeButton: {
|
|
41753
|
+
position: "absolute",
|
|
41754
|
+
top: "10px",
|
|
41755
|
+
right: "10px",
|
|
41756
|
+
width: "30px",
|
|
41757
|
+
height: "30px",
|
|
41758
|
+
border: "none",
|
|
41759
|
+
borderRadius: "15px",
|
|
41760
|
+
backgroundColor: "rgba(255, 255, 255, 0.15)",
|
|
41761
|
+
display: "flex",
|
|
41762
|
+
alignItems: "center",
|
|
41763
|
+
justifyContent: "center"
|
|
41764
|
+
},
|
|
41765
|
+
closeIcon: {
|
|
41766
|
+
width: "16px",
|
|
41767
|
+
height: "16px"
|
|
41748
41768
|
}
|
|
41749
41769
|
}));
|
|
41750
|
-
return /* @__PURE__ */
|
|
41770
|
+
return /* @__PURE__ */ jsxs("div", { css: css2.mainContainer, children: [
|
|
41771
|
+
/* @__PURE__ */ jsx$1(Avatar, { frameUrls }),
|
|
41772
|
+
/* @__PURE__ */ jsx$1("button", { onClick: onClose, "aria-label": "Close modal", css: css2.closeButton, children: /* @__PURE__ */ jsx$1(SvgCloseIcon, { css: css2.closeIcon }) })
|
|
41773
|
+
] });
|
|
41751
41774
|
}
|
|
41752
41775
|
function DesktopLayout({
|
|
41753
41776
|
loadedProductData,
|
|
@@ -42536,9 +42559,9 @@ const SHARED_CONFIG = {
|
|
|
42536
42559
|
appGooglePlayUrl: "https://play.google.com/store/apps/details?id=com.thefittingroom.marketplace"
|
|
42537
42560
|
},
|
|
42538
42561
|
build: {
|
|
42539
|
-
version: `${"5.0.
|
|
42540
|
-
commitHash: `${"
|
|
42541
|
-
date: `${"2026-01-
|
|
42562
|
+
version: `${"5.0.4"}`,
|
|
42563
|
+
commitHash: `${"ab04059"}`,
|
|
42564
|
+
date: `${"2026-01-07T14:09:55.391Z"}`
|
|
42542
42565
|
}
|
|
42543
42566
|
};
|
|
42544
42567
|
const CONFIGS = {
|