@alfadocs/ui-kit-debug 0.98.0 → 0.99.0

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 (66) hide show
  1. package/README.md +11 -4
  2. package/dist/_chunks/{address-fields-7k59FnJ6.js → address-fields-pHsfkXGk.js} +2 -2
  3. package/dist/_chunks/{address-fields-7k59FnJ6.js.map → address-fields-pHsfkXGk.js.map} +1 -1
  4. package/dist/_chunks/{booking-BSpSMmJ2.js → booking-DSOK-bnR.js} +3 -3
  5. package/dist/_chunks/{booking-BSpSMmJ2.js.map → booking-DSOK-bnR.js.map} +1 -1
  6. package/dist/_chunks/{country-select-BN9nedAp.js → country-select-UEF9BEeQ.js} +2 -2
  7. package/dist/_chunks/{country-select-BN9nedAp.js.map → country-select-UEF9BEeQ.js.map} +1 -1
  8. package/dist/_chunks/flag-DVBE6DnB.js +576 -0
  9. package/dist/_chunks/flag-DVBE6DnB.js.map +1 -0
  10. package/dist/_chunks/flag-view-udarpAot.js +131 -0
  11. package/dist/_chunks/flag-view-udarpAot.js.map +1 -0
  12. package/dist/_chunks/{header-settings-CLwFqMHI.js → header-settings--pjYOe6g.js} +2 -2
  13. package/dist/_chunks/{header-settings-CLwFqMHI.js.map → header-settings--pjYOe6g.js.map} +1 -1
  14. package/dist/_chunks/{link-cell-renderer-flfZh2qY.js → link-cell-renderer-Bt-mXeQY.js} +2 -2
  15. package/dist/_chunks/{link-cell-renderer-flfZh2qY.js.map → link-cell-renderer-Bt-mXeQY.js.map} +1 -1
  16. package/dist/_chunks/{locale-picker-EyvPrwDc.js → locale-picker-BfBUdT1m.js} +310 -239
  17. package/dist/_chunks/locale-picker-BfBUdT1m.js.map +1 -0
  18. package/dist/_chunks/{marketplace-app-shell-Bv1ZO4XO.js → marketplace-app-shell-pCHBp8bo.js} +2 -2
  19. package/dist/_chunks/{marketplace-app-shell-Bv1ZO4XO.js.map → marketplace-app-shell-pCHBp8bo.js.map} +1 -1
  20. package/dist/_chunks/{multi-select-D5QLBJM1.js → multi-select-CC52Qws6.js} +275 -263
  21. package/dist/_chunks/multi-select-CC52Qws6.js.map +1 -0
  22. package/dist/_chunks/{patient-details-DrhlTrLf.js → patient-details-UmNcxL0c.js} +3 -3
  23. package/dist/_chunks/{patient-details-DrhlTrLf.js.map → patient-details-UmNcxL0c.js.map} +1 -1
  24. package/dist/_chunks/{patient-table-CvZTIM2R.js → patient-table-QEVsFvwq.js} +2 -2
  25. package/dist/_chunks/{patient-table-CvZTIM2R.js.map → patient-table-QEVsFvwq.js.map} +1 -1
  26. package/dist/_chunks/{phone-input-D00ZBAm-.js → phone-input-BsZIoE36.js} +2 -2
  27. package/dist/_chunks/{phone-input-D00ZBAm-.js.map → phone-input-BsZIoE36.js.map} +1 -1
  28. package/dist/_chunks/{public-header.agent-rX_VA6hd.js → public-header.agent-_8W9biCO.js} +4 -2
  29. package/dist/_chunks/public-header.agent-_8W9biCO.js.map +1 -0
  30. package/dist/_chunks/use-theme-CAuo6EYT.js.map +1 -1
  31. package/dist/_chunks/workflow-map-SIfAhmWz.js.map +1 -1
  32. package/dist/agent-catalog.json +291 -1
  33. package/dist/agent-i18n/en.json +23 -0
  34. package/dist/components/address-fields/index.js +1 -1
  35. package/dist/components/booking/index.js +1 -1
  36. package/dist/components/country-select/index.js +1 -1
  37. package/dist/components/data-table/index.js +1 -1
  38. package/dist/components/flag/flag-core.d.ts +12 -0
  39. package/dist/components/flag/flag-core.d.ts.map +1 -0
  40. package/dist/components/flag/flag-view.d.ts +38 -0
  41. package/dist/components/flag/flag-view.d.ts.map +1 -0
  42. package/dist/components/flag/flag.d.ts +3 -10
  43. package/dist/components/flag/flag.d.ts.map +1 -1
  44. package/dist/components/flag/index.js +1 -1
  45. package/dist/components/header-settings/index.js +1 -1
  46. package/dist/components/locale-picker/index.js +1 -1
  47. package/dist/components/multi-select/index.js +1 -1
  48. package/dist/components/multi-select/multi-select.d.ts.map +1 -1
  49. package/dist/components/patient-details/index.js +1 -1
  50. package/dist/components/patient-table/index.js +1 -1
  51. package/dist/components/phone-input/index.js +1 -1
  52. package/dist/components/public-header/index.js +1 -1
  53. package/dist/components/public-header/public-header.d.ts.map +1 -1
  54. package/dist/components/workflow/workflow-types.d.ts +4 -5
  55. package/dist/components/workflow/workflow-types.d.ts.map +1 -1
  56. package/dist/hooks/use-theme.d.ts.map +1 -1
  57. package/dist/host-compat.css +7 -1
  58. package/dist/index.js +11 -11
  59. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  60. package/dist/tokens.css +1 -1
  61. package/package.json +1 -1
  62. package/dist/_chunks/flag-Cnmivlrl.js +0 -641
  63. package/dist/_chunks/flag-Cnmivlrl.js.map +0 -1
  64. package/dist/_chunks/locale-picker-EyvPrwDc.js.map +0 -1
  65. package/dist/_chunks/multi-select-D5QLBJM1.js.map +0 -1
  66. package/dist/_chunks/public-header.agent-rX_VA6hd.js.map +0 -1
@@ -1,19 +1,90 @@
1
- import { jsx as s, jsxs as f } from "react/jsx-runtime";
2
- import { forwardRef as H, useId as $, useState as M, useCallback as R, useMemo as D, useRef as F, useImperativeHandle as Q, useEffect as Z } from "react";
3
- import { c as B } from "./index-D2ZczOXr.js";
4
- import { useTranslation as T } from "react-i18next";
5
- import { _ as y, R as ee } from "./index-4xgbg-sn.js";
6
- import { I as ae } from "./icon-button-C_kbcd7I.js";
7
- import { P as C } from "./popover-Cc0a69sw.js";
8
- import { h as A, a as _ } from "./flag-Cnmivlrl.js";
9
- import { c as se, a as te, d as re } from "./input-surface-xyERuLU_.js";
1
+ import { jsx as a, jsxs as _ } from "react/jsx-runtime";
2
+ import { forwardRef as I, createElement as Z, useId as ee, useState as B, useCallback as T, useMemo as D, useRef as U, useImperativeHandle as se, useEffect as ae } from "react";
3
+ import { c as q } from "./index-D2ZczOXr.js";
4
+ import { useTranslation as A } from "react-i18next";
5
+ import { _ as y, R as oe } from "./index-4xgbg-sn.js";
6
+ import { I as te } from "./icon-button-C_kbcd7I.js";
7
+ import { P as x } from "./popover-Cc0a69sw.js";
8
+ import { F as ne, f as ie, s as J, _ as re, a as le, b as de, c as ce, d as ue, e as ge, g as me, h as _e, i as fe, j as ve, k as pe, l as he, m as ye, n as be, o as Ne, p as xe, q as Le, r as Ce, t as Se, u as ke, v as Pe, w as Ee, x as Re, y as we, z as Ie, A as Te, B as Ae, C as je, D as Fe, E as Oe, G as ze, H as De, I as Ue, J as Ge, K as Me, L as He } from "./flag-view-udarpAot.js";
9
+ import { c as Be, a as qe, d as Je } from "./input-surface-xyERuLU_.js";
10
10
  import { LOCALES_WITH_BUNDLES as j } from "../i18n/config.js";
11
- import { u as oe } from "./use-locale-BkCIHujH.js";
12
- import { u as ne } from "./registry-DvAUVLHh.js";
13
- import { G as z } from "./globe-sHBW1JN5.js";
14
- import { M as ie } from "./monitor-xXSrufmP.js";
15
- import { C as O } from "./check-DrFSN__t.js";
16
- const k = {
11
+ import { u as Ve } from "./use-locale-BkCIHujH.js";
12
+ import { u as Ke } from "./registry-DvAUVLHh.js";
13
+ import { G as F } from "./globe-sHBW1JN5.js";
14
+ import { M as We } from "./monitor-xXSrufmP.js";
15
+ import { C as G } from "./check-DrFSN__t.js";
16
+ const O = J(
17
+ () => /* @__PURE__ */ Object.assign({
18
+ "/node_modules/country-flag-icons/3x2/AL.svg": Ce,
19
+ "/node_modules/country-flag-icons/3x2/CN.svg": Le,
20
+ "/node_modules/country-flag-icons/3x2/DE.svg": xe,
21
+ "/node_modules/country-flag-icons/3x2/ES.svg": Ne,
22
+ "/node_modules/country-flag-icons/3x2/FR.svg": be,
23
+ "/node_modules/country-flag-icons/3x2/GB.svg": ye,
24
+ "/node_modules/country-flag-icons/3x2/GR.svg": he,
25
+ "/node_modules/country-flag-icons/3x2/IN.svg": pe,
26
+ "/node_modules/country-flag-icons/3x2/IT.svg": ve,
27
+ "/node_modules/country-flag-icons/3x2/JP.svg": fe,
28
+ "/node_modules/country-flag-icons/3x2/NL.svg": _e,
29
+ "/node_modules/country-flag-icons/3x2/PL.svg": me,
30
+ "/node_modules/country-flag-icons/3x2/PT.svg": ge,
31
+ "/node_modules/country-flag-icons/3x2/RO.svg": ue,
32
+ "/node_modules/country-flag-icons/3x2/RU.svg": ce,
33
+ "/node_modules/country-flag-icons/3x2/SA.svg": de,
34
+ "/node_modules/country-flag-icons/3x2/SE.svg": le,
35
+ "/node_modules/country-flag-icons/3x2/TR.svg": re
36
+ })
37
+ ), Ye = J(
38
+ () => /* @__PURE__ */ Object.assign({
39
+ "/node_modules/country-flag-icons/1x1/AL.svg": He,
40
+ "/node_modules/country-flag-icons/1x1/CN.svg": Me,
41
+ "/node_modules/country-flag-icons/1x1/DE.svg": Ge,
42
+ "/node_modules/country-flag-icons/1x1/ES.svg": Ue,
43
+ "/node_modules/country-flag-icons/1x1/FR.svg": De,
44
+ "/node_modules/country-flag-icons/1x1/GB.svg": ze,
45
+ "/node_modules/country-flag-icons/1x1/GR.svg": Oe,
46
+ "/node_modules/country-flag-icons/1x1/IN.svg": Fe,
47
+ "/node_modules/country-flag-icons/1x1/IT.svg": je,
48
+ "/node_modules/country-flag-icons/1x1/JP.svg": Ae,
49
+ "/node_modules/country-flag-icons/1x1/NL.svg": Te,
50
+ "/node_modules/country-flag-icons/1x1/PL.svg": Ie,
51
+ "/node_modules/country-flag-icons/1x1/PT.svg": we,
52
+ "/node_modules/country-flag-icons/1x1/RO.svg": Re,
53
+ "/node_modules/country-flag-icons/1x1/RU.svg": Ee,
54
+ "/node_modules/country-flag-icons/1x1/SA.svg": Pe,
55
+ "/node_modules/country-flag-icons/1x1/SE.svg": ke,
56
+ "/node_modules/country-flag-icons/1x1/TR.svg": Se
57
+ })
58
+ );
59
+ Object.freeze(
60
+ Object.keys(O).sort()
61
+ );
62
+ function z(e) {
63
+ return e.toUpperCase() in O;
64
+ }
65
+ const E = I(
66
+ ({
67
+ country: e,
68
+ label: s,
69
+ shape: c = "rectangle",
70
+ size: l = "sm",
71
+ rounded: r = "sm",
72
+ className: d,
73
+ ...i
74
+ }, o) => {
75
+ const n = e.toUpperCase();
76
+ return Z(ne, {
77
+ ref: o,
78
+ code: n,
79
+ src: (c === "square" ? Ye : O)[n],
80
+ label: s,
81
+ className: ie({ shape: c, size: l, rounded: r }, d),
82
+ ...i
83
+ });
84
+ }
85
+ );
86
+ E.displayName = "CoreFlag";
87
+ const L = {
17
88
  en: {
18
89
  code: "en",
19
90
  nativeName: "English",
@@ -159,10 +230,10 @@ const k = {
159
230
  dir: "ltr"
160
231
  }
161
232
  };
162
- j.map((e) => k[e]);
163
- const de = [
164
- ...j.map((e) => k[e])
165
- ].sort((e, a) => e.englishName.localeCompare(a.englishName, "en")), le = {
233
+ j.map((e) => L[e]);
234
+ const Qe = [
235
+ ...j.map((e) => L[e])
236
+ ].sort((e, s) => e.englishName.localeCompare(s.englishName, "en")), Xe = {
166
237
  id: "locale-picker",
167
238
  // Persists a single locale choice via the handle's `setLocale` → set_value.
168
239
  capabilities: ["set_value"],
@@ -184,8 +255,8 @@ const de = [
184
255
  idempotent: !0,
185
256
  descriptionKey: "ui.agent.localePicker.actions.setLocale",
186
257
  description: "Switch the active locale to the given IETF tag.",
187
- invoke: (e, a) => {
188
- e.setLocale(a.locale);
258
+ invoke: (e, s) => {
259
+ e.setLocale(s.locale);
189
260
  }
190
261
  }
191
262
  },
@@ -196,12 +267,12 @@ const de = [
196
267
  description: "Marks the LocalePicker wrapper."
197
268
  }
198
269
  }
199
- }, b = "alfadocs-ui.locale", g = "system";
200
- let U = !1;
201
- function h(e) {
270
+ }, b = "alfadocs-ui.locale", m = "system";
271
+ let M = !1;
272
+ function v(e) {
202
273
  return typeof e == "string" && j.includes(e);
203
274
  }
204
- function G(e) {
275
+ function H(e) {
205
276
  if (typeof window > "u") return null;
206
277
  try {
207
278
  return window.localStorage.getItem(e);
@@ -209,60 +280,60 @@ function G(e) {
209
280
  return null;
210
281
  }
211
282
  }
212
- function q(e, a) {
283
+ function V(e, s) {
213
284
  if (!(typeof window > "u"))
214
285
  try {
215
- window.localStorage.setItem(e, a);
286
+ window.localStorage.setItem(e, s);
216
287
  } catch {
217
288
  }
218
289
  }
219
- function x() {
290
+ function w() {
220
291
  if (typeof navigator > "u") return "en";
221
292
  const e = navigator.language;
222
293
  if (!e) return "en";
223
- const a = e.toLowerCase().split("-")[0];
224
- return h(a) ? a : "en";
294
+ const s = e.toLowerCase().split("-")[0];
295
+ return v(s) ? s : "en";
225
296
  }
226
- function L(e) {
297
+ function N(e) {
227
298
  if (typeof document > "u") return;
228
- const a = document.documentElement;
229
- a.lang = e, a.dir = k[e].dir;
299
+ const s = document.documentElement;
300
+ s.lang = e, s.dir = L[e].dir;
230
301
  }
231
- function V(e) {
302
+ function K(e) {
232
303
  if (!(typeof window > "u"))
233
304
  try {
234
305
  window.localStorage.removeItem(e);
235
306
  } catch {
236
307
  }
237
308
  }
238
- function J() {
239
- const { locale: e, setLocale: a } = oe(), [u, d] = M(
240
- () => G(b) === null
241
- ), i = h(e) ? e : "en", l = R(
242
- (o) => {
243
- if (o === g) {
244
- V(b);
245
- const r = x();
246
- a(r), L(r), d(!0);
309
+ function W() {
310
+ const { locale: e, setLocale: s } = Ve(), [c, l] = B(
311
+ () => H(b) === null
312
+ ), r = v(e) ? e : "en", d = T(
313
+ (i) => {
314
+ if (i === m) {
315
+ K(b);
316
+ const o = w();
317
+ s(o), N(o), l(!0);
247
318
  return;
248
319
  }
249
- h(o) && (a(o), L(o), q(b, o), d(!1));
320
+ v(i) && (s(i), N(i), V(b, i), l(!1));
250
321
  },
251
- [a]
322
+ [s]
252
323
  );
253
- return Z(() => {
254
- if (U) return;
255
- U = !0;
256
- const o = G(b);
257
- if (h(o)) {
258
- o !== e && a(o), L(o);
324
+ return ae(() => {
325
+ if (M) return;
326
+ M = !0;
327
+ const i = H(b);
328
+ if (v(i)) {
329
+ i !== e && s(i), N(i);
259
330
  return;
260
331
  }
261
- const r = x();
262
- a(r), L(r);
263
- }, []), { locale: i, isSystemDefault: u, setLocale: l };
332
+ const o = w();
333
+ s(o), N(o);
334
+ }, []), { locale: r, isSystemDefault: c, setLocale: d };
264
335
  }
265
- const K = B("ds:inline-flex ds:items-center", {
336
+ const Y = q("ds:inline-flex ds:items-center", {
266
337
  variants: {
267
338
  variant: {
268
339
  icon: "",
@@ -270,7 +341,7 @@ const K = B("ds:inline-flex ds:items-center", {
270
341
  }
271
342
  },
272
343
  defaultVariants: { variant: "icon" }
273
- }), ce = [
344
+ }), $e = [
274
345
  "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
275
346
  "ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-sm)]",
276
347
  "ds:min-h-[var(--min-target-size)] ds:min-w-[var(--min-target-size)]",
@@ -281,12 +352,12 @@ const K = B("ds:inline-flex ds:items-center", {
281
352
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
282
353
  "ds:disabled:opacity-50 ds:disabled:cursor-not-allowed",
283
354
  "type-body-sm"
284
- ].join(" "), W = [
355
+ ].join(" "), Q = [
285
356
  "ds:w-[18rem] ds:rounded-[var(--radius-md)]",
286
357
  "ds:bg-background ds:text-foreground ds:border ds:border-border",
287
358
  "ds:shadow-[var(--shadow-lg)]",
288
359
  "ds:overflow-hidden"
289
- ].join(" "), ue = B("ds:flex ds:flex-col", {
360
+ ].join(" "), Ze = q("ds:flex ds:flex-col", {
290
361
  variants: {
291
362
  loading: {
292
363
  true: "ds:opacity-60 ds:pointer-events-none",
@@ -294,67 +365,67 @@ const K = B("ds:inline-flex ds:items-center", {
294
365
  }
295
366
  },
296
367
  defaultVariants: { loading: !1 }
297
- }), I = H(
368
+ }), R = I(
298
369
  ({
299
370
  value: e,
300
- onValueChange: a,
301
- inputId: u,
302
- disabled: d = !1,
303
- loading: i = !1,
304
- className: l
305
- }, o) => {
306
- const { t: r } = T(), n = J(), E = n.locale, S = e ?? (n.isSystemDefault ? g : n.locale), p = $(), w = u ?? `${p}-search`, [P, v] = M(""), N = R(
371
+ onValueChange: s,
372
+ inputId: c,
373
+ disabled: l = !1,
374
+ loading: r = !1,
375
+ className: d
376
+ }, i) => {
377
+ const { t: o } = A(), n = W(), S = n.locale, C = e ?? (n.isSystemDefault ? m : n.locale), f = ee(), k = c ?? `${f}-search`, [P, p] = B(""), h = T(
307
378
  (t) => {
308
- if (!(d || i)) {
309
- if (t === g) {
310
- a ? a(g) : n.setLocale(g);
379
+ if (!(l || r)) {
380
+ if (t === m) {
381
+ s ? s(m) : n.setLocale(m);
311
382
  return;
312
383
  }
313
- h(t) && (a ? a(t) : n.setLocale(t));
384
+ v(t) && (s ? s(t) : n.setLocale(t));
314
385
  }
315
386
  },
316
- [d, i, a, n]
387
+ [l, r, s, n]
317
388
  );
318
- return /* @__PURE__ */ s(
389
+ return /* @__PURE__ */ a(
319
390
  "div",
320
391
  {
321
- ref: o,
322
- className: [ue({ loading: i }), l].filter(Boolean).join(" "),
392
+ ref: i,
393
+ className: [Ze({ loading: r }), d].filter(Boolean).join(" "),
323
394
  "data-component": "locale-picker-search-list",
324
- children: /* @__PURE__ */ f(
395
+ children: /* @__PURE__ */ _(
325
396
  y,
326
397
  {
327
- label: r("navigation.localePicker.commandLabel"),
328
- filter: ee,
398
+ label: o("navigation.localePicker.commandLabel"),
399
+ filter: oe,
329
400
  shouldFilter: !0,
330
401
  children: [
331
- /* @__PURE__ */ f(
402
+ /* @__PURE__ */ _(
332
403
  "div",
333
404
  {
334
405
  className: [
335
- se,
336
- te.sm,
337
- re.sm,
406
+ Be,
407
+ qe.sm,
408
+ Je.sm,
338
409
  "ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
339
410
  "ds:m-[var(--spacing-xs)]"
340
411
  ].join(" "),
341
412
  children: [
342
- /* @__PURE__ */ s(
343
- z,
413
+ /* @__PURE__ */ a(
414
+ F,
344
415
  {
345
416
  "aria-hidden": "true",
346
417
  className: "ds:size-4 ds:text-muted-foreground ds:shrink-0"
347
418
  }
348
419
  ),
349
- /* @__PURE__ */ s(
420
+ /* @__PURE__ */ a(
350
421
  y.Input,
351
422
  {
352
- id: w,
423
+ id: k,
353
424
  value: P,
354
- onValueChange: v,
355
- placeholder: r("navigation.localePicker.searchPlaceholder"),
356
- "aria-label": r("navigation.localePicker.searchLabel"),
357
- disabled: d || i,
425
+ onValueChange: p,
426
+ placeholder: o("navigation.localePicker.searchPlaceholder"),
427
+ "aria-label": o("navigation.localePicker.searchLabel"),
428
+ disabled: l || r,
358
429
  className: [
359
430
  "ds:peer ds:flex-1 ds:bg-transparent ds:border-0 ds:outline-none",
360
431
  "ds:placeholder:text-muted-foreground ds:text-foreground",
@@ -365,7 +436,7 @@ const K = B("ds:inline-flex ds:items-center", {
365
436
  ]
366
437
  }
367
438
  ),
368
- /* @__PURE__ */ f(
439
+ /* @__PURE__ */ _(
369
440
  y.List,
370
441
  {
371
442
  className: [
@@ -373,32 +444,32 @@ const K = B("ds:inline-flex ds:items-center", {
373
444
  "ds:p-[var(--spacing-xs)]"
374
445
  ].join(" "),
375
446
  children: [
376
- /* @__PURE__ */ s(
447
+ /* @__PURE__ */ a(
377
448
  y.Empty,
378
449
  {
379
450
  className: [
380
451
  "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]",
381
452
  "type-body-sm ds:text-muted-foreground"
382
453
  ].join(" "),
383
- children: r("navigation.localePicker.empty")
454
+ children: o("navigation.localePicker.empty")
384
455
  }
385
456
  ),
386
457
  (() => {
387
- const t = S === g, c = k[E];
388
- return /* @__PURE__ */ f(
458
+ const t = C === m, u = L[S];
459
+ return /* @__PURE__ */ _(
389
460
  y.Item,
390
461
  {
391
- value: g,
462
+ value: m,
392
463
  keywords: [
393
464
  "system",
394
465
  "default",
395
466
  "auto",
396
467
  "browser",
397
- c.nativeName,
398
- c.englishName
468
+ u.nativeName,
469
+ u.englishName
399
470
  ],
400
- disabled: d || i,
401
- onSelect: N,
471
+ disabled: l || r,
472
+ onSelect: h,
402
473
  className: [
403
474
  "ds:relative ds:flex ds:cursor-pointer ds:select-none",
404
475
  "ds:items-center ds:gap-[var(--spacing-sm)]",
@@ -413,38 +484,38 @@ const K = B("ds:inline-flex ds:items-center", {
413
484
  "aria-selected": t || void 0,
414
485
  "data-current": t ? "true" : void 0,
415
486
  children: [
416
- /* @__PURE__ */ s(
417
- ie,
487
+ /* @__PURE__ */ a(
488
+ We,
418
489
  {
419
490
  "aria-hidden": "true",
420
491
  className: "ds:size-4 ds:text-muted-foreground ds:shrink-0"
421
492
  }
422
493
  ),
423
- /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: r("navigation.localePicker.systemDefault", {
424
- locale: c.nativeName
494
+ /* @__PURE__ */ a("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: o("navigation.localePicker.systemDefault", {
495
+ locale: u.nativeName
425
496
  }) }),
426
- t ? /* @__PURE__ */ s(
427
- O,
497
+ t ? /* @__PURE__ */ a(
498
+ G,
428
499
  {
429
500
  "aria-hidden": "true",
430
501
  className: "ds:size-4 ds:text-primary ds:shrink-0"
431
502
  }
432
503
  ) : null,
433
- t ? /* @__PURE__ */ s("span", { className: "ds:sr-only", children: r("navigation.localePicker.currentSelection") }) : null
504
+ t ? /* @__PURE__ */ a("span", { className: "ds:sr-only", children: o("navigation.localePicker.currentSelection") }) : null
434
505
  ]
435
506
  },
436
- g
507
+ m
437
508
  );
438
509
  })(),
439
- de.map((t) => {
440
- const c = S === t.code;
441
- return /* @__PURE__ */ f(
510
+ Qe.map((t) => {
511
+ const u = C === t.code;
512
+ return /* @__PURE__ */ _(
442
513
  y.Item,
443
514
  {
444
515
  value: t.code,
445
516
  keywords: [t.nativeName, t.englishName],
446
- disabled: d || i,
447
- onSelect: N,
517
+ disabled: l || r,
518
+ onSelect: h,
448
519
  className: [
449
520
  "ds:relative ds:flex ds:cursor-pointer ds:select-none",
450
521
  "ds:items-center ds:gap-[var(--spacing-sm)]",
@@ -456,12 +527,12 @@ const K = B("ds:inline-flex ds:items-center", {
456
527
  "ds:aria-selected:bg-muted",
457
528
  "ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-not-allowed"
458
529
  ].join(" "),
459
- "aria-selected": c || void 0,
460
- "data-current": c ? "true" : void 0,
530
+ "aria-selected": u || void 0,
531
+ "data-current": u ? "true" : void 0,
461
532
  lang: t.code,
462
533
  children: [
463
- A(t.countryCode) ? /* @__PURE__ */ s(
464
- _,
534
+ z(t.countryCode) ? /* @__PURE__ */ a(
535
+ E,
465
536
  {
466
537
  country: t.countryCode,
467
538
  size: "sm",
@@ -470,13 +541,13 @@ const K = B("ds:inline-flex ds:items-center", {
470
541
  className: "ds:shrink-0"
471
542
  }
472
543
  ) : (
473
- /* hasFlag fallback: render the emoji glyph only
544
+ /* hasCoreFlag fallback: render the emoji glyph only
474
545
  when the kit doesn't ship an SVG for this
475
546
  country code. All 18 bundled locales currently
476
547
  have SVG flags, so this is dead code on the
477
548
  canonical set — kept for resilience when
478
549
  consumers extend the registry. */
479
- /* @__PURE__ */ s(
550
+ /* @__PURE__ */ a(
480
551
  "span",
481
552
  {
482
553
  "aria-hidden": "true",
@@ -485,15 +556,15 @@ const K = B("ds:inline-flex ds:items-center", {
485
556
  }
486
557
  )
487
558
  ),
488
- /* @__PURE__ */ s("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: t.nativeName }),
489
- c ? /* @__PURE__ */ s(
490
- O,
559
+ /* @__PURE__ */ a("span", { className: "ds:flex-1 ds:min-w-0 ds:truncate type-body-sm", children: t.nativeName }),
560
+ u ? /* @__PURE__ */ a(
561
+ G,
491
562
  {
492
563
  "aria-hidden": "true",
493
564
  className: "ds:size-4 ds:text-primary ds:shrink-0"
494
565
  }
495
566
  ) : null,
496
- c ? /* @__PURE__ */ s("span", { className: "ds:sr-only", children: r("navigation.localePicker.currentSelection") }) : null
567
+ u ? /* @__PURE__ */ a("span", { className: "ds:sr-only", children: o("navigation.localePicker.currentSelection") }) : null
497
568
  ]
498
569
  },
499
570
  t.code
@@ -509,34 +580,34 @@ const K = B("ds:inline-flex ds:items-center", {
509
580
  );
510
581
  }
511
582
  );
512
- I.displayName = "LocalePicker.SearchList";
513
- function me({
583
+ R.displayName = "LocalePicker.SearchList";
584
+ function es({
514
585
  state: e,
515
- rest: a,
516
- forwardedRef: u,
517
- className: d,
518
- disabled: i,
519
- loading: l,
520
- popoverSide: o
586
+ rest: s,
587
+ forwardedRef: c,
588
+ className: l,
589
+ disabled: r,
590
+ loading: d,
591
+ popoverSide: i
521
592
  }) {
522
- const { t: r } = T(), n = k[e.locale];
523
- return /* @__PURE__ */ s(
593
+ const { t: o } = A(), n = L[e.locale];
594
+ return /* @__PURE__ */ a(
524
595
  "div",
525
596
  {
526
- ref: u,
597
+ ref: c,
527
598
  "data-component": "locale-picker",
528
- "data-component-id": a.id,
529
- className: K({ variant: "icon", className: d }),
530
- ...a,
531
- children: /* @__PURE__ */ f(C.Root, { children: [
532
- /* @__PURE__ */ s(C.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
533
- ae,
599
+ "data-component-id": s.id,
600
+ className: Y({ variant: "icon", className: l }),
601
+ ...s,
602
+ children: /* @__PURE__ */ _(x.Root, { children: [
603
+ /* @__PURE__ */ a(x.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
604
+ te,
534
605
  {
535
- disabled: i || l,
536
- icon: /* @__PURE__ */ f("span", { className: "ds:relative ds:inline-flex ds:items-center ds:justify-center", children: [
537
- /* @__PURE__ */ s(z, { "aria-hidden": !0, className: "ds:size-5" }),
538
- A(n.countryCode) ? /* @__PURE__ */ s(
539
- _,
606
+ disabled: r || d,
607
+ icon: /* @__PURE__ */ _("span", { className: "ds:relative ds:inline-flex ds:items-center ds:justify-center", children: [
608
+ /* @__PURE__ */ a(F, { "aria-hidden": !0, className: "ds:size-5" }),
609
+ z(n.countryCode) ? /* @__PURE__ */ a(
610
+ E,
540
611
  {
541
612
  country: n.countryCode,
542
613
  size: "sm",
@@ -556,26 +627,26 @@ function me({
556
627
  }
557
628
  ) : null
558
629
  ] }),
559
- "aria-label": r("navigation.localePicker.trigger", {
630
+ "aria-label": o("navigation.localePicker.trigger", {
560
631
  locale: n.nativeName
561
632
  })
562
633
  }
563
634
  ) }),
564
- /* @__PURE__ */ s(
565
- C.Content,
635
+ /* @__PURE__ */ a(
636
+ x.Content,
566
637
  {
567
- side: o,
638
+ side: i,
568
639
  align: "start",
569
640
  sideOffset: 8,
570
- className: W,
571
- "aria-label": r("navigation.localePicker.popupLabel"),
572
- children: /* @__PURE__ */ s(
573
- I,
641
+ className: Q,
642
+ "aria-label": o("navigation.localePicker.popupLabel"),
643
+ children: /* @__PURE__ */ a(
644
+ R,
574
645
  {
575
646
  value: e.locale,
576
647
  onValueChange: e.setLocale,
577
- disabled: i,
578
- loading: l
648
+ disabled: r,
649
+ loading: d
579
650
  }
580
651
  )
581
652
  }
@@ -584,37 +655,37 @@ function me({
584
655
  }
585
656
  );
586
657
  }
587
- function ge({
658
+ function ss({
588
659
  state: e,
589
- rest: a,
590
- forwardedRef: u,
591
- className: d,
592
- disabled: i,
593
- loading: l,
594
- popoverSide: o
660
+ rest: s,
661
+ forwardedRef: c,
662
+ className: l,
663
+ disabled: r,
664
+ loading: d,
665
+ popoverSide: i
595
666
  }) {
596
- const { t: r } = T(), n = k[e.locale];
597
- return /* @__PURE__ */ s(
667
+ const { t: o } = A(), n = L[e.locale];
668
+ return /* @__PURE__ */ a(
598
669
  "div",
599
670
  {
600
- ref: u,
671
+ ref: c,
601
672
  "data-component": "locale-picker",
602
- "data-component-id": a.id,
603
- className: K({ variant: "compact", className: d }),
604
- ...a,
605
- children: /* @__PURE__ */ f(C.Root, { children: [
606
- /* @__PURE__ */ s(C.Trigger, { asChild: !0, children: /* @__PURE__ */ f(
673
+ "data-component-id": s.id,
674
+ className: Y({ variant: "compact", className: l }),
675
+ ...s,
676
+ children: /* @__PURE__ */ _(x.Root, { children: [
677
+ /* @__PURE__ */ a(x.Trigger, { asChild: !0, children: /* @__PURE__ */ _(
607
678
  "button",
608
679
  {
609
680
  type: "button",
610
- disabled: i || l,
611
- className: ce,
612
- "aria-label": r("navigation.localePicker.trigger", {
681
+ disabled: r || d,
682
+ className: $e,
683
+ "aria-label": o("navigation.localePicker.trigger", {
613
684
  locale: n.nativeName
614
685
  }),
615
686
  children: [
616
- A(n.countryCode) ? /* @__PURE__ */ s(
617
- _,
687
+ z(n.countryCode) ? /* @__PURE__ */ a(
688
+ E,
618
689
  {
619
690
  country: n.countryCode,
620
691
  size: "sm",
@@ -622,8 +693,8 @@ function ge({
622
693
  rounded: "sm",
623
694
  className: "ds:shrink-0"
624
695
  }
625
- ) : /* @__PURE__ */ s(z, { "aria-hidden": !0, className: "ds:size-4 ds:shrink-0" }),
626
- /* @__PURE__ */ s(
696
+ ) : /* @__PURE__ */ a(F, { "aria-hidden": !0, className: "ds:size-4 ds:shrink-0" }),
697
+ /* @__PURE__ */ a(
627
698
  "span",
628
699
  {
629
700
  className: "ds:flex-1 ds:truncate type-body-sm",
@@ -634,21 +705,21 @@ function ge({
634
705
  ]
635
706
  }
636
707
  ) }),
637
- /* @__PURE__ */ s(
638
- C.Content,
708
+ /* @__PURE__ */ a(
709
+ x.Content,
639
710
  {
640
- side: o,
711
+ side: i,
641
712
  align: "start",
642
713
  sideOffset: 8,
643
- className: W,
644
- "aria-label": r("navigation.localePicker.popupLabel"),
645
- children: /* @__PURE__ */ s(
646
- I,
714
+ className: Q,
715
+ "aria-label": o("navigation.localePicker.popupLabel"),
716
+ children: /* @__PURE__ */ a(
717
+ R,
647
718
  {
648
719
  value: e.locale,
649
720
  onValueChange: e.setLocale,
650
- disabled: i,
651
- loading: l
721
+ disabled: r,
722
+ loading: d
652
723
  }
653
724
  )
654
725
  }
@@ -657,83 +728,83 @@ function ge({
657
728
  }
658
729
  );
659
730
  }
660
- const Y = H(
661
- (e, a) => {
731
+ const X = I(
732
+ (e, s) => {
662
733
  const {
663
- variant: u = "icon",
664
- value: d,
665
- onValueChange: i,
666
- disabled: l = !1,
667
- loading: o = !1,
668
- popoverSide: r = "bottom",
734
+ variant: c = "icon",
735
+ value: l,
736
+ onValueChange: r,
737
+ disabled: d = !1,
738
+ loading: i = !1,
739
+ popoverSide: o = "bottom",
669
740
  className: n,
670
- id: E,
671
- ...S
672
- } = e, p = J(), w = d ?? p.locale, P = R(
673
- (m) => {
674
- if (i) {
675
- if (i(m), m === g) {
676
- V(b);
677
- const X = x();
678
- L(X);
679
- } else h(m) && (L(m), q(b, m));
741
+ id: S,
742
+ ...C
743
+ } = e, f = W(), k = l ?? f.locale, P = T(
744
+ (g) => {
745
+ if (r) {
746
+ if (r(g), g === m) {
747
+ K(b);
748
+ const $ = w();
749
+ N($);
750
+ } else v(g) && (N(g), V(b, g));
680
751
  return;
681
752
  }
682
- p.setLocale(m);
753
+ f.setLocale(g);
683
754
  },
684
- [i, p]
685
- ), v = D(
755
+ [r, f]
756
+ ), p = D(
686
757
  () => ({
687
- locale: w,
688
- isSystemDefault: p.isSystemDefault,
758
+ locale: k,
759
+ isSystemDefault: f.isSystemDefault,
689
760
  setLocale: P
690
761
  }),
691
- [w, p.isSystemDefault, P]
692
- ), N = F(null);
693
- Q(a, () => N.current, []);
694
- const t = F(v);
695
- t.current = v;
696
- const c = D(
762
+ [k, f.isSystemDefault, P]
763
+ ), h = U(null);
764
+ se(s, () => h.current, []);
765
+ const t = U(p);
766
+ t.current = p;
767
+ const u = D(
697
768
  () => ({
698
- setLocale: (m) => {
699
- h(m) && t.current.setLocale(m);
769
+ setLocale: (g) => {
770
+ v(g) && t.current.setLocale(g);
700
771
  }
701
772
  }),
702
773
  []
703
774
  );
704
- return ne(le, c, E), u === "compact" ? /* @__PURE__ */ s(
705
- ge,
775
+ return Ke(Xe, u, S), c === "compact" ? /* @__PURE__ */ a(
776
+ ss,
706
777
  {
707
- state: v,
708
- rest: S,
709
- forwardedRef: N,
778
+ state: p,
779
+ rest: C,
780
+ forwardedRef: h,
710
781
  className: n,
711
- disabled: l,
712
- loading: o,
713
- popoverSide: r
782
+ disabled: d,
783
+ loading: i,
784
+ popoverSide: o
714
785
  }
715
- ) : /* @__PURE__ */ s(
716
- me,
786
+ ) : /* @__PURE__ */ a(
787
+ es,
717
788
  {
718
- state: v,
719
- rest: S,
720
- forwardedRef: N,
789
+ state: p,
790
+ rest: C,
791
+ forwardedRef: h,
721
792
  className: n,
722
- disabled: l,
723
- loading: o,
724
- popoverSide: r
793
+ disabled: d,
794
+ loading: i,
795
+ popoverSide: o
725
796
  }
726
797
  );
727
798
  }
728
799
  );
729
- Y.displayName = "LocalePicker";
730
- const xe = Object.assign(Y, {
731
- SearchList: I
800
+ X.displayName = "LocalePicker";
801
+ const ps = Object.assign(X, {
802
+ SearchList: R
732
803
  });
733
804
  export {
734
805
  b as L,
735
- xe as a,
736
- I as b,
737
- k as c
806
+ ps as a,
807
+ R as b,
808
+ L as c
738
809
  };
739
- //# sourceMappingURL=locale-picker-EyvPrwDc.js.map
810
+ //# sourceMappingURL=locale-picker-BfBUdT1m.js.map