@alfadocs/ui-kit 0.11.0 → 0.13.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 (74) hide show
  1. package/dist/_chunks/_commonjsHelpers-C6fGbg64.js +7 -0
  2. package/dist/_chunks/{ai-prompt-input-bAJwYu84.js → ai-prompt-input-DEiQwIMn.js} +22 -21
  3. package/dist/_chunks/{audio-recorder-BHBonrFf.js → audio-recorder-CRh4uyFL.js} +2 -2
  4. package/dist/_chunks/{autocomplete-C34hbfKh.js → autocomplete-mOg7WLOh.js} +2 -2
  5. package/dist/_chunks/{chat-input-Bov-gkwP.js → chat-input-UK-bXU7u.js} +9 -8
  6. package/dist/_chunks/{combobox-BHhnR3qm.js → combobox-D5tWe0t_.js} +2 -2
  7. package/dist/_chunks/{contact-card-VJIUqKB2.js → contact-card-DTQUMetD.js} +22 -38
  8. package/dist/_chunks/{date-picker-BD5FYW08.js → date-picker-BlhtBhPo.js} +2 -2
  9. package/dist/_chunks/{date-range-picker-BZLVgcXE.js → date-range-picker-C2hRu_Ke.js} +2 -2
  10. package/dist/_chunks/{date-time-picker-CCoRWX7R.js → date-time-picker-B67mPZmP.js} +2 -2
  11. package/dist/_chunks/external-link-C6F25E6k.js +16 -0
  12. package/dist/_chunks/{file-upload-DIecAfC-.js → file-upload-nMh-1jDD.js} +2 -2
  13. package/dist/_chunks/{index-CeY1nNvd.js → index-CFoBa86t.js} +61 -63
  14. package/dist/_chunks/{input-surface-u4QB0lxe.js → input-surface-xyERuLU_.js} +9 -3
  15. package/dist/_chunks/{leo-sidebar-B054wsZm.js → leo-sidebar-D3TuyH5_.js} +2 -2
  16. package/dist/_chunks/{link-BGpwaFik.js → link-DmM5IevO.js} +16 -26
  17. package/dist/_chunks/map-pin-B8STOPMJ.js +21 -0
  18. package/dist/_chunks/map-view-Dd48BxVB.js +1941 -0
  19. package/dist/_chunks/{multi-select-Bh-xR8kP.js → multi-select-DooDzQIp.js} +2 -2
  20. package/dist/_chunks/{number-input-mpSLk-ld.js → number-input-DH00o0DN.js} +28 -27
  21. package/dist/_chunks/{otp-input-CI-Zv5q6.js → otp-input-BBXYvLx5.js} +49 -48
  22. package/dist/_chunks/{phone-input-DtBVs5fz.js → phone-input-DKSHX7NQ.js} +23 -22
  23. package/dist/_chunks/{react-day-picker-C04L_28V.js → react-day-picker-C5F3-TTX.js} +6 -3
  24. package/dist/_chunks/{search-bar-DmZZ9UvV.js → search-bar-DORSAzNt.js} +2 -2
  25. package/dist/_chunks/{search-input-BBtSRH-Q.js → search-input-BtEJAJHa.js} +2 -2
  26. package/dist/_chunks/{select-i9MwQeQy.js → select-Ca6ibiDL.js} +13 -12
  27. package/dist/_chunks/{tabs-Cg794H0Q.js → tabs-CRCyPpJo.js} +2 -2
  28. package/dist/_chunks/{text-area-DHtcpcLv.js → text-area-D5GAe8pV.js} +26 -25
  29. package/dist/_chunks/{text-input-1oqFRbVI.js → text-input-CakysYnD.js} +26 -25
  30. package/dist/_chunks/{transcript-panel-BpJqPr7I.js → transcript-panel-DUrjx5sa.js} +2 -2
  31. package/dist/_chunks/{use-password-requirements-DbPZMfV9.js → use-password-requirements-BOgFsoIe.js} +2 -2
  32. package/dist/_chunks/whatsapp-button-Bj5FIhpC.js +175 -0
  33. package/dist/agent-catalog.json +53 -1
  34. package/dist/components/ai-prompt-input/index.js +1 -1
  35. package/dist/components/audio-recorder/index.js +1 -1
  36. package/dist/components/autocomplete/index.js +1 -1
  37. package/dist/components/chat-input/index.js +1 -1
  38. package/dist/components/combobox/index.js +1 -1
  39. package/dist/components/contact-card/index.js +1 -1
  40. package/dist/components/date-picker/index.js +1 -1
  41. package/dist/components/date-range-picker/index.js +1 -1
  42. package/dist/components/date-time-picker/index.js +1 -1
  43. package/dist/components/file-upload/index.js +1 -1
  44. package/dist/components/index.d.ts +2 -0
  45. package/dist/components/link/index.js +1 -1
  46. package/dist/components/map-view/index.d.ts +3 -0
  47. package/dist/components/map-view/index.js +5 -0
  48. package/dist/components/map-view/map-view.agent.d.ts +4 -0
  49. package/dist/components/map-view/map-view.d.ts +78 -0
  50. package/dist/components/multi-select/index.js +1 -1
  51. package/dist/components/number-input/index.js +1 -1
  52. package/dist/components/otp-input/index.js +1 -1
  53. package/dist/components/password-input/index.js +1 -1
  54. package/dist/components/phone-input/index.js +1 -1
  55. package/dist/components/search-bar/index.js +1 -1
  56. package/dist/components/search-input/index.js +1 -1
  57. package/dist/components/select/index.js +1 -1
  58. package/dist/components/tabs/index.js +1 -1
  59. package/dist/components/text-area/index.js +1 -1
  60. package/dist/components/text-input/index.js +1 -1
  61. package/dist/components/transcript-panel/index.js +1 -1
  62. package/dist/components/whatsapp-button/index.d.ts +3 -0
  63. package/dist/components/whatsapp-button/index.js +5 -0
  64. package/dist/components/whatsapp-button/whatsapp-button.d.ts +32 -0
  65. package/dist/i18n/config.js +45 -6
  66. package/dist/i18n/resources.d.ts +39 -0
  67. package/dist/index.js +361 -357
  68. package/dist/locales/de.json +13 -0
  69. package/dist/locales/en.json +13 -0
  70. package/dist/locales/it.json +13 -0
  71. package/dist/patterns/leo-assistant/index.js +1 -1
  72. package/dist/tokens/google-maps-theme.d.ts +15 -0
  73. package/dist/tokens.css +1 -1
  74. package/package.json +15 -1
@@ -8,7 +8,7 @@ import { u as Ke, F as Ue } from "./form-field-context-B3APVHKx.js";
8
8
  import { T as de } from "./tooltip-DHik5yRI.js";
9
9
  import { c as Qe } from "./compose-refs-C0k0tdqF.js";
10
10
  import { g as Ye } from "./group-options-BvKhQ3xb.js";
11
- import { b as Y, c as Ge } from "./input-surface-u4QB0lxe.js";
11
+ import { b as Y, c as Ge } from "./input-surface-xyERuLU_.js";
12
12
  import { u as He } from "./registry-C9nwlNyL.js";
13
13
  import { X as Xe } from "./x-CCcI3eJp.js";
14
14
  import { C as Je } from "./check-DPdL_Sm7.js";
@@ -542,4 +542,4 @@ export {
542
542
  Ze as a,
543
543
  We as m
544
544
  };
545
- //# sourceMappingURL=multi-select-Bh-xR8kP.js.map
545
+ //# sourceMappingURL=multi-select-DooDzQIp.js.map
@@ -1,12 +1,12 @@
1
- import { jsxs as be, jsx as x } from "react/jsx-runtime";
1
+ import { jsxs as be, jsx as F } from "react/jsx-runtime";
2
2
  import { useMemo as J, forwardRef as ge, useRef as A, useState as E, useCallback as $, useEffect as he } from "react";
3
3
  import { c as Ne } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ye } from "react-i18next";
5
5
  import { u as we } from "./form-field-context-B3APVHKx.js";
6
6
  import { c as Ie } from "./compose-refs-C0k0tdqF.js";
7
7
  import { u as De } from "./registry-C9nwlNyL.js";
8
- import { C as Fe } from "./chevron-down-BX_NP2Yh.js";
9
- import { C as xe } from "./chevron-up-zOEDrmBB.js";
8
+ import { C as xe } from "./chevron-down-BX_NP2Yh.js";
9
+ import { C as Fe } from "./chevron-up-zOEDrmBB.js";
10
10
  const Se = {
11
11
  id: "number-input",
12
12
  capabilities: ["edit_inline"],
@@ -83,9 +83,9 @@ function Ve(t, r, u) {
83
83
  maximumFractionDigits: 4
84
84
  }) : r === "integer" ? new Intl.NumberFormat(t, { maximumFractionDigits: 0 }) : new Intl.NumberFormat(t, { maximumFractionDigits: 10 }), T = (a) => Number.isFinite(a) ? p.format(a) : "", z = (a) => {
85
85
  if (!a) return NaN;
86
- const k = Me(a), g = k.trim(), I = g.startsWith("-") || g.startsWith("−");
86
+ const C = Me(a), g = C.trim(), I = g.startsWith("-") || g.startsWith("−");
87
87
  let c = "";
88
- for (const h of k)
88
+ for (const h of C)
89
89
  h >= "0" && h <= "9" ? c += h : h === d && (c += ".");
90
90
  if (!c || c === ".") return NaN;
91
91
  let m = Number(c);
@@ -113,11 +113,12 @@ function Ve(t, r, u) {
113
113
  };
114
114
  }, [t, r, u]);
115
115
  }
116
- const ke = Ne(
116
+ const Ce = Ne(
117
117
  [
118
118
  "ds:flex ds:items-center ds:w-full ds:rounded-[var(--radius-sm)]",
119
- "ds:border ds:bg-background ds:text-foreground",
120
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
119
+ "ds:border ds:bg-input ds:text-foreground",
120
+ "ds:shadow-[var(--shadow-input)]",
121
+ "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
121
122
  "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
122
123
  "ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
123
124
  "ds:has-[:disabled]:cursor-not-allowed ds:has-[:disabled]:opacity-50"
@@ -142,7 +143,7 @@ const ke = Ne(
142
143
  "ds:text-muted-foreground ds:hover:text-foreground",
143
144
  "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
144
145
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
145
- ].join(" "), Ce = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US";
146
+ ].join(" "), ke = () => typeof navigator < "u" && navigator.language ? navigator.language : "en-US";
146
147
  function Te(t) {
147
148
  if (!Number.isFinite(t)) return 0;
148
149
  const r = String(t), u = r.indexOf(".");
@@ -168,13 +169,13 @@ const Pe = ge(
168
169
  tone: M,
169
170
  className: V,
170
171
  id: a,
171
- disabled: k,
172
+ disabled: C,
172
173
  onFocus: g,
173
174
  onBlur: I,
174
175
  onKeyDown: c,
175
176
  ...m
176
177
  }, h) => {
177
- const { t: U } = ye(), D = we(), Q = a ?? D.id, C = !!(D.disabled || k), X = z ?? Ce(), P = Ve(X, p, T), {
178
+ const { t: U } = ye(), D = we(), Q = a ?? D.id, k = !!(D.disabled || C), X = z ?? ke(), P = Ve(X, p, T), {
178
179
  decimalSeparator: B,
179
180
  format: R,
180
181
  parse: K
@@ -182,7 +183,7 @@ const Pe = ge(
182
183
  r ?? null
183
184
  ), s = H ? t ?? null : Z, W = A(s);
184
185
  W.current = s;
185
- const F = $(
186
+ const x = $(
186
187
  (e) => {
187
188
  const i = p === "percentage" ? e * 100 : e;
188
189
  return (Number.isInteger(i) ? String(i) : i.toString()).replace(".", B);
@@ -202,14 +203,14 @@ const Pe = ge(
202
203
  }, w = (e) => {
203
204
  let o = (s ?? 0) + S * e;
204
205
  n !== void 0 && (o = Math.max(n, o)), d !== void 0 && (o = Math.min(d, o)), o = ze(o, S), v(o), y(!1), l(
205
- N.current ? F(o) : f(o)
206
+ N.current ? x(o) : f(o)
206
207
  );
207
208
  }, O = (e) => {
208
209
  v(e), y(!1), l(
209
- N.current ? F(e) : f(e)
210
+ N.current ? x(e) : f(e)
210
211
  );
211
212
  }, se = (e) => {
212
- if (c == null || c(e), e.defaultPrevented || C) return;
213
+ if (c == null || c(e), e.defaultPrevented || k) return;
213
214
  const { key: i, shiftKey: o } = e;
214
215
  i === "ArrowUp" ? (e.preventDefault(), w(o ? 10 : 1)) : i === "ArrowDown" ? (e.preventDefault(), w(o ? -10 : -1)) : i === "PageUp" ? (e.preventDefault(), w(100)) : i === "PageDown" ? (e.preventDefault(), w(-100)) : i === "Home" && n !== void 0 ? (e.preventDefault(), O(n)) : i === "End" && d !== void 0 && (e.preventDefault(), O(d));
215
216
  }, ie = (e) => {
@@ -221,7 +222,7 @@ const Pe = ge(
221
222
  const o = K(i);
222
223
  Number.isNaN(o) || v(o);
223
224
  }, oe = (e) => {
224
- g == null || g(e), N.current = !0, s != null && l(F(s));
225
+ g == null || g(e), N.current = !0, s != null && l(x(s));
225
226
  }, ae = (e) => {
226
227
  if (I == null || I(e), N.current = !1, j.trim() === "") {
227
228
  v(null), y(!1), l("");
@@ -241,7 +242,7 @@ const Pe = ge(
241
242
  getValue: () => W.current,
242
243
  setValue: (e) => {
243
244
  v(e), l(
244
- e === null ? "" : N.current ? F(e) : f(e)
245
+ e === null ? "" : N.current ? x(e) : f(e)
245
246
  );
246
247
  },
247
248
  clear: () => {
@@ -255,14 +256,14 @@ const Pe = ge(
255
256
  // The handle is reconstructed per render; consumers (the agent runtime)
256
257
  // re-register only when the identity changes, which is a cheap no-op.
257
258
  // eslint-disable-next-line react-hooks/exhaustive-deps
258
- [F, f]
259
+ [x, f]
259
260
  );
260
261
  De(Se, le, a);
261
- const ce = C || n !== void 0 && s !== null && s <= n, fe = C || d !== void 0 && s !== null && s >= d, pe = s ?? void 0, me = (p === "currency" || p === "percentage") && s !== null && s !== null ? R(s) : void 0, ve = P.inputMode === "numeric" ? "[0-9]*" : void 0;
262
+ const ce = k || n !== void 0 && s !== null && s <= n, fe = k || d !== void 0 && s !== null && s >= d, pe = s ?? void 0, me = (p === "currency" || p === "percentage") && s !== null && s !== null ? R(s) : void 0, ve = P.inputMode === "numeric" ? "[0-9]*" : void 0;
262
263
  return /* @__PURE__ */ be(
263
264
  "div",
264
265
  {
265
- className: ke({
266
+ className: Ce({
266
267
  size: b,
267
268
  tone: re,
268
269
  className: V
@@ -271,7 +272,7 @@ const Pe = ge(
271
272
  "data-component-id": a,
272
273
  "data-mode": p,
273
274
  children: [
274
- /* @__PURE__ */ x(
275
+ /* @__PURE__ */ F(
275
276
  "button",
276
277
  {
277
278
  type: "button",
@@ -281,10 +282,10 @@ const Pe = ge(
281
282
  onMouseDown: _,
282
283
  disabled: ce,
283
284
  className: `${G} ds:ps-2 ds:pe-1`,
284
- children: /* @__PURE__ */ x(Fe, { "aria-hidden": "true", className: "ds:size-4" })
285
+ children: /* @__PURE__ */ F(xe, { "aria-hidden": "true", className: "ds:size-4" })
285
286
  }
286
287
  ),
287
- /* @__PURE__ */ x(
288
+ /* @__PURE__ */ F(
288
289
  "input",
289
290
  {
290
291
  ref: Y,
@@ -295,7 +296,7 @@ const Pe = ge(
295
296
  pattern: ve,
296
297
  autoComplete: "off",
297
298
  value: j,
298
- disabled: C,
299
+ disabled: k,
299
300
  "aria-valuemin": n,
300
301
  "aria-valuemax": d,
301
302
  "aria-valuenow": pe,
@@ -311,7 +312,7 @@ const Pe = ge(
311
312
  ...m
312
313
  }
313
314
  ),
314
- /* @__PURE__ */ x(
315
+ /* @__PURE__ */ F(
315
316
  "button",
316
317
  {
317
318
  type: "button",
@@ -321,7 +322,7 @@ const Pe = ge(
321
322
  onMouseDown: _,
322
323
  disabled: fe,
323
324
  className: `${G} ds:ps-1 ds:pe-2`,
324
- children: /* @__PURE__ */ x(xe, { "aria-hidden": "true", className: "ds:size-4" })
325
+ children: /* @__PURE__ */ F(Fe, { "aria-hidden": "true", className: "ds:size-4" })
325
326
  }
326
327
  )
327
328
  ]
@@ -334,4 +335,4 @@ export {
334
335
  Pe as N,
335
336
  Ve as u
336
337
  };
337
- //# sourceMappingURL=number-input-mpSLk-ld.js.map
338
+ //# sourceMappingURL=number-input-DH00o0DN.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs as ee, jsx as M } from "react/jsx-runtime";
2
- import { forwardRef as te, useId as re, useState as L, useRef as R, useEffect as se, useCallback as N, useMemo as oe } from "react";
2
+ import { forwardRef as te, useId as se, useState as L, useRef as R, useEffect as re, useCallback as N, useMemo as oe } from "react";
3
3
  import { c as O } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ae } from "react-i18next";
5
5
  import { u as ie } from "./form-field-context-B3APVHKx.js";
@@ -64,8 +64,9 @@ const ce = {
64
64
  [
65
65
  "ds:w-[var(--min-target-size)] ds:h-[var(--min-target-size)]",
66
66
  "ds:rounded-[var(--radius-sm)]",
67
- "ds:border ds:bg-background ds:text-foreground ds:text-center ds:font-medium ds:text-[length:var(--font-size-lg)]",
68
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
67
+ "ds:border ds:bg-input ds:text-foreground ds:text-center ds:font-medium ds:text-[length:var(--font-size-lg)]",
68
+ "ds:shadow-[var(--shadow-input)]",
69
+ "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
69
70
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
70
71
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
71
72
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
@@ -105,69 +106,69 @@ const pe = te(
105
106
  id: K,
106
107
  className: j
107
108
  }, z) => {
108
- const { t: H } = ae(), v = ie(), _ = re(), P = y ? _ : void 0, I = o !== void 0, [q, W] = L(
109
+ const { t: H } = ae(), v = ie(), _ = se(), P = y ? _ : void 0, w = o !== void 0, [q, W] = L(
109
110
  () => g(m ?? "", e)
110
111
  ), p = g(
111
- I ? o : q,
112
+ w ? o : q,
112
113
  e
113
- ), G = de(p, e), k = v.disabled || !!S, B = v.invalid || !!$, J = B ? "error" : "default", C = R([]), w = R(p.length === e), d = R(p);
114
+ ), G = de(p, e), I = v.disabled || !!S, B = v.invalid || !!$, J = B ? "error" : "default", C = R([]), h = R(p.length === e), d = R(p);
114
115
  d.current = p;
115
116
  const Q = () => {
116
- const r = p.length;
117
- return r >= e ? e - 1 : r;
118
- }, [f, V] = L(Q);
119
- se(() => {
120
- f >= e && V(e - 1);
117
+ const s = p.length;
118
+ return s >= e ? e - 1 : s;
119
+ }, [f, k] = L(Q);
120
+ re(() => {
121
+ f >= e && k(e - 1);
121
122
  }, [f, e]);
122
123
  const c = N(
123
- (r) => {
124
- const t = Math.max(0, Math.min(e - 1, r));
125
- V(t);
126
- const s = C.current[t];
127
- s && (s.focus(), s.select());
124
+ (s) => {
125
+ const t = Math.max(0, Math.min(e - 1, s));
126
+ k(t);
127
+ const r = C.current[t];
128
+ r && (r.focus(), r.select());
128
129
  },
129
130
  [e]
130
131
  ), u = N(
131
- (r) => {
132
- const t = g(r, e);
133
- I || W(t), d.current = t, l == null || l(t), t.length === e ? w.current || (w.current = !0, n == null || n(t)) : w.current = !1;
132
+ (s) => {
133
+ const t = g(s, e);
134
+ w || W(t), d.current = t, l == null || l(t), t.length === e ? h.current || (h.current = !0, n == null || n(t)) : h.current = !1;
134
135
  },
135
- [I, e, l, n]
136
- ), U = (r) => (t) => {
137
- const s = t.target.value, a = F(s).replace(/\D/g, ""), i = d.current;
136
+ [w, e, l, n]
137
+ ), U = (s) => (t) => {
138
+ const r = t.target.value, a = F(r).replace(/\D/g, ""), i = d.current;
138
139
  if (a.length === 0) {
139
- if (s === "" && r < i.length) {
140
- const A = i.slice(0, r) + i.slice(r + 1);
140
+ if (r === "" && s < i.length) {
141
+ const A = i.slice(0, s) + i.slice(s + 1);
141
142
  u(A);
142
143
  }
143
144
  return;
144
145
  }
145
- const b = i.slice(0, r), h = i.slice(r + a.length), D = (b + a + h).slice(0, e);
146
+ const b = i.slice(0, s), V = i.slice(s + a.length), D = (b + a + V).slice(0, e);
146
147
  u(D);
147
- const T = Math.min(r + a.length, e - 1);
148
+ const T = Math.min(s + a.length, e - 1);
148
149
  c(T);
149
- }, X = (r) => (t) => {
150
- const s = d.current;
150
+ }, X = (s) => (t) => {
151
+ const r = d.current;
151
152
  if (t.key === "Backspace") {
152
- if (s[r]) {
153
+ if (r[s]) {
153
154
  t.preventDefault();
154
- const a = s.slice(0, r) + s.slice(r + 1);
155
+ const a = r.slice(0, s) + r.slice(s + 1);
155
156
  u(a);
156
157
  return;
157
158
  }
158
- if (r > 0) {
159
+ if (s > 0) {
159
160
  t.preventDefault();
160
- const a = s.slice(0, r - 1) + s.slice(r);
161
- u(a), c(r - 1);
161
+ const a = r.slice(0, s - 1) + r.slice(s);
162
+ u(a), c(s - 1);
162
163
  }
163
164
  return;
164
165
  }
165
166
  if (t.key === "ArrowLeft") {
166
- t.preventDefault(), r > 0 && c(r - 1);
167
+ t.preventDefault(), s > 0 && c(s - 1);
167
168
  return;
168
169
  }
169
170
  if (t.key === "ArrowRight") {
170
- t.preventDefault(), r < e - 1 && c(r + 1);
171
+ t.preventDefault(), s < e - 1 && c(s + 1);
171
172
  return;
172
173
  }
173
174
  if (t.key === "Home") {
@@ -175,20 +176,20 @@ const pe = te(
175
176
  return;
176
177
  }
177
178
  t.key === "End" && (t.preventDefault(), c(e - 1));
178
- }, Y = (r) => (t) => {
179
+ }, Y = (s) => (t) => {
179
180
  const a = t.clipboardData.getData("text").replace(/\s+/g, ""), i = F(a);
180
181
  if (!/^[0-9]+$/.test(i)) return;
181
182
  t.preventDefault();
182
- const b = d.current, h = b.slice(0, r), D = b.slice(r + i.length), T = (h + i + D).slice(0, e);
183
+ const b = d.current, V = b.slice(0, s), D = b.slice(s + i.length), T = (V + i + D).slice(0, e);
183
184
  u(T);
184
- const A = Math.min(r + i.length, e - 1);
185
+ const A = Math.min(s + i.length, e - 1);
185
186
  c(A);
186
- }, Z = (r) => (t) => {
187
- V(r), t.currentTarget.select();
187
+ }, Z = (s) => (t) => {
188
+ k(s), t.currentTarget.select();
188
189
  }, E = v.id, x = oe(
189
190
  () => ({
190
191
  getValue: () => d.current,
191
- setValue: (r) => u(r),
192
+ setValue: (s) => u(s),
192
193
  clear: () => u(""),
193
194
  focus: () => c(f),
194
195
  isComplete: () => d.current.length === e
@@ -214,12 +215,12 @@ const pe = te(
214
215
  "aria-labelledby": P,
215
216
  "aria-invalid": B || void 0,
216
217
  "aria-describedby": v.describedBy || void 0,
217
- "aria-disabled": k || void 0,
218
+ "aria-disabled": I || void 0,
218
219
  "data-component": "otp-input",
219
220
  "data-component-id": K,
220
221
  className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]",
221
- children: G.map((r, t) => {
222
- const s = !k && t === f;
222
+ children: G.map((s, t) => {
223
+ const r = !I && t === f;
223
224
  return /* @__PURE__ */ M(
224
225
  "input",
225
226
  {
@@ -232,9 +233,9 @@ const pe = te(
232
233
  pattern: "[0-9]*",
233
234
  autoComplete: t === 0 ? "one-time-code" : "off",
234
235
  maxLength: 1,
235
- value: r,
236
- disabled: k,
237
- tabIndex: s ? 0 : -1,
236
+ value: s,
237
+ disabled: I,
238
+ tabIndex: r ? 0 : -1,
238
239
  "aria-label": H("inputs.otp.digitLabel", {
239
240
  current: t + 1,
240
241
  total: e
@@ -257,4 +258,4 @@ pe.displayName = "OTPInput";
257
258
  export {
258
259
  pe as O
259
260
  };
260
- //# sourceMappingURL=otp-input-CI-Zv5q6.js.map
261
+ //# sourceMappingURL=otp-input-BBXYvLx5.js.map
@@ -1,5 +1,5 @@
1
1
  import { jsxs as f, jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as Se, useContext as Pe, useMemo as m, useState as P, useRef as $, useEffect as Ve, useLayoutEffect as Fe, useCallback as se } from "react";
2
+ import { forwardRef as ke, useContext as Pe, useMemo as m, useState as P, useRef as $, useEffect as Ve, useLayoutEffect as Fe, useCallback as se } from "react";
3
3
  import * as V from "@radix-ui/react-popover";
4
4
  import { R as Ee, _ as b } from "./index-4xgbg-sn.js";
5
5
  import { c as H } from "./index-D2ZczOXr.js";
@@ -70,9 +70,10 @@ const Me = {
70
70
  }, qe = H(
71
71
  [
72
72
  "ds:group ds:relative ds:inline-flex ds:items-stretch ds:w-full",
73
- "ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-background",
73
+ "ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input",
74
+ "ds:shadow-[var(--shadow-input)]",
74
75
  "ds:text-foreground",
75
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
76
+ "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
76
77
  "ds:focus-within:outline-[length:var(--focus-ring-width)] ds:focus-within:outline-solid",
77
78
  "ds:focus-within:outline-ring ds:focus-within:outline-offset-[length:var(--focus-ring-offset)]",
78
79
  "ds:forced-colors:focus-within:outline-[CanvasText]",
@@ -218,7 +219,7 @@ function et(n, r) {
218
219
  })), y = new Intl.Collator(n);
219
220
  return a.sort((o, u) => y.compare(o.name, u.name));
220
221
  }
221
- const tt = Se(
222
+ const tt = ke(
222
223
  function({
223
224
  value: r,
224
225
  defaultValue: d,
@@ -237,7 +238,7 @@ const tt = Se(
237
238
  required: ue,
238
239
  "aria-label": pe
239
240
  }, fe) {
240
- const { t: v, i18n: j } = je(), C = Te(), w = Pe(Ae) !== null, z = m(
241
+ const { t: v, i18n: j } = je(), C = Te(), x = Pe(Ae) !== null, z = m(
241
242
  () => new Set(Be()),
242
243
  []
243
244
  ), G = m(() => {
@@ -257,7 +258,7 @@ const tt = Se(
257
258
  return { country: e, display: "" };
258
259
  }, []), [l, B] = P(G.country), [O, p] = P(
259
260
  G.display
260
- ), [D, T] = P(!1), [me, U] = P(""), W = r !== void 0, A = $(""), R = $(null), k = $(null), he = Le(fe, k);
261
+ ), [D, T] = P(!1), [me, U] = P(""), W = r !== void 0, A = $(""), R = $(null), S = $(null), he = Le(fe, S);
261
262
  Ve(() => {
262
263
  if (!W) return;
263
264
  const e = r ?? "";
@@ -272,7 +273,7 @@ const tt = Se(
272
273
  if (R.current == null) return;
273
274
  const e = R.current;
274
275
  R.current = null;
275
- const t = k.current;
276
+ const t = S.current;
276
277
  t && document.activeElement === t && t.setSelectionRange(e, e);
277
278
  });
278
279
  const h = se(
@@ -286,11 +287,11 @@ const tt = Se(
286
287
  });
287
288
  },
288
289
  [o]
289
- ), ge = E ?? (w ? C.id : void 0), Y = (w ? C.disabled : !1) || !!ie, be = (w ? C.required : !1) || !!ue, Z = w ? C.invalid : !1, ye = Z ? "error" : ae, ve = w && C.describedBy ? C.describedBy : void 0, Ce = de ?? v("inputs.phone.placeholder", "Phone number"), xe = (e) => {
290
+ ), ge = E ?? (x ? C.id : void 0), Y = (x ? C.disabled : !1) || !!ie, be = (x ? C.required : !1) || !!ue, Z = x ? C.invalid : !1, ye = Z ? "error" : ae, ve = x && C.describedBy ? C.describedBy : void 0, Ce = de ?? v("inputs.phone.placeholder", "Phone number"), we = (e) => {
290
291
  if (_) return;
291
- const t = e.target, s = t.value, c = t.selectionStart ?? s.length, x = Je(s, c), K = new M(l).input(s);
292
- R.current = Qe(K, x), p(K), h(K, l);
293
- }, J = A, we = m(
292
+ const t = e.target, s = t.value, c = t.selectionStart ?? s.length, w = Je(s, c), K = new M(l).input(s);
293
+ R.current = Qe(K, w), p(K), h(K, l);
294
+ }, J = A, xe = m(
294
295
  () => ({
295
296
  getValue: () => J.current,
296
297
  setValue: (e) => {
@@ -311,12 +312,12 @@ const tt = Se(
311
312
  },
312
313
  focus: () => {
313
314
  var e;
314
- return (e = k.current) == null ? void 0 : e.focus();
315
+ return (e = S.current) == null ? void 0 : e.focus();
315
316
  }
316
317
  }),
317
318
  [l, h, J]
318
319
  );
319
- Ke(Me, we, E);
320
+ Ke(Me, xe, E);
320
321
  const ze = (e) => {
321
322
  if (e === l) {
322
323
  T(!1);
@@ -324,8 +325,8 @@ const tt = Se(
324
325
  }
325
326
  const t = O.replace(/\D/g, ""), s = new M(e), c = t ? s.input(t) : "";
326
327
  B(e), p(c), T(!1), U(""), h(c, e), requestAnimationFrame(() => {
327
- var x;
328
- (x = k.current) == null || x.focus();
328
+ var w;
329
+ (w = S.current) == null || w.focus();
329
330
  });
330
331
  }, g = m(
331
332
  () => et(
@@ -343,15 +344,15 @@ const tt = Se(
343
344
  ), Ne = m(
344
345
  () => L.size > 0 ? g.filter((e) => !L.has(e.code)) : g,
345
346
  [g, L]
346
- ), S = m(
347
+ ), k = m(
347
348
  () => g.find((e) => e.code === l),
348
349
  [g, l]
349
- ), Q = S ? S.dialCode : "", Ie = S ? S.name : l, X = v("inputs.phone.countryPickerLabel", "Country"), Re = `${X}: ${Ie}, +${Q}`, ke = se(
350
+ ), Q = k ? k.dialCode : "", Ie = k ? k.name : l, X = v("inputs.phone.countryPickerLabel", "Country"), Re = `${X}: ${Ie}, +${Q}`, Se = se(
350
351
  (e, t, s) => {
351
- const c = q(e), x = q(t), te = s == null ? void 0 : s.map(q);
352
+ const c = q(e), w = q(t), te = s == null ? void 0 : s.map(q);
352
353
  return Ee(
353
354
  c,
354
- x,
355
+ w,
355
356
  te
356
357
  );
357
358
  },
@@ -427,7 +428,7 @@ const tt = Se(
427
428
  sideOffset: 6,
428
429
  align: "start",
429
430
  className: Ge,
430
- children: /* @__PURE__ */ f(b, { filter: ke, shouldFilter: !0, loop: !0, label: X, children: [
431
+ children: /* @__PURE__ */ f(b, { filter: Se, shouldFilter: !0, loop: !0, label: X, children: [
431
432
  /* @__PURE__ */ i(
432
433
  b.Input,
433
434
  {
@@ -489,7 +490,7 @@ const tt = Se(
489
490
  "aria-label": pe,
490
491
  "aria-describedby": ve,
491
492
  "aria-invalid": Z || void 0,
492
- onChange: xe,
493
+ onChange: we,
493
494
  className: _e({ size: u })
494
495
  }
495
496
  )
@@ -505,4 +506,4 @@ export {
505
506
  He as c,
506
507
  qe as p
507
508
  };
508
- //# sourceMappingURL=phone-input-DtBVs5fz.js.map
509
+ //# sourceMappingURL=phone-input-DKSHX7NQ.js.map
@@ -1752,9 +1752,12 @@ function No({ orientation: e }) {
1752
1752
  const Co = ve(
1753
1753
  [
1754
1754
  "ds:relative ds:flex ds:items-center ds:w-full",
1755
- "ds:rounded-[var(--radius-sm)] ds:border ds:bg-background ds:text-foreground",
1755
+ // Soft-chrome look matches `INPUT_SURFACE_CHROME` so the trigger
1756
+ // shares the fill + halo with TextInput / Select / NumberInput.
1757
+ "ds:rounded-[var(--radius-sm)] ds:border ds:bg-input ds:text-foreground",
1758
+ "ds:shadow-[var(--shadow-input)]",
1756
1759
  "ds:placeholder:text-muted-foreground",
1757
- "ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
1760
+ "ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
1758
1761
  "ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
1759
1762
  "ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
1760
1763
  "ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
@@ -1821,4 +1824,4 @@ export {
1821
1824
  _o as p,
1822
1825
  Co as t
1823
1826
  };
1824
- //# sourceMappingURL=react-day-picker-C04L_28V.js.map
1827
+ //# sourceMappingURL=react-day-picker-C5F3-TTX.js.map
@@ -3,7 +3,7 @@ import { forwardRef as te, useState as _, useEffect as F, useRef as j, useMemo a
3
3
  import { c as A } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as U } from "react-i18next";
5
5
  import * as q from "@radix-ui/react-popover";
6
- import { S as oe } from "./search-input-BBtSRH-Q.js";
6
+ import { S as oe } from "./search-input-BtEJAJHa.js";
7
7
  import { u as W } from "./registry-C9nwlNyL.js";
8
8
  import { n as O } from "./normalize-diacritics-BNGbFNlJ.js";
9
9
  import { S as ie } from "./search-BonnQsHv.js";
@@ -582,4 +582,4 @@ export {
582
582
  Ie as f,
583
583
  J as s
584
584
  };
585
- //# sourceMappingURL=search-bar-DmZZ9UvV.js.map
585
+ //# sourceMappingURL=search-bar-DORSAzNt.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as ne } from "react/jsx-runtime";
2
2
  import { forwardRef as ie, useState as F, useRef as K, useLayoutEffect as oe, useCallback as V, useImperativeHandle as de, useEffect as le } from "react";
3
3
  import { c as x } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as ce } from "react-i18next";
5
- import { T as ue } from "./text-input-1oqFRbVI.js";
5
+ import { T as ue } from "./text-input-CakysYnD.js";
6
6
  import { S as fe } from "./spinner-DirtWZNG.js";
7
7
  import { u as me } from "./form-field-context-B3APVHKx.js";
8
8
  import { u as be } from "./use-debounced-callback-BisrB-Fq.js";
@@ -233,4 +233,4 @@ Ee.displayName = "SearchInput";
233
233
  export {
234
234
  Ee as S
235
235
  };
236
- //# sourceMappingURL=search-input-BBtSRH-Q.js.map
236
+ //# sourceMappingURL=search-input-BtEJAJHa.js.map