@medusajs/dashboard 2.10.2-snapshot-20250829084652 → 2.11.0-snapshot-20250829134337

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 (38) hide show
  1. package/dist/{add-campaign-promotions-UQVBTTWK.mjs → add-campaign-promotions-U277KTL4.mjs} +3 -3
  2. package/dist/app.css +0 -6
  3. package/dist/app.js +227 -120
  4. package/dist/app.mjs +2 -2
  5. package/dist/{campaign-detail-FIO6336E.mjs → campaign-detail-6454LL3C.mjs} +3 -3
  6. package/dist/{chunk-RQYKGJZ4.mjs → chunk-3VDOFEA6.mjs} +1 -1
  7. package/dist/{chunk-H3JGGHAQ.mjs → chunk-6OHAQHB4.mjs} +1 -1
  8. package/dist/{chunk-D4T3GFML.mjs → chunk-F7LJJHQT.mjs} +7 -0
  9. package/dist/{chunk-G4ARHIQV.mjs → chunk-FLUC3I3N.mjs} +1 -1
  10. package/dist/{chunk-XDYQGXJ3.mjs → chunk-OQXWDAEB.mjs} +2 -1
  11. package/dist/{chunk-SJFXY376.mjs → chunk-TM44KN7J.mjs} +26 -26
  12. package/dist/{chunk-WLTKZNOI.mjs → chunk-YTDRSPOL.mjs} +1 -1
  13. package/dist/{order-create-claim-DBL2BU5Q.mjs → order-create-claim-ATLKY2SH.mjs} +1 -1
  14. package/dist/{order-create-edit-INKNOFBY.mjs → order-create-edit-5LOTLPD6.mjs} +1 -1
  15. package/dist/{order-create-exchange-6E2VLPU3.mjs → order-create-exchange-TOELYZPA.mjs} +1 -1
  16. package/dist/{order-create-refund-HJMKDY6S.mjs → order-create-refund-ZZNAUXIA.mjs} +1 -1
  17. package/dist/{order-create-return-IIEBZOZZ.mjs → order-create-return-2HT4V6UE.mjs} +1 -1
  18. package/dist/{order-detail-BDX6VUSZ.mjs → order-detail-KSLCQEHJ.mjs} +218 -119
  19. package/dist/{order-edit-billing-address-K2SUQK3S.mjs → order-edit-billing-address-5HQFWKN2.mjs} +1 -1
  20. package/dist/{order-edit-email-FSHV32T6.mjs → order-edit-email-2W33H5CV.mjs} +1 -1
  21. package/dist/{order-edit-shipping-address-RV2QZCR5.mjs → order-edit-shipping-address-VE2BJEHO.mjs} +1 -1
  22. package/dist/{order-request-transfer-NJ24WZ26.mjs → order-request-transfer-U52O2EVC.mjs} +1 -1
  23. package/dist/{product-attributes-HQ2HQQSE.mjs → product-attributes-3ILIUH55.mjs} +3 -3
  24. package/dist/{product-create-Q5ZIYMOR.mjs → product-create-3BFYAUDO.mjs} +3 -3
  25. package/dist/{product-detail-YMCONFSY.mjs → product-detail-Y72S2FF3.mjs} +3 -3
  26. package/dist/{product-edit-SRWVIV2Z.mjs → product-edit-SFN7PUQI.mjs} +3 -3
  27. package/dist/{product-media-F74IPY26.mjs → product-media-XWTASBCL.mjs} +2 -2
  28. package/dist/{product-organization-PKNCLB6W.mjs → product-organization-ATBB7J43.mjs} +3 -3
  29. package/dist/{product-shipping-profile-266AXOO6.mjs → product-shipping-profile-VCUZOITH.mjs} +3 -3
  30. package/dist/{promotion-detail-X5XWYLTC.mjs → promotion-detail-EDLXBH4V.mjs} +2 -2
  31. package/dist/{promotion-list-R7J2AWA3.mjs → promotion-list-QT6HW6VF.mjs} +3 -3
  32. package/dist/{reset-password-OIRVPF4I.mjs → reset-password-O3M4BVYH.mjs} +1 -1
  33. package/dist/{tax-region-create-VO65RBTI.mjs → tax-region-create-MXQGPOV2.mjs} +1 -1
  34. package/package.json +9 -9
  35. package/src/i18n/translations/$schema.json +5 -1
  36. package/src/i18n/translations/en.json +2 -1
  37. package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +247 -178
  38. package/src/routes/orders/order-detail/constants.ts +7 -0
@@ -191,7 +191,7 @@ export const OrderSummarySection = ({
191
191
  <Header order={order} orderPreview={orderPreview} />
192
192
  <ItemBreakdown order={order} reservations={reservations!} />
193
193
  <CostBreakdown order={order} />
194
- <CreditLinesBreakdown order={order} plugins={plugins} />
194
+ <DiscountAndTotalBreakdown order={order} plugins={plugins} />
195
195
  <Total order={order} />
196
196
 
197
197
  {(showAllocateButton || showReturns || showPayment || showRefund) && (
@@ -569,51 +569,30 @@ const CostBreakdown = ({
569
569
  const [isTaxOpen, setIsTaxOpen] = useState(false)
570
570
  const [isShippingOpen, setIsShippingOpen] = useState(false)
571
571
 
572
- const discountCodes = useMemo(() => {
573
- const codes = new Set()
574
- order.items.forEach((item) =>
575
- item.adjustments?.forEach((adj) => {
576
- codes.add(adj.code)
572
+ const taxes = useMemo(() => {
573
+ const taxes: { type: "item" | "shipping"; total: number }[] = []
574
+ if (order.original_item_tax_total) {
575
+ taxes.push({
576
+ type: "item",
577
+ total: order.original_item_tax_total,
577
578
  })
578
- )
579
-
580
- return Array.from(codes).sort()
581
- }, [order])
582
-
583
- const taxCodes = useMemo(() => {
584
- const taxCodeMap = {}
585
-
586
- order.items.forEach((item) => {
587
- item.tax_lines?.forEach((line) => {
588
- taxCodeMap[line.code] = (taxCodeMap[line.code] || 0) + line.total
589
- })
590
- })
591
-
592
- order.shipping_methods.forEach((sm) => {
593
- sm.tax_lines?.forEach((line) => {
594
- taxCodeMap[line.code] = (taxCodeMap[line.code] || 0) + line.total
579
+ }
580
+ if (order.original_shipping_tax_total) {
581
+ taxes.push({
582
+ type: "shipping",
583
+ total: order.original_shipping_tax_total,
595
584
  })
596
- })
597
-
598
- return taxCodeMap
585
+ }
586
+ return taxes
599
587
  }, [order])
600
588
 
601
- const automaticTaxesOn = !!order.region?.automatic_taxes
602
- const hasTaxLines = !!Object.keys(taxCodes).length
603
-
604
- const discountTotal = automaticTaxesOn
605
- ? order.discount_total
606
- : order.discount_subtotal
589
+ const hasTaxes = !!Object.keys(taxes).length
607
590
 
608
591
  return (
609
592
  <div className="text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4">
610
593
  <Cost
611
- label={t(
612
- automaticTaxesOn
613
- ? "orders.summary.itemTotal"
614
- : "orders.summary.itemSubtotal"
615
- )}
616
- value={getLocaleAmount(order.item_total, order.currency_code)}
594
+ label={t("orders.summary.itemSubtotal")}
595
+ value={getLocaleAmount(order.item_subtotal, order.currency_code)}
617
596
  />
618
597
  <Cost
619
598
  label={
@@ -621,13 +600,7 @@ const CostBreakdown = ({
621
600
  onClick={() => setIsShippingOpen((o) => !o)}
622
601
  className="flex cursor-pointer items-center gap-1"
623
602
  >
624
- <span>
625
- {t(
626
- automaticTaxesOn
627
- ? "orders.summary.shippingTotal"
628
- : "orders.summary.shippingSubtotal"
629
- )}
630
- </span>
603
+ <span>{t("orders.summary.shippingSubtotal")}</span>
631
604
  <TriangleDownMini
632
605
  style={{
633
606
  transform: `rotate(${isShippingOpen ? 0 : -90}deg)`,
@@ -635,10 +608,7 @@ const CostBreakdown = ({
635
608
  />
636
609
  </div>
637
610
  }
638
- value={getLocaleAmount(
639
- automaticTaxesOn ? order.shipping_total : order.shipping_subtotal,
640
- order.currency_code
641
- )}
611
+ value={getLocaleAmount(order.shipping_subtotal, order.currency_code)}
642
612
  />
643
613
 
644
614
  {isShippingOpen && (
@@ -665,10 +635,7 @@ const CostBreakdown = ({
665
635
  <div className="bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" />
666
636
  </div>
667
637
  <span className="txt-small text-ui-fg-muted">
668
- {getLocaleAmount(
669
- automaticTaxesOn ? sm.total : sm.subtotal,
670
- order.currency_code
671
- )}
638
+ {getLocaleAmount(sm.subtotal, order.currency_code)}
672
639
  </span>
673
640
  </div>
674
641
  )
@@ -676,36 +643,18 @@ const CostBreakdown = ({
676
643
  </div>
677
644
  )}
678
645
 
679
- <Cost
680
- label={t(
681
- automaticTaxesOn
682
- ? "orders.summary.discountTotal"
683
- : "orders.summary.discountSubtotal"
684
- )}
685
- secondaryValue={discountCodes.join(", ")}
686
- value={
687
- discountTotal > 0
688
- ? `- ${getLocaleAmount(discountTotal, order.currency_code)}`
689
- : "-"
690
- }
691
- />
692
-
693
646
  <>
694
647
  <div className="flex justify-between">
695
648
  <div
696
- onClick={() => hasTaxLines && setIsTaxOpen((o) => !o)}
649
+ onClick={() => hasTaxes && setIsTaxOpen((o) => !o)}
697
650
  className={clx("flex items-center gap-1", {
698
- "cursor-pointer": hasTaxLines,
651
+ "cursor-pointer": hasTaxes,
699
652
  })}
700
653
  >
701
654
  <span className="txt-small select-none">
702
- {t(
703
- automaticTaxesOn
704
- ? "orders.summary.taxTotalIncl"
705
- : "orders.summary.taxTotal"
706
- )}
655
+ {t("orders.summary.taxTotal")}
707
656
  </span>
708
- {hasTaxLines && (
657
+ {hasTaxes && (
709
658
  <TriangleDownMini
710
659
  style={{
711
660
  transform: `rotate(${isTaxOpen ? 0 : -90}deg)`,
@@ -716,21 +665,21 @@ const CostBreakdown = ({
716
665
 
717
666
  <div className="text-right">
718
667
  <Text size="small" leading="compact">
719
- {getLocaleAmount(order.tax_total, order.currency_code)}
668
+ {getLocaleAmount(order.original_tax_total, order.currency_code)}
720
669
  </Text>
721
670
  </div>
722
671
  </div>
723
672
  {isTaxOpen && (
724
673
  <div className="flex flex-col gap-1 pl-5">
725
- {Object.entries(taxCodes).map(([code, total]) => {
674
+ {taxes.map(({ type, total }) => {
726
675
  return (
727
676
  <div
728
- key={code}
677
+ key={type}
729
678
  className="flex items-center justify-between gap-x-2"
730
679
  >
731
680
  <div>
732
681
  <span className="txt-small text-ui-fg-subtle font-medium">
733
- {code}
682
+ {t(`fields.${type}`)}
734
683
  </span>
735
684
  </div>
736
685
  <div className="relative flex-1">
@@ -745,11 +694,23 @@ const CostBreakdown = ({
745
694
  </div>
746
695
  )}
747
696
  </>
697
+ <div className="text-ui-fg-base flex items-center justify-between">
698
+ <Text className="text-ui-fg-subtle" size="small" leading="compact">
699
+ {t("fields.total")}
700
+ </Text>
701
+ <Text
702
+ className="text-ui-fg-subtle text-bold"
703
+ size="small"
704
+ leading="compact"
705
+ >
706
+ {getLocaleAmount(order.original_total, order.currency_code)}
707
+ </Text>
708
+ </div>
748
709
  </div>
749
710
  )
750
711
  }
751
712
 
752
- const CreditLinesBreakdown = ({
713
+ const DiscountAndTotalBreakdown = ({
753
714
  order,
754
715
  plugins,
755
716
  }: {
@@ -757,97 +718,212 @@ const CreditLinesBreakdown = ({
757
718
  plugins: AdminPlugin[]
758
719
  }) => {
759
720
  const { t } = useTranslation()
721
+ const [isDiscountOpen, setIsDiscountOpen] = useState(false)
760
722
  const [isCreditLinesOpen, setIsCreditLinesOpen] = useState(false)
723
+
761
724
  const creditLines = order.credit_lines ?? []
762
725
  const loyaltyPlugin = getLoyaltyPlugin(plugins)
763
726
 
764
- if (creditLines.length === 0) {
765
- return null
766
- }
727
+ const discounts = useMemo(() => {
728
+ const discounts: {
729
+ type: "item" | "shipping"
730
+ total: number
731
+ codes: string[]
732
+ }[] = []
733
+ if (order.item_discount_total) {
734
+ discounts.push({
735
+ type: "item",
736
+ total: order.item_discount_total,
737
+ codes: Array.from(
738
+ new Set(
739
+ order.items
740
+ .flatMap((item) => item.adjustments || [])
741
+ .map((adjustment) => adjustment.code!)
742
+ )
743
+ ).sort(),
744
+ })
745
+ }
746
+ if (order.shipping_discount_total) {
747
+ discounts.push({
748
+ type: "shipping",
749
+ total: order.shipping_discount_total,
750
+ codes: Array.from(
751
+ new Set(
752
+ order.shipping_methods
753
+ .flatMap((shippingMethod) => shippingMethod.adjustments || [])
754
+ .map((adjustment) => adjustment.code!)
755
+ )
756
+ ).sort(),
757
+ })
758
+ }
759
+ return discounts
760
+ }, [order])
767
761
 
768
- return (
769
- <div className="text-ui-fg-subtle flex flex-col">
770
- <>
771
- <div
772
- onClick={() => setIsCreditLinesOpen((o) => !o)}
773
- className="bg-ui-bg-component flex cursor-pointer items-center justify-between border border-dashed px-6 py-4"
774
- >
775
- <div className="flex items-center gap-2">
776
- <TriangleDownMini
777
- style={{
778
- transform: `rotate(${isCreditLinesOpen ? 0 : -90}deg)`,
779
- }}
780
- />
781
- <span className="text-ui-fg-muted txt-small select-none">
782
- {loyaltyPlugin
783
- ? t("orders.giftCardsStoreCreditLines")
784
- : t("orders.creditLines.title")}
785
- </span>
786
- </div>
762
+ const hasDiscount = discounts.length > 0
763
+ const hasCreditLines = creditLines.length > 0
787
764
 
788
- <div>
789
- <Text size="small" leading="compact">
790
- {getLocaleAmount(order.credit_line_total, order.currency_code)}
791
- </Text>
765
+ return (
766
+ <div className="text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4">
767
+ <Cost
768
+ label={
769
+ <div
770
+ onClick={() => hasDiscount && setIsDiscountOpen((o) => !o)}
771
+ className={clx("flex items-center gap-1", {
772
+ "cursor-pointer": hasDiscount,
773
+ })}
774
+ >
775
+ <span>{t("orders.summary.discountTotal")}</span>
776
+ {hasDiscount && (
777
+ <TriangleDownMini
778
+ style={{
779
+ transform: `rotate(${isDiscountOpen ? 0 : -90}deg)`,
780
+ }}
781
+ />
782
+ )}
792
783
  </div>
784
+ }
785
+ value={getLocaleAmount(order.discount_total, order.currency_code)}
786
+ />
787
+ {isDiscountOpen && (
788
+ <div className="flex flex-col gap-1 pl-5">
789
+ {discounts.map(({ type, total, codes }) => {
790
+ return (
791
+ <div
792
+ key={type}
793
+ className="flex items-center justify-between gap-x-2"
794
+ >
795
+ <div className="flex gap-1">
796
+ <span className="txt-small text-ui-fg-subtle font-medium">
797
+ {t(`fields.${type}`)}
798
+ </span>
799
+ <span className="txt-small text-ui-fg-subtle font-medium">
800
+ ({codes.join(", ")})
801
+ </span>
802
+ </div>
803
+ <div className="relative flex-1">
804
+ <div className="bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" />
805
+ </div>
806
+ <span className="txt-small text-ui-fg-muted">
807
+ {getLocaleAmount(total, order.currency_code)}
808
+ </span>
809
+ </div>
810
+ )
811
+ })}
793
812
  </div>
813
+ )}
794
814
 
795
- {isCreditLinesOpen && (
796
- <div className="flex flex-col">
797
- {creditLines.map((creditLine) => {
798
- const prettyReference = creditLine.reference
799
- ?.split("_")
800
- .join(" ")
801
- .split("-")
802
- .join(" ")
803
-
804
- const prettyReferenceId = creditLine.reference_id ? (
805
- <DisplayId id={creditLine.reference_id} />
806
- ) : null
807
-
808
- return (
809
- <div
810
- className="text-ui-fg-subtle grid grid-cols-[1fr_1fr_1fr] items-center px-6 py-4 py-4 sm:grid-cols-[1fr_1fr_1fr]"
811
- key={creditLine.id}
812
- >
813
- <div className="w-full min-w-[60px] overflow-hidden">
814
- <Text
815
- size="small"
816
- leading="compact"
817
- weight="plus"
818
- className="truncate"
819
- >
820
- <DisplayId id={creditLine.id} />
821
- </Text>
822
-
823
- <Text size="small" leading="compact">
824
- {format(
825
- new Date(creditLine.created_at),
826
- "dd MMM, yyyy, HH:mm:ss"
827
- )}
828
- </Text>
829
- </div>
830
-
831
- <div className="hidden items-center justify-end gap-x-2 sm:flex">
832
- <Text size="small" leading="compact" className="capitalize">
833
- {prettyReference} ({prettyReferenceId})
834
- </Text>
835
- </div>
836
-
837
- <div className="flex items-center justify-end">
838
- <Text size="small" leading="compact">
815
+ {hasCreditLines && (
816
+ <>
817
+ <Cost
818
+ label={
819
+ <div
820
+ onClick={() => setIsCreditLinesOpen((o) => !o)}
821
+ className="flex cursor-pointer items-center gap-1"
822
+ >
823
+ <span>
824
+ {loyaltyPlugin
825
+ ? t("orders.giftCardsStoreCreditLines")
826
+ : t("orders.creditLines.title")}
827
+ </span>
828
+ <TriangleDownMini
829
+ style={{
830
+ transform: `rotate(${isCreditLinesOpen ? 0 : -90}deg)`,
831
+ }}
832
+ />
833
+ </div>
834
+ }
835
+ value={getLocaleAmount(
836
+ order.credit_line_total,
837
+ order.currency_code
838
+ )}
839
+ />
840
+ {isCreditLinesOpen && (
841
+ <div className="flex flex-col gap-1 pl-5">
842
+ {creditLines.map((creditLine) => {
843
+ const prettyReference = creditLine.reference
844
+ ?.split("_")
845
+ .join(" ")
846
+ .split("-")
847
+ .join(" ")
848
+
849
+ const prettyReferenceId = creditLine.reference_id ? (
850
+ <DisplayId id={creditLine.reference_id} />
851
+ ) : null
852
+
853
+ return (
854
+ <div
855
+ key={creditLine.id}
856
+ className="flex items-center justify-between gap-x-2"
857
+ >
858
+ <div className="flex items-center">
859
+ <Text
860
+ size="small"
861
+ leading="compact"
862
+ weight="plus"
863
+ className="txt-small text-ui-fg-subtle font-medium"
864
+ >
865
+ <DisplayId id={creditLine.id} />
866
+ </Text>
867
+ <span className="txt-small text-ui-fg-subtle mx-1">
868
+ -
869
+ </span>
870
+ <Tooltip
871
+ content={format(
872
+ new Date(creditLine.created_at),
873
+ "dd MMM, yyyy, HH:mm:ss"
874
+ )}
875
+ >
876
+ <Text
877
+ size="small"
878
+ leading="compact"
879
+ className="txt-small text-ui-fg-subtle"
880
+ >
881
+ {format(
882
+ new Date(creditLine.created_at),
883
+ "dd MMM, yyyy"
884
+ )}
885
+ </Text>
886
+ </Tooltip>
887
+ <span className="txt-small text-ui-fg-subtle mx-1">
888
+ -
889
+ </span>
890
+ <Text
891
+ size="small"
892
+ leading="compact"
893
+ className="txt-small text-ui-fg-subtle capitalize"
894
+ >
895
+ ({prettyReference} {prettyReferenceId})
896
+ </Text>
897
+ </div>
898
+ <div className="relative flex-1">
899
+ <div className="bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" />
900
+ </div>
901
+ <span className="txt-small text-ui-fg-muted">
839
902
  {getLocaleAmount(
840
903
  creditLine.amount as number,
841
904
  order.currency_code
842
905
  )}
843
- </Text>
906
+ </span>
844
907
  </div>
845
- </div>
846
- )
847
- })}
848
- </div>
849
- )}
850
- </>
908
+ )
909
+ })}
910
+ </div>
911
+ )}
912
+ </>
913
+ )}
914
+
915
+ <div className="text-ui-fg-base flex items-center justify-between">
916
+ <Text className="text-ui-fg-subtle" size="small" leading="compact">
917
+ {t("orders.summary.totalAfterDiscount")}
918
+ </Text>
919
+ <Text
920
+ className="text-ui-fg-subtle text-bold"
921
+ size="small"
922
+ leading="compact"
923
+ >
924
+ {getLocaleAmount(order.total, order.currency_code)}
925
+ </Text>
926
+ </div>
851
927
  </div>
852
928
  )
853
929
  }
@@ -1138,15 +1214,6 @@ const Total = ({ order }: { order: AdminOrder }) => {
1138
1214
 
1139
1215
  return (
1140
1216
  <div className=" flex flex-col gap-y-2 px-6 py-4">
1141
- <div className="text-ui-fg-base flex items-center justify-between">
1142
- <Text className="text-ui-fg-subtle" size="small" leading="compact">
1143
- {t("fields.total")}
1144
- </Text>
1145
- <Text className="text-ui-fg-subtle" size="small" leading="compact">
1146
- {getStylizedAmount(order.original_total, order.currency_code)}
1147
- </Text>
1148
- </div>
1149
-
1150
1217
  <div className="text-ui-fg-base flex items-center justify-between">
1151
1218
  <Text className="text-ui-fg-subtle" size="small" leading="compact">
1152
1219
  {t("fields.paidTotal")}
@@ -1159,18 +1226,20 @@ const Total = ({ order }: { order: AdminOrder }) => {
1159
1226
  </Text>
1160
1227
  </div>
1161
1228
 
1162
- <div className="text-ui-fg-base flex items-center justify-between">
1163
- <Text className="text-ui-fg-subtle" size="small" leading="compact">
1164
- {t("fields.creditTotal")}
1165
- </Text>
1229
+ {getTotalCreditLines(order.credit_lines ?? []) > 0 && (
1230
+ <div className="text-ui-fg-base flex items-center justify-between">
1231
+ <Text className="text-ui-fg-subtle" size="small" leading="compact">
1232
+ {t("fields.creditTotal")}
1233
+ </Text>
1166
1234
 
1167
- <Text className="text-ui-fg-subtle" size="small" leading="compact">
1168
- {getStylizedAmount(
1169
- getTotalCreditLines(order.credit_lines ?? []),
1170
- order.currency_code
1171
- )}
1172
- </Text>
1173
- </div>
1235
+ <Text className="text-ui-fg-subtle" size="small" leading="compact">
1236
+ {getStylizedAmount(
1237
+ getTotalCreditLines(order.credit_lines ?? []),
1238
+ order.currency_code
1239
+ )}
1240
+ </Text>
1241
+ </div>
1242
+ )}
1174
1243
 
1175
1244
  <div className="text-ui-fg-base flex items-center justify-between">
1176
1245
  <Text
@@ -1181,7 +1250,7 @@ const Total = ({ order }: { order: AdminOrder }) => {
1181
1250
  {t("orders.returns.outstandingAmount")}
1182
1251
  </Text>
1183
1252
  <Text
1184
- className="text-ui-fg-subtle text-bold"
1253
+ className="text-ui-fg-subtle text-bold" // ici
1185
1254
  size="small"
1186
1255
  leading="compact"
1187
1256
  >
@@ -10,14 +10,21 @@ const DEFAULT_PROPERTIES = [
10
10
  // --- TOTALS ---
11
11
  "total",
12
12
  "credit_line_total",
13
+ "item_subtotal",
13
14
  "item_total",
15
+ "item_tax_total",
16
+ "original_item_tax_total",
17
+ "item_discount_total",
14
18
  "shipping_subtotal",
15
19
  "original_total",
20
+ "original_tax_total",
16
21
  "subtotal",
17
22
  "discount_total",
18
23
  "discount_subtotal",
19
24
  "shipping_total",
20
25
  "shipping_tax_total",
26
+ "original_shipping_tax_total",
27
+ "shipping_discount_total",
21
28
  "tax_total",
22
29
  "refundable_total",
23
30
  "order_change",