@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.
@@ -3,10 +3,10 @@ import { Settings as t } from "../../node_modules/lucide-react/dist/esm/icons/se
3
3
  import { Trash2 as n } from "../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
4
4
  import { useState as r } from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import { OptionalFields as o } from "@burdenoff/fe-libs/ui";
6
+ import { CTAOverflowMenu as o, GlassCard as s, GradientText as c, OptionalFields as l } from "@burdenoff/fe-libs/ui";
7
7
  //#region src/i18n/pages/LocaleConfigPage.tsx
8
- var s = () => {
9
- let [s, c] = r({
8
+ var u = () => {
9
+ let [u, d] = r({
10
10
  code: "es-ES",
11
11
  name: "Spanish",
12
12
  nativeName: "Español",
@@ -26,200 +26,222 @@ var s = () => {
26
26
  few: !1,
27
27
  many: !1
28
28
  }
29
- }), l = (e, t) => {
30
- c((n) => ({
29
+ }), f = (e, t) => {
30
+ d((n) => ({
31
31
  ...n,
32
32
  [e]: t
33
33
  }));
34
- }, u = (e, t) => {
35
- c((n) => ({
34
+ }, p = (e, t) => {
35
+ d((n) => ({
36
36
  ...n,
37
37
  pluralRules: {
38
38
  ...n.pluralRules,
39
39
  [e]: t
40
40
  }
41
41
  }));
42
- };
42
+ }, m = () => {
43
+ console.log("Saving locale config:", u);
44
+ }, h = "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)]", g = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]";
43
45
  return /* @__PURE__ */ a("div", {
44
- className: "flex h-full flex-col",
46
+ className: "flex h-full flex-col bg-bg-surface",
45
47
  children: [/* @__PURE__ */ i("div", {
46
- className: "border-b border-border bg-surface-elevated p-6",
48
+ className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
47
49
  children: /* @__PURE__ */ a("div", {
48
- className: "flex items-center justify-between",
50
+ className: "mx-auto flex max-w-3xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
49
51
  children: [/* @__PURE__ */ a("div", {
50
- className: "flex items-center gap-3",
51
- children: [/* @__PURE__ */ i(t, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h1", {
52
- className: "text-2xl font-semibold text-content-primary",
53
- children: "Locale Configuration"
52
+ className: "flex items-center gap-4",
53
+ children: [/* @__PURE__ */ i("div", {
54
+ className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
55
+ children: /* @__PURE__ */ i(t, {
56
+ className: "size-5",
57
+ "aria-hidden": "true"
58
+ })
59
+ }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ a("h1", {
60
+ className: "text-2xl font-bold tracking-tight text-text-primary",
61
+ children: ["Locale ", /* @__PURE__ */ i(c, { children: "Configuration" })]
54
62
  }), /* @__PURE__ */ a("p", {
55
- className: "mt-1 text-sm text-content-secondary",
63
+ className: "mt-1 text-sm text-text-secondary",
56
64
  children: [
57
- s.name,
65
+ u.name,
58
66
  " (",
59
- s.nativeName,
67
+ u.nativeName,
60
68
  ")"
61
69
  ]
62
70
  })] })]
63
- }), /* @__PURE__ */ a("div", {
64
- className: "flex items-center gap-2",
65
- children: [/* @__PURE__ */ a("button", {
66
- type: "button",
67
- 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",
68
- children: [/* @__PURE__ */ i(n, { className: "size-4" }), "Delete Language"]
69
- }), /* @__PURE__ */ a("button", {
70
- type: "button",
71
- onClick: () => {
72
- console.log("Saving locale config:", s);
71
+ }), /* @__PURE__ */ i(o, {
72
+ primary: {
73
+ label: "Save Changes",
74
+ onSelect: m,
75
+ icon: /* @__PURE__ */ i(e, {
76
+ className: "size-4",
77
+ "aria-hidden": "true"
78
+ })
79
+ },
80
+ actions: [{
81
+ label: "Delete Language",
82
+ onSelect: () => {
83
+ window.confirm(`Delete language "${u.name}"? This cannot be undone.`);
73
84
  },
74
- 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",
75
- children: [/* @__PURE__ */ i(e, { className: "size-4" }), "Save Changes"]
76
- })]
85
+ intent: "destructive",
86
+ icon: /* @__PURE__ */ i(n, {
87
+ className: "size-4",
88
+ "aria-hidden": "true"
89
+ })
90
+ }]
77
91
  })]
78
92
  })
79
93
  }), /* @__PURE__ */ i("div", {
80
- className: "flex-1 overflow-auto p-6",
94
+ className: "flex-1 overflow-auto px-6 py-8 sm:px-8 lg:px-10",
81
95
  children: /* @__PURE__ */ a("div", {
82
- className: "mx-auto max-w-3xl space-y-8",
96
+ className: "mx-auto max-w-3xl space-y-6",
83
97
  children: [
84
- /* @__PURE__ */ a("div", { children: [
85
- /* @__PURE__ */ i("h2", {
86
- className: "mb-4 text-lg font-semibold text-content-primary",
87
- children: "Basic Information"
88
- }),
89
- /* @__PURE__ */ a("div", {
90
- className: "grid grid-cols-2 gap-4",
91
- children: [
92
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
93
- htmlFor: "locale-language-code",
94
- className: "mb-2 block text-sm font-medium text-content-primary",
95
- children: "Language Code"
96
- }), /* @__PURE__ */ i("input", {
97
- id: "locale-language-code",
98
- type: "text",
99
- "aria-label": "Language Code",
100
- value: s.code,
101
- onChange: (e) => l("code", e.target.value),
102
- 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"
103
- })] }),
104
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
105
- htmlFor: "locale-name",
106
- className: "mb-2 block text-sm font-medium text-content-primary",
107
- children: "Name"
108
- }), /* @__PURE__ */ i("input", {
109
- id: "locale-name",
110
- type: "text",
111
- "aria-label": "Name",
112
- value: s.name,
113
- onChange: (e) => l("name", 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
- htmlFor: "locale-native-name",
118
- className: "mb-2 block text-sm font-medium text-content-primary",
119
- children: "Native Name"
120
- }), /* @__PURE__ */ i("input", {
121
- id: "locale-native-name",
122
- type: "text",
123
- "aria-label": "Native Name",
124
- value: s.nativeName,
125
- onChange: (e) => l("nativeName", e.target.value),
126
- 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"
127
- })] }),
128
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
129
- htmlFor: "locale-region",
130
- className: "mb-2 block text-sm font-medium text-content-primary",
131
- children: "Region"
132
- }), /* @__PURE__ */ i("input", {
133
- id: "locale-region",
134
- type: "text",
135
- "aria-label": "Region",
136
- value: s.region,
137
- onChange: (e) => l("region", e.target.value),
138
- 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"
139
- })] })
140
- ]
141
- }),
142
- /* @__PURE__ */ a("div", {
143
- className: "mt-4 flex items-center gap-2",
144
- children: [/* @__PURE__ */ i("input", {
145
- type: "checkbox",
146
- id: "is-default",
147
- "aria-label": "Set as default language",
148
- checked: s.isDefault,
149
- onChange: (e) => l("isDefault", e.target.checked),
150
- className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
151
- }), /* @__PURE__ */ i("label", {
152
- htmlFor: "is-default",
153
- className: "text-sm text-content-primary",
154
- children: "Set as default language"
155
- })]
156
- })
157
- ] }),
158
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
159
- className: "mb-4 text-lg font-semibold text-content-primary",
160
- children: "Text Direction & Layout"
161
- }), /* @__PURE__ */ a("div", {
162
- className: "flex items-center gap-6",
163
- children: [/* @__PURE__ */ a("div", {
164
- className: "flex items-center gap-2",
165
- children: [/* @__PURE__ */ i("input", {
166
- type: "radio",
167
- id: "ltr",
168
- name: "direction",
169
- "aria-label": "LTR (Left to Right)",
170
- checked: s.direction === "ltr",
171
- onChange: () => l("direction", "ltr"),
172
- className: "size-4 border-border text-accent-primary focus:ring-accent-primary"
173
- }), /* @__PURE__ */ i("label", {
174
- htmlFor: "ltr",
175
- className: "text-sm text-content-primary",
176
- children: "LTR (Left to Right)"
177
- })]
98
+ /* @__PURE__ */ a(s, {
99
+ treatment: "plain",
100
+ className: "border-border-seam p-6",
101
+ children: [
102
+ /* @__PURE__ */ i("h2", {
103
+ className: "mb-4 text-lg font-semibold text-text-primary",
104
+ children: "Basic Information"
105
+ }),
106
+ /* @__PURE__ */ a("div", {
107
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
108
+ children: [
109
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
110
+ htmlFor: "locale-language-code",
111
+ className: "mb-2 block text-sm font-medium text-text-primary",
112
+ children: "Language Code"
113
+ }), /* @__PURE__ */ i("input", {
114
+ id: "locale-language-code",
115
+ type: "text",
116
+ "aria-label": "Language Code",
117
+ value: u.code,
118
+ onChange: (e) => f("code", e.target.value),
119
+ className: h
120
+ })] }),
121
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
122
+ htmlFor: "locale-name",
123
+ className: "mb-2 block text-sm font-medium text-text-primary",
124
+ children: "Name"
125
+ }), /* @__PURE__ */ i("input", {
126
+ id: "locale-name",
127
+ type: "text",
128
+ "aria-label": "Name",
129
+ value: u.name,
130
+ onChange: (e) => f("name", e.target.value),
131
+ className: h
132
+ })] }),
133
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
134
+ htmlFor: "locale-native-name",
135
+ className: "mb-2 block text-sm font-medium text-text-primary",
136
+ children: "Native Name"
137
+ }), /* @__PURE__ */ i("input", {
138
+ id: "locale-native-name",
139
+ type: "text",
140
+ "aria-label": "Native Name",
141
+ value: u.nativeName,
142
+ onChange: (e) => f("nativeName", e.target.value),
143
+ className: h
144
+ })] }),
145
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
146
+ htmlFor: "locale-region",
147
+ className: "mb-2 block text-sm font-medium text-text-primary",
148
+ children: "Region"
149
+ }), /* @__PURE__ */ i("input", {
150
+ id: "locale-region",
151
+ type: "text",
152
+ "aria-label": "Region",
153
+ value: u.region,
154
+ onChange: (e) => f("region", e.target.value),
155
+ className: h
156
+ })] })
157
+ ]
158
+ }),
159
+ /* @__PURE__ */ a("div", {
160
+ className: "mt-4 flex items-center gap-2",
161
+ children: [/* @__PURE__ */ i("input", {
162
+ type: "checkbox",
163
+ id: "is-default",
164
+ "aria-label": "Set as default language",
165
+ checked: u.isDefault,
166
+ onChange: (e) => f("isDefault", e.target.checked),
167
+ className: g
168
+ }), /* @__PURE__ */ i("label", {
169
+ htmlFor: "is-default",
170
+ className: "text-sm text-text-primary",
171
+ children: "Set as default language"
172
+ })]
173
+ })
174
+ ]
175
+ }),
176
+ /* @__PURE__ */ a(s, {
177
+ treatment: "plain",
178
+ className: "border-border-seam p-6",
179
+ children: [/* @__PURE__ */ i("h2", {
180
+ className: "mb-4 text-lg font-semibold text-text-primary",
181
+ children: "Text Direction & Layout"
178
182
  }), /* @__PURE__ */ a("div", {
179
- className: "flex items-center gap-2",
180
- children: [/* @__PURE__ */ i("input", {
181
- type: "radio",
182
- id: "rtl",
183
- name: "direction",
184
- "aria-label": "RTL (Right to Left)",
185
- checked: s.direction === "rtl",
186
- onChange: () => l("direction", "rtl"),
187
- className: "size-4 border-border text-accent-primary focus:ring-accent-primary"
188
- }), /* @__PURE__ */ i("label", {
189
- htmlFor: "rtl",
190
- className: "text-sm text-content-primary",
191
- children: "RTL (Right to Left)"
183
+ className: "flex items-center gap-6",
184
+ children: [/* @__PURE__ */ a("div", {
185
+ className: "flex items-center gap-2",
186
+ children: [/* @__PURE__ */ i("input", {
187
+ type: "radio",
188
+ id: "ltr",
189
+ name: "direction",
190
+ "aria-label": "LTR (Left to Right)",
191
+ checked: u.direction === "ltr",
192
+ onChange: () => f("direction", "ltr"),
193
+ className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
194
+ }), /* @__PURE__ */ i("label", {
195
+ htmlFor: "ltr",
196
+ className: "text-sm text-text-primary",
197
+ children: "LTR (Left to Right)"
198
+ })]
199
+ }), /* @__PURE__ */ a("div", {
200
+ className: "flex items-center gap-2",
201
+ children: [/* @__PURE__ */ i("input", {
202
+ type: "radio",
203
+ id: "rtl",
204
+ name: "direction",
205
+ "aria-label": "RTL (Right to Left)",
206
+ checked: u.direction === "rtl",
207
+ onChange: () => f("direction", "rtl"),
208
+ className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
209
+ }), /* @__PURE__ */ i("label", {
210
+ htmlFor: "rtl",
211
+ className: "text-sm text-text-primary",
212
+ children: "RTL (Right to Left)"
213
+ })]
192
214
  })]
193
215
  })]
194
- })] }),
195
- /* @__PURE__ */ a(o, {
216
+ }),
217
+ /* @__PURE__ */ a(l, {
196
218
  title: "Advanced settings",
197
219
  description: "ICU plural-form overrides and fallback locale rules.",
198
220
  children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
199
- className: "mb-4 text-lg font-semibold text-content-primary",
221
+ className: "mb-4 text-lg font-semibold text-text-primary",
200
222
  children: "Fallback Chain"
201
223
  }), /* @__PURE__ */ a("div", {
202
224
  className: "space-y-2",
203
225
  children: [
204
226
  /* @__PURE__ */ i("div", {
205
- className: "rounded-lg border border-border bg-surface-elevated p-3",
227
+ className: "rounded-lg border border-border-seam bg-bg-elevated p-3",
206
228
  children: /* @__PURE__ */ a("div", {
207
229
  className: "flex items-center justify-between",
208
230
  children: [/* @__PURE__ */ i("span", {
209
- className: "text-sm text-content-primary",
231
+ className: "text-sm text-text-primary",
210
232
  children: "1. Spanish (es-ES)"
211
233
  }), /* @__PURE__ */ i("span", {
212
- className: "text-xs text-content-tertiary",
234
+ className: "text-xs text-text-tertiary",
213
235
  children: "Current"
214
236
  })]
215
237
  })
216
238
  }),
217
- s.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
218
- className: "rounded-lg border border-border bg-surface p-3",
239
+ u.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
240
+ className: "rounded-lg border border-border-seam bg-bg-surface p-3",
219
241
  children: /* @__PURE__ */ a("div", {
220
242
  className: "flex items-center justify-between",
221
243
  children: [/* @__PURE__ */ a("span", {
222
- className: "text-sm text-content-primary",
244
+ className: "text-sm text-text-primary",
223
245
  children: [
224
246
  t + 2,
225
247
  ".",
@@ -228,130 +250,134 @@ var s = () => {
228
250
  ]
229
251
  }), /* @__PURE__ */ i("button", {
230
252
  type: "button",
231
- className: "text-xs text-error hover:underline",
253
+ className: "rounded text-xs text-status-danger-text hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
232
254
  children: "Remove"
233
255
  })]
234
256
  })
235
257
  }, e)),
236
258
  /* @__PURE__ */ i("button", {
237
259
  type: "button",
238
- 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",
260
+ className: "w-full rounded-lg border-2 border-dashed border-border-seam bg-bg-surface p-3 text-sm text-text-secondary transition-colors hover:border-action-primary-bg hover:text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
239
261
  children: "+ Add Fallback Language"
240
262
  })
241
263
  ]
242
264
  })] }), /* @__PURE__ */ a("div", {
243
265
  className: "mt-6",
244
266
  children: [/* @__PURE__ */ i("h2", {
245
- className: "mb-4 text-lg font-semibold text-content-primary",
267
+ className: "mb-4 text-lg font-semibold text-text-primary",
246
268
  children: "Plural Rules (CLDR-based)"
247
269
  }), /* @__PURE__ */ i("div", {
248
- className: "grid grid-cols-3 gap-3",
249
- children: Object.entries(s.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
250
- className: "flex items-center gap-2 rounded-lg border border-border bg-surface-elevated p-3",
270
+ className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
271
+ children: Object.entries(u.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
272
+ className: "flex items-center gap-2 rounded-lg border border-border-seam bg-bg-elevated p-3",
251
273
  children: [/* @__PURE__ */ i("input", {
252
274
  type: "checkbox",
253
275
  id: `plural-${e}`,
254
276
  "aria-label": `Plural form: ${e}`,
255
277
  checked: t,
256
- onChange: (t) => u(e, t.target.checked),
257
- className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
278
+ onChange: (t) => p(e, t.target.checked),
279
+ className: g
258
280
  }), /* @__PURE__ */ i("label", {
259
281
  htmlFor: `plural-${e}`,
260
- className: "text-sm text-content-primary",
282
+ className: "text-sm text-text-primary",
261
283
  children: e
262
284
  })]
263
285
  }, e))
264
286
  })]
265
287
  })]
266
288
  }),
267
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
268
- className: "mb-4 text-lg font-semibold text-content-primary",
269
- children: "Formatting"
270
- }), /* @__PURE__ */ a("div", {
271
- className: "grid grid-cols-2 gap-4",
272
- children: [
273
- /* @__PURE__ */ a("div", { children: [
274
- /* @__PURE__ */ i("label", {
275
- htmlFor: "locale-date-format",
276
- className: "mb-2 block text-sm font-medium text-content-primary",
277
- children: "Date Format"
278
- }),
279
- /* @__PURE__ */ i("input", {
280
- id: "locale-date-format",
281
- type: "text",
282
- "aria-label": "Date Format",
283
- value: s.dateFormat,
284
- onChange: (e) => l("dateFormat", e.target.value),
285
- 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"
286
- }),
287
- /* @__PURE__ */ i("p", {
288
- className: "mt-1 text-xs text-content-tertiary",
289
- children: "Preview: 25/12/2025"
290
- })
291
- ] }),
292
- /* @__PURE__ */ a("div", { children: [
293
- /* @__PURE__ */ i("label", {
294
- htmlFor: "locale-time-format",
295
- className: "mb-2 block text-sm font-medium text-content-primary",
296
- children: "Time Format"
297
- }),
298
- /* @__PURE__ */ i("input", {
299
- id: "locale-time-format",
300
- type: "text",
301
- "aria-label": "Time Format",
302
- value: s.timeFormat,
303
- onChange: (e) => l("timeFormat", e.target.value),
304
- 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"
305
- }),
306
- /* @__PURE__ */ i("p", {
307
- className: "mt-1 text-xs text-content-tertiary",
308
- children: "Preview: 14:30"
309
- })
310
- ] }),
311
- /* @__PURE__ */ a("div", { children: [
312
- /* @__PURE__ */ i("label", {
313
- htmlFor: "locale-number-format",
314
- className: "mb-2 block text-sm font-medium text-content-primary",
315
- children: "Number Format"
316
- }),
317
- /* @__PURE__ */ i("input", {
318
- id: "locale-number-format",
319
- type: "text",
320
- "aria-label": "Number Format",
321
- value: s.numberFormat,
322
- onChange: (e) => l("numberFormat", e.target.value),
323
- 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"
324
- }),
325
- /* @__PURE__ */ i("p", {
326
- className: "mt-1 text-xs text-content-tertiary",
327
- children: "Preview: 1.234,56"
328
- })
329
- ] }),
330
- /* @__PURE__ */ a("div", { children: [
331
- /* @__PURE__ */ i("label", {
332
- htmlFor: "locale-currency-code",
333
- className: "mb-2 block text-sm font-medium text-content-primary",
334
- children: "Currency Code"
335
- }),
336
- /* @__PURE__ */ i("input", {
337
- id: "locale-currency-code",
338
- type: "text",
339
- "aria-label": "Currency Code",
340
- value: s.currencyCode,
341
- onChange: (e) => l("currencyCode", e.target.value),
342
- 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"
343
- }),
344
- /* @__PURE__ */ i("p", {
345
- className: "mt-1 text-xs text-content-tertiary",
346
- children: "Symbol: €"
347
- })
348
- ] })
349
- ]
350
- })] })
289
+ /* @__PURE__ */ a(s, {
290
+ treatment: "plain",
291
+ className: "border-border-seam p-6",
292
+ children: [/* @__PURE__ */ i("h2", {
293
+ className: "mb-4 text-lg font-semibold text-text-primary",
294
+ children: "Formatting"
295
+ }), /* @__PURE__ */ a("div", {
296
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
297
+ children: [
298
+ /* @__PURE__ */ a("div", { children: [
299
+ /* @__PURE__ */ i("label", {
300
+ htmlFor: "locale-date-format",
301
+ className: "mb-2 block text-sm font-medium text-text-primary",
302
+ children: "Date Format"
303
+ }),
304
+ /* @__PURE__ */ i("input", {
305
+ id: "locale-date-format",
306
+ type: "text",
307
+ "aria-label": "Date Format",
308
+ value: u.dateFormat,
309
+ onChange: (e) => f("dateFormat", e.target.value),
310
+ className: h
311
+ }),
312
+ /* @__PURE__ */ i("p", {
313
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
314
+ children: "Preview: 25/12/2025"
315
+ })
316
+ ] }),
317
+ /* @__PURE__ */ a("div", { children: [
318
+ /* @__PURE__ */ i("label", {
319
+ htmlFor: "locale-time-format",
320
+ className: "mb-2 block text-sm font-medium text-text-primary",
321
+ children: "Time Format"
322
+ }),
323
+ /* @__PURE__ */ i("input", {
324
+ id: "locale-time-format",
325
+ type: "text",
326
+ "aria-label": "Time Format",
327
+ value: u.timeFormat,
328
+ onChange: (e) => f("timeFormat", e.target.value),
329
+ className: h
330
+ }),
331
+ /* @__PURE__ */ i("p", {
332
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
333
+ children: "Preview: 14:30"
334
+ })
335
+ ] }),
336
+ /* @__PURE__ */ a("div", { children: [
337
+ /* @__PURE__ */ i("label", {
338
+ htmlFor: "locale-number-format",
339
+ className: "mb-2 block text-sm font-medium text-text-primary",
340
+ children: "Number Format"
341
+ }),
342
+ /* @__PURE__ */ i("input", {
343
+ id: "locale-number-format",
344
+ type: "text",
345
+ "aria-label": "Number Format",
346
+ value: u.numberFormat,
347
+ onChange: (e) => f("numberFormat", e.target.value),
348
+ className: h
349
+ }),
350
+ /* @__PURE__ */ i("p", {
351
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
352
+ children: "Preview: 1.234,56"
353
+ })
354
+ ] }),
355
+ /* @__PURE__ */ a("div", { children: [
356
+ /* @__PURE__ */ i("label", {
357
+ htmlFor: "locale-currency-code",
358
+ className: "mb-2 block text-sm font-medium text-text-primary",
359
+ children: "Currency Code"
360
+ }),
361
+ /* @__PURE__ */ i("input", {
362
+ id: "locale-currency-code",
363
+ type: "text",
364
+ "aria-label": "Currency Code",
365
+ value: u.currencyCode,
366
+ onChange: (e) => f("currencyCode", e.target.value),
367
+ className: h
368
+ }),
369
+ /* @__PURE__ */ i("p", {
370
+ className: "mt-1 text-xs text-text-tertiary",
371
+ children: "Symbol: €"
372
+ })
373
+ ] })
374
+ ]
375
+ })]
376
+ })
351
377
  ]
352
378
  })
353
379
  })]
354
380
  });
355
381
  };
356
382
  //#endregion
357
- export { s as LocaleConfigPage };
383
+ export { u as LocaleConfigPage };