@burdenoff/microfe-i18n 2026.608.1 → 2026.625.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.
@@ -2,10 +2,11 @@ import { CircleCheckBig as e } from "../../node_modules/lucide-react/dist/esm/ic
2
2
  import { CircleX as t } from "../../node_modules/lucide-react/dist/esm/icons/circle-x.js";
3
3
  import { MessageSquare as n } from "../../node_modules/lucide-react/dist/esm/icons/message-square.js";
4
4
  import { useRef as r, useState as i } from "react";
5
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { CTAOverflowMenu as s, EmphasisPanel as c, GlassCard as l, GradientText as u, IllustratedEmptyState as d } from "@burdenoff/fe-libs/ui";
6
7
  //#region src/i18n/pages/ReviewQueuePage.tsx
7
- var c = () => {
8
- let [c, l] = i([]), u = r(!1), d = [
8
+ var f = () => {
9
+ let [f, p] = i([]), m = r(!1), h = [
9
10
  {
10
11
  id: "1",
11
12
  key: "auth.signIn.emailLabel",
@@ -33,187 +34,223 @@ var c = () => {
33
34
  submittedBy: "hans@example.com",
34
35
  submittedAt: "1 day ago"
35
36
  }
36
- ], f = (e) => {
37
- l((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
38
- }, p = (e) => {
39
- console.log(`${e} translations:`, c), l([]);
40
- };
41
- return /* @__PURE__ */ s("div", {
42
- className: "flex h-full flex-col",
43
- children: [
44
- /* @__PURE__ */ o("div", {
45
- className: "border-b border-border bg-surface-elevated p-6",
46
- children: /* @__PURE__ */ s("div", {
47
- className: "flex items-center justify-between",
48
- children: [/* @__PURE__ */ s("div", {
49
- className: "flex items-center gap-3",
50
- children: [/* @__PURE__ */ o(e, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ o("h1", {
51
- className: "text-2xl font-semibold text-content-primary",
52
- children: "Review Queue"
53
- })]
37
+ ], g = (e) => {
38
+ p((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
39
+ }, _ = (e) => {
40
+ console.log(`${e} translations:`, f), p([]);
41
+ }, v = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2.5 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)]", y = f.length > 0;
42
+ return /* @__PURE__ */ o("div", {
43
+ className: "min-h-full w-full bg-bg-surface",
44
+ children: [/* @__PURE__ */ a("div", {
45
+ className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
46
+ children: /* @__PURE__ */ o("div", {
47
+ className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
48
+ children: [/* @__PURE__ */ o("div", {
49
+ className: "flex items-center gap-4",
50
+ children: [/* @__PURE__ */ a("div", {
51
+ className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
52
+ children: /* @__PURE__ */ a(e, {
53
+ className: "size-5",
54
+ "aria-hidden": "true"
55
+ })
56
+ }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("h1", {
57
+ className: "text-2xl font-bold tracking-tight text-text-primary",
58
+ children: ["Review ", /* @__PURE__ */ a(u, { children: "Queue" })]
59
+ }), /* @__PURE__ */ a("p", {
60
+ className: "mt-0.5 text-sm text-text-secondary",
61
+ children: "Approve or reject submitted translations"
62
+ })] })]
63
+ }), y && /* @__PURE__ */ a(s, {
64
+ primary: {
65
+ label: `Approve Selected (${f.length})`,
66
+ onSelect: () => _("approve"),
67
+ icon: /* @__PURE__ */ a(e, {
68
+ className: "size-4",
69
+ "aria-hidden": "true"
70
+ })
71
+ },
72
+ actions: [{
73
+ label: `Reject Selected (${f.length})`,
74
+ onSelect: () => {
75
+ window.confirm(`Reject ${f.length} selected translation(s)?`) && _("reject");
76
+ },
77
+ intent: "destructive",
78
+ icon: /* @__PURE__ */ a(t, {
79
+ className: "size-4",
80
+ "aria-hidden": "true"
81
+ })
82
+ }]
83
+ })]
84
+ })
85
+ }), /* @__PURE__ */ o("div", {
86
+ className: "mx-auto max-w-screen-xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
87
+ children: [
88
+ /* @__PURE__ */ o(c, {
89
+ className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
90
+ children: [/* @__PURE__ */ o("div", {
91
+ className: "flex items-center gap-4",
92
+ children: [/* @__PURE__ */ a("div", {
93
+ className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
94
+ children: /* @__PURE__ */ a(e, {
95
+ className: "size-7",
96
+ "aria-hidden": "true"
97
+ })
98
+ }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
99
+ className: "text-sm font-medium text-text-secondary",
100
+ children: "Pending review"
101
+ }), /* @__PURE__ */ a("p", {
102
+ className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
103
+ children: "47"
104
+ })] })]
54
105
  }), /* @__PURE__ */ o("div", {
55
- className: "flex items-center gap-2",
56
- children: c.length > 0 && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ s("button", {
57
- type: "button",
58
- onClick: () => p("approve"),
59
- className: "flex items-center gap-2 rounded-md bg-success px-4 py-2 text-sm font-medium text-white hover:bg-success/90",
106
+ className: "flex flex-col gap-3 sm:flex-row sm:items-center",
107
+ children: [/* @__PURE__ */ o("select", {
108
+ "aria-label": "Filter by review status",
109
+ className: v,
60
110
  children: [
61
- /* @__PURE__ */ o(e, { className: "size-4" }),
62
- "Approve Selected (",
63
- c.length,
64
- ")"
111
+ /* @__PURE__ */ a("option", {
112
+ value: "pending",
113
+ children: "Pending Review"
114
+ }),
115
+ /* @__PURE__ */ a("option", {
116
+ value: "my-assignments",
117
+ children: "My Assignments"
118
+ }),
119
+ /* @__PURE__ */ a("option", {
120
+ value: "all",
121
+ children: "All"
122
+ })
65
123
  ]
66
- }), /* @__PURE__ */ s("button", {
67
- type: "button",
68
- onClick: () => p("reject"),
69
- className: "flex items-center gap-2 rounded-md bg-error px-4 py-2 text-sm font-medium text-white hover:bg-error/90",
124
+ }), /* @__PURE__ */ o("select", {
125
+ "aria-label": "Filter by language",
126
+ className: v,
70
127
  children: [
71
- /* @__PURE__ */ o(t, { className: "size-4" }),
72
- "Reject Selected (",
73
- c.length,
74
- ")"
128
+ /* @__PURE__ */ a("option", {
129
+ value: "all",
130
+ children: "All Languages"
131
+ }),
132
+ /* @__PURE__ */ a("option", {
133
+ value: "es-ES",
134
+ children: "Spanish"
135
+ }),
136
+ /* @__PURE__ */ a("option", {
137
+ value: "fr-FR",
138
+ children: "French"
139
+ }),
140
+ /* @__PURE__ */ a("option", {
141
+ value: "de-DE",
142
+ children: "German"
143
+ })
75
144
  ]
76
- })] })
77
- })]
78
- })
79
- }),
80
- /* @__PURE__ */ o("div", {
81
- className: "border-b border-border bg-surface p-4",
82
- children: /* @__PURE__ */ s("div", {
83
- className: "flex items-center gap-4",
84
- children: [/* @__PURE__ */ s("select", {
85
- "aria-label": "Filter by review status",
86
- className: "rounded-md border border-border 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",
87
- children: [
88
- /* @__PURE__ */ o("option", {
89
- value: "pending",
90
- children: "Pending Review"
91
- }),
92
- /* @__PURE__ */ o("option", {
93
- value: "my-assignments",
94
- children: "My Assignments"
95
- }),
96
- /* @__PURE__ */ o("option", {
97
- value: "all",
98
- children: "All"
99
- })
100
- ]
101
- }), /* @__PURE__ */ s("select", {
102
- "aria-label": "Filter by language",
103
- className: "rounded-md border border-border 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",
104
- children: [
105
- /* @__PURE__ */ o("option", {
106
- value: "all",
107
- children: "All Languages"
108
- }),
109
- /* @__PURE__ */ o("option", {
110
- value: "es-ES",
111
- children: "Spanish"
112
- }),
113
- /* @__PURE__ */ o("option", {
114
- value: "fr-FR",
115
- children: "French"
116
- }),
117
- /* @__PURE__ */ o("option", {
118
- value: "de-DE",
119
- children: "German"
120
- })
121
- ]
145
+ })]
122
146
  })]
123
- })
124
- }),
125
- /* @__PURE__ */ s("div", {
126
- className: "flex-1 overflow-auto p-6",
127
- children: [/* @__PURE__ */ o("div", {
147
+ }),
148
+ h.length === 0 && /* @__PURE__ */ a(d, {
149
+ illustration: "empty-notifications",
150
+ title: "Nothing to review",
151
+ description: "All caught up — there are no translations waiting for review."
152
+ }),
153
+ h.length > 0 && /* @__PURE__ */ o("div", {
128
154
  className: "space-y-4",
129
- children: d.map((r) => /* @__PURE__ */ o("div", {
130
- className: "rounded-lg border border-border bg-surface-elevated p-6 transition-all hover:border-accent-primary",
131
- children: /* @__PURE__ */ s("div", {
155
+ children: [h.map((r) => /* @__PURE__ */ a(l, {
156
+ treatment: "insight",
157
+ className: "border-border-seam p-6",
158
+ children: /* @__PURE__ */ o("div", {
132
159
  className: "flex items-start gap-4",
133
- children: [/* @__PURE__ */ o("input", {
160
+ children: [/* @__PURE__ */ a("input", {
134
161
  type: "checkbox",
135
162
  "aria-label": `Select translation ${r.key}`,
136
- checked: c.includes(r.id),
137
- onChange: () => f(r.id),
138
- className: "mt-1 size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
139
- }), /* @__PURE__ */ s("div", {
163
+ checked: f.includes(r.id),
164
+ onChange: () => g(r.id),
165
+ className: "mt-1 size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
166
+ }), /* @__PURE__ */ o("div", {
140
167
  className: "flex-1",
141
168
  children: [
142
- /* @__PURE__ */ o("div", {
143
- className: "mb-3 flex items-start justify-between",
144
- children: /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h3", {
145
- className: "font-medium text-content-primary",
169
+ /* @__PURE__ */ a("div", {
170
+ className: "mb-3 flex items-start justify-between gap-2",
171
+ children: /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("h3", {
172
+ className: "font-medium text-text-primary",
146
173
  children: r.key
147
174
  }), /* @__PURE__ */ o("span", {
148
- className: "mt-1 inline-block rounded bg-accent-primary/10 px-2 py-0.5 text-xs font-medium text-accent-primary",
149
- children: r.languageCode
175
+ className: "mt-1 inline-flex items-center gap-1.5 rounded-full bg-action-primary-bg/10 px-2 py-0.5 text-xs font-medium text-primary",
176
+ children: [/* @__PURE__ */ a("span", {
177
+ className: "size-1.5 rounded-full bg-status-warning-text motion-safe:animate-vc-glow-pulse",
178
+ "aria-hidden": "true"
179
+ }), r.languageCode]
150
180
  })] })
151
181
  }),
152
- /* @__PURE__ */ s("div", {
182
+ /* @__PURE__ */ o("div", {
153
183
  className: "space-y-3",
154
- children: [/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("p", {
155
- className: "mb-1 text-xs font-medium text-content-tertiary",
184
+ children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
185
+ className: "mb-1 text-xs font-medium text-text-tertiary",
156
186
  children: "Source"
157
- }), /* @__PURE__ */ o("p", {
158
- className: "text-sm text-content-secondary",
187
+ }), /* @__PURE__ */ a("p", {
188
+ className: "text-sm text-text-secondary",
159
189
  children: r.sourceValue
160
- })] }), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("p", {
161
- className: "mb-1 text-xs font-medium text-content-tertiary",
190
+ })] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
191
+ className: "mb-1 text-xs font-medium text-text-tertiary",
162
192
  children: "Target"
163
- }), /* @__PURE__ */ o("p", {
164
- className: "text-sm text-content-primary",
193
+ }), /* @__PURE__ */ a("p", {
194
+ className: "text-sm text-text-primary",
165
195
  children: r.targetValue
166
196
  })] })]
167
197
  }),
168
- /* @__PURE__ */ s("div", {
169
- className: "mt-4 flex items-center justify-between",
170
- children: [/* @__PURE__ */ s("p", {
171
- className: "text-xs text-content-tertiary",
198
+ /* @__PURE__ */ o("div", {
199
+ className: "mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
200
+ children: [/* @__PURE__ */ o("p", {
201
+ className: "text-xs text-text-tertiary",
172
202
  children: [
173
203
  "Submitted by ",
174
204
  r.submittedBy,
175
205
  " • ",
176
206
  r.submittedAt
177
207
  ]
178
- }), /* @__PURE__ */ s("div", {
179
- className: "flex items-center gap-2",
180
- children: [
181
- /* @__PURE__ */ s("button", {
182
- type: "button",
183
- onClick: () => {
184
- u.current = !0;
185
- },
186
- className: "flex items-center gap-1 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-content-primary hover:bg-surface-elevated",
187
- children: [/* @__PURE__ */ o(n, { className: "size-3" }), "Add Notes"]
188
- }),
189
- /* @__PURE__ */ s("button", {
190
- type: "button",
191
- className: "flex items-center gap-1 rounded-md bg-success px-3 py-1.5 text-xs font-medium text-white hover:bg-success/90",
192
- children: [/* @__PURE__ */ o(e, { className: "size-3" }), "Approve"]
193
- }),
194
- /* @__PURE__ */ s("button", {
195
- type: "button",
196
- className: "flex items-center gap-1 rounded-md bg-error px-3 py-1.5 text-xs font-medium text-white hover:bg-error/90",
197
- children: [/* @__PURE__ */ o(t, { className: "size-3" }), "Reject"]
208
+ }), /* @__PURE__ */ a(s, {
209
+ primary: {
210
+ label: "Approve",
211
+ onSelect: () => void 0,
212
+ icon: /* @__PURE__ */ a(e, {
213
+ className: "size-4",
214
+ "aria-hidden": "true"
198
215
  })
199
- ]
216
+ },
217
+ actions: [{
218
+ label: "Add Notes",
219
+ onSelect: () => {
220
+ m.current = !0;
221
+ },
222
+ icon: /* @__PURE__ */ a(n, {
223
+ className: "size-4",
224
+ "aria-hidden": "true"
225
+ })
226
+ }, {
227
+ label: "Reject",
228
+ onSelect: () => {
229
+ window.confirm(`Reject translation "${r.key}"?`);
230
+ },
231
+ intent: "destructive",
232
+ icon: /* @__PURE__ */ a(t, {
233
+ className: "size-4",
234
+ "aria-hidden": "true"
235
+ })
236
+ }]
200
237
  })]
201
238
  })
202
239
  ]
203
240
  })]
204
241
  })
205
- }, r.id))
206
- }), /* @__PURE__ */ s("div", {
207
- className: "mt-6 text-center text-sm text-content-tertiary",
208
- children: [
209
- "Showing ",
210
- d.length,
211
- " of 47 pending reviews"
212
- ]
213
- })]
214
- })
215
- ]
242
+ }, r.id)), /* @__PURE__ */ o("p", {
243
+ className: "text-center text-sm text-text-tertiary",
244
+ children: [
245
+ "Showing ",
246
+ h.length,
247
+ " of 47 pending reviews"
248
+ ]
249
+ })]
250
+ })
251
+ ]
252
+ })]
216
253
  });
217
254
  };
218
255
  //#endregion
219
- export { c as ReviewQueuePage };
256
+ export { f as ReviewQueuePage };