@vtx-ui/react 0.0.1-beta.25 → 0.0.1-beta.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/cjs/components/Widget/renderers/components/Widget/renderers/OrderConfirmationWidget.js +5 -2
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderConfirmationWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js +5 -2
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js.map +1 -1
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderWidget.js +10 -43
- package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderWidget.js.map +1 -1
- package/dist/cjs/widgets/OrderCard/widgets/OrderCard/OrderCard.js +7 -3
- package/dist/cjs/widgets/OrderCard/widgets/OrderCard/OrderCard.js.map +1 -1
- package/dist/cjs/widgets/OrderConfirmation/widgets/OrderConfirmation/OrderConfirmation.js +6 -2
- package/dist/cjs/widgets/OrderConfirmation/widgets/OrderConfirmation/OrderConfirmation.js.map +1 -1
- package/dist/cjs/widgets/OrderDetails/widgets/OrderDetails/OrderDetails.js +11 -7
- package/dist/cjs/widgets/OrderDetails/widgets/OrderDetails/OrderDetails.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderConfirmationWidget.js +5 -2
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderConfirmationWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js +5 -2
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js.map +1 -1
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderWidget.js +10 -43
- package/dist/esm/components/Widget/renderers/components/Widget/renderers/OrderWidget.js.map +1 -1
- package/dist/esm/widgets/OrderCard/widgets/OrderCard/OrderCard.js +7 -3
- package/dist/esm/widgets/OrderCard/widgets/OrderCard/OrderCard.js.map +1 -1
- package/dist/esm/widgets/OrderConfirmation/widgets/OrderConfirmation/OrderConfirmation.js +6 -2
- package/dist/esm/widgets/OrderConfirmation/widgets/OrderConfirmation/OrderConfirmation.js.map +1 -1
- package/dist/esm/widgets/OrderDetails/widgets/OrderDetails/OrderDetails.js +11 -7
- package/dist/esm/widgets/OrderDetails/widgets/OrderDetails/OrderDetails.js.map +1 -1
- package/dist/types/components/Widget/renderers/OrderConfirmationWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/OrderDetailsWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/renderers/OrderWidget.d.ts.map +1 -1
- package/dist/types/components/Widget/types.d.ts +18 -20
- package/dist/types/components/Widget/types.d.ts.map +1 -1
- package/dist/types/widgets/OrderCard/OrderCard.d.ts +12 -2
- package/dist/types/widgets/OrderCard/OrderCard.d.ts.map +1 -1
- package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts +9 -1
- package/dist/types/widgets/OrderConfirmation/OrderConfirmation.d.ts.map +1 -1
- package/dist/types/widgets/OrderDetails/OrderDetails.d.ts +10 -2
- package/dist/types/widgets/OrderDetails/OrderDetails.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderConfirmationWidget.js
CHANGED
|
@@ -9,11 +9,14 @@ var widgets_OrderConfirmation_OrderConfirmation = require('../../../../../../wid
|
|
|
9
9
|
const OrderConfirmationWidget = ({ data, settings,
|
|
10
10
|
// Backward compatibility
|
|
11
11
|
className: legacyClassName, style: legacyStyle, }) => {
|
|
12
|
-
var _a
|
|
12
|
+
var _a;
|
|
13
13
|
// Merge settings with legacy props for backward compatibility
|
|
14
14
|
const className = (settings === null || settings === void 0 ? void 0 : settings.className) || legacyClassName || '';
|
|
15
15
|
const style = (settings === null || settings === void 0 ? void 0 : settings.style) || legacyStyle;
|
|
16
|
-
return (jsxRuntime.jsx(widgets_OrderConfirmation_OrderConfirmation["default"], { orderId: data.orderId, orderNumber: data.orderNumber, orderDate: data.orderDate, status: data.status, statusText: data.statusText, headerText: data.headerText, headerSubtitle: data.headerSubtitle, customerEmail: data.customerEmail, customerPhone: data.customerPhone, shippingAddress: data.shippingAddress, billingAddress: data.billingAddress, items: data.items, subtotal: data.subtotal, shippingCost: data.shippingCost, tax: data.tax, discount: data.discount, total: data.total, currency: data.currency, paymentMethod: data.paymentMethod, transactionId: data.transactionId, estimatedDelivery: data.estimatedDelivery, trackingNumber: data.trackingNumber, showActions: settings === null || settings === void 0 ? void 0 : settings.showActions, hideDownloadInvoice: settings === null || settings === void 0 ? void 0 : settings.hideDownloadInvoice, hideContinueShopping: settings === null || settings === void 0 ? void 0 : settings.hideContinueShopping, hideTrackOrder: settings === null || settings === void 0 ? void 0 : settings.hideTrackOrder, hideContactSupport: settings === null || settings === void 0 ? void 0 : settings.hideContactSupport,
|
|
16
|
+
return (jsxRuntime.jsx(widgets_OrderConfirmation_OrderConfirmation["default"], { orderId: data.orderId, orderNumber: data.orderNumber, orderDate: data.orderDate, status: data.status, statusText: data.statusText, headerText: data.headerText, headerSubtitle: data.headerSubtitle, customerEmail: data.customerEmail, customerPhone: data.customerPhone, shippingAddress: data.shippingAddress, billingAddress: data.billingAddress, items: data.items, subtotal: data.subtotal, shippingCost: data.shippingCost, tax: data.tax, discount: data.discount, total: data.total, currency: data.currency || (settings === null || settings === void 0 ? void 0 : settings.currency), paymentMethod: data.paymentMethod, transactionId: data.transactionId, estimatedDelivery: data.estimatedDelivery, trackingNumber: data.trackingNumber, showActions: settings === null || settings === void 0 ? void 0 : settings.showActions, hideDownloadInvoice: settings === null || settings === void 0 ? void 0 : settings.hideDownloadInvoice, hideContinueShopping: settings === null || settings === void 0 ? void 0 : settings.hideContinueShopping, hideTrackOrder: settings === null || settings === void 0 ? void 0 : settings.hideTrackOrder, hideContactSupport: settings === null || settings === void 0 ? void 0 : settings.hideContactSupport, actions: (_a = data.actions) === null || _a === void 0 ? void 0 : _a.map(action => ({
|
|
17
|
+
...action,
|
|
18
|
+
variant: action.variant === 'outlined' ? 'outline' : action.variant,
|
|
19
|
+
})), loading: settings === null || settings === void 0 ? void 0 : settings.loading, className: className, style: style }));
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
exports["default"] = OrderConfirmationWidget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderConfirmationWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderConfirmationWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderConfirmation"],"mappings":";;;;;;;AAoBA,MAAM,uBAAuB,GAA2C,CAAC,EACvE,IAAI,EACJ,QAAQ;AACR;AACA,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,WAAW,GACnB,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAA,QAAQ,aAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,KAAI,eAAe,IAAI,EAAE,CAAC;AAC/D,IAAA,MAAM,KAAK,GAAG,CAAA,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,KAAK,KAAI,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderConfirmationWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderConfirmationWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderConfirmation"],"mappings":";;;;;;;AAoBA,MAAM,uBAAuB,GAA2C,CAAC,EACvE,IAAI,EACJ,QAAQ;AACR;AACA,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,WAAW,GACnB,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAA,QAAQ,aAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,KAAI,eAAe,IAAI,EAAE,CAAC;AAC/D,IAAA,MAAM,KAAK,GAAG,CAAA,QA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B,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,uBAAR,QAAQ,CAAE,oBAAoB,EACpD,cAAc,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,cAAc,EACxC,kBAAkB,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,kBAAkB,EAChD,OAAO,EAAE,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,GAAG,CAAC,MAAM,KAAK;AACpC,YAAA,GAAG,MAAM;AACT,YAAA,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,OAAO;SACpE,CAAC,CAAC,EACH,OAAO,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,uBAAR,QAAQ,CAAE,OAAO,EAC1B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,CAAA,EACF;AACJ;;;;"}
|
package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js
CHANGED
|
@@ -9,11 +9,14 @@ var widgets_OrderDetails_OrderDetails = require('../../../../../../widgets/Order
|
|
|
9
9
|
const OrderDetailsWidget = ({ data, settings,
|
|
10
10
|
// Backward compatibility
|
|
11
11
|
className: legacyClassName, style: legacyStyle, }) => {
|
|
12
|
-
var _a
|
|
12
|
+
var _a;
|
|
13
13
|
// Merge settings with legacy props for backward compatibility
|
|
14
14
|
const className = (settings === null || settings === void 0 ? void 0 : settings.className) || legacyClassName || '';
|
|
15
15
|
const style = (settings === null || settings === void 0 ? void 0 : settings.style) || legacyStyle;
|
|
16
|
-
return (jsxRuntime.jsx(widgets_OrderDetails_OrderDetails["default"], { orderId: data.orderId, orderNumber: data.orderNumber, orderDate: data.orderDate, status: data.status, statusText: data.statusText, customerName: data.customerName, customerEmail: data.customerEmail, customerPhone: data.customerPhone, shippingAddress: data.shippingAddress, billingAddress: data.billingAddress, items: data.items, subtotal: data.subtotal, shippingCost: data.shippingCost, tax: data.tax, discount: data.discount, total: data.total, currency: data.currency, couponCode: data.couponCode, paymentMethod: data.paymentMethod, paymentStatus: data.paymentStatus, transactionId: data.transactionId, estimatedDelivery: data.estimatedDelivery, deliveredDate: data.deliveredDate, trackingNumber: data.trackingNumber, trackingUrl: data.trackingUrl, carrier: data.carrier, showActions: settings === null || settings === void 0 ? void 0 : settings.showActions, allowCancel: settings === null || settings === void 0 ? void 0 : settings.allowCancel, allowReturn: settings === null || settings === void 0 ? void 0 : settings.allowReturn, allowReorder: settings === null || settings === void 0 ? void 0 : settings.allowReorder,
|
|
16
|
+
return (jsxRuntime.jsx(widgets_OrderDetails_OrderDetails["default"], { orderId: data.orderId, orderNumber: data.orderNumber, orderDate: data.orderDate, status: data.status, statusText: data.statusText, customerName: data.customerName, customerEmail: data.customerEmail, customerPhone: data.customerPhone, shippingAddress: data.shippingAddress, billingAddress: data.billingAddress, items: data.items, subtotal: data.subtotal, shippingCost: data.shippingCost, tax: data.tax, discount: data.discount, total: data.total, currency: data.currency || (settings === null || settings === void 0 ? void 0 : settings.currency), couponCode: data.couponCode, paymentMethod: data.paymentMethod, paymentStatus: data.paymentStatus, transactionId: data.transactionId, estimatedDelivery: data.estimatedDelivery, deliveredDate: data.deliveredDate, trackingNumber: data.trackingNumber, trackingUrl: data.trackingUrl, carrier: data.carrier, showActions: settings === null || settings === void 0 ? void 0 : settings.showActions, allowCancel: settings === null || settings === void 0 ? void 0 : settings.allowCancel, allowReturn: settings === null || settings === void 0 ? void 0 : settings.allowReturn, allowReorder: settings === null || settings === void 0 ? void 0 : settings.allowReorder, actions: (_a = data.actions) === null || _a === void 0 ? void 0 : _a.map(action => ({
|
|
17
|
+
...action,
|
|
18
|
+
variant: action.variant === 'outlined' ? 'outline' : action.variant,
|
|
19
|
+
})), loading: settings === null || settings === void 0 ? void 0 : settings.loading, className: className, style: style }));
|
|
17
20
|
};
|
|
18
21
|
|
|
19
22
|
exports["default"] = OrderDetailsWidget;
|
package/dist/cjs/components/Widget/renderers/components/Widget/renderers/OrderDetailsWidget.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderDetailsWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderDetailsWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderDetails"],"mappings":";;;;;;;AAoBA,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,IAAI,EACJ,QAAQ;AACR;AACA,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,WAAW,GACnB,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAA,QAAQ,aAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,KAAI,eAAe,IAAI,EAAE,CAAC;AAC/D,IAAA,MAAM,KAAK,GAAG,CAAA,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,KAAK,KAAI,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"OrderDetailsWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderDetailsWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderDetails"],"mappings":";;;;;;;AAoBA,MAAM,kBAAkB,GAAsC,CAAC,EAC7D,IAAI,EACJ,QAAQ;AACR;AACA,SAAS,EAAE,eAAe,EAC1B,KAAK,EAAE,WAAW,GACnB,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAA,QAAQ,aAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,SAAS,KAAI,eAAe,IAAI,EAAE,CAAC;AAC/D,IAAA,MAAM,KAAK,GAAG,CAA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AE,QAAQ,KAAR,IAAA,IAAA,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAClC,WAAW,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,WAAW,EAClC,WAAW,EAAE,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,WAAW,EAClC,YAAY,EAAE,QAAQ,aAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,YAAY,EACpC,OAAO,EAAE,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,GAAG,CAAC,MAAM,KAAK;AACpC,YAAA,GAAG,MAAM;AACT,YAAA,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,OAAO;SACpE,CAAC,CAAC,EACH,OAAO,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,uBAAR,QAAQ,CAAE,OAAO,EAC1B,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,EACZ,CAAA,EACF;AACJ;;;;"}
|
|
@@ -7,35 +7,13 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
7
7
|
var widgets_OrderCard_OrderCard = require('../../../../../../widgets/OrderCard/widgets/OrderCard/OrderCard.js');
|
|
8
8
|
|
|
9
9
|
const OrderWidget = ({ data, settings, }) => {
|
|
10
|
-
var _a
|
|
10
|
+
var _a;
|
|
11
11
|
// Map status to OrderCard status type
|
|
12
12
|
const mapStatus = (status) => {
|
|
13
13
|
const statusLower = status.toLowerCase();
|
|
14
14
|
if (statusLower === 'completed')
|
|
15
15
|
return 'delivered';
|
|
16
|
-
|
|
17
|
-
return statusLower;
|
|
18
|
-
}
|
|
19
|
-
return 'pending';
|
|
20
|
-
};
|
|
21
|
-
// Format date for OrderCard
|
|
22
|
-
const formatDate = (date) => {
|
|
23
|
-
if (!date)
|
|
24
|
-
return undefined;
|
|
25
|
-
const d = typeof date === 'string' ? new Date(date) : date;
|
|
26
|
-
return d.toLocaleDateString('en-US', {
|
|
27
|
-
month: 'short',
|
|
28
|
-
day: 'numeric',
|
|
29
|
-
year: 'numeric'
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
// Convert number to string with proper formatting
|
|
33
|
-
const formatAmount = (amount) => {
|
|
34
|
-
if (typeof amount === 'string') {
|
|
35
|
-
const parsed = parseFloat(amount.replace(/[^0-9.-]+/g, ''));
|
|
36
|
-
return isNaN(parsed) ? 0 : parsed;
|
|
37
|
-
}
|
|
38
|
-
return amount;
|
|
16
|
+
return statusLower;
|
|
39
17
|
};
|
|
40
18
|
// Map OrderWidgetData items to OrderCard items
|
|
41
19
|
const orderItems = (data.items || []).map((item, index) => ({
|
|
@@ -44,25 +22,14 @@ const OrderWidget = ({ data, settings, }) => {
|
|
|
44
22
|
quantity: item.quantity,
|
|
45
23
|
image: item.image,
|
|
46
24
|
}));
|
|
47
|
-
//
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
: undefined;
|
|
56
|
-
// Handle view details action
|
|
57
|
-
const handleViewDetails = ((_f = (_e = data.actions) === null || _e === void 0 ? void 0 : _e[1]) === null || _f === void 0 ? void 0 : _f.onClick) || ((_h = (_g = data.actions) === null || _g === void 0 ? void 0 : _g[1]) === null || _h === void 0 ? void 0 : _h.href)
|
|
58
|
-
? () => {
|
|
59
|
-
var _a, _b;
|
|
60
|
-
if ((_b = (_a = data.actions) === null || _a === void 0 ? void 0 : _a[1]) === null || _b === void 0 ? void 0 : _b.onClick) {
|
|
61
|
-
data.actions[1].onClick();
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
: undefined;
|
|
65
|
-
return (jsxRuntime.jsx(widgets_OrderCard_OrderCard["default"], { orderId: data.id, orderNumber: data.id, status: mapStatus(data.status), statusText: data.status, items: orderItems.length > 0 ? orderItems : [{ id: '1', name: 'No items' }], deliveryDate: formatDate(data.date), totalAmount: formatAmount(data.total), currency: "$", onTrackOrder: handleTrackOrder, onViewDetails: handleViewDetails, trackButtonText: ((_k = (_j = data.actions) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.label) || 'Track Order', loading: settings === null || settings === void 0 ? void 0 : settings.loading, className: settings === null || settings === void 0 ? void 0 : settings.className, style: settings === null || settings === void 0 ? void 0 : settings.style }));
|
|
25
|
+
// Map actions, converting 'outlined' to 'outline' for Button component
|
|
26
|
+
const mappedActions = (_a = data.actions) === null || _a === void 0 ? void 0 : _a.map(action => ({
|
|
27
|
+
label: action.label,
|
|
28
|
+
onClick: action.onClick,
|
|
29
|
+
href: action.href,
|
|
30
|
+
variant: action.variant === 'outlined' ? 'outline' : action.variant,
|
|
31
|
+
}));
|
|
32
|
+
return (jsxRuntime.jsx(widgets_OrderCard_OrderCard["default"], { orderId: data.id, orderNumber: data.id, status: mapStatus(data.status), statusText: data.status, items: orderItems.length > 0 ? orderItems : [{ id: '1', name: 'No items' }], deliveryDate: data.date, totalAmount: data.total, currency: data.currency || (settings === null || settings === void 0 ? void 0 : settings.currency) || '$', actions: mappedActions, loading: settings === null || settings === void 0 ? void 0 : settings.loading, className: settings === null || settings === void 0 ? void 0 : settings.className, style: settings === null || settings === void 0 ? void 0 : settings.style }));
|
|
66
33
|
};
|
|
67
34
|
|
|
68
35
|
exports.OrderWidget = OrderWidget;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderCard"],"mappings":";;;;;;;AAUa,MAAA,WAAW,GAA+B,CAAC,EACtD,IAAI,EACJ,QAAQ,GACT,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAC,MAAc,
|
|
1
|
+
{"version":3,"file":"OrderWidget.js","sources":["../../../../../../../../src/components/Widget/renderers/OrderWidget.tsx"],"sourcesContent":[null],"names":["_jsx","OrderCard"],"mappings":";;;;;;;AAUa,MAAA,WAAW,GAA+B,CAAC,EACtD,IAAI,EACJ,QAAQ,GACT,KAAI;;;AAEH,IAAA,MAAM,SAAS,GAAG,CAAC,MAAc,KAAY;AAC3C,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;QACzC,IAAI,WAAW,KAAK,WAAW;AAAE,YAAA,OAAO,WAAW,CAAC;AACpD,QAAA,OAAO,WAAW,CAAC;AACrB,KAAC,CAAC;;AAKF,IAAA,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,MAAM;QAC1D,EAAE,EAAE,CAAQ,KAAA,EAAA,KAAK,CAAE,CAAA;QACnB,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,KAAK,EAAE,IAAI,CAAC,KAAK;AAClB,KAAA,CAAC,CAAC,CAAC;;AAKJ,IAAA,MAAM,aAAa,GAAG,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,GAAG,CAAC,MAAM,KAAK;QACjD,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,IAAI,EAAE,MAAM,CAAC,IAAI;AACjB,QAAA,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,OAAO;AACpE,KAAA,CAAC,CAAC,CAAC;IAEJ,QACEA,cAAC,CAAAC,sCAAS,EACR,EAAA,OAAO,EAAE,IAAI,CAAC,EAAE,EAChB,WAAW,EAAE,IAAI,CAAC,EAAE,EACpB,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC9B,UAAU,EAAE,IAAI,CAAC,MAAM,EACvB,KAAK,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAC3E,YAAY,EAAE,IAAI,CAAC,IAAc,EACjC,WAAW,EAAE,IAAI,CAAC,KAAK,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,KAAI,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAR,QAAQ,CAAE,QAAQ,CAAA,IAAI,GAAG,EACpD,OAAO,EAAE,aAAa,EACtB,OAAO,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,OAAO,EAC1B,SAAS,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,SAAS,EAC9B,KAAK,EAAE,QAAQ,KAAR,IAAA,IAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,QAAQ,CAAE,KAAK,EACtB,CAAA,EACF;AACJ;;;;;"}
|
|
@@ -38,7 +38,7 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
38
38
|
* />
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
41
|
-
const OrderCard = React__default["default"].forwardRef(({ orderId, orderNumber, status = 'pending', statusText, items, deliveryDate, deliveryLabel = 'Delivered on', totalAmount, currency = jsxRuntime.jsx(icons_IconComponents.RupeeIcon, { size: 14 }), onTrackOrder, onViewDetails, trackButtonText = 'Track Order', loading = false, className = '', style, ...props }, ref) => {
|
|
41
|
+
const OrderCard = React__default["default"].forwardRef(({ orderId, orderNumber, status = 'pending', statusText, items, deliveryDate, deliveryLabel = 'Delivered on', totalAmount, currency = jsxRuntime.jsx(icons_IconComponents.RupeeIcon, { size: 14 }), onTrackOrder, onViewDetails, trackButtonText = 'Track Order', actions, loading = false, className = '', style, ...props }, ref) => {
|
|
42
42
|
// Get status badge variant
|
|
43
43
|
const getStatusVariant = () => {
|
|
44
44
|
switch (status) {
|
|
@@ -68,10 +68,14 @@ const OrderCard = React__default["default"].forwardRef(({ orderId, orderNumber,
|
|
|
68
68
|
if (loading) {
|
|
69
69
|
return jsxRuntime.jsx(components_Skeleton_SkeletonTheme["default"], { theme: "order-card" });
|
|
70
70
|
}
|
|
71
|
-
return (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: `ordercard ${className}`, style: style, onClick: onViewDetails ? () => onViewDetails(orderId) : undefined, ref: ref, ...props, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 0, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", justify: "between", wrap: "wrap", gap: 8, className: "ordercard-header", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "semibold", noMargin: true, children: orderNumber || `Order #${orderId}` }), jsxRuntime.jsx(components_Badge_Badge["default"], { variant: getStatusVariant(), children: getStatusText() })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 10, className: "ordercard-content", children: [firstItem.image && (jsxRuntime.jsx("div", { className: "ordercard-image-wrapper", children: jsxRuntime.jsx("img", { src: firstItem.image, alt: firstItem.name, className: "ordercard-image", loading: "lazy" }) })), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 2, style: { flex: 1, minWidth: 0 }, children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, className: "ordercard-product-name", children: [firstItem.name, firstItem.quantity && firstItem.quantity > 1 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(icons_IconComponents.XIcon, { size: 12, style: { margin: '0 4px' } }), firstItem.quantity] }))] }), remainingCount > 0 && (jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "caption", noMargin: true, className: "ordercard-more-items", children: ["+ ", remainingCount, " more ", remainingCount === 1 ? 'item' : 'items'] }))] })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", align: "center", justify: "between", wrap: "wrap", gap: 8, className: "ordercard-footer", children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 2, style: { flex: '1 1 auto', minWidth: '140px' }, children: [deliveryDate && (jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "caption", noMargin: true, className: "ordercard-delivery", children: [deliveryLabel, ": ", deliveryDate] })), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "ordercard-price", children: [currency, totalAmount.toLocaleString()] })] }),
|
|
71
|
+
return (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: `ordercard ${className}`, style: style, onClick: onViewDetails ? () => onViewDetails(orderId) : undefined, ref: ref, ...props, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 0, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", justify: "between", wrap: "wrap", gap: 8, className: "ordercard-header", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "semibold", noMargin: true, children: orderNumber || `Order #${orderId}` }), jsxRuntime.jsx(components_Badge_Badge["default"], { variant: getStatusVariant(), children: getStatusText() })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 10, className: "ordercard-content", children: [firstItem.image && (jsxRuntime.jsx("div", { className: "ordercard-image-wrapper", children: jsxRuntime.jsx("img", { src: firstItem.image, alt: firstItem.name, className: "ordercard-image", loading: "lazy" }) })), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 2, style: { flex: 1, minWidth: 0 }, children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, className: "ordercard-product-name", children: [firstItem.name, firstItem.quantity && firstItem.quantity > 1 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(icons_IconComponents.XIcon, { size: 12, style: { margin: '0 4px' } }), firstItem.quantity] }))] }), remainingCount > 0 && (jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "caption", noMargin: true, className: "ordercard-more-items", children: ["+ ", remainingCount, " more ", remainingCount === 1 ? 'item' : 'items'] }))] })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", align: "center", justify: "between", wrap: "wrap", gap: 8, className: "ordercard-footer", children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 2, style: { flex: '1 1 auto', minWidth: '140px' }, children: [deliveryDate && (jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "caption", noMargin: true, className: "ordercard-delivery", children: [deliveryLabel, ": ", deliveryDate] })), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "ordercard-price", children: [currency, typeof totalAmount === 'number' ? totalAmount.toLocaleString() : totalAmount] })] }), actions && actions.length > 0 ? (jsxRuntime.jsx(components_Flex_Flex["default"], { gap: 8, children: actions.map((action, index) => (jsxRuntime.jsx(components_Button_Button["default"], { variant: action.variant || 'primary', size: "sm", onClick: (e) => {
|
|
72
|
+
var _a;
|
|
73
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
74
|
+
(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action);
|
|
75
|
+
}, asLink: !!action.href, href: action.href, className: "ordercard-action-btn", children: action.label }, index))) })) : (onTrackOrder && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "primary", size: "sm", onClick: (e) => {
|
|
72
76
|
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
73
77
|
onTrackOrder(orderId);
|
|
74
|
-
}, className: "ordercard-track-btn", children: trackButtonText }))] })] }) }));
|
|
78
|
+
}, className: "ordercard-track-btn", children: trackButtonText })))] })] }) }));
|
|
75
79
|
});
|
|
76
80
|
OrderCard.displayName = 'OrderCard';
|
|
77
81
|
const OrderCardWithParsedClasses = hoc_withParsedClasses.withParsedClasses(OrderCard);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderCard.js","sources":["../../../../../../src/widgets/OrderCard/OrderCard.tsx"],"sourcesContent":[null],"names":["React","_jsx","RupeeIcon","SkeletonTheme","Card","_jsxs","Flex","Typography","Badge","XIcon","Button","withParsedClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"OrderCard.js","sources":["../../../../../../src/widgets/OrderCard/OrderCard.tsx"],"sourcesContent":[null],"names":["React","_jsx","RupeeIcon","SkeletonTheme","Card","_jsxs","Flex","Typography","Badge","_Fragment","XIcon","Button","withParsedClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4FA;;;;;;;;;;;;;;;;;;AAkBG;AACH,MAAM,SAAS,GAAGA,yBAAK,CAAC,UAAU,CAChC,CACE,EACE,OAAO,EACP,WAAW,EACX,MAAM,GAAG,SAAS,EAClB,UAAU,EACV,KAAK,EACL,YAAY,EACZ,aAAa,GAAG,cAAc,EAC9B,WAAW,EACX,QAAQ,GAAGC,cAAC,CAAAC,8BAAS,EAAC,EAAA,IAAI,EAAE,EAAE,EAAI,CAAA,EAClC,YAAY,EACZ,aAAa,EACb,eAAe,GAAG,aAAa,EAC/B,OAAO,EACP,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,EAAE,EACd,KAAK,EACL,GAAG,KAAK,EACT,EACD,GAAG,KACD;;IAEF,MAAM,gBAAgB,GAAG,MAAK;QAC5B,QAAQ,MAAM;AACZ,YAAA,KAAK,WAAW;AACd,gBAAA,OAAO,SAAS,CAAC;AACnB,YAAA,KAAK,WAAW;AACd,gBAAA,OAAO,OAAO,CAAC;AACjB,Y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A,CAACU,mCAAM,EAEL,EAAA,OAAO,EAAG,MAAM,CAAC,OAAe,IAAI,SAAS,EAC7C,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,CAAC,CAAC,KAAI;;AACb,oCAAA,CAAC,aAAD,CAAC,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAD,CAAC,CAAE,eAAe,EAAE,CAAC;AACrB,oCAAA,CAAA,EAAA,GAAA,MAAM,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,MAAA,CAAI,CAAC;iCACpB,EACD,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EACrB,IAAI,EAAE,MAAM,CAAC,IAAI,EACjB,SAAS,EAAC,sBAAsB,EAAA,QAAA,EAE/B,MAAM,CAAC,KAAK,EAXR,EAAA,KAAK,CAYH,CACV,CAAC,EACG,CAAA,KACJ,YAAY,KACfV,cAAC,CAAAU,mCAAM,EACL,EAAA,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,CAAC,CAAC,KAAI;AACb,gCAAA,CAAC,aAAD,CAAC,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAD,CAAC,CAAE,eAAe,EAAE,CAAC;gCACrB,YAAY,CAAC,OAAO,CAAC,CAAC;AACxB,6BAAC,EACD,SAAS,EAAC,qBAAqB,EAE9B,QAAA,EAAA,eAAe,EACT,CAAA,CACV,CAAC,CAAA,EAAA,CACG,CACF,EAAA,CAAA,EAAA,CACF,EACP;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,MAAM,0BAA0B,GAAGC,uCAAiB,CAAC,SAAS;;;;;"}
|
|
@@ -22,7 +22,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
22
22
|
|
|
23
23
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
24
24
|
|
|
25
|
-
const OrderConfirmation = React__default["default"].forwardRef(({ orderId, orderNumber, orderDate, status = 'confirmed', statusText, headerText = 'Order Confirmed!', headerSubtitle = "Thank you for your order. We'll send you a confirmation email shortly.", customerEmail, customerPhone, shippingAddress, billingAddress, items, subtotal, shippingCost = 0, tax = 0, discount = 0, total, currency = '₹', paymentMethod, transactionId, estimatedDelivery, trackingNumber, onDownloadInvoice, onContinueShopping, onTrackOrder, onViewDetails, onContactSupport, onShareOrder, downloadInvoiceText = 'Download Invoice', continueShoppingText = 'Continue Shopping', trackOrderText = 'Track Order', viewDetailsText = 'View Details', contactSupportText = 'Contact Support', shareOrderText = 'Share', showActions = true, hideDownloadInvoice = false, hideContinueShopping = false, hideTrackOrder = false, hideContactSupport = false, loading = false, className = '', style, ...props }, ref) => {
|
|
25
|
+
const OrderConfirmation = React__default["default"].forwardRef(({ orderId, orderNumber, orderDate, status = 'confirmed', statusText, headerText = 'Order Confirmed!', headerSubtitle = "Thank you for your order. We'll send you a confirmation email shortly.", customerEmail, customerPhone, shippingAddress, billingAddress, items, subtotal, shippingCost = 0, tax = 0, discount = 0, total, currency = '₹', paymentMethod, transactionId, estimatedDelivery, trackingNumber, onDownloadInvoice, onContinueShopping, onTrackOrder, onViewDetails, onContactSupport, onShareOrder, downloadInvoiceText = 'Download Invoice', continueShoppingText = 'Continue Shopping', trackOrderText = 'Track Order', viewDetailsText = 'View Details', contactSupportText = 'Contact Support', shareOrderText = 'Share', showActions = true, hideDownloadInvoice = false, hideContinueShopping = false, hideTrackOrder = false, hideContactSupport = false, loading = false, className = '', style, actions, ...props }, ref) => {
|
|
26
26
|
// Get status badge variant
|
|
27
27
|
const getStatusVariant = () => {
|
|
28
28
|
switch (status) {
|
|
@@ -71,7 +71,11 @@ const OrderConfirmation = React__default["default"].forwardRef(({ orderId, order
|
|
|
71
71
|
if (loading) {
|
|
72
72
|
return jsxRuntime.jsx(components_Skeleton_SkeletonTheme["default"], { theme: "order-confirmation" });
|
|
73
73
|
}
|
|
74
|
-
return (jsxRuntime.jsx("div", { className: `orderconfirmation ${className}`, style: style, ref: ref, ...props, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 20, children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "filled", className: "orderconfirmation-header", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", align: "center", gap: 12, children: [jsxRuntime.jsx("span", { className: "orderconfirmation-success-icon", children: jsxRuntime.jsx(icons_IconComponents.CheckCircleIcon, { size: 32 }) }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h4", weight: "bold", align: "center", noMargin: true, children: headerText }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", align: "center", noMargin: true, className: "orderconfirmation-subtitle", children: headerSubtitle }), jsxRuntime.jsxs(components_Badge_Badge["default"], { variant: "success", style: { padding: '8px 20px', borderRadius: '20px', fontWeight: 600, marginTop: '8px' }, children: ["Order ", orderNumber || `#${orderId}`] })] }) }), jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Order Details", items: orderDetailsItems, variant: "outlined", showDividers: true }), customerDetailsItems.length > 0 && (jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Customer Information", items: customerDetailsItems, variant: "outlined", showDividers: true })), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-items-card", children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: ["Order Items (", items.length, ")"] }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 0, children: items.map((item, index) => (jsxRuntime.jsx(widgets_ProductCard_ProductCard.ProductCard.List, { image: item.image || '', name: item.name, price: item.price, quantity: item.quantity, variant: item.variant, readonly: true, currency: currency, style: { borderBottom: index < items.length - 1 ? '1px solid var(--vtx-color-neutral-200, #e0e0e0)' : 'none', padding: '12px 0' } }, item.id))) })] }), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-summary-card", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: "Payment Summary" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 8, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Subtotal" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, subtotal.toLocaleString()] })] }), shippingCost > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Shipping" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, shippingCost.toLocaleString()] })] })), tax > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Tax" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, tax.toLocaleString()] })] })), discount > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderconfirmation-discount", children: "Discount" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderconfirmation-discount", children: ["-", currency, discount.toLocaleString()] })] })), jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '8px 0' } }), jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, children: "Total" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "orderconfirmation-total", children: [currency, total.toLocaleString()] })] })] }), paymentDetailsItems.length > 0 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '12px 0' } }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 8, children: paymentDetailsItems.map((item, index) => (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: item.label }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: item.valueClass, children: item.value })] }, index))) })] }))] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MapPinIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Shipping Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(shippingAddress)] }) }), billingAddress && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.CreditCardIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Billing Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(billingAddress)] }) }))] }), showActions && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-actions-card", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "What's Next?" }), jsxRuntime.jsx(components_Divider_Divider["default"], {}),
|
|
74
|
+
return (jsxRuntime.jsx("div", { className: `orderconfirmation ${className}`, style: style, ref: ref, ...props, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 20, children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "filled", className: "orderconfirmation-header", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", align: "center", gap: 12, children: [jsxRuntime.jsx("span", { className: "orderconfirmation-success-icon", children: jsxRuntime.jsx(icons_IconComponents.CheckCircleIcon, { size: 32 }) }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h4", weight: "bold", align: "center", noMargin: true, children: headerText }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", align: "center", noMargin: true, className: "orderconfirmation-subtitle", children: headerSubtitle }), jsxRuntime.jsxs(components_Badge_Badge["default"], { variant: "success", style: { padding: '8px 20px', borderRadius: '20px', fontWeight: 600, marginTop: '8px' }, children: ["Order ", orderNumber || `#${orderId}`] })] }) }), jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Order Details", items: orderDetailsItems, variant: "outlined", showDividers: true }), customerDetailsItems.length > 0 && (jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Customer Information", items: customerDetailsItems, variant: "outlined", showDividers: true })), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-items-card", children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: ["Order Items (", items.length, ")"] }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 0, children: items.map((item, index) => (jsxRuntime.jsx(widgets_ProductCard_ProductCard.ProductCard.List, { image: item.image || '', name: item.name, price: item.price, quantity: item.quantity, variant: item.variant, readonly: true, currency: currency, style: { borderBottom: index < items.length - 1 ? '1px solid var(--vtx-color-neutral-200, #e0e0e0)' : 'none', padding: '12px 0' } }, item.id))) })] }), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-summary-card", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: "Payment Summary" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 8, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Subtotal" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, subtotal.toLocaleString()] })] }), shippingCost > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Shipping" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, shippingCost.toLocaleString()] })] })), tax > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Tax" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, tax.toLocaleString()] })] })), discount > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderconfirmation-discount", children: "Discount" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderconfirmation-discount", children: ["-", currency, discount.toLocaleString()] })] })), jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '8px 0' } }), jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, children: "Total" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "orderconfirmation-total", children: [currency, total.toLocaleString()] })] })] }), paymentDetailsItems.length > 0 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '12px 0' } }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 8, children: paymentDetailsItems.map((item, index) => (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: item.label }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: item.valueClass, children: item.value })] }, index))) })] }))] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MapPinIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Shipping Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(shippingAddress)] }) }), billingAddress && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.CreditCardIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Billing Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(billingAddress)] }) }))] }), showActions && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderconfirmation-actions-card", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "What's Next?" }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), actions && actions.length > 0 ? (jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: actions.map((action, index) => (jsxRuntime.jsx(components_Button_Button["default"], { variant: action.variant || 'primary', size: "md", onClick: (e) => {
|
|
75
|
+
var _a;
|
|
76
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
77
|
+
(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action);
|
|
78
|
+
}, leftIcon: action.icon, asLink: !!action.href, href: action.href, style: { flex: '1 1 auto', minWidth: '170px' }, children: action.label }, index))) })) : (jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: [!hideDownloadInvoice && onDownloadInvoice && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "primary", size: "md", onClick: () => onDownloadInvoice(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.DownloadIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '170px' }, children: downloadInvoiceText })), !hideTrackOrder && onTrackOrder && trackingNumber && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "primary", size: "md", onClick: () => onTrackOrder(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.PackageIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '170px' }, children: trackOrderText }))] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: [!hideContinueShopping && onContinueShopping && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "outline", size: "md", onClick: onContinueShopping, leftIcon: jsxRuntime.jsx(icons_IconComponents.ShoppingBagIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '170px' }, children: continueShoppingText })), onViewDetails && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "outline", size: "md", onClick: () => onViewDetails(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.EyeIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '170px' }, children: viewDetailsText }))] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", justify: "center", children: [!hideContactSupport && onContactSupport && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "ghost", size: "md", onClick: () => onContactSupport(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 18 }), children: contactSupportText })), onShareOrder && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "ghost", size: "md", onClick: () => onShareOrder(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.ShareIcon, { size: 18 }), children: shareOrderText }))] })] }))] }) })), jsxRuntime.jsx(components_Card_Card["default"], { variant: "filled", className: "orderconfirmation-help-card", style: {
|
|
75
79
|
background: 'var(--vtx-color-primary-50)',
|
|
76
80
|
border: '1px solid var(--vtx-color-primary-100)'
|
|
77
81
|
}, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, align: "center", children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Need Help?" })] }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", align: "center", noMargin: true, style: { color: 'var(--vtx-color-text-secondary)' }, children: "Our support team is available 24/7 to assist you with your order" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", justify: "center", style: { marginTop: '4px' }, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 6, children: [jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 16 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: "support@example.com" })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 6, children: [jsxRuntime.jsx(icons_IconComponents.PhoneIcon, { size: 16 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: "1-800-123-4567" })] })] })] }) })] }) }));
|
package/dist/cjs/widgets/OrderConfirmation/widgets/OrderConfirmation/OrderConfirmation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderConfirmation.js","sources":["../../../../../../src/widgets/OrderConfirmation/OrderConfirmation.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx","Badge","SkeletonTheme","Flex","Card","CheckCircleIcon","Typography","InfoListCard","ProductCard","Divider","_Fragment","MapPinIcon","CreditCardIcon","Button","DownloadIcon","PackageIcon","ShoppingBagIcon","EyeIcon","MessageIcon","ShareIcon","PhoneIcon","withParsedClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkIA,MAAM,iBAAiB,GAAGA,yBAAK,CAAC,UAAU,CACxC,CACE,EACE,OAAO,EACP,WAAW,EACX,SAAS,EACT,MAAM,GAAG,WAAW,EACpB,UAAU,EACV,UAAU,GAAG,kBAAkB,EAC/B,cAAc,GAAG,wEAAwE,EACzF,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,KAAK,EACL,QAAQ,EACR,YAAY,GAAG,CAAC,EAChB,GAAG,GAAG,CAAC,EACP,QAAQ,GAAG,CAAC,EACZ,KAAK,EACL,QAAQ,GAAG,GAAG,EACd,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,k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AAI,EAAE,EAAE,GAAI,EACzBlB,cAAA,CAACM,2CAAU,EAAA,EAAC,OAAO,EAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAEvC,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,CAAA,CAAA,EAAA,CACR,EACPP,eAAC,CAAAI,+BAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aACzBH,cAAC,CAAAoB,8BAAS,IAAC,IAAI,EAAE,EAAE,EAAI,CAAA,EACvBpB,cAAC,CAAAM,2CAAU,IAAC,OAAO,EAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,CAEvC,IACR,CACF,EAAA,CAAA,CAAA,EAAA,CACF,GACF,CACF,EAAA,CAAA,EAAA,CACH,EACN;AACJ,CAAC,CACF,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAEpD,MAAM,kCAAkC,GAAGe,uCAAiB,CAAC,iBAAiB;;;;;"}
|
|
1
|
+
{"version":3,"file":"OrderConfirmation.js","sources":["../../../../../../src/widgets/OrderConfirmation/OrderConfirmation.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx","Badge","SkeletonTheme","Flex","Card","CheckCircleIcon","Typography","InfoListCard","ProductCard","Divider","_Fragment","MapPinIcon","CreditCardIcon","Button","DownloadIcon","PackageIcon","ShoppingBagIcon","EyeIcon","MessageIcon","ShareIcon","PhoneIcon","withParsedClasses"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6IA,MAAM,iBAAiB,GAAGA,yBAAK,CAAC,UAAU,CACxC,CACE,EACE,OAAO,EACP,WAAW,EACX,SAAS,EACT,MAAM,GAAG,WAAW,EACpB,UAAU,EACV,UAAU,GAAG,kBAAkB,EAC/B,cAAc,GAAG,wEAAwE,EACzF,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,KAAK,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gBAACI,+BAAI,EAAA,EAAC,SAAS,EAAC,KAAK,EAAC,GAAG,EAAE,EAAE,EAAE,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,CACrFJ,gBAACI,+BAAI,EAAA,EAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAA,QAAA,EAAA,CACzBH,eAACkB,gCAAW,EAAA,EAAC,IAAI,EAAE,EAAE,GAAI,EACzBlB,cAAA,CAACM,2CAAU,EAAA,EAAC,OAAO,EAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAEvC,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,CAAA,CAAA,EAAA,CACR,EACPP,eAAC,CAAAI,+BAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aACzBH,cAAC,CAAAoB,8BAAS,IAAC,IAAI,EAAE,EAAE,EAAI,CAAA,EACvBpB,cAAC,CAAAM,2CAAU,IAAC,OAAO,EAAC,OAAO,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,CAEvC,IACR,CACF,EAAA,CAAA,CAAA,EAAA,CACF,GACF,CACF,EAAA,CAAA,EAAA,CACH,EACN;AACJ,CAAC,CACF,CAAC;AAEF,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAEpD,MAAM,kCAAkC,GAAGe,uCAAiB,CAAC,iBAAiB;;;;;"}
|
|
@@ -23,7 +23,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
23
23
|
|
|
24
24
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
25
25
|
|
|
26
|
-
const OrderDetails = React__default["default"].forwardRef(({ orderId, orderNumber, orderDate, status, statusText, customerName, customerEmail, customerPhone, shippingAddress, billingAddress, items, subtotal, shippingCost = 0, tax = 0, discount = 0, total, currency = jsxRuntime.jsx(icons_IconComponents.RupeeIcon, { size: 14 }), couponCode, paymentMethod, paymentStatus, transactionId, estimatedDelivery, deliveredDate, trackingNumber, trackingUrl, carrier, onDownloadInvoice, onTrackOrder, onCancelOrder, onReturnOrder, onReorder, onContactSupport, onWriteReview, downloadInvoiceText = 'Download Invoice', trackOrderText = 'Track Package', cancelOrderText = 'Cancel Order', returnOrderText = 'Return Items', reorderText = 'Reorder', contactSupportText = 'Contact Support', writeReviewText = 'Write Review', showActions = true, allowCancel = true, allowReturn = true, allowReorder = true, loading = false, className = '', style, ...props }, ref) => {
|
|
26
|
+
const OrderDetails = React__default["default"].forwardRef(({ orderId, orderNumber, orderDate, status, statusText, customerName, customerEmail, customerPhone, shippingAddress, billingAddress, items, subtotal, shippingCost = 0, tax = 0, discount = 0, total, currency = jsxRuntime.jsx(icons_IconComponents.RupeeIcon, { size: 14 }), couponCode, paymentMethod, paymentStatus, transactionId, estimatedDelivery, deliveredDate, trackingNumber, trackingUrl, carrier, onDownloadInvoice, onTrackOrder, onCancelOrder, onReturnOrder, onReorder, onContactSupport, onWriteReview, downloadInvoiceText = 'Download Invoice', trackOrderText = 'Track Package', cancelOrderText = 'Cancel Order', returnOrderText = 'Return Items', reorderText = 'Reorder', contactSupportText = 'Contact Support', writeReviewText = 'Write Review', showActions = true, allowCancel = true, allowReturn = true, allowReorder = true, loading = false, className = '', style, actions, ...props }, ref) => {
|
|
27
27
|
// Get status badge variant
|
|
28
28
|
const getStatusVariant = () => {
|
|
29
29
|
switch (status) {
|
|
@@ -115,12 +115,16 @@ const OrderDetails = React__default["default"].forwardRef(({ orderId, orderNumbe
|
|
|
115
115
|
color: 'var(--vtx-color-primary-600)',
|
|
116
116
|
fontWeight: 600,
|
|
117
117
|
textDecoration: 'none'
|
|
118
|
-
}, children: trackingNumber })) : (jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "semibold", noMargin: true, children: trackingNumber }))] })), carrier && (jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 4, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "caption", noMargin: true, style: { color: 'var(--vtx-color-text-secondary)', fontSize: '0.75rem' }, children: "Carrier" }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: carrier })] }))] })] }) })), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-items-card", children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: ["Items (", items.length, ")"] }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 0, children: items.map((item, index) => (jsxRuntime.jsx(widgets_ProductCard_ProductCard.ProductCard.List, { image: item.image || '', name: item.name, price: item.price, quantity: item.quantity, variant: item.variant, readonly: true, currency: typeof currency === 'string' ? currency : undefined, style: { borderBottom: index < items.length - 1 ? '1px solid var(--vtx-color-neutral-200, #e0e0e0)' : 'none', padding: '12px 0' } }, item.id))) })] }), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-summary-card", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: "Order Summary" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 8, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Subtotal" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, subtotal.toLocaleString()] })] }), shippingCost > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Shipping" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, shippingCost.toLocaleString()] })] })), tax > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Tax" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, tax.toLocaleString()] })] })), couponCode && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-coupon", children: "Coupon Applied" }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-coupon", children: couponCode })] })), discount > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-discount", children: "Discount" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-discount", children: ["-", currency, discount.toLocaleString()] })] })), jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '8px 0' } }), jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, children: "Total" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "orderdetails-total", children: [currency, total.toLocaleString()] })] })] }), paymentDetailsItems.length > 0 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '12px 0' } }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 8, children: paymentDetailsItems.map((item, index) => (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: item.label }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: item.valueClass, children: item.value })] }, index))) })] }))] }), customerDetailsItems.length > 0 && (jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Customer Information", items: customerDetailsItems, variant: "outlined", showDividers: true })), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MapPinIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Shipping Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(shippingAddress)] }) }), billingAddress && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.CreditCardIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Billing Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(billingAddress)] }) }))] }), showActions && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-actions-card", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Order Actions" }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), jsxRuntime.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
}, children: trackingNumber })) : (jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "semibold", noMargin: true, children: trackingNumber }))] })), carrier && (jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 4, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "caption", noMargin: true, style: { color: 'var(--vtx-color-text-secondary)', fontSize: '0.75rem' }, children: "Carrier" }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: carrier })] }))] })] }) })), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-items-card", children: [jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: ["Items (", items.length, ")"] }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 0, children: items.map((item, index) => (jsxRuntime.jsx(widgets_ProductCard_ProductCard.ProductCard.List, { image: item.image || '', name: item.name, price: item.price, quantity: item.quantity, variant: item.variant, readonly: true, currency: typeof currency === 'string' ? currency : undefined, style: { borderBottom: index < items.length - 1 ? '1px solid var(--vtx-color-neutral-200, #e0e0e0)' : 'none', padding: '12px 0' } }, item.id))) })] }), jsxRuntime.jsxs(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-summary-card", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", style: { marginBottom: '12px' }, children: "Order Summary" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 8, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Subtotal" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, subtotal.toLocaleString()] })] }), shippingCost > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Shipping" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, shippingCost.toLocaleString()] })] })), tax > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: "Tax" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: [currency, tax.toLocaleString()] })] })), couponCode && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-coupon", children: "Coupon Applied" }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-coupon", children: couponCode })] })), discount > 0 && (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-discount", children: "Discount" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: "orderdetails-discount", children: ["-", currency, discount.toLocaleString()] })] })), jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '8px 0' } }), jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, children: "Total" }), jsxRuntime.jsxs(components_Typography_Typography["default"], { variant: "body1", weight: "bold", noMargin: true, className: "orderdetails-total", children: [currency, total.toLocaleString()] })] })] }), paymentDetailsItems.length > 0 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(components_Divider_Divider["default"], { style: { margin: '12px 0' } }), jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "column", gap: 8, children: paymentDetailsItems.map((item, index) => (jsxRuntime.jsxs(components_Flex_Flex["default"], { justify: "between", align: "center", children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, children: item.label }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", noMargin: true, className: item.valueClass, children: item.value })] }, index))) })] }))] }), customerDetailsItems.length > 0 && (jsxRuntime.jsx(widgets_InfoListCard_InfoListCard["default"], { heading: "Customer Information", items: customerDetailsItems, variant: "outlined", showDividers: true })), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", children: [jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MapPinIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Shipping Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(shippingAddress)] }) }), billingAddress && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-address-card", style: { flex: '1 1 280px' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.CreditCardIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Billing Address" })] }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), formatAddress(billingAddress)] }) }))] }), showActions && (jsxRuntime.jsx(components_Card_Card["default"], { variant: "outlined", className: "orderdetails-actions-card", children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Order Actions" }), jsxRuntime.jsx(components_Divider_Divider["default"], {}), actions && actions.length > 0 ? (jsxRuntime.jsx(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: actions.map((action, index) => (jsxRuntime.jsx(components_Button_Button["default"], { variant: action.variant || 'primary', size: "md", onClick: (e) => {
|
|
119
|
+
var _a;
|
|
120
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
121
|
+
(_a = action.onClick) === null || _a === void 0 ? void 0 : _a.call(action);
|
|
122
|
+
}, leftIcon: action.icon, asLink: !!action.href, href: action.href, style: { flex: '1 1 auto', minWidth: '160px' }, children: action.label }, index))) })) : (jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 16, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: [canCancel && onCancelOrder && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "outline", size: "md", onClick: () => onCancelOrder(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.CloseIcon, { size: 18 }), style: {
|
|
123
|
+
flex: '1 1 auto',
|
|
124
|
+
minWidth: '160px',
|
|
125
|
+
borderColor: 'var(--vtx-color-error-500)',
|
|
126
|
+
color: 'var(--vtx-color-error-600)'
|
|
127
|
+
}, children: cancelOrderText })), canReturn && onReturnOrder && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "outline", size: "md", onClick: () => onReturnOrder(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.ReturnIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '160px' }, children: returnOrderText })), allowReorder && onReorder && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "outline", size: "md", onClick: () => onReorder(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.RefreshIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '160px' }, children: reorderText }))] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 12, wrap: "wrap", children: [status === 'delivered' && onWriteReview && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "ghost", size: "md", onClick: () => onWriteReview(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.StarIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '160px' }, children: writeReviewText })), onContactSupport && (jsxRuntime.jsx(components_Button_Button["default"], { variant: "ghost", size: "md", onClick: () => onContactSupport(orderId), leftIcon: jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 18 }), style: { flex: '1 1 auto', minWidth: '160px' }, children: contactSupportText }))] })] }))] }) })), jsxRuntime.jsx(components_Card_Card["default"], { variant: "filled", className: "orderdetails-help-card", style: { background: 'var(--vtx-color-primary-50)', border: '1px solid var(--vtx-color-primary-100)' }, children: jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "column", gap: 12, align: "center", children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 8, children: [jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 20 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "h6", weight: "semibold", noMargin: true, children: "Need Help?" })] }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", align: "center", noMargin: true, style: { color: 'var(--vtx-color-text-secondary)' }, children: "Our support team is available 24/7 to assist you with your order" }), jsxRuntime.jsxs(components_Flex_Flex["default"], { direction: "row", gap: 16, wrap: "wrap", justify: "center", style: { marginTop: '4px' }, children: [jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 6, children: [jsxRuntime.jsx(icons_IconComponents.MessageIcon, { size: 16 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: "support@example.com" })] }), jsxRuntime.jsxs(components_Flex_Flex["default"], { align: "center", gap: 6, children: [jsxRuntime.jsx(icons_IconComponents.PhoneIcon, { size: 16 }), jsxRuntime.jsx(components_Typography_Typography["default"], { variant: "body2", weight: "medium", noMargin: true, children: "1-800-123-4567" })] })] })] }) })] }) }));
|
|
124
128
|
});
|
|
125
129
|
OrderDetails.displayName = 'OrderDetails';
|
|
126
130
|
const OrderDetailsWithParsedClasses = hoc_withParsedClasses.withParsedClasses(OrderDetails);
|