@burdenoff/microfe-i18n 2026.1124.1 → 2026.1125.1

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.
@@ -0,0 +1,6 @@
1
+ export declare function ImportProgress({ progress, title, }: {
2
+ /** How far, 0 to 100. */
3
+ progress: number;
4
+ /** The import's name for it ("Import Progress"). */
5
+ title: string;
6
+ }): import('react').JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { useLoadingSystem as r } from "@burdenoff/fe-libs/ui/loading/LoadingSystemProvider";
3
+ import { ProgressBar as i } from "@burdenoff/fe-libs/ui/loading/ProgressBar";
4
+ // src/i18n/components/ImportProgress.tsx
5
+ function a({ progress: a, title: o }) {
6
+ return r() ? /* @__PURE__ */ t(i, {
7
+ value: a / 100,
8
+ label: o,
9
+ count: o,
10
+ done: a >= 100
11
+ }) : /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("div", {
12
+ className: "mb-2 flex items-center justify-between text-sm",
13
+ children: [/* @__PURE__ */ t("span", {
14
+ className: "text-text-primary",
15
+ children: o
16
+ }), /* @__PURE__ */ n("span", {
17
+ className: "text-text-tertiary tabular-nums",
18
+ children: [a, "%"]
19
+ })]
20
+ }), /* @__PURE__ */ t("div", {
21
+ className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
22
+ role: "progressbar",
23
+ "aria-valuenow": a,
24
+ "aria-valuemin": 0,
25
+ "aria-valuemax": 100,
26
+ "aria-label": o,
27
+ children: /* @__PURE__ */ t("div", {
28
+ className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
29
+ style: { width: `${a}%` }
30
+ })
31
+ })] });
32
+ }
33
+ export { a as ImportProgress };
@@ -3,417 +3,397 @@ import t from "../../node_modules/lucide-react/dist/esm/icons/download.js";
3
3
  import n from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
4
4
  import r from "../../node_modules/lucide-react/dist/esm/icons/circle-alert.js";
5
5
  import { useTr as i } from "../hooks/useTr.js";
6
- import { useI18nStore as a } from "../store/i18nStore.js";
7
- import { useState as o } from "react";
8
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
- import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, PagePurpose as m, ShowMore as h, ThemedSelect as g } from "@burdenoff/fe-libs/ui";
6
+ import { ImportProgress as a } from "../components/ImportProgress.js";
7
+ import { useI18nStore as o } from "../store/i18nStore.js";
8
+ import { useState as s } from "react";
9
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
10
+ import { CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, PagePurpose as h, ShowMore as g, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
10
11
  // src/i18n/pages/ImportExportPage.tsx
11
- var _ = ({ mode: _ }) => {
12
- let v = i(), { importState: y, startImport: b, resetImport: x } = a(), [S, C] = o("json"), [w, T] = o(null), E = (e) => {
12
+ var v = ({ mode: v }) => {
13
+ let y = i(), { importState: b, startImport: x, resetImport: S } = o(), [C, w] = s("json"), [T, E] = s(null), D = (e) => {
13
14
  let t = e.target.files?.[0];
14
- t && T(t);
15
- }, D = () => {
16
- w && (b(S, "job-123"), w.name);
17
- }, O = () => {}, k = "w-full 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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", A = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", j = /* @__PURE__ */ l(s, { children: [
18
- /* @__PURE__ */ c("option", {
15
+ t && E(t);
16
+ }, O = () => {
17
+ T && (x(C, "job-123"), T.name);
18
+ }, k = () => {}, A = "w-full 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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", j = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", M = /* @__PURE__ */ u(c, { children: [
19
+ /* @__PURE__ */ l("option", {
19
20
  value: "json",
20
- children: v("i18n.shared.format.json", "JSON (i18next nested)")
21
+ children: y("i18n.shared.format.json", "JSON (i18next nested)")
21
22
  }),
22
- /* @__PURE__ */ c("option", {
23
+ /* @__PURE__ */ l("option", {
23
24
  value: "csv",
24
- children: v("i18n.shared.format.csv", "CSV")
25
+ children: y("i18n.shared.format.csv", "CSV")
25
26
  }),
26
- /* @__PURE__ */ c("option", {
27
+ /* @__PURE__ */ l("option", {
27
28
  value: "xlsx",
28
- children: v("i18n.shared.format.xlsx", "Excel (XLSX)")
29
+ children: y("i18n.shared.format.xlsx", "Excel (XLSX)")
29
30
  }),
30
- /* @__PURE__ */ c("option", {
31
+ /* @__PURE__ */ l("option", {
31
32
  value: "po",
32
- children: v("i18n.shared.format.po", "Gettext (PO)")
33
+ children: y("i18n.shared.format.po", "Gettext (PO)")
33
34
  }),
34
- /* @__PURE__ */ c("option", {
35
+ /* @__PURE__ */ l("option", {
35
36
  value: "xliff",
36
- children: v("i18n.shared.format.xliff", "XLIFF")
37
+ children: y("i18n.shared.format.xliff", "XLIFF")
37
38
  })
38
39
  ] });
39
- return /* @__PURE__ */ l("div", {
40
+ return /* @__PURE__ */ u("div", {
40
41
  className: "min-h-full w-full bg-bg-surface",
41
- children: [/* @__PURE__ */ c("div", {
42
+ children: [/* @__PURE__ */ l("div", {
42
43
  className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
43
- children: /* @__PURE__ */ l("div", {
44
+ children: /* @__PURE__ */ u("div", {
44
45
  className: "mx-auto flex max-w-2xl items-center gap-4",
45
- children: [/* @__PURE__ */ c("div", {
46
+ children: [/* @__PURE__ */ l("div", {
46
47
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
47
- children: c(_ === "import" ? e : t, {
48
+ children: l(v === "import" ? e : t, {
48
49
  className: "size-5",
49
50
  "aria-hidden": "true"
50
51
  })
51
- }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
52
+ }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("h1", {
52
53
  className: "text-2xl font-bold tracking-tight text-text-primary",
53
- children: _ === "import" ? /* @__PURE__ */ l(s, { children: [
54
- /* @__PURE__ */ c(p, { children: v("i18n.import.title.verb", "Import") }),
54
+ children: v === "import" ? /* @__PURE__ */ u(c, { children: [
55
+ /* @__PURE__ */ l(m, { children: y("i18n.import.title.verb", "Import") }),
55
56
  " ",
56
- v("i18n.import.title.noun", "Translations")
57
- ] }) : /* @__PURE__ */ l(s, { children: [
58
- /* @__PURE__ */ c(p, { children: v("i18n.export.title.verb", "Export") }),
57
+ y("i18n.import.title.noun", "Translations")
58
+ ] }) : /* @__PURE__ */ u(c, { children: [
59
+ /* @__PURE__ */ l(m, { children: y("i18n.export.title.verb", "Export") }),
59
60
  " ",
60
- v("i18n.export.title.noun", "Translations")
61
+ y("i18n.export.title.noun", "Translations")
61
62
  ] })
62
- }), /* @__PURE__ */ c("p", {
63
+ }), /* @__PURE__ */ l("p", {
63
64
  className: "mt-0.5 text-sm text-text-secondary",
64
- children: _ === "import" ? v("i18n.import.subtitle", "Bring translations in from a file") : v("i18n.export.subtitle", "Download translations in your chosen format")
65
+ children: v === "import" ? y("i18n.import.subtitle", "Bring translations in from a file") : y("i18n.export.subtitle", "Download translations in your chosen format")
65
66
  })] })]
66
67
  })
67
- }), /* @__PURE__ */ l("div", {
68
+ }), /* @__PURE__ */ u("div", {
68
69
  className: "mx-auto max-w-2xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
69
- children: [/* @__PURE__ */ c(m, { children: _ === "import" ? v("i18n.import.purpose", "Bring existing translations into the system in bulk instead of typing them key by key. Upload a JSON, CSV, XLSX, PO, or XLIFF file exported from another tool or returned by a translation vendor, map it to the right product, module, and target language, and the keys and values are created or updated for you.") : v("i18n.export.purpose", "Pull translations out of the system as a downloadable file — to hand off to an external translation vendor, feed your app's build, or back up a locale. Choose a format and filter by product and language to export exactly the set of keys you need.") }), _ === "import" ? /* @__PURE__ */ l("div", {
70
+ children: [/* @__PURE__ */ l(h, { children: v === "import" ? y("i18n.import.purpose", "Bring existing translations into the system in bulk instead of typing them key by key. Upload a JSON, CSV, XLSX, PO, or XLIFF file exported from another tool or returned by a translation vendor, map it to the right product, module, and target language, and the keys and values are created or updated for you.") : y("i18n.export.purpose", "Pull translations out of the system as a downloadable file — to hand off to an external translation vendor, feed your app's build, or back up a locale. Choose a format and filter by product and language to export exactly the set of keys you need.") }), v === "import" ? /* @__PURE__ */ u("div", {
70
71
  className: "space-y-6",
71
72
  children: [
72
- /* @__PURE__ */ c(f, {
73
+ /* @__PURE__ */ l(p, {
73
74
  treatment: "plain",
74
75
  className: "border-border-seam p-6",
75
- children: /* @__PURE__ */ l("div", {
76
+ children: /* @__PURE__ */ u("div", {
76
77
  className: "space-y-6",
77
78
  children: [
78
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
79
+ /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
79
80
  htmlFor: "import-format",
80
81
  className: "mb-2 block text-sm font-medium text-text-primary",
81
- children: v("i18n.import.fields.format", "Select Format")
82
- }), /* @__PURE__ */ c(g, {
82
+ children: y("i18n.import.fields.format", "Select Format")
83
+ }), /* @__PURE__ */ l(_, {
83
84
  id: "import-format",
84
- value: S,
85
- onChange: (e) => C(e.target.value),
86
- className: k,
87
- children: j
85
+ value: C,
86
+ onChange: (e) => w(e.target.value),
87
+ className: A,
88
+ children: M
88
89
  })] }),
89
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
90
+ /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
90
91
  htmlFor: "import-upload-file",
91
92
  className: "mb-2 block text-sm font-medium text-text-primary",
92
- children: v("i18n.import.fields.uploadFile", "Upload File")
93
- }), /* @__PURE__ */ l("div", {
93
+ children: y("i18n.import.fields.uploadFile", "Upload File")
94
+ }), /* @__PURE__ */ u("div", {
94
95
  className: "relative rounded-lg border-2 border-dashed border-border-seam bg-bg-surface p-8 text-center transition-colors hover:border-action-primary-bg",
95
96
  children: [
96
- /* @__PURE__ */ c("input", {
97
+ /* @__PURE__ */ l("input", {
97
98
  id: "import-upload-file",
98
99
  type: "file",
99
- "aria-label": v("i18n.import.fields.uploadFile", "Upload File"),
100
- onChange: E,
100
+ "aria-label": y("i18n.import.fields.uploadFile", "Upload File"),
101
+ onChange: D,
101
102
  accept: ".json,.csv,.xlsx,.po,.xliff",
102
103
  className: "absolute inset-0 cursor-pointer opacity-0"
103
104
  }),
104
- /* @__PURE__ */ c(e, {
105
+ /* @__PURE__ */ l(e, {
105
106
  className: "mx-auto mb-4 size-12 text-text-tertiary",
106
107
  "aria-hidden": "true"
107
108
  }),
108
- /* @__PURE__ */ c("p", {
109
+ /* @__PURE__ */ l("p", {
109
110
  className: "mb-1 text-sm font-medium text-text-primary",
110
- children: w ? w.name : v("i18n.import.fields.dropzonePlaceholder", "Drop file here or click to browse")
111
+ children: T ? T.name : y("i18n.import.fields.dropzonePlaceholder", "Drop file here or click to browse")
111
112
  }),
112
- /* @__PURE__ */ c("p", {
113
+ /* @__PURE__ */ l("p", {
113
114
  className: "text-xs text-text-tertiary",
114
- children: v("i18n.import.fields.supportedFormats", "Supported formats: JSON, CSV, XLSX, PO, XLIFF")
115
+ children: y("i18n.import.fields.supportedFormats", "Supported formats: JSON, CSV, XLSX, PO, XLIFF")
115
116
  })
116
117
  ]
117
118
  })] }),
118
- /* @__PURE__ */ l("div", {
119
+ /* @__PURE__ */ u("div", {
119
120
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
120
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
121
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
121
122
  htmlFor: "import-product",
122
123
  className: "mb-2 block text-sm font-medium text-text-primary",
123
- children: v("i18n.import.fields.product", "Product")
124
- }), /* @__PURE__ */ l(g, {
124
+ children: y("i18n.import.fields.product", "Product")
125
+ }), /* @__PURE__ */ u(_, {
125
126
  id: "import-product",
126
- className: k,
127
+ className: A,
127
128
  children: [
128
- /* @__PURE__ */ c("option", {
129
+ /* @__PURE__ */ l("option", {
129
130
  value: "workspaces",
130
131
  children: "Workspaces"
131
132
  }),
132
- /* @__PURE__ */ c("option", {
133
+ /* @__PURE__ */ l("option", {
133
134
  value: "tenant",
134
135
  children: "Tenant"
135
136
  }),
136
- /* @__PURE__ */ c("option", {
137
+ /* @__PURE__ */ l("option", {
137
138
  value: "botlit",
138
139
  children: "BotManor"
139
140
  })
140
141
  ]
141
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
142
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
142
143
  htmlFor: "import-module",
143
144
  className: "mb-2 block text-sm font-medium text-text-primary",
144
- children: v("i18n.import.fields.module", "Module")
145
- }), /* @__PURE__ */ l(g, {
145
+ children: y("i18n.import.fields.module", "Module")
146
+ }), /* @__PURE__ */ u(_, {
146
147
  id: "import-module",
147
- className: k,
148
+ className: A,
148
149
  children: [
149
- /* @__PURE__ */ c("option", {
150
+ /* @__PURE__ */ l("option", {
150
151
  value: "auth",
151
152
  children: "Auth"
152
153
  }),
153
- /* @__PURE__ */ c("option", {
154
+ /* @__PURE__ */ l("option", {
154
155
  value: "billing",
155
156
  children: "Billing"
156
157
  }),
157
- /* @__PURE__ */ c("option", {
158
+ /* @__PURE__ */ l("option", {
158
159
  value: "calendar",
159
160
  children: "Calendar"
160
161
  })
161
162
  ]
162
163
  })] })]
163
164
  }),
164
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
165
+ /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
165
166
  htmlFor: "import-target-language",
166
167
  className: "mb-2 block text-sm font-medium text-text-primary",
167
- children: v("i18n.import.fields.targetLanguage", "Target Language")
168
- }), /* @__PURE__ */ l(g, {
168
+ children: y("i18n.import.fields.targetLanguage", "Target Language")
169
+ }), /* @__PURE__ */ u(_, {
169
170
  id: "import-target-language",
170
- className: k,
171
+ className: A,
171
172
  children: [
172
- /* @__PURE__ */ c("option", {
173
+ /* @__PURE__ */ l("option", {
173
174
  value: "es-ES",
174
- children: v("i18n.shared.language.esEs", "Spanish (es-ES)")
175
+ children: y("i18n.shared.language.esEs", "Spanish (es-ES)")
175
176
  }),
176
- /* @__PURE__ */ c("option", {
177
+ /* @__PURE__ */ l("option", {
177
178
  value: "fr-FR",
178
- children: v("i18n.shared.language.frFr", "French (fr-FR)")
179
+ children: y("i18n.shared.language.frFr", "French (fr-FR)")
179
180
  }),
180
- /* @__PURE__ */ c("option", {
181
+ /* @__PURE__ */ l("option", {
181
182
  value: "de-DE",
182
- children: v("i18n.shared.language.deDe", "German (de-DE)")
183
+ children: y("i18n.shared.language.deDe", "German (de-DE)")
183
184
  })
184
185
  ]
185
186
  })] })
186
187
  ]
187
188
  })
188
189
  }),
189
- /* @__PURE__ */ c(h, {
190
+ /* @__PURE__ */ l(g, {
190
191
  collapsedHeight: 0,
191
- label: v("i18n.import.options.show", "Import options"),
192
- children: /* @__PURE__ */ l("div", {
192
+ label: y("i18n.import.options.show", "Import options"),
193
+ children: /* @__PURE__ */ u("div", {
193
194
  className: "space-y-2 pt-4",
194
195
  children: [
195
- /* @__PURE__ */ l("div", {
196
+ /* @__PURE__ */ u("div", {
196
197
  className: "flex items-center gap-2",
197
- children: [/* @__PURE__ */ c("input", {
198
+ children: [/* @__PURE__ */ l("input", {
198
199
  type: "checkbox",
199
200
  id: "create-namespaces",
200
- "aria-label": v("i18n.import.options.createNamespaces", "Create missing namespaces automatically"),
201
+ "aria-label": y("i18n.import.options.createNamespaces", "Create missing namespaces automatically"),
201
202
  defaultChecked: !0,
202
- className: A
203
- }), /* @__PURE__ */ c("label", {
203
+ className: j
204
+ }), /* @__PURE__ */ l("label", {
204
205
  htmlFor: "create-namespaces",
205
206
  className: "text-sm text-text-primary",
206
- children: v("i18n.import.options.createNamespaces", "Create missing namespaces automatically")
207
+ children: y("i18n.import.options.createNamespaces", "Create missing namespaces automatically")
207
208
  })]
208
209
  }),
209
- /* @__PURE__ */ l("div", {
210
+ /* @__PURE__ */ u("div", {
210
211
  className: "flex items-center gap-2",
211
- children: [/* @__PURE__ */ c("input", {
212
+ children: [/* @__PURE__ */ l("input", {
212
213
  type: "checkbox",
213
214
  id: "update-existing",
214
- "aria-label": v("i18n.import.options.updateExisting", "Update existing translations"),
215
+ "aria-label": y("i18n.import.options.updateExisting", "Update existing translations"),
215
216
  defaultChecked: !0,
216
- className: A
217
- }), /* @__PURE__ */ c("label", {
217
+ className: j
218
+ }), /* @__PURE__ */ l("label", {
218
219
  htmlFor: "update-existing",
219
220
  className: "text-sm text-text-primary",
220
- children: v("i18n.import.options.updateExisting", "Update existing translations")
221
+ children: y("i18n.import.options.updateExisting", "Update existing translations")
221
222
  })]
222
223
  }),
223
- /* @__PURE__ */ l("div", {
224
+ /* @__PURE__ */ u("div", {
224
225
  className: "flex items-center gap-2",
225
- children: [/* @__PURE__ */ c("input", {
226
+ children: [/* @__PURE__ */ l("input", {
226
227
  type: "checkbox",
227
228
  id: "skip-errors",
228
- "aria-label": v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)"),
229
- className: A
230
- }), /* @__PURE__ */ c("label", {
229
+ "aria-label": y("i18n.import.options.skipErrors", "Skip validation errors (import valid only)"),
230
+ className: j
231
+ }), /* @__PURE__ */ l("label", {
231
232
  htmlFor: "skip-errors",
232
233
  className: "text-sm text-text-primary",
233
- children: v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)")
234
+ children: y("i18n.import.options.skipErrors", "Skip validation errors (import valid only)")
234
235
  })]
235
236
  })
236
237
  ]
237
238
  })
238
239
  }),
239
- y.jobId && /* @__PURE__ */ l(d, {
240
+ b.jobId && /* @__PURE__ */ u(f, {
240
241
  className: "p-4",
241
- children: [
242
- /* @__PURE__ */ l("div", {
243
- className: "mb-2 flex items-center justify-between text-sm",
244
- children: [/* @__PURE__ */ c("span", {
245
- className: "text-text-primary",
246
- children: v("i18n.import.progress.title", "Import Progress")
247
- }), /* @__PURE__ */ l("span", {
248
- className: "text-text-tertiary tabular-nums",
249
- children: [y.progress, "%"]
250
- })]
251
- }),
252
- /* @__PURE__ */ c("div", {
253
- className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
254
- role: "progressbar",
255
- "aria-valuenow": y.progress,
256
- "aria-valuemin": 0,
257
- "aria-valuemax": 100,
258
- "aria-label": v("i18n.import.progress.title", "Import Progress"),
259
- children: /* @__PURE__ */ c("div", {
260
- className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
261
- style: { width: `${y.progress}%` }
262
- })
263
- }),
264
- y.errors.length > 0 && /* @__PURE__ */ c("div", {
265
- className: "mt-3 space-y-1",
266
- children: y.errors.map((e) => /* @__PURE__ */ l("div", {
267
- className: "flex items-start gap-2 text-xs text-status-danger-text",
268
- children: [/* @__PURE__ */ c(r, {
269
- className: "mt-0.5 size-3 flex-shrink-0",
270
- "aria-hidden": "true"
271
- }), /* @__PURE__ */ c("span", { children: e.message })]
272
- }, `${e.row ?? "x"}:${e.key ?? "x"}:${e.field ?? "x"}:${e.message}`))
273
- })
274
- ]
242
+ children: [/* @__PURE__ */ l(a, {
243
+ progress: b.progress,
244
+ title: y("i18n.import.progress.title", "Import Progress")
245
+ }), b.errors.length > 0 && /* @__PURE__ */ l("div", {
246
+ className: "mt-3 space-y-1",
247
+ children: b.errors.map((e) => /* @__PURE__ */ u("div", {
248
+ className: "flex items-start gap-2 text-xs text-status-danger-text",
249
+ children: [/* @__PURE__ */ l(r, {
250
+ className: "mt-0.5 size-3 flex-shrink-0",
251
+ "aria-hidden": "true"
252
+ }), /* @__PURE__ */ l("span", { children: e.message })]
253
+ }, `${e.row ?? "x"}:${e.key ?? "x"}:${e.field ?? "x"}:${e.message}`))
254
+ })]
275
255
  }),
276
- /* @__PURE__ */ c(u, {
256
+ /* @__PURE__ */ l(d, {
277
257
  align: "start",
278
258
  primary: {
279
- label: v("i18n.import.actions.start", "Start Import"),
280
- onSelect: D,
281
- disabled: !w,
282
- icon: /* @__PURE__ */ c(e, {
259
+ label: y("i18n.import.actions.start", "Start Import"),
260
+ onSelect: O,
261
+ disabled: !T,
262
+ icon: /* @__PURE__ */ l(e, {
283
263
  className: "size-4",
284
264
  "aria-hidden": "true"
285
265
  })
286
266
  },
287
- actions: y.jobId ? [{
288
- label: v("i18n.import.actions.reset", "Reset"),
289
- onSelect: x
267
+ actions: b.jobId ? [{
268
+ label: y("i18n.import.actions.reset", "Reset"),
269
+ onSelect: S
290
270
  }] : []
291
271
  })
292
272
  ]
293
- }) : /* @__PURE__ */ l("div", {
273
+ }) : /* @__PURE__ */ u("div", {
294
274
  className: "space-y-6",
295
275
  children: [
296
- /* @__PURE__ */ c(f, {
276
+ /* @__PURE__ */ l(p, {
297
277
  treatment: "plain",
298
278
  className: "border-border-seam p-6",
299
- children: /* @__PURE__ */ l("div", {
279
+ children: /* @__PURE__ */ u("div", {
300
280
  className: "space-y-6",
301
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
281
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
302
282
  htmlFor: "export-format",
303
283
  className: "mb-2 block text-sm font-medium text-text-primary",
304
- children: v("i18n.export.fields.format", "Export Format")
305
- }), /* @__PURE__ */ c(g, {
284
+ children: y("i18n.export.fields.format", "Export Format")
285
+ }), /* @__PURE__ */ l(_, {
306
286
  id: "export-format",
307
- value: S,
308
- onChange: (e) => C(e.target.value),
309
- className: k,
310
- children: j
311
- })] }), /* @__PURE__ */ l("div", {
287
+ value: C,
288
+ onChange: (e) => w(e.target.value),
289
+ className: A,
290
+ children: M
291
+ })] }), /* @__PURE__ */ u("div", {
312
292
  className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
313
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
293
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
314
294
  htmlFor: "export-product",
315
295
  className: "mb-2 block text-sm font-medium text-text-primary",
316
- children: v("i18n.export.fields.product", "Product")
317
- }), /* @__PURE__ */ l(g, {
296
+ children: y("i18n.export.fields.product", "Product")
297
+ }), /* @__PURE__ */ u(_, {
318
298
  id: "export-product",
319
- className: k,
299
+ className: A,
320
300
  children: [
321
- /* @__PURE__ */ c("option", {
301
+ /* @__PURE__ */ l("option", {
322
302
  value: "",
323
- children: v("i18n.export.fields.product.all", "All Products")
303
+ children: y("i18n.export.fields.product.all", "All Products")
324
304
  }),
325
- /* @__PURE__ */ c("option", {
305
+ /* @__PURE__ */ l("option", {
326
306
  value: "workspaces",
327
307
  children: "Workspaces"
328
308
  }),
329
- /* @__PURE__ */ c("option", {
309
+ /* @__PURE__ */ l("option", {
330
310
  value: "tenant",
331
311
  children: "Tenant"
332
312
  })
333
313
  ]
334
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
314
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
335
315
  htmlFor: "export-language",
336
316
  className: "mb-2 block text-sm font-medium text-text-primary",
337
- children: v("i18n.export.fields.language", "Language")
338
- }), /* @__PURE__ */ l(g, {
317
+ children: y("i18n.export.fields.language", "Language")
318
+ }), /* @__PURE__ */ u(_, {
339
319
  id: "export-language",
340
- className: k,
320
+ className: A,
341
321
  children: [
342
- /* @__PURE__ */ c("option", {
322
+ /* @__PURE__ */ l("option", {
343
323
  value: "",
344
- children: v("i18n.export.fields.language.all", "All Languages")
324
+ children: y("i18n.export.fields.language.all", "All Languages")
345
325
  }),
346
- /* @__PURE__ */ c("option", {
326
+ /* @__PURE__ */ l("option", {
347
327
  value: "es-ES",
348
- children: v("i18n.export.fields.language.spanish", "Spanish")
328
+ children: y("i18n.export.fields.language.spanish", "Spanish")
349
329
  }),
350
- /* @__PURE__ */ c("option", {
330
+ /* @__PURE__ */ l("option", {
351
331
  value: "fr-FR",
352
- children: v("i18n.export.fields.language.french", "French")
332
+ children: y("i18n.export.fields.language.french", "French")
353
333
  })
354
334
  ]
355
335
  })] })]
356
336
  })]
357
337
  })
358
338
  }),
359
- /* @__PURE__ */ c(h, {
339
+ /* @__PURE__ */ l(g, {
360
340
  collapsedHeight: 0,
361
- label: v("i18n.export.options.show", "Export options"),
362
- children: /* @__PURE__ */ l("div", {
341
+ label: y("i18n.export.options.show", "Export options"),
342
+ children: /* @__PURE__ */ u("div", {
363
343
  className: "space-y-2 pt-4",
364
- children: [/* @__PURE__ */ l("div", {
344
+ children: [/* @__PURE__ */ u("div", {
365
345
  className: "flex items-center gap-2",
366
- children: [/* @__PURE__ */ c("input", {
346
+ children: [/* @__PURE__ */ l("input", {
367
347
  type: "checkbox",
368
348
  id: "include-metadata",
369
- "aria-label": v("i18n.export.options.includeMetadata", "Include metadata"),
370
- className: A
371
- }), /* @__PURE__ */ c("label", {
349
+ "aria-label": y("i18n.export.options.includeMetadata", "Include metadata"),
350
+ className: j
351
+ }), /* @__PURE__ */ l("label", {
372
352
  htmlFor: "include-metadata",
373
353
  className: "text-sm text-text-primary",
374
- children: v("i18n.export.options.includeMetadata", "Include metadata")
354
+ children: y("i18n.export.options.includeMetadata", "Include metadata")
375
355
  })]
376
- }), /* @__PURE__ */ l("div", {
356
+ }), /* @__PURE__ */ u("div", {
377
357
  className: "flex items-center gap-2",
378
- children: [/* @__PURE__ */ c("input", {
358
+ children: [/* @__PURE__ */ l("input", {
379
359
  type: "checkbox",
380
360
  id: "published-only",
381
- "aria-label": v("i18n.export.options.publishedOnly", "Published translations only"),
361
+ "aria-label": y("i18n.export.options.publishedOnly", "Published translations only"),
382
362
  defaultChecked: !0,
383
- className: A
384
- }), /* @__PURE__ */ c("label", {
363
+ className: j
364
+ }), /* @__PURE__ */ l("label", {
385
365
  htmlFor: "published-only",
386
366
  className: "text-sm text-text-primary",
387
- children: v("i18n.export.options.publishedOnly", "Published translations only")
367
+ children: y("i18n.export.options.publishedOnly", "Published translations only")
388
368
  })]
389
369
  })]
390
370
  })
391
371
  }),
392
- /* @__PURE__ */ l(d, {
372
+ /* @__PURE__ */ u(f, {
393
373
  className: "flex items-start gap-3",
394
- children: [/* @__PURE__ */ c("div", {
374
+ children: [/* @__PURE__ */ l("div", {
395
375
  className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
396
- children: /* @__PURE__ */ c(n, {
376
+ children: /* @__PURE__ */ l(n, {
397
377
  className: "size-5",
398
378
  "aria-hidden": "true"
399
379
  })
400
- }), /* @__PURE__ */ l("div", {
380
+ }), /* @__PURE__ */ u("div", {
401
381
  className: "text-sm",
402
- children: [/* @__PURE__ */ c("p", {
382
+ children: [/* @__PURE__ */ l("p", {
403
383
  className: "font-medium text-text-primary",
404
- children: v("i18n.export.preview.title", "Export Preview")
405
- }), /* @__PURE__ */ c("p", {
384
+ children: y("i18n.export.preview.title", "Export Preview")
385
+ }), /* @__PURE__ */ l("p", {
406
386
  className: "mt-1 text-text-secondary",
407
- children: v("i18n.export.preview.description", "Approximately 1,245 translation keys will be exported based on your selection.")
387
+ children: y("i18n.export.preview.description", "Approximately 1,245 translation keys will be exported based on your selection.")
408
388
  })]
409
389
  })]
410
390
  }),
411
- /* @__PURE__ */ c(u, {
391
+ /* @__PURE__ */ l(d, {
412
392
  align: "start",
413
393
  primary: {
414
- label: v("i18n.export.actions.start", "Export Translations"),
415
- onSelect: O,
416
- icon: /* @__PURE__ */ c(t, {
394
+ label: y("i18n.export.actions.start", "Export Translations"),
395
+ onSelect: k,
396
+ icon: /* @__PURE__ */ l(t, {
417
397
  className: "size-4",
418
398
  "aria-hidden": "true"
419
399
  })
@@ -425,4 +405,4 @@ var _ = ({ mode: _ }) => {
425
405
  })]
426
406
  });
427
407
  };
428
- export { _ as ImportExportPage };
408
+ export { v as ImportExportPage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-i18n",
3
- "version": "2026.1124.1",
3
+ "version": "2026.1125.1",
4
4
  "description": "Internationalization (i18n) micro-frontend module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@apollo/client": "^4.3.5",
47
- "@burdenoff/fe-libs": "2026.1120.2",
47
+ "@burdenoff/fe-libs": "2026.1124.16",
48
48
  "graphql": "^16.15.0",
49
49
  "lucide-react": "^0.468.0",
50
50
  "react": "^19.3.1",