@medusajs/dashboard 2.12.3-snapshot-20251216185234 → 2.12.3-snapshot-20251217081413
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/{api-key-management-detail-6RCDH73M.mjs → api-key-management-detail-FRUN2KFK.mjs} +1 -1
- package/dist/app.css +9 -0
- package/dist/app.js +330 -324
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-5Q4BYCPX.mjs → campaign-detail-HM3GQJLQ.mjs} +1 -1
- package/dist/{categories-metadata-J7M3XWI7.mjs → categories-metadata-WKL3MGD7.mjs} +1 -1
- package/dist/{category-detail-S5IPXMHX.mjs → category-detail-UTWWDKFP.mjs} +2 -2
- package/dist/{category-products-KPW6BA5J.mjs → category-products-XXBTCXFF.mjs} +2 -2
- package/dist/{chunk-OL24RDYM.mjs → chunk-5F427YCP.mjs} +2 -2
- package/dist/{chunk-MJDHVDOW.mjs → chunk-5ISRTMYH.mjs} +1 -1
- package/dist/{chunk-ST4P6BQN.mjs → chunk-DQUXK4WW.mjs} +1 -1
- package/dist/{chunk-YYOPBKME.mjs → chunk-DTCIBQO2.mjs} +1 -1
- package/dist/{chunk-OL6MEUKW.mjs → chunk-FJR3D6EM.mjs} +102 -102
- package/dist/{chunk-LZFWCKOF.mjs → chunk-FKNW5MLZ.mjs} +21 -4
- package/dist/{chunk-GRZSG4EP.mjs → chunk-GLBHPDR4.mjs} +21 -16
- package/dist/{chunk-WYATCUOM.mjs → chunk-HNJ65IND.mjs} +1 -1
- package/dist/{chunk-DBXWB3RF.mjs → chunk-KSDXSKJ7.mjs} +1 -1
- package/dist/{chunk-PHLCT2HA.mjs → chunk-OK6NZN2A.mjs} +1 -1
- package/dist/{chunk-ZMG5B4FG.mjs → chunk-SG2JZPTG.mjs} +1 -1
- package/dist/{chunk-CVHJAKLQ.mjs → chunk-UMCJYHAD.mjs} +1 -1
- package/dist/{collection-add-products-FU2BS3D3.mjs → collection-add-products-42F7H77E.mjs} +2 -2
- package/dist/{collection-detail-VJE7XHLV.mjs → collection-detail-PXIS3G64.mjs} +2 -2
- package/dist/{collection-list-IGA6SCNF.mjs → collection-list-O74CGY24.mjs} +2 -2
- package/dist/{collection-metadata-QK7MI3D2.mjs → collection-metadata-U6FMA4IC.mjs} +1 -1
- package/dist/{customer-detail-MOV2T3LF.mjs → customer-detail-OMTFJ6CE.mjs} +1 -1
- package/dist/{customer-group-detail-6T7OXGQD.mjs → customer-group-detail-ADK3M5LG.mjs} +1 -1
- package/dist/{customer-group-list-AJEAF5D2.mjs → customer-group-list-7ZRQ2HWU.mjs} +1 -1
- package/dist/{customers-add-customer-group-QVTVSQYM.mjs → customers-add-customer-group-5U27WHJB.mjs} +1 -1
- package/dist/{edit-rules-SMVRTCUP.mjs → edit-rules-BM2ERGVJ.mjs} +1 -1
- package/dist/{inventory-create-BK52VALF.mjs → inventory-create-7MA7B5N2.mjs} +2 -2
- package/dist/{inventory-detail-ZPSEMYI2.mjs → inventory-detail-B4PRHZK3.mjs} +1 -1
- package/dist/{inventory-metadata-FNEJ3RAT.mjs → inventory-metadata-C7MJ3GY5.mjs} +1 -1
- package/dist/{inventory-stock-6WYWLWJ7.mjs → inventory-stock-WVTYPJTX.mjs} +3 -3
- package/dist/{location-detail-N3GUZSY7.mjs → location-detail-KO6EBDK5.mjs} +1 -1
- package/dist/{location-fulfillment-providers-7ZUJAGNY.mjs → location-fulfillment-providers-IORBE3E3.mjs} +2 -2
- package/dist/{location-service-zone-shipping-option-create-CNRWYZQC.mjs → location-service-zone-shipping-option-create-2R3ZFLVK.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-pricing-OGWI7VPT.mjs → location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs} +2 -2
- package/dist/{login-VNOLI5YG.mjs → login-XKB6OR7I.mjs} +1 -1
- package/dist/{order-create-claim-SCDJGM46.mjs → order-create-claim-NKCOGF4A.mjs} +1 -1
- package/dist/{order-create-edit-2WALBPXS.mjs → order-create-edit-UNQYXGLL.mjs} +1 -1
- package/dist/{order-create-exchange-LQU4YN7F.mjs → order-create-exchange-WI7OA2WO.mjs} +1 -1
- package/dist/{order-create-fulfillment-OWUVTZXW.mjs → order-create-fulfillment-2LJTEWDY.mjs} +1 -1
- package/dist/{order-create-refund-Q6HQY42R.mjs → order-create-refund-7K6UJXGP.mjs} +1 -1
- package/dist/{order-create-shipment-WAGGEPRW.mjs → order-create-shipment-ZTDLLUBY.mjs} +1 -1
- package/dist/{order-detail-PVPGEWGY.mjs → order-detail-JTRUMRLO.mjs} +1 -1
- package/dist/{order-edit-billing-address-UM76J4KX.mjs → order-edit-billing-address-YHYNVLOE.mjs} +1 -1
- package/dist/{order-edit-email-CL3KNOCM.mjs → order-edit-email-TCQPEVZY.mjs} +1 -1
- package/dist/{order-edit-shipping-address-PIESTGVL.mjs → order-edit-shipping-address-CFSYQLKD.mjs} +1 -1
- package/dist/{order-export-LE363ZLB.mjs → order-export-G4SBNEJ7.mjs} +1 -1
- package/dist/{order-metadata-FHBB7MTG.mjs → order-metadata-KGPB37VL.mjs} +1 -1
- package/dist/{order-receive-return-PRVKP6J2.mjs → order-receive-return-JER24SEV.mjs} +1 -1
- package/dist/{order-request-transfer-XSAGRUMT.mjs → order-request-transfer-3FBUYZNT.mjs} +1 -1
- package/dist/{price-list-create-K5JEZT57.mjs → price-list-create-CXZCFFTP.mjs} +4 -4
- package/dist/{price-list-detail-Q5VG5VGW.mjs → price-list-detail-XOMU6U5J.mjs} +2 -2
- package/dist/{price-list-prices-add-2MQ226U4.mjs → price-list-prices-add-SDX5CQME.mjs} +4 -4
- package/dist/{price-list-prices-edit-OJZLV7OS.mjs → price-list-prices-edit-EKB6NI5D.mjs} +2 -2
- package/dist/{product-attributes-YF4TZOIO.mjs → product-attributes-S535VXSC.mjs} +2 -2
- package/dist/{product-create-KJML2332.mjs → product-create-DKBLOS3M.mjs} +3 -3
- package/dist/{product-create-variant-5EBCLM54.mjs → product-create-variant-OTJKT6WI.mjs} +2 -2
- package/dist/{product-detail-QG72542C.mjs → product-detail-D2PJ64Q3.mjs} +2 -2
- package/dist/{product-edit-DZZR775Q.mjs → product-edit-K6CAQD5H.mjs} +2 -2
- package/dist/{product-export-5AD7NELI.mjs → product-export-57UUAGXF.mjs} +2 -2
- package/dist/{product-image-variants-edit-M6QF2RLE.mjs → product-image-variants-edit-2BW5BJON.mjs} +1 -1
- package/dist/{product-import-V3KQN4TV.mjs → product-import-6EM4VUXP.mjs} +1 -1
- package/dist/{product-list-EUWZIFTM.mjs → product-list-5V5GEH5K.mjs} +2 -2
- package/dist/{product-metadata-GL2MVPDI.mjs → product-metadata-JZLHBLZQ.mjs} +1 -1
- package/dist/{product-organization-O7RHELMQ.mjs → product-organization-IQFN54D2.mjs} +2 -2
- package/dist/{product-prices-YWV6MSM6.mjs → product-prices-5ZL2RP7A.mjs} +1 -1
- package/dist/{product-stock-AKEFMK5O.mjs → product-stock-SJJABF6I.mjs} +3 -3
- package/dist/{product-tag-create-PQMDDKWH.mjs → product-tag-create-XXO4AQEC.mjs} +1 -1
- package/dist/{product-tag-detail-I3MBZX7U.mjs → product-tag-detail-BSK64HXL.mjs} +3 -3
- package/dist/{product-tag-edit-K3BBQLJR.mjs → product-tag-edit-ENCGDT7E.mjs} +1 -1
- package/dist/{product-tag-list-JUWSOMB7.mjs → product-tag-list-SLQGCNDZ.mjs} +3 -3
- package/dist/{product-tag-metadata-MJH5LH7E.mjs → product-tag-metadata-EPXHMU2K.mjs} +1 -1
- package/dist/{product-type-detail-RKHT5NBL.mjs → product-type-detail-4CRRU7YK.mjs} +2 -2
- package/dist/{product-type-metadata-CDJDFFGQ.mjs → product-type-metadata-73OKOGPP.mjs} +1 -1
- package/dist/{product-variant-detail-XAYG5CKE.mjs → product-variant-detail-RPHLG4HU.mjs} +1 -1
- package/dist/{product-variant-edit-DEZEY2H2.mjs → product-variant-edit-JF7NN64Y.mjs} +1 -1
- package/dist/{product-variant-metadata-VTZDNWUT.mjs → product-variant-metadata-HU2CXGPO.mjs} +1 -1
- package/dist/{promotion-create-HWFNUQXG.mjs → promotion-create-BHA3FQG2.mjs} +1 -1
- package/dist/{promotion-detail-QC36KXB3.mjs → promotion-detail-F3QSR52W.mjs} +1 -1
- package/dist/{refund-reason-create-YHCDEHGQ.mjs → refund-reason-create-ZA5TKW2Z.mjs} +1 -1
- package/dist/{refund-reason-edit-CZ5QZ2SZ.mjs → refund-reason-edit-N2CRCLKZ.mjs} +1 -1
- package/dist/{refund-reason-list-OJYYEYJE.mjs → refund-reason-list-SE4TMGMT.mjs} +1 -1
- package/dist/{region-metadata-H6XXUQ4S.mjs → region-metadata-O5NZBWXP.mjs} +1 -1
- package/dist/{reservation-detail-LZAQL4XA.mjs → reservation-detail-UFK6XIXE.mjs} +1 -1
- package/dist/{reservation-metadata-5HZSDDOK.mjs → reservation-metadata-AEJEKGLV.mjs} +1 -1
- package/dist/{sales-channel-add-products-F7YV4MO5.mjs → sales-channel-add-products-2LMB7EF5.mjs} +2 -2
- package/dist/{sales-channel-detail-MXIPZCGA.mjs → sales-channel-detail-EUQ4STQI.mjs} +2 -2
- package/dist/{sales-channel-list-RLGL7FM3.mjs → sales-channel-list-JXKGHX4G.mjs} +1 -1
- package/dist/{sales-channel-metadata-M364R4RJ.mjs → sales-channel-metadata-AJMQ5SQ2.mjs} +1 -1
- package/dist/{shipping-option-type-create-C5WUWON7.mjs → shipping-option-type-create-YVVIA2XC.mjs} +1 -1
- package/dist/{shipping-option-type-detail-PENS2K73.mjs → shipping-option-type-detail-ZZW36XLK.mjs} +2 -2
- package/dist/{shipping-option-type-edit-CIU5EHRP.mjs → shipping-option-type-edit-O6F74T3A.mjs} +1 -1
- package/dist/{shipping-option-type-list-DIOX7VG7.mjs → shipping-option-type-list-SPTE7MT6.mjs} +2 -2
- package/dist/{shipping-profile-metadata-75G2NNMA.mjs → shipping-profile-metadata-7WFE55VG.mjs} +1 -1
- package/dist/{store-add-locales-VJ4RJ7UI.mjs → store-add-locales-I4GX3KAY.mjs} +1 -1
- package/dist/{store-detail-JSNPOB2F.mjs → store-detail-YLJLBBZE.mjs} +1 -1
- package/dist/{store-metadata-CYXTVJUE.mjs → store-metadata-BZ57I2E6.mjs} +1 -1
- package/dist/{tax-region-create-DWGL4EUT.mjs → tax-region-create-FGTV7VJL.mjs} +1 -1
- package/dist/{tax-region-detail-2AE2EFI3.mjs → tax-region-detail-PPIMD7OX.mjs} +5 -5
- package/dist/{tax-region-edit-EEVEEU2Q.mjs → tax-region-edit-ELZKA7YH.mjs} +1 -1
- package/dist/{tax-region-province-detail-4ERSEQFF.mjs → tax-region-province-detail-FV2NDT3E.mjs} +5 -5
- package/dist/{tax-region-tax-override-create-PHCGEF7V.mjs → tax-region-tax-override-create-N572MQPZ.mjs} +3 -3
- package/dist/{tax-region-tax-override-edit-SMRPSILC.mjs → tax-region-tax-override-edit-5DCSJW6D.mjs} +4 -4
- package/dist/{translation-list-UF7FLXOW.mjs → translation-list-KSM4QA3K.mjs} +63 -50
- package/dist/{translations-edit-USQJNMAY.mjs → translations-edit-VRXZI5KW.mjs} +224 -253
- package/dist/{user-metadata-2WPJOEJA.mjs → user-metadata-GRJZZ524.mjs} +1 -1
- package/dist/{workflow-execution-detail-H2AKEZJX.mjs → workflow-execution-detail-HXTFWGKG.mjs} +1 -1
- package/package.json +9 -9
- package/src/components/data-grid/hooks/use-data-grid-cell.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +1 -0
- package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +22 -4
- package/src/hooks/api/translations.tsx +26 -17
- package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +1 -1
- package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +66 -46
- package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +285 -330
|
@@ -12,7 +12,7 @@ import "./chunk-LPEUYMRK.mjs";
|
|
|
12
12
|
import "./chunk-OC7BQLYI.mjs";
|
|
13
13
|
import "./chunk-S4DMV3ZT.mjs";
|
|
14
14
|
import "./chunk-OBQI23QM.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
16
16
|
import "./chunk-I4OBEAOJ.mjs";
|
|
17
17
|
import "./chunk-HI6URQ7H.mjs";
|
|
18
18
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-5F427YCP.mjs";
|
|
6
|
+
import "./chunk-UMCJYHAD.mjs";
|
|
7
|
+
import "./chunk-HNJ65IND.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionTable,
|
|
10
10
|
useTaxRegionTable
|
|
@@ -67,7 +67,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
67
67
|
import "./chunk-MOSRJHJ3.mjs";
|
|
68
68
|
import "./chunk-OMC5JCQH.mjs";
|
|
69
69
|
import "./chunk-IW4TACOD.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-DTCIBQO2.mjs";
|
|
71
71
|
import "./chunk-R65S6ZZV.mjs";
|
|
72
72
|
import "./chunk-ZQJPHZKI.mjs";
|
|
73
73
|
import "./chunk-KIIT4BNH.mjs";
|
|
@@ -98,7 +98,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
98
98
|
import "./chunk-S4DMV3ZT.mjs";
|
|
99
99
|
import "./chunk-535OVBXR.mjs";
|
|
100
100
|
import "./chunk-OBQI23QM.mjs";
|
|
101
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
102
102
|
import "./chunk-I4OBEAOJ.mjs";
|
|
103
103
|
import {
|
|
104
104
|
useTaxRates
|
package/dist/{tax-region-province-detail-4ERSEQFF.mjs → tax-region-province-detail-FV2NDT3E.mjs}
RENAMED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
TaxOverrideTable,
|
|
3
3
|
TaxRateLine,
|
|
4
4
|
useTaxOverrideTable
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-5F427YCP.mjs";
|
|
6
|
+
import "./chunk-UMCJYHAD.mjs";
|
|
7
|
+
import "./chunk-HNJ65IND.mjs";
|
|
8
8
|
import {
|
|
9
9
|
TaxRegionCard
|
|
10
10
|
} from "./chunk-S22SJRPO.mjs";
|
|
@@ -60,7 +60,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
60
60
|
import "./chunk-MOSRJHJ3.mjs";
|
|
61
61
|
import "./chunk-OMC5JCQH.mjs";
|
|
62
62
|
import "./chunk-IW4TACOD.mjs";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-DTCIBQO2.mjs";
|
|
64
64
|
import "./chunk-R65S6ZZV.mjs";
|
|
65
65
|
import "./chunk-ZQJPHZKI.mjs";
|
|
66
66
|
import "./chunk-KIIT4BNH.mjs";
|
|
@@ -87,7 +87,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
87
87
|
import "./chunk-S4DMV3ZT.mjs";
|
|
88
88
|
import "./chunk-535OVBXR.mjs";
|
|
89
89
|
import "./chunk-OBQI23QM.mjs";
|
|
90
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
91
91
|
import "./chunk-I4OBEAOJ.mjs";
|
|
92
92
|
import {
|
|
93
93
|
useTaxRates
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
TargetItem,
|
|
4
4
|
TaxRateRuleReferenceSchema,
|
|
5
5
|
createTaxRulePayload
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HNJ65IND.mjs";
|
|
7
7
|
import "./chunk-PA3T6IWL.mjs";
|
|
8
8
|
import "./chunk-QOCJPBRB.mjs";
|
|
9
9
|
import "./chunk-QMRGIWOP.mjs";
|
|
@@ -51,7 +51,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
51
51
|
import "./chunk-MOSRJHJ3.mjs";
|
|
52
52
|
import "./chunk-OMC5JCQH.mjs";
|
|
53
53
|
import "./chunk-IW4TACOD.mjs";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-DTCIBQO2.mjs";
|
|
55
55
|
import "./chunk-R65S6ZZV.mjs";
|
|
56
56
|
import "./chunk-ZQJPHZKI.mjs";
|
|
57
57
|
import "./chunk-C76H5USB.mjs";
|
|
@@ -82,7 +82,7 @@ import "./chunk-535OVBXR.mjs";
|
|
|
82
82
|
import {
|
|
83
83
|
Form
|
|
84
84
|
} from "./chunk-OBQI23QM.mjs";
|
|
85
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
86
86
|
import "./chunk-I4OBEAOJ.mjs";
|
|
87
87
|
import {
|
|
88
88
|
useCreateTaxRate
|
package/dist/{tax-region-tax-override-edit-SMRPSILC.mjs → tax-region-tax-override-edit-5DCSJW6D.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DISPLAY_OVERRIDE_ITEMS_LIMIT,
|
|
3
3
|
TaxRegionTaxOverrideEditForm
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-UMCJYHAD.mjs";
|
|
5
|
+
import "./chunk-HNJ65IND.mjs";
|
|
6
6
|
import "./chunk-PA3T6IWL.mjs";
|
|
7
7
|
import "./chunk-QOCJPBRB.mjs";
|
|
8
8
|
import "./chunk-QMRGIWOP.mjs";
|
|
@@ -48,7 +48,7 @@ import "./chunk-WRSGHGAT.mjs";
|
|
|
48
48
|
import "./chunk-MOSRJHJ3.mjs";
|
|
49
49
|
import "./chunk-OMC5JCQH.mjs";
|
|
50
50
|
import "./chunk-IW4TACOD.mjs";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-DTCIBQO2.mjs";
|
|
52
52
|
import "./chunk-R65S6ZZV.mjs";
|
|
53
53
|
import "./chunk-ZQJPHZKI.mjs";
|
|
54
54
|
import "./chunk-C76H5USB.mjs";
|
|
@@ -67,7 +67,7 @@ import "./chunk-OC7BQLYI.mjs";
|
|
|
67
67
|
import "./chunk-S4DMV3ZT.mjs";
|
|
68
68
|
import "./chunk-535OVBXR.mjs";
|
|
69
69
|
import "./chunk-OBQI23QM.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-GLBHPDR4.mjs";
|
|
71
71
|
import "./chunk-I4OBEAOJ.mjs";
|
|
72
72
|
import {
|
|
73
73
|
useTaxRate
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
useTranslationSettings,
|
|
12
12
|
useTranslationStatistics
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GLBHPDR4.mjs";
|
|
14
14
|
import "./chunk-I4OBEAOJ.mjs";
|
|
15
15
|
import "./chunk-HI6URQ7H.mjs";
|
|
16
16
|
import "./chunk-6CLQKVAU.mjs";
|
|
@@ -74,7 +74,7 @@ var ActiveLocalesSection = ({
|
|
|
74
74
|
const hasLocales = locales.length > 0;
|
|
75
75
|
return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col p-0", children: [
|
|
76
76
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
77
|
-
/* @__PURE__ */ jsx(Heading, { children: t("translations.activeLocales.heading") }),
|
|
77
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", children: t("translations.activeLocales.heading") }),
|
|
78
78
|
/* @__PURE__ */ jsx(IconButton, { variant: "transparent", onClick: handleManageLocales, children: /* @__PURE__ */ jsx(PencilSquare, {}) })
|
|
79
79
|
] }),
|
|
80
80
|
/* @__PURE__ */ jsx("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ jsxs(Container, { className: "bg-ui-bg-component flex items-center gap-x-4 px-6 py-2", children: [
|
|
@@ -173,60 +173,63 @@ var TranslationsCompletionSection = ({
|
|
|
173
173
|
() => Math.max(...localeStats.map((s) => s.total), 1),
|
|
174
174
|
[localeStats]
|
|
175
175
|
);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
/* @__PURE__ */ jsxs3(
|
|
180
|
-
|
|
181
|
-
" ",
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
176
|
+
const localeStatsCount = useMemo(() => localeStats.length, [localeStats]);
|
|
177
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "p-0", children: [
|
|
178
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-4 px-6 py-4", children: [
|
|
179
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
180
|
+
/* @__PURE__ */ jsx3(Heading2, { level: "h2", children: t("translations.completion.heading") }),
|
|
181
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
182
|
+
translatedCount.toLocaleString(),
|
|
183
|
+
" ",
|
|
184
|
+
t("general.of"),
|
|
185
|
+
" ",
|
|
186
|
+
totalCount.toLocaleString()
|
|
187
|
+
] })
|
|
188
|
+
] }),
|
|
189
|
+
/* @__PURE__ */ jsx3("div", { className: "flex h-3 w-full overflow-hidden", children: percentage > 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
190
|
+
/* @__PURE__ */ jsx3(
|
|
191
|
+
"div",
|
|
192
|
+
{
|
|
193
|
+
className: "mr-0.5 h-full rounded-sm transition-all",
|
|
194
|
+
style: {
|
|
195
|
+
width: `${percentage}%`,
|
|
196
|
+
backgroundColor: "var(--bg-interactive)"
|
|
197
|
+
}
|
|
195
198
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ jsx3(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
className: "h-full flex-1 rounded-sm",
|
|
204
|
+
style: {
|
|
205
|
+
backgroundColor: "var(--bg-interactive)",
|
|
206
|
+
opacity: 0.3
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
)
|
|
210
|
+
] }) : /* @__PURE__ */ jsx3(
|
|
199
211
|
"div",
|
|
200
212
|
{
|
|
201
|
-
className: "h-full
|
|
213
|
+
className: "h-full w-full rounded-sm",
|
|
202
214
|
style: {
|
|
203
215
|
backgroundColor: "var(--bg-interactive)",
|
|
204
216
|
opacity: 0.3
|
|
205
217
|
}
|
|
206
218
|
}
|
|
207
|
-
)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
219
|
-
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
220
|
-
percentage.toFixed(1),
|
|
221
|
-
"%"
|
|
222
|
-
] }),
|
|
223
|
-
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
224
|
-
remaining.toLocaleString(),
|
|
225
|
-
" ",
|
|
226
|
-
t("general.remaining").toLowerCase()
|
|
219
|
+
) }),
|
|
220
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
|
|
221
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
222
|
+
percentage.toFixed(1),
|
|
223
|
+
"%"
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
|
|
226
|
+
remaining.toLocaleString(),
|
|
227
|
+
" ",
|
|
228
|
+
t("general.remaining").toLowerCase()
|
|
229
|
+
] })
|
|
227
230
|
] })
|
|
228
231
|
] }),
|
|
229
|
-
localeStats.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "
|
|
232
|
+
localeStats.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "border-ui-border-strong flex flex-col gap-y-3 border-t border-dashed px-6 pb-6 pt-4", children: [
|
|
230
233
|
/* @__PURE__ */ jsx3("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
|
|
231
234
|
const heightPercent = locale.total / maxTotal * 100;
|
|
232
235
|
const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
|
|
@@ -283,7 +286,7 @@ var TranslationsCompletionSection = ({
|
|
|
283
286
|
children: /* @__PURE__ */ jsxs3(
|
|
284
287
|
"div",
|
|
285
288
|
{
|
|
286
|
-
className: "flex min-w-2 flex-1
|
|
289
|
+
className: "flex min-w-2 flex-1 flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
|
|
287
290
|
style: { height: `${heightPercent}%` },
|
|
288
291
|
onMouseEnter: () => setHoveredLocale(locale.code),
|
|
289
292
|
onMouseLeave: () => setHoveredLocale(null),
|
|
@@ -318,12 +321,22 @@ var TranslationsCompletionSection = ({
|
|
|
318
321
|
locale.code
|
|
319
322
|
);
|
|
320
323
|
}) }),
|
|
321
|
-
/* @__PURE__ */ jsx3(
|
|
324
|
+
localeStatsCount < 9 && /* @__PURE__ */ jsx3("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ jsx3(
|
|
325
|
+
Text3,
|
|
326
|
+
{
|
|
327
|
+
size: "xsmall",
|
|
328
|
+
weight: "plus",
|
|
329
|
+
className: "text-ui-fg-subtle min-w-2 flex-1 whitespace-normal break-words text-center leading-tight",
|
|
330
|
+
children: localeStatsCount < 6 ? locale.name : locale.code
|
|
331
|
+
},
|
|
332
|
+
locale.code
|
|
333
|
+
)) }),
|
|
334
|
+
localeStatsCount > 9 && /* @__PURE__ */ jsx3(
|
|
322
335
|
Text3,
|
|
323
336
|
{
|
|
324
|
-
size: "small",
|
|
325
337
|
weight: "plus",
|
|
326
|
-
|
|
338
|
+
size: "xsmall",
|
|
339
|
+
className: "text-ui-fg-subtle text-center",
|
|
327
340
|
children: t("translations.completion.footer")
|
|
328
341
|
}
|
|
329
342
|
)
|