umwd-components 0.1.701 → 0.1.702
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/src/components/e-commerce/opo/OpoSummary.js +1 -1
- package/dist/src/components/e-commerce/opo/OpoSummaryRow.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/components/e-commerce/opo/OpoDisplay.tsx +1 -0
- package/src/components/e-commerce/opo/OpoSummary.tsx +10 -3
- package/src/components/e-commerce/opo/OpoSummaryRow.tsx +4 -1
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import e from"react";import l from"@mui/material/Box";import t from"@mui/material/Table";import a from"@mui/material/TableBody";import r from"@mui/material/TableCell";import m from"@mui/material/TableHead";import n from"@mui/material/TableFooter";import o from"@mui/material/TableRow";import i from"@mui/material/Typography";import{OpoSummaryRow as c}from"./OpoSummaryRow.js";function u(u){var p=u.opo,E=p.opo_items;return e.createElement(l,{sx:{p:{xs:1,md:2}}},null!=E?e.createElement(t,null,e.createElement(m,null,e.createElement(o,null,e.createElement(r,null,"Amount"),e.createElement(r,null,"Product Title"),e.createElement(r,null,"Price Excl. VAT"),e.createElement(r,null,"Price Incl. VAT"))),e.createElement(a,null,E.map((function(l){return e.createElement(c,{key:l.id,data:l})}))),e.createElement(n,null,e.createElement(o,null,e.createElement(r,{colSpan:3,align:"right"},"Total excl VAT"),e.createElement(r,{colSpan:1,align:"left"},"€ ",p.total_excl_vat)),e.createElement(o,null,e.createElement(r,{colSpan:3,align:"right"},"Total incl VAT"),e.createElement(r,{colSpan:1,align:"left"},"€ ",p.total_incl_vat)))):e.createElement(i,null,"No products in cart"))}export{u as OpoSummary};
|
|
6
|
+
import e from"react";import l from"@mui/material/Box";import t from"@mui/material/Table";import a from"@mui/material/TableBody";import r from"@mui/material/TableCell";import m from"@mui/material/TableHead";import n from"@mui/material/TableFooter";import o from"@mui/material/TableRow";import i from"@mui/material/Typography";import{OpoSummaryRow as c}from"./OpoSummaryRow.js";function u(u){var p=u.opo,E=p.opo_items;return E?(console.log("opo_items",E),e.createElement(l,{sx:{p:{xs:1,md:2}}},null!=E?e.createElement(t,null,e.createElement(m,null,e.createElement(o,null,e.createElement(r,null,"Amount"),e.createElement(r,null,"Product Title"),e.createElement(r,null,"Price Excl. VAT"),e.createElement(r,null,"Price Incl. VAT"))),e.createElement(a,null,(null==E?void 0:E.data)&&E.data.map((function(l){return e.createElement(c,{key:l.id,data:l})}))),e.createElement(n,null,e.createElement(o,null,e.createElement(r,{colSpan:3,align:"right"},"Total excl VAT"),e.createElement(r,{colSpan:1,align:"left"},"€ ",p.total_excl_vat)),e.createElement(o,null,e.createElement(r,{colSpan:3,align:"right"},"Total incl VAT"),e.createElement(r,{colSpan:1,align:"left"},"€ ",p.total_incl_vat)))):e.createElement(i,null,"No products in cart"))):e.createElement(i,null,"Loading...")}export{u as OpoSummary};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import e from"react";import
|
|
6
|
+
import e from"react";import t from"@mui/material/TableRow";import r from"@mui/material/TableCell";function l(l){var a=l.data;a.id;var m=a.ordered_quantity,i=a.product;return e.createElement(t,null,e.createElement(r,null,m),e.createElement(r,null,null==i?void 0:i.title))}export{l as OpoSummaryRow};
|