@medusajs/dashboard 2.10.4-snapshot-20250923121159 → 2.10.4-snapshot-20250925180256

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 (336) hide show
  1. package/dist/{add-campaign-promotions-JOVLXLS4.mjs → add-campaign-promotions-3BB3BLFD.mjs} +7 -6
  2. package/dist/{adjust-inventory-WBEBMJN7.mjs → adjust-inventory-OIJTAKHP.mjs} +1 -1
  3. package/dist/{api-key-management-create-VXPZX2Q5.mjs → api-key-management-create-XDQHUNWK.mjs} +3 -3
  4. package/dist/{api-key-management-detail-I7T67TXF.mjs → api-key-management-detail-ZQLQKGYF.mjs} +15 -14
  5. package/dist/{api-key-management-edit-7CGMSHAY.mjs → api-key-management-edit-2SUSKI7T.mjs} +3 -3
  6. package/dist/{api-key-management-list-5DI3L4DV.mjs → api-key-management-list-C2WM4PHC.mjs} +8 -7
  7. package/dist/{api-key-management-sales-channels-6GN6RVZ2.mjs → api-key-management-sales-channels-MVHVMPF6.mjs} +6 -5
  8. package/dist/app.css +89 -31
  9. package/dist/app.js +7166 -6079
  10. package/dist/app.mjs +17 -15
  11. package/dist/{campaign-budget-edit-OXNTSPGE.mjs → campaign-budget-edit-UWGCET5Z.mjs} +1 -1
  12. package/dist/{campaign-configuration-Z5HA2DG3.mjs → campaign-configuration-WWCCFNYQ.mjs} +1 -1
  13. package/dist/{campaign-create-AVBNHFC2.mjs → campaign-create-CQ3XBHSY.mjs} +4 -3
  14. package/dist/{campaign-detail-NRZHGINV.mjs → campaign-detail-LASOFZ2O.mjs} +22 -21
  15. package/dist/{campaign-edit-3TDW52BO.mjs → campaign-edit-R43GXNET.mjs} +1 -1
  16. package/dist/{campaign-list-G4MD3RPU.mjs → campaign-list-CDO5PRTL.mjs} +7 -6
  17. package/dist/{categories-metadata-GXWJ3HOG.mjs → categories-metadata-HUIY6V4F.mjs} +13 -12
  18. package/dist/{category-create-FOVB5MJ4.mjs → category-create-GMFWRFT7.mjs} +38 -16
  19. package/dist/{category-detail-ENUI5EFL.mjs → category-detail-ZJJBYVFX.mjs} +19 -18
  20. package/dist/{category-edit-O4ZSANE5.mjs → category-edit-HCHER73V.mjs} +36 -16
  21. package/dist/{category-list-UI6W5KF5.mjs → category-list-IXW2NWWJ.mjs} +8 -7
  22. package/dist/{category-organize-BW3YOPUS.mjs → category-organize-LRQKM4LA.mjs} +2 -2
  23. package/dist/{category-products-ZG5QDWSW.mjs → category-products-7N4TITQ4.mjs} +15 -14
  24. package/dist/{chunk-2HKRIUW4.mjs → chunk-2PGNKUXS.mjs} +1 -1
  25. package/dist/{chunk-X4X5KUGQ.mjs → chunk-4QUHWHBD.mjs} +3 -0
  26. package/dist/chunk-5U3FFMC7.mjs +84 -0
  27. package/dist/{chunk-Y4YXZY7R.mjs → chunk-5WMJLYEP.mjs} +2 -2
  28. package/dist/{chunk-RVOPC44F.mjs → chunk-7DFTLGA5.mjs} +623 -682
  29. package/dist/{chunk-YM4QJC6Y.mjs → chunk-7GBCLBMX.mjs} +1 -1
  30. package/dist/{chunk-JHXKKOHO.mjs → chunk-7JJTWGHU.mjs} +49 -15
  31. package/dist/{chunk-2YP2ZNKR.mjs → chunk-AN5IILM2.mjs} +1 -1
  32. package/dist/{chunk-YWNHMIEQ.mjs → chunk-AXXGAOQL.mjs} +2 -2
  33. package/dist/{chunk-5WKYR6PY.mjs → chunk-CXTAH75K.mjs} +1 -1
  34. package/dist/{chunk-J5E7MQSS.mjs → chunk-CY33DS7K.mjs} +6 -0
  35. package/dist/{chunk-ZJA7VBUR.mjs → chunk-DKOCYXB5.mjs} +34 -1
  36. package/dist/{chunk-7VJK6HNE.mjs → chunk-EYL2JACT.mjs} +4 -4
  37. package/dist/{chunk-BFNH5UWD.mjs → chunk-EYTETK3W.mjs} +1 -1
  38. package/dist/{chunk-74K7HGNI.mjs → chunk-FXG2Z3QT.mjs} +3 -2
  39. package/dist/{chunk-2RQLKDBF.mjs → chunk-GIZFNLKK.mjs} +103 -96
  40. package/dist/{chunk-AOFGTNG6.mjs → chunk-HQKGZADC.mjs} +6 -1
  41. package/dist/{chunk-LBIOZZPA.mjs → chunk-HWKLNKOY.mjs} +1 -1
  42. package/dist/{chunk-S2UEWRDA.mjs → chunk-IL5IMREK.mjs} +59 -49
  43. package/dist/{chunk-JIQQKKLO.mjs → chunk-IP2QPPWC.mjs} +1 -1
  44. package/dist/{chunk-SCBXRJPV.mjs → chunk-IRO6DO7J.mjs} +1 -1
  45. package/dist/{chunk-YI4CZGTU.mjs → chunk-ITJEYJNB.mjs} +1 -1
  46. package/dist/{chunk-T7G2CURS.mjs → chunk-IVZ6BMDB.mjs} +1 -0
  47. package/dist/{chunk-XGJ5DXXG.mjs → chunk-K2HM7KXJ.mjs} +12 -12
  48. package/dist/{chunk-OKMF4YI7.mjs → chunk-K3OMOMRB.mjs} +25 -0
  49. package/dist/{chunk-2LPGQWPV.mjs → chunk-KTL6E2WT.mjs} +1 -1
  50. package/dist/{chunk-OHSRRFGN.mjs → chunk-LKVQ5YC6.mjs} +1 -1
  51. package/dist/{chunk-QGCKTVQX.mjs → chunk-LMRZMI7O.mjs} +1 -1
  52. package/dist/{chunk-Q5DI5VYN.mjs → chunk-MLNUGLGT.mjs} +1 -1
  53. package/dist/{chunk-5M5ZVAWU.mjs → chunk-MSOFJHH3.mjs} +2 -2
  54. package/dist/{chunk-JMQ6V54O.mjs → chunk-NFQXNOP7.mjs} +1 -1
  55. package/dist/{chunk-UWJBDOQD.mjs → chunk-NKVMOKZA.mjs} +41 -29
  56. package/dist/{chunk-NCR5UWRI.mjs → chunk-NY6I2FYO.mjs} +1 -1
  57. package/dist/{chunk-2PMSBTXI.mjs → chunk-OFN7DIZA.mjs} +17 -13
  58. package/dist/{chunk-3NJTXRIY.mjs → chunk-OZPB6JBL.mjs} +5 -1
  59. package/dist/{chunk-FPJBF7VS.mjs → chunk-P2O6XTD4.mjs} +1 -1
  60. package/dist/{chunk-OGHQ6VJI.mjs → chunk-PAG2HG6I.mjs} +44 -5
  61. package/dist/{chunk-EFA7S5L3.mjs → chunk-PGTXMCSV.mjs} +1 -1
  62. package/dist/{chunk-D7H6ZNK4.mjs → chunk-PRLQLEEQ.mjs} +2 -0
  63. package/dist/{chunk-OLUNPPBR.mjs → chunk-QPLPGRYF.mjs} +1 -1
  64. package/dist/{chunk-ZODJNBAV.mjs → chunk-R2G2B47Y.mjs} +1 -0
  65. package/dist/{chunk-SMHXCFRS.mjs → chunk-RBDAWRFF.mjs} +54 -41
  66. package/dist/{chunk-HUX22ZHT.mjs → chunk-RF75BZNF.mjs} +3 -3
  67. package/dist/{chunk-4RG7UJCT.mjs → chunk-RGP3IXX4.mjs} +1 -1
  68. package/dist/chunk-S4DMV3ZT.mjs +35 -0
  69. package/dist/{chunk-5NQ3X2JI.mjs → chunk-SNDSWB6B.mjs} +1 -1
  70. package/dist/{chunk-EE7SOCEQ.mjs → chunk-SQFZWNYA.mjs} +4 -4
  71. package/dist/{chunk-O74UDEWT.mjs → chunk-TKZK3YPU.mjs} +1 -1
  72. package/dist/{chunk-KSRI5LOF.mjs → chunk-U25RCIX2.mjs} +2 -2
  73. package/dist/{chunk-BHZAQZYP.mjs → chunk-U4R5MBF2.mjs} +1 -1
  74. package/dist/{chunk-CK3VFTZM.mjs → chunk-UKX2FFFV.mjs} +2 -2
  75. package/dist/{chunk-37UXEJF2.mjs → chunk-V6JXTITD.mjs} +1 -1
  76. package/dist/{chunk-R2NWOCML.mjs → chunk-VI7MI3US.mjs} +8 -2
  77. package/dist/chunk-VLOA5XAC.mjs +113 -0
  78. package/dist/{chunk-NRBOPOMS.mjs → chunk-VWQYN2RW.mjs} +1 -1
  79. package/dist/{chunk-4Q4LIFFO.mjs → chunk-XP3BY6G6.mjs} +1 -1
  80. package/dist/{chunk-6AGMMT5H.mjs → chunk-XR7I5HGZ.mjs} +4 -4
  81. package/dist/{chunk-6IZUCU7K.mjs → chunk-YSFTQA6Y.mjs} +2 -2
  82. package/dist/{chunk-XKXNQ2KV.mjs → chunk-ZCARHA6C.mjs} +1 -1
  83. package/dist/{chunk-RMEITCLS.mjs → chunk-ZSDEVTFT.mjs} +1 -1
  84. package/dist/{collection-add-products-2ISNNIHD.mjs → collection-add-products-WKMNYPLS.mjs} +15 -14
  85. package/dist/{collection-create-75ZI5NDG.mjs → collection-create-PTOF33H2.mjs} +2 -2
  86. package/dist/{collection-detail-OSX6NHNQ.mjs → collection-detail-NONKXELG.mjs} +17 -16
  87. package/dist/{collection-edit-RD6BDDDI.mjs → collection-edit-WM57WXJ2.mjs} +2 -2
  88. package/dist/{collection-list-MPIYSHQJ.mjs → collection-list-3ZHLS2LP.mjs} +19 -18
  89. package/dist/{collection-metadata-EOFYXEQI.mjs → collection-metadata-J6P3K7U6.mjs} +13 -12
  90. package/dist/{customer-create-address-TPSDYZBN.mjs → customer-create-address-JOYBIPPN.mjs} +1 -1
  91. package/dist/{customer-detail-FCNRRZSW.mjs → customer-detail-5Y7ICDMA.mjs} +17 -16
  92. package/dist/{customer-group-add-customers-ULPWTALS.mjs → customer-group-add-customers-YF2T323Z.mjs} +3 -2
  93. package/dist/{customer-group-detail-QI3QLJJL.mjs → customer-group-detail-PXP73BFA.mjs} +16 -15
  94. package/dist/{customer-group-list-D26UKQMR.mjs → customer-group-list-3DB643XQ.mjs} +15 -14
  95. package/dist/{customer-group-metadata-UPAPULMF.mjs → customer-group-metadata-YQCOIVQG.mjs} +2 -1
  96. package/dist/{customer-list-SINCBCOZ.mjs → customer-list-5IWEXYSW.mjs} +5 -4
  97. package/dist/{customer-metadata-5NPUMPZ2.mjs → customer-metadata-JZEJBH4V.mjs} +2 -1
  98. package/dist/{customers-add-customer-group-5TFTVDB6.mjs → customers-add-customer-group-BVUVU46N.mjs} +14 -13
  99. package/dist/{edit-inventory-item-ZPE4MMC4.mjs → edit-inventory-item-UV2Z7SYL.mjs} +1 -1
  100. package/dist/{edit-inventory-item-attributes-KT7BSPZ7.mjs → edit-inventory-item-attributes-BRC3KBYT.mjs} +2 -2
  101. package/dist/{edit-reservation-EKH4RIAX.mjs → edit-reservation-NYGQBFBO.mjs} +7 -2
  102. package/dist/{edit-rules-63NG4QVR.mjs → edit-rules-3MSTPCE5.mjs} +14 -13
  103. package/dist/{inventory-create-RIVJFJJQ.mjs → inventory-create-NEYX7PZJ.mjs} +19 -14
  104. package/dist/{inventory-detail-QHL7TJFZ.mjs → inventory-detail-66HDQL3W.mjs} +25 -18
  105. package/dist/{inventory-list-YMYF7QVP.mjs → inventory-list-J5VZGQ2M.mjs} +6 -5
  106. package/dist/{inventory-metadata-FH4CHJBA.mjs → inventory-metadata-OSTUWM23.mjs} +13 -12
  107. package/dist/{inventory-stock-D6E4LQRK.mjs → inventory-stock-XY2OCAY3.mjs} +14 -13
  108. package/dist/{location-create-LUP363ZB.mjs → location-create-22H74MFP.mjs} +1 -1
  109. package/dist/{location-detail-Z6ZDX6RY.mjs → location-detail-UZHD3IKW.mjs} +14 -13
  110. package/dist/{location-edit-26K26G23.mjs → location-edit-X6JBEWIF.mjs} +2 -2
  111. package/dist/{location-fulfillment-providers-45VXZMZI.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +16 -15
  112. package/dist/{location-list-62KBWY4T.mjs → location-list-VNEYHAKV.mjs} +15 -8
  113. package/dist/{location-sales-channels-O5XLIPAR.mjs → location-sales-channels-66ZE3ZMI.mjs} +5 -4
  114. package/dist/{location-service-zone-create-RPFLBVV4.mjs → location-service-zone-create-D5QSFS3M.mjs} +4 -3
  115. package/dist/{location-service-zone-manage-areas-VEUUGPKF.mjs → location-service-zone-manage-areas-HKCALG4Q.mjs} +4 -3
  116. package/dist/{location-service-zone-shipping-option-create-NO3665DC.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +23 -15
  117. package/dist/{location-service-zone-shipping-option-edit-TMXNX4VX.mjs → location-service-zone-shipping-option-edit-DOCLZOO7.mjs} +40 -28
  118. package/dist/{location-service-zone-shipping-option-pricing-U2SDK5DE.mjs → location-service-zone-shipping-option-pricing-FLB63UKY.mjs} +3 -2
  119. package/dist/{login-DSPNELTI.mjs → login-LQRL2ZDY.mjs} +11 -11
  120. package/dist/manage-locations-RPHTPGRE.mjs +247 -0
  121. package/dist/{order-allocate-items-J3ZHGC22.mjs → order-allocate-items-2RYXQRVK.mjs} +26 -14
  122. package/dist/{order-create-claim-V63BWLB5.mjs → order-create-claim-7UF734QH.mjs} +20 -18
  123. package/dist/{order-create-edit-NPF4UZ4D.mjs → order-create-edit-MZHUVTGE.mjs} +18 -16
  124. package/dist/{order-create-exchange-RHIPPSKU.mjs → order-create-exchange-2UGEF65S.mjs} +20 -18
  125. package/dist/{order-create-fulfillment-4SSUHQ75.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +19 -12
  126. package/dist/{order-create-refund-QVQC5ZP5.mjs → order-create-refund-CJDKVBSE.mjs} +52 -17
  127. package/dist/{order-create-return-GVA6M2RY.mjs → order-create-return-5IPRHHLJ.mjs} +11 -9
  128. package/dist/{order-create-shipment-TJAARKWA.mjs → order-create-shipment-3FDVQ6WT.mjs} +13 -11
  129. package/dist/{order-detail-2MIN6B2I.mjs → order-detail-SEPCRJW5.mjs} +50 -42
  130. package/dist/{order-edit-billing-address-QP2I5F3E.mjs → order-edit-billing-address-J75NQFRY.mjs} +12 -12
  131. package/dist/{order-edit-email-7WT7XTHB.mjs → order-edit-email-ABFQKE6A.mjs} +11 -11
  132. package/dist/{order-edit-shipping-address-3QFMQP4I.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +12 -12
  133. package/dist/{order-list-73DBATIK.mjs → order-list-VDUUHTSU.mjs} +11 -10
  134. package/dist/{order-metadata-YJS26DHK.mjs → order-metadata-5NF3ICQL.mjs} +13 -12
  135. package/dist/{order-receive-return-PZMMMUB2.mjs → order-receive-return-IM65P7XQ.mjs} +14 -13
  136. package/dist/{order-request-transfer-QBIZD36E.mjs → order-request-transfer-LZ25KEDA.mjs} +12 -12
  137. package/dist/{price-list-configuration-435QDWB2.mjs → price-list-configuration-VACKCKJF.mjs} +6 -5
  138. package/dist/{price-list-create-RXDH5CXF.mjs → price-list-create-EC5VGCMW.mjs} +39 -24
  139. package/dist/{price-list-detail-PKIKOJ4H.mjs → price-list-detail-CRTJA5O4.mjs} +18 -17
  140. package/dist/{price-list-edit-ZGBOZYSC.mjs → price-list-edit-G73ZIU2Y.mjs} +51 -31
  141. package/dist/{price-list-list-C6NEB2R4.mjs → price-list-list-QYZSJNF5.mjs} +8 -7
  142. package/dist/{price-list-prices-add-2CDPUSYA.mjs → price-list-prices-add-HYCM4QDY.mjs} +28 -20
  143. package/dist/{price-list-prices-edit-ENB4GJZT.mjs → price-list-prices-edit-R53ITSDD.mjs} +5 -4
  144. package/dist/{product-attributes-FQDJCNUB.mjs → product-attributes-WVQRK3GQ.mjs} +19 -17
  145. package/dist/{product-create-W37RQLON.mjs → product-create-PWSPOVUS.mjs} +27 -21
  146. package/dist/{product-create-option-3JR35UZ5.mjs → product-create-option-OW2LMVST.mjs} +1 -1
  147. package/dist/{product-create-variant-KJKQ6ROY.mjs → product-create-variant-V2QGXFEF.mjs} +31 -18
  148. package/dist/{product-detail-TANIKAEK.mjs → product-detail-EBPCCBI4.mjs} +21 -19
  149. package/dist/{product-edit-DO76GHBI.mjs → product-edit-5E6D43KE.mjs} +41 -28
  150. package/dist/{product-edit-option-VNDGZ37A.mjs → product-edit-option-OM56DLU6.mjs} +1 -1
  151. package/dist/{product-export-XERWEI5H.mjs → product-export-VFC3I5DK.mjs} +13 -13
  152. package/dist/{product-import-AGFJMSVK.mjs → product-import-V7EZJ2TU.mjs} +14 -13
  153. package/dist/{product-list-KJ3HXPLB.mjs → product-list-FFZO57JG.mjs} +19 -18
  154. package/dist/{product-media-VG4YM2W6.mjs → product-media-TRKQTA4G.mjs} +5 -5
  155. package/dist/{product-metadata-NZ3HKO67.mjs → product-metadata-VYQ65KYI.mjs} +13 -12
  156. package/dist/{product-organization-OOVUGXNP.mjs → product-organization-OCVSTKEK.mjs} +20 -18
  157. package/dist/{product-prices-PCBMYYGV.mjs → product-prices-XLY5TUSJ.mjs} +3 -2
  158. package/dist/{product-sales-channels-QEJRSCAU.mjs → product-sales-channels-KSIHPDJG.mjs} +5 -4
  159. package/dist/{product-shipping-profile-FFMKOF6B.mjs → product-shipping-profile-SG6NDHF4.mjs} +19 -17
  160. package/dist/{product-stock-SUVEQZML.mjs → product-stock-LJRYRSKN.mjs} +16 -14
  161. package/dist/{product-tag-create-T6HVAQKN.mjs → product-tag-create-EB5CVUOP.mjs} +11 -11
  162. package/dist/{product-tag-detail-HOWUZC3P.mjs → product-tag-detail-V5CZY4R4.mjs} +22 -21
  163. package/dist/{product-tag-edit-WWQDNDRC.mjs → product-tag-edit-YATSW5OK.mjs} +11 -11
  164. package/dist/{product-tag-list-FAKSLONF.mjs → product-tag-list-2LFGEFGL.mjs} +22 -21
  165. package/dist/{product-tag-metadata-6B56VEZU.mjs → product-tag-metadata-R5P5FWAZ.mjs} +13 -12
  166. package/dist/{product-type-detail-KN64HYUV.mjs → product-type-detail-BZNI5GJ5.mjs} +17 -16
  167. package/dist/{product-type-list-6ZIWPIUH.mjs → product-type-list-MJLAGQYC.mjs} +5 -4
  168. package/dist/{product-type-metadata-F3FTI6OG.mjs → product-type-metadata-SUQHWLWA.mjs} +13 -12
  169. package/dist/{product-variant-detail-OUHBUY4J.mjs → product-variant-detail-W2JHQQQJ.mjs} +16 -15
  170. package/dist/{product-variant-edit-NBYHDUJ5.mjs → product-variant-edit-DSY77FF4.mjs} +17 -13
  171. package/dist/{product-variant-manage-inventory-items-TM3VAHBJ.mjs → product-variant-manage-inventory-items-JH65NAD4.mjs} +2 -2
  172. package/dist/{product-variant-metadata-XDVLJYGQ.mjs → product-variant-metadata-HE3MRTJB.mjs} +13 -12
  173. package/dist/{profile-detail-ROG22HHL.mjs → profile-detail-XYAQ2G36.mjs} +3 -2
  174. package/dist/{profile-edit-HSUQIQQH.mjs → profile-edit-7WD4FTRH.mjs} +31 -19
  175. package/dist/{promotion-add-campaign-7R26KU2U.mjs → promotion-add-campaign-YOUUM6RB.mjs} +9 -21
  176. package/dist/{promotion-create-UUOG52D5.mjs → promotion-create-NBFV4XQV.mjs} +29 -17
  177. package/dist/{promotion-detail-GONXLJZ2.mjs → promotion-detail-247QD6DA.mjs} +16 -15
  178. package/dist/{promotion-edit-details-HQLYX4X4.mjs → promotion-edit-details-A2UUSAZA.mjs} +10 -2
  179. package/dist/{promotion-list-NNEMVJ6I.mjs → promotion-list-WDHOSD55.mjs} +9 -8
  180. package/dist/refund-reason-create-45ZZOX7F.mjs +157 -0
  181. package/dist/refund-reason-edit-E2HDAQZI.mjs +144 -0
  182. package/dist/refund-reason-list-WI7NHRDS.mjs +245 -0
  183. package/dist/{region-add-countries-Y4YAHDUZ.mjs → region-add-countries-6GSF4CKJ.mjs} +3 -2
  184. package/dist/{region-create-5Y3GIQBV.mjs → region-create-AV2NJNNJ.mjs} +49 -39
  185. package/dist/{region-detail-CWRFM6P3.mjs → region-detail-PB7EUSTD.mjs} +5 -4
  186. package/dist/region-edit-X7CSUICV.mjs +308 -0
  187. package/dist/{region-list-FQNI7F37.mjs → region-list-52LF5S4S.mjs} +5 -4
  188. package/dist/{region-metadata-IQVB4ERU.mjs → region-metadata-3JIGHAUI.mjs} +13 -12
  189. package/dist/{reservation-create-7RFXWDXB.mjs → reservation-create-FKBCGQA7.mjs} +3 -3
  190. package/dist/{reservation-detail-RTGHD35L.mjs → reservation-detail-FENCNQDA.mjs} +15 -14
  191. package/dist/{reservation-list-UOC7RNRZ.mjs → reservation-list-NOWJUMXV.mjs} +7 -6
  192. package/dist/{reservation-metadata-WKJXBRLQ.mjs → reservation-metadata-DQ3A7MHU.mjs} +13 -12
  193. package/dist/{reset-password-ANJHGYUE.mjs → reset-password-LCVV4NOA.mjs} +1 -1
  194. package/dist/{return-reason-list-MOP7YWMZ.mjs → return-reason-list-FW7OYUOW.mjs} +8 -7
  195. package/dist/{sales-channel-add-products-OKVZJ6FI.mjs → sales-channel-add-products-G4EUOCWY.mjs} +15 -14
  196. package/dist/{sales-channel-create-3MPOMVPD.mjs → sales-channel-create-NODWGJDD.mjs} +4 -2
  197. package/dist/{sales-channel-detail-WESBK6Q7.mjs → sales-channel-detail-NT7PEVVH.mjs} +17 -16
  198. package/dist/{sales-channel-edit-LSLAM7A4.mjs → sales-channel-edit-ALIRERVH.mjs} +4 -2
  199. package/dist/{sales-channel-list-LKVHXUXW.mjs → sales-channel-list-REV2RETE.mjs} +15 -14
  200. package/dist/{sales-channel-metadata-2OQAHYB4.mjs → sales-channel-metadata-O5O6ADG5.mjs} +13 -12
  201. package/dist/{shipping-option-type-create-3CGPGDYJ.mjs → shipping-option-type-create-7FSJNHHA.mjs} +11 -11
  202. package/dist/{shipping-option-type-detail-S23H2OGW.mjs → shipping-option-type-detail-6UQST7RY.mjs} +15 -14
  203. package/dist/{shipping-option-type-edit-IHE7XM6M.mjs → shipping-option-type-edit-B475WRRR.mjs} +11 -11
  204. package/dist/{shipping-option-type-list-47GRJ6EC.mjs → shipping-option-type-list-DTETSFSA.mjs} +17 -16
  205. package/dist/{shipping-profile-detail-FDUPDSH4.mjs → shipping-profile-detail-FS46IJZP.mjs} +3 -2
  206. package/dist/{shipping-profile-metadata-OXWOXAAR.mjs → shipping-profile-metadata-PRINFNSY.mjs} +13 -12
  207. package/dist/{shipping-profiles-list-ZHJEUIKJ.mjs → shipping-profiles-list-QFOG5IDH.mjs} +5 -4
  208. package/dist/{store-add-currencies-R26SVHT5.mjs → store-add-currencies-W4MWOALR.mjs} +5 -2
  209. package/dist/{store-detail-4K7TW2TP.mjs → store-detail-QKF2TVNW.mjs} +16 -15
  210. package/dist/{store-edit-EU55TNFU.mjs → store-edit-ZPGTNZGL.mjs} +24 -12
  211. package/dist/{store-metadata-JP2CI7EF.mjs → store-metadata-M6GIKI5P.mjs} +13 -12
  212. package/dist/{tax-region-create-IWM4755I.mjs → tax-region-create-4DTM3RTZ.mjs} +14 -14
  213. package/dist/{tax-region-detail-V2F2DONN.mjs → tax-region-detail-SLCI3JYL.mjs} +18 -17
  214. package/dist/{tax-region-edit-CJPMYTBF.mjs → tax-region-edit-CJ63JXFQ.mjs} +12 -12
  215. package/dist/{tax-region-list-NMM3LBPN.mjs → tax-region-list-SQQE2GUU.mjs} +6 -5
  216. package/dist/{tax-region-province-create-GIIU2G7K.mjs → tax-region-province-create-SBRFGWN3.mjs} +2 -2
  217. package/dist/{tax-region-province-detail-4PUQ5ADW.mjs → tax-region-province-detail-BGL2USQF.mjs} +17 -16
  218. package/dist/{tax-region-tax-override-create-3SCIOK4P.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +25 -20
  219. package/dist/{tax-region-tax-override-edit-P3QJKET3.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +25 -20
  220. package/dist/{tax-region-tax-rate-create-Z43M3JTQ.mjs → tax-region-tax-rate-create-JIV5FXUD.mjs} +1 -1
  221. package/dist/{tax-region-tax-rate-edit-RBF5D2MK.mjs → tax-region-tax-rate-edit-WU2ZQLZQ.mjs} +1 -1
  222. package/dist/{user-detail-VIVFFLOW.mjs → user-detail-ZFW3YF3M.mjs} +4 -3
  223. package/dist/{user-invite-W26LOOW7.mjs → user-invite-KUH4AI2L.mjs} +4 -3
  224. package/dist/{user-list-MKJLB5CQ.mjs → user-list-G4H2RSDX.mjs} +4 -3
  225. package/dist/{user-metadata-ZURLDLGC.mjs → user-metadata-DFTGB46F.mjs} +13 -12
  226. package/dist/{workflow-execution-detail-4R6AFFHV.mjs → workflow-execution-detail-YNT2RKIP.mjs} +17 -13
  227. package/dist/{workflow-execution-list-5J3DQQRD.mjs → workflow-execution-list-5WL4L464.mjs} +4 -3
  228. package/package.json +9 -9
  229. package/src/components/common/action-menu/action-menu.tsx +3 -1
  230. package/src/components/common/customer-info/customer-info.tsx +1 -1
  231. package/src/components/common/json-view-section/json-view-section.tsx +4 -1
  232. package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
  233. package/src/components/common/switch-box/switch-box.tsx +2 -0
  234. package/src/components/data-grid/components/data-grid-root.tsx +9 -3
  235. package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +2 -1
  236. package/src/components/filtering/filter-group/filter-group.tsx +5 -1
  237. package/src/components/filtering/order-by/order-by.tsx +4 -1
  238. package/src/components/forms/address-form/address-form.tsx +7 -2
  239. package/src/components/forms/metadata-form/metadata-form.tsx +6 -3
  240. package/src/components/inputs/combobox/combobox.tsx +20 -13
  241. package/src/components/inputs/country-select/country-select.tsx +1 -1
  242. package/src/components/inputs/province-select/province-select.tsx +1 -1
  243. package/src/components/layout/main-layout/main-layout.tsx +7 -5
  244. package/src/components/layout/settings-layout/settings-layout.tsx +4 -0
  245. package/src/components/layout/shell/shell.tsx +6 -6
  246. package/src/components/layout/user-menu/user-menu.tsx +12 -10
  247. package/src/components/search/search.tsx +5 -3
  248. package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +4 -1
  249. package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
  250. package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
  251. package/src/dashboard-app/routes/get-route.map.tsx +36 -0
  252. package/src/hooks/api/campaigns.tsx +1 -0
  253. package/src/hooks/api/inventory.tsx +3 -0
  254. package/src/hooks/api/payments.tsx +6 -1
  255. package/src/hooks/api/refund-reasons.tsx +105 -10
  256. package/src/hooks/table/columns/index.ts +1 -0
  257. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +32 -0
  258. package/src/hooks/table/query/index.ts +1 -0
  259. package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
  260. package/src/hooks/use-document-direction.tsx +54 -0
  261. package/src/i18n/translations/$schema.json +118 -0
  262. package/src/i18n/translations/en.json +34 -1
  263. package/src/providers/i18n-provider/i18n-provider.tsx +9 -4
  264. package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
  265. package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +4 -1
  266. package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +12 -3
  267. package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +4 -3
  268. package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
  269. package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +12 -3
  270. package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +3 -1
  271. package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
  272. package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +7 -0
  273. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +2 -2
  274. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +34 -0
  275. package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +127 -140
  276. package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
  277. package/src/routes/locations/location-list/location-list.tsx +10 -4
  278. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +4 -1
  279. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +3 -1
  280. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +7 -2
  281. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +7 -2
  282. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +2 -1
  283. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +2 -1
  284. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +2 -1
  285. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +5 -1
  286. package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +42 -1
  287. package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +2 -1
  288. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +2 -0
  289. package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
  290. package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -1
  291. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +3 -1
  292. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +8 -2
  293. package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +12 -3
  294. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +10 -5
  295. package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +4 -0
  296. package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
  297. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +3 -1
  298. package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +10 -5
  299. package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +6 -1
  300. package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +7 -2
  301. package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
  302. package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +2 -1
  303. package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +9 -3
  304. package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +4 -0
  305. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +48 -49
  306. package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +4 -21
  307. package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +12 -3
  308. package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +6 -1
  309. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
  310. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +131 -0
  311. package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
  312. package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
  313. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
  314. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +119 -0
  315. package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
  316. package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
  317. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
  318. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +138 -0
  319. package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
  320. package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
  321. package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
  322. package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +29 -12
  323. package/src/routes/regions/region-create/region-create.tsx +1 -10
  324. package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +32 -10
  325. package/src/routes/regions/region-edit/region-edit.tsx +0 -5
  326. package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +3 -1
  327. package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +2 -0
  328. package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +2 -0
  329. package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +2 -0
  330. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +7 -2
  331. package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +3 -1
  332. package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +3 -1
  333. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +3 -2
  334. package/dist/chunk-ZCZL3STK.mjs +0 -64
  335. package/dist/manage-locations-3TBIUSHP.mjs +0 -236
  336. package/dist/region-edit-JWQWCLM3.mjs +0 -285
@@ -1028,7 +1028,8 @@ export const ClaimCreateForm = ({
1028
1028
  <div className="flex items-center">
1029
1029
  <Form.Control className="mr-4 self-start">
1030
1030
  <Switch
1031
- className="mt-[2px]"
1031
+ dir="ltr"
1032
+ className="mt-[2px] rtl:rotate-180"
1032
1033
  checked={!!value}
1033
1034
  onCheckedChange={onChange}
1034
1035
  {...field}
@@ -179,7 +179,8 @@ export const OrderEditCreateForm = ({
179
179
  <div className="flex items-center">
180
180
  <Form.Control className="mr-4 self-start">
181
181
  <Switch
182
- className="mt-[2px]"
182
+ dir="ltr"
183
+ className="mt-[2px] rtl:rotate-180"
183
184
  checked={!!value}
184
185
  onCheckedChange={onChange}
185
186
  {...field}
@@ -509,7 +509,8 @@ export const ExchangeCreateForm = ({
509
509
  <div className="flex items-center">
510
510
  <Form.Control className="mr-4 self-start">
511
511
  <Switch
512
- className="mt-[2px]"
512
+ dir="ltr"
513
+ className="mt-[2px] rtl:rotate-180"
513
514
  checked={!!value}
514
515
  onCheckedChange={onChange}
515
516
  {...field}
@@ -26,6 +26,7 @@ import { getReservationsLimitCount } from "../../../../../lib/orders"
26
26
  import { sdk } from "../../../../../lib/client"
27
27
  import { useComboboxData } from "../../../../../hooks/use-combobox-data"
28
28
  import { Combobox } from "../../../../../components/inputs/combobox"
29
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
29
30
 
30
31
  type OrderCreateFulfillmentFormProps = {
31
32
  order: AdminOrder
@@ -38,7 +39,7 @@ export function OrderCreateFulfillmentForm({
38
39
  }: OrderCreateFulfillmentFormProps) {
39
40
  const { t } = useTranslation()
40
41
  const { handleSuccess } = useRouteModal()
41
-
42
+ const direction = useDocumentDirection()
42
43
  const { mutateAsync: createOrderFulfillment, isPending: isMutating } =
43
44
  useCreateOrderFulfillment(order.id)
44
45
 
@@ -288,6 +289,7 @@ export function OrderCreateFulfillmentForm({
288
289
  <div className="flex-1">
289
290
  <Form.Control>
290
291
  <Select
292
+ dir={direction}
291
293
  onValueChange={onChange}
292
294
  {...field}
293
295
  disabled={!selectedLocationId}
@@ -390,6 +392,8 @@ export function OrderCreateFulfillmentForm({
390
392
  <Form.Control>
391
393
  <Form.Control>
392
394
  <Switch
395
+ dir="ltr"
396
+ className="rtl:rotate-180"
393
397
  checked={!!value}
394
398
  onCheckedChange={onChange}
395
399
  {...field}
@@ -17,12 +17,13 @@ import * as zod from "zod"
17
17
  import { Form } from "../../../../../components/common/form"
18
18
  import { RouteDrawer, useRouteModal } from "../../../../../components/modals"
19
19
  import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
20
- import { useRefundPayment } from "../../../../../hooks/api"
20
+ import { useRefundPayment, useRefundReasons } from "../../../../../hooks/api"
21
21
  import { currencies } from "../../../../../lib/data/currencies"
22
22
  import { formatCurrency } from "../../../../../lib/format-currency"
23
23
  import { formatProvider } from "../../../../../lib/format-provider"
24
24
  import { getLocaleAmount } from "../../../../../lib/money-amount-helpers"
25
25
  import { getPaymentsFromOrder } from "../../../../../lib/orders"
26
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
26
27
 
27
28
  type CreateRefundFormProps = {
28
29
  order: HttpTypes.AdminOrder
@@ -34,11 +35,13 @@ const CreateRefundSchema = zod.object({
34
35
  float: zod.number().or(zod.null()),
35
36
  }),
36
37
  note: zod.string().optional(),
38
+ refund_reason_id: zod.string().optional(),
37
39
  })
38
40
 
39
41
  export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
40
42
  const { t } = useTranslation()
41
43
  const { handleSuccess } = useRouteModal()
44
+ const { refund_reasons } = useRefundReasons()
42
45
 
43
46
  const [searchParams] = useSearchParams()
44
47
  const [paymentId, setPaymentId] = useState<string | undefined>(
@@ -53,6 +56,7 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
53
56
  [order.currency_code]
54
57
  )
55
58
 
59
+ const direction = useDocumentDirection()
56
60
  const form = useForm<zod.infer<typeof CreateRefundSchema>>({
57
61
  defaultValues: {
58
62
  amount: {
@@ -60,6 +64,7 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
60
64
  float: paymentAmount,
61
65
  },
62
66
  note: "",
67
+ refund_reason_id: "",
63
68
  },
64
69
  resolver: zodResolver(CreateRefundSchema),
65
70
  })
@@ -88,6 +93,7 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
88
93
  {
89
94
  amount: data.amount.float!,
90
95
  note: data.note,
96
+ refund_reason_id: data.refund_reason_id,
91
97
  },
92
98
  {
93
99
  onSuccess: () => {
@@ -118,6 +124,7 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
118
124
  <RouteDrawer.Body className="flex-1 overflow-auto">
119
125
  <div className="flex flex-col gap-y-4">
120
126
  <Select
127
+ dir={direction}
121
128
  value={paymentId}
122
129
  onValueChange={(value) => {
123
130
  setPaymentId(value)
@@ -205,6 +212,40 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
205
212
  }}
206
213
  />
207
214
 
215
+ <Form.Field
216
+ control={form.control}
217
+ name="refund_reason_id"
218
+ render={({ field }) => {
219
+ return (
220
+ <Form.Item>
221
+ <Form.Label>{t("fields.refundReason")}</Form.Label>
222
+
223
+ <Form.Control>
224
+ <Select
225
+ dir={direction}
226
+ value={field.value}
227
+ onValueChange={field.onChange}
228
+ >
229
+ <Select.Trigger>
230
+ <Select.Value />
231
+ </Select.Trigger>
232
+
233
+ <Select.Content>
234
+ {refund_reasons?.map((reason) => (
235
+ <Select.Item key={reason.id} value={reason.id}>
236
+ {reason.label}
237
+ </Select.Item>
238
+ ))}
239
+ </Select.Content>
240
+ </Select>
241
+ </Form.Control>
242
+
243
+ <Form.ErrorMessage />
244
+ </Form.Item>
245
+ )
246
+ }}
247
+ />
248
+
208
249
  <Form.Field
209
250
  control={form.control}
210
251
  name={`note`}
@@ -726,7 +726,8 @@ export const ReturnCreateForm = ({
726
726
  <div className="flex items-center">
727
727
  <Form.Control className="mr-4 self-start">
728
728
  <Switch
729
- className="mt-[2px]"
729
+ dir="ltr"
730
+ className="mt-[2px] rtl:rotate-180"
730
731
  checked={!!value}
731
732
  onCheckedChange={onChange}
732
733
  {...field}
@@ -136,6 +136,8 @@ export function OrderCreateShipmentForm({
136
136
  <Form.Control>
137
137
  <Form.Control>
138
138
  <Switch
139
+ dir="ltr"
140
+ className="rtl:rotate-180"
139
141
  checked={!!value}
140
142
  onCheckedChange={onChange}
141
143
  {...field}
@@ -1,4 +1,4 @@
1
- import { Button, Text, Tooltip, clx, usePrompt } from "@medusajs/ui"
1
+ import { Button, Text, Tooltip, clx, toast, usePrompt } from "@medusajs/ui"
2
2
  import { Collapsible as RadixCollapsible } from "radix-ui"
3
3
 
4
4
  import { PropsWithChildren, ReactNode, useMemo, useState } from "react"
@@ -785,7 +785,9 @@ const ReturnBody = ({
785
785
  return
786
786
  }
787
787
 
788
- await cancelReturnRequest()
788
+ await cancelReturnRequest().catch((error) => {
789
+ toast.error(error.message)
790
+ })
789
791
  }
790
792
 
791
793
  const numberOfItems = orderReturn.items.reduce((acc, item) => {
@@ -842,7 +844,9 @@ const ClaimBody = ({
842
844
  return
843
845
  }
844
846
 
845
- await cancelClaim()
847
+ await cancelClaim().catch((error) => {
848
+ toast.error(error.message)
849
+ })
846
850
  }
847
851
 
848
852
  const outboundItems = (claim.additional_items || []).reduce(
@@ -916,7 +920,9 @@ const ExchangeBody = ({
916
920
  return
917
921
  }
918
922
 
919
- await cancelExchange()
923
+ await cancelExchange().catch((error) => {
924
+ toast.error(error.message)
925
+ })
920
926
  }
921
927
 
922
928
  const outboundItems = (exchange.additional_items || []).reduce(
@@ -1015,7 +1021,9 @@ const TransferOrderRequestBody = ({
1015
1021
  return
1016
1022
  }
1017
1023
 
1018
- await cancelTransfer()
1024
+ await cancelTransfer().catch((error) => {
1025
+ toast.error(error.message)
1026
+ })
1019
1027
  }
1020
1028
 
1021
1029
  /**
@@ -345,7 +345,8 @@ export function OrderReceiveReturnForm({
345
345
  <div className="flex items-center gap-3">
346
346
  <Form.Control>
347
347
  <Switch
348
- className="mt-1 self-start"
348
+ dir="ltr"
349
+ className="mt-1 self-start rtl:rotate-180"
349
350
  checked={!!value}
350
351
  onCheckedChange={onChange}
351
352
  {...field}
@@ -25,6 +25,7 @@ import {
25
25
  PricingProductsFields,
26
26
  PricingProductsSchema,
27
27
  } from "./schema"
28
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
28
29
 
29
30
  enum Tab {
30
31
  DETAIL = "detail",
@@ -58,7 +59,7 @@ export const PriceListCreateForm = ({
58
59
 
59
60
  const { t } = useTranslation()
60
61
  const { handleSuccess } = useRouteModal()
61
-
62
+ const direction = useDocumentDirection()
62
63
  const form = useForm<PricingCreateSchemaType>({
63
64
  defaultValues: {
64
65
  type: "sale",
@@ -249,6 +250,7 @@ export const PriceListCreateForm = ({
249
250
  return (
250
251
  <RouteFocusModal.Form form={form}>
251
252
  <ProgressTabs
253
+ dir={direction}
252
254
  value={tab}
253
255
  onValueChange={(tab) => handleChangeTab(tab as Tab)}
254
256
  className="flex h-full flex-col overflow-hidden"
@@ -23,6 +23,7 @@ import type {
23
23
  PricingCreateSchemaType,
24
24
  PricingCustomerGroupsArrayType,
25
25
  } from "./schema"
26
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
26
27
 
27
28
  type PriceListDetailsFormProps = {
28
29
  form: UseFormReturn<PricingCreateSchemaType>
@@ -30,7 +31,7 @@ type PriceListDetailsFormProps = {
30
31
 
31
32
  export const PriceListDetailsForm = ({ form }: PriceListDetailsFormProps) => {
32
33
  const { t } = useTranslation()
33
-
34
+ const direction = useDocumentDirection()
34
35
  const { fields, remove, append } = useFieldArray({
35
36
  control: form.control,
36
37
  name: "rules.customer_group_id",
@@ -78,6 +79,7 @@ export const PriceListDetailsForm = ({ form }: PriceListDetailsFormProps) => {
78
79
  </div>
79
80
  <Form.Control>
80
81
  <RadioGroup
82
+ dir={direction}
81
83
  onValueChange={onChange}
82
84
  {...rest}
83
85
  className="grid grid-cols-1 gap-4 md:grid-cols-2"
@@ -133,7 +135,11 @@ export const PriceListDetailsForm = ({ form }: PriceListDetailsFormProps) => {
133
135
  {t("priceLists.fields.status.label")}
134
136
  </Form.Label>
135
137
  <Form.Control>
136
- <Select {...field} onValueChange={onChange}>
138
+ <Select
139
+ dir={direction}
140
+ {...field}
141
+ onValueChange={onChange}
142
+ >
137
143
  <Select.Trigger ref={ref}>
138
144
  <Select.Value />
139
145
  </Select.Trigger>
@@ -16,6 +16,7 @@ import { Form } from "../../../../../components/common/form"
16
16
  import { RouteDrawer, useRouteModal } from "../../../../../components/modals"
17
17
  import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
18
18
  import { useUpdatePriceList } from "../../../../../hooks/api/price-lists"
19
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
19
20
  import { PriceListStatus, PriceListType } from "../../../common/constants"
20
21
 
21
22
  type PriceListEditFormProps = {
@@ -32,7 +33,7 @@ const PriceListEditSchema = z.object({
32
33
  export const PriceListEditForm = ({ priceList }: PriceListEditFormProps) => {
33
34
  const { t } = useTranslation()
34
35
  const { handleSuccess } = useRouteModal()
35
-
36
+ const direction = useDocumentDirection()
36
37
  const form = useForm<z.infer<typeof PriceListEditSchema>>({
37
38
  defaultValues: {
38
39
  type: priceList.type as PriceListType,
@@ -80,7 +81,11 @@ export const PriceListEditForm = ({ priceList }: PriceListEditFormProps) => {
80
81
  <Form.Hint>{t("priceLists.fields.type.hint")}</Form.Hint>
81
82
  </div>
82
83
  <Form.Control>
83
- <RadioGroup {...field} onValueChange={onChange}>
84
+ <RadioGroup
85
+ dir={direction}
86
+ {...field}
87
+ onValueChange={onChange}
88
+ >
84
89
  <RadioGroup.ChoiceBox
85
90
  value={PriceListType.SALE}
86
91
  label={t("priceLists.fields.type.options.sale.label")}
@@ -130,7 +135,11 @@ export const PriceListEditForm = ({ priceList }: PriceListEditFormProps) => {
130
135
  {t("priceLists.fields.status.label")}
131
136
  </Form.Label>
132
137
  <Form.Control>
133
- <Select {...field} onValueChange={onChange}>
138
+ <Select
139
+ dir={direction}
140
+ {...field}
141
+ onValueChange={onChange}
142
+ >
134
143
  <Select.Trigger ref={ref}>
135
144
  <Select.Value />
136
145
  </Select.Trigger>
@@ -21,6 +21,7 @@ import {
21
21
  PriceListPricesAddProductsIdsFields,
22
22
  PriceListPricesAddSchema,
23
23
  } from "./schema"
24
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
24
25
 
25
26
  type PriceListPricesAddFormProps = {
26
27
  priceList: HttpTypes.AdminPriceList
@@ -54,7 +55,7 @@ export const PriceListPricesAddForm = ({
54
55
 
55
56
  const { t } = useTranslation()
56
57
  const { handleSuccess } = useRouteModal()
57
-
58
+ const direction = useDocumentDirection()
58
59
  const form = useForm<PriceListPricesAddSchema>({
59
60
  defaultValues: {
60
61
  products: {},
@@ -90,10 +91,13 @@ export const PriceListPricesAddForm = ({
90
91
  ) => {
91
92
  form.clearErrors(fields)
92
93
 
93
- const values = fields.reduce((acc, key) => {
94
- acc[key] = form.getValues(key)
95
- return acc
96
- }, {} as Record<string, unknown>)
94
+ const values = fields.reduce(
95
+ (acc, key) => {
96
+ acc[key] = form.getValues(key)
97
+ return acc
98
+ },
99
+ {} as Record<string, unknown>
100
+ )
97
101
 
98
102
  const validationResult = schema.safeParse(values)
99
103
 
@@ -196,6 +200,7 @@ export const PriceListPricesAddForm = ({
196
200
  return (
197
201
  <RouteFocusModal.Form form={form}>
198
202
  <ProgressTabs
203
+ dir={direction}
199
204
  value={tab}
200
205
  onValueChange={(tab) => handleChangeTab(tab as Tab)}
201
206
  className="flex h-full flex-col overflow-hidden"
@@ -269,7 +269,9 @@ export const ProductEditVariantForm = ({
269
269
  </Form.Label>
270
270
  <Form.Control>
271
271
  <Switch
272
+ dir="ltr"
272
273
  checked={value}
274
+ className="rtl:rotate-180"
273
275
  onCheckedChange={(checked) => onChange(!!checked)}
274
276
  {...field}
275
277
  />
@@ -297,6 +299,8 @@ export const ProductEditVariantForm = ({
297
299
  </Form.Label>
298
300
  <Form.Control>
299
301
  <Switch
302
+ dir="ltr"
303
+ className="rtl:rotate-180"
300
304
  checked={value}
301
305
  onCheckedChange={(checked) => onChange(!!checked)}
302
306
  {...field}
@@ -277,14 +277,14 @@ export const CategoryCombobox = forwardRef<
277
277
  e.preventDefault()
278
278
  onChange([])
279
279
  }}
280
- className="bg-ui-bg-base hover:bg-ui-bg-base-hover txt-compact-small-plus text-ui-fg-subtle focus-within:border-ui-fg-interactive transition-fg absolute left-0.5 top-0.5 flex h-[28px] items-center rounded-[4px] border py-[3px] pl-1.5 pr-1 outline-none"
280
+ className="bg-ui-bg-base hover:bg-ui-bg-base-hover txt-compact-small-plus text-ui-fg-subtle focus-within:border-ui-fg-interactive transition-fg absolute start-0.5 top-0.5 flex h-[28px] items-center rounded-[4px] border py-[3px] ps-1.5 pe-1 outline-none"
281
281
  >
282
282
  <span className="tabular-nums">{value.length}</span>
283
283
  <XMarkMini className="text-ui-fg-muted" />
284
284
  </button>
285
285
  )}
286
286
  {showSelected && (
287
- <div className="pointer-events-none absolute inset-y-0 left-[calc(var(--tag-width)+8px)] flex size-full items-center">
287
+ <div className="pointer-events-none absolute inset-y-0 start-[calc(var(--tag-width)+8px)] flex size-full items-center">
288
288
  <Text size="small" leading="compact">
289
289
  {t("general.selected")}
290
290
  </Text>
@@ -297,13 +297,13 @@ export const CategoryCombobox = forwardRef<
297
297
  onSearchValueChange(e.target.value)
298
298
  }}
299
299
  className={clx(
300
- "txt-compact-small size-full cursor-pointer appearance-none bg-transparent pr-8 outline-none",
300
+ "txt-compact-small size-full cursor-pointer appearance-none bg-transparent pe-8 outline-none",
301
301
  "hover:bg-ui-bg-field-hover",
302
302
  "focus:cursor-text",
303
303
  "placeholder:text-ui-fg-muted",
304
304
  {
305
- "pl-2": !showTag,
306
- "pl-[calc(var(--tag-width)+8px)]": showTag,
305
+ "ps-2": !showTag,
306
+ "ps-[calc(var(--tag-width)+8px)]": showTag,
307
307
  }
308
308
  )}
309
309
  {...props}
@@ -311,7 +311,7 @@ export const CategoryCombobox = forwardRef<
311
311
  <button
312
312
  type="button"
313
313
  onClick={() => handleOpenChange(true)}
314
- className="text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute right-0 flex size-8 items-center justify-center rounded-r outline-none"
314
+ className="text-ui-fg-muted transition-fg hover:bg-ui-bg-field-hover absolute end-0 flex size-8 items-center justify-center rounded-r outline-none"
315
315
  >
316
316
  <TrianglesMini className="text-ui-fg-muted" />
317
317
  </button>
@@ -321,11 +321,11 @@ export const CategoryCombobox = forwardRef<
321
321
  sideOffset={4}
322
322
  role="listbox"
323
323
  className={clx(
324
- "shadow-elevation-flyout bg-ui-bg-base -left-2 z-50 w-[var(--radix-popper-anchor-width)] rounded-[8px]",
324
+ "shadow-elevation-flyout bg-ui-bg-base -start-2 z-50 w-[var(--radix-popper-anchor-width)] rounded-[8px]",
325
325
  "max-h-[200px] overflow-y-auto",
326
326
  "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
327
327
  "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
328
- "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"
328
+ "data-[side=bottom]:slide-in-from-top-2 data-[side=start]:slide-in-from-end-2 data-[side=end]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2"
329
329
  )}
330
330
  onInteractOutside={(e) => {
331
331
  e.preventDefault()
@@ -346,7 +346,7 @@ export const CategoryCombobox = forwardRef<
346
346
  data-active={focusedIndex === 0}
347
347
  role="button"
348
348
  className={clx(
349
- "transition-fg grid w-full appearance-none grid-cols-[20px_1fr] items-center justify-center gap-2 rounded-md px-2 py-1.5 text-left outline-none",
349
+ "transition-fg grid w-full appearance-none grid-cols-[20px_1fr] items-center justify-center gap-2 rounded-md px-2 py-1.5 text-start outline-none",
350
350
  "data-[active=true]:bg-ui-bg-field-hover"
351
351
  )}
352
352
  type="button"
@@ -386,7 +386,7 @@ export const CategoryCombobox = forwardRef<
386
386
  type="button"
387
387
  role="option"
388
388
  className={clx(
389
- "grid h-full w-full appearance-none grid-cols-[20px_1fr] items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-left outline-none",
389
+ "grid h-full w-full appearance-none grid-cols-[20px_1fr] items-center gap-2 overflow-hidden rounded-md px-2 py-1.5 text-start outline-none",
390
390
  "data-[active=true]:bg-ui-bg-field-hover"
391
391
  )}
392
392
  onClick={handleSelect(option)}
@@ -418,7 +418,7 @@ export const CategoryCombobox = forwardRef<
418
418
  onClick={handleLevelDown(option)}
419
419
  tabIndex={-1}
420
420
  >
421
- <TriangleRightMini />
421
+ <TriangleRightMini className="rtl:rotate-180" />
422
422
  </button>
423
423
  )}
424
424
  </div>
@@ -21,6 +21,7 @@ import { ProductCreateDetailsForm } from "../product-create-details-form"
21
21
  import { ProductCreateInventoryKitForm } from "../product-create-inventory-kit-form"
22
22
  import { ProductCreateOrganizeForm } from "../product-create-organize-form"
23
23
  import { ProductCreateVariantsForm } from "../product-create-variants-form"
24
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
24
25
 
25
26
  enum Tab {
26
27
  DETAILS = "details",
@@ -58,7 +59,7 @@ export const ProductCreateForm = ({
58
59
  const { handleSuccess } = useRouteModal()
59
60
  const { getFormConfigs } = useExtension()
60
61
  const configs = getFormConfigs("product", "create")
61
-
62
+ const direction = useDocumentDirection()
62
63
  const form = useExtendableForm({
63
64
  defaultValues: {
64
65
  ...PRODUCT_CREATE_FORM_DEFAULTS,
@@ -244,6 +245,7 @@ export const ProductCreateForm = ({
244
245
  className="flex h-full flex-col"
245
246
  >
246
247
  <ProgressTabs
248
+ dir={direction}
247
249
  value={tab}
248
250
  onValueChange={async (tab) => {
249
251
  const valid = await form.trigger()
@@ -26,6 +26,7 @@ import {
26
26
  import DetailsTab from "./details-tab"
27
27
  import InventoryKitTab from "./inventory-kit-tab"
28
28
  import PricingTab from "./pricing-tab"
29
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
29
30
 
30
31
  enum Tab {
31
32
  DETAIL = "detail",
@@ -50,7 +51,7 @@ export const CreateProductVariantForm = ({
50
51
  }: CreateProductVariantFormProps) => {
51
52
  const { t } = useTranslation()
52
53
  const { handleSuccess } = useRouteModal()
53
-
54
+ const direction = useDocumentDirection()
54
55
  const [tab, setTab] = useState<Tab>(Tab.DETAIL)
55
56
  const [tabState, setTabState] = useState<TabState>(initialTabState)
56
57
 
@@ -75,10 +76,13 @@ export const CreateProductVariantForm = ({
75
76
  return {}
76
77
  }
77
78
 
78
- return regions.reduce((acc, reg) => {
79
- acc[reg.id] = reg.currency_code
80
- return acc
81
- }, {} as Record<string, string>)
79
+ return regions.reduce(
80
+ (acc, reg) => {
81
+ acc[reg.id] = reg.currency_code
82
+ return acc
83
+ },
84
+ {} as Record<string, string>
85
+ )
82
86
  }, [regions])
83
87
 
84
88
  const isManageInventoryEnabled = useWatch({
@@ -257,6 +261,7 @@ export const CreateProductVariantForm = ({
257
261
  return (
258
262
  <RouteFocusModal.Form form={form}>
259
263
  <ProgressTabs
264
+ dir={direction}
260
265
  value={tab}
261
266
  onValueChange={(tab) => handleChangeTab(tab as Tab)}
262
267
  className="flex h-full flex-col overflow-hidden"
@@ -99,7 +99,8 @@ function DetailsTab({ form, product }: DetailsTabProps) {
99
99
  <div className="bg-ui-bg-component shadow-elevation-card-rest flex gap-x-3 rounded-lg p-4">
100
100
  <Form.Control>
101
101
  <Switch
102
- className="mt-[2px]"
102
+ dir="ltr"
103
+ className="mt-[2px] rtl:rotate-180"
103
104
  checked={value}
104
105
  onCheckedChange={(checked) => onChange(!!checked)}
105
106
  {...field}
@@ -130,6 +131,8 @@ function DetailsTab({ form, product }: DetailsTabProps) {
130
131
  <div className="bg-ui-bg-component shadow-elevation-card-rest flex gap-x-3 rounded-lg p-4">
131
132
  <Form.Control>
132
133
  <Switch
134
+ dir="ltr"
135
+ className="rtl:rotate-180"
133
136
  checked={value}
134
137
  onCheckedChange={(checked) => onChange(!!checked)}
135
138
  {...field}
@@ -159,6 +162,8 @@ function DetailsTab({ form, product }: DetailsTabProps) {
159
162
  <div className="bg-ui-bg-component shadow-elevation-card-rest flex gap-x-3 rounded-lg p-4">
160
163
  <Form.Control>
161
164
  <Switch
165
+ dir="ltr"
166
+ className="rtl:rotate-180"
162
167
  checked={value}
163
168
  onCheckedChange={(checked) => onChange(!!checked)}
164
169
  {...field}
@@ -13,6 +13,7 @@ import { transformNullableFormData } from "../../../../../lib/form-helpers"
13
13
  import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
14
14
  import { FormExtensionZone } from "../../../../../dashboard-app"
15
15
  import { useExtension } from "../../../../../providers/extension-provider"
16
+ import { useDocumentDirection } from "../../../../../hooks/use-document-direction"
16
17
 
17
18
  type EditProductFormProps = {
18
19
  product: HttpTypes.AdminProduct
@@ -31,7 +32,7 @@ const EditProductSchema = zod.object({
31
32
  export const EditProductForm = ({ product }: EditProductFormProps) => {
32
33
  const { t } = useTranslation()
33
34
  const { handleSuccess } = useRouteModal()
34
-
35
+ const direction = useDocumentDirection()
35
36
  const { getFormFields, getFormConfigs } = useExtension()
36
37
  const fields = getFormFields("product", "edit")
37
38
  const configs = getFormConfigs("product", "edit")
@@ -97,7 +98,11 @@ export const EditProductForm = ({ product }: EditProductFormProps) => {
97
98
  <Form.Item>
98
99
  <Form.Label>{t("fields.status")}</Form.Label>
99
100
  <Form.Control>
100
- <Select {...field} onValueChange={onChange}>
101
+ <Select
102
+ dir={direction}
103
+ {...field}
104
+ onValueChange={onChange}
105
+ >
101
106
  <Select.Trigger ref={ref}>
102
107
  <Select.Value />
103
108
  </Select.Trigger>
@@ -261,7 +261,7 @@ const Preview = ({
261
261
  type="button"
262
262
  onClick={prev}
263
263
  >
264
- <TriangleLeftMini />
264
+ <TriangleLeftMini className="rtl:rotate-180" />
265
265
  </IconButton>
266
266
  <div className="flex items-center gap-x-2">
267
267
  {visibleItems.map((item) => {
@@ -292,7 +292,7 @@ const Preview = ({
292
292
  type="button"
293
293
  onClick={next}
294
294
  >
295
- <TriangleRightMini />
295
+ <TriangleRightMini className="rtl:rotate-180" />
296
296
  </IconButton>
297
297
  </div>
298
298
  )