@burdenoff/microfe-i18n 2026.624.1 → 2026.625.2

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, EmphasisPanel as s, GlassCard as c, GradientText as l, NextSteps as u, OptionalFields as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
7
7
  //#region src/i18n/pages/LocaleConfigPage.tsx
8
- var s = () => {
9
- let [s, c] = r({
8
+ var p = () => {
9
+ let [p, m] = r({
10
10
  code: "es-ES",
11
11
  name: "Spanish",
12
12
  nativeName: "Español",
@@ -26,200 +26,249 @@ var s = () => {
26
26
  few: !1,
27
27
  many: !1
28
28
  }
29
- }), l = (e, t) => {
30
- c((n) => ({
29
+ }), h = (e, t) => {
30
+ m((n) => ({
31
31
  ...n,
32
32
  [e]: t
33
33
  }));
34
- }, u = (e, t) => {
35
- c((n) => ({
34
+ }, g = (e, t) => {
35
+ m((n) => ({
36
36
  ...n,
37
37
  pluralRules: {
38
38
  ...n.pluralRules,
39
39
  [e]: t
40
40
  }
41
41
  }));
42
- };
42
+ }, _ = () => {
43
+ console.log("Saving locale config:", p);
44
+ }, v = "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)]", y = "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-subtle 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(l, { 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
+ p.name,
58
66
  " (",
59
- s.nativeName,
67
+ p.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: _,
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 "${p.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-subtle 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-subtle 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-subtle 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-subtle 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-subtle 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-subtle 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__ */ i(f, { children: "This is where you define how a single locale behaves — not its translations, but the rules around them: which code and region it represents, whether text flows left-to-right or right-to-left, how dates, numbers and currency are formatted, which CLDR plural forms apply, and which locales to fall back to when a string is missing. Get these right once and every translation in this language renders correctly for its users." }),
99
+ /* @__PURE__ */ i(u, {
100
+ storageKey: "i18n-locale-config",
101
+ steps: [
102
+ {
103
+ id: "set-default",
104
+ label: "Make this the default locale",
105
+ description: "Used as the fallback whenever a string has no translation in the requested language.",
106
+ done: p.isDefault,
107
+ onClick: () => h("isDefault", !0)
108
+ },
109
+ {
110
+ id: "check-formatting",
111
+ label: "Review date, number & currency formats",
112
+ description: "Confirm the previews match how users in this region expect to read values.",
113
+ onClick: () => document.getElementById("locale-formatting")?.scrollIntoView({
114
+ behavior: "smooth",
115
+ block: "start"
116
+ })
117
+ },
118
+ {
119
+ id: "save-config",
120
+ label: "Save your changes",
121
+ description: "Persist this locale's configuration so translations start rendering with these rules.",
122
+ onClick: _
123
+ }
124
+ ]
125
+ }),
126
+ /* @__PURE__ */ a(s, {
127
+ className: "p-6",
128
+ children: [
129
+ /* @__PURE__ */ i("h2", {
130
+ className: "mb-4 text-lg font-semibold text-text-primary",
131
+ children: "Basic Information"
132
+ }),
133
+ /* @__PURE__ */ a("div", {
134
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
135
+ children: [
136
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
137
+ htmlFor: "locale-language-code",
138
+ className: "mb-2 block text-sm font-medium text-text-primary",
139
+ children: "Language Code"
140
+ }), /* @__PURE__ */ i("input", {
141
+ id: "locale-language-code",
142
+ type: "text",
143
+ "aria-label": "Language Code",
144
+ value: p.code,
145
+ onChange: (e) => h("code", e.target.value),
146
+ className: v
147
+ })] }),
148
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
149
+ htmlFor: "locale-name",
150
+ className: "mb-2 block text-sm font-medium text-text-primary",
151
+ children: "Name"
152
+ }), /* @__PURE__ */ i("input", {
153
+ id: "locale-name",
154
+ type: "text",
155
+ "aria-label": "Name",
156
+ value: p.name,
157
+ onChange: (e) => h("name", e.target.value),
158
+ className: v
159
+ })] }),
160
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
161
+ htmlFor: "locale-native-name",
162
+ className: "mb-2 block text-sm font-medium text-text-primary",
163
+ children: "Native Name"
164
+ }), /* @__PURE__ */ i("input", {
165
+ id: "locale-native-name",
166
+ type: "text",
167
+ "aria-label": "Native Name",
168
+ value: p.nativeName,
169
+ onChange: (e) => h("nativeName", e.target.value),
170
+ className: v
171
+ })] }),
172
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
173
+ htmlFor: "locale-region",
174
+ className: "mb-2 block text-sm font-medium text-text-primary",
175
+ children: "Region"
176
+ }), /* @__PURE__ */ i("input", {
177
+ id: "locale-region",
178
+ type: "text",
179
+ "aria-label": "Region",
180
+ value: p.region,
181
+ onChange: (e) => h("region", e.target.value),
182
+ className: v
183
+ })] })
184
+ ]
185
+ }),
186
+ /* @__PURE__ */ a("div", {
187
+ className: "mt-4 flex items-center gap-2",
188
+ children: [/* @__PURE__ */ i("input", {
189
+ type: "checkbox",
190
+ id: "is-default",
191
+ "aria-label": "Set as default language",
192
+ checked: p.isDefault,
193
+ onChange: (e) => h("isDefault", e.target.checked),
194
+ className: y
195
+ }), /* @__PURE__ */ i("label", {
196
+ htmlFor: "is-default",
197
+ className: "text-sm text-text-primary",
198
+ children: "Set as default language"
199
+ })]
200
+ })
201
+ ]
202
+ }),
203
+ /* @__PURE__ */ a(c, {
204
+ treatment: "plain",
205
+ className: "border-border-seam p-6",
206
+ children: [/* @__PURE__ */ i("h2", {
207
+ className: "mb-4 text-lg font-semibold text-text-primary",
208
+ children: "Text Direction & Layout"
178
209
  }), /* @__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-subtle 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)"
210
+ className: "flex items-center gap-6",
211
+ children: [/* @__PURE__ */ a("div", {
212
+ className: "flex items-center gap-2",
213
+ children: [/* @__PURE__ */ i("input", {
214
+ type: "radio",
215
+ id: "ltr",
216
+ name: "direction",
217
+ "aria-label": "LTR (Left to Right)",
218
+ checked: p.direction === "ltr",
219
+ onChange: () => h("direction", "ltr"),
220
+ className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
221
+ }), /* @__PURE__ */ i("label", {
222
+ htmlFor: "ltr",
223
+ className: "text-sm text-text-primary",
224
+ children: "LTR (Left to Right)"
225
+ })]
226
+ }), /* @__PURE__ */ a("div", {
227
+ className: "flex items-center gap-2",
228
+ children: [/* @__PURE__ */ i("input", {
229
+ type: "radio",
230
+ id: "rtl",
231
+ name: "direction",
232
+ "aria-label": "RTL (Right to Left)",
233
+ checked: p.direction === "rtl",
234
+ onChange: () => h("direction", "rtl"),
235
+ className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
236
+ }), /* @__PURE__ */ i("label", {
237
+ htmlFor: "rtl",
238
+ className: "text-sm text-text-primary",
239
+ children: "RTL (Right to Left)"
240
+ })]
192
241
  })]
193
242
  })]
194
- })] }),
195
- /* @__PURE__ */ a(o, {
243
+ }),
244
+ /* @__PURE__ */ a(d, {
196
245
  title: "Advanced settings",
197
246
  description: "ICU plural-form overrides and fallback locale rules.",
198
247
  children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
199
- className: "mb-4 text-lg font-semibold text-content-primary",
248
+ className: "mb-4 text-lg font-semibold text-text-primary",
200
249
  children: "Fallback Chain"
201
250
  }), /* @__PURE__ */ a("div", {
202
251
  className: "space-y-2",
203
252
  children: [
204
253
  /* @__PURE__ */ i("div", {
205
- className: "rounded-lg border border-border-subtle bg-surface-elevated p-3",
254
+ className: "rounded-lg border border-border-seam bg-bg-elevated p-3",
206
255
  children: /* @__PURE__ */ a("div", {
207
256
  className: "flex items-center justify-between",
208
257
  children: [/* @__PURE__ */ i("span", {
209
- className: "text-sm text-content-primary",
258
+ className: "text-sm text-text-primary",
210
259
  children: "1. Spanish (es-ES)"
211
260
  }), /* @__PURE__ */ i("span", {
212
- className: "text-xs text-content-tertiary",
261
+ className: "text-xs text-text-tertiary",
213
262
  children: "Current"
214
263
  })]
215
264
  })
216
265
  }),
217
- s.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
218
- className: "rounded-lg border border-border-subtle bg-surface p-3",
266
+ p.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
267
+ className: "rounded-lg border border-border-seam bg-bg-surface p-3",
219
268
  children: /* @__PURE__ */ a("div", {
220
269
  className: "flex items-center justify-between",
221
270
  children: [/* @__PURE__ */ a("span", {
222
- className: "text-sm text-content-primary",
271
+ className: "text-sm text-text-primary",
223
272
  children: [
224
273
  t + 2,
225
274
  ".",
@@ -228,130 +277,135 @@ var s = () => {
228
277
  ]
229
278
  }), /* @__PURE__ */ i("button", {
230
279
  type: "button",
231
- className: "text-xs text-error hover:underline",
280
+ 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
281
  children: "Remove"
233
282
  })]
234
283
  })
235
284
  }, e)),
236
285
  /* @__PURE__ */ i("button", {
237
286
  type: "button",
238
- className: "w-full rounded-lg border-2 border-dashed border-border-subtle bg-surface p-3 text-sm text-content-secondary transition-colors hover:border-accent-primary hover:text-accent-primary",
287
+ 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
288
  children: "+ Add Fallback Language"
240
289
  })
241
290
  ]
242
291
  })] }), /* @__PURE__ */ a("div", {
243
292
  className: "mt-6",
244
293
  children: [/* @__PURE__ */ i("h2", {
245
- className: "mb-4 text-lg font-semibold text-content-primary",
294
+ className: "mb-4 text-lg font-semibold text-text-primary",
246
295
  children: "Plural Rules (CLDR-based)"
247
296
  }), /* @__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-subtle bg-surface-elevated p-3",
297
+ className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
298
+ children: Object.entries(p.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
299
+ className: "flex items-center gap-2 rounded-lg border border-border-seam bg-bg-elevated p-3",
251
300
  children: [/* @__PURE__ */ i("input", {
252
301
  type: "checkbox",
253
302
  id: `plural-${e}`,
254
303
  "aria-label": `Plural form: ${e}`,
255
304
  checked: t,
256
- onChange: (t) => u(e, t.target.checked),
257
- className: "size-4 rounded border-border-subtle text-accent-primary focus:ring-accent-primary"
305
+ onChange: (t) => g(e, t.target.checked),
306
+ className: y
258
307
  }), /* @__PURE__ */ i("label", {
259
308
  htmlFor: `plural-${e}`,
260
- className: "text-sm text-content-primary",
309
+ className: "text-sm text-text-primary",
261
310
  children: e
262
311
  })]
263
312
  }, e))
264
313
  })]
265
314
  })]
266
315
  }),
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-subtle 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-subtle 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-subtle 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-subtle 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
- })] })
316
+ /* @__PURE__ */ a(c, {
317
+ id: "locale-formatting",
318
+ treatment: "plain",
319
+ className: "scroll-mt-6 border-border-seam p-6",
320
+ children: [/* @__PURE__ */ i("h2", {
321
+ className: "mb-4 text-lg font-semibold text-text-primary",
322
+ children: "Formatting"
323
+ }), /* @__PURE__ */ a("div", {
324
+ className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
325
+ children: [
326
+ /* @__PURE__ */ a("div", { children: [
327
+ /* @__PURE__ */ i("label", {
328
+ htmlFor: "locale-date-format",
329
+ className: "mb-2 block text-sm font-medium text-text-primary",
330
+ children: "Date Format"
331
+ }),
332
+ /* @__PURE__ */ i("input", {
333
+ id: "locale-date-format",
334
+ type: "text",
335
+ "aria-label": "Date Format",
336
+ value: p.dateFormat,
337
+ onChange: (e) => h("dateFormat", e.target.value),
338
+ className: v
339
+ }),
340
+ /* @__PURE__ */ i("p", {
341
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
342
+ children: "Preview: 25/12/2025"
343
+ })
344
+ ] }),
345
+ /* @__PURE__ */ a("div", { children: [
346
+ /* @__PURE__ */ i("label", {
347
+ htmlFor: "locale-time-format",
348
+ className: "mb-2 block text-sm font-medium text-text-primary",
349
+ children: "Time Format"
350
+ }),
351
+ /* @__PURE__ */ i("input", {
352
+ id: "locale-time-format",
353
+ type: "text",
354
+ "aria-label": "Time Format",
355
+ value: p.timeFormat,
356
+ onChange: (e) => h("timeFormat", e.target.value),
357
+ className: v
358
+ }),
359
+ /* @__PURE__ */ i("p", {
360
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
361
+ children: "Preview: 14:30"
362
+ })
363
+ ] }),
364
+ /* @__PURE__ */ a("div", { children: [
365
+ /* @__PURE__ */ i("label", {
366
+ htmlFor: "locale-number-format",
367
+ className: "mb-2 block text-sm font-medium text-text-primary",
368
+ children: "Number Format"
369
+ }),
370
+ /* @__PURE__ */ i("input", {
371
+ id: "locale-number-format",
372
+ type: "text",
373
+ "aria-label": "Number Format",
374
+ value: p.numberFormat,
375
+ onChange: (e) => h("numberFormat", e.target.value),
376
+ className: v
377
+ }),
378
+ /* @__PURE__ */ i("p", {
379
+ className: "mt-1 text-xs text-text-tertiary tabular-nums",
380
+ children: "Preview: 1.234,56"
381
+ })
382
+ ] }),
383
+ /* @__PURE__ */ a("div", { children: [
384
+ /* @__PURE__ */ i("label", {
385
+ htmlFor: "locale-currency-code",
386
+ className: "mb-2 block text-sm font-medium text-text-primary",
387
+ children: "Currency Code"
388
+ }),
389
+ /* @__PURE__ */ i("input", {
390
+ id: "locale-currency-code",
391
+ type: "text",
392
+ "aria-label": "Currency Code",
393
+ value: p.currencyCode,
394
+ onChange: (e) => h("currencyCode", e.target.value),
395
+ className: v
396
+ }),
397
+ /* @__PURE__ */ i("p", {
398
+ className: "mt-1 text-xs text-text-tertiary",
399
+ children: "Symbol: €"
400
+ })
401
+ ] })
402
+ ]
403
+ })]
404
+ })
351
405
  ]
352
406
  })
353
407
  })]
354
408
  });
355
409
  };
356
410
  //#endregion
357
- export { s as LocaleConfigPage };
411
+ export { p as LocaleConfigPage };