@medusajs/dashboard 2.10.4-preview-20250923120202 → 2.10.4-preview-20250923180156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-campaign-promotions-FE4BXGVN.mjs → add-campaign-promotions-BWIP24MA.mjs} +6 -5
- package/dist/{api-key-management-detail-SAVBCKX7.mjs → api-key-management-detail-WGWZQCFC.mjs} +6 -4
- package/dist/{api-key-management-list-5DI3L4DV.mjs → api-key-management-list-QAMBWB7T.mjs} +5 -4
- package/dist/{api-key-management-sales-channels-WL5L5XWM.mjs → api-key-management-sales-channels-H5TVIHTV.mjs} +3 -2
- package/dist/app.css +89 -31
- package/dist/app.js +4681 -3651
- package/dist/app.mjs +7 -5
- package/dist/{campaign-create-AVBNHFC2.mjs → campaign-create-GRKYQY5D.mjs} +3 -2
- package/dist/{campaign-detail-KTOLZNTA.mjs → campaign-detail-EJD7LQCW.mjs} +13 -11
- package/dist/{campaign-list-G4MD3RPU.mjs → campaign-list-IDPRC2MD.mjs} +6 -5
- package/dist/{categories-metadata-GXWJ3HOG.mjs → categories-metadata-JFNWZA5D.mjs} +4 -2
- package/dist/{category-create-FOVB5MJ4.mjs → category-create-DJHTY4QX.mjs} +36 -14
- package/dist/{category-detail-ENUI5EFL.mjs → category-detail-CL3XCV7E.mjs} +9 -7
- package/dist/{category-edit-O4ZSANE5.mjs → category-edit-JQQX7IZZ.mjs} +34 -14
- package/dist/{category-list-UI6W5KF5.mjs → category-list-FOCNQKPH.mjs} +5 -4
- package/dist/{category-products-ZG5QDWSW.mjs → category-products-UZEG63WY.mjs} +6 -4
- package/dist/{chunk-KMUDF36P.mjs → chunk-2252SSK6.mjs} +1 -1
- package/dist/{chunk-SMHXCFRS.mjs → chunk-4CGHNQP2.mjs} +28 -15
- package/dist/chunk-5U3FFMC7.mjs +84 -0
- package/dist/{chunk-JO6QASTJ.mjs → chunk-6RWF7BPW.mjs} +1 -1
- package/dist/{chunk-JHXKKOHO.mjs → chunk-7JJTWGHU.mjs} +49 -15
- package/dist/{chunk-5WKYR6PY.mjs → chunk-BM5ZIV5V.mjs} +1 -1
- package/dist/{chunk-OGHQ6VJI.mjs → chunk-BSBCIU6C.mjs} +0 -5
- package/dist/{chunk-IINWRJA6.mjs → chunk-CAZKNJTG.mjs} +316 -266
- package/dist/{chunk-2PMSBTXI.mjs → chunk-CD7VQIPA.mjs} +11 -11
- package/dist/{chunk-NRBOPOMS.mjs → chunk-CU5EFQSB.mjs} +1 -1
- package/dist/{chunk-J5E7MQSS.mjs → chunk-CY33DS7K.mjs} +6 -0
- package/dist/{chunk-7VJK6HNE.mjs → chunk-EYL2JACT.mjs} +4 -4
- package/dist/{chunk-R2NWOCML.mjs → chunk-FUQ27NT5.mjs} +7 -1
- package/dist/{chunk-74K7HGNI.mjs → chunk-FXG2Z3QT.mjs} +3 -2
- package/dist/{chunk-2RQLKDBF.mjs → chunk-GIZFNLKK.mjs} +103 -96
- package/dist/{chunk-AOFGTNG6.mjs → chunk-HQKGZADC.mjs} +6 -1
- package/dist/{chunk-LBIOZZPA.mjs → chunk-HWKLNKOY.mjs} +1 -1
- package/dist/{chunk-S2UEWRDA.mjs → chunk-IL5IMREK.mjs} +59 -49
- package/dist/{chunk-SCBXRJPV.mjs → chunk-IRO6DO7J.mjs} +1 -1
- package/dist/{chunk-T7G2CURS.mjs → chunk-IVZ6BMDB.mjs} +1 -0
- package/dist/{chunk-XGJ5DXXG.mjs → chunk-IYDBZI47.mjs} +11 -11
- package/dist/{chunk-OKMF4YI7.mjs → chunk-K3OMOMRB.mjs} +25 -0
- package/dist/{chunk-2LPGQWPV.mjs → chunk-KTL6E2WT.mjs} +1 -1
- package/dist/{chunk-YWNHMIEQ.mjs → chunk-LJDVFJK7.mjs} +1 -1
- package/dist/{chunk-Q5DI5VYN.mjs → chunk-MLNUGLGT.mjs} +1 -1
- package/dist/{chunk-UWJBDOQD.mjs → chunk-NKVMOKZA.mjs} +41 -29
- package/dist/{chunk-UNM3LPTG.mjs → chunk-OQPVQGSH.mjs} +1 -1
- package/dist/{chunk-3NJTXRIY.mjs → chunk-OZPB6JBL.mjs} +5 -1
- package/dist/{chunk-FPJBF7VS.mjs → chunk-P2O6XTD4.mjs} +1 -1
- package/dist/{chunk-EFA7S5L3.mjs → chunk-PGTXMCSV.mjs} +1 -1
- package/dist/{chunk-D7H6ZNK4.mjs → chunk-PRLQLEEQ.mjs} +2 -0
- package/dist/{chunk-6AGMMT5H.mjs → chunk-RFP4O5GO.mjs} +3 -3
- package/dist/chunk-S4DMV3ZT.mjs +35 -0
- package/dist/{chunk-5NQ3X2JI.mjs → chunk-SNDSWB6B.mjs} +1 -1
- package/dist/{chunk-O74UDEWT.mjs → chunk-TKZK3YPU.mjs} +1 -1
- package/dist/{chunk-EE7SOCEQ.mjs → chunk-TOS3CYMH.mjs} +3 -3
- package/dist/{chunk-CGK6IVLN.mjs → chunk-U2FXUMKA.mjs} +1 -1
- package/dist/{chunk-CK3VFTZM.mjs → chunk-UKX2FFFV.mjs} +2 -2
- package/dist/{chunk-7YZF3THS.mjs → chunk-V53HAFWH.mjs} +1 -1
- package/dist/{chunk-S45XMWVD.mjs → chunk-WP5CXGGO.mjs} +1 -1
- package/dist/{chunk-Y4YXZY7R.mjs → chunk-YPDTZXV6.mjs} +1 -1
- package/dist/{chunk-JELVERJM.mjs → chunk-YPSSUJUZ.mjs} +32 -0
- package/dist/{chunk-XKXNQ2KV.mjs → chunk-ZCARHA6C.mjs} +1 -1
- package/dist/{collection-add-products-2ISNNIHD.mjs → collection-add-products-QTFBLLND.mjs} +6 -4
- package/dist/{collection-detail-OSX6NHNQ.mjs → collection-detail-ZEAUSZBJ.mjs} +8 -6
- package/dist/{collection-list-MPIYSHQJ.mjs → collection-list-V27JHDAD.mjs} +9 -7
- package/dist/{collection-metadata-EOFYXEQI.mjs → collection-metadata-JAEMZMU6.mjs} +4 -2
- package/dist/{customer-create-address-TPSDYZBN.mjs → customer-create-address-JOYBIPPN.mjs} +1 -1
- package/dist/{customer-detail-FCNRRZSW.mjs → customer-detail-YBOM6KGC.mjs} +7 -5
- package/dist/{customer-group-add-customers-ULPWTALS.mjs → customer-group-add-customers-YF2T323Z.mjs} +3 -2
- package/dist/{customer-group-detail-QI3QLJJL.mjs → customer-group-detail-72VFORGF.mjs} +7 -5
- package/dist/{customer-group-list-GPIKR66X.mjs → customer-group-list-UTC5ZCJZ.mjs} +6 -4
- package/dist/{customer-group-metadata-UPAPULMF.mjs → customer-group-metadata-YQCOIVQG.mjs} +2 -1
- package/dist/{customer-list-SINCBCOZ.mjs → customer-list-5IWEXYSW.mjs} +5 -4
- package/dist/{customer-metadata-5NPUMPZ2.mjs → customer-metadata-JZEJBH4V.mjs} +2 -1
- package/dist/{customers-add-customer-group-5TFTVDB6.mjs → customers-add-customer-group-ZUCFXW2U.mjs} +5 -3
- package/dist/{edit-inventory-item-attributes-KT7BSPZ7.mjs → edit-inventory-item-attributes-BMPRVCPN.mjs} +1 -1
- package/dist/{edit-reservation-EKH4RIAX.mjs → edit-reservation-QQTYP22N.mjs} +5 -0
- package/dist/{edit-rules-63NG4QVR.mjs → edit-rules-RY7JMYLR.mjs} +5 -3
- package/dist/{inventory-create-RIVJFJJQ.mjs → inventory-create-F5PSTEN2.mjs} +10 -4
- package/dist/{inventory-detail-5433AAQ2.mjs → inventory-detail-BO5E7KXO.mjs} +10 -8
- package/dist/{inventory-list-YMYF7QVP.mjs → inventory-list-HUYCKI2I.mjs} +5 -4
- package/dist/{inventory-metadata-FH4CHJBA.mjs → inventory-metadata-QGPVSAUI.mjs} +4 -2
- package/dist/{inventory-stock-D6E4LQRK.mjs → inventory-stock-VQNXCIOA.mjs} +5 -3
- package/dist/{location-create-LUP363ZB.mjs → location-create-22H74MFP.mjs} +1 -1
- package/dist/{location-detail-Z6ZDX6RY.mjs → location-detail-M4CYDTSY.mjs} +5 -3
- package/dist/{location-edit-26K26G23.mjs → location-edit-RNGPJ26L.mjs} +1 -1
- package/dist/{location-fulfillment-providers-45VXZMZI.mjs → location-fulfillment-providers-XVEQZCUD.mjs} +6 -4
- package/dist/{location-list-BKK2PAKF.mjs → location-list-NKIOBHG4.mjs} +4 -3
- package/dist/{location-sales-channels-2BOIPBBG.mjs → location-sales-channels-NSXV65ZM.mjs} +3 -2
- package/dist/{location-service-zone-create-RPFLBVV4.mjs → location-service-zone-create-D5QSFS3M.mjs} +4 -3
- package/dist/{location-service-zone-manage-areas-VEUUGPKF.mjs → location-service-zone-manage-areas-HKCALG4Q.mjs} +4 -3
- package/dist/{location-service-zone-shipping-option-create-NO3665DC.mjs → location-service-zone-shipping-option-create-I3HAEEFA.mjs} +14 -5
- package/dist/{location-service-zone-shipping-option-edit-TMXNX4VX.mjs → location-service-zone-shipping-option-edit-JYM6GHTA.mjs} +40 -28
- package/dist/{location-service-zone-shipping-option-pricing-U2SDK5DE.mjs → location-service-zone-shipping-option-pricing-FLB63UKY.mjs} +3 -2
- package/dist/{login-DSPNELTI.mjs → login-QOENXTB7.mjs} +2 -1
- package/dist/{order-allocate-items-J3ZHGC22.mjs → order-allocate-items-NO5SVLS6.mjs} +23 -11
- package/dist/{order-create-claim-V63BWLB5.mjs → order-create-claim-MOBLO4YM.mjs} +9 -6
- package/dist/{order-create-edit-NPF4UZ4D.mjs → order-create-edit-C75GUZJE.mjs} +8 -5
- package/dist/{order-create-exchange-RHIPPSKU.mjs → order-create-exchange-RCUALEXO.mjs} +9 -6
- package/dist/{order-create-fulfillment-4SSUHQ75.mjs → order-create-fulfillment-EZTEZ4CF.mjs} +10 -2
- package/dist/{order-create-refund-QVQC5ZP5.mjs → order-create-refund-4FAIESAN.mjs} +7 -1
- package/dist/{order-create-return-GVA6M2RY.mjs → order-create-return-AV4BEJDN.mjs} +7 -5
- package/dist/{order-create-shipment-TJAARKWA.mjs → order-create-shipment-PTUJKVWK.mjs} +4 -1
- package/dist/{order-detail-2MIN6B2I.mjs → order-detail-6XQLJ5TU.mjs} +5 -3
- package/dist/{order-edit-billing-address-QP2I5F3E.mjs → order-edit-billing-address-46CFUZGL.mjs} +3 -2
- package/dist/{order-edit-email-7WT7XTHB.mjs → order-edit-email-FOK5GQW2.mjs} +2 -1
- package/dist/{order-edit-shipping-address-3QFMQP4I.mjs → order-edit-shipping-address-WFN2SVKM.mjs} +3 -2
- package/dist/{order-list-ZCMNSZYB.mjs → order-list-OTPVQKU6.mjs} +7 -6
- package/dist/{order-metadata-YJS26DHK.mjs → order-metadata-COJNFRPZ.mjs} +4 -2
- package/dist/{order-receive-return-PZMMMUB2.mjs → order-receive-return-P4OPVOPM.mjs} +4 -2
- package/dist/{order-request-transfer-QBIZD36E.mjs → order-request-transfer-HRPCEL5L.mjs} +3 -2
- package/dist/{price-list-configuration-435QDWB2.mjs → price-list-configuration-HF3DARKG.mjs} +4 -3
- package/dist/{price-list-create-RXDH5CXF.mjs → price-list-create-FJ2FM6GL.mjs} +30 -14
- package/dist/{price-list-detail-PKIKOJ4H.mjs → price-list-detail-VNZ3Q426.mjs} +8 -6
- package/dist/{price-list-edit-ZGBOZYSC.mjs → price-list-edit-COHKW6UK.mjs} +49 -29
- package/dist/{price-list-list-C6NEB2R4.mjs → price-list-list-55WD2WAY.mjs} +5 -4
- package/dist/{price-list-prices-add-2CDPUSYA.mjs → price-list-prices-add-FMZKGOHD.mjs} +19 -10
- package/dist/{price-list-prices-edit-ENB4GJZT.mjs → price-list-prices-edit-SUZNOKK2.mjs} +3 -2
- package/dist/{product-attributes-ZZPEBDCK.mjs → product-attributes-5PLACMXK.mjs} +9 -7
- package/dist/{product-create-FCDCIDCH.mjs → product-create-6FMLIS5X.mjs} +17 -11
- package/dist/{product-create-variant-KJKQ6ROY.mjs → product-create-variant-KGBSFIKQ.mjs} +22 -8
- package/dist/{product-detail-2ZUONC23.mjs → product-detail-2BJJMCCO.mjs} +11 -9
- package/dist/{product-edit-G3Z6FCN6.mjs → product-edit-N5P7RVNS.mjs} +31 -18
- package/dist/{product-export-XERWEI5H.mjs → product-export-XA5POQKT.mjs} +3 -2
- package/dist/{product-import-AGFJMSVK.mjs → product-import-DYTT4YDA.mjs} +5 -3
- package/dist/{product-list-WGX66SGI.mjs → product-list-EUQX3NBE.mjs} +10 -8
- package/dist/{product-media-APQKPFTT.mjs → product-media-XJGAON6B.mjs} +4 -4
- package/dist/{product-metadata-NZ3HKO67.mjs → product-metadata-44VYAXZD.mjs} +4 -2
- package/dist/{product-organization-BYT4TKMZ.mjs → product-organization-FB6BVKKL.mjs} +10 -8
- package/dist/{product-prices-PCBMYYGV.mjs → product-prices-4ZV5EXX5.mjs} +2 -1
- package/dist/{product-sales-channels-UGPAXFAV.mjs → product-sales-channels-QBQDLU7Z.mjs} +3 -2
- package/dist/{product-shipping-profile-YDN4X6S2.mjs → product-shipping-profile-UZQSV54B.mjs} +9 -7
- package/dist/{product-stock-SUVEQZML.mjs → product-stock-PX5NAHH6.mjs} +7 -4
- package/dist/{product-tag-create-T6HVAQKN.mjs → product-tag-create-R4YSSXD6.mjs} +2 -1
- package/dist/{product-tag-detail-HOWUZC3P.mjs → product-tag-detail-XJEGQD7U.mjs} +12 -10
- package/dist/{product-tag-edit-WWQDNDRC.mjs → product-tag-edit-7JXF42HY.mjs} +2 -1
- package/dist/{product-tag-list-FAKSLONF.mjs → product-tag-list-GTUMQQ6V.mjs} +12 -10
- package/dist/{product-tag-metadata-6B56VEZU.mjs → product-tag-metadata-5QV3HMXJ.mjs} +4 -2
- package/dist/{product-type-detail-KN64HYUV.mjs → product-type-detail-CN74BB3Y.mjs} +8 -6
- package/dist/{product-type-list-6ZIWPIUH.mjs → product-type-list-MJLAGQYC.mjs} +5 -4
- package/dist/{product-type-metadata-F3FTI6OG.mjs → product-type-metadata-JPFREADV.mjs} +4 -2
- package/dist/{product-variant-detail-OUHBUY4J.mjs → product-variant-detail-BSLEUW5J.mjs} +7 -5
- package/dist/{product-variant-edit-NBYHDUJ5.mjs → product-variant-edit-VOW5633S.mjs} +8 -3
- package/dist/{product-variant-manage-inventory-items-TM3VAHBJ.mjs → product-variant-manage-inventory-items-LGRRKHT2.mjs} +1 -1
- package/dist/{product-variant-metadata-XDVLJYGQ.mjs → product-variant-metadata-KDSV47PE.mjs} +4 -2
- package/dist/{profile-detail-ROG22HHL.mjs → profile-detail-XYAQ2G36.mjs} +3 -2
- package/dist/{profile-edit-HSUQIQQH.mjs → profile-edit-7WD4FTRH.mjs} +31 -19
- package/dist/{promotion-add-campaign-7R26KU2U.mjs → promotion-add-campaign-JXBRCUXL.mjs} +3 -2
- package/dist/{promotion-create-UUOG52D5.mjs → promotion-create-YPX2R3ZB.mjs} +20 -7
- package/dist/{promotion-detail-6ZD7Z6BF.mjs → promotion-detail-VB5GZDCC.mjs} +7 -5
- package/dist/{promotion-edit-details-HQLYX4X4.mjs → promotion-edit-details-I5DYHQUM.mjs} +9 -1
- package/dist/{promotion-list-GI64LDWI.mjs → promotion-list-NAUTWXNU.mjs} +8 -7
- package/dist/refund-reason-create-CYHPXX2O.mjs +158 -0
- package/dist/refund-reason-edit-E2HDAQZI.mjs +144 -0
- package/dist/refund-reason-list-VBHGRLJJ.mjs +241 -0
- package/dist/{region-add-countries-Y4YAHDUZ.mjs → region-add-countries-6GSF4CKJ.mjs} +3 -2
- package/dist/{region-create-5Y3GIQBV.mjs → region-create-4C42KVB4.mjs} +30 -14
- package/dist/{region-detail-CWRFM6P3.mjs → region-detail-PB7EUSTD.mjs} +5 -4
- package/dist/{region-edit-JWQWCLM3.mjs → region-edit-CLE5VVRP.mjs} +21 -5
- package/dist/{region-list-FQNI7F37.mjs → region-list-52LF5S4S.mjs} +5 -4
- package/dist/{region-metadata-IQVB4ERU.mjs → region-metadata-NXD563F4.mjs} +4 -2
- package/dist/{reservation-create-7RFXWDXB.mjs → reservation-create-CBWJLYHP.mjs} +1 -1
- package/dist/{reservation-detail-RTGHD35L.mjs → reservation-detail-64MMXK7D.mjs} +6 -4
- package/dist/{reservation-list-UOC7RNRZ.mjs → reservation-list-YNG7YKG2.mjs} +5 -4
- package/dist/{reservation-metadata-WKJXBRLQ.mjs → reservation-metadata-4GZCEGM7.mjs} +4 -2
- package/dist/{reset-password-SXA6YKTJ.mjs → reset-password-ZCKXQZNQ.mjs} +1 -1
- package/dist/{return-reason-list-MOP7YWMZ.mjs → return-reason-list-FW7OYUOW.mjs} +8 -7
- package/dist/{sales-channel-add-products-OKVZJ6FI.mjs → sales-channel-add-products-EAWW7ADY.mjs} +6 -4
- package/dist/{sales-channel-create-3MPOMVPD.mjs → sales-channel-create-VW2UPYSI.mjs} +2 -0
- package/dist/{sales-channel-detail-WESBK6Q7.mjs → sales-channel-detail-3F3HFTD2.mjs} +8 -6
- package/dist/{sales-channel-edit-LSLAM7A4.mjs → sales-channel-edit-OA6QPIHW.mjs} +2 -0
- package/dist/{sales-channel-list-ADIJMXNV.mjs → sales-channel-list-R4HT6A7P.mjs} +6 -4
- package/dist/{sales-channel-metadata-2OQAHYB4.mjs → sales-channel-metadata-LAHTTRLQ.mjs} +4 -2
- package/dist/{shipping-option-type-create-3CGPGDYJ.mjs → shipping-option-type-create-IPKK5MRS.mjs} +2 -1
- package/dist/{shipping-option-type-detail-S23H2OGW.mjs → shipping-option-type-detail-NEQ4RA5F.mjs} +6 -4
- package/dist/{shipping-option-type-edit-IHE7XM6M.mjs → shipping-option-type-edit-CC64TWSB.mjs} +2 -1
- package/dist/{shipping-option-type-list-47GRJ6EC.mjs → shipping-option-type-list-3GTGTBK7.mjs} +8 -6
- package/dist/{shipping-profile-detail-FDUPDSH4.mjs → shipping-profile-detail-FS46IJZP.mjs} +3 -2
- package/dist/{shipping-profile-metadata-OXWOXAAR.mjs → shipping-profile-metadata-EPVLPEEM.mjs} +4 -2
- package/dist/{shipping-profiles-list-ZHJEUIKJ.mjs → shipping-profiles-list-QFOG5IDH.mjs} +5 -4
- package/dist/{store-add-currencies-R26SVHT5.mjs → store-add-currencies-W4MWOALR.mjs} +5 -2
- package/dist/{store-detail-4K7TW2TP.mjs → store-detail-PUOKMK4K.mjs} +7 -5
- package/dist/{store-edit-EU55TNFU.mjs → store-edit-3DU5MC25.mjs} +24 -12
- package/dist/{store-metadata-JP2CI7EF.mjs → store-metadata-JYIVRRLW.mjs} +4 -2
- package/dist/{tax-region-create-W3K5IFD3.mjs → tax-region-create-2GDG36NQ.mjs} +5 -4
- package/dist/{tax-region-detail-V2F2DONN.mjs → tax-region-detail-MQKBEBOZ.mjs} +9 -7
- package/dist/{tax-region-edit-CJPMYTBF.mjs → tax-region-edit-2H5ACSFG.mjs} +3 -2
- package/dist/{tax-region-list-NMM3LBPN.mjs → tax-region-list-SQQE2GUU.mjs} +6 -5
- package/dist/{tax-region-province-create-GIIU2G7K.mjs → tax-region-province-create-SBRFGWN3.mjs} +2 -2
- package/dist/{tax-region-province-detail-4PUQ5ADW.mjs → tax-region-province-detail-HNK2ZJWL.mjs} +8 -6
- package/dist/{tax-region-tax-override-create-3SCIOK4P.mjs → tax-region-tax-override-create-XZJ3EIFJ.mjs} +15 -9
- package/dist/{tax-region-tax-override-edit-P3QJKET3.mjs → tax-region-tax-override-edit-QHQHFI2Y.mjs} +15 -9
- package/dist/{tax-region-tax-rate-create-Z43M3JTQ.mjs → tax-region-tax-rate-create-JIV5FXUD.mjs} +1 -1
- package/dist/{tax-region-tax-rate-edit-RBF5D2MK.mjs → tax-region-tax-rate-edit-WU2ZQLZQ.mjs} +1 -1
- package/dist/{user-detail-VIVFFLOW.mjs → user-detail-ZIWKV6QD.mjs} +3 -2
- package/dist/{user-invite-W26LOOW7.mjs → user-invite-KUH4AI2L.mjs} +4 -3
- package/dist/{user-list-3YFYZFSK.mjs → user-list-TPBPZ7KJ.mjs} +4 -3
- package/dist/{user-metadata-ZURLDLGC.mjs → user-metadata-F6KRFYDW.mjs} +4 -2
- package/dist/{workflow-execution-detail-4R6AFFHV.mjs → workflow-execution-detail-JRJZATNU.mjs} +8 -3
- package/dist/{workflow-execution-list-5J3DQQRD.mjs → workflow-execution-list-5WL4L464.mjs} +4 -3
- package/package.json +9 -9
- package/src/components/common/action-menu/action-menu.tsx +3 -1
- package/src/components/common/json-view-section/json-view-section.tsx +4 -1
- package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
- package/src/components/common/switch-box/switch-box.tsx +2 -0
- package/src/components/data-grid/components/data-grid-root.tsx +9 -3
- package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +2 -1
- package/src/components/filtering/filter-group/filter-group.tsx +5 -1
- package/src/components/filtering/order-by/order-by.tsx +4 -1
- package/src/components/forms/address-form/address-form.tsx +7 -2
- package/src/components/forms/metadata-form/metadata-form.tsx +6 -3
- package/src/components/inputs/combobox/combobox.tsx +11 -11
- package/src/components/inputs/country-select/country-select.tsx +1 -1
- package/src/components/inputs/province-select/province-select.tsx +1 -1
- package/src/components/layout/main-layout/main-layout.tsx +7 -5
- package/src/components/layout/settings-layout/settings-layout.tsx +4 -0
- package/src/components/layout/shell/shell.tsx +6 -6
- package/src/components/layout/user-menu/user-menu.tsx +12 -10
- package/src/components/search/search.tsx +5 -3
- package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +4 -1
- package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
- package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
- package/src/dashboard-app/routes/get-route.map.tsx +36 -0
- package/src/hooks/api/refund-reasons.tsx +105 -10
- package/src/hooks/table/columns/index.ts +1 -0
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +32 -0
- package/src/hooks/table/query/index.ts +1 -0
- package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
- package/src/hooks/use-document-direction.tsx +54 -0
- package/src/i18n/translations/$schema.json +185 -65
- package/src/i18n/translations/en.json +32 -0
- package/src/providers/i18n-provider/i18n-provider.tsx +9 -4
- package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
- package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +4 -1
- package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +12 -3
- package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +4 -3
- package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
- package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +12 -3
- package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +3 -1
- package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +4 -1
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +3 -1
- package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +7 -2
- package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +7 -2
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +2 -1
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +2 -1
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +2 -1
- package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +5 -1
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +3 -0
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +2 -1
- package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +2 -0
- package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +3 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +8 -2
- package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +12 -3
- package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +10 -5
- package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +4 -0
- package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +3 -1
- package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +10 -5
- package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +6 -1
- package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +7 -2
- package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
- package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +2 -1
- package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +9 -3
- package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +4 -0
- package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +8 -2
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +12 -3
- package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +6 -1
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +131 -0
- package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +119 -0
- package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +130 -0
- package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
- package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
- package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
- package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +11 -2
- package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +11 -2
- package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +3 -1
- package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +2 -0
- package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +2 -0
- package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +2 -0
- package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +7 -2
- package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +3 -1
- 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
- package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +3 -2
package/dist/app.mjs
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
import {
|
2
2
|
DashboardApp
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-CAZKNJTG.mjs";
|
4
4
|
import "./chunk-NQIC7ZFS.mjs";
|
5
5
|
import "./chunk-ONB3JEHR.mjs";
|
6
6
|
import "./chunk-4GQOUCX6.mjs";
|
7
7
|
import "./chunk-2VTICXJR.mjs";
|
8
8
|
import "./chunk-D3YQN7HV.mjs";
|
9
|
-
import "./chunk-
|
9
|
+
import "./chunk-YPSSUJUZ.mjs";
|
10
10
|
import "./chunk-MNXC6Q4F.mjs";
|
11
11
|
import "./chunk-C5P5PL3E.mjs";
|
12
12
|
import "./chunk-DG7J63J2.mjs";
|
13
13
|
import "./chunk-RM6NY572.mjs";
|
14
14
|
import "./chunk-LPEUYMRK.mjs";
|
15
|
-
import "./chunk-
|
16
|
-
import "./chunk-
|
15
|
+
import "./chunk-ZCARHA6C.mjs";
|
16
|
+
import "./chunk-OZPB6JBL.mjs";
|
17
17
|
import "./chunk-OC7BQLYI.mjs";
|
18
|
+
import "./chunk-S4DMV3ZT.mjs";
|
18
19
|
import "./chunk-67ORSRVT.mjs";
|
19
20
|
import "./chunk-OBQI23QM.mjs";
|
20
|
-
import "./chunk-
|
21
|
+
import "./chunk-BSBCIU6C.mjs";
|
21
22
|
import "./chunk-KOSCMAIC.mjs";
|
23
|
+
import "./chunk-5U3FFMC7.mjs";
|
22
24
|
import "./chunk-X6DSNTTX.mjs";
|
23
25
|
import "./chunk-I6E6CALJ.mjs";
|
24
26
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
CreateCampaignForm
|
3
|
-
} from "./chunk-
|
4
|
-
import "./chunk-
|
3
|
+
} from "./chunk-LJDVFJK7.mjs";
|
4
|
+
import "./chunk-CY33DS7K.mjs";
|
5
5
|
import "./chunk-F6ZOHZVB.mjs";
|
6
6
|
import "./chunk-DK4WIVY6.mjs";
|
7
7
|
import "./chunk-IUCDCPJU.mjs";
|
@@ -9,6 +9,7 @@ import "./chunk-6HTZNHPT.mjs";
|
|
9
9
|
import {
|
10
10
|
RouteFocusModal
|
11
11
|
} from "./chunk-4TC5YS65.mjs";
|
12
|
+
import "./chunk-S4DMV3ZT.mjs";
|
12
13
|
import "./chunk-OBQI23QM.mjs";
|
13
14
|
import "./chunk-ZODJNBAV.mjs";
|
14
15
|
import "./chunk-V2LANK5S.mjs";
|
@@ -4,8 +4,8 @@ import {
|
|
4
4
|
import {
|
5
5
|
usePromotionTableColumns,
|
6
6
|
usePromotionTableQuery
|
7
|
-
} from "./chunk-
|
8
|
-
import "./chunk-
|
7
|
+
} from "./chunk-V53HAFWH.mjs";
|
8
|
+
import "./chunk-2252SSK6.mjs";
|
9
9
|
import "./chunk-MSDRGCRR.mjs";
|
10
10
|
import "./chunk-ADOCJB6L.mjs";
|
11
11
|
import "./chunk-LQTHYS2Z.mjs";
|
@@ -13,9 +13,9 @@ import "./chunk-P3UUX2T6.mjs";
|
|
13
13
|
import {
|
14
14
|
_DataTable,
|
15
15
|
useDataTable
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-EYL2JACT.mjs";
|
17
17
|
import "./chunk-YEDAFXMB.mjs";
|
18
|
-
import "./chunk-
|
18
|
+
import "./chunk-HQKGZADC.mjs";
|
19
19
|
import "./chunk-EMIHDNB7.mjs";
|
20
20
|
import {
|
21
21
|
currencies
|
@@ -27,11 +27,11 @@ import "./chunk-Z26G6WFJ.mjs";
|
|
27
27
|
import "./chunk-M3VFKDXJ.mjs";
|
28
28
|
import {
|
29
29
|
TwoColumnPage
|
30
|
-
} from "./chunk-
|
30
|
+
} from "./chunk-GIZFNLKK.mjs";
|
31
31
|
import "./chunk-C76H5USB.mjs";
|
32
32
|
import "./chunk-PFKKVLZX.mjs";
|
33
33
|
import "./chunk-4GQOUCX6.mjs";
|
34
|
-
import "./chunk-
|
34
|
+
import "./chunk-YPSSUJUZ.mjs";
|
35
35
|
import {
|
36
36
|
useExtension
|
37
37
|
} from "./chunk-C5P5PL3E.mjs";
|
@@ -40,11 +40,13 @@ import {
|
|
40
40
|
} from "./chunk-LPEUYMRK.mjs";
|
41
41
|
import {
|
42
42
|
ActionMenu
|
43
|
-
} from "./chunk-
|
43
|
+
} from "./chunk-OZPB6JBL.mjs";
|
44
44
|
import "./chunk-OC7BQLYI.mjs";
|
45
|
+
import "./chunk-S4DMV3ZT.mjs";
|
45
46
|
import "./chunk-67ORSRVT.mjs";
|
46
|
-
import "./chunk-
|
47
|
+
import "./chunk-BSBCIU6C.mjs";
|
47
48
|
import "./chunk-KOSCMAIC.mjs";
|
49
|
+
import "./chunk-5U3FFMC7.mjs";
|
48
50
|
import "./chunk-X6DSNTTX.mjs";
|
49
51
|
import "./chunk-I6E6CALJ.mjs";
|
50
52
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -122,11 +124,11 @@ var CampaignBudget = ({ campaign }) => {
|
|
122
124
|
return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col gap-y-4 px-6 py-4", children: [
|
123
125
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", children: [
|
124
126
|
/* @__PURE__ */ jsxs("div", { className: "flex-grow", children: [
|
125
|
-
/* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-base shadow-borders-base float-
|
127
|
+
/* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-base shadow-borders-base float-start flex size-7 items-center justify-center rounded-md", children: /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx2(ChartPie, { className: "text-ui-fg-subtle" }) }) }),
|
126
128
|
/* @__PURE__ */ jsx2(
|
127
129
|
Heading,
|
128
130
|
{
|
129
|
-
className: "text-ui-fg-subtle
|
131
|
+
className: "text-ui-fg-subtle ms-10 mt-[1.5px] font-normal",
|
130
132
|
level: "h3",
|
131
133
|
children: t("campaigns.fields.budget_limit")
|
132
134
|
}
|
@@ -152,7 +154,7 @@ var CampaignBudget = ({ campaign }) => {
|
|
152
154
|
/* @__PURE__ */ jsx2("div", { children: /* @__PURE__ */ jsx2(
|
153
155
|
Text,
|
154
156
|
{
|
155
|
-
className: "text-ui-fg-subtle border-ui-border-strong border-l-4
|
157
|
+
className: "text-ui-fg-subtle border-ui-border-strong border-l-4 ps-3",
|
156
158
|
size: "small",
|
157
159
|
leading: "compact",
|
158
160
|
children: /* @__PURE__ */ jsx2(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
useCampaignTableColumns
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-IVZ6BMDB.mjs";
|
4
4
|
import {
|
5
5
|
useCampaignTableQuery
|
6
6
|
} from "./chunk-OMC5JCQH.mjs";
|
@@ -11,15 +11,15 @@ import "./chunk-P3UUX2T6.mjs";
|
|
11
11
|
import {
|
12
12
|
_DataTable,
|
13
13
|
useDataTable
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-EYL2JACT.mjs";
|
15
15
|
import "./chunk-YEDAFXMB.mjs";
|
16
|
-
import "./chunk-
|
16
|
+
import "./chunk-HQKGZADC.mjs";
|
17
17
|
import "./chunk-EMIHDNB7.mjs";
|
18
18
|
import "./chunk-Z26G6WFJ.mjs";
|
19
19
|
import "./chunk-M3VFKDXJ.mjs";
|
20
20
|
import {
|
21
21
|
SingleColumnPage
|
22
|
-
} from "./chunk-
|
22
|
+
} from "./chunk-GIZFNLKK.mjs";
|
23
23
|
import "./chunk-C76H5USB.mjs";
|
24
24
|
import "./chunk-PFKKVLZX.mjs";
|
25
25
|
import {
|
@@ -28,8 +28,9 @@ import {
|
|
28
28
|
import "./chunk-LPEUYMRK.mjs";
|
29
29
|
import {
|
30
30
|
ActionMenu
|
31
|
-
} from "./chunk-
|
31
|
+
} from "./chunk-OZPB6JBL.mjs";
|
32
32
|
import "./chunk-OC7BQLYI.mjs";
|
33
|
+
import "./chunk-S4DMV3ZT.mjs";
|
33
34
|
import "./chunk-67ORSRVT.mjs";
|
34
35
|
import {
|
35
36
|
useCampaigns,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import "./chunk-XRTVFYCW.mjs";
|
2
2
|
import {
|
3
3
|
MetadataForm
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-IL5IMREK.mjs";
|
5
5
|
import "./chunk-IUCDCPJU.mjs";
|
6
6
|
import "./chunk-6HTZNHPT.mjs";
|
7
7
|
import {
|
@@ -9,9 +9,11 @@ import {
|
|
9
9
|
} from "./chunk-4TC5YS65.mjs";
|
10
10
|
import "./chunk-LPEUYMRK.mjs";
|
11
11
|
import "./chunk-OC7BQLYI.mjs";
|
12
|
+
import "./chunk-S4DMV3ZT.mjs";
|
12
13
|
import "./chunk-OBQI23QM.mjs";
|
13
|
-
import "./chunk-
|
14
|
+
import "./chunk-BSBCIU6C.mjs";
|
14
15
|
import "./chunk-KOSCMAIC.mjs";
|
16
|
+
import "./chunk-5U3FFMC7.mjs";
|
15
17
|
import "./chunk-X6DSNTTX.mjs";
|
16
18
|
import "./chunk-I6E6CALJ.mjs";
|
17
19
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -19,6 +19,9 @@ import {
|
|
19
19
|
RouteFocusModal,
|
20
20
|
useRouteModal
|
21
21
|
} from "./chunk-4TC5YS65.mjs";
|
22
|
+
import {
|
23
|
+
useDocumentDirection
|
24
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
22
25
|
import {
|
23
26
|
Form
|
24
27
|
} from "./chunk-OBQI23QM.mjs";
|
@@ -48,6 +51,7 @@ import { useTranslation } from "react-i18next";
|
|
48
51
|
import { jsx, jsxs } from "react/jsx-runtime";
|
49
52
|
var CreateCategoryDetails = ({ form }) => {
|
50
53
|
const { t } = useTranslation();
|
54
|
+
const direction = useDocumentDirection();
|
51
55
|
return /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center p-16", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", children: [
|
52
56
|
/* @__PURE__ */ jsxs("div", { children: [
|
53
57
|
/* @__PURE__ */ jsx(Heading, { children: t("categories.create.header") }),
|
@@ -106,13 +110,21 @@ var CreateCategoryDetails = ({ form }) => {
|
|
106
110
|
render: ({ field: { ref, onChange, ...field } }) => {
|
107
111
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
108
112
|
/* @__PURE__ */ jsx(Form.Label, { children: t("categories.fields.status.label") }),
|
109
|
-
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
113
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
114
|
+
Select,
|
115
|
+
{
|
116
|
+
dir: direction,
|
117
|
+
...field,
|
118
|
+
onValueChange: onChange,
|
119
|
+
children: [
|
120
|
+
/* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
121
|
+
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
122
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "active", children: t("categories.fields.status.active") }),
|
123
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "inactive", children: t("categories.fields.status.inactive") })
|
124
|
+
] })
|
125
|
+
]
|
126
|
+
}
|
127
|
+
) }),
|
116
128
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
117
129
|
] });
|
118
130
|
}
|
@@ -126,13 +138,21 @@ var CreateCategoryDetails = ({ form }) => {
|
|
126
138
|
render: ({ field: { ref, onChange, ...field } }) => {
|
127
139
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
128
140
|
/* @__PURE__ */ jsx(Form.Label, { children: t("categories.fields.visibility.label") }),
|
129
|
-
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
141
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
142
|
+
Select,
|
143
|
+
{
|
144
|
+
dir: direction,
|
145
|
+
...field,
|
146
|
+
onValueChange: onChange,
|
147
|
+
children: [
|
148
|
+
/* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
149
|
+
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
150
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "public", children: t("categories.fields.visibility.public") }),
|
151
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "internal", children: t("categories.fields.visibility.internal") })
|
152
|
+
] })
|
153
|
+
]
|
154
|
+
}
|
155
|
+
) }),
|
136
156
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
137
157
|
] });
|
138
158
|
}
|
@@ -242,6 +262,7 @@ var CreateCategoryForm = ({
|
|
242
262
|
}) => {
|
243
263
|
const { t } = useTranslation3();
|
244
264
|
const { handleSuccess } = useRouteModal();
|
265
|
+
const direction = useDocumentDirection();
|
245
266
|
const [activeTab, setActiveTab] = useState2("details" /* DETAILS */);
|
246
267
|
const [validDetails, setValidDetails] = useState2(false);
|
247
268
|
const [shouldFreeze, setShouldFreeze] = useState2(false);
|
@@ -321,6 +342,7 @@ var CreateCategoryForm = ({
|
|
321
342
|
children: /* @__PURE__ */ jsxs3(
|
322
343
|
ProgressTabs,
|
323
344
|
{
|
345
|
+
dir: direction,
|
324
346
|
value: activeTab,
|
325
347
|
onValueChange: (tab) => handleTabChange(tab),
|
326
348
|
className: "flex size-full flex-col",
|
@@ -24,18 +24,18 @@ import "./chunk-P3UUX2T6.mjs";
|
|
24
24
|
import {
|
25
25
|
_DataTable,
|
26
26
|
useDataTable
|
27
|
-
} from "./chunk-
|
27
|
+
} from "./chunk-EYL2JACT.mjs";
|
28
28
|
import "./chunk-YEDAFXMB.mjs";
|
29
|
-
import "./chunk-
|
29
|
+
import "./chunk-HQKGZADC.mjs";
|
30
30
|
import "./chunk-EMIHDNB7.mjs";
|
31
31
|
import {
|
32
32
|
useProductTableFilters
|
33
|
-
} from "./chunk-
|
33
|
+
} from "./chunk-YPDTZXV6.mjs";
|
34
34
|
import "./chunk-Z26G6WFJ.mjs";
|
35
35
|
import "./chunk-M3VFKDXJ.mjs";
|
36
36
|
import {
|
37
37
|
TwoColumnPage
|
38
|
-
} from "./chunk-
|
38
|
+
} from "./chunk-GIZFNLKK.mjs";
|
39
39
|
import "./chunk-C76H5USB.mjs";
|
40
40
|
import "./chunk-PFKKVLZX.mjs";
|
41
41
|
import "./chunk-MNXC6Q4F.mjs";
|
@@ -48,11 +48,13 @@ import {
|
|
48
48
|
} from "./chunk-LPEUYMRK.mjs";
|
49
49
|
import {
|
50
50
|
ActionMenu
|
51
|
-
} from "./chunk-
|
51
|
+
} from "./chunk-OZPB6JBL.mjs";
|
52
52
|
import "./chunk-OC7BQLYI.mjs";
|
53
|
+
import "./chunk-S4DMV3ZT.mjs";
|
53
54
|
import "./chunk-67ORSRVT.mjs";
|
54
|
-
import "./chunk-
|
55
|
+
import "./chunk-BSBCIU6C.mjs";
|
55
56
|
import "./chunk-KOSCMAIC.mjs";
|
57
|
+
import "./chunk-5U3FFMC7.mjs";
|
56
58
|
import "./chunk-X6DSNTTX.mjs";
|
57
59
|
import "./chunk-I6E6CALJ.mjs";
|
58
60
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -260,7 +262,7 @@ var PathDisplay = ({
|
|
260
262
|
children: /* @__PURE__ */ jsx3(Text2, { size: "xsmall", leading: "compact", weight: "plus", children: "..." })
|
261
263
|
}
|
262
264
|
) }),
|
263
|
-
/* @__PURE__ */ jsx3("div", { className: "flex size-[15px] shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx3(TriangleRightMini, {}) }),
|
265
|
+
/* @__PURE__ */ jsx3("div", { className: "flex size-[15px] shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx3(TriangleRightMini, { className: "rtl:rotate-180" }) }),
|
264
266
|
/* @__PURE__ */ jsx3(
|
265
267
|
Text2,
|
266
268
|
{
|
@@ -9,6 +9,9 @@ import {
|
|
9
9
|
RouteDrawer,
|
10
10
|
useRouteModal
|
11
11
|
} from "./chunk-4TC5YS65.mjs";
|
12
|
+
import {
|
13
|
+
useDocumentDirection
|
14
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
12
15
|
import {
|
13
16
|
Form
|
14
17
|
} from "./chunk-OBQI23QM.mjs";
|
@@ -44,6 +47,7 @@ var EditCategorySchema = z.object({
|
|
44
47
|
var EditCategoryForm = ({ category }) => {
|
45
48
|
const { t } = useTranslation();
|
46
49
|
const { handleSuccess } = useRouteModal();
|
50
|
+
const direction = useDocumentDirection();
|
47
51
|
const form = useForm({
|
48
52
|
defaultValues: {
|
49
53
|
name: category.name,
|
@@ -135,13 +139,21 @@ var EditCategoryForm = ({ category }) => {
|
|
135
139
|
render: ({ field: { ref, onChange, ...field } }) => {
|
136
140
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
137
141
|
/* @__PURE__ */ jsx(Form.Label, { children: t("categories.fields.status.label") }),
|
138
|
-
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
142
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
143
|
+
Select,
|
144
|
+
{
|
145
|
+
dir: direction,
|
146
|
+
...field,
|
147
|
+
onValueChange: onChange,
|
148
|
+
children: [
|
149
|
+
/* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
150
|
+
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
151
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "active", children: t("categories.fields.status.active") }),
|
152
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "inactive", children: t("categories.fields.status.inactive") })
|
153
|
+
] })
|
154
|
+
]
|
155
|
+
}
|
156
|
+
) }),
|
145
157
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
146
158
|
] });
|
147
159
|
}
|
@@ -155,13 +167,21 @@ var EditCategoryForm = ({ category }) => {
|
|
155
167
|
render: ({ field: { ref, onChange, ...field } }) => {
|
156
168
|
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
157
169
|
/* @__PURE__ */ jsx(Form.Label, { children: t("categories.fields.visibility.label") }),
|
158
|
-
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
170
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
171
|
+
Select,
|
172
|
+
{
|
173
|
+
dir: direction,
|
174
|
+
...field,
|
175
|
+
onValueChange: onChange,
|
176
|
+
children: [
|
177
|
+
/* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
178
|
+
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
179
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "public", children: t("categories.fields.visibility.public") }),
|
180
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "internal", children: t("categories.fields.visibility.internal") })
|
181
|
+
] })
|
182
|
+
]
|
183
|
+
}
|
184
|
+
) }),
|
165
185
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
166
186
|
] });
|
167
187
|
}
|
@@ -18,15 +18,15 @@ import "./chunk-P3UUX2T6.mjs";
|
|
18
18
|
import {
|
19
19
|
_DataTable,
|
20
20
|
useDataTable
|
21
|
-
} from "./chunk-
|
21
|
+
} from "./chunk-EYL2JACT.mjs";
|
22
22
|
import "./chunk-YEDAFXMB.mjs";
|
23
|
-
import "./chunk-
|
23
|
+
import "./chunk-HQKGZADC.mjs";
|
24
24
|
import "./chunk-EMIHDNB7.mjs";
|
25
25
|
import "./chunk-Z26G6WFJ.mjs";
|
26
26
|
import "./chunk-M3VFKDXJ.mjs";
|
27
27
|
import {
|
28
28
|
SingleColumnPage
|
29
|
-
} from "./chunk-
|
29
|
+
} from "./chunk-GIZFNLKK.mjs";
|
30
30
|
import {
|
31
31
|
useQueryParams
|
32
32
|
} from "./chunk-C76H5USB.mjs";
|
@@ -37,8 +37,9 @@ import {
|
|
37
37
|
import "./chunk-LPEUYMRK.mjs";
|
38
38
|
import {
|
39
39
|
ActionMenu
|
40
|
-
} from "./chunk-
|
40
|
+
} from "./chunk-OZPB6JBL.mjs";
|
41
41
|
import "./chunk-OC7BQLYI.mjs";
|
42
|
+
import "./chunk-S4DMV3ZT.mjs";
|
42
43
|
import "./chunk-67ORSRVT.mjs";
|
43
44
|
import {
|
44
45
|
useProductCategories
|
@@ -12,13 +12,13 @@ import "./chunk-P3UUX2T6.mjs";
|
|
12
12
|
import {
|
13
13
|
_DataTable,
|
14
14
|
useDataTable
|
15
|
-
} from "./chunk-
|
15
|
+
} from "./chunk-EYL2JACT.mjs";
|
16
16
|
import "./chunk-YEDAFXMB.mjs";
|
17
|
-
import "./chunk-
|
17
|
+
import "./chunk-HQKGZADC.mjs";
|
18
18
|
import "./chunk-EMIHDNB7.mjs";
|
19
19
|
import {
|
20
20
|
useProductTableFilters
|
21
|
-
} from "./chunk-
|
21
|
+
} from "./chunk-YPDTZXV6.mjs";
|
22
22
|
import "./chunk-Z26G6WFJ.mjs";
|
23
23
|
import "./chunk-M3VFKDXJ.mjs";
|
24
24
|
import "./chunk-C76H5USB.mjs";
|
@@ -33,10 +33,12 @@ import {
|
|
33
33
|
} from "./chunk-4TC5YS65.mjs";
|
34
34
|
import "./chunk-MNXC6Q4F.mjs";
|
35
35
|
import "./chunk-LPEUYMRK.mjs";
|
36
|
+
import "./chunk-S4DMV3ZT.mjs";
|
36
37
|
import "./chunk-67ORSRVT.mjs";
|
37
38
|
import "./chunk-OBQI23QM.mjs";
|
38
|
-
import "./chunk-
|
39
|
+
import "./chunk-BSBCIU6C.mjs";
|
39
40
|
import "./chunk-KOSCMAIC.mjs";
|
41
|
+
import "./chunk-5U3FFMC7.mjs";
|
40
42
|
import "./chunk-X6DSNTTX.mjs";
|
41
43
|
import "./chunk-I6E6CALJ.mjs";
|
42
44
|
import "./chunk-4RG7UJCT.mjs";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
CreateCampaignFormFields
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-CY33DS7K.mjs";
|
4
4
|
import {
|
5
5
|
KeyboundForm
|
6
6
|
} from "./chunk-6HTZNHPT.mjs";
|
@@ -8,6 +8,9 @@ import {
|
|
8
8
|
RouteDrawer,
|
9
9
|
useRouteModal
|
10
10
|
} from "./chunk-4TC5YS65.mjs";
|
11
|
+
import {
|
12
|
+
useDocumentDirection
|
13
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
11
14
|
import {
|
12
15
|
Form
|
13
16
|
} from "./chunk-OBQI23QM.mjs";
|
@@ -96,6 +99,7 @@ var AddCampaignPromotionFields = ({
|
|
96
99
|
name: "campaign_choice"
|
97
100
|
});
|
98
101
|
const selectedCampaign = campaigns.find((c) => c.id === watchCampaignId);
|
102
|
+
const direction = useDocumentDirection();
|
99
103
|
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-y-8", children: [
|
100
104
|
/* @__PURE__ */ jsx2(
|
101
105
|
Form.Field,
|
@@ -108,6 +112,7 @@ var AddCampaignPromotionFields = ({
|
|
108
112
|
/* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
|
109
113
|
RadioGroup,
|
110
114
|
{
|
115
|
+
dir: direction,
|
111
116
|
className: "grid grid-cols-1 gap-3",
|
112
117
|
...field,
|
113
118
|
value: field.value,
|
@@ -157,20 +162,28 @@ var AddCampaignPromotionFields = ({
|
|
157
162
|
render: ({ field: { onChange, ref, ...field } }) => {
|
158
163
|
return /* @__PURE__ */ jsxs2(Form.Item, { children: [
|
159
164
|
/* @__PURE__ */ jsx2(Form.Label, { children: t("promotions.form.campaign.existing.title") }),
|
160
|
-
/* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
/* @__PURE__ */ jsx2(
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
165
|
+
/* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
|
166
|
+
Select,
|
167
|
+
{
|
168
|
+
dir: direction,
|
169
|
+
onValueChange: onChange,
|
170
|
+
...field,
|
171
|
+
children: [
|
172
|
+
/* @__PURE__ */ jsx2(Select.Trigger, { ref, children: /* @__PURE__ */ jsx2(Select.Value, {}) }),
|
173
|
+
/* @__PURE__ */ jsxs2(Select.Content, { children: [
|
174
|
+
!campaigns.length && /* @__PURE__ */ jsxs2("div", { className: "flex h-[120px] flex-col items-center justify-center gap-2 p-2", children: [
|
175
|
+
/* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(
|
176
|
+
"promotions.form.campaign.existing.placeholder.title"
|
177
|
+
) }),
|
178
|
+
/* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-muted", children: t(
|
179
|
+
"promotions.form.campaign.existing.placeholder.desc"
|
180
|
+
) })
|
181
|
+
] }),
|
182
|
+
campaigns.map((c) => /* @__PURE__ */ jsx2(Select.Item, { value: c.id, children: c.name?.toUpperCase() }, c.id))
|
183
|
+
] })
|
184
|
+
]
|
185
|
+
}
|
186
|
+
) }),
|
174
187
|
/* @__PURE__ */ jsx2(
|
175
188
|
Text2,
|
176
189
|
{
|
@@ -0,0 +1,84 @@
|
|
1
|
+
import {
|
2
|
+
queryClient
|
3
|
+
} from "./chunk-FXYH54JP.mjs";
|
4
|
+
import {
|
5
|
+
queryKeysFactory
|
6
|
+
} from "./chunk-774WSTCC.mjs";
|
7
|
+
import {
|
8
|
+
sdk
|
9
|
+
} from "./chunk-DEQUVHHE.mjs";
|
10
|
+
|
11
|
+
// src/hooks/api/refund-reasons.tsx
|
12
|
+
import {
|
13
|
+
useMutation,
|
14
|
+
useQuery
|
15
|
+
} from "@tanstack/react-query";
|
16
|
+
var REFUND_REASONS_QUERY_KEY = "refund_reasons";
|
17
|
+
var refundReasonsQueryKeys = queryKeysFactory(REFUND_REASONS_QUERY_KEY);
|
18
|
+
var useRefundReasons = (query, options) => {
|
19
|
+
const { data, ...rest } = useQuery({
|
20
|
+
queryFn: () => sdk.admin.refundReason.list(query),
|
21
|
+
queryKey: refundReasonsQueryKeys.list(query),
|
22
|
+
...options
|
23
|
+
});
|
24
|
+
return { ...data, ...rest };
|
25
|
+
};
|
26
|
+
var useRefundReason = (id, query, options) => {
|
27
|
+
const { data, ...rest } = useQuery({
|
28
|
+
queryFn: () => sdk.admin.refundReason.retrieve(id, query),
|
29
|
+
queryKey: refundReasonsQueryKeys.detail(id),
|
30
|
+
...options
|
31
|
+
});
|
32
|
+
return { ...data, ...rest };
|
33
|
+
};
|
34
|
+
var useCreateRefundReason = (query, options) => {
|
35
|
+
return useMutation({
|
36
|
+
mutationFn: async (data) => sdk.admin.refundReason.create(data, query),
|
37
|
+
onSuccess: (data, variables, context) => {
|
38
|
+
queryClient.invalidateQueries({
|
39
|
+
queryKey: refundReasonsQueryKeys.lists()
|
40
|
+
});
|
41
|
+
options?.onSuccess?.(data, variables, context);
|
42
|
+
},
|
43
|
+
...options
|
44
|
+
});
|
45
|
+
};
|
46
|
+
var useUpdateRefundReason = (id, options) => {
|
47
|
+
return useMutation({
|
48
|
+
mutationFn: async (data) => sdk.admin.refundReason.update(id, data),
|
49
|
+
onSuccess: (data, variables, context) => {
|
50
|
+
queryClient.invalidateQueries({
|
51
|
+
queryKey: refundReasonsQueryKeys.lists()
|
52
|
+
});
|
53
|
+
queryClient.invalidateQueries({
|
54
|
+
queryKey: refundReasonsQueryKeys.detail(data.refund_reason.id)
|
55
|
+
});
|
56
|
+
options?.onSuccess?.(data, variables, context);
|
57
|
+
},
|
58
|
+
...options
|
59
|
+
});
|
60
|
+
};
|
61
|
+
var useDeleteRefundReasonLazy = (options) => {
|
62
|
+
return useMutation({
|
63
|
+
mutationFn: (id) => sdk.admin.refundReason.delete(id),
|
64
|
+
onSuccess: (data, variables, context) => {
|
65
|
+
queryClient.invalidateQueries({
|
66
|
+
queryKey: refundReasonsQueryKeys.lists()
|
67
|
+
});
|
68
|
+
queryClient.invalidateQueries({
|
69
|
+
queryKey: refundReasonsQueryKeys.details()
|
70
|
+
});
|
71
|
+
options?.onSuccess?.(data, variables, context);
|
72
|
+
},
|
73
|
+
...options
|
74
|
+
});
|
75
|
+
};
|
76
|
+
|
77
|
+
export {
|
78
|
+
refundReasonsQueryKeys,
|
79
|
+
useRefundReasons,
|
80
|
+
useRefundReason,
|
81
|
+
useCreateRefundReason,
|
82
|
+
useUpdateRefundReason,
|
83
|
+
useDeleteRefundReasonLazy
|
84
|
+
};
|