@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.
- package/dist/i18n/pages/ImportExportPage.js +358 -319
- package/dist/i18n/pages/LanguagesListPage.js +120 -88
- package/dist/i18n/pages/LocaleConfigPage.js +269 -243
- package/dist/i18n/pages/ProductsListPage.js +147 -84
- package/dist/i18n/pages/ProgressDashboardPage.js +340 -283
- package/dist/i18n/pages/ReviewQueuePage.js +186 -149
- package/dist/i18n/pages/TranslationEditorPage.js +166 -115
- package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +54 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +11 -0
- package/package.json +2 -2
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { Boxes as e } from "../../node_modules/lucide-react/dist/esm/icons/boxes.js";
|
|
2
|
+
import { ChevronRight as t } from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
3
|
+
import { Package as n } from "../../node_modules/lucide-react/dist/esm/icons/package.js";
|
|
4
|
+
import { Plus as r } from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
5
|
+
import { Search as i } from "../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
6
|
+
import { useI18n as a } from "../providers/I18nProvider.js";
|
|
7
|
+
import { useI18nStore as o } from "../store/i18nStore.js";
|
|
8
|
+
import { useState as s } from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { AuroraBackground as u, CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, IllustratedEmptyState as h } from "@burdenoff/fe-libs/ui";
|
|
9
11
|
//#region src/i18n/pages/ProductsListPage.tsx
|
|
10
|
-
var
|
|
11
|
-
let { t:
|
|
12
|
+
var g = () => {
|
|
13
|
+
let { t: g } = a(), _ = (e, t, n) => g(e, t, n), { setSelectedProduct: v } = o(), [y, b] = s(""), x = [{
|
|
12
14
|
id: "1",
|
|
13
15
|
name: "workspaces",
|
|
14
16
|
displayName: "Workspaces",
|
|
@@ -46,89 +48,150 @@ var l = () => {
|
|
|
46
48
|
name: "notification",
|
|
47
49
|
displayName: "Notifications"
|
|
48
50
|
}]
|
|
49
|
-
}].filter((e) => e.displayName.toLowerCase().includes(
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
className: "
|
|
52
|
-
children: [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
}], S = x.filter((e) => e.displayName.toLowerCase().includes(y.toLowerCase()) || e.name.toLowerCase().includes(y.toLowerCase())), C = x.reduce((e, t) => e + t.modules.length, 0), w = y.trim().length > 0;
|
|
52
|
+
return /* @__PURE__ */ l("div", {
|
|
53
|
+
className: "min-h-full w-full bg-bg-surface",
|
|
54
|
+
children: [/* @__PURE__ */ l("div", {
|
|
55
|
+
className: "relative overflow-hidden border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
|
|
56
|
+
children: [/* @__PURE__ */ c(u, { intensity: "subtle" }), /* @__PURE__ */ l("div", {
|
|
57
|
+
className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
58
|
+
children: [/* @__PURE__ */ l("div", {
|
|
59
|
+
className: "flex items-center gap-4",
|
|
57
60
|
children: [/* @__PURE__ */ c("div", {
|
|
58
|
-
className: "flex items-center
|
|
59
|
-
children:
|
|
60
|
-
className: "
|
|
61
|
-
|
|
61
|
+
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
62
|
+
children: /* @__PURE__ */ c(n, {
|
|
63
|
+
className: "size-5",
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
})
|
|
66
|
+
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
67
|
+
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
68
|
+
children: /* @__PURE__ */ c(m, { children: _("i18n.products.title", "Products") })
|
|
69
|
+
}), /* @__PURE__ */ c("p", {
|
|
70
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
71
|
+
children: _("i18n.products.subtitle", "Manage localization across products and their modules")
|
|
72
|
+
})] })]
|
|
73
|
+
}), /* @__PURE__ */ c(d, {
|
|
74
|
+
primary: {
|
|
75
|
+
label: _("i18n.products.actions.add", "Add Product"),
|
|
76
|
+
onSelect: () => void 0,
|
|
77
|
+
icon: /* @__PURE__ */ c(r, {
|
|
78
|
+
className: "size-4",
|
|
79
|
+
"aria-hidden": "true"
|
|
80
|
+
})
|
|
81
|
+
},
|
|
82
|
+
actions: []
|
|
83
|
+
})]
|
|
84
|
+
})]
|
|
85
|
+
}), /* @__PURE__ */ l("div", {
|
|
86
|
+
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ l(f, {
|
|
89
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
90
|
+
children: [/* @__PURE__ */ l("div", {
|
|
91
|
+
className: "flex flex-1 items-center gap-4",
|
|
92
|
+
children: [/* @__PURE__ */ c("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__ */ c(e, {
|
|
95
|
+
className: "size-7",
|
|
96
|
+
"aria-hidden": "true"
|
|
97
|
+
})
|
|
98
|
+
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
|
|
99
|
+
className: "text-sm font-medium text-text-secondary",
|
|
100
|
+
children: _("i18n.products.summary.label", "Products tracked")
|
|
101
|
+
}), /* @__PURE__ */ c("p", {
|
|
102
|
+
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
103
|
+
children: x.length
|
|
104
|
+
})] })]
|
|
105
|
+
}), /* @__PURE__ */ l("div", {
|
|
106
|
+
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
107
|
+
children: [/* @__PURE__ */ c("div", {
|
|
108
|
+
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
|
|
109
|
+
children: _("i18n.products.summary.modules", "{{count}} modules", { count: C })
|
|
110
|
+
}), /* @__PURE__ */ l("div", {
|
|
111
|
+
className: "flex items-center gap-1.5 rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary",
|
|
112
|
+
children: [/* @__PURE__ */ c("span", {
|
|
113
|
+
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
114
|
+
"aria-hidden": "true"
|
|
115
|
+
}), _("i18n.products.summary.active", "All active")]
|
|
62
116
|
})]
|
|
63
|
-
}), /* @__PURE__ */ c("button", {
|
|
64
|
-
type: "button",
|
|
65
|
-
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",
|
|
66
|
-
children: [/* @__PURE__ */ s(n, { className: "size-4" }), u("i18n.products.actions.add", "Add Product")]
|
|
67
117
|
})]
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ l("div", {
|
|
120
|
+
className: "relative max-w-md",
|
|
121
|
+
children: [/* @__PURE__ */ c(i, {
|
|
122
|
+
className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
123
|
+
"aria-hidden": "true"
|
|
124
|
+
}), /* @__PURE__ */ c("input", {
|
|
75
125
|
type: "text",
|
|
76
|
-
"aria-label":
|
|
77
|
-
placeholder:
|
|
78
|
-
value:
|
|
79
|
-
onChange: (e) =>
|
|
80
|
-
className: "w-full rounded-
|
|
126
|
+
"aria-label": _("i18n.products.search.ariaLabel", "Search products"),
|
|
127
|
+
placeholder: _("i18n.products.search.placeholder", "Search products..."),
|
|
128
|
+
value: y,
|
|
129
|
+
onChange: (e) => b(e.target.value),
|
|
130
|
+
className: "w-full rounded-lg border border-border-seam bg-bg-elevated py-2.5 pl-10 pr-4 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)]"
|
|
81
131
|
})]
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
132
|
+
}),
|
|
133
|
+
S.length === 0 && /* @__PURE__ */ c(h, {
|
|
134
|
+
illustration: w ? "empty-search" : "empty-data",
|
|
135
|
+
title: w ? _("i18n.products.empty.search.title", "No products found") : _("i18n.products.empty.title", "No products yet"),
|
|
136
|
+
description: w ? _("i18n.products.empty.search.description", "Try a different search term to find a product.") : _("i18n.products.empty.description", "Add your first product to start managing translations.")
|
|
137
|
+
}),
|
|
138
|
+
S.length > 0 && /* @__PURE__ */ c("div", {
|
|
87
139
|
className: "space-y-4",
|
|
88
|
-
children:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
className: "
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
140
|
+
children: S.map((e, n) => /* @__PURE__ */ c(p, {
|
|
141
|
+
treatment: "insight",
|
|
142
|
+
glow: n === 0,
|
|
143
|
+
className: "border-border-seam",
|
|
144
|
+
children: /* @__PURE__ */ c("button", {
|
|
145
|
+
type: "button",
|
|
146
|
+
onClick: () => v(e),
|
|
147
|
+
className: "block w-full cursor-pointer rounded-[inherit] p-6 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
148
|
+
children: /* @__PURE__ */ l("div", {
|
|
149
|
+
className: "flex items-start justify-between gap-4",
|
|
150
|
+
children: [/* @__PURE__ */ l("div", {
|
|
151
|
+
className: "flex-1",
|
|
152
|
+
children: [
|
|
153
|
+
/* @__PURE__ */ l("div", {
|
|
154
|
+
className: "flex items-center gap-2",
|
|
155
|
+
children: [/* @__PURE__ */ c("h3", {
|
|
156
|
+
className: "text-lg font-semibold text-text-primary",
|
|
157
|
+
children: e.displayName
|
|
158
|
+
}), /* @__PURE__ */ c("span", {
|
|
159
|
+
className: "rounded-full bg-status-success-bg px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
160
|
+
children: e.status === "active" ? _("i18n.shared.status.active", "Active") : _("i18n.shared.status.archived", "Archived")
|
|
161
|
+
})]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ c("p", {
|
|
164
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
165
|
+
children: e.description
|
|
166
|
+
}),
|
|
167
|
+
/* @__PURE__ */ l("div", {
|
|
168
|
+
className: "mt-4",
|
|
169
|
+
children: [/* @__PURE__ */ c("p", {
|
|
170
|
+
className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-tertiary",
|
|
171
|
+
children: _("i18n.products.modules.count", "Modules ({{count}})", { count: e.modules.length })
|
|
172
|
+
}), /* @__PURE__ */ c("div", {
|
|
173
|
+
className: "flex flex-wrap gap-2",
|
|
174
|
+
children: e.modules.map((e) => /* @__PURE__ */ l("span", {
|
|
175
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border-seam bg-bg-sunken/60 px-2 py-1 text-xs text-text-secondary",
|
|
176
|
+
children: [e.displayName, /* @__PURE__ */ c(t, {
|
|
177
|
+
className: "size-3",
|
|
178
|
+
"aria-hidden": "true"
|
|
179
|
+
})]
|
|
180
|
+
}, e.id))
|
|
181
|
+
})]
|
|
182
|
+
})
|
|
183
|
+
]
|
|
184
|
+
}), /* @__PURE__ */ c(t, {
|
|
185
|
+
className: "mt-1 size-5 shrink-0 text-text-tertiary",
|
|
186
|
+
"aria-hidden": "true"
|
|
187
|
+
})]
|
|
125
188
|
})
|
|
126
189
|
})
|
|
127
|
-
},
|
|
190
|
+
}, e.id))
|
|
128
191
|
})
|
|
129
|
-
|
|
130
|
-
]
|
|
192
|
+
]
|
|
193
|
+
})]
|
|
131
194
|
});
|
|
132
195
|
};
|
|
133
196
|
//#endregion
|
|
134
|
-
export {
|
|
197
|
+
export { g as ProductsListPage };
|