@nyris/nyris-webapp 0.3.50 → 0.3.52
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/README.md +18 -92
- package/build/asset-manifest.json +90 -69
- package/build/index.html +1 -1
- package/build/js/settings.example.js +7 -0
- package/build/static/css/main.aa443e67.css +2 -0
- package/build/static/css/main.aa443e67.css.map +1 -0
- package/build/static/js/main.e023bcc5.js +3 -0
- package/build/static/js/main.e023bcc5.js.LICENSE.txt +268 -0
- package/build/static/js/main.e023bcc5.js.map +1 -0
- package/build/static/media/{Union.2545c072.svg → Union.dce5234bc686d28b45df0a5aea6ef6d1.svg} +1 -1
- package/package.json +47 -74
- package/public/js/settings.example.js +7 -0
- package/src/Store/Store.ts +6 -0
- package/src/common/assets/icons/Union.svg +1 -1
- package/src/components/AppMobile.tsx +16 -11
- package/src/components/CadenasWebViewer.tsx +2 -3
- package/src/components/DragDropFile.tsx +35 -32
- package/src/components/FilterComponent.tsx +4 -6
- package/src/components/FooterMobile.tsx +16 -13
- package/src/components/Header.tsx +3 -3
- package/src/components/HeaderMobile.tsx +42 -43
- package/src/components/ImageCaptureHelpModal.tsx +13 -10
- package/src/components/ImagePreviewMobile.tsx +24 -23
- package/src/components/Inquiry/InquiryBanner.tsx +13 -14
- package/src/components/Inquiry/InquiryModal.tsx +1 -1
- package/src/components/Layout.tsx +11 -6
- package/src/components/Loading.tsx +2 -3
- package/src/components/PanelResult/PostFilter.tsx +9 -9
- package/src/components/PanelResult/PostFilterAlgolia.tsx +9 -9
- package/src/components/PanelResult/expandable-panel.tsx +3 -3
- package/src/components/ProductAttribute.tsx +26 -19
- package/src/components/ProductDetailView.tsx +80 -80
- package/src/components/ProductList/index.tsx +6 -7
- package/src/components/SelectedPostFilter.tsx +2 -3
- package/src/components/ShareModal.tsx +20 -21
- package/src/components/SidePanel.tsx +18 -18
- package/src/components/carousel/ImagePreviewCarousel.tsx +7 -3
- package/src/components/default-select.tsx +5 -7
- package/src/components/drawer/cameraCustom.tsx +45 -41
- package/src/components/input/inputSearch.tsx +48 -42
- package/src/components/pre-filter/index.tsx +56 -52
- package/src/components/results/ItemResult.tsx +123 -96
- package/src/components/rfq/RfqBanner.tsx +13 -14
- package/src/components/rfq/RfqModal.tsx +1 -1
- package/src/index.tsx +20 -21
- package/src/page/landingPage/AppMD.tsx +8 -9
- package/src/page/landingPage/AppMobile.tsx +2 -3
- package/src/page/landingPage/common.scss +2 -4
- package/src/page/result/index.tsx +92 -75
- package/src/translations.ts +2 -0
- package/src/types.ts +8 -0
- package/tsconfig.json +11 -5
- package/api-mocks/feedback/v1/OPTIONS.mock +0 -6
- package/api-mocks/feedback/v1/POST.mock +0 -4
- package/api-mocks/find/v1/OPTIONS.mock +0 -6
- package/api-mocks/find/v1/POST.mock +0 -7
- package/api-mocks/find/v1/regions/OPTIONS.mock +0 -6
- package/api-mocks/find/v1/regions/POST.mock +0 -6
- package/build/precache-manifest.94e48d131d31de9b354f61c68a3ed830.js +0 -366
- package/build/service-worker.js +0 -39
- package/build/static/css/2.27ad1145.chunk.css +0 -2
- package/build/static/css/2.27ad1145.chunk.css.map +0 -1
- package/build/static/css/main.24b5a712.chunk.css +0 -2
- package/build/static/css/main.24b5a712.chunk.css.map +0 -1
- package/build/static/js/2.3399db0d.chunk.js +0 -3
- package/build/static/js/2.3399db0d.chunk.js.LICENSE.txt +0 -275
- package/build/static/js/2.3399db0d.chunk.js.map +0 -1
- package/build/static/js/main.b75d8ff6.chunk.js +0 -3
- package/build/static/js/main.b75d8ff6.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/main.b75d8ff6.chunk.js.map +0 -1
- package/build/static/js/runtime-main.1ff80965.js +0 -2
- package/build/static/js/runtime-main.1ff80965.js.map +0 -1
- package/src/components/Panigation/Pagination.tsx +0 -135
- package/src/components/results/ItemResult.test.tsx +0 -0
- package/src/helpers/CommonHelper.test.ts +0 -0
- package/src/serviceWorker.ts +0 -143
- /package/build/static/media/{3d.24adb2c2.svg → 3d.a7aa94395eaef439de4bb07d24f56e21.svg} +0 -0
- /package/build/static/media/{Fill.619a9d98.svg → Fill.004d04ac1ba9c868101ab485bcfd0b0e.svg} +0 -0
- /package/build/static/media/{IconUploadDownward.6b47ab39.svg → IconUploadDownward.ed1260bef14fbf9352364ad0f08a416e.svg} +0 -0
- /package/build/static/media/{SourceSans3-Bold.a923b66a.ttf → SourceSans3-Bold.17e068739e42bdb30d1c.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Light.d1772158.ttf → SourceSans3-Light.37264fa35ee0d5f209ea.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Medium.fda30e61.ttf → SourceSans3-Medium.c82b4c53fc5d38ef5784.ttf} +0 -0
- /package/build/static/media/{SourceSans3-Regular.04f1a4f0.ttf → SourceSans3-Regular.c69f9658f16351f79f33.ttf} +0 -0
- /package/build/static/media/{SourceSans3-SemiBold.cf5be839.ttf → SourceSans3-SemiBold.5ad6683a8a06e3ccea94.ttf} +0 -0
- /package/build/static/media/{add.ba46a4bf.svg → add.2b72cedb98c4c89c954266d2356c166c.svg} +0 -0
- /package/build/static/media/{arrow_down.c1b611db.svg → arrow_down.f417689ce292978a8292a7f00407fdd5.svg} +0 -0
- /package/build/static/media/{arrow_left.fd9d4390.svg → arrow_left.73d03a534eaf9b99ab196e0fb67da602.svg} +0 -0
- /package/build/static/media/{arrow_right.c6fdab0b.svg → arrow_right.59a4594a3a1657037537dbae1eee0251.svg} +0 -0
- /package/build/static/media/{arrow_up.fcd6b144.svg → arrow_up.85dbe70bc51ec32c8894a06499330f14.svg} +0 -0
- /package/build/static/media/{avatar.4c5346ed.svg → avatar.43b4f53e7174b4cfd59c51b7acf6236b.svg} +0 -0
- /package/build/static/media/{bgDragmobile.e4913a92.svg → bgDragmobile.487091d95d6abb2a2711.svg} +0 -0
- /package/build/static/media/{call.c3c23966.svg → call.91e7bfc7a94979c6981988194b45850c.svg} +0 -0
- /package/build/static/media/{camera.ae3f4f51.svg → camera.7fc9fe03d10f926524c9b436720371c6.svg} +0 -0
- /package/build/static/media/{close.07dcb75c.svg → close.feb72bdc7227b9333f9528e260dd1217.svg} +0 -0
- /package/build/static/media/{download.d6432d26.svg → download.8007f7c72e2080a9ffa96fa63d480dcf.svg} +0 -0
- /package/build/static/media/{email_share.92bbfb8b.svg → email_share.0b8aeb4edc7c53e944b9c403ec77df2e.svg} +0 -0
- /package/build/static/media/{error.48b946a9.svg → error.560997da69fcc36e10dafe36df4af593.svg} +0 -0
- /package/build/static/media/{filter.bc412f08.svg → filter.9fdd64df67735e0fbf0dd7d1df32921c.svg} +0 -0
- /package/build/static/media/{filter_settings.fa0682a5.svg → filter_settings.f93788883c7fbbcd3ae194e45294d0de.svg} +0 -0
- /package/build/static/media/{home.defd14bf.svg → home.9ffb65a9c0be8fc5a502ba05cf5f719c.svg} +0 -0
- /package/build/static/media/{ic_cam.5318e2d0.svg → ic_cam.659852ba686874f710cc.svg} +0 -0
- /package/build/static/media/{ic_close_feedback.f0834c16.svg → ic_close_feedback.f0ab3c1557a131281039.svg} +0 -0
- /package/build/static/media/{ic_shopNow.0348013a.svg → ic_shopNow.71d2c270d716e3774615.svg} +0 -0
- /package/build/static/media/{ic_shopNowLight.d8eadc1e.svg → ic_shopNowLight.628bb04870f5af9a524f.svg} +0 -0
- /package/build/static/media/{icon_camera_mobile.4d7a272f.svg → icon_camera_mobile.6772053c4dfef487255649d2a05cc9d4.svg} +0 -0
- /package/build/static/media/{icon_dislike.0533c64a.svg → icon_dislike.cab8f1f21bc5222aba2d3ca689e4f392.svg} +0 -0
- /package/build/static/media/{icon_email.71b21005.svg → icon_email.f22810a3dd1b4e6853c68c134ee043b3.svg} +0 -0
- /package/build/static/media/{icon_like.80c66e3a.svg → icon_like.049f5c42107aa03b8ebae58cc8c088ca.svg} +0 -0
- /package/build/static/media/{icon_search.373c3cc4.svg → icon_search.cc17077df07fb2b82c0d58f9bddc7974.svg} +0 -0
- /package/build/static/media/{icon_search_image2.4c4af888.svg → icon_search_image2.4f4458c1e16dc5092f2367003d3aa1e4.svg} +0 -0
- /package/build/static/media/{img-1-1.6144e5f9.png → img-1-1.130fb8d0203452fee547.png} +0 -0
- /package/build/static/media/{img-1-2.ad943f0f.png → img-1-2.c512de6393df34bd1e61.png} +0 -0
- /package/build/static/media/{img2-1.a87c79c7.png → img2-1.2adc75df85eab5c127f9.png} +0 -0
- /package/build/static/media/{img2-2.39c5b73f.png → img2-2.c68532d4f95dbc63c69a.png} +0 -0
- /package/build/static/media/{img3-1.443b0c3a.png → img3-1.6eb26a22e6ea83629d27.png} +0 -0
- /package/build/static/media/{img3-2.37db7999.png → img3-2.39ae54b4032d52c79a3a.png} +0 -0
- /package/build/static/media/{img4-1.9c34c158.png → img4-1.a7594bfa47b01d2a0890.png} +0 -0
- /package/build/static/media/{img4-2.9d280a04.png → img4-2.24c0cbafe1a7ad7c24b5.png} +0 -0
- /package/build/static/media/{img5-1.b61dbd4d.png → img5-1.e6865b52df58608fd968.png} +0 -0
- /package/build/static/media/{img5-2.1c77c093.png → img5-2.ae59543efec34daf3554.png} +0 -0
- /package/build/static/media/{img6-1.8b03dd21.png → img6-1.c8bb209cdce72c2d8033.png} +0 -0
- /package/build/static/media/{img6-2.1e3e7fed.png → img6-2.b442f90b3e503ac33510.png} +0 -0
- /package/build/static/media/{info-tooltip.b98e8a9c.svg → info-tooltip.38185b73956d2d230d38d8254bb7fd91.svg} +0 -0
- /package/build/static/media/{logout.07b9ef7f.svg → logout.b544fcd2969edf431a1e998333119834.svg} +0 -0
- /package/build/static/media/{minus.3fce6c0a.svg → minus.dee9c571642279cf2af9ed09108cadd8.svg} +0 -0
- /package/build/static/media/{no-image.04b676b3.svg → no-image.0792bd463c7917d0b67f4a55a9bc55d9.svg} +0 -0
- /package/build/static/media/{powered_by_nyris.e6766baf.svg → powered_by_nyris.218facc4a2986cc09b183eeeb205b0c2.svg} +0 -0
- /package/build/static/media/{powered_by_nyris_colored.08d00bae.svg → powered_by_nyris_colored.7177945f25f07f85f8f57e02e15c0878.svg} +0 -0
- /package/build/static/media/{reverse_camera.28c80509.svg → reverse_camera.cee0200b151941cc83c182167a85d667.svg} +0 -0
- /package/build/static/media/{roboto-latin-100.5cb7edfc.woff → roboto-latin-100.a45108d3b34af91f9113.woff} +0 -0
- /package/build/static/media/{roboto-latin-100.7370c367.woff2 → roboto-latin-100.c2aa4ab115bf9c6057cb.woff2} +0 -0
- /package/build/static/media/{roboto-latin-100italic.f9e8e590.woff → roboto-latin-100italic.451d4e559d6f57cdf6a1.woff} +0 -0
- /package/build/static/media/{roboto-latin-100italic.f8b1df51.woff2 → roboto-latin-100italic.7f839a8652da29745ce4.woff2} +0 -0
- /package/build/static/media/{roboto-latin-300.ef7c6637.woff2 → roboto-latin-300.37a7069dc30fc663c878.woff2} +0 -0
- /package/build/static/media/{roboto-latin-300.b00849e0.woff → roboto-latin-300.865f928cbabcc9f8f2b5.woff} +0 -0
- /package/build/static/media/{roboto-latin-300italic.4df32891.woff → roboto-latin-300italic.bd5b7a13f2c52b531a2a.woff} +0 -0
- /package/build/static/media/{roboto-latin-300italic.14286f3b.woff2 → roboto-latin-300italic.c64e7e354c88e613c77c.woff2} +0 -0
- /package/build/static/media/{roboto-latin-400.479970ff.woff2 → roboto-latin-400.176f8f5bd5f02b3abfcf.woff2} +0 -0
- /package/build/static/media/{roboto-latin-400.60fa3c06.woff → roboto-latin-400.49ae34d4cc6b98c00c69.woff} +0 -0
- /package/build/static/media/{roboto-latin-400italic.fe65b833.woff → roboto-latin-400italic.b1d9d9904bfca8802a63.woff} +0 -0
- /package/build/static/media/{roboto-latin-400italic.51521a2a.woff2 → roboto-latin-400italic.d022bc70dc1bf7b3425d.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500.87284894.woff → roboto-latin-500.cea99d3e3e13a3a599a0.woff} +0 -0
- /package/build/static/media/{roboto-latin-500.020c97dc.woff2 → roboto-latin-500.f5b74d7ffcdf85b9dd60.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500italic.db4a2a23.woff2 → roboto-latin-500italic.0d8bb5b3ee5f5dac9e44.woff2} +0 -0
- /package/build/static/media/{roboto-latin-500italic.288ad9c6.woff → roboto-latin-500italic.18d00f739ff1e1c52db1.woff} +0 -0
- /package/build/static/media/{roboto-latin-700.adcde98f.woff → roboto-latin-700.2267169ee7270a22a963.woff} +0 -0
- /package/build/static/media/{roboto-latin-700.2735a3a6.woff2 → roboto-latin-700.c18ee39fb002ad58b6dc.woff2} +0 -0
- /package/build/static/media/{roboto-latin-700italic.da0e7178.woff2 → roboto-latin-700italic.7d8125ff7f707231fd89.woff2} +0 -0
- /package/build/static/media/{roboto-latin-700italic.81f57861.woff → roboto-latin-700italic.9360531f9bb817f917f0.woff} +0 -0
- /package/build/static/media/{roboto-latin-900.9b3766ef.woff2 → roboto-latin-900.870c8c1486f76054301a.woff2} +0 -0
- /package/build/static/media/{roboto-latin-900.bb1e4dc6.woff → roboto-latin-900.bac8362e7a6ea60b6983.woff} +0 -0
- /package/build/static/media/{roboto-latin-900italic.28f91510.woff → roboto-latin-900italic.c20d916c1a1b094c1cec.woff} +0 -0
- /package/build/static/media/{roboto-latin-900italic.ebf6d164.woff2 → roboto-latin-900italic.cb5ad999740e9d8a8bd1.woff2} +0 -0
- /package/build/static/media/{sectionTransBack.6cee2e36.svg → sectionTransBack.20491b21c659cd29499a.svg} +0 -0
- /package/build/static/media/{sectionTransTop.3dcf290f.svg → sectionTransTop.3a1dd8204a4137b92722.svg} +0 -0
- /package/build/static/media/{settings.e3c8138b.svg → settings.4b954549320dc34e0d000afd236cff2e.svg} +0 -0
- /package/build/static/media/{take_photo.76423216.svg → take_photo.42347c97c863fc8ec1afa36a56eb9ccb.svg} +0 -0
- /package/build/static/media/{trash.1624780d.svg → trash.ea9fa760f600fc578097ef0c01d5845f.svg} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Typography } from '@material-ui/core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
@@ -6,6 +6,8 @@ interface Props {
|
|
|
6
6
|
value: any;
|
|
7
7
|
padding?: string;
|
|
8
8
|
width?: any;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
isTitleVisible?: boolean;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
function ProductAttribute(props: Props) {
|
|
@@ -14,33 +16,38 @@ function ProductAttribute(props: Props) {
|
|
|
14
16
|
value,
|
|
15
17
|
padding = props.padding || '4px 16px',
|
|
16
18
|
width = props.width || 'fit-content',
|
|
19
|
+
isTitleVisible = typeof props.isTitleVisible === 'boolean' ? props.isTitleVisible : true,
|
|
17
20
|
} = props;
|
|
18
21
|
|
|
19
22
|
return (
|
|
20
23
|
<>
|
|
21
24
|
{title && (
|
|
22
|
-
<
|
|
23
|
-
display="flex"
|
|
24
|
-
flexDirection={'column'}
|
|
25
|
-
borderRadius={2}
|
|
26
|
-
width={width}
|
|
25
|
+
<div
|
|
27
26
|
style={{
|
|
28
|
-
|
|
27
|
+
display: 'flex',
|
|
28
|
+
flexDirection: 'column',
|
|
29
|
+
borderRadius: 2,
|
|
30
|
+
width: width,
|
|
31
|
+
backgroundColor: props.backgroundColor || '#E0E0E0',
|
|
29
32
|
padding: padding,
|
|
30
33
|
flexGrow: 1,
|
|
31
34
|
}}
|
|
32
35
|
>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
{isTitleVisible ? (
|
|
37
|
+
<Typography
|
|
38
|
+
style={{
|
|
39
|
+
color: '#2B2C46',
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
textOverflow: 'ellipsis',
|
|
42
|
+
whiteSpace: 'nowrap',
|
|
43
|
+
}}
|
|
44
|
+
className="text-f12 fw-700"
|
|
45
|
+
>
|
|
46
|
+
{title}
|
|
47
|
+
</Typography>
|
|
48
|
+
) : (
|
|
49
|
+
''
|
|
50
|
+
)}
|
|
44
51
|
<Typography
|
|
45
52
|
style={{
|
|
46
53
|
color: '#2B2C46',
|
|
@@ -52,7 +59,7 @@ function ProductAttribute(props: Props) {
|
|
|
52
59
|
>
|
|
53
60
|
{value}
|
|
54
61
|
</Typography>
|
|
55
|
-
</
|
|
62
|
+
</div>
|
|
56
63
|
)}
|
|
57
64
|
</>
|
|
58
65
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Button, Collapse, Grid, Typography } from '@material-ui/core';
|
|
3
3
|
import CloseOutlinedIcon from '@material-ui/icons/CloseOutlined';
|
|
4
|
-
import IconOpenLink from 'common/assets/icons/Union.svg';
|
|
4
|
+
import { ReactComponent as IconOpenLink } from 'common/assets/icons/Union.svg';
|
|
5
5
|
import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown';
|
|
6
6
|
import { useMediaQuery } from 'react-responsive';
|
|
7
7
|
import { ImagePreviewCarousel } from './carousel/ImagePreviewCarousel';
|
|
@@ -9,8 +9,6 @@ import { ReactComponent as IconSearchImage } from 'common/assets/icons/icon_sear
|
|
|
9
9
|
import { ReactComponent as IconShare } from 'common/assets/icons/Fill.svg';
|
|
10
10
|
import { ReactComponent as IconDisLike } from 'common/assets/icons/icon_dislike.svg';
|
|
11
11
|
import { ReactComponent as IconLike } from 'common/assets/icons/icon_like.svg';
|
|
12
|
-
import { ReactComponent as IconSettings } from 'common/assets/icons/settings.svg';
|
|
13
|
-
|
|
14
12
|
import { AppState } from 'types';
|
|
15
13
|
import { useAppSelector } from 'Store/Store';
|
|
16
14
|
import { prepareImageList } from '../helpers/CommonHelper';
|
|
@@ -23,6 +21,7 @@ import ProductAttribute from './ProductAttribute';
|
|
|
23
21
|
import CadenasWebViewer from './CadenasWebViewer';
|
|
24
22
|
import { makeStyles } from '@material-ui/core/styles';
|
|
25
23
|
import { get, isUndefined } from 'lodash';
|
|
24
|
+
import { ReactComponent as IconSettings } from 'common/assets/icons/settings.svg';
|
|
26
25
|
|
|
27
26
|
const useStyles = makeStyles(theme => ({
|
|
28
27
|
buttonStyle3D: {
|
|
@@ -130,16 +129,16 @@ function ProductDetailView(props: Props) {
|
|
|
130
129
|
}, [dataItem, settings.field.productDetails]);
|
|
131
130
|
const manufacturerNumber = get(dataItem, settings.field.manufacturerNumber);
|
|
132
131
|
return (
|
|
133
|
-
<
|
|
132
|
+
<div
|
|
134
133
|
className="box-modal-default"
|
|
135
|
-
borderRadius={12}
|
|
136
134
|
style={{
|
|
137
135
|
margin: isMobile ? 0 : '',
|
|
138
136
|
width: '600px',
|
|
139
137
|
backgroundColor: '#fff',
|
|
138
|
+
borderRadius: 12,
|
|
140
139
|
}}
|
|
141
140
|
>
|
|
142
|
-
<
|
|
141
|
+
<div
|
|
143
142
|
className="ml-auto"
|
|
144
143
|
style={{
|
|
145
144
|
width: 'fit-content',
|
|
@@ -153,7 +152,7 @@ function ProductDetailView(props: Props) {
|
|
|
153
152
|
<Button style={{ padding: 0 }} onClick={() => handleClose?.()}>
|
|
154
153
|
<CloseOutlinedIcon style={{ fontSize: 24, color: '#55566B' }} />
|
|
155
154
|
</Button>
|
|
156
|
-
</
|
|
155
|
+
</div>
|
|
157
156
|
|
|
158
157
|
<div
|
|
159
158
|
style={{
|
|
@@ -168,7 +167,7 @@ function ProductDetailView(props: Props) {
|
|
|
168
167
|
setStatus3dView={setStatus3dView}
|
|
169
168
|
/>
|
|
170
169
|
)}
|
|
171
|
-
<
|
|
170
|
+
<div
|
|
172
171
|
className="box-carosel"
|
|
173
172
|
style={{
|
|
174
173
|
...(dataImageCarousel.length === 0
|
|
@@ -234,7 +233,7 @@ function ProductDetailView(props: Props) {
|
|
|
234
233
|
/>
|
|
235
234
|
</div>
|
|
236
235
|
)}
|
|
237
|
-
</
|
|
236
|
+
</div>
|
|
238
237
|
|
|
239
238
|
<div
|
|
240
239
|
className={classes.buttonStyle3D}
|
|
@@ -247,7 +246,7 @@ function ProductDetailView(props: Props) {
|
|
|
247
246
|
{!is3dView &&
|
|
248
247
|
status3dView !== 'not-found' &&
|
|
249
248
|
settings.cadenas?.cadenas3dWebView && (
|
|
250
|
-
<
|
|
249
|
+
<div
|
|
251
250
|
style={{
|
|
252
251
|
background: '#E9E9EC',
|
|
253
252
|
width: '32px',
|
|
@@ -263,10 +262,10 @@ function ProductDetailView(props: Props) {
|
|
|
263
262
|
}}
|
|
264
263
|
>
|
|
265
264
|
<Box3dIcon width={16} height={16} color={'#AAABB5'} />
|
|
266
|
-
</
|
|
265
|
+
</div>
|
|
267
266
|
)}
|
|
268
267
|
{is3dView && (
|
|
269
|
-
<
|
|
268
|
+
<div
|
|
270
269
|
style={{
|
|
271
270
|
background: '#2B2C46',
|
|
272
271
|
width: '32px',
|
|
@@ -282,12 +281,12 @@ function ProductDetailView(props: Props) {
|
|
|
282
281
|
}}
|
|
283
282
|
>
|
|
284
283
|
<CloseIcon width={16} height={16} color={'#FFF'} />
|
|
285
|
-
</
|
|
284
|
+
</div>
|
|
286
285
|
)}
|
|
287
286
|
</div>
|
|
288
287
|
</div>
|
|
289
288
|
|
|
290
|
-
<
|
|
289
|
+
<div
|
|
291
290
|
style={{
|
|
292
291
|
overflowY: 'auto',
|
|
293
292
|
maxHeight: '90svh',
|
|
@@ -298,33 +297,33 @@ function ProductDetailView(props: Props) {
|
|
|
298
297
|
marginTop: '6px',
|
|
299
298
|
}}
|
|
300
299
|
>
|
|
301
|
-
<
|
|
300
|
+
<div
|
|
302
301
|
className="box-content"
|
|
303
|
-
display={'flex'}
|
|
304
302
|
style={{
|
|
303
|
+
display: 'flex',
|
|
305
304
|
marginTop: '16px',
|
|
306
305
|
flexDirection: 'column',
|
|
307
306
|
backgroundColor: '#F3F3F5',
|
|
308
307
|
}}
|
|
309
308
|
>
|
|
310
|
-
<
|
|
309
|
+
<div className="box-top">
|
|
311
310
|
{settings.warehouseVariant && (
|
|
312
|
-
<
|
|
313
|
-
display="flex"
|
|
314
|
-
justifyContent={'space-between'}
|
|
315
|
-
flexDirection={'row'}
|
|
311
|
+
<div
|
|
316
312
|
style={{
|
|
317
|
-
|
|
313
|
+
display: 'flex',
|
|
314
|
+
justifyContent: 'space-between',
|
|
315
|
+
flexDirection: 'row',
|
|
316
|
+
color: settings.theme.mainTextColor ||'#2B2C46',
|
|
318
317
|
marginBottom: 10,
|
|
319
318
|
paddingLeft: 16,
|
|
320
319
|
paddingRight: 16,
|
|
320
|
+
gridGap: 8,
|
|
321
321
|
}}
|
|
322
|
-
gridGap={8}
|
|
323
322
|
>
|
|
324
323
|
<Typography
|
|
325
324
|
className="text-f12 max-line-1 fw-400"
|
|
326
325
|
style={{
|
|
327
|
-
color: '#2B2C46',
|
|
326
|
+
color: settings.theme.mainTextColor || '#2B2C46',
|
|
328
327
|
}}
|
|
329
328
|
>
|
|
330
329
|
{sku}
|
|
@@ -337,7 +336,7 @@ function ProductDetailView(props: Props) {
|
|
|
337
336
|
<Typography
|
|
338
337
|
className="text-f12 max-line-1 fw-400"
|
|
339
338
|
style={{
|
|
340
|
-
color: '#2B2C46',
|
|
339
|
+
color: settings.theme.mainTextColor || '#2B2C46',
|
|
341
340
|
}}
|
|
342
341
|
>
|
|
343
342
|
<span
|
|
@@ -355,7 +354,7 @@ function ProductDetailView(props: Props) {
|
|
|
355
354
|
</span>
|
|
356
355
|
</Typography>
|
|
357
356
|
)}
|
|
358
|
-
</
|
|
357
|
+
</div>
|
|
359
358
|
)}
|
|
360
359
|
|
|
361
360
|
<Grid
|
|
@@ -363,17 +362,20 @@ function ProductDetailView(props: Props) {
|
|
|
363
362
|
justifyContent="space-between"
|
|
364
363
|
style={{ backgroundColor: '#F3F3F5' }}
|
|
365
364
|
>
|
|
366
|
-
<
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
365
|
+
<div
|
|
366
|
+
style={{
|
|
367
|
+
gap: 6,
|
|
368
|
+
display: 'flex',
|
|
369
|
+
flexDirection: 'row',
|
|
370
|
+
flexWrap: 'wrap',
|
|
371
|
+
width: '100%',
|
|
372
|
+
}}
|
|
372
373
|
>
|
|
373
374
|
{!settings.warehouseVariant && settings.CTAButtonText && (
|
|
374
375
|
<ProductAttribute
|
|
375
|
-
title={'
|
|
376
|
+
title={t('Product name')}
|
|
376
377
|
value={title}
|
|
378
|
+
backgroundColor={settings.theme.brandFieldBackground}
|
|
377
379
|
width={
|
|
378
380
|
settings.warehouseVariant
|
|
379
381
|
? { xs: '49%', md: 'fit-content' }
|
|
@@ -385,6 +387,7 @@ function ProductDetailView(props: Props) {
|
|
|
385
387
|
<ProductAttribute
|
|
386
388
|
title={settings.itemIdLabel || 'SKU'}
|
|
387
389
|
value={sku}
|
|
390
|
+
backgroundColor={''}
|
|
388
391
|
width={
|
|
389
392
|
settings.warehouseVariant
|
|
390
393
|
? { xs: '49%', md: 'fit-content' }
|
|
@@ -396,6 +399,7 @@ function ProductDetailView(props: Props) {
|
|
|
396
399
|
<ProductAttribute
|
|
397
400
|
title={t('Brand')}
|
|
398
401
|
value={brand || settings.brandName}
|
|
402
|
+
backgroundColor={settings.theme.brandFieldBackground}
|
|
399
403
|
width={
|
|
400
404
|
manufacturerNumber
|
|
401
405
|
? { xs: '49%', md: 'fit-content' }
|
|
@@ -446,7 +450,7 @@ function ProductDetailView(props: Props) {
|
|
|
446
450
|
)}
|
|
447
451
|
</>
|
|
448
452
|
)}
|
|
449
|
-
</
|
|
453
|
+
</div>
|
|
450
454
|
|
|
451
455
|
<Grid
|
|
452
456
|
item
|
|
@@ -456,19 +460,19 @@ function ProductDetailView(props: Props) {
|
|
|
456
460
|
}}
|
|
457
461
|
>
|
|
458
462
|
{settings.secondaryCTAButtonText && (
|
|
459
|
-
<
|
|
463
|
+
<div
|
|
460
464
|
style={{
|
|
461
|
-
background: '#2B2C46',
|
|
465
|
+
background: settings.theme.secondaryCTAButtonColor || '#2B2C46',
|
|
462
466
|
boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
463
467
|
borderRadius: 4,
|
|
464
468
|
marginTop: 8,
|
|
469
|
+
display: 'flex',
|
|
470
|
+
justifyContent: 'space-between',
|
|
471
|
+
alignItems: 'center',
|
|
465
472
|
}}
|
|
466
|
-
display={'flex'}
|
|
467
|
-
justifyContent={'space-between'}
|
|
468
|
-
alignItems={'center'}
|
|
469
473
|
className="btn-detail-item"
|
|
470
474
|
>
|
|
471
|
-
<
|
|
475
|
+
<div
|
|
472
476
|
style={{
|
|
473
477
|
display: 'flex',
|
|
474
478
|
justifyContent: 'space-between',
|
|
@@ -496,23 +500,23 @@ function ProductDetailView(props: Props) {
|
|
|
496
500
|
{settings.secondaryCTAButtonText}
|
|
497
501
|
</Typography>
|
|
498
502
|
{secondaryCTALink && <IconSettings color="white" />}
|
|
499
|
-
</
|
|
500
|
-
</
|
|
503
|
+
</div>
|
|
504
|
+
</div>
|
|
501
505
|
)}
|
|
502
506
|
|
|
503
|
-
<
|
|
507
|
+
<div
|
|
504
508
|
style={{
|
|
505
|
-
background: settings.theme?.primaryColor,
|
|
509
|
+
background: settings.theme?.CTAButtonColor || settings.theme?.primaryColor,
|
|
506
510
|
boxShadow: '0px 4px 4px rgba(0, 0, 0, 0.25)',
|
|
507
511
|
borderRadius: 4,
|
|
508
512
|
marginTop: 8,
|
|
513
|
+
display: 'flex',
|
|
514
|
+
justifyContent: 'space-between',
|
|
515
|
+
alignItems: 'center',
|
|
509
516
|
}}
|
|
510
|
-
display={'flex'}
|
|
511
|
-
justifyContent={'space-between'}
|
|
512
|
-
alignItems={'center'}
|
|
513
517
|
className="btn-detail-item"
|
|
514
518
|
>
|
|
515
|
-
<
|
|
519
|
+
<div
|
|
516
520
|
style={{
|
|
517
521
|
display: 'flex',
|
|
518
522
|
justifyContent: 'space-between',
|
|
@@ -529,9 +533,10 @@ function ProductDetailView(props: Props) {
|
|
|
529
533
|
}}
|
|
530
534
|
>
|
|
531
535
|
<Typography
|
|
532
|
-
className="text-f18 fw-700
|
|
536
|
+
className="text-f18 fw-700 max-line-2"
|
|
533
537
|
align="left"
|
|
534
538
|
style={{
|
|
539
|
+
color: settings.theme?.CTAButtonTextColor || '#FFFFFF',
|
|
535
540
|
letterSpacing: '0.55px',
|
|
536
541
|
maxWidth: '500px',
|
|
537
542
|
paddingRight: '4px',
|
|
@@ -542,22 +547,17 @@ function ProductDetailView(props: Props) {
|
|
|
542
547
|
: dataItem[settings.field.productName]}
|
|
543
548
|
</Typography>
|
|
544
549
|
{ctaLink && (
|
|
545
|
-
<
|
|
546
|
-
src={IconOpenLink}
|
|
547
|
-
alt=""
|
|
548
|
-
style={{ minWidth: 16, marginLeft: 5 }}
|
|
549
|
-
/>
|
|
550
|
+
<IconOpenLink fill={settings.theme?.CTAButtonTextColor || '#FFFFFF'} width={16} />
|
|
550
551
|
)}
|
|
551
|
-
</
|
|
552
|
-
</
|
|
553
|
-
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
554
|
{productDetails && (
|
|
555
|
-
<
|
|
555
|
+
<div className="w-100">
|
|
556
556
|
<Button
|
|
557
557
|
className="w-100 button-hover"
|
|
558
558
|
style={{
|
|
559
559
|
backgroundColor: '#F3F3F5',
|
|
560
|
-
color: '#2b2c46',
|
|
560
|
+
color: settings.theme.mainTextColor || '#2b2c46',
|
|
561
561
|
display: 'flex',
|
|
562
562
|
fontSize: 14,
|
|
563
563
|
justifyContent: 'space-between',
|
|
@@ -586,29 +586,29 @@ function ProductDetailView(props: Props) {
|
|
|
586
586
|
padding: 5,
|
|
587
587
|
paddingLeft: 15,
|
|
588
588
|
paddingRight: 15,
|
|
589
|
-
color: '#2b2c46',
|
|
589
|
+
color: settings.theme.mainTextColor || '#2b2c46',
|
|
590
590
|
}}
|
|
591
591
|
>
|
|
592
592
|
{productDetails}
|
|
593
593
|
</Typography>
|
|
594
594
|
</Collapse>
|
|
595
|
-
</
|
|
595
|
+
</div>
|
|
596
596
|
)}
|
|
597
597
|
</Grid>
|
|
598
598
|
</Grid>
|
|
599
|
-
</
|
|
599
|
+
</div>
|
|
600
600
|
|
|
601
601
|
{settings.showFeedbackAndShare && (
|
|
602
|
-
<
|
|
602
|
+
<div
|
|
603
603
|
className="box-bottom"
|
|
604
604
|
style={{
|
|
605
605
|
height: '48px',
|
|
606
606
|
padding: '0px 16px 0px 16px',
|
|
607
607
|
marginBottom: 10,
|
|
608
608
|
marginTop: 10,
|
|
609
|
+
display: 'flex',
|
|
610
|
+
justifyContent: 'center',
|
|
609
611
|
}}
|
|
610
|
-
display={'flex'}
|
|
611
|
-
justifyContent={'center'}
|
|
612
612
|
>
|
|
613
613
|
<Grid
|
|
614
614
|
container
|
|
@@ -618,7 +618,7 @@ function ProductDetailView(props: Props) {
|
|
|
618
618
|
alignItems="center"
|
|
619
619
|
>
|
|
620
620
|
<Grid item>
|
|
621
|
-
<
|
|
621
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
622
622
|
<Button
|
|
623
623
|
className="btn-item"
|
|
624
624
|
onClick={() => {
|
|
@@ -632,10 +632,10 @@ function ProductDetailView(props: Props) {
|
|
|
632
632
|
color={feedback === 'like' ? '#3E36DC' : '#000000'}
|
|
633
633
|
/>
|
|
634
634
|
</Button>
|
|
635
|
-
</
|
|
635
|
+
</div>
|
|
636
636
|
</Grid>
|
|
637
637
|
<Grid item>
|
|
638
|
-
<
|
|
638
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
639
639
|
<Button
|
|
640
640
|
className="btn-item"
|
|
641
641
|
onClick={() => {
|
|
@@ -649,24 +649,24 @@ function ProductDetailView(props: Props) {
|
|
|
649
649
|
color={feedback === 'dislike' ? '#CC1854' : '#000000'}
|
|
650
650
|
/>
|
|
651
651
|
</Button>
|
|
652
|
-
</
|
|
652
|
+
</div>
|
|
653
653
|
</Grid>
|
|
654
654
|
{settings.shareOption && (
|
|
655
655
|
<Grid item>
|
|
656
|
-
<
|
|
656
|
+
<div style={{ display: 'flex', alignItems: 'center' }}>
|
|
657
657
|
<Button
|
|
658
658
|
className="btn-item"
|
|
659
659
|
onClick={() => onHandlerModalShare()}
|
|
660
660
|
>
|
|
661
661
|
<IconShare width={24} height={24} color="#000000" />
|
|
662
662
|
</Button>
|
|
663
|
-
</
|
|
663
|
+
</div>
|
|
664
664
|
</Grid>
|
|
665
665
|
)}
|
|
666
666
|
{/* <Grid item>
|
|
667
|
-
<
|
|
667
|
+
<div display={'flex'} alignItems={'center'}>
|
|
668
668
|
<Button className="btn-item">
|
|
669
|
-
<
|
|
669
|
+
<div
|
|
670
670
|
className=""
|
|
671
671
|
display={'flex'}
|
|
672
672
|
justifyContent={'center'}
|
|
@@ -678,16 +678,16 @@ function ProductDetailView(props: Props) {
|
|
|
678
678
|
className="icon_support"
|
|
679
679
|
style={{ width: '30px' }}
|
|
680
680
|
/>
|
|
681
|
-
</
|
|
681
|
+
</div>
|
|
682
682
|
</Button>
|
|
683
|
-
</
|
|
683
|
+
</div>
|
|
684
684
|
</Grid> */}
|
|
685
685
|
</Grid>
|
|
686
|
-
</
|
|
686
|
+
</div>
|
|
687
687
|
)}
|
|
688
|
-
</
|
|
689
|
-
</
|
|
690
|
-
</
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
</div>
|
|
691
691
|
);
|
|
692
692
|
}
|
|
693
693
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Box } from '@material-ui/core';
|
|
2
1
|
import ItemResult from 'components/results/ItemResult';
|
|
3
2
|
import React, { memo, useMemo } from 'react';
|
|
4
3
|
import { useTranslation } from 'react-i18next';
|
|
@@ -42,9 +41,9 @@ function ProductListComponent({
|
|
|
42
41
|
!isSearchStalled
|
|
43
42
|
) {
|
|
44
43
|
return (
|
|
45
|
-
<
|
|
44
|
+
<div style={{ marginTop: '50px', width: '100%', textAlign: 'center' }}>
|
|
46
45
|
{t('Please upload an image or enter a keyword to search.')}
|
|
47
|
-
</
|
|
46
|
+
</div>
|
|
48
47
|
);
|
|
49
48
|
} else if (
|
|
50
49
|
productList.length === 0 &&
|
|
@@ -52,14 +51,14 @@ function ProductListComponent({
|
|
|
52
51
|
!isSearchStalled
|
|
53
52
|
) {
|
|
54
53
|
return (
|
|
55
|
-
<
|
|
54
|
+
<div style={{ marginTop: '50px', width: '100%', textAlign: 'center' }}>
|
|
56
55
|
{t('No products were found matching your search criteria.')}
|
|
57
|
-
</
|
|
56
|
+
</div>
|
|
58
57
|
);
|
|
59
58
|
}
|
|
60
59
|
return productList.map((hit: any, i: number) => {
|
|
61
60
|
return (
|
|
62
|
-
<
|
|
61
|
+
<div key={i} style={{ height: 'fit-content' }}>
|
|
63
62
|
<ItemResult
|
|
64
63
|
dataItem={hit}
|
|
65
64
|
indexItem={i}
|
|
@@ -81,7 +80,7 @@ function ProductListComponent({
|
|
|
81
80
|
hit['image(main_similarity)'] || hit['main_image_link']
|
|
82
81
|
}
|
|
83
82
|
/>
|
|
84
|
-
</
|
|
83
|
+
</div>
|
|
85
84
|
);
|
|
86
85
|
});
|
|
87
86
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -7,7 +7,6 @@ import { useAppDispatch, useAppSelector } from 'Store/Store';
|
|
|
7
7
|
import { useFilter } from 'hooks/useFilter';
|
|
8
8
|
import { get } from 'lodash';
|
|
9
9
|
import { clearPostFilter, setPostFilter } from 'Store/search/Search';
|
|
10
|
-
import { Box } from '@material-ui/core';
|
|
11
10
|
|
|
12
11
|
export type CurrentRefinementsProps = {
|
|
13
12
|
className?: string;
|
|
@@ -46,7 +45,7 @@ export function SelectedPostFilter({ className }: CurrentRefinementsProps) {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
return (
|
|
49
|
-
<
|
|
48
|
+
<div className="wrap-box-refinements">
|
|
50
49
|
<div style={{ display: 'flex', flexFlow: 'wrap', columnGap: '8px' }}>
|
|
51
50
|
{selectedFilters.map(filter => {
|
|
52
51
|
return (
|
|
@@ -98,6 +97,6 @@ export function SelectedPostFilter({ className }: CurrentRefinementsProps) {
|
|
|
98
97
|
</div>
|
|
99
98
|
</div>
|
|
100
99
|
</div>
|
|
101
|
-
</
|
|
100
|
+
</div>
|
|
102
101
|
);
|
|
103
102
|
}
|