@medusajs/dashboard 2.12.3-preview-20251217123836 → 2.12.3-snapshot-20251216185234

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 (126) hide show
  1. package/dist/{api-key-management-detail-FRUN2KFK.mjs → api-key-management-detail-6RCDH73M.mjs} +1 -1
  2. package/dist/app.css +0 -19
  3. package/dist/app.js +679 -795
  4. package/dist/app.mjs +2 -2
  5. package/dist/{campaign-detail-HM3GQJLQ.mjs → campaign-detail-5Q4BYCPX.mjs} +1 -1
  6. package/dist/{categories-metadata-WKL3MGD7.mjs → categories-metadata-J7M3XWI7.mjs} +1 -1
  7. package/dist/{category-detail-UTWWDKFP.mjs → category-detail-S5IPXMHX.mjs} +2 -2
  8. package/dist/{category-products-XXBTCXFF.mjs → category-products-KPW6BA5J.mjs} +2 -2
  9. package/dist/{chunk-UMCJYHAD.mjs → chunk-CVHJAKLQ.mjs} +1 -1
  10. package/dist/{chunk-KSDXSKJ7.mjs → chunk-DBXWB3RF.mjs} +1 -1
  11. package/dist/{chunk-GLBHPDR4.mjs → chunk-GRZSG4EP.mjs} +16 -21
  12. package/dist/{chunk-FKNW5MLZ.mjs → chunk-LZFWCKOF.mjs} +4 -21
  13. package/dist/{chunk-5ISRTMYH.mjs → chunk-MJDHVDOW.mjs} +1 -1
  14. package/dist/{chunk-5F427YCP.mjs → chunk-OL24RDYM.mjs} +2 -2
  15. package/dist/{chunk-VFF5WB7C.mjs → chunk-OL6MEUKW.mjs} +104 -108
  16. package/dist/{chunk-OK6NZN2A.mjs → chunk-PHLCT2HA.mjs} +1 -1
  17. package/dist/{chunk-DQUXK4WW.mjs → chunk-ST4P6BQN.mjs} +1 -1
  18. package/dist/{chunk-HNJ65IND.mjs → chunk-WYATCUOM.mjs} +1 -1
  19. package/dist/{chunk-DTCIBQO2.mjs → chunk-YYOPBKME.mjs} +1 -1
  20. package/dist/{chunk-SG2JZPTG.mjs → chunk-ZMG5B4FG.mjs} +1 -1
  21. package/dist/{collection-add-products-42F7H77E.mjs → collection-add-products-FU2BS3D3.mjs} +2 -2
  22. package/dist/{collection-detail-PXIS3G64.mjs → collection-detail-VJE7XHLV.mjs} +2 -2
  23. package/dist/{collection-list-O74CGY24.mjs → collection-list-IGA6SCNF.mjs} +2 -2
  24. package/dist/{collection-metadata-U6FMA4IC.mjs → collection-metadata-QK7MI3D2.mjs} +1 -1
  25. package/dist/{customer-detail-OMTFJ6CE.mjs → customer-detail-MOV2T3LF.mjs} +1 -1
  26. package/dist/{customer-group-detail-ADK3M5LG.mjs → customer-group-detail-6T7OXGQD.mjs} +1 -1
  27. package/dist/{customer-group-list-7ZRQ2HWU.mjs → customer-group-list-AJEAF5D2.mjs} +1 -1
  28. package/dist/{customers-add-customer-group-5U27WHJB.mjs → customers-add-customer-group-QVTVSQYM.mjs} +1 -1
  29. package/dist/{edit-rules-BM2ERGVJ.mjs → edit-rules-SMVRTCUP.mjs} +1 -1
  30. package/dist/en.json +1 -1
  31. package/dist/{inventory-create-7MA7B5N2.mjs → inventory-create-BK52VALF.mjs} +2 -2
  32. package/dist/{inventory-detail-B4PRHZK3.mjs → inventory-detail-ZPSEMYI2.mjs} +1 -1
  33. package/dist/{inventory-metadata-C7MJ3GY5.mjs → inventory-metadata-FNEJ3RAT.mjs} +1 -1
  34. package/dist/{inventory-stock-WVTYPJTX.mjs → inventory-stock-6WYWLWJ7.mjs} +3 -3
  35. package/dist/{location-detail-KO6EBDK5.mjs → location-detail-N3GUZSY7.mjs} +1 -1
  36. package/dist/{location-fulfillment-providers-IORBE3E3.mjs → location-fulfillment-providers-7ZUJAGNY.mjs} +2 -2
  37. package/dist/{location-service-zone-shipping-option-create-2R3ZFLVK.mjs → location-service-zone-shipping-option-create-CNRWYZQC.mjs} +3 -3
  38. package/dist/{location-service-zone-shipping-option-pricing-5HN2Z5RB.mjs → location-service-zone-shipping-option-pricing-OGWI7VPT.mjs} +2 -2
  39. package/dist/{login-XKB6OR7I.mjs → login-VNOLI5YG.mjs} +1 -1
  40. package/dist/{order-create-claim-NKCOGF4A.mjs → order-create-claim-SCDJGM46.mjs} +1 -1
  41. package/dist/{order-create-edit-UNQYXGLL.mjs → order-create-edit-2WALBPXS.mjs} +1 -1
  42. package/dist/{order-create-exchange-WI7OA2WO.mjs → order-create-exchange-LQU4YN7F.mjs} +1 -1
  43. package/dist/{order-create-fulfillment-2LJTEWDY.mjs → order-create-fulfillment-OWUVTZXW.mjs} +1 -1
  44. package/dist/{order-create-refund-7K6UJXGP.mjs → order-create-refund-Q6HQY42R.mjs} +1 -1
  45. package/dist/{order-create-shipment-ZTDLLUBY.mjs → order-create-shipment-WAGGEPRW.mjs} +1 -1
  46. package/dist/{order-detail-JTRUMRLO.mjs → order-detail-PVPGEWGY.mjs} +1 -1
  47. package/dist/{order-edit-billing-address-YHYNVLOE.mjs → order-edit-billing-address-UM76J4KX.mjs} +1 -1
  48. package/dist/{order-edit-email-TCQPEVZY.mjs → order-edit-email-CL3KNOCM.mjs} +1 -1
  49. package/dist/{order-edit-shipping-address-CFSYQLKD.mjs → order-edit-shipping-address-PIESTGVL.mjs} +1 -1
  50. package/dist/{order-export-G4SBNEJ7.mjs → order-export-LE363ZLB.mjs} +1 -1
  51. package/dist/{order-metadata-KGPB37VL.mjs → order-metadata-FHBB7MTG.mjs} +1 -1
  52. package/dist/{order-receive-return-JER24SEV.mjs → order-receive-return-PRVKP6J2.mjs} +1 -1
  53. package/dist/{order-request-transfer-3FBUYZNT.mjs → order-request-transfer-XSAGRUMT.mjs} +1 -1
  54. package/dist/{price-list-create-CXZCFFTP.mjs → price-list-create-K5JEZT57.mjs} +4 -4
  55. package/dist/{price-list-detail-XOMU6U5J.mjs → price-list-detail-Q5VG5VGW.mjs} +2 -2
  56. package/dist/{price-list-prices-add-SDX5CQME.mjs → price-list-prices-add-2MQ226U4.mjs} +4 -4
  57. package/dist/{price-list-prices-edit-EKB6NI5D.mjs → price-list-prices-edit-OJZLV7OS.mjs} +2 -2
  58. package/dist/{product-attributes-MXDPSOWM.mjs → product-attributes-YF4TZOIO.mjs} +2 -2
  59. package/dist/{product-create-3O34JJLS.mjs → product-create-KJML2332.mjs} +3 -3
  60. package/dist/{product-create-variant-OTJKT6WI.mjs → product-create-variant-5EBCLM54.mjs} +2 -2
  61. package/dist/{product-detail-SYTLG5D3.mjs → product-detail-QG72542C.mjs} +2 -2
  62. package/dist/{product-edit-W72S22NM.mjs → product-edit-DZZR775Q.mjs} +2 -2
  63. package/dist/{product-export-57UUAGXF.mjs → product-export-5AD7NELI.mjs} +2 -2
  64. package/dist/{product-image-variants-edit-2BW5BJON.mjs → product-image-variants-edit-M6QF2RLE.mjs} +1 -1
  65. package/dist/{product-import-6EM4VUXP.mjs → product-import-V3KQN4TV.mjs} +1 -1
  66. package/dist/{product-list-5V5GEH5K.mjs → product-list-EUWZIFTM.mjs} +2 -2
  67. package/dist/{product-metadata-JZLHBLZQ.mjs → product-metadata-GL2MVPDI.mjs} +1 -1
  68. package/dist/{product-organization-SVXTCWIF.mjs → product-organization-O7RHELMQ.mjs} +2 -2
  69. package/dist/{product-prices-5ZL2RP7A.mjs → product-prices-YWV6MSM6.mjs} +1 -1
  70. package/dist/{product-stock-SJJABF6I.mjs → product-stock-AKEFMK5O.mjs} +3 -3
  71. package/dist/{product-tag-create-XXO4AQEC.mjs → product-tag-create-PQMDDKWH.mjs} +1 -1
  72. package/dist/{product-tag-detail-BSK64HXL.mjs → product-tag-detail-I3MBZX7U.mjs} +3 -3
  73. package/dist/{product-tag-edit-ENCGDT7E.mjs → product-tag-edit-K3BBQLJR.mjs} +1 -1
  74. package/dist/{product-tag-list-SLQGCNDZ.mjs → product-tag-list-JUWSOMB7.mjs} +3 -3
  75. package/dist/{product-tag-metadata-EPXHMU2K.mjs → product-tag-metadata-MJH5LH7E.mjs} +1 -1
  76. package/dist/{product-type-detail-4CRRU7YK.mjs → product-type-detail-RKHT5NBL.mjs} +2 -2
  77. package/dist/{product-type-metadata-73OKOGPP.mjs → product-type-metadata-CDJDFFGQ.mjs} +1 -1
  78. package/dist/{product-variant-detail-RPHLG4HU.mjs → product-variant-detail-XAYG5CKE.mjs} +1 -1
  79. package/dist/{product-variant-edit-JF7NN64Y.mjs → product-variant-edit-DEZEY2H2.mjs} +1 -1
  80. package/dist/{product-variant-metadata-HU2CXGPO.mjs → product-variant-metadata-VTZDNWUT.mjs} +1 -1
  81. package/dist/{promotion-create-BHA3FQG2.mjs → promotion-create-HWFNUQXG.mjs} +1 -1
  82. package/dist/{promotion-detail-F3QSR52W.mjs → promotion-detail-QC36KXB3.mjs} +1 -1
  83. package/dist/{refund-reason-create-ZA5TKW2Z.mjs → refund-reason-create-YHCDEHGQ.mjs} +1 -1
  84. package/dist/{refund-reason-edit-N2CRCLKZ.mjs → refund-reason-edit-CZ5QZ2SZ.mjs} +1 -1
  85. package/dist/{refund-reason-list-SE4TMGMT.mjs → refund-reason-list-OJYYEYJE.mjs} +1 -1
  86. package/dist/{region-metadata-O5NZBWXP.mjs → region-metadata-H6XXUQ4S.mjs} +1 -1
  87. package/dist/{reservation-detail-UFK6XIXE.mjs → reservation-detail-LZAQL4XA.mjs} +1 -1
  88. package/dist/{reservation-metadata-AEJEKGLV.mjs → reservation-metadata-5HZSDDOK.mjs} +1 -1
  89. package/dist/{sales-channel-add-products-2LMB7EF5.mjs → sales-channel-add-products-F7YV4MO5.mjs} +2 -2
  90. package/dist/{sales-channel-detail-EUQ4STQI.mjs → sales-channel-detail-MXIPZCGA.mjs} +2 -2
  91. package/dist/{sales-channel-list-JXKGHX4G.mjs → sales-channel-list-RLGL7FM3.mjs} +1 -1
  92. package/dist/{sales-channel-metadata-AJMQ5SQ2.mjs → sales-channel-metadata-M364R4RJ.mjs} +1 -1
  93. package/dist/{shipping-option-type-create-YVVIA2XC.mjs → shipping-option-type-create-C5WUWON7.mjs} +1 -1
  94. package/dist/{shipping-option-type-detail-ZZW36XLK.mjs → shipping-option-type-detail-PENS2K73.mjs} +2 -2
  95. package/dist/{shipping-option-type-edit-O6F74T3A.mjs → shipping-option-type-edit-CIU5EHRP.mjs} +1 -1
  96. package/dist/{shipping-option-type-list-SPTE7MT6.mjs → shipping-option-type-list-DIOX7VG7.mjs} +2 -2
  97. package/dist/{shipping-profile-metadata-7WFE55VG.mjs → shipping-profile-metadata-75G2NNMA.mjs} +1 -1
  98. package/dist/{chunk-IKTGFXWR.mjs → store-add-locales-VJ4RJ7UI.mjs} +67 -2
  99. package/dist/{store-detail-YLJLBBZE.mjs → store-detail-JSNPOB2F.mjs} +1 -1
  100. package/dist/{store-metadata-BZ57I2E6.mjs → store-metadata-CYXTVJUE.mjs} +1 -1
  101. package/dist/{tax-region-create-FGTV7VJL.mjs → tax-region-create-DWGL4EUT.mjs} +1 -1
  102. package/dist/{tax-region-detail-PPIMD7OX.mjs → tax-region-detail-2AE2EFI3.mjs} +5 -5
  103. package/dist/{tax-region-edit-ELZKA7YH.mjs → tax-region-edit-EEVEEU2Q.mjs} +1 -1
  104. package/dist/{tax-region-province-detail-FV2NDT3E.mjs → tax-region-province-detail-4ERSEQFF.mjs} +5 -5
  105. package/dist/{tax-region-tax-override-create-N572MQPZ.mjs → tax-region-tax-override-create-PHCGEF7V.mjs} +3 -3
  106. package/dist/{tax-region-tax-override-edit-5DCSJW6D.mjs → tax-region-tax-override-edit-SMRPSILC.mjs} +4 -4
  107. package/dist/{translation-list-FK7XYLHX.mjs → translation-list-UF7FLXOW.mjs} +141 -227
  108. package/dist/{translations-edit-VRXZI5KW.mjs → translations-edit-USQJNMAY.mjs} +253 -224
  109. package/dist/{user-metadata-GRJZZ524.mjs → user-metadata-2WPJOEJA.mjs} +1 -1
  110. package/dist/{workflow-execution-detail-HXTFWGKG.mjs → workflow-execution-detail-H2AKEZJX.mjs} +1 -1
  111. package/package.json +9 -9
  112. package/src/components/data-grid/hooks/use-data-grid-cell.tsx +0 -1
  113. package/src/components/data-grid/hooks/use-data-grid-form-handlers.tsx +0 -1
  114. package/src/components/data-grid/hooks/use-data-grid-keydown-event.tsx +4 -22
  115. package/src/dashboard-app/routes/get-route.map.tsx +0 -4
  116. package/src/hooks/api/translations.tsx +17 -26
  117. package/src/i18n/translations/en.json +1 -1
  118. package/src/i18n/translations/es.json +1 -1
  119. package/src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx +17 -42
  120. package/src/routes/translations/translation-list/components/translation-list-section/translation-list-section.tsx +1 -5
  121. package/src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx +121 -182
  122. package/src/routes/translations/translations-edit/components/translations-edit-form/translations-edit-form.tsx +330 -285
  123. package/dist/add-locales-GGNZCABB.mjs +0 -81
  124. package/dist/store-add-locales-GWCGIXHU.mjs +0 -81
  125. package/src/routes/translations/add-locales/add-locales.tsx +0 -29
  126. package/src/routes/translations/add-locales/index.tsx +0 -1
@@ -2,9 +2,9 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-5F427YCP.mjs";
6
- import "./chunk-UMCJYHAD.mjs";
7
- import "./chunk-HNJ65IND.mjs";
5
+ } from "./chunk-OL24RDYM.mjs";
6
+ import "./chunk-CVHJAKLQ.mjs";
7
+ import "./chunk-WYATCUOM.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-DTCIBQO2.mjs";
70
+ import "./chunk-YYOPBKME.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-GLBHPDR4.mjs";
101
+ import "./chunk-GRZSG4EP.mjs";
102
102
  import "./chunk-I4OBEAOJ.mjs";
103
103
  import {
104
104
  useTaxRates
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  Form
22
22
  } from "./chunk-OBQI23QM.mjs";
23
- import "./chunk-GLBHPDR4.mjs";
23
+ import "./chunk-GRZSG4EP.mjs";
24
24
  import "./chunk-I4OBEAOJ.mjs";
25
25
  import "./chunk-HI6URQ7H.mjs";
26
26
  import {
@@ -2,9 +2,9 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-5F427YCP.mjs";
6
- import "./chunk-UMCJYHAD.mjs";
7
- import "./chunk-HNJ65IND.mjs";
5
+ } from "./chunk-OL24RDYM.mjs";
6
+ import "./chunk-CVHJAKLQ.mjs";
7
+ import "./chunk-WYATCUOM.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-DTCIBQO2.mjs";
63
+ import "./chunk-YYOPBKME.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-GLBHPDR4.mjs";
90
+ import "./chunk-GRZSG4EP.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-HNJ65IND.mjs";
6
+ } from "./chunk-WYATCUOM.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-DTCIBQO2.mjs";
54
+ import "./chunk-YYOPBKME.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-GLBHPDR4.mjs";
85
+ import "./chunk-GRZSG4EP.mjs";
86
86
  import "./chunk-I4OBEAOJ.mjs";
87
87
  import {
88
88
  useCreateTaxRate
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  DISPLAY_OVERRIDE_ITEMS_LIMIT,
3
3
  TaxRegionTaxOverrideEditForm
4
- } from "./chunk-UMCJYHAD.mjs";
5
- import "./chunk-HNJ65IND.mjs";
4
+ } from "./chunk-CVHJAKLQ.mjs";
5
+ import "./chunk-WYATCUOM.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-DTCIBQO2.mjs";
51
+ import "./chunk-YYOPBKME.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-GLBHPDR4.mjs";
70
+ import "./chunk-GRZSG4EP.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-GLBHPDR4.mjs";
13
+ } from "./chunk-GRZSG4EP.mjs";
14
14
  import "./chunk-I4OBEAOJ.mjs";
15
15
  import "./chunk-HI6URQ7H.mjs";
16
16
  import "./chunk-6CLQKVAU.mjs";
@@ -51,16 +51,9 @@ import { useTranslation as useTranslation4 } from "react-i18next";
51
51
 
52
52
  // src/routes/translations/translation-list/components/active-locales-section/active-locales-section.tsx
53
53
  import { PencilSquare, Language } from "@medusajs/icons";
54
- import {
55
- Container,
56
- Heading,
57
- IconButton,
58
- InlineTip,
59
- Text,
60
- Tooltip
61
- } from "@medusajs/ui";
54
+ import { Container, Heading, IconButton, InlineTip, Text } from "@medusajs/ui";
62
55
  import { useTranslation } from "react-i18next";
63
- import { useCallback, useState } from "react";
56
+ import { useCallback } from "react";
64
57
  import { useNavigate } from "react-router-dom";
65
58
  import { jsx, jsxs } from "react/jsx-runtime";
66
59
  var ActiveLocalesSection = ({
@@ -68,9 +61,8 @@ var ActiveLocalesSection = ({
68
61
  }) => {
69
62
  const { t } = useTranslation();
70
63
  const navigate = useNavigate();
71
- const [isHovered, setIsHovered] = useState(false);
72
64
  const handleManageLocales = useCallback(() => {
73
- navigate("/settings/translations/add-locales");
65
+ navigate("/settings/store/locales");
74
66
  }, [navigate]);
75
67
  const renderLocales = useCallback(() => {
76
68
  const maxLocalesToDetail = 2;
@@ -82,31 +74,16 @@ var ActiveLocalesSection = ({
82
74
  const hasLocales = locales.length > 0;
83
75
  return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col p-0", children: [
84
76
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
85
- /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("translations.activeLocales.heading") }),
77
+ /* @__PURE__ */ jsx(Heading, { children: t("translations.activeLocales.heading") }),
86
78
  /* @__PURE__ */ jsx(IconButton, { variant: "transparent", onClick: handleManageLocales, children: /* @__PURE__ */ jsx(PencilSquare, {}) })
87
79
  ] }),
88
- /* @__PURE__ */ jsx("div", { className: "px-1 pb-1", children: hasLocales ? /* @__PURE__ */ jsx(
89
- Tooltip,
90
- {
91
- open: isHovered,
92
- content: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-1 p-1", children: locales.map((locale) => /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: locale.name }, locale.code)) }),
93
- children: /* @__PURE__ */ jsxs(
94
- Container,
95
- {
96
- className: "bg-ui-bg-component border-r-1 flex items-center gap-x-4 px-[19px] py-2",
97
- onMouseEnter: () => setIsHovered(true),
98
- onMouseLeave: () => setIsHovered(false),
99
- children: [
100
- /* @__PURE__ */ jsx(IconAvatar, { className: "border-ui-border-base border", children: /* @__PURE__ */ jsx(Language, {}) }),
101
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
102
- /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: t("translations.activeLocales.subtitle") }),
103
- /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
104
- ] })
105
- ]
106
- }
107
- )
108
- }
109
- ) : /* @__PURE__ */ jsx(InlineTip, { label: "Tip", children: t("translations.activeLocales.noLocalesTip") }) })
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: [
81
+ /* @__PURE__ */ jsx(IconAvatar, { children: /* @__PURE__ */ jsx(Language, {}) }),
82
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
83
+ /* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", children: t("translations.activeLocales.subtitle") }),
84
+ /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", children: renderLocales() })
85
+ ] })
86
+ ] }) : /* @__PURE__ */ jsx(InlineTip, { label: "Tip", children: t("translations.activeLocales.noLocalesTip") }) })
110
87
  ] });
111
88
  };
112
89
 
@@ -134,15 +111,7 @@ var TranslationListSection = ({
134
111
  Link,
135
112
  {
136
113
  to: `/settings/translations/edit?reference=${entity.reference}`,
137
- children: /* @__PURE__ */ jsx2(
138
- Button,
139
- {
140
- variant: "secondary",
141
- size: "small",
142
- disabled: !hasLocales || !entity.totalCount,
143
- children: "Edit"
144
- }
145
- )
114
+ children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", disabled: !hasLocales, children: "Edit" })
146
115
  }
147
116
  )
148
117
  ]
@@ -152,8 +121,8 @@ var TranslationListSection = ({
152
121
  };
153
122
 
154
123
  // src/routes/translations/translation-list/components/translations-completion-section/translations-completion-section.tsx
155
- import { Container as Container3, Divider, Heading as Heading2, Text as Text3, Tooltip as Tooltip2 } from "@medusajs/ui";
156
- import { useMemo, useState as useState2 } from "react";
124
+ import { Container as Container3, Heading as Heading2, Text as Text3, Tooltip } from "@medusajs/ui";
125
+ import { useMemo, useState } from "react";
157
126
  import { useTranslation as useTranslation3 } from "react-i18next";
158
127
  import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
159
128
  var TranslationsCompletionSection = ({
@@ -161,7 +130,7 @@ var TranslationsCompletionSection = ({
161
130
  locales
162
131
  }) => {
163
132
  const { t } = useTranslation3();
164
- const [hoveredLocale, setHoveredLocale] = useState2(null);
133
+ const [hoveredLocale, setHoveredLocale] = useState(null);
165
134
  const { translatedCount, totalCount } = Object.values(statistics).reduce(
166
135
  (acc, curr) => ({
167
136
  translatedCount: acc.translatedCount + curr.translated,
@@ -204,215 +173,160 @@ var TranslationsCompletionSection = ({
204
173
  () => Math.max(...localeStats.map((s) => s.total), 1),
205
174
  [localeStats]
206
175
  );
207
- const localeStatsCount = useMemo(() => localeStats.length, [localeStats]);
208
- return /* @__PURE__ */ jsxs3(Container3, { className: "p-0", children: [
209
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-4 px-6 py-4", children: [
210
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
211
- /* @__PURE__ */ jsx3(Heading2, { level: "h2", children: t("translations.completion.heading") }),
212
- /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
213
- translatedCount.toLocaleString(),
214
- " ",
215
- t("general.of"),
216
- " ",
217
- totalCount.toLocaleString()
218
- ] })
219
- ] }),
220
- /* @__PURE__ */ jsx3("div", { className: "flex h-3 w-full overflow-hidden", children: percentage > 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
221
- /* @__PURE__ */ jsx3(
222
- "div",
223
- {
224
- className: "mr-0.5 h-full rounded-sm transition-all",
225
- style: {
226
- width: `${percentage}%`,
227
- backgroundColor: "var(--tag-blue-icon)",
228
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
229
- }
230
- }
231
- ),
232
- /* @__PURE__ */ jsx3(
233
- "div",
234
- {
235
- className: "h-full flex-1 rounded-sm",
236
- style: {
237
- backgroundColor: "var(--tag-blue-border)",
238
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
239
- }
176
+ return /* @__PURE__ */ jsxs3(Container3, { className: "flex flex-col gap-y-3 px-6 py-4", children: [
177
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
178
+ /* @__PURE__ */ jsx3(Heading2, { children: t("translations.completion.heading") }),
179
+ /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
180
+ translatedCount.toLocaleString(),
181
+ " ",
182
+ t("general.of"),
183
+ " ",
184
+ totalCount.toLocaleString()
185
+ ] })
186
+ ] }),
187
+ /* @__PURE__ */ jsx3("div", { className: "flex h-3 w-full overflow-hidden", children: percentage > 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
188
+ /* @__PURE__ */ jsx3(
189
+ "div",
190
+ {
191
+ className: "mr-0.5 h-full rounded-sm transition-all",
192
+ style: {
193
+ width: `${percentage}%`,
194
+ backgroundColor: "var(--bg-interactive)"
240
195
  }
241
- )
242
- ] }) : /* @__PURE__ */ jsx3(
196
+ }
197
+ ),
198
+ /* @__PURE__ */ jsx3(
243
199
  "div",
244
200
  {
245
- className: "h-full w-full rounded-sm",
201
+ className: "h-full flex-1 rounded-sm",
246
202
  style: {
247
- backgroundColor: "var(--tag-blue-border)",
248
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
203
+ backgroundColor: "var(--bg-interactive)",
204
+ opacity: 0.3
249
205
  }
250
206
  }
251
- ) }),
252
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
253
- /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
254
- percentage.toFixed(1),
255
- "%"
256
- ] }),
257
- /* @__PURE__ */ jsxs3(Text3, { size: "small", weight: "plus", className: "text-ui-fg-subtle", children: [
258
- remaining.toLocaleString(),
259
- " ",
260
- t("general.remaining").toLowerCase()
261
- ] })
207
+ )
208
+ ] }) : /* @__PURE__ */ jsx3(
209
+ "div",
210
+ {
211
+ className: "h-full w-full rounded-full",
212
+ style: {
213
+ backgroundColor: "var(--bg-interactive)",
214
+ opacity: 0.3
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()
262
227
  ] })
263
228
  ] }),
264
- localeStats.length > 0 && /* @__PURE__ */ jsxs3(Fragment, { children: [
265
- /* @__PURE__ */ jsx3(Divider, { variant: "dashed" }),
266
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-3 px-6 pb-6 pt-4", children: [
267
- /* @__PURE__ */ jsx3("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
268
- const heightPercent = locale.total / maxTotal * 100;
269
- const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
270
- return /* @__PURE__ */ jsx3(
271
- Tooltip2,
272
- {
273
- open: hoveredLocale === locale.code,
274
- content: /* @__PURE__ */ jsxs3("div", { className: "flex min-w-[150px] flex-col gap-y-1 p-1", children: [
275
- /* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.name }),
276
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
277
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
278
- /* @__PURE__ */ jsx3(
279
- "div",
280
- {
281
- className: "h-2 w-2 rounded-full",
282
- style: {
283
- backgroundColor: "var(--tag-blue-icon)",
284
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
285
- }
286
- }
287
- ),
288
- /* @__PURE__ */ jsx3(
289
- Text3,
290
- {
291
- size: "small",
292
- weight: "plus",
293
- className: "text-ui-fg-base",
294
- children: t("translations.completion.translated")
295
- }
296
- )
297
- ] }),
229
+ localeStats.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "mt-4 flex flex-col gap-y-2", children: [
230
+ /* @__PURE__ */ jsx3("div", { className: "flex h-32 w-full items-end gap-1", children: localeStats.map((locale) => {
231
+ const heightPercent = locale.total / maxTotal * 100;
232
+ const translatedPercent = locale.total > 0 ? locale.translated / locale.total * 100 : 0;
233
+ return /* @__PURE__ */ jsx3(
234
+ Tooltip,
235
+ {
236
+ open: hoveredLocale === locale.code,
237
+ content: /* @__PURE__ */ jsxs3("div", { className: "flex flex-col gap-y-1 p-1", children: [
238
+ /* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.name }),
239
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
240
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
298
241
  /* @__PURE__ */ jsx3(
299
- Text3,
242
+ "div",
300
243
  {
301
- size: "small",
302
- weight: "plus",
303
- className: "text-ui-fg-base",
304
- children: locale.translated
244
+ className: "h-2 w-2 rounded-full",
245
+ style: { backgroundColor: "var(--bg-interactive)" }
305
246
  }
306
- )
307
- ] }),
308
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between", children: [
309
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
310
- /* @__PURE__ */ jsx3(
311
- "div",
312
- {
313
- className: "h-2 w-2 rounded-full",
314
- style: {
315
- backgroundColor: "var(--tag-blue-border)",
316
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
317
- }
318
- }
319
- ),
320
- /* @__PURE__ */ jsx3(
321
- Text3,
322
- {
323
- size: "small",
324
- weight: "plus",
325
- className: "text-ui-fg-base",
326
- children: t("translations.completion.toTranslate")
327
- }
328
- )
329
- ] }),
247
+ ),
330
248
  /* @__PURE__ */ jsx3(
331
249
  Text3,
332
250
  {
333
251
  size: "small",
334
252
  weight: "plus",
335
- className: "text-ui-fg-base",
336
- children: locale.toTranslate
253
+ className: "text-ui-fg-subtle",
254
+ children: t("translations.completion.translated")
337
255
  }
338
256
  )
339
- ] })
257
+ ] }),
258
+ /* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.translated })
340
259
  ] }),
341
- children: /* @__PURE__ */ jsx3("div", { className: "flex h-full flex-1 items-end justify-center", children: /* @__PURE__ */ jsx3(
342
- "div",
343
- {
344
- className: "flex w-full min-w-2 max-w-[96px] flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
345
- style: { height: `${heightPercent}%` },
346
- onMouseEnter: () => setHoveredLocale(locale.code),
347
- onMouseLeave: () => setHoveredLocale(null),
348
- children: translatedPercent === 0 ? /* @__PURE__ */ jsx3(
260
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
261
+ /* @__PURE__ */ jsx3(
262
+ "div",
263
+ {
264
+ className: "h-2 w-2 rounded-full",
265
+ style: {
266
+ backgroundColor: "var(--bg-interactive)",
267
+ opacity: 0.3
268
+ }
269
+ }
270
+ ),
271
+ /* @__PURE__ */ jsx3(
272
+ Text3,
273
+ {
274
+ size: "small",
275
+ weight: "plus",
276
+ className: "text-ui-fg-subtle",
277
+ children: t("translations.completion.toTranslate")
278
+ }
279
+ ),
280
+ /* @__PURE__ */ jsx3(Text3, { size: "small", weight: "plus", children: locale.toTranslate })
281
+ ] })
282
+ ] }),
283
+ children: /* @__PURE__ */ jsxs3(
284
+ "div",
285
+ {
286
+ className: "flex min-w-2 flex-1 cursor-pointer flex-col justify-end overflow-hidden rounded-t-sm transition-opacity",
287
+ style: { height: `${heightPercent}%` },
288
+ onMouseEnter: () => setHoveredLocale(locale.code),
289
+ onMouseLeave: () => setHoveredLocale(null),
290
+ children: [
291
+ /* @__PURE__ */ jsx3(
349
292
  "div",
350
293
  {
351
- className: "w-full rounded-sm",
294
+ className: "w-full rounded-t-sm",
352
295
  style: {
353
- height: "100%",
354
- backgroundColor: "var(--tag-neutral-bg)",
355
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)"
296
+ height: `${100 - translatedPercent}%`,
297
+ backgroundColor: "var(--bg-interactive)",
298
+ opacity: 0.3,
299
+ minHeight: locale.toTranslate > 0 ? "2px" : "0"
356
300
  }
357
301
  }
358
- ) : /* @__PURE__ */ jsxs3(Fragment, { children: [
359
- /* @__PURE__ */ jsx3(
360
- "div",
361
- {
362
- className: "w-full rounded-sm",
363
- style: {
364
- height: `${100 - translatedPercent}%`,
365
- backgroundColor: "var(--tag-blue-border)",
366
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
367
- minHeight: locale.toTranslate > 0 ? "2px" : "0"
368
- }
369
- }
370
- ),
371
- translatedPercent > 0 && /* @__PURE__ */ jsx3(
372
- "div",
373
- {
374
- className: "mt-0.5 w-full rounded-sm",
375
- style: {
376
- height: `${translatedPercent}%`,
377
- backgroundColor: "var(--tag-blue-icon)",
378
- boxShadow: "inset 0 0 0 0.5px var(--alpha-250)",
379
- minHeight: locale.translated > 0 ? "2px" : "0"
380
- }
302
+ ),
303
+ translatedPercent > 0 && /* @__PURE__ */ jsx3(
304
+ "div",
305
+ {
306
+ className: "mt-0.5 w-full rounded-sm",
307
+ style: {
308
+ height: `${translatedPercent}%`,
309
+ backgroundColor: "var(--bg-interactive)",
310
+ minHeight: locale.translated > 0 ? "2px" : "0"
381
311
  }
382
- )
383
- ] })
384
- }
385
- ) })
386
- },
387
- locale.code
388
- );
389
- }) }),
390
- localeStatsCount < 9 && /* @__PURE__ */ jsx3("div", { className: "flex w-full gap-1", children: localeStats.map((locale) => /* @__PURE__ */ jsx3(
391
- "div",
392
- {
393
- className: "flex flex-1 items-center justify-center",
394
- children: /* @__PURE__ */ jsx3(
395
- Text3,
396
- {
397
- size: "xsmall",
398
- weight: "plus",
399
- className: "text-ui-fg-subtle min-w-2 whitespace-normal break-words text-center leading-tight",
400
- children: localeStatsCount < 6 ? locale.name : locale.code
312
+ }
313
+ )
314
+ ]
401
315
  }
402
316
  )
403
317
  },
404
318
  locale.code
405
- )) }),
406
- localeStatsCount > 9 && /* @__PURE__ */ jsx3(
407
- Text3,
408
- {
409
- weight: "plus",
410
- size: "xsmall",
411
- className: "text-ui-fg-subtle text-center",
412
- children: t("translations.completion.footer")
413
- }
414
- )
415
- ] })
319
+ );
320
+ }) }),
321
+ /* @__PURE__ */ jsx3(
322
+ Text3,
323
+ {
324
+ size: "small",
325
+ weight: "plus",
326
+ className: "text-ui-fg-muted text-center",
327
+ children: t("translations.completion.footer")
328
+ }
329
+ )
416
330
  ] })
417
331
  ] });
418
332
  };