@thefittingroom/shop-ui 5.0.25 → 5.0.26
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 +53 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42875,7 +42875,7 @@ function ItemFitDetails({
|
|
|
42875
42875
|
] }) : fitLabel })
|
|
42876
42876
|
] }, index);
|
|
42877
42877
|
});
|
|
42878
|
-
}, [loadedProductData, selectedSizeLabel]);
|
|
42878
|
+
}, [loadedProductData, selectedSizeLabel, t, css2.detailCell, css2.firstLine, css2.line]);
|
|
42879
42879
|
return /* @__PURE__ */ jsx$1("div", { css: css2.container, children: fitLineNodeList });
|
|
42880
42880
|
}
|
|
42881
42881
|
function ItemFitText({
|
|
@@ -42922,7 +42922,7 @@ function SizeSelector({
|
|
|
42922
42922
|
}
|
|
42923
42923
|
onChangeSize(sizeRecord.sizeLabel);
|
|
42924
42924
|
}, children: sizeRecord.sizeLabel }, sizeRecord.sizeLabel);
|
|
42925
|
-
}), [loadedProductData.sizes, selectedSizeLabel, onChangeSize]);
|
|
42925
|
+
}), [loadedProductData.sizes, selectedSizeLabel, onChangeSize, css2.button, css2.selectedButton]);
|
|
42926
42926
|
return /* @__PURE__ */ jsx$1("div", { css: css2.container, children: sizeSelectorNodeList });
|
|
42927
42927
|
}
|
|
42928
42928
|
function DetailAccordionItem({
|
|
@@ -43019,8 +43019,10 @@ function DesktopAccordionItem({
|
|
|
43019
43019
|
backgroundColor: ACCORDION_SHADE
|
|
43020
43020
|
},
|
|
43021
43021
|
categoryLabel: {
|
|
43022
|
-
|
|
43023
|
-
|
|
43022
|
+
fontFamily: "'Times New Roman', serif",
|
|
43023
|
+
fontSize: "20px",
|
|
43024
|
+
fontWeight: "400",
|
|
43025
|
+
letterSpacing: "0.04em"
|
|
43024
43026
|
},
|
|
43025
43027
|
chevron: {
|
|
43026
43028
|
display: "inline-flex",
|
|
@@ -43041,6 +43043,7 @@ function DesktopAccordionItem({
|
|
|
43041
43043
|
},
|
|
43042
43044
|
productName: {
|
|
43043
43045
|
fontSize: "24px",
|
|
43046
|
+
fontWeight: "300",
|
|
43044
43047
|
lineHeight: "1.2"
|
|
43045
43048
|
},
|
|
43046
43049
|
price: {
|
|
@@ -43081,10 +43084,12 @@ function DesktopAccordionItem({
|
|
|
43081
43084
|
},
|
|
43082
43085
|
selectPrompt: {
|
|
43083
43086
|
fontSize: "14px",
|
|
43087
|
+
fontWeight: "300",
|
|
43084
43088
|
lineHeight: 1.5
|
|
43085
43089
|
},
|
|
43086
43090
|
fitText: {
|
|
43087
43091
|
fontSize: "14px",
|
|
43092
|
+
fontWeight: "300",
|
|
43088
43093
|
lineHeight: 1.5,
|
|
43089
43094
|
// Tight 8px lift to the recommended-size line above; matches
|
|
43090
43095
|
// quick-view's `itemFitContainer` marginTop.
|
|
@@ -43092,6 +43097,10 @@ function DesktopAccordionItem({
|
|
|
43092
43097
|
},
|
|
43093
43098
|
fitDetails: {
|
|
43094
43099
|
width: "100%",
|
|
43100
|
+
// Cascades to the text inside <ItemFitDetails>; the size-selector
|
|
43101
|
+
// buttons and the bold recommended-size line above stay at their
|
|
43102
|
+
// own weights.
|
|
43103
|
+
fontWeight: 300,
|
|
43095
43104
|
marginTop: "24px"
|
|
43096
43105
|
},
|
|
43097
43106
|
sizeRow: {
|
|
@@ -43187,12 +43196,16 @@ function MobileAccordionItem({
|
|
|
43187
43196
|
minWidth: 0
|
|
43188
43197
|
},
|
|
43189
43198
|
categoryLabel: {
|
|
43190
|
-
|
|
43199
|
+
fontFamily: "'Times New Roman', serif",
|
|
43200
|
+
fontSize: "16px",
|
|
43191
43201
|
fontWeight: "400",
|
|
43202
|
+
letterSpacing: "0.04em",
|
|
43192
43203
|
flex: "none"
|
|
43193
43204
|
},
|
|
43194
43205
|
productName: {
|
|
43195
|
-
|
|
43206
|
+
fontFamily: "'Times New Roman', serif",
|
|
43207
|
+
fontSize: "16px",
|
|
43208
|
+
letterSpacing: "0.04em",
|
|
43196
43209
|
color: "#8A8A8A",
|
|
43197
43210
|
overflow: "hidden",
|
|
43198
43211
|
textOverflow: "ellipsis",
|
|
@@ -44629,7 +44642,7 @@ function GetAppOverlay({
|
|
|
44629
44642
|
openOverlay(OverlayName.SIGN_IN, {
|
|
44630
44643
|
returnToOverlay
|
|
44631
44644
|
});
|
|
44632
|
-
}, [returnToOverlay]);
|
|
44645
|
+
}, [openOverlay, returnToOverlay]);
|
|
44633
44646
|
const handleGetAppAppleClick = reactExports.useCallback(() => {
|
|
44634
44647
|
const url = getStaticData().config.links.appAppleStoreUrl;
|
|
44635
44648
|
window.open(url, "_blank");
|
|
@@ -44696,12 +44709,12 @@ function LandingOverlay({
|
|
|
44696
44709
|
openOverlay(OverlayName.GET_APP, {
|
|
44697
44710
|
returnToOverlay
|
|
44698
44711
|
});
|
|
44699
|
-
}, [returnToOverlay]);
|
|
44712
|
+
}, [openOverlay, returnToOverlay]);
|
|
44700
44713
|
const handleSignInClick = reactExports.useCallback(() => {
|
|
44701
44714
|
openOverlay(OverlayName.SIGN_IN, {
|
|
44702
44715
|
returnToOverlay
|
|
44703
44716
|
});
|
|
44704
|
-
}, [returnToOverlay]);
|
|
44717
|
+
}, [openOverlay, returnToOverlay]);
|
|
44705
44718
|
return /* @__PURE__ */ jsxs(ContentModal, { onRequestClose: closeOverlay, title: /* @__PURE__ */ jsx$1(TextT, { variant: "brand", css: css2.titleText, t: "try_it_on" }), children: [
|
|
44706
44719
|
/* @__PURE__ */ jsx$1("div", { css: css2.headerText, children: /* @__PURE__ */ jsx$1(TextT, { variant: "brand", css: css2.headerText, t: t("landing.header") }) }),
|
|
44707
44720
|
/* @__PURE__ */ jsx$1("div", { css: css2.description, children: /* @__PURE__ */ jsx$1(TextT, { variant: "base", t: t("landing.description") }) }),
|
|
@@ -44841,12 +44854,12 @@ function SignInOverlay({
|
|
|
44841
44854
|
openOverlay(OverlayName.FORGOT_PASSWORD, {
|
|
44842
44855
|
returnToOverlay
|
|
44843
44856
|
});
|
|
44844
|
-
}, [returnToOverlay]);
|
|
44857
|
+
}, [openOverlay, returnToOverlay]);
|
|
44845
44858
|
const handleGetAppClick = reactExports.useCallback(() => {
|
|
44846
44859
|
openOverlay(OverlayName.GET_APP, {
|
|
44847
44860
|
returnToOverlay
|
|
44848
44861
|
});
|
|
44849
|
-
}, [returnToOverlay]);
|
|
44862
|
+
}, [openOverlay, returnToOverlay]);
|
|
44850
44863
|
return /* @__PURE__ */ jsx$1(ContentModal, { onRequestClose: closeOverlay, title: /* @__PURE__ */ jsx$1(TfrTitle, {}), children: /* @__PURE__ */ jsxs("form", { onSubmit: handleSubmit, css: css2.form, children: [
|
|
44851
44864
|
/* @__PURE__ */ jsx$1("div", { css: css2.emailContainer, children: /* @__PURE__ */ jsx$1("input", { name: "email", type: "email", placeholder: t("sign-in.email"), required: true, css: /* @__PURE__ */ css$1({
|
|
44852
44865
|
...css2.input,
|
|
@@ -45234,8 +45247,8 @@ function QuickViewOverlay() {
|
|
|
45234
45247
|
color: selectedColor
|
|
45235
45248
|
} = await currentProduct.getSelectedOptions();
|
|
45236
45249
|
const styleCategoryIndex = await loadStyleCategoryIndex();
|
|
45237
|
-
const
|
|
45238
|
-
const styleCategoryLabel =
|
|
45250
|
+
const styleCategoryRecord = styleCategoryIndex.byName(storeProduct.style.style_category_name);
|
|
45251
|
+
const styleCategoryLabel = styleCategoryRecord?.label_singular ?? styleCategoryRecord?.label ?? null;
|
|
45239
45252
|
const sizeRecommendationRecord = storeProduct.sizeFitRecommendation;
|
|
45240
45253
|
{
|
|
45241
45254
|
const recommendedSizeId = sizeRecommendationRecord.recommended_size.id || null;
|
|
@@ -45408,7 +45421,7 @@ function QuickViewOverlay() {
|
|
|
45408
45421
|
error
|
|
45409
45422
|
});
|
|
45410
45423
|
});
|
|
45411
|
-
}, [closeOverlay
|
|
45424
|
+
}, [closeOverlay]);
|
|
45412
45425
|
const handleAddToCartClick = reactExports.useCallback(async () => {
|
|
45413
45426
|
try {
|
|
45414
45427
|
if (!selectedSizeLabel) {
|
|
@@ -45430,7 +45443,7 @@ function QuickViewOverlay() {
|
|
|
45430
45443
|
error
|
|
45431
45444
|
});
|
|
45432
45445
|
}
|
|
45433
|
-
}, [selectedColorLabel, selectedSizeLabel]);
|
|
45446
|
+
}, [closeOverlay, selectedColorLabel, selectedSizeLabel]);
|
|
45434
45447
|
if (vtoProductData === false) {
|
|
45435
45448
|
return /* @__PURE__ */ jsx$1(SidecarModalFrame, { onRequestClose: closeOverlay, children: /* @__PURE__ */ jsx$1(NoFitLayout, { onClose: closeOverlay, onSignOut: handleSignOutClick }) });
|
|
45436
45449
|
}
|
|
@@ -45895,7 +45908,9 @@ function DesktopLayout({
|
|
|
45895
45908
|
},
|
|
45896
45909
|
productNameContainer: {},
|
|
45897
45910
|
productNameText: {
|
|
45898
|
-
|
|
45911
|
+
fontFamily: "'Inter', sans-serif",
|
|
45912
|
+
fontSize: "32px",
|
|
45913
|
+
fontWeight: 300
|
|
45899
45914
|
},
|
|
45900
45915
|
priceContainer: {
|
|
45901
45916
|
marginTop: "8px"
|
|
@@ -45929,17 +45944,27 @@ function DesktopLayout({
|
|
|
45929
45944
|
marginTop: "8px",
|
|
45930
45945
|
lineHeight: "normal"
|
|
45931
45946
|
},
|
|
45932
|
-
itemFitText: {
|
|
45947
|
+
itemFitText: {
|
|
45948
|
+
fontFamily: "'Inter', sans-serif",
|
|
45949
|
+
fontWeight: 300
|
|
45950
|
+
},
|
|
45933
45951
|
selectSizeLabelContainer: {
|
|
45934
45952
|
lineHeight: "normal"
|
|
45935
45953
|
},
|
|
45936
|
-
selectSizeLabelText: {
|
|
45954
|
+
selectSizeLabelText: {
|
|
45955
|
+
fontFamily: "'Inter', sans-serif",
|
|
45956
|
+
fontWeight: 300
|
|
45957
|
+
},
|
|
45937
45958
|
sizeSelectorContainer: {
|
|
45938
45959
|
marginTop: "24px"
|
|
45939
45960
|
},
|
|
45940
45961
|
itemFitDetailsContainer: {
|
|
45941
45962
|
marginTop: "24px",
|
|
45942
|
-
width: "100%"
|
|
45963
|
+
width: "100%",
|
|
45964
|
+
// Cascades into <ItemFitDetails>; the bold recommended-size line above
|
|
45965
|
+
// and the size-selector buttons stay at their own weights.
|
|
45966
|
+
fontFamily: "'Inter', sans-serif",
|
|
45967
|
+
fontWeight: 300
|
|
45943
45968
|
},
|
|
45944
45969
|
fitChartContainer: {
|
|
45945
45970
|
marginTop: "16px"
|
|
@@ -46144,7 +46169,7 @@ function Avatar({
|
|
|
46144
46169
|
return () => {
|
|
46145
46170
|
window.removeEventListener("resize", refreshLayoutData);
|
|
46146
46171
|
};
|
|
46147
|
-
}, [isMobileLayout]);
|
|
46172
|
+
}, [isMobileLayout, setModalStyle]);
|
|
46148
46173
|
const isReady = !!frameUrls && selectedFrameIndex != null;
|
|
46149
46174
|
return /* @__PURE__ */ jsxs("div", { css: css2.topContainer, style: layoutData.topContainerStyle, children: [
|
|
46150
46175
|
/* @__PURE__ */ jsx$1(AvatarFrameViewer, { frameUrls, selectedFrameIndex, setSelectedFrameIndex, imageContainerStyle: layoutData.imageContainerStyle, imageStyle: layoutData.imageStyle, loadingT: "quick-view.avatar_loading" }),
|
|
@@ -46173,10 +46198,14 @@ function ProductSummaryRow({
|
|
|
46173
46198
|
},
|
|
46174
46199
|
labelContainer: {},
|
|
46175
46200
|
labelText: {
|
|
46201
|
+
fontFamily: "'Times New Roman', serif",
|
|
46202
|
+
fontSize: "16px",
|
|
46176
46203
|
color: "#1A1A1A"
|
|
46177
46204
|
},
|
|
46178
46205
|
nameContainer: {},
|
|
46179
46206
|
nameText: {
|
|
46207
|
+
fontFamily: "'Times New Roman', serif",
|
|
46208
|
+
fontSize: "16px",
|
|
46180
46209
|
color: "#9F9F9F"
|
|
46181
46210
|
}
|
|
46182
46211
|
}));
|
|
@@ -46765,9 +46794,9 @@ const SHARED_CONFIG = {
|
|
|
46765
46794
|
appGooglePlayUrl: "https://play.google.com/store/apps/details?id=com.thefittingroom.marketplace"
|
|
46766
46795
|
},
|
|
46767
46796
|
build: {
|
|
46768
|
-
version: `${"5.0.
|
|
46769
|
-
commitHash: `${"
|
|
46770
|
-
date: `${"2026-05-
|
|
46797
|
+
version: `${"5.0.26"}`,
|
|
46798
|
+
commitHash: `${"357d81c"}`,
|
|
46799
|
+
date: `${"2026-05-23T18:08:09.620Z"}`
|
|
46771
46800
|
}
|
|
46772
46801
|
};
|
|
46773
46802
|
const CONFIGS = {
|
|
@@ -46891,7 +46920,7 @@ const CONFIGS = {
|
|
|
46891
46920
|
const getConfig = (envName) => {
|
|
46892
46921
|
return CONFIGS[envName];
|
|
46893
46922
|
};
|
|
46894
|
-
const css = "\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@
|
|
46923
|
+
const css = "\n@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');\n/* Inter — the SDK's own typeface, matching the Figma designs. Loaded here so\n overlay text renders in Inter regardless of the host page's fonts. The\n variable-axis URL serves every integer weight from 100 to 900 in one file\n so any `font-weight: <n>` value renders accurately without falling back to\n the nearest pre-loaded weight. */\nbody.tfr-modal-open {\n overflow: hidden;\n position: fixed;\n width: 100%;\n}\n";
|
|
46895
46924
|
class TfrWidgetElement extends HTMLElement {
|
|
46896
46925
|
connectedCallback() {
|
|
46897
46926
|
const attributes = this.getAttributeNames().reduce((attrs, name2) => {
|