@neurodyn/react-ai-try-on 0.0.1 → 0.0.2
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 +41 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1047,6 +1047,10 @@ var __webpack_modules__ = {
|
|
|
1047
1047
|
width: 56px;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
+
.w-\\[90\\%\\] {
|
|
1051
|
+
width: 90%;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1050
1054
|
.w-\\[340px\\] {
|
|
1051
1055
|
width: 340px;
|
|
1052
1056
|
}
|
|
@@ -18079,21 +18083,30 @@ function ProductThumbnail({ className, imageSrc, name }) {
|
|
|
18079
18083
|
});
|
|
18080
18084
|
}
|
|
18081
18085
|
function GuidanceCard({ good, imageSrc, label }) {
|
|
18082
|
-
return /*#__PURE__*/ jsxs("
|
|
18083
|
-
className: "
|
|
18086
|
+
return /*#__PURE__*/ jsxs("figure", {
|
|
18087
|
+
className: "flex min-w-0 flex-col items-start gap-2",
|
|
18084
18088
|
children: [
|
|
18085
|
-
/*#__PURE__*/
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18089
|
+
/*#__PURE__*/ jsxs("div", {
|
|
18090
|
+
className: "relative aspect-square w-full overflow-hidden rounded-xl border border-border-light bg-background-base",
|
|
18091
|
+
children: [
|
|
18092
|
+
/*#__PURE__*/ jsx_runtime_jsx("img", {
|
|
18093
|
+
alt: label,
|
|
18094
|
+
className: "size-full object-cover",
|
|
18095
|
+
src: imageSrc
|
|
18096
|
+
}),
|
|
18097
|
+
/*#__PURE__*/ jsx_runtime_jsx("span", {
|
|
18098
|
+
className: utils_cn('absolute right-2 top-2 flex size-7 items-center justify-center rounded-full', good ? 'bg-background-green' : 'bg-background-red'),
|
|
18099
|
+
children: good ? /*#__PURE__*/ jsx_runtime_jsx(CheckDone, {
|
|
18100
|
+
className: "size-5 text-background-containers"
|
|
18101
|
+
}) : /*#__PURE__*/ jsx_runtime_jsx(close_Close, {
|
|
18102
|
+
className: "size-5 text-background-containers"
|
|
18103
|
+
})
|
|
18104
|
+
})
|
|
18105
|
+
]
|
|
18089
18106
|
}),
|
|
18090
|
-
/*#__PURE__*/ jsx_runtime_jsx("
|
|
18091
|
-
className:
|
|
18092
|
-
children:
|
|
18093
|
-
className: "size-5 text-background-containers"
|
|
18094
|
-
}) : /*#__PURE__*/ jsx_runtime_jsx(close_Close, {
|
|
18095
|
-
className: "size-5 text-background-containers"
|
|
18096
|
-
})
|
|
18107
|
+
/*#__PURE__*/ jsx_runtime_jsx("figcaption", {
|
|
18108
|
+
className: "w-[90%] break-words text-xs font-medium leading-[1.6] tracking-[0.02em] text-text-base",
|
|
18109
|
+
children: label
|
|
18097
18110
|
})
|
|
18098
18111
|
]
|
|
18099
18112
|
});
|
|
@@ -18518,6 +18531,17 @@ function Vizbl({ className, ...props }) {
|
|
|
18518
18531
|
]
|
|
18519
18532
|
});
|
|
18520
18533
|
}
|
|
18534
|
+
const DEFAULT_LEGAL_LINKS = {
|
|
18535
|
+
privacy: 'https://vizbl.com/legal/privacy-policy',
|
|
18536
|
+
terms: 'https://vizbl.com/legal/terms-of-use'
|
|
18537
|
+
};
|
|
18538
|
+
const RUSSIAN_LEGAL_LINKS = {
|
|
18539
|
+
privacy: 'https://arizo.ru/privacy-policy/',
|
|
18540
|
+
terms: 'https://arizo.ru/terms-of-use/'
|
|
18541
|
+
};
|
|
18542
|
+
function getLegalLinks(language) {
|
|
18543
|
+
return language?.startsWith('ru') ? RUSSIAN_LEGAL_LINKS : DEFAULT_LEGAL_LINKS;
|
|
18544
|
+
}
|
|
18521
18545
|
import bag_bad_cropped_namespaceObject from "./static/image/bag-bad-cropped.webp";
|
|
18522
18546
|
import bag_bad_hands_full_namespaceObject from "./static/image/bag-bad-hands-full.webp";
|
|
18523
18547
|
import bag_good_angle_namespaceObject from "./static/image/bag-good-angle.webp";
|
|
@@ -19342,7 +19366,8 @@ function ActionStack({ children, className }) {
|
|
|
19342
19366
|
});
|
|
19343
19367
|
}
|
|
19344
19368
|
function TermsCopy({ className }) {
|
|
19345
|
-
const { t } = useTranslation();
|
|
19369
|
+
const { i18n, t } = useTranslation();
|
|
19370
|
+
const legalLinks = getLegalLinks(i18n.resolvedLanguage ?? i18n.language);
|
|
19346
19371
|
return /*#__PURE__*/ jsxs("p", {
|
|
19347
19372
|
className: utils_cn('pt-1 text-center text-xs font-medium text-text-base', className),
|
|
19348
19373
|
children: [
|
|
@@ -19350,7 +19375,7 @@ function TermsCopy({ className }) {
|
|
|
19350
19375
|
' ',
|
|
19351
19376
|
/*#__PURE__*/ jsx_runtime_jsx("a", {
|
|
19352
19377
|
className: "underline underline-offset-2",
|
|
19353
|
-
href:
|
|
19378
|
+
href: legalLinks.terms,
|
|
19354
19379
|
rel: "noopener noreferrer",
|
|
19355
19380
|
target: "_blank",
|
|
19356
19381
|
children: t('termsLink')
|
|
@@ -19360,7 +19385,7 @@ function TermsCopy({ className }) {
|
|
|
19360
19385
|
' ',
|
|
19361
19386
|
/*#__PURE__*/ jsx_runtime_jsx("a", {
|
|
19362
19387
|
className: "underline underline-offset-2",
|
|
19363
|
-
href:
|
|
19388
|
+
href: legalLinks.privacy,
|
|
19364
19389
|
rel: "noopener noreferrer",
|
|
19365
19390
|
target: "_blank",
|
|
19366
19391
|
children: t('privacyLink')
|