@medusajs/dashboard 2.10.4-preview-20250928000328 → 2.10.4-snapshot-20250922062130

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