@burdenoff/microfe-i18n 2026.624.1 → 2026.625.2

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.
@@ -7,57 +7,77 @@ import { useI18n as a } from "../providers/I18nProvider.js";
7
7
  import { useI18nStore as o } from "../store/i18nStore.js";
8
8
  import { useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
+ import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, NextSteps as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
10
11
  //#region src/i18n/pages/TranslationEditorPage.tsx
11
- var u = () => {
12
- let { t: u } = a(), d = (e, t, n) => u(e, t, n), { editorMode: f, showPlurals: p, showSuggestions: m, comparisonLanguage: h, setEditorMode: g, togglePlurals: _, toggleSuggestions: v, setComparisonLanguage: y } = o(), [b, x] = s(""), [S, C] = s(""), w = {
12
+ var g = () => {
13
+ let { t: g } = a(), _ = (e, t, n) => g(e, t, n), { editorMode: v, showPlurals: y, showSuggestions: b, comparisonLanguage: x, setEditorMode: S, togglePlurals: C, toggleSuggestions: w, setComparisonLanguage: T } = o(), [E, D] = s(""), [O, k] = s(""), A = {
13
14
  id: "key-1",
14
15
  key: "auth.signIn.title",
15
16
  defaultValue: "Sign in to your account",
16
17
  description: "Login page title",
17
18
  characterLimit: 50,
18
19
  placeholders: []
19
- };
20
+ }, j = [{
21
+ value: "Inicia sesión en tu cuenta",
22
+ similarity: 95
23
+ }, {
24
+ value: "Accede a tu cuenta",
25
+ similarity: 87
26
+ }], M = (e) => `rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${e ? "border-action-primary-bg bg-action-primary-bg/10 text-primary" : "border-border-seam bg-bg-elevated text-text-secondary hover:bg-bg-sunken"}`, N = "w-full rounded-lg border border-border-seam bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-tertiary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", P = "w-full appearance-none rounded-lg border border-border-seam bg-bg-elevated py-2 pl-10 pr-10 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]";
20
27
  return /* @__PURE__ */ l("div", {
21
- className: "flex h-full flex-col",
28
+ className: "flex h-full flex-col bg-bg-surface",
22
29
  children: [
23
30
  /* @__PURE__ */ c("div", {
24
- className: "border-b border-border-subtle bg-surface-elevated p-6",
31
+ className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
25
32
  children: /* @__PURE__ */ l("div", {
26
- className: "flex items-center justify-between",
33
+ className: "mx-auto flex max-w-screen-2xl flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
27
34
  children: [/* @__PURE__ */ l("div", {
28
- className: "flex items-center gap-3",
29
- children: [/* @__PURE__ */ c(n, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
30
- className: "text-2xl font-semibold text-content-primary",
31
- children: d("i18n.editor.title", "Translation Editor")
35
+ className: "flex items-center gap-4",
36
+ children: [/* @__PURE__ */ c("div", {
37
+ className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
38
+ children: /* @__PURE__ */ c(n, {
39
+ className: "size-5",
40
+ "aria-hidden": "true"
41
+ })
42
+ }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("h1", {
43
+ className: "text-2xl font-bold tracking-tight text-text-primary",
44
+ children: [
45
+ "Translation",
46
+ " ",
47
+ /* @__PURE__ */ c(p, { children: _("i18n.editor.title.noun", "Editor") })
48
+ ]
32
49
  }), /* @__PURE__ */ c("p", {
33
- className: "mt-1 text-sm text-content-secondary",
34
- children: w.key
50
+ className: "mt-1 text-sm text-text-secondary",
51
+ children: A.key
35
52
  })] })]
36
53
  }), /* @__PURE__ */ l("div", {
37
- className: "flex items-center gap-2",
54
+ className: "flex flex-wrap items-center gap-2",
38
55
  children: [
39
56
  /* @__PURE__ */ c("button", {
40
57
  type: "button",
41
- onClick: _,
42
- className: `rounded-md border px-3 py-2 text-sm font-medium transition-colors ${p ? "border-accent-primary bg-accent-primary/10 text-accent-primary" : "border-border-subtle bg-surface text-content-secondary hover:bg-surface-elevated"}`,
43
- children: d("i18n.editor.actions.pluralForms", "Plural Forms")
58
+ onClick: C,
59
+ "aria-pressed": y,
60
+ className: M(y),
61
+ children: _("i18n.editor.actions.pluralForms", "Plural Forms")
44
62
  }),
45
63
  /* @__PURE__ */ c("button", {
46
64
  type: "button",
47
- onClick: v,
48
- className: `rounded-md border px-3 py-2 text-sm font-medium transition-colors ${m ? "border-accent-primary bg-accent-primary/10 text-accent-primary" : "border-border-subtle bg-surface text-content-secondary hover:bg-surface-elevated"}`,
49
- children: d("i18n.editor.actions.suggestions", "Suggestions")
65
+ onClick: w,
66
+ "aria-pressed": b,
67
+ className: M(b),
68
+ children: _("i18n.editor.actions.suggestions", "Suggestions")
50
69
  }),
51
70
  /* @__PURE__ */ l("select", {
52
- value: f,
53
- onChange: (e) => g(e.target.value),
54
- className: "rounded-md border border-border-subtle bg-surface-elevated px-3 py-2 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
71
+ value: v,
72
+ "aria-label": _("i18n.editor.mode.label", "Editor mode"),
73
+ onChange: (e) => S(e.target.value),
74
+ className: "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
55
75
  children: [/* @__PURE__ */ c("option", {
56
76
  value: "simple",
57
- children: d("i18n.editor.mode.simple", "Simple")
77
+ children: _("i18n.editor.mode.simple", "Simple")
58
78
  }), /* @__PURE__ */ c("option", {
59
79
  value: "advanced",
60
- children: d("i18n.editor.mode.advanced", "Advanced")
80
+ children: _("i18n.editor.mode.advanced", "Advanced")
61
81
  })]
62
82
  })
63
83
  ]
@@ -65,19 +85,28 @@ var u = () => {
65
85
  })
66
86
  }),
67
87
  /* @__PURE__ */ c("div", {
68
- className: "border-b border-border-subtle bg-surface px-6 py-3",
88
+ className: "border-b border-border-seam bg-bg-surface px-6 py-3 sm:px-8 lg:px-10",
69
89
  children: /* @__PURE__ */ l("div", {
70
- className: "flex items-center gap-2 text-sm text-content-secondary",
90
+ className: "mx-auto flex max-w-screen-2xl items-center gap-2 text-sm text-text-secondary",
71
91
  children: [
72
- /* @__PURE__ */ c("span", { children: d("i18n.editor.breadcrumb.product", "Workspaces") }),
73
- /* @__PURE__ */ c(e, { className: "-rotate-90 size-4" }),
74
- /* @__PURE__ */ c("span", { children: d("i18n.editor.breadcrumb.module", "Auth") }),
75
- /* @__PURE__ */ c(e, { className: "-rotate-90 size-4" }),
76
- /* @__PURE__ */ c("span", { children: d("i18n.editor.breadcrumb.namespace", "signIn") }),
77
- /* @__PURE__ */ c(e, { className: "-rotate-90 size-4" }),
92
+ /* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.product", "Workspaces") }),
93
+ /* @__PURE__ */ c(e, {
94
+ className: "size-4 -rotate-90",
95
+ "aria-hidden": "true"
96
+ }),
97
+ /* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.module", "Auth") }),
98
+ /* @__PURE__ */ c(e, {
99
+ className: "size-4 -rotate-90",
100
+ "aria-hidden": "true"
101
+ }),
102
+ /* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.namespace", "signIn") }),
103
+ /* @__PURE__ */ c(e, {
104
+ className: "size-4 -rotate-90",
105
+ "aria-hidden": "true"
106
+ }),
78
107
  /* @__PURE__ */ c("span", {
79
- className: "text-content-primary",
80
- children: w.key
108
+ className: "text-text-primary",
109
+ children: A.key
81
110
  })
82
111
  ]
83
112
  })
@@ -85,164 +114,214 @@ var u = () => {
85
114
  /* @__PURE__ */ l("div", {
86
115
  className: "flex flex-1 overflow-hidden",
87
116
  children: [/* @__PURE__ */ c("div", {
88
- className: "flex flex-1 flex-col overflow-auto border-r border-border-subtle",
117
+ className: "flex flex-1 flex-col overflow-auto",
89
118
  children: /* @__PURE__ */ l("div", {
90
- className: "p-6",
119
+ className: "mx-auto w-full max-w-3xl space-y-6 p-6 sm:p-8",
91
120
  children: [
121
+ /* @__PURE__ */ c(h, { children: _("i18n.editor.purpose", "This is where the actual translating happens for one key at a time. You see the original (source) string, type its translation for the chosen target language, and can compare it side-by-side with another locale, reuse machine suggestions, and add plural forms. Save a draft while you work, then submit it for review when it's ready to be approved and published.") }),
122
+ /* @__PURE__ */ c(m, {
123
+ storageKey: "i18n-editor",
124
+ steps: [
125
+ {
126
+ id: "compare-source",
127
+ label: _("i18n.editor.next.compare", "Compare against the source language"),
128
+ description: _("i18n.editor.next.compare.desc", "Show the English original next to your translation to keep meaning and length aligned."),
129
+ done: !!x,
130
+ onClick: () => T("en")
131
+ },
132
+ {
133
+ id: "use-suggestions",
134
+ label: _("i18n.editor.next.suggestions", "Open translation suggestions"),
135
+ description: _("i18n.editor.next.suggestions.desc", "Reuse close matches from memory instead of translating from scratch."),
136
+ done: b,
137
+ onClick: () => {
138
+ b || w();
139
+ }
140
+ },
141
+ {
142
+ id: "add-plurals",
143
+ label: _("i18n.editor.next.plurals", "Add plural forms if the string counts things"),
144
+ description: _("i18n.editor.next.plurals.desc", "Provide one/other (and locale-specific) variants so counts read naturally."),
145
+ done: y,
146
+ onClick: () => {
147
+ y || C();
148
+ }
149
+ }
150
+ ]
151
+ }),
92
152
  /* @__PURE__ */ l("div", {
93
- className: "mb-6 flex items-center gap-4",
153
+ className: "flex flex-col gap-4 sm:flex-row",
94
154
  children: [/* @__PURE__ */ l("div", {
95
155
  className: "flex-1",
96
156
  children: [/* @__PURE__ */ c("label", {
97
- className: "mb-2 block text-sm font-medium text-content-primary",
98
- children: d("i18n.editor.fields.targetLanguage", "Target Language")
157
+ htmlFor: "editor-target-language",
158
+ className: "mb-2 block text-sm font-medium text-text-primary",
159
+ children: _("i18n.editor.fields.targetLanguage", "Target Language")
99
160
  }), /* @__PURE__ */ l("div", {
100
161
  className: "relative",
101
162
  children: [
102
- /* @__PURE__ */ c(t, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-content-secondary" }),
163
+ /* @__PURE__ */ c(t, {
164
+ className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
165
+ "aria-hidden": "true"
166
+ }),
103
167
  /* @__PURE__ */ l("select", {
104
- className: "w-full appearance-none rounded-md border border-border-subtle bg-surface-elevated py-2 pl-10 pr-10 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
168
+ id: "editor-target-language",
169
+ className: P,
105
170
  children: [
106
171
  /* @__PURE__ */ c("option", {
107
172
  value: "es-ES",
108
- children: d("i18n.shared.language.esEs", "Spanish (es-ES)")
173
+ children: _("i18n.shared.language.esEs", "Spanish (es-ES)")
109
174
  }),
110
175
  /* @__PURE__ */ c("option", {
111
176
  value: "fr-FR",
112
- children: d("i18n.shared.language.frFr", "French (fr-FR)")
177
+ children: _("i18n.shared.language.frFr", "French (fr-FR)")
113
178
  }),
114
179
  /* @__PURE__ */ c("option", {
115
180
  value: "de-DE",
116
- children: d("i18n.shared.language.deDe", "German (de-DE)")
181
+ children: _("i18n.shared.language.deDe", "German (de-DE)")
117
182
  })
118
183
  ]
119
184
  }),
120
- /* @__PURE__ */ c(e, { className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-content-secondary" })
185
+ /* @__PURE__ */ c(e, {
186
+ className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
187
+ "aria-hidden": "true"
188
+ })
121
189
  ]
122
190
  })]
123
191
  }), /* @__PURE__ */ l("div", {
124
192
  className: "flex-1",
125
193
  children: [/* @__PURE__ */ c("label", {
126
- className: "mb-2 block text-sm font-medium text-content-primary",
127
- children: d("i18n.editor.fields.compareWith", "Compare With")
194
+ htmlFor: "editor-compare-language",
195
+ className: "mb-2 block text-sm font-medium text-text-primary",
196
+ children: _("i18n.editor.fields.compareWith", "Compare With")
128
197
  }), /* @__PURE__ */ l("div", {
129
198
  className: "relative",
130
199
  children: [
131
- /* @__PURE__ */ c(t, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-content-secondary" }),
200
+ /* @__PURE__ */ c(t, {
201
+ className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
202
+ "aria-hidden": "true"
203
+ }),
132
204
  /* @__PURE__ */ l("select", {
133
- value: h || "",
134
- onChange: (e) => y(e.target.value || null),
135
- className: "w-full appearance-none rounded-md border border-border-subtle bg-surface-elevated py-2 pl-10 pr-10 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
205
+ id: "editor-compare-language",
206
+ value: x || "",
207
+ onChange: (e) => T(e.target.value || null),
208
+ className: P,
136
209
  children: [/* @__PURE__ */ c("option", {
137
210
  value: "",
138
- children: d("i18n.shared.empty.none", "None")
211
+ children: _("i18n.shared.empty.none", "None")
139
212
  }), /* @__PURE__ */ c("option", {
140
213
  value: "en",
141
- children: d("i18n.shared.language.en", "English (en)")
214
+ children: _("i18n.shared.language.en", "English (en)")
142
215
  })]
143
216
  }),
144
- /* @__PURE__ */ c(e, { className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-content-secondary" })
217
+ /* @__PURE__ */ c(e, {
218
+ className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
219
+ "aria-hidden": "true"
220
+ })
145
221
  ]
146
222
  })]
147
223
  })]
148
224
  }),
149
- h && /* @__PURE__ */ l("div", {
150
- className: "mb-6 rounded-lg border border-border-subtle bg-surface-elevated p-4",
225
+ x && /* @__PURE__ */ l(f, {
226
+ treatment: "plain",
227
+ className: "border-border-seam p-4",
151
228
  children: [
152
229
  /* @__PURE__ */ c("p", {
153
- className: "mb-2 text-sm font-medium text-content-primary",
154
- children: d("i18n.editor.comparison.sourceLanguage", "English (Source)")
230
+ className: "mb-2 text-sm font-medium text-text-primary",
231
+ children: _("i18n.editor.comparison.sourceLanguage", "English (Source)")
155
232
  }),
156
233
  /* @__PURE__ */ c("p", {
157
- className: "text-sm text-content-secondary",
158
- children: w.defaultValue
234
+ className: "text-sm text-text-secondary",
235
+ children: A.defaultValue
159
236
  }),
160
237
  /* @__PURE__ */ l("div", {
161
- className: "mt-3 flex items-center gap-4 text-xs text-content-tertiary",
162
- children: [/* @__PURE__ */ c("span", { children: d("i18n.editor.comparison.characterLimit", "Character limit: {{limit}}", { limit: w.characterLimit }) }), /* @__PURE__ */ c("span", { children: d("i18n.editor.comparison.placeholders", "Placeholders: none") })]
238
+ className: "mt-3 flex flex-wrap items-center gap-4 text-xs text-text-tertiary",
239
+ children: [/* @__PURE__ */ c("span", { children: _("i18n.editor.comparison.characterLimit", "Character limit: {{limit}}", { limit: A.characterLimit }) }), /* @__PURE__ */ c("span", { children: _("i18n.editor.comparison.placeholders", "Placeholders: none") })]
163
240
  })
164
241
  ]
165
242
  }),
166
- /* @__PURE__ */ l("div", {
167
- className: "mb-6",
243
+ /* @__PURE__ */ l(d, {
244
+ className: "p-5",
168
245
  children: [/* @__PURE__ */ l("div", {
169
246
  className: "mb-2 flex items-center justify-between",
170
247
  children: [/* @__PURE__ */ c("label", {
171
248
  htmlFor: "editor-translation-value",
172
- className: "text-sm font-medium text-content-primary",
173
- children: d("i18n.editor.fields.translationValue", "Translation Value")
249
+ className: "text-sm font-medium text-text-primary",
250
+ children: _("i18n.editor.fields.translationValue", "Translation Value")
174
251
  }), /* @__PURE__ */ c("span", {
175
- className: "text-xs text-content-tertiary",
176
- children: d("i18n.editor.fields.characterCount", "{{current}}/{{limit}}", {
177
- current: b.length,
178
- limit: w.characterLimit
252
+ className: "text-xs text-text-tertiary tabular-nums",
253
+ children: _("i18n.editor.fields.characterCount", "{{current}}/{{limit}}", {
254
+ current: E.length,
255
+ limit: A.characterLimit
179
256
  })
180
257
  })]
181
258
  }), /* @__PURE__ */ c("textarea", {
182
259
  id: "editor-translation-value",
183
- "aria-label": d("i18n.editor.fields.translationValue", "Translation Value"),
184
- value: b,
185
- onChange: (e) => x(e.target.value),
186
- placeholder: d("i18n.editor.fields.translationPlaceholder", "Enter translation..."),
187
- maxLength: w.characterLimit,
188
- className: "w-full rounded-md border border-border-subtle bg-surface p-3 text-sm text-content-primary placeholder:text-content-tertiary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
260
+ "aria-label": _("i18n.editor.fields.translationValue", "Translation Value"),
261
+ value: E,
262
+ onChange: (e) => D(e.target.value),
263
+ placeholder: _("i18n.editor.fields.translationPlaceholder", "Enter translation..."),
264
+ maxLength: A.characterLimit,
265
+ className: N,
189
266
  rows: 4
190
267
  })]
191
268
  }),
192
- /* @__PURE__ */ l("div", {
193
- className: "mb-6",
194
- children: [/* @__PURE__ */ c("label", {
195
- htmlFor: "editor-notes",
196
- className: "mb-2 block text-sm font-medium text-content-primary",
197
- children: d("i18n.editor.fields.notes", "Translation Notes")
198
- }), /* @__PURE__ */ c("textarea", {
199
- id: "editor-notes",
200
- "aria-label": d("i18n.editor.fields.notes", "Translation Notes"),
201
- value: S,
202
- onChange: (e) => C(e.target.value),
203
- placeholder: d("i18n.editor.fields.notesPlaceholder", "Add notes for reviewers..."),
204
- className: "w-full rounded-md border border-border-subtle bg-surface p-3 text-sm text-content-primary placeholder:text-content-tertiary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
205
- rows: 3
206
- })]
207
- }),
208
- /* @__PURE__ */ l("div", {
209
- className: "flex items-center gap-3",
210
- children: [/* @__PURE__ */ l("button", {
211
- type: "button",
212
- className: "flex items-center gap-2 rounded-md bg-accent-primary px-4 py-2 text-sm font-medium text-white hover:bg-accent-primary-hover",
213
- children: [/* @__PURE__ */ c(r, { className: "size-4" }), d("i18n.editor.actions.saveDraft", "Save Draft")]
214
- }), /* @__PURE__ */ l("button", {
215
- type: "button",
216
- className: "flex items-center gap-2 rounded-md border border-border-subtle bg-surface px-4 py-2 text-sm font-medium text-content-primary hover:bg-surface-elevated",
217
- children: [/* @__PURE__ */ c(i, { className: "size-4" }), d("i18n.editor.actions.submitForReview", "Submit for Review")]
218
- })]
269
+ /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
270
+ htmlFor: "editor-notes",
271
+ className: "mb-2 block text-sm font-medium text-text-primary",
272
+ children: _("i18n.editor.fields.notes", "Translation Notes")
273
+ }), /* @__PURE__ */ c("textarea", {
274
+ id: "editor-notes",
275
+ "aria-label": _("i18n.editor.fields.notes", "Translation Notes"),
276
+ value: O,
277
+ onChange: (e) => k(e.target.value),
278
+ placeholder: _("i18n.editor.fields.notesPlaceholder", "Add notes for reviewers..."),
279
+ className: N,
280
+ rows: 3
281
+ })] }),
282
+ /* @__PURE__ */ c(u, {
283
+ align: "start",
284
+ primary: {
285
+ label: _("i18n.editor.actions.saveDraft", "Save Draft"),
286
+ onSelect: () => void 0,
287
+ icon: /* @__PURE__ */ c(r, {
288
+ className: "size-4",
289
+ "aria-hidden": "true"
290
+ })
291
+ },
292
+ actions: [{
293
+ label: _("i18n.editor.actions.submitForReview", "Submit for Review"),
294
+ onSelect: () => void 0,
295
+ icon: /* @__PURE__ */ c(i, {
296
+ className: "size-4",
297
+ "aria-hidden": "true"
298
+ })
299
+ }]
219
300
  })
220
301
  ]
221
302
  })
222
- }), m && /* @__PURE__ */ l("div", {
223
- className: "w-80 overflow-auto border-l border-border-subtle bg-surface-elevated p-6",
224
- children: [/* @__PURE__ */ c("h3", {
225
- className: "mb-4 text-sm font-medium text-content-primary",
226
- children: d("i18n.editor.suggestions.title", "Suggestions")
303
+ }), b && /* @__PURE__ */ l("aside", {
304
+ className: "hidden w-80 shrink-0 overflow-auto border-l border-border-seam bg-bg-elevated p-6 lg:block",
305
+ children: [/* @__PURE__ */ c("h2", {
306
+ className: "mb-4 text-sm font-semibold text-text-primary",
307
+ children: _("i18n.editor.suggestions.title", "Suggestions")
227
308
  }), /* @__PURE__ */ c("div", {
228
309
  className: "space-y-3",
229
- children: [{
230
- value: "Inicia sesión en tu cuenta",
231
- similarity: 95
232
- }, {
233
- value: "Accede a tu cuenta",
234
- similarity: 87
235
- }].map((e) => /* @__PURE__ */ l("button", {
236
- type: "button",
237
- className: "block w-full cursor-pointer rounded-md border border-border-subtle bg-surface p-3 text-left transition-all hover:border-accent-primary",
238
- onClick: () => x(e.value),
239
- children: [/* @__PURE__ */ c("p", {
240
- className: "text-sm text-content-primary",
241
- children: e.value
242
- }), /* @__PURE__ */ c("p", {
243
- className: "mt-1 text-xs text-content-tertiary",
244
- children: d("i18n.editor.suggestions.match", "{{similarity}}% match", { similarity: e.similarity })
245
- })]
310
+ children: j.map((e) => /* @__PURE__ */ c(f, {
311
+ treatment: "plain",
312
+ className: "border-border-seam",
313
+ children: /* @__PURE__ */ l("button", {
314
+ type: "button",
315
+ className: "block w-full cursor-pointer rounded-[inherit] p-3 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
316
+ onClick: () => D(e.value),
317
+ children: [/* @__PURE__ */ c("p", {
318
+ className: "text-sm text-text-primary",
319
+ children: e.value
320
+ }), /* @__PURE__ */ c("p", {
321
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
322
+ children: _("i18n.editor.suggestions.match", "{{similarity}}% match", { similarity: e.similarity })
323
+ })]
324
+ })
246
325
  }, e.value))
247
326
  })]
248
327
  })]
@@ -251,4 +330,4 @@ var u = () => {
251
330
  });
252
331
  };
253
332
  //#endregion
254
- export { u as TranslationEditorPage };
333
+ export { g as TranslationEditorPage };
@@ -0,0 +1,54 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/boxes.js
3
+ var t = e("Boxes", [
4
+ ["path", {
5
+ d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
6
+ key: "lc1i9w"
7
+ }],
8
+ ["path", {
9
+ d: "m7 16.5-4.74-2.85",
10
+ key: "1o9zyk"
11
+ }],
12
+ ["path", {
13
+ d: "m7 16.5 5-3",
14
+ key: "va8pkn"
15
+ }],
16
+ ["path", {
17
+ d: "M7 16.5v5.17",
18
+ key: "jnp8gn"
19
+ }],
20
+ ["path", {
21
+ d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",
22
+ key: "8zsnat"
23
+ }],
24
+ ["path", {
25
+ d: "m17 16.5-5-3",
26
+ key: "8arw3v"
27
+ }],
28
+ ["path", {
29
+ d: "m17 16.5 4.74-2.85",
30
+ key: "8rfmw"
31
+ }],
32
+ ["path", {
33
+ d: "M17 16.5v5.17",
34
+ key: "k6z78m"
35
+ }],
36
+ ["path", {
37
+ d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",
38
+ key: "1xygjf"
39
+ }],
40
+ ["path", {
41
+ d: "M12 8 7.26 5.15",
42
+ key: "1vbdud"
43
+ }],
44
+ ["path", {
45
+ d: "m12 8 4.74-2.85",
46
+ key: "3rx089"
47
+ }],
48
+ ["path", {
49
+ d: "M12 13.5V8",
50
+ key: "1io7kd"
51
+ }]
52
+ ]);
53
+ //#endregion
54
+ export { t as Boxes };
@@ -0,0 +1,11 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/gauge.js
3
+ var t = e("Gauge", [["path", {
4
+ d: "m12 14 4-4",
5
+ key: "9kzdfg"
6
+ }], ["path", {
7
+ d: "M3.34 19a10 10 0 1 1 17.32 0",
8
+ key: "19p75a"
9
+ }]]);
10
+ //#endregion
11
+ export { t as Gauge };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-i18n",
3
- "version": "2026.624.1",
3
+ "version": "2026.625.2",
4
4
  "description": "Internationalization (i18n) micro-frontend module",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,8 +34,8 @@
34
34
  "format:check": "prettier --check \"src/**/*.{ts,tsx}\""
35
35
  },
36
36
  "dependencies": {
37
- "@burdenoff/fe-libs": "2026.529.2",
38
37
  "@apollo/client": "^3.12.4",
38
+ "@burdenoff/fe-libs": "2026.625.5",
39
39
  "graphql": "^16.10.0",
40
40
  "lucide-react": "^0.468.0",
41
41
  "react": "^19.0.0",