@burdenoff/microfe-i18n 2026.510.107
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/I18nRoot.d.ts +34 -0
- package/dist/i18n/I18nRoot.d.ts.map +1 -0
- package/dist/i18n/I18nRoot.js +103 -0
- package/dist/i18n/I18nRoutes.d.ts +24 -0
- package/dist/i18n/I18nRoutes.d.ts.map +1 -0
- package/dist/i18n/I18nRoutes.js +82 -0
- package/dist/i18n/index.d.ts +40 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/pages/ImportExportPage.d.ts +10 -0
- package/dist/i18n/pages/ImportExportPage.d.ts.map +1 -0
- package/dist/i18n/pages/ImportExportPage.js +368 -0
- package/dist/i18n/pages/LanguagesListPage.d.ts +8 -0
- package/dist/i18n/pages/LanguagesListPage.d.ts.map +1 -0
- package/dist/i18n/pages/LanguagesListPage.js +148 -0
- package/dist/i18n/pages/LocaleConfigPage.d.ts +8 -0
- package/dist/i18n/pages/LocaleConfigPage.d.ts.map +1 -0
- package/dist/i18n/pages/LocaleConfigPage.js +318 -0
- package/dist/i18n/pages/ProductsListPage.d.ts +8 -0
- package/dist/i18n/pages/ProductsListPage.d.ts.map +1 -0
- package/dist/i18n/pages/ProductsListPage.js +131 -0
- package/dist/i18n/pages/ProgressDashboardPage.d.ts +8 -0
- package/dist/i18n/pages/ProgressDashboardPage.d.ts.map +1 -0
- package/dist/i18n/pages/ProgressDashboardPage.js +294 -0
- package/dist/i18n/pages/ReviewQueuePage.d.ts +8 -0
- package/dist/i18n/pages/ReviewQueuePage.d.ts.map +1 -0
- package/dist/i18n/pages/ReviewQueuePage.js +209 -0
- package/dist/i18n/pages/TranslationEditorPage.d.ts +8 -0
- package/dist/i18n/pages/TranslationEditorPage.d.ts.map +1 -0
- package/dist/i18n/pages/TranslationEditorPage.js +243 -0
- package/dist/i18n/providers/I18nProvider.d.ts +21 -0
- package/dist/i18n/providers/I18nProvider.d.ts.map +1 -0
- package/dist/i18n/providers/I18nProvider.js +45 -0
- package/dist/i18n/store/i18nStore.d.ts +46 -0
- package/dist/i18n/store/i18nStore.d.ts.map +1 -0
- package/dist/i18n/store/i18nStore.js +103 -0
- package/dist/i18n/types/index.d.ts +323 -0
- package/dist/i18n/types/index.d.ts.map +1 -0
- package/dist/i18n/utils/i18n.d.ts +3 -0
- package/dist/i18n/utils/i18n.d.ts.map +1 -0
- package/dist/i18n/utils/i18n.js +9 -0
- package/dist/i18n.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/languages.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/save.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +32 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +4 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import { Save as e } from "../../node_modules/lucide-react/dist/esm/icons/save.js";
|
|
2
|
+
import { Settings as t } from "../../node_modules/lucide-react/dist/esm/icons/settings.js";
|
|
3
|
+
import { Trash2 as n } from "../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
|
|
4
|
+
import { useState as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/i18n/pages/LocaleConfigPage.tsx
|
|
7
|
+
var o = () => {
|
|
8
|
+
let [o, s] = r({
|
|
9
|
+
code: "es-ES",
|
|
10
|
+
name: "Spanish",
|
|
11
|
+
nativeName: "Español",
|
|
12
|
+
region: "Spain",
|
|
13
|
+
direction: "ltr",
|
|
14
|
+
dateFormat: "DD/MM/YYYY",
|
|
15
|
+
timeFormat: "HH:mm",
|
|
16
|
+
numberFormat: "1.234,56",
|
|
17
|
+
currencyCode: "EUR",
|
|
18
|
+
isDefault: !1,
|
|
19
|
+
fallbackLanguages: ["es", "en"],
|
|
20
|
+
pluralRules: {
|
|
21
|
+
one: !0,
|
|
22
|
+
other: !0,
|
|
23
|
+
zero: !1,
|
|
24
|
+
two: !1,
|
|
25
|
+
few: !1,
|
|
26
|
+
many: !1
|
|
27
|
+
}
|
|
28
|
+
}), c = (e, t) => {
|
|
29
|
+
s((n) => ({
|
|
30
|
+
...n,
|
|
31
|
+
[e]: t
|
|
32
|
+
}));
|
|
33
|
+
}, l = (e, t) => {
|
|
34
|
+
s((n) => ({
|
|
35
|
+
...n,
|
|
36
|
+
pluralRules: {
|
|
37
|
+
...n.pluralRules,
|
|
38
|
+
[e]: t
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ a("div", {
|
|
43
|
+
className: "flex h-full flex-col",
|
|
44
|
+
children: [/* @__PURE__ */ i("div", {
|
|
45
|
+
className: "border-b border-border bg-surface-elevated p-6",
|
|
46
|
+
children: /* @__PURE__ */ a("div", {
|
|
47
|
+
className: "flex items-center justify-between",
|
|
48
|
+
children: [/* @__PURE__ */ a("div", {
|
|
49
|
+
className: "flex items-center gap-3",
|
|
50
|
+
children: [/* @__PURE__ */ i(t, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h1", {
|
|
51
|
+
className: "text-2xl font-semibold text-content-primary",
|
|
52
|
+
children: "Locale Configuration"
|
|
53
|
+
}), /* @__PURE__ */ a("p", {
|
|
54
|
+
className: "mt-1 text-sm text-content-secondary",
|
|
55
|
+
children: [
|
|
56
|
+
o.name,
|
|
57
|
+
" (",
|
|
58
|
+
o.nativeName,
|
|
59
|
+
")"
|
|
60
|
+
]
|
|
61
|
+
})] })]
|
|
62
|
+
}), /* @__PURE__ */ a("div", {
|
|
63
|
+
className: "flex items-center gap-2",
|
|
64
|
+
children: [/* @__PURE__ */ a("button", {
|
|
65
|
+
className: "flex items-center gap-2 rounded-md border border-error bg-surface px-4 py-2 text-sm font-medium text-error hover:bg-error/10",
|
|
66
|
+
children: [/* @__PURE__ */ i(n, { className: "size-4" }), "Delete Language"]
|
|
67
|
+
}), /* @__PURE__ */ a("button", {
|
|
68
|
+
onClick: () => {
|
|
69
|
+
console.log("Saving locale config:", o);
|
|
70
|
+
},
|
|
71
|
+
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",
|
|
72
|
+
children: [/* @__PURE__ */ i(e, { className: "size-4" }), "Save Changes"]
|
|
73
|
+
})]
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
}), /* @__PURE__ */ i("div", {
|
|
77
|
+
className: "flex-1 overflow-auto p-6",
|
|
78
|
+
children: /* @__PURE__ */ a("div", {
|
|
79
|
+
className: "mx-auto max-w-3xl space-y-8",
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ a("div", { children: [
|
|
82
|
+
/* @__PURE__ */ i("h2", {
|
|
83
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
84
|
+
children: "Basic Information"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ a("div", {
|
|
87
|
+
className: "grid grid-cols-2 gap-4",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
90
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
91
|
+
children: "Language Code"
|
|
92
|
+
}), /* @__PURE__ */ i("input", {
|
|
93
|
+
type: "text",
|
|
94
|
+
value: o.code,
|
|
95
|
+
onChange: (e) => c("code", e.target.value),
|
|
96
|
+
className: "w-full 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"
|
|
97
|
+
})] }),
|
|
98
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
99
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
100
|
+
children: "Name"
|
|
101
|
+
}), /* @__PURE__ */ i("input", {
|
|
102
|
+
type: "text",
|
|
103
|
+
value: o.name,
|
|
104
|
+
onChange: (e) => c("name", e.target.value),
|
|
105
|
+
className: "w-full 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"
|
|
106
|
+
})] }),
|
|
107
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
108
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
109
|
+
children: "Native Name"
|
|
110
|
+
}), /* @__PURE__ */ i("input", {
|
|
111
|
+
type: "text",
|
|
112
|
+
value: o.nativeName,
|
|
113
|
+
onChange: (e) => c("nativeName", e.target.value),
|
|
114
|
+
className: "w-full 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"
|
|
115
|
+
})] }),
|
|
116
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
117
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
118
|
+
children: "Region"
|
|
119
|
+
}), /* @__PURE__ */ i("input", {
|
|
120
|
+
type: "text",
|
|
121
|
+
value: o.region,
|
|
122
|
+
onChange: (e) => c("region", e.target.value),
|
|
123
|
+
className: "w-full 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"
|
|
124
|
+
})] })
|
|
125
|
+
]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ a("div", {
|
|
128
|
+
className: "mt-4 flex items-center gap-2",
|
|
129
|
+
children: [/* @__PURE__ */ i("input", {
|
|
130
|
+
type: "checkbox",
|
|
131
|
+
id: "is-default",
|
|
132
|
+
checked: o.isDefault,
|
|
133
|
+
onChange: (e) => c("isDefault", e.target.checked),
|
|
134
|
+
className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
|
|
135
|
+
}), /* @__PURE__ */ i("label", {
|
|
136
|
+
htmlFor: "is-default",
|
|
137
|
+
className: "text-sm text-content-primary",
|
|
138
|
+
children: "Set as default language"
|
|
139
|
+
})]
|
|
140
|
+
})
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
143
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
144
|
+
children: "Text Direction & Layout"
|
|
145
|
+
}), /* @__PURE__ */ a("div", {
|
|
146
|
+
className: "flex items-center gap-6",
|
|
147
|
+
children: [/* @__PURE__ */ a("div", {
|
|
148
|
+
className: "flex items-center gap-2",
|
|
149
|
+
children: [/* @__PURE__ */ i("input", {
|
|
150
|
+
type: "radio",
|
|
151
|
+
id: "ltr",
|
|
152
|
+
name: "direction",
|
|
153
|
+
checked: o.direction === "ltr",
|
|
154
|
+
onChange: () => c("direction", "ltr"),
|
|
155
|
+
className: "size-4 border-border text-accent-primary focus:ring-accent-primary"
|
|
156
|
+
}), /* @__PURE__ */ i("label", {
|
|
157
|
+
htmlFor: "ltr",
|
|
158
|
+
className: "text-sm text-content-primary",
|
|
159
|
+
children: "LTR (Left to Right)"
|
|
160
|
+
})]
|
|
161
|
+
}), /* @__PURE__ */ a("div", {
|
|
162
|
+
className: "flex items-center gap-2",
|
|
163
|
+
children: [/* @__PURE__ */ i("input", {
|
|
164
|
+
type: "radio",
|
|
165
|
+
id: "rtl",
|
|
166
|
+
name: "direction",
|
|
167
|
+
checked: o.direction === "rtl",
|
|
168
|
+
onChange: () => c("direction", "rtl"),
|
|
169
|
+
className: "size-4 border-border text-accent-primary focus:ring-accent-primary"
|
|
170
|
+
}), /* @__PURE__ */ i("label", {
|
|
171
|
+
htmlFor: "rtl",
|
|
172
|
+
className: "text-sm text-content-primary",
|
|
173
|
+
children: "RTL (Right to Left)"
|
|
174
|
+
})]
|
|
175
|
+
})]
|
|
176
|
+
})] }),
|
|
177
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
178
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
179
|
+
children: "Fallback Chain"
|
|
180
|
+
}), /* @__PURE__ */ a("div", {
|
|
181
|
+
className: "space-y-2",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ i("div", {
|
|
184
|
+
className: "rounded-lg border border-border bg-surface-elevated p-3",
|
|
185
|
+
children: /* @__PURE__ */ a("div", {
|
|
186
|
+
className: "flex items-center justify-between",
|
|
187
|
+
children: [/* @__PURE__ */ i("span", {
|
|
188
|
+
className: "text-sm text-content-primary",
|
|
189
|
+
children: "1. Spanish (es-ES)"
|
|
190
|
+
}), /* @__PURE__ */ i("span", {
|
|
191
|
+
className: "text-xs text-content-tertiary",
|
|
192
|
+
children: "Current"
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
195
|
+
}),
|
|
196
|
+
o.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
|
|
197
|
+
className: "rounded-lg border border-border bg-surface p-3",
|
|
198
|
+
children: /* @__PURE__ */ a("div", {
|
|
199
|
+
className: "flex items-center justify-between",
|
|
200
|
+
children: [/* @__PURE__ */ a("span", {
|
|
201
|
+
className: "text-sm text-content-primary",
|
|
202
|
+
children: [
|
|
203
|
+
t + 2,
|
|
204
|
+
".",
|
|
205
|
+
" ",
|
|
206
|
+
e === "es" ? "Spanish (es)" : "English (en)"
|
|
207
|
+
]
|
|
208
|
+
}), /* @__PURE__ */ i("button", {
|
|
209
|
+
className: "text-xs text-error hover:underline",
|
|
210
|
+
children: "Remove"
|
|
211
|
+
})]
|
|
212
|
+
})
|
|
213
|
+
}, e)),
|
|
214
|
+
/* @__PURE__ */ i("button", {
|
|
215
|
+
className: "w-full rounded-lg border-2 border-dashed border-border bg-surface p-3 text-sm text-content-secondary transition-colors hover:border-accent-primary hover:text-accent-primary",
|
|
216
|
+
children: "+ Add Fallback Language"
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
})] }),
|
|
220
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
221
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
222
|
+
children: "Plural Rules (CLDR-based)"
|
|
223
|
+
}), /* @__PURE__ */ i("div", {
|
|
224
|
+
className: "grid grid-cols-3 gap-3",
|
|
225
|
+
children: Object.entries(o.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
|
|
226
|
+
className: "flex items-center gap-2 rounded-lg border border-border bg-surface-elevated p-3",
|
|
227
|
+
children: [/* @__PURE__ */ i("input", {
|
|
228
|
+
type: "checkbox",
|
|
229
|
+
id: `plural-${e}`,
|
|
230
|
+
checked: t,
|
|
231
|
+
onChange: (t) => l(e, t.target.checked),
|
|
232
|
+
className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
|
|
233
|
+
}), /* @__PURE__ */ i("label", {
|
|
234
|
+
htmlFor: `plural-${e}`,
|
|
235
|
+
className: "text-sm text-content-primary",
|
|
236
|
+
children: e
|
|
237
|
+
})]
|
|
238
|
+
}, e))
|
|
239
|
+
})] }),
|
|
240
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
241
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
242
|
+
children: "Formatting"
|
|
243
|
+
}), /* @__PURE__ */ a("div", {
|
|
244
|
+
className: "grid grid-cols-2 gap-4",
|
|
245
|
+
children: [
|
|
246
|
+
/* @__PURE__ */ a("div", { children: [
|
|
247
|
+
/* @__PURE__ */ i("label", {
|
|
248
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
249
|
+
children: "Date Format"
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ i("input", {
|
|
252
|
+
type: "text",
|
|
253
|
+
value: o.dateFormat,
|
|
254
|
+
onChange: (e) => c("dateFormat", e.target.value),
|
|
255
|
+
className: "w-full 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"
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ i("p", {
|
|
258
|
+
className: "mt-1 text-xs text-content-tertiary",
|
|
259
|
+
children: "Preview: 25/12/2025"
|
|
260
|
+
})
|
|
261
|
+
] }),
|
|
262
|
+
/* @__PURE__ */ a("div", { children: [
|
|
263
|
+
/* @__PURE__ */ i("label", {
|
|
264
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
265
|
+
children: "Time Format"
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ i("input", {
|
|
268
|
+
type: "text",
|
|
269
|
+
value: o.timeFormat,
|
|
270
|
+
onChange: (e) => c("timeFormat", e.target.value),
|
|
271
|
+
className: "w-full 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"
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ i("p", {
|
|
274
|
+
className: "mt-1 text-xs text-content-tertiary",
|
|
275
|
+
children: "Preview: 14:30"
|
|
276
|
+
})
|
|
277
|
+
] }),
|
|
278
|
+
/* @__PURE__ */ a("div", { children: [
|
|
279
|
+
/* @__PURE__ */ i("label", {
|
|
280
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
281
|
+
children: "Number Format"
|
|
282
|
+
}),
|
|
283
|
+
/* @__PURE__ */ i("input", {
|
|
284
|
+
type: "text",
|
|
285
|
+
value: o.numberFormat,
|
|
286
|
+
onChange: (e) => c("numberFormat", e.target.value),
|
|
287
|
+
className: "w-full 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"
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ i("p", {
|
|
290
|
+
className: "mt-1 text-xs text-content-tertiary",
|
|
291
|
+
children: "Preview: 1.234,56"
|
|
292
|
+
})
|
|
293
|
+
] }),
|
|
294
|
+
/* @__PURE__ */ a("div", { children: [
|
|
295
|
+
/* @__PURE__ */ i("label", {
|
|
296
|
+
className: "mb-2 block text-sm font-medium text-content-primary",
|
|
297
|
+
children: "Currency Code"
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ i("input", {
|
|
300
|
+
type: "text",
|
|
301
|
+
value: o.currencyCode,
|
|
302
|
+
onChange: (e) => c("currencyCode", e.target.value),
|
|
303
|
+
className: "w-full 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"
|
|
304
|
+
}),
|
|
305
|
+
/* @__PURE__ */ i("p", {
|
|
306
|
+
className: "mt-1 text-xs text-content-tertiary",
|
|
307
|
+
children: "Symbol: €"
|
|
308
|
+
})
|
|
309
|
+
] })
|
|
310
|
+
]
|
|
311
|
+
})] })
|
|
312
|
+
]
|
|
313
|
+
})
|
|
314
|
+
})]
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
//#endregion
|
|
318
|
+
export { o as LocaleConfigPage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductsListPage.d.ts","sourceRoot":"","sources":["../../../src/i18n/pages/ProductsListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,EAkI9B,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { ChevronRight as e } from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
2
|
+
import { Package as t } from "../../node_modules/lucide-react/dist/esm/icons/package.js";
|
|
3
|
+
import { Plus as n } from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
4
|
+
import { Search as r } from "../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
5
|
+
import { useI18n as i } from "../providers/I18nProvider.js";
|
|
6
|
+
import { useI18nStore as a } from "../store/i18nStore.js";
|
|
7
|
+
import { useState as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/i18n/pages/ProductsListPage.tsx
|
|
10
|
+
var l = () => {
|
|
11
|
+
let { t: l } = i(), u = (e, t, n) => l(e, t, n), { setSelectedProduct: d } = a(), [f, p] = o(""), m = [{
|
|
12
|
+
id: "1",
|
|
13
|
+
name: "workspaces",
|
|
14
|
+
displayName: "Workspaces",
|
|
15
|
+
description: "Enterprise collaboration platform",
|
|
16
|
+
status: "active",
|
|
17
|
+
modules: [
|
|
18
|
+
{
|
|
19
|
+
id: "m1",
|
|
20
|
+
name: "auth",
|
|
21
|
+
displayName: "Authentication"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
id: "m2",
|
|
25
|
+
name: "calendar",
|
|
26
|
+
displayName: "Calendar"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: "m3",
|
|
30
|
+
name: "files",
|
|
31
|
+
displayName: "Files"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}, {
|
|
35
|
+
id: "2",
|
|
36
|
+
name: "tenant",
|
|
37
|
+
displayName: "Tenant",
|
|
38
|
+
description: "Multi-tenant SaaS management",
|
|
39
|
+
status: "active",
|
|
40
|
+
modules: [{
|
|
41
|
+
id: "m4",
|
|
42
|
+
name: "billing",
|
|
43
|
+
displayName: "Billing"
|
|
44
|
+
}, {
|
|
45
|
+
id: "m5",
|
|
46
|
+
name: "notification",
|
|
47
|
+
displayName: "Notifications"
|
|
48
|
+
}]
|
|
49
|
+
}].filter((e) => e.displayName.toLowerCase().includes(f.toLowerCase()) || e.name.toLowerCase().includes(f.toLowerCase()));
|
|
50
|
+
return /* @__PURE__ */ c("div", {
|
|
51
|
+
className: "flex h-full flex-col",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ s("div", {
|
|
54
|
+
className: "border-b border-border bg-surface-elevated p-6",
|
|
55
|
+
children: /* @__PURE__ */ c("div", {
|
|
56
|
+
className: "flex items-center justify-between",
|
|
57
|
+
children: [/* @__PURE__ */ c("div", {
|
|
58
|
+
className: "flex items-center gap-3",
|
|
59
|
+
children: [/* @__PURE__ */ s(t, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ s("h1", {
|
|
60
|
+
className: "text-2xl font-semibold text-content-primary",
|
|
61
|
+
children: u("i18n.products.title", "Products")
|
|
62
|
+
})]
|
|
63
|
+
}), /* @__PURE__ */ c("button", {
|
|
64
|
+
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",
|
|
65
|
+
children: [/* @__PURE__ */ s(n, { className: "size-4" }), u("i18n.products.actions.add", "Add Product")]
|
|
66
|
+
})]
|
|
67
|
+
})
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ s("div", {
|
|
70
|
+
className: "border-b border-border bg-surface p-4",
|
|
71
|
+
children: /* @__PURE__ */ c("div", {
|
|
72
|
+
className: "relative",
|
|
73
|
+
children: [/* @__PURE__ */ s(r, { className: "absolute left-3 top-1/2 size-4 -translate-y-1/2 text-content-secondary" }), /* @__PURE__ */ s("input", {
|
|
74
|
+
type: "text",
|
|
75
|
+
placeholder: u("i18n.products.search.placeholder", "Search products..."),
|
|
76
|
+
value: f,
|
|
77
|
+
onChange: (e) => p(e.target.value),
|
|
78
|
+
className: "w-full rounded-md border border-border bg-surface-elevated py-2 pl-10 pr-4 text-sm text-content-primary placeholder:text-content-tertiary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary"
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ s("div", {
|
|
83
|
+
className: "flex-1 overflow-auto p-6",
|
|
84
|
+
children: /* @__PURE__ */ s("div", {
|
|
85
|
+
className: "space-y-4",
|
|
86
|
+
children: m.map((t) => /* @__PURE__ */ s("div", {
|
|
87
|
+
onClick: () => d(t),
|
|
88
|
+
className: "cursor-pointer rounded-lg border border-border bg-surface-elevated p-6 transition-all hover:border-accent-primary hover:shadow-md",
|
|
89
|
+
children: /* @__PURE__ */ s("div", {
|
|
90
|
+
className: "flex items-start justify-between",
|
|
91
|
+
children: /* @__PURE__ */ c("div", {
|
|
92
|
+
className: "flex-1",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ c("div", {
|
|
95
|
+
className: "flex items-center gap-2",
|
|
96
|
+
children: [/* @__PURE__ */ s("h3", {
|
|
97
|
+
className: "text-lg font-medium text-content-primary",
|
|
98
|
+
children: t.displayName
|
|
99
|
+
}), /* @__PURE__ */ s("span", {
|
|
100
|
+
className: "rounded bg-accent-primary/10 px-2 py-0.5 text-xs font-medium text-accent-primary",
|
|
101
|
+
children: t.status === "active" ? u("i18n.shared.status.active", "Active") : u("i18n.shared.status.archived", "Archived")
|
|
102
|
+
})]
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ s("p", {
|
|
105
|
+
className: "mt-1 text-sm text-content-secondary",
|
|
106
|
+
children: t.description
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ c("div", {
|
|
109
|
+
className: "mt-4",
|
|
110
|
+
children: [/* @__PURE__ */ s("p", {
|
|
111
|
+
className: "mb-2 text-xs font-medium uppercase tracking-wider text-content-tertiary",
|
|
112
|
+
children: u("i18n.products.modules.count", "Modules ({{count}})", { count: t.modules.length })
|
|
113
|
+
}), /* @__PURE__ */ s("div", {
|
|
114
|
+
className: "flex flex-wrap gap-2",
|
|
115
|
+
children: t.modules.map((t) => /* @__PURE__ */ c("span", {
|
|
116
|
+
className: "inline-flex items-center gap-1 rounded-md border border-border bg-surface px-2 py-1 text-xs text-content-secondary",
|
|
117
|
+
children: [t.displayName, /* @__PURE__ */ s(e, { className: "size-3" })]
|
|
118
|
+
}, t.id))
|
|
119
|
+
})]
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
})
|
|
124
|
+
}, t.id))
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
export { l as ProductsListPage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressDashboardPage.d.ts","sourceRoot":"","sources":["../../../src/i18n/pages/ProgressDashboardPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAyRnC,CAAC"}
|