@medusajs/dashboard 2.12.2-snapshot-20251204204625 → 2.12.2-snapshot-20251205110418

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.
Files changed (32) hide show
  1. package/dist/app.css +3 -0
  2. package/dist/app.js +17 -6
  3. package/dist/app.mjs +1 -1
  4. package/dist/{chunk-VSQK3AWP.mjs → chunk-HWBAEBWS.mjs} +1 -1
  5. package/dist/{chunk-7DXVXBSA.mjs → chunk-NTEWUH4C.mjs} +1 -1
  6. package/dist/{chunk-YGLRZQ4C.mjs → chunk-PXYSYQMZ.mjs} +15 -4
  7. package/dist/{chunk-5EGFR4EO.mjs → chunk-QFIISDU4.mjs} +21 -21
  8. package/dist/{chunk-3I6G3NRU.mjs → chunk-WG7UTTKY.mjs} +2 -2
  9. package/dist/{chunk-E3AFVPLW.mjs → chunk-WP7Z25OE.mjs} +1 -1
  10. package/dist/{customer-detail-O4L55RY6.mjs → customer-detail-YIDAV6AM.mjs} +3 -3
  11. package/dist/{order-detail-EVDCA6UP.mjs → order-detail-HHGWY3HH.mjs} +1 -1
  12. package/dist/{order-list-26YQAIRH.mjs → order-list-OZZMRE6N.mjs} +5 -5
  13. package/dist/{product-attributes-ZR63AQWA.mjs → product-attributes-HM3WCV4O.mjs} +2 -2
  14. package/dist/{product-create-EQ6SN5QT.mjs → product-create-5HKUC2ED.mjs} +1 -1
  15. package/dist/{product-detail-ATPFDPI2.mjs → product-detail-KQ5Y44PC.mjs} +2 -2
  16. package/dist/{product-edit-XPUNYMD7.mjs → product-edit-47MK7N4N.mjs} +2 -2
  17. package/dist/{product-list-33ANLONH.mjs → product-list-ZDK3ZPJX.mjs} +2 -2
  18. package/dist/{product-organization-T2TQ5EH6.mjs → product-organization-6XSSOGCU.mjs} +2 -2
  19. package/dist/{product-shipping-profile-PL76UMVZ.mjs → product-shipping-profile-BU7NM6WN.mjs} +2 -2
  20. package/dist/{product-tag-detail-TQP7ZWSR.mjs → product-tag-detail-XBAZPIGF.mjs} +3 -3
  21. package/dist/{product-tag-list-PZTGHM7M.mjs → product-tag-list-JNEGB3ZL.mjs} +3 -3
  22. package/dist/{refund-reason-list-453DXONV.mjs → refund-reason-list-BJL7OU34.mjs} +3 -3
  23. package/dist/{return-reason-list-VYLLXDG4.mjs → return-reason-list-FWW2V6TX.mjs} +3 -3
  24. package/dist/{tax-region-detail-MHM4MAOS.mjs → tax-region-detail-LT5VOBL2.mjs} +3 -3
  25. package/dist/{tax-region-province-detail-VMOV4JPV.mjs → tax-region-province-detail-NXY7BATT.mjs} +3 -3
  26. package/dist/{tax-region-tax-override-create-GRXLTURD.mjs → tax-region-tax-override-create-76XWGT7W.mjs} +3 -3
  27. package/dist/{tax-region-tax-override-edit-D2YBOBEI.mjs → tax-region-tax-override-edit-YMMKOP56.mjs} +3 -3
  28. package/package.json +9 -9
  29. package/src/components/table/table-cells/order/total-cell/total-cell.tsx +3 -2
  30. package/src/hooks/table/columns/use-order-table-columns.tsx +18 -4
  31. package/src/lib/order-helpers.ts +1 -1
  32. package/src/routes/orders/order-list/const.ts +1 -1
package/dist/app.css CHANGED
@@ -3522,6 +3522,9 @@ video {
3522
3522
  .underline {
3523
3523
  text-decoration-line: underline;
3524
3524
  }
3525
+ .line-through {
3526
+ text-decoration-line: line-through;
3527
+ }
3525
3528
  .\!placeholder-ui-fg-disabled::-moz-placeholder {
3526
3529
  color: var(--fg-disabled) !important;
3527
3530
  }
package/dist/app.js CHANGED
@@ -104393,11 +104393,11 @@ var init_total_cell = __esm({
104393
104393
  init_money_amount_cell2();
104394
104394
  init_placeholder_cell2();
104395
104395
  import_jsx_runtime60 = require("react/jsx-runtime");
104396
- TotalCell = ({ currencyCode, total }) => {
104396
+ TotalCell = ({ currencyCode, total, className }) => {
104397
104397
  if (!total) {
104398
104398
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(PlaceholderCell, {});
104399
104399
  }
104400
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MoneyAmountCell, { currencyCode, amount: total, align: "right" });
104400
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(MoneyAmountCell, { currencyCode, amount: total, className, align: "right" });
104401
104401
  };
104402
104402
  TotalHeader = () => {
104403
104403
  const { t: t5 } = (0, import_react_i18next35.useTranslation)();
@@ -127013,7 +127013,7 @@ var init_order_helpers = __esm({
127013
127013
  ],
127014
127014
  awaiting: [t5("orders.payment.status.awaiting"), "orange"],
127015
127015
  captured: [t5("orders.payment.status.captured"), "green"],
127016
- refunded: [t5("orders.payment.status.refunded"), "green"],
127016
+ refunded: [t5("orders.payment.status.refunded"), "red"],
127017
127017
  partially_refunded: [
127018
127018
  t5("orders.payment.status.partiallyRefunded"),
127019
127019
  "orange"
@@ -127218,9 +127218,20 @@ var init_use_order_table_columns = __esm({
127218
127218
  columnHelper16.accessor("total", {
127219
127219
  header: () => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(TotalHeader, {}),
127220
127220
  cell: ({ getValue: getValue2, row }) => {
127221
- const total = getValue2();
127221
+ const isFullyRefunded = row.original.payment_status === "refunded";
127222
+ const total = !isFullyRefunded ? getValue2() : row.original.payment_collections.reduce(
127223
+ (acc, payCol) => acc + (payCol.refunded_amount ?? 0),
127224
+ 0
127225
+ );
127222
127226
  const currencyCode = row.original.currency_code;
127223
- return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(TotalCell, { currencyCode, total });
127227
+ return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
127228
+ TotalCell,
127229
+ {
127230
+ currencyCode,
127231
+ total,
127232
+ className: isFullyRefunded ? "text-ui-fg-muted line-through" : ""
127233
+ }
127234
+ );
127224
127235
  }
127225
127236
  }),
127226
127237
  columnHelper16.display({
@@ -127416,7 +127427,7 @@ var init_const = __esm({
127416
127427
  "total",
127417
127428
  "currency_code"
127418
127429
  ];
127419
- DEFAULT_RELATIONS = ["*customer", "*sales_channel"];
127430
+ DEFAULT_RELATIONS = ["*customer", "*sales_channel", "*payment_collections"];
127420
127431
  DEFAULT_FIELDS2 = `${DEFAULT_PROPERTIES.join(
127421
127432
  ","
127422
127433
  )},${DEFAULT_RELATIONS.join(",")}`;
package/dist/app.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DashboardApp
3
- } from "./chunk-5EGFR4EO.mjs";
3
+ } from "./chunk-QFIISDU4.mjs";
4
4
  import "./chunk-2SSUH2HJ.mjs";
5
5
  import "./chunk-ONB3JEHR.mjs";
6
6
  import "./chunk-YCDDT44O.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  DisplayIdCell,
6
6
  TotalCell
7
- } from "./chunk-3I6G3NRU.mjs";
7
+ } from "./chunk-WG7UTTKY.mjs";
8
8
  import {
9
9
  DateCell
10
10
  } from "./chunk-ROKB75YP.mjs";
@@ -15,7 +15,7 @@ var getOrderPaymentStatus = (t, status) => {
15
15
  ],
16
16
  awaiting: [t("orders.payment.status.awaiting"), "orange"],
17
17
  captured: [t("orders.payment.status.captured"), "green"],
18
- refunded: [t("orders.payment.status.refunded"), "green"],
18
+ refunded: [t("orders.payment.status.refunded"), "red"],
19
19
  partially_refunded: [
20
20
  t("orders.payment.status.partiallyRefunded"),
21
21
  "orange"
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  getOrderFulfillmentStatus,
3
3
  getOrderPaymentStatus
4
- } from "./chunk-7DXVXBSA.mjs";
4
+ } from "./chunk-NTEWUH4C.mjs";
5
5
  import {
6
6
  DisplayIdCell,
7
7
  DisplayIdHeader,
8
8
  TotalCell,
9
9
  TotalHeader
10
- } from "./chunk-3I6G3NRU.mjs";
10
+ } from "./chunk-WG7UTTKY.mjs";
11
11
  import {
12
12
  DateCell,
13
13
  DateHeader
@@ -167,9 +167,20 @@ var useOrderTableColumns = (props) => {
167
167
  columnHelper.accessor("total", {
168
168
  header: () => /* @__PURE__ */ jsx6(TotalHeader, {}),
169
169
  cell: ({ getValue, row }) => {
170
- const total = getValue();
170
+ const isFullyRefunded = row.original.payment_status === "refunded";
171
+ const total = !isFullyRefunded ? getValue() : row.original.payment_collections.reduce(
172
+ (acc, payCol) => acc + (payCol.refunded_amount ?? 0),
173
+ 0
174
+ );
171
175
  const currencyCode = row.original.currency_code;
172
- return /* @__PURE__ */ jsx6(TotalCell, { currencyCode, total });
176
+ return /* @__PURE__ */ jsx6(
177
+ TotalCell,
178
+ {
179
+ currencyCode,
180
+ total,
181
+ className: isFullyRefunded ? "text-ui-fg-muted line-through" : ""
182
+ }
183
+ );
173
184
  }
174
185
  }),
175
186
  columnHelper.display({
@@ -92520,11 +92520,11 @@ function getRouteMap({
92520
92520
  children: [
92521
92521
  {
92522
92522
  path: "",
92523
- lazy: () => import("./product-list-33ANLONH.mjs"),
92523
+ lazy: () => import("./product-list-ZDK3ZPJX.mjs"),
92524
92524
  children: [
92525
92525
  {
92526
92526
  path: "create",
92527
- lazy: () => import("./product-create-EQ6SN5QT.mjs")
92527
+ lazy: () => import("./product-create-5HKUC2ED.mjs")
92528
92528
  },
92529
92529
  {
92530
92530
  path: "import",
@@ -92540,7 +92540,7 @@ function getRouteMap({
92540
92540
  path: ":id",
92541
92541
  errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
92542
92542
  lazy: async () => {
92543
- const { Breadcrumb, loader } = await import("./product-detail-ATPFDPI2.mjs");
92543
+ const { Breadcrumb, loader } = await import("./product-detail-KQ5Y44PC.mjs");
92544
92544
  return {
92545
92545
  Component: Outlet4,
92546
92546
  loader,
@@ -92552,11 +92552,11 @@ function getRouteMap({
92552
92552
  children: [
92553
92553
  {
92554
92554
  path: "",
92555
- lazy: () => import("./product-detail-ATPFDPI2.mjs"),
92555
+ lazy: () => import("./product-detail-KQ5Y44PC.mjs"),
92556
92556
  children: [
92557
92557
  {
92558
92558
  path: "edit",
92559
- lazy: () => import("./product-edit-XPUNYMD7.mjs")
92559
+ lazy: () => import("./product-edit-47MK7N4N.mjs")
92560
92560
  },
92561
92561
  {
92562
92562
  path: "edit-variant",
@@ -92568,15 +92568,15 @@ function getRouteMap({
92568
92568
  },
92569
92569
  {
92570
92570
  path: "attributes",
92571
- lazy: () => import("./product-attributes-ZR63AQWA.mjs")
92571
+ lazy: () => import("./product-attributes-HM3WCV4O.mjs")
92572
92572
  },
92573
92573
  {
92574
92574
  path: "organization",
92575
- lazy: () => import("./product-organization-T2TQ5EH6.mjs")
92575
+ lazy: () => import("./product-organization-6XSSOGCU.mjs")
92576
92576
  },
92577
92577
  {
92578
92578
  path: "shipping-profile",
92579
- lazy: () => import("./product-shipping-profile-PL76UMVZ.mjs")
92579
+ lazy: () => import("./product-shipping-profile-BU7NM6WN.mjs")
92580
92580
  },
92581
92581
  {
92582
92582
  path: "media",
@@ -92714,12 +92714,12 @@ function getRouteMap({
92714
92714
  children: [
92715
92715
  {
92716
92716
  path: "",
92717
- lazy: () => import("./order-list-26YQAIRH.mjs")
92717
+ lazy: () => import("./order-list-OZZMRE6N.mjs")
92718
92718
  },
92719
92719
  {
92720
92720
  path: ":id",
92721
92721
  lazy: async () => {
92722
- const { Component, Breadcrumb, loader } = await import("./order-detail-EVDCA6UP.mjs");
92722
+ const { Component, Breadcrumb, loader } = await import("./order-detail-HHGWY3HH.mjs");
92723
92723
  return {
92724
92724
  Component,
92725
92725
  loader,
@@ -92998,7 +92998,7 @@ function getRouteMap({
92998
92998
  {
92999
92999
  path: ":id",
93000
93000
  lazy: async () => {
93001
- const { Component, Breadcrumb, loader } = await import("./customer-detail-O4L55RY6.mjs");
93001
+ const { Component, Breadcrumb, loader } = await import("./customer-detail-YIDAV6AM.mjs");
93002
93002
  return {
93003
93003
  Component,
93004
93004
  loader,
@@ -93548,7 +93548,7 @@ function getRouteMap({
93548
93548
  children: [
93549
93549
  {
93550
93550
  path: "",
93551
- lazy: () => import("./product-tag-list-PZTGHM7M.mjs"),
93551
+ lazy: () => import("./product-tag-list-JNEGB3ZL.mjs"),
93552
93552
  children: [
93553
93553
  {
93554
93554
  path: "create",
@@ -93559,7 +93559,7 @@ function getRouteMap({
93559
93559
  {
93560
93560
  path: ":id",
93561
93561
  lazy: async () => {
93562
- const { Component, Breadcrumb, loader } = await import("./product-tag-detail-TQP7ZWSR.mjs");
93562
+ const { Component, Breadcrumb, loader } = await import("./product-tag-detail-XBAZPIGF.mjs");
93563
93563
  return {
93564
93564
  Component,
93565
93565
  loader,
@@ -93771,7 +93771,7 @@ function getRouteMap({
93771
93771
  {
93772
93772
  path: "",
93773
93773
  lazy: async () => {
93774
- const { Component } = await import("./tax-region-detail-MHM4MAOS.mjs");
93774
+ const { Component } = await import("./tax-region-detail-LT5VOBL2.mjs");
93775
93775
  return {
93776
93776
  Component
93777
93777
  };
@@ -93787,11 +93787,11 @@ function getRouteMap({
93787
93787
  },
93788
93788
  {
93789
93789
  path: "overrides/create",
93790
- lazy: () => import("./tax-region-tax-override-create-GRXLTURD.mjs")
93790
+ lazy: () => import("./tax-region-tax-override-create-76XWGT7W.mjs")
93791
93791
  },
93792
93792
  {
93793
93793
  path: "overrides/:tax_rate_id/edit",
93794
- lazy: () => import("./tax-region-tax-override-edit-D2YBOBEI.mjs")
93794
+ lazy: () => import("./tax-region-tax-override-edit-YMMKOP56.mjs")
93795
93795
  },
93796
93796
  {
93797
93797
  path: "tax-rates/create",
@@ -93806,7 +93806,7 @@ function getRouteMap({
93806
93806
  {
93807
93807
  path: "provinces/:province_id",
93808
93808
  lazy: async () => {
93809
- const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-VMOV4JPV.mjs");
93809
+ const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-NXY7BATT.mjs");
93810
93810
  return {
93811
93811
  Component,
93812
93812
  loader,
@@ -93826,11 +93826,11 @@ function getRouteMap({
93826
93826
  },
93827
93827
  {
93828
93828
  path: "overrides/create",
93829
- lazy: () => import("./tax-region-tax-override-create-GRXLTURD.mjs")
93829
+ lazy: () => import("./tax-region-tax-override-create-76XWGT7W.mjs")
93830
93830
  },
93831
93831
  {
93832
93832
  path: "overrides/:tax_rate_id/edit",
93833
- lazy: () => import("./tax-region-tax-override-edit-D2YBOBEI.mjs")
93833
+ lazy: () => import("./tax-region-tax-override-edit-YMMKOP56.mjs")
93834
93834
  }
93835
93835
  ]
93836
93836
  }
@@ -93847,7 +93847,7 @@ function getRouteMap({
93847
93847
  children: [
93848
93848
  {
93849
93849
  path: "",
93850
- lazy: () => import("./return-reason-list-VYLLXDG4.mjs"),
93850
+ lazy: () => import("./return-reason-list-FWW2V6TX.mjs"),
93851
93851
  children: [
93852
93852
  {
93853
93853
  path: "create",
@@ -93875,7 +93875,7 @@ function getRouteMap({
93875
93875
  children: [
93876
93876
  {
93877
93877
  path: "",
93878
- lazy: () => import("./refund-reason-list-453DXONV.mjs"),
93878
+ lazy: () => import("./refund-reason-list-BJL7OU34.mjs"),
93879
93879
  children: [
93880
93880
  {
93881
93881
  path: "create",
@@ -25,11 +25,11 @@ var DisplayIdHeader = () => {
25
25
  // src/components/table/table-cells/order/total-cell/total-cell.tsx
26
26
  import { useTranslation as useTranslation2 } from "react-i18next";
27
27
  import { jsx as jsx2 } from "react/jsx-runtime";
28
- var TotalCell = ({ currencyCode, total }) => {
28
+ var TotalCell = ({ currencyCode, total, className }) => {
29
29
  if (!total) {
30
30
  return /* @__PURE__ */ jsx2(PlaceholderCell, {});
31
31
  }
32
- return /* @__PURE__ */ jsx2(MoneyAmountCell, { currencyCode, amount: total, align: "right" });
32
+ return /* @__PURE__ */ jsx2(MoneyAmountCell, { currencyCode, amount: total, className, align: "right" });
33
33
  };
34
34
  var TotalHeader = () => {
35
35
  const { t } = useTranslation2();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getLinkedFields
3
- } from "./chunk-5EGFR4EO.mjs";
3
+ } from "./chunk-QFIISDU4.mjs";
4
4
 
5
5
  // src/routes/products/product-detail/constants.ts
6
6
  var PRODUCT_DETAIL_FIELDS = getLinkedFields(
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-ZJRFL6ZN.mjs";
4
4
  import {
5
5
  useOrderTableColumns
6
- } from "./chunk-YGLRZQ4C.mjs";
7
- import "./chunk-7DXVXBSA.mjs";
6
+ } from "./chunk-PXYSYQMZ.mjs";
7
+ import "./chunk-NTEWUH4C.mjs";
8
8
  import "./chunk-MSDRGCRR.mjs";
9
- import "./chunk-3I6G3NRU.mjs";
9
+ import "./chunk-WG7UTTKY.mjs";
10
10
  import "./chunk-ROKB75YP.mjs";
11
11
  import "./chunk-INE2QCSC.mjs";
12
12
  import "./chunk-ADOCJB6L.mjs";
@@ -27,7 +27,7 @@ import {
27
27
  getCanceledOrderStatus,
28
28
  getOrderFulfillmentStatus,
29
29
  getOrderPaymentStatus
30
- } from "./chunk-7DXVXBSA.mjs";
30
+ } from "./chunk-NTEWUH4C.mjs";
31
31
  import {
32
32
  getPaymentsFromOrder,
33
33
  getReservationsLimitCount
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useOrderTableColumns
3
- } from "./chunk-YGLRZQ4C.mjs";
4
- import "./chunk-7DXVXBSA.mjs";
3
+ } from "./chunk-PXYSYQMZ.mjs";
4
+ import "./chunk-NTEWUH4C.mjs";
5
5
  import {
6
6
  ConfigurableDataTable,
7
7
  createTableAdapter,
8
8
  orderColumnAdapter
9
- } from "./chunk-VSQK3AWP.mjs";
9
+ } from "./chunk-HWBAEBWS.mjs";
10
10
  import "./chunk-6CPMXY5N.mjs";
11
- import "./chunk-3I6G3NRU.mjs";
11
+ import "./chunk-WG7UTTKY.mjs";
12
12
  import "./chunk-ROKB75YP.mjs";
13
13
  import "./chunk-INE2QCSC.mjs";
14
14
  import "./chunk-XLDQPLK4.mjs";
@@ -204,7 +204,7 @@ var DEFAULT_PROPERTIES = [
204
204
  "total",
205
205
  "currency_code"
206
206
  ];
207
- var DEFAULT_RELATIONS = ["*customer", "*sales_channel"];
207
+ var DEFAULT_RELATIONS = ["*customer", "*sales_channel", "*payment_collections"];
208
208
  var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
209
209
  ","
210
210
  )},${DEFAULT_RELATIONS.join(",")}`;
@@ -12,11 +12,11 @@ import {
12
12
  } from "./chunk-AERWK3TJ.mjs";
13
13
  import {
14
14
  PRODUCT_DETAIL_FIELDS
15
- } from "./chunk-E3AFVPLW.mjs";
15
+ } from "./chunk-WP7Z25OE.mjs";
16
16
  import {
17
17
  FormExtensionZone,
18
18
  useExtendableForm
19
- } from "./chunk-5EGFR4EO.mjs";
19
+ } from "./chunk-QFIISDU4.mjs";
20
20
  import "./chunk-2SSUH2HJ.mjs";
21
21
  import "./chunk-ONB3JEHR.mjs";
22
22
  import "./chunk-YCDDT44O.mjs";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  FormExtensionZone,
63
63
  useExtendableForm
64
- } from "./chunk-5EGFR4EO.mjs";
64
+ } from "./chunk-QFIISDU4.mjs";
65
65
  import "./chunk-2SSUH2HJ.mjs";
66
66
  import "./chunk-ONB3JEHR.mjs";
67
67
  import "./chunk-YCDDT44O.mjs";
@@ -27,8 +27,8 @@ import {
27
27
  import "./chunk-DZWH2RV6.mjs";
28
28
  import {
29
29
  PRODUCT_DETAIL_FIELDS
30
- } from "./chunk-E3AFVPLW.mjs";
31
- import "./chunk-5EGFR4EO.mjs";
30
+ } from "./chunk-WP7Z25OE.mjs";
31
+ import "./chunk-QFIISDU4.mjs";
32
32
  import "./chunk-2SSUH2HJ.mjs";
33
33
  import "./chunk-ONB3JEHR.mjs";
34
34
  import "./chunk-YCDDT44O.mjs";
@@ -15,11 +15,11 @@ import {
15
15
  } from "./chunk-AERWK3TJ.mjs";
16
16
  import {
17
17
  PRODUCT_DETAIL_FIELDS
18
- } from "./chunk-E3AFVPLW.mjs";
18
+ } from "./chunk-WP7Z25OE.mjs";
19
19
  import {
20
20
  FormExtensionZone,
21
21
  useExtendableForm
22
- } from "./chunk-5EGFR4EO.mjs";
22
+ } from "./chunk-QFIISDU4.mjs";
23
23
  import "./chunk-2SSUH2HJ.mjs";
24
24
  import "./chunk-ONB3JEHR.mjs";
25
25
  import "./chunk-YCDDT44O.mjs";
@@ -2,9 +2,9 @@ import {
2
2
  ConfigurableDataTable,
3
3
  createTableAdapter,
4
4
  productColumnAdapter
5
- } from "./chunk-VSQK3AWP.mjs";
5
+ } from "./chunk-HWBAEBWS.mjs";
6
6
  import "./chunk-6CPMXY5N.mjs";
7
- import "./chunk-3I6G3NRU.mjs";
7
+ import "./chunk-WG7UTTKY.mjs";
8
8
  import "./chunk-ROKB75YP.mjs";
9
9
  import "./chunk-INE2QCSC.mjs";
10
10
  import {
@@ -17,11 +17,11 @@ import {
17
17
  } from "./chunk-AERWK3TJ.mjs";
18
18
  import {
19
19
  PRODUCT_DETAIL_FIELDS
20
- } from "./chunk-E3AFVPLW.mjs";
20
+ } from "./chunk-WP7Z25OE.mjs";
21
21
  import {
22
22
  FormExtensionZone,
23
23
  useExtendableForm
24
- } from "./chunk-5EGFR4EO.mjs";
24
+ } from "./chunk-QFIISDU4.mjs";
25
25
  import "./chunk-2SSUH2HJ.mjs";
26
26
  import "./chunk-ONB3JEHR.mjs";
27
27
  import "./chunk-YCDDT44O.mjs";
@@ -14,8 +14,8 @@ import {
14
14
  } from "./chunk-AERWK3TJ.mjs";
15
15
  import {
16
16
  PRODUCT_DETAIL_FIELDS
17
- } from "./chunk-E3AFVPLW.mjs";
18
- import "./chunk-5EGFR4EO.mjs";
17
+ } from "./chunk-WP7Z25OE.mjs";
18
+ import "./chunk-QFIISDU4.mjs";
19
19
  import "./chunk-2SSUH2HJ.mjs";
20
20
  import "./chunk-ONB3JEHR.mjs";
21
21
  import "./chunk-YCDDT44O.mjs";
@@ -9,11 +9,11 @@ import "./chunk-I3VB6NM2.mjs";
9
9
  import "./chunk-ZJRFL6ZN.mjs";
10
10
  import "./chunk-XWO5BP42.mjs";
11
11
  import "./chunk-GA3UMQMZ.mjs";
12
- import "./chunk-YGLRZQ4C.mjs";
12
+ import "./chunk-PXYSYQMZ.mjs";
13
13
  import "./chunk-IR5DHEKS.mjs";
14
- import "./chunk-7DXVXBSA.mjs";
14
+ import "./chunk-NTEWUH4C.mjs";
15
15
  import "./chunk-MSDRGCRR.mjs";
16
- import "./chunk-3I6G3NRU.mjs";
16
+ import "./chunk-WG7UTTKY.mjs";
17
17
  import "./chunk-ROKB75YP.mjs";
18
18
  import "./chunk-INE2QCSC.mjs";
19
19
  import {
@@ -11,11 +11,11 @@ import "./chunk-I3VB6NM2.mjs";
11
11
  import "./chunk-ZJRFL6ZN.mjs";
12
12
  import "./chunk-XWO5BP42.mjs";
13
13
  import "./chunk-GA3UMQMZ.mjs";
14
- import "./chunk-YGLRZQ4C.mjs";
14
+ import "./chunk-PXYSYQMZ.mjs";
15
15
  import "./chunk-IR5DHEKS.mjs";
16
- import "./chunk-7DXVXBSA.mjs";
16
+ import "./chunk-NTEWUH4C.mjs";
17
17
  import "./chunk-MSDRGCRR.mjs";
18
- import "./chunk-3I6G3NRU.mjs";
18
+ import "./chunk-WG7UTTKY.mjs";
19
19
  import "./chunk-ROKB75YP.mjs";
20
20
  import "./chunk-INE2QCSC.mjs";
21
21
  import "./chunk-BW322BVH.mjs";
@@ -8,11 +8,11 @@ import "./chunk-I3VB6NM2.mjs";
8
8
  import "./chunk-ZJRFL6ZN.mjs";
9
9
  import "./chunk-XWO5BP42.mjs";
10
10
  import "./chunk-GA3UMQMZ.mjs";
11
- import "./chunk-YGLRZQ4C.mjs";
11
+ import "./chunk-PXYSYQMZ.mjs";
12
12
  import "./chunk-IR5DHEKS.mjs";
13
- import "./chunk-7DXVXBSA.mjs";
13
+ import "./chunk-NTEWUH4C.mjs";
14
14
  import "./chunk-MSDRGCRR.mjs";
15
- import "./chunk-3I6G3NRU.mjs";
15
+ import "./chunk-WG7UTTKY.mjs";
16
16
  import "./chunk-ROKB75YP.mjs";
17
17
  import "./chunk-INE2QCSC.mjs";
18
18
  import "./chunk-BW322BVH.mjs";
@@ -8,11 +8,11 @@ import "./chunk-I3VB6NM2.mjs";
8
8
  import "./chunk-ZJRFL6ZN.mjs";
9
9
  import "./chunk-XWO5BP42.mjs";
10
10
  import "./chunk-GA3UMQMZ.mjs";
11
- import "./chunk-YGLRZQ4C.mjs";
11
+ import "./chunk-PXYSYQMZ.mjs";
12
12
  import "./chunk-IR5DHEKS.mjs";
13
- import "./chunk-7DXVXBSA.mjs";
13
+ import "./chunk-NTEWUH4C.mjs";
14
14
  import "./chunk-MSDRGCRR.mjs";
15
- import "./chunk-3I6G3NRU.mjs";
15
+ import "./chunk-WG7UTTKY.mjs";
16
16
  import "./chunk-ROKB75YP.mjs";
17
17
  import "./chunk-INE2QCSC.mjs";
18
18
  import "./chunk-BW322BVH.mjs";
@@ -24,15 +24,15 @@ import "./chunk-ZJRFL6ZN.mjs";
24
24
  import "./chunk-XWO5BP42.mjs";
25
25
  import "./chunk-KEQOAJC2.mjs";
26
26
  import "./chunk-GA3UMQMZ.mjs";
27
- import "./chunk-YGLRZQ4C.mjs";
27
+ import "./chunk-PXYSYQMZ.mjs";
28
28
  import "./chunk-4FM6S5CX.mjs";
29
29
  import {
30
30
  formatProvider
31
31
  } from "./chunk-IR5DHEKS.mjs";
32
- import "./chunk-7DXVXBSA.mjs";
32
+ import "./chunk-NTEWUH4C.mjs";
33
33
  import "./chunk-UC26CCHZ.mjs";
34
34
  import "./chunk-MSDRGCRR.mjs";
35
- import "./chunk-3I6G3NRU.mjs";
35
+ import "./chunk-WG7UTTKY.mjs";
36
36
  import "./chunk-ROKB75YP.mjs";
37
37
  import "./chunk-INE2QCSC.mjs";
38
38
  import "./chunk-BW322BVH.mjs";
@@ -21,13 +21,13 @@ import "./chunk-ZJRFL6ZN.mjs";
21
21
  import "./chunk-XWO5BP42.mjs";
22
22
  import "./chunk-KEQOAJC2.mjs";
23
23
  import "./chunk-GA3UMQMZ.mjs";
24
- import "./chunk-YGLRZQ4C.mjs";
24
+ import "./chunk-PXYSYQMZ.mjs";
25
25
  import "./chunk-4FM6S5CX.mjs";
26
26
  import "./chunk-IR5DHEKS.mjs";
27
- import "./chunk-7DXVXBSA.mjs";
27
+ import "./chunk-NTEWUH4C.mjs";
28
28
  import "./chunk-UC26CCHZ.mjs";
29
29
  import "./chunk-MSDRGCRR.mjs";
30
- import "./chunk-3I6G3NRU.mjs";
30
+ import "./chunk-WG7UTTKY.mjs";
31
31
  import "./chunk-ROKB75YP.mjs";
32
32
  import "./chunk-INE2QCSC.mjs";
33
33
  import "./chunk-BW322BVH.mjs";
@@ -15,12 +15,12 @@ import {
15
15
  PercentageInput
16
16
  } from "./chunk-KEQOAJC2.mjs";
17
17
  import "./chunk-GA3UMQMZ.mjs";
18
- import "./chunk-YGLRZQ4C.mjs";
18
+ import "./chunk-PXYSYQMZ.mjs";
19
19
  import "./chunk-IR5DHEKS.mjs";
20
- import "./chunk-7DXVXBSA.mjs";
20
+ import "./chunk-NTEWUH4C.mjs";
21
21
  import "./chunk-UC26CCHZ.mjs";
22
22
  import "./chunk-MSDRGCRR.mjs";
23
- import "./chunk-3I6G3NRU.mjs";
23
+ import "./chunk-WG7UTTKY.mjs";
24
24
  import "./chunk-ROKB75YP.mjs";
25
25
  import "./chunk-INE2QCSC.mjs";
26
26
  import "./chunk-BW322BVH.mjs";
@@ -12,12 +12,12 @@ import "./chunk-ZJRFL6ZN.mjs";
12
12
  import "./chunk-XWO5BP42.mjs";
13
13
  import "./chunk-KEQOAJC2.mjs";
14
14
  import "./chunk-GA3UMQMZ.mjs";
15
- import "./chunk-YGLRZQ4C.mjs";
15
+ import "./chunk-PXYSYQMZ.mjs";
16
16
  import "./chunk-IR5DHEKS.mjs";
17
- import "./chunk-7DXVXBSA.mjs";
17
+ import "./chunk-NTEWUH4C.mjs";
18
18
  import "./chunk-UC26CCHZ.mjs";
19
19
  import "./chunk-MSDRGCRR.mjs";
20
- import "./chunk-3I6G3NRU.mjs";
20
+ import "./chunk-WG7UTTKY.mjs";
21
21
  import "./chunk-ROKB75YP.mjs";
22
22
  import "./chunk-INE2QCSC.mjs";
23
23
  import "./chunk-BW322BVH.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/dashboard",
3
- "version": "2.12.2-snapshot-20251204204625",
3
+ "version": "2.12.2-snapshot-20251205110418",
4
4
  "scripts": {
5
5
  "generate:static": "node ./scripts/generate-currencies.js && prettier --write ./src/lib/currencies.ts",
6
6
  "dev": "../../../node_modules/.bin/vite",
@@ -46,10 +46,10 @@
46
46
  "@dnd-kit/utilities": "^3.2.2",
47
47
  "@hookform/error-message": "^2.0.1",
48
48
  "@hookform/resolvers": "3.4.2",
49
- "@medusajs/admin-shared": "2.12.2-snapshot-20251204204625",
50
- "@medusajs/icons": "2.12.2-snapshot-20251204204625",
51
- "@medusajs/js-sdk": "2.12.2-snapshot-20251204204625",
52
- "@medusajs/ui": "4.0.30-snapshot-20251204204625",
49
+ "@medusajs/admin-shared": "2.12.2-snapshot-20251205110418",
50
+ "@medusajs/icons": "2.12.2-snapshot-20251205110418",
51
+ "@medusajs/js-sdk": "2.12.2-snapshot-20251205110418",
52
+ "@medusajs/ui": "4.0.30-snapshot-20251205110418",
53
53
  "@radix-ui/react-dialog": "1.1.4",
54
54
  "@radix-ui/react-dismissable-layer": "1.1.4",
55
55
  "@tanstack/react-query": "5.64.2",
@@ -80,10 +80,10 @@
80
80
  "zod": "3.25.76"
81
81
  },
82
82
  "devDependencies": {
83
- "@medusajs/admin-shared": "2.12.2-snapshot-20251204204625",
84
- "@medusajs/admin-vite-plugin": "2.12.2-snapshot-20251204204625",
85
- "@medusajs/types": "2.12.2-snapshot-20251204204625",
86
- "@medusajs/ui-preset": "2.12.2-snapshot-20251204204625"
83
+ "@medusajs/admin-shared": "2.12.2-snapshot-20251205110418",
84
+ "@medusajs/admin-vite-plugin": "2.12.2-snapshot-20251205110418",
85
+ "@medusajs/types": "2.12.2-snapshot-20251205110418",
86
+ "@medusajs/ui-preset": "2.12.2-snapshot-20251205110418"
87
87
  },
88
88
  "packageManager": "yarn@3.2.1"
89
89
  }
@@ -5,15 +5,16 @@ import { PlaceholderCell } from "../../common/placeholder-cell"
5
5
  type TotalCellProps = {
6
6
  currencyCode: string
7
7
  total: number | null
8
+ className?: string
8
9
  }
9
10
 
10
- export const TotalCell = ({ currencyCode, total }: TotalCellProps) => {
11
+ export const TotalCell = ({ currencyCode, total, className }: TotalCellProps) => {
11
12
  if (!total) {
12
13
  return <PlaceholderCell />
13
14
  }
14
15
 
15
16
  return (
16
- <MoneyAmountCell currencyCode={currencyCode} amount={total} align="right" />
17
+ <MoneyAmountCell currencyCode={currencyCode} amount={total} className={className} align="right" />
17
18
  )
18
19
  }
19
20
 
@@ -98,10 +98,24 @@ export const useOrderTableColumns = (props: UseOrderTableColumnsProps) => {
98
98
  columnHelper.accessor("total", {
99
99
  header: () => <TotalHeader />,
100
100
  cell: ({ getValue, row }) => {
101
- const total = getValue()
102
- const currencyCode = row.original.currency_code
103
-
104
- return <TotalCell currencyCode={currencyCode} total={total} />
101
+ const isFullyRefunded = row.original.payment_status === "refunded"
102
+ const total = !isFullyRefunded
103
+ ? getValue()
104
+ : row.original.payment_collections.reduce(
105
+ (acc, payCol) => acc + (payCol.refunded_amount ?? 0),
106
+ 0
107
+ )
108
+ const currencyCode = row.original.currency_code
109
+
110
+ return (
111
+ <TotalCell
112
+ currencyCode={currencyCode}
113
+ total={total}
114
+ className={
115
+ isFullyRefunded ? "text-ui-fg-muted line-through" : ""
116
+ }
117
+ />
118
+ )
105
119
  },
106
120
  }),
107
121
  columnHelper.display({
@@ -24,7 +24,7 @@ export const getOrderPaymentStatus = (
24
24
  ],
25
25
  awaiting: [t("orders.payment.status.awaiting"), "orange"],
26
26
  captured: [t("orders.payment.status.captured"), "green"],
27
- refunded: [t("orders.payment.status.refunded"), "green"],
27
+ refunded: [t("orders.payment.status.refunded"), "red"],
28
28
  partially_refunded: [
29
29
  t("orders.payment.status.partiallyRefunded"),
30
30
  "orange",
@@ -11,7 +11,7 @@ export const DEFAULT_PROPERTIES = [
11
11
  "currency_code",
12
12
  ]
13
13
 
14
- export const DEFAULT_RELATIONS = ["*customer", "*sales_channel"]
14
+ export const DEFAULT_RELATIONS = ["*customer", "*sales_channel", "*payment_collections"]
15
15
 
16
16
  export const DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
17
17
  ","