@crystaldesign/diva-seller 24.15.0-beta.37 → 24.15.0-beta.38
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/build/esm/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import CardMedia from '@mui/material/CardMedia';
|
|
|
17
17
|
import Typography$1 from '@mui/material/Typography';
|
|
18
18
|
import createStyles from '@mui/styles/createStyles';
|
|
19
19
|
import makeStyles from '@mui/styles/makeStyles';
|
|
20
|
-
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1, Tooltip, Stack, Paper as Paper$1, IconButton as IconButton$1, Checkbox as Checkbox$1, Divider as Divider$1, Alert,
|
|
20
|
+
import { styled, Typography, Card as Card$1, CardActionArea as CardActionArea$1, CardMedia as CardMedia$1, Button as Button$1, TextField, ButtonGroup as ButtonGroup$1, Tooltip, Stack, Paper as Paper$1, IconButton as IconButton$1, FormControlLabel as FormControlLabel$1, Checkbox as Checkbox$1, Divider as Divider$1, Alert, AlertTitle, Link, InputBase, Accordion, AccordionSummary, Tabs, Tab, AccordionDetails, Table as Table$1, TableBody as TableBody$1, TableRow as TableRow$1, TableCell as TableCell$1, CardHeader, CardContent, FormControl as FormControl$1, FormHelperText, TextareaAutosize, Box as Box$1, Select as Select$1, MenuItem as MenuItem$1, ListItemButton, ListItemIcon } from '@mui/material';
|
|
21
21
|
import { Histogram, useFilterState, FilterComponent, AnalyticsComponent } from '@crystaldesign/analytics';
|
|
22
22
|
import Button from '@mui/material/Button';
|
|
23
23
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
@@ -57,11 +57,10 @@ import Input from '@mui/material/Input';
|
|
|
57
57
|
import OrderEntry, { apiSaveRenderJobs, VariantSelector } from '@crystaldesign/order-entry';
|
|
58
58
|
import _toArray from '@babel/runtime/helpers/toArray';
|
|
59
59
|
import Box from '@mui/material/Box';
|
|
60
|
-
import
|
|
60
|
+
import StarBorderIcon from '@mui/icons-material/StarBorder';
|
|
61
61
|
import EditIcon from '@mui/icons-material/Edit';
|
|
62
62
|
import Alert$1 from '@mui/material/Alert';
|
|
63
|
-
import AlertTitle from '@mui/material/AlertTitle';
|
|
64
|
-
import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
|
|
63
|
+
import AlertTitle$1 from '@mui/material/AlertTitle';
|
|
65
64
|
import classnames from 'classnames';
|
|
66
65
|
import { InfoRounded, Remove, Add, Delete } from '@mui/icons-material';
|
|
67
66
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
@@ -5891,13 +5890,14 @@ var productDetailsContainer = "productDetailsContainer-5c-V9";
|
|
|
5891
5890
|
var productDetailRow = "productDetailRow-9KtDG";
|
|
5892
5891
|
var productDetailLabel = "productDetailLabel-t7Mn7";
|
|
5893
5892
|
var favoriteContainer = "favoriteContainer-ka7lC";
|
|
5893
|
+
var favoriteCheckbox = "favoriteCheckbox-JYnH-";
|
|
5894
5894
|
var actionButtonContainer = "actionButtonContainer-WfYfD";
|
|
5895
5895
|
var productDetailsPaper = "productDetailsPaper-VsWfW";
|
|
5896
5896
|
var productDetailText = "productDetailText-wkk6U";
|
|
5897
5897
|
var productDetailDivider = "productDetailDivider-C1Cdh";
|
|
5898
|
-
var
|
|
5899
|
-
var css_248z$
|
|
5900
|
-
styleInject(css_248z$
|
|
5898
|
+
var alertTitle = "alertTitle-Bm1NO";
|
|
5899
|
+
var css_248z$b = ".container-3kPdM {\n padding-bottom: 10px;\n margin-top: 2px;\n}\n\n.mainStack-1xE4c {\n width: 100%;\n margin-top: 16px;\n}\n\n.productContainer-JcVn0 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n width: 100%;\n}\n\n.productNameContainer-35ZZc {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n width: 100%;\n}\n\n.productNameField-hPNbW {\n margin: 8px;\n width: 70%;\n}\n\n.productImage-Vn0l- {\n width: 70%;\n display: block;\n}\n\n.productImage-Vn0l-.hidden-zZ8fS {\n display: none;\n}\n\n.productDetailsContainer-5c-V9 {\n margin: 20px;\n max-height: 100%;\n}\n\n.productDetailRow-9KtDG {\n display: flex;\n}\n\n.productDetailLabel-t7Mn7 {\n font-weight: 600;\n width: 40%;\n}\n\n.favoriteContainer-ka7lC {\n display: flex;\n align-items: center;\n margin-top: 16px;\n}\n.favoriteCheckbox-JYnH- {\n margin-left: 10px;\n}\n\n.actionButtonContainer-WfYfD {\n display: flex;\n gap: 16px;\n margin-top: 16px;\n justify-content: space-between;\n}\n\n.productDetailsPaper-VsWfW {\n width: 100%;\n max-height: 60vh;\n overflow: auto;\n}\n\n.productDetailText-wkk6U {\n white-space: pre-wrap;\n}\n\n.productDetailDivider-C1Cdh {\n margin-bottom: 16px;\n}\n\n.alertTitle-Bm1NO {\n font-weight: 600;\n}\n\n/* Responsive styles */\n@media (min-width: 900px) {\n .productDetailsPaper-VsWfW {\n width: 60%;\n }\n}\n";
|
|
5900
|
+
styleInject(css_248z$b);
|
|
5901
5901
|
|
|
5902
5902
|
function Step3Product(_ref) {
|
|
5903
5903
|
var _currentProduct$short, _currentProduct$techn;
|
|
@@ -5912,8 +5912,8 @@ function Step3Product(_ref) {
|
|
|
5912
5912
|
setImgIsLoaded = _useState2[1];
|
|
5913
5913
|
var _useState3 = useState(false),
|
|
5914
5914
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
5915
|
-
isFavorite = _useState4[0]
|
|
5916
|
-
|
|
5915
|
+
isFavorite = _useState4[0];
|
|
5916
|
+
_useState4[1];
|
|
5917
5917
|
var _useState5 = useState(false),
|
|
5918
5918
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
5919
5919
|
editProductName = _useState6[0],
|
|
@@ -5935,12 +5935,10 @@ function Step3Product(_ref) {
|
|
|
5935
5935
|
currentProduct.shortDescription = event.target.value;
|
|
5936
5936
|
setText(event.target.value);
|
|
5937
5937
|
};
|
|
5938
|
-
var handleFavoriteToggle = function handleFavoriteToggle() {
|
|
5939
|
-
setIsFavorite(!isFavorite);
|
|
5940
|
-
};
|
|
5941
5938
|
return /*#__PURE__*/jsxs(Box, {
|
|
5942
5939
|
className: container$1,
|
|
5943
5940
|
children: [/*#__PURE__*/jsx(InfoAlert$1, {
|
|
5941
|
+
type: "info",
|
|
5944
5942
|
content: /*#__PURE__*/jsx(Fragment, {
|
|
5945
5943
|
children: t('basket.checkout.step4.info')
|
|
5946
5944
|
})
|
|
@@ -5989,20 +5987,23 @@ function Step3Product(_ref) {
|
|
|
5989
5987
|
}
|
|
5990
5988
|
})]
|
|
5991
5989
|
})
|
|
5992
|
-
}), /*#__PURE__*/
|
|
5990
|
+
}), /*#__PURE__*/jsx(Box, {
|
|
5993
5991
|
className: favoriteContainer,
|
|
5994
|
-
children:
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
5992
|
+
children: /*#__PURE__*/jsx(InfoAlert$1, {
|
|
5993
|
+
type: "warning",
|
|
5994
|
+
icon: /*#__PURE__*/jsx(StarBorderIcon, {}),
|
|
5995
|
+
title: t('basket.checkout.step4.favorite'),
|
|
5996
|
+
content: /*#__PURE__*/jsxs(Fragment, {
|
|
5997
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
5998
|
+
children: t('basket.checkout.step4.favoriteinfo')
|
|
5999
|
+
}), /*#__PURE__*/jsx(FormControlLabel$1, {
|
|
6000
|
+
control: /*#__PURE__*/jsx(Checkbox$1, {
|
|
6001
|
+
className: favoriteCheckbox
|
|
6002
|
+
}),
|
|
6003
|
+
label: t('basket.checkout.step4.savemsg')
|
|
6004
|
+
})]
|
|
6005
|
+
})
|
|
6006
|
+
})
|
|
6006
6007
|
}), /*#__PURE__*/jsxs(Box, {
|
|
6007
6008
|
className: actionButtonContainer,
|
|
6008
6009
|
children: [/*#__PURE__*/jsx(Button$1, {
|
|
@@ -6062,19 +6063,18 @@ function Step3Product(_ref) {
|
|
|
6062
6063
|
});
|
|
6063
6064
|
}
|
|
6064
6065
|
function InfoAlert$1(_ref2) {
|
|
6065
|
-
var
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
},
|
|
6077
|
-
children: content
|
|
6066
|
+
var type = _ref2.type,
|
|
6067
|
+
content = _ref2.content,
|
|
6068
|
+
title = _ref2.title,
|
|
6069
|
+
icon = _ref2.icon;
|
|
6070
|
+
return /*#__PURE__*/jsxs(Alert, {
|
|
6071
|
+
variant: "outlined",
|
|
6072
|
+
severity: type,
|
|
6073
|
+
icon: icon,
|
|
6074
|
+
children: [title && /*#__PURE__*/jsx(AlertTitle, {
|
|
6075
|
+
className: alertTitle,
|
|
6076
|
+
children: title
|
|
6077
|
+
}), content]
|
|
6078
6078
|
});
|
|
6079
6079
|
}
|
|
6080
6080
|
|
|
@@ -6624,6 +6624,10 @@ function Step3Checkout(_ref) {
|
|
|
6624
6624
|
});
|
|
6625
6625
|
}
|
|
6626
6626
|
|
|
6627
|
+
var infocontainer = "infocontainer-ir9gv";
|
|
6628
|
+
var css_248z$a = ".infocontainer-ir9gv {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n";
|
|
6629
|
+
styleInject(css_248z$a);
|
|
6630
|
+
|
|
6627
6631
|
function Step4Checkout(_ref) {
|
|
6628
6632
|
var currentProduct = _ref.currentProduct,
|
|
6629
6633
|
basket = _ref.basket,
|
|
@@ -6642,15 +6646,25 @@ function Step4Checkout(_ref) {
|
|
|
6642
6646
|
});
|
|
6643
6647
|
};
|
|
6644
6648
|
if (!is3dReady) {
|
|
6645
|
-
return /*#__PURE__*/jsx(
|
|
6646
|
-
|
|
6647
|
-
|
|
6649
|
+
return /*#__PURE__*/jsx("div", {
|
|
6650
|
+
className: infocontainer,
|
|
6651
|
+
children: /*#__PURE__*/jsx(InfoAlert, {
|
|
6652
|
+
title: t('basket.checkout.step4.errortitle'),
|
|
6653
|
+
content: /*#__PURE__*/jsx(Fragment, {
|
|
6654
|
+
children: t('basket.checkout.step4.error3d')
|
|
6655
|
+
})
|
|
6656
|
+
})
|
|
6648
6657
|
});
|
|
6649
6658
|
}
|
|
6650
6659
|
if (!productSaved) {
|
|
6651
|
-
return /*#__PURE__*/jsx(
|
|
6652
|
-
|
|
6653
|
-
|
|
6660
|
+
return /*#__PURE__*/jsx("div", {
|
|
6661
|
+
className: infocontainer,
|
|
6662
|
+
children: /*#__PURE__*/jsx(InfoAlert, {
|
|
6663
|
+
title: t('basket.checkout.step4.errortitle'),
|
|
6664
|
+
content: /*#__PURE__*/jsx(Fragment, {
|
|
6665
|
+
children: t('basket.checkout.step4.productNotSaved')
|
|
6666
|
+
})
|
|
6667
|
+
})
|
|
6654
6668
|
});
|
|
6655
6669
|
}
|
|
6656
6670
|
return /*#__PURE__*/jsxs(Box, {
|
|
@@ -6687,70 +6701,14 @@ function Step4Checkout(_ref) {
|
|
|
6687
6701
|
});
|
|
6688
6702
|
}
|
|
6689
6703
|
function InfoAlert(_ref2) {
|
|
6690
|
-
var
|
|
6691
|
-
|
|
6704
|
+
var title = _ref2.title,
|
|
6705
|
+
content = _ref2.content;
|
|
6706
|
+
return /*#__PURE__*/jsxs(Alert$1, {
|
|
6707
|
+
variant: "outlined",
|
|
6692
6708
|
severity: "info",
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
fontSize: '2rem'
|
|
6697
|
-
}
|
|
6698
|
-
})
|
|
6699
|
-
},
|
|
6700
|
-
sx: {
|
|
6701
|
-
display: 'flex',
|
|
6702
|
-
alignItems: 'center',
|
|
6703
|
-
fontSize: '1.1rem',
|
|
6704
|
-
textAlign: 'center'
|
|
6705
|
-
},
|
|
6706
|
-
children: content
|
|
6707
|
-
});
|
|
6708
|
-
}
|
|
6709
|
-
function ErrorAlert(_ref3) {
|
|
6710
|
-
var title = _ref3.title,
|
|
6711
|
-
content = _ref3.content;
|
|
6712
|
-
return /*#__PURE__*/jsx("div", {
|
|
6713
|
-
style: {
|
|
6714
|
-
paddingLeft: 100,
|
|
6715
|
-
paddingRight: 100,
|
|
6716
|
-
paddingTop: 25
|
|
6717
|
-
},
|
|
6718
|
-
children: /*#__PURE__*/jsx(Alert$1, {
|
|
6719
|
-
severity: "error",
|
|
6720
|
-
icon: false,
|
|
6721
|
-
sx: {
|
|
6722
|
-
display: 'flex',
|
|
6723
|
-
justifyContent: 'center',
|
|
6724
|
-
alignItems: 'center',
|
|
6725
|
-
textAlign: 'center'
|
|
6726
|
-
},
|
|
6727
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
6728
|
-
style: {
|
|
6729
|
-
display: 'flex',
|
|
6730
|
-
flexDirection: 'column',
|
|
6731
|
-
alignItems: 'center'
|
|
6732
|
-
},
|
|
6733
|
-
children: [/*#__PURE__*/jsx(ErrorOutlineIcon, {
|
|
6734
|
-
sx: {
|
|
6735
|
-
fontSize: '100px',
|
|
6736
|
-
marginBottom: '16px'
|
|
6737
|
-
}
|
|
6738
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
6739
|
-
children: [/*#__PURE__*/jsx(AlertTitle, {
|
|
6740
|
-
sx: {
|
|
6741
|
-
fontSize: '28px',
|
|
6742
|
-
marginBottom: '8px'
|
|
6743
|
-
},
|
|
6744
|
-
children: title
|
|
6745
|
-
}), /*#__PURE__*/jsx("span", {
|
|
6746
|
-
style: {
|
|
6747
|
-
fontSize: '22px'
|
|
6748
|
-
},
|
|
6749
|
-
children: content
|
|
6750
|
-
})]
|
|
6751
|
-
})]
|
|
6752
|
-
})
|
|
6753
|
-
})
|
|
6709
|
+
children: [title && /*#__PURE__*/jsx(AlertTitle$1, {
|
|
6710
|
+
children: title
|
|
6711
|
+
}), content]
|
|
6754
6712
|
});
|
|
6755
6713
|
}
|
|
6756
6714
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step4Checkout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/Step4Checkout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Step4Checkout.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/Step4Checkout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,EAAE,UAAU,GAAG,KAAK,qBAkD5G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwBnD,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/F;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,EAAE,KAAK,qBAiH/F"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "24.15.0-beta.
|
|
3
|
+
"version": "24.15.0-beta.38",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-dom": "^18.3.1"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@crystaldesign/analytics": "24.15.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "24.15.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "24.15.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "24.15.0-beta.38",
|
|
33
|
+
"@crystaldesign/products-component": "24.15.0-beta.38",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "24.15.0-beta.38",
|
|
35
35
|
"@emotion/react": "^11.4.1",
|
|
36
36
|
"@emotion/styled": "^11.3.0",
|
|
37
37
|
"@mui/icons-material": "^6.1.5",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
},
|
|
44
44
|
"types": "./build/types/seller/src/index.d.ts",
|
|
45
45
|
"module": "build/esm/index.js",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "45eeae0b110896340ed0d0c8752c376b14e9d288"
|
|
47
47
|
}
|