@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.
Files changed (69) hide show
  1. package/dist/i18n/I18nRoot.d.ts +34 -0
  2. package/dist/i18n/I18nRoot.d.ts.map +1 -0
  3. package/dist/i18n/I18nRoot.js +103 -0
  4. package/dist/i18n/I18nRoutes.d.ts +24 -0
  5. package/dist/i18n/I18nRoutes.d.ts.map +1 -0
  6. package/dist/i18n/I18nRoutes.js +82 -0
  7. package/dist/i18n/index.d.ts +40 -0
  8. package/dist/i18n/index.d.ts.map +1 -0
  9. package/dist/i18n/pages/ImportExportPage.d.ts +10 -0
  10. package/dist/i18n/pages/ImportExportPage.d.ts.map +1 -0
  11. package/dist/i18n/pages/ImportExportPage.js +368 -0
  12. package/dist/i18n/pages/LanguagesListPage.d.ts +8 -0
  13. package/dist/i18n/pages/LanguagesListPage.d.ts.map +1 -0
  14. package/dist/i18n/pages/LanguagesListPage.js +148 -0
  15. package/dist/i18n/pages/LocaleConfigPage.d.ts +8 -0
  16. package/dist/i18n/pages/LocaleConfigPage.d.ts.map +1 -0
  17. package/dist/i18n/pages/LocaleConfigPage.js +318 -0
  18. package/dist/i18n/pages/ProductsListPage.d.ts +8 -0
  19. package/dist/i18n/pages/ProductsListPage.d.ts.map +1 -0
  20. package/dist/i18n/pages/ProductsListPage.js +131 -0
  21. package/dist/i18n/pages/ProgressDashboardPage.d.ts +8 -0
  22. package/dist/i18n/pages/ProgressDashboardPage.d.ts.map +1 -0
  23. package/dist/i18n/pages/ProgressDashboardPage.js +294 -0
  24. package/dist/i18n/pages/ReviewQueuePage.d.ts +8 -0
  25. package/dist/i18n/pages/ReviewQueuePage.d.ts.map +1 -0
  26. package/dist/i18n/pages/ReviewQueuePage.js +209 -0
  27. package/dist/i18n/pages/TranslationEditorPage.d.ts +8 -0
  28. package/dist/i18n/pages/TranslationEditorPage.d.ts.map +1 -0
  29. package/dist/i18n/pages/TranslationEditorPage.js +243 -0
  30. package/dist/i18n/providers/I18nProvider.d.ts +21 -0
  31. package/dist/i18n/providers/I18nProvider.d.ts.map +1 -0
  32. package/dist/i18n/providers/I18nProvider.js +45 -0
  33. package/dist/i18n/store/i18nStore.d.ts +46 -0
  34. package/dist/i18n/store/i18nStore.d.ts.map +1 -0
  35. package/dist/i18n/store/i18nStore.js +103 -0
  36. package/dist/i18n/types/index.d.ts +323 -0
  37. package/dist/i18n/types/index.d.ts.map +1 -0
  38. package/dist/i18n/utils/i18n.d.ts +3 -0
  39. package/dist/i18n/utils/i18n.d.ts.map +1 -0
  40. package/dist/i18n/utils/i18n.js +9 -0
  41. package/dist/i18n.js +4 -0
  42. package/dist/index.d.ts +1 -0
  43. package/dist/node_modules/lucide-react/dist/esm/Icon.js +16 -0
  44. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +15 -0
  45. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
  46. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
  47. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +8 -0
  48. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +26 -0
  49. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +11 -0
  50. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +20 -0
  51. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +21 -0
  52. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +26 -0
  53. package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +20 -0
  54. package/dist/node_modules/lucide-react/dist/esm/icons/languages.js +30 -0
  55. package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +8 -0
  56. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +22 -0
  57. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +11 -0
  58. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +11 -0
  59. package/dist/node_modules/lucide-react/dist/esm/icons/save.js +18 -0
  60. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +13 -0
  61. package/dist/node_modules/lucide-react/dist/esm/icons/send.js +11 -0
  62. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
  63. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +32 -0
  64. package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +11 -0
  65. package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +21 -0
  66. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +4 -0
  67. package/dist/utils/nativeBridge.d.ts +3 -0
  68. package/dist/utils/nativeBridge.d.ts.map +1 -0
  69. package/package.json +93 -0
@@ -0,0 +1,323 @@
1
+ import { MicrofrontendRootProps } from '../../../../../fe-libs/src/shared/types';
2
+ import { NavItem, FooterItem } from '../../../../../fe-libs/src/shared/hooks/shell';
3
+
4
+ export type { NavItem, FooterItem };
5
+ /**
6
+ * Props for the I18nRoot component
7
+ */
8
+ export interface I18nRootProps extends MicrofrontendRootProps {
9
+ /**
10
+ * Optional keyed translations injected by the host shell.
11
+ */
12
+ translations?: Record<string, string>;
13
+ /**
14
+ * Optional callback when a language is created/updated
15
+ */
16
+ onLanguageChange?: (language: Language) => void;
17
+ /**
18
+ * Optional callback when a translation is published
19
+ */
20
+ onTranslationPublish?: (translation: Translation) => void;
21
+ /**
22
+ * Optional default view to show
23
+ */
24
+ defaultView?: I18nView;
25
+ /**
26
+ * Optional function to register navigation items with the shell
27
+ * Injected by the shell app
28
+ */
29
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
30
+ /**
31
+ * Optional function to register footer items with the shell
32
+ * Injected by the shell app
33
+ */
34
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
35
+ /**
36
+ * Tenant ID (this is a tenant module)
37
+ */
38
+ tenantId: string;
39
+ }
40
+ /**
41
+ * View mode for the i18n UI
42
+ */
43
+ export type I18nView = "languages" | "products" | "editor" | "progress" | "review" | "import" | "export" | "locales";
44
+ /**
45
+ * Tab in the i18n interface
46
+ */
47
+ export type I18nTab = "languages" | "products" | "modules" | "namespaces" | "keys" | "translations" | "progress" | "review";
48
+ /**
49
+ * Language entity
50
+ */
51
+ export interface Language {
52
+ id: string;
53
+ code: string;
54
+ name: string;
55
+ nativeName: string;
56
+ region?: string;
57
+ direction: "ltr" | "rtl";
58
+ status: "active" | "inactive";
59
+ isDefault: boolean;
60
+ fallbackCode?: string;
61
+ pluralRules?: PluralRule[];
62
+ dateFormat?: string;
63
+ timeFormat?: string;
64
+ numberFormat?: string;
65
+ currencyCode?: string;
66
+ metadata?: Record<string, unknown>;
67
+ createdAt?: string;
68
+ updatedAt?: string;
69
+ }
70
+ /**
71
+ * Plural rule for a language
72
+ */
73
+ export interface PluralRule {
74
+ form: PluralForm;
75
+ rule: string;
76
+ }
77
+ /**
78
+ * Plural forms based on CLDR
79
+ */
80
+ export type PluralForm = "zero" | "one" | "two" | "few" | "many" | "other";
81
+ /**
82
+ * I18n Product (e.g., Workspaces, Botlit, Tenant)
83
+ */
84
+ export interface I18nProduct {
85
+ id: string;
86
+ name: string;
87
+ displayName: string;
88
+ description?: string;
89
+ status: "active" | "archived";
90
+ metadata?: Record<string, unknown>;
91
+ modules?: I18nModule[];
92
+ createdAt?: string;
93
+ updatedAt?: string;
94
+ }
95
+ /**
96
+ * I18n Module (e.g., auth, billing, calendar)
97
+ */
98
+ export interface I18nModule {
99
+ id: string;
100
+ productId?: string;
101
+ name: string;
102
+ displayName: string;
103
+ description?: string;
104
+ status?: "active" | "archived";
105
+ metadata?: Record<string, unknown>;
106
+ namespaces?: I18nNamespace[];
107
+ createdAt?: string;
108
+ updatedAt?: string;
109
+ }
110
+ /**
111
+ * I18n Namespace (e.g., common, errors, validation)
112
+ */
113
+ export interface I18nNamespace {
114
+ id: string;
115
+ moduleId: string;
116
+ name: string;
117
+ displayName: string;
118
+ description?: string;
119
+ status: "active" | "archived";
120
+ metadata?: Record<string, unknown>;
121
+ keys?: TranslationKey[];
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ }
125
+ /**
126
+ * Translation Key
127
+ */
128
+ export interface TranslationKey {
129
+ id: string;
130
+ namespaceId: string;
131
+ key: string;
132
+ defaultValue: string;
133
+ description?: string;
134
+ placeholders?: Placeholder[];
135
+ characterLimit?: number;
136
+ tags?: string[];
137
+ context?: string;
138
+ status: "active" | "deprecated" | "archived";
139
+ isPlural: boolean;
140
+ translations?: Translation[];
141
+ metadata?: Record<string, unknown>;
142
+ createdAt: string;
143
+ updatedAt: string;
144
+ }
145
+ /**
146
+ * Placeholder in a translation key
147
+ */
148
+ export interface Placeholder {
149
+ name: string;
150
+ description?: string;
151
+ example?: string;
152
+ required: boolean;
153
+ }
154
+ /**
155
+ * Translation
156
+ */
157
+ export interface Translation {
158
+ id: string;
159
+ keyId: string;
160
+ languageCode: string;
161
+ value: string;
162
+ pluralForms?: PluralFormTranslation[];
163
+ status: TranslationStatus;
164
+ notes?: string;
165
+ reviewedBy?: string;
166
+ reviewedAt?: string;
167
+ publishedBy?: string;
168
+ publishedAt?: string;
169
+ metadata?: Record<string, unknown>;
170
+ createdBy: string;
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ }
174
+ /**
175
+ * Plural form translation
176
+ */
177
+ export interface PluralFormTranslation {
178
+ form: PluralForm;
179
+ value: string;
180
+ }
181
+ /**
182
+ * Translation status
183
+ */
184
+ export type TranslationStatus = "draft" | "pending_review" | "approved" | "published";
185
+ /**
186
+ * Translation version (for history)
187
+ */
188
+ export interface TranslationVersion {
189
+ id: string;
190
+ translationId: string;
191
+ version: number;
192
+ value: string;
193
+ pluralForms?: PluralFormTranslation[];
194
+ status: TranslationStatus;
195
+ changeReason?: string;
196
+ changedBy: string;
197
+ changedAt: string;
198
+ metadata?: Record<string, unknown>;
199
+ }
200
+ /**
201
+ * Translation coverage stats
202
+ */
203
+ export interface TranslationCoverage {
204
+ languageCode: string;
205
+ totalKeys: number;
206
+ translatedKeys: number;
207
+ draftKeys: number;
208
+ pendingReviewKeys: number;
209
+ approvedKeys: number;
210
+ publishedKeys: number;
211
+ coveragePercentage: number;
212
+ missingKeys?: TranslationKey[];
213
+ }
214
+ /**
215
+ * Import job
216
+ */
217
+ export interface ImportJob {
218
+ id: string;
219
+ tenantId: string;
220
+ format: ImportFormat;
221
+ status: ImportJobStatus;
222
+ totalOperations: number;
223
+ successfulOperations: number;
224
+ failedOperations: number;
225
+ errors?: ImportError[];
226
+ metadata?: Record<string, unknown>;
227
+ createdBy: string;
228
+ createdAt: string;
229
+ completedAt?: string;
230
+ }
231
+ /**
232
+ * Import format
233
+ */
234
+ export type ImportFormat = "json" | "csv" | "xlsx" | "po" | "xliff";
235
+ /**
236
+ * Import job status
237
+ */
238
+ export type ImportJobStatus = "pending" | "processing" | "completed" | "failed";
239
+ /**
240
+ * Import error
241
+ */
242
+ export interface ImportError {
243
+ row?: number;
244
+ key?: string;
245
+ field?: string;
246
+ message: string;
247
+ severity: "error" | "warning";
248
+ }
249
+ /**
250
+ * Export request
251
+ */
252
+ export interface ExportRequest {
253
+ productId?: string;
254
+ moduleId?: string;
255
+ namespaceId?: string;
256
+ languageCode?: string;
257
+ format: ImportFormat;
258
+ includeMetadata?: boolean;
259
+ }
260
+ /**
261
+ * Export result
262
+ */
263
+ export interface ExportResult {
264
+ downloadUrl: string;
265
+ format: ImportFormat;
266
+ expiresAt: string;
267
+ }
268
+ /**
269
+ * Translation suggestion
270
+ */
271
+ export interface TranslationSuggestion {
272
+ key: string;
273
+ value: string;
274
+ similarity: number;
275
+ context?: string;
276
+ source: "translation_memory" | "similar_key" | "glossary";
277
+ }
278
+ /**
279
+ * Filter for languages
280
+ */
281
+ export interface LanguageFilter {
282
+ search?: string;
283
+ status?: "all" | "active" | "inactive";
284
+ direction?: "all" | "ltr" | "rtl";
285
+ }
286
+ /**
287
+ * Filter for translations
288
+ */
289
+ export interface TranslationFilter {
290
+ search?: string;
291
+ status?: "all" | TranslationStatus;
292
+ languageCode?: string | null;
293
+ productId?: string | null;
294
+ moduleId?: string | null;
295
+ namespaceId?: string | null;
296
+ hasMissingTranslations?: boolean;
297
+ }
298
+ /**
299
+ * Progress view configuration
300
+ */
301
+ export interface ProgressViewConfig {
302
+ groupBy: "language" | "product" | "module";
303
+ showPercentages: boolean;
304
+ chartType: "bar" | "pie" | "heatmap";
305
+ }
306
+ /**
307
+ * Import state
308
+ */
309
+ export interface ImportState {
310
+ format: ImportFormat;
311
+ jobId: string | null;
312
+ progress: number;
313
+ errors: ImportError[];
314
+ }
315
+ /**
316
+ * Editor mode
317
+ */
318
+ export type EditorMode = "simple" | "advanced";
319
+ /**
320
+ * View mode for displaying translations
321
+ */
322
+ export type ViewMode = "list" | "tree" | "table";
323
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/i18n/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACX,MAAM,uCAAuC,CAAC;AAE/C,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,sBAAsB;IAC3D;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAC;IAEhD;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;IAE1D;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;;OAGG;IACH,mBA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AC"}
@@ -0,0 +1,3 @@
1
+ export type TranslationParams = Record<string, string | number>;
2
+ export declare function interpolateFallback(fallback: string, params?: TranslationParams): string;
3
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../src/i18n/utils/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEhE,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CASR"}
@@ -0,0 +1,9 @@
1
+ //#region src/i18n/utils/i18n.ts
2
+ function e(e, t) {
3
+ return t ? e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
4
+ let r = t[n];
5
+ return r === void 0 ? `{{${n}}}` : String(r);
6
+ }) : e;
7
+ }
8
+ //#endregion
9
+ export { e as interpolateFallback };
package/dist/i18n.js ADDED
@@ -0,0 +1,4 @@
1
+ import { useI18n as e } from "./i18n/providers/I18nProvider.js";
2
+ import { useI18nStore as t } from "./i18n/store/i18nStore.js";
3
+ import { I18nRoot as n } from "./i18n/I18nRoot.js";
4
+ export { n as I18nRoot, e as useI18n, t as useI18nStore };
@@ -0,0 +1 @@
1
+ export * from './i18n/index'
@@ -0,0 +1,16 @@
1
+ import { mergeClasses as e } from "./shared/src/utils.js";
2
+ import { defaultAttributes as t } from "./defaultAttributes.js";
3
+ import { createElement as n, forwardRef as r } from "react";
4
+ //#region node_modules/lucide-react/dist/esm/Icon.js
5
+ var i = r(({ color: r = "currentColor", size: i = 24, strokeWidth: a = 2, absoluteStrokeWidth: o, className: s = "", children: c, iconNode: l, ...u }, d) => n("svg", {
6
+ ref: d,
7
+ ...t,
8
+ width: i,
9
+ height: i,
10
+ stroke: r,
11
+ strokeWidth: o ? Number(a) * 24 / Number(i) : a,
12
+ className: e("lucide", s),
13
+ ...u
14
+ }, [...l.map(([e, t]) => n(e, t)), ...Array.isArray(c) ? c : [c]]));
15
+ //#endregion
16
+ export { i as Icon };
@@ -0,0 +1,15 @@
1
+ import { mergeClasses as e, toKebabCase as t } from "./shared/src/utils.js";
2
+ import { Icon as n } from "./Icon.js";
3
+ import { createElement as r, forwardRef as i } from "react";
4
+ //#region node_modules/lucide-react/dist/esm/createLucideIcon.js
5
+ var a = (a, o) => {
6
+ let s = i(({ className: i, ...s }, c) => r(n, {
7
+ ref: c,
8
+ iconNode: o,
9
+ className: e(`lucide-${t(a)}`, i),
10
+ ...s
11
+ }));
12
+ return s.displayName = `${a}`, s;
13
+ };
14
+ //#endregion
15
+ export { a as createLucideIcon };
@@ -0,0 +1,14 @@
1
+ //#region node_modules/lucide-react/dist/esm/defaultAttributes.js
2
+ var e = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: 24,
5
+ height: 24,
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ stroke: "currentColor",
9
+ strokeWidth: 2,
10
+ strokeLinecap: "round",
11
+ strokeLinejoin: "round"
12
+ };
13
+ //#endregion
14
+ export { e as defaultAttributes };
@@ -0,0 +1,8 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/chevron-down.js
3
+ var t = e("ChevronDown", [["path", {
4
+ d: "m6 9 6 6 6-6",
5
+ key: "qrunsl"
6
+ }]]);
7
+ //#endregion
8
+ export { t as ChevronDown };
@@ -0,0 +1,8 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/chevron-right.js
3
+ var t = e("ChevronRight", [["path", {
4
+ d: "m9 18 6-6-6-6",
5
+ key: "mthhwq"
6
+ }]]);
7
+ //#endregion
8
+ export { t as ChevronRight };
@@ -0,0 +1,26 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/circle-alert.js
3
+ var t = e("CircleAlert", [
4
+ ["circle", {
5
+ cx: "12",
6
+ cy: "12",
7
+ r: "10",
8
+ key: "1mglay"
9
+ }],
10
+ ["line", {
11
+ x1: "12",
12
+ x2: "12",
13
+ y1: "8",
14
+ y2: "12",
15
+ key: "1pkeuh"
16
+ }],
17
+ ["line", {
18
+ x1: "12",
19
+ x2: "12.01",
20
+ y1: "16",
21
+ y2: "16",
22
+ key: "4dfq90"
23
+ }]
24
+ ]);
25
+ //#endregion
26
+ export { t as CircleAlert };
@@ -0,0 +1,11 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/circle-check-big.js
3
+ var t = e("CircleCheckBig", [["path", {
4
+ d: "M21.801 10A10 10 0 1 1 17 3.335",
5
+ key: "yps3ct"
6
+ }], ["path", {
7
+ d: "m9 11 3 3L22 4",
8
+ key: "1pflzl"
9
+ }]]);
10
+ //#endregion
11
+ export { t as CircleCheckBig };
@@ -0,0 +1,20 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/circle-x.js
3
+ var t = e("CircleX", [
4
+ ["circle", {
5
+ cx: "12",
6
+ cy: "12",
7
+ r: "10",
8
+ key: "1mglay"
9
+ }],
10
+ ["path", {
11
+ d: "m15 9-6 6",
12
+ key: "1uzhvr"
13
+ }],
14
+ ["path", {
15
+ d: "m9 9 6 6",
16
+ key: "z0biqf"
17
+ }]
18
+ ]);
19
+ //#endregion
20
+ export { t as CircleX };
@@ -0,0 +1,21 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/download.js
3
+ var t = e("Download", [
4
+ ["path", {
5
+ d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
6
+ key: "ih7n3h"
7
+ }],
8
+ ["polyline", {
9
+ points: "7 10 12 15 17 10",
10
+ key: "2ggqvy"
11
+ }],
12
+ ["line", {
13
+ x1: "12",
14
+ x2: "12",
15
+ y1: "15",
16
+ y2: "3",
17
+ key: "1vk2je"
18
+ }]
19
+ ]);
20
+ //#endregion
21
+ export { t as Download };
@@ -0,0 +1,26 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/file-text.js
3
+ var t = e("FileText", [
4
+ ["path", {
5
+ d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
6
+ key: "1rqfz7"
7
+ }],
8
+ ["path", {
9
+ d: "M14 2v4a2 2 0 0 0 2 2h4",
10
+ key: "tnqrlb"
11
+ }],
12
+ ["path", {
13
+ d: "M10 9H8",
14
+ key: "b1mrlr"
15
+ }],
16
+ ["path", {
17
+ d: "M16 13H8",
18
+ key: "t4e002"
19
+ }],
20
+ ["path", {
21
+ d: "M16 17H8",
22
+ key: "z1uh3a"
23
+ }]
24
+ ]);
25
+ //#endregion
26
+ export { t as FileText };
@@ -0,0 +1,20 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/globe.js
3
+ var t = e("Globe", [
4
+ ["circle", {
5
+ cx: "12",
6
+ cy: "12",
7
+ r: "10",
8
+ key: "1mglay"
9
+ }],
10
+ ["path", {
11
+ d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",
12
+ key: "13o1zl"
13
+ }],
14
+ ["path", {
15
+ d: "M2 12h20",
16
+ key: "9i4pu4"
17
+ }]
18
+ ]);
19
+ //#endregion
20
+ export { t as Globe };
@@ -0,0 +1,30 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/languages.js
3
+ var t = e("Languages", [
4
+ ["path", {
5
+ d: "m5 8 6 6",
6
+ key: "1wu5hv"
7
+ }],
8
+ ["path", {
9
+ d: "m4 14 6-6 2-3",
10
+ key: "1k1g8d"
11
+ }],
12
+ ["path", {
13
+ d: "M2 5h12",
14
+ key: "or177f"
15
+ }],
16
+ ["path", {
17
+ d: "M7 2h1",
18
+ key: "1t2jsx"
19
+ }],
20
+ ["path", {
21
+ d: "m22 22-5-10-5 10",
22
+ key: "don7ne"
23
+ }],
24
+ ["path", {
25
+ d: "M14 18h6",
26
+ key: "1m8k6r"
27
+ }]
28
+ ]);
29
+ //#endregion
30
+ export { t as Languages };
@@ -0,0 +1,8 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/message-square.js
3
+ var t = e("MessageSquare", [["path", {
4
+ d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",
5
+ key: "1lielz"
6
+ }]]);
7
+ //#endregion
8
+ export { t as MessageSquare };
@@ -0,0 +1,22 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/package.js
3
+ var t = e("Package", [
4
+ ["path", {
5
+ d: "M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",
6
+ key: "1a0edw"
7
+ }],
8
+ ["path", {
9
+ d: "M12 22V12",
10
+ key: "d0xqtd"
11
+ }],
12
+ ["path", {
13
+ d: "m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",
14
+ key: "yx3hmr"
15
+ }],
16
+ ["path", {
17
+ d: "m7.5 4.27 9 5.15",
18
+ key: "1c824w"
19
+ }]
20
+ ]);
21
+ //#endregion
22
+ export { t as Package };
@@ -0,0 +1,11 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/pen-line.js
3
+ var t = e("PenLine", [["path", {
4
+ d: "M12 20h9",
5
+ key: "t2du7b"
6
+ }], ["path", {
7
+ d: "M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",
8
+ key: "1ykcvy"
9
+ }]]);
10
+ //#endregion
11
+ export { t as PenLine };
@@ -0,0 +1,11 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/plus.js
3
+ var t = e("Plus", [["path", {
4
+ d: "M5 12h14",
5
+ key: "1ays0h"
6
+ }], ["path", {
7
+ d: "M12 5v14",
8
+ key: "s699le"
9
+ }]]);
10
+ //#endregion
11
+ export { t as Plus };
@@ -0,0 +1,18 @@
1
+ import { createLucideIcon as e } from "../createLucideIcon.js";
2
+ //#region node_modules/lucide-react/dist/esm/icons/save.js
3
+ var t = e("Save", [
4
+ ["path", {
5
+ d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",
6
+ key: "1c8476"
7
+ }],
8
+ ["path", {
9
+ d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",
10
+ key: "1ydtos"
11
+ }],
12
+ ["path", {
13
+ d: "M7 3v4a1 1 0 0 0 1 1h7",
14
+ key: "t51u73"
15
+ }]
16
+ ]);
17
+ //#endregion
18
+ export { t as Save };