@alfadocs/ui-kit 0.25.1 → 0.30.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 (205) hide show
  1. package/dist/_chunks/{agenda-card-BmpaUG1h.js → agenda-card-CznB7K8e.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DiInnVqk.js → agenda-tray-C_bha7oK.js} +4 -4
  3. package/dist/_chunks/{ai-prompt-input-B5MdixzR.js → ai-prompt-input-Bka3jX3i.js} +2 -2
  4. package/dist/_chunks/{alia-sidebar-CUi2UCbY.js → alia-sidebar-CnvXq95r.js} +92 -109
  5. package/dist/_chunks/{audio-recorder-D4xM3H5i.js → audio-recorder-OB6IV9B1.js} +2 -2
  6. package/dist/_chunks/{autocomplete-C7xq06bP.js → autocomplete-CUh0f7Dj.js} +2 -2
  7. package/dist/_chunks/{avatar-BpFohgWG.js → avatar-D_H4emLo.js} +7 -7
  8. package/dist/_chunks/{benefit-card-DXmrAyfn.js → benefit-card-CjYM8vNr.js} +29 -29
  9. package/dist/_chunks/booking-BYuc_8HV.js +2250 -0
  10. package/dist/_chunks/{calendar-zy0tUUVG.js → calendar-WWNx448i.js} +114 -142
  11. package/dist/_chunks/{card-C353dU-H.js → card-DKTMLVrw.js} +11 -11
  12. package/dist/_chunks/{carousel.agent-DnPiqijR.js → carousel.agent-C9swH-Uf.js} +2 -2
  13. package/dist/_chunks/{chat-input-B3XmFGDw.js → chat-input-BfDcz1Yi.js} +2 -2
  14. package/dist/_chunks/{chat-message-W3k8rLOA.js → chat-message-fg221-yx.js} +2 -2
  15. package/dist/_chunks/{command-palette-DkL-aW4O.js → command-palette-11BieSNq.js} +2 -2
  16. package/dist/_chunks/{contact-card-CjG7c-1q.js → contact-card-DYbp--s-.js} +3 -3
  17. package/dist/_chunks/{date-picker-BIoSLRly.js → date-picker-D0Ry1dMz.js} +26 -27
  18. package/dist/_chunks/{date-range-picker-9gANFNG9.js → date-range-picker-DYgHzMOo.js} +19 -20
  19. package/dist/_chunks/{date-time-picker-DG7BiGdb.js → date-time-picker-CGmGtcyc.js} +10 -11
  20. package/dist/_chunks/{description-list-Bsga4IW8.js → description-list-yl3y3QKg.js} +34 -24
  21. package/dist/_chunks/{dialog-DUomPCRS.js → dialog-BBXqpZIt.js} +2 -2
  22. package/dist/_chunks/{editable-currency-cell-renderer-DJB5MxAI.js → editable-currency-cell-renderer-DSReCae7.js} +7 -7
  23. package/dist/_chunks/{empty-state-3CLJIXSj.js → empty-state-BLy7tigq.js} +13 -33
  24. package/dist/_chunks/eye-LHlSU38h.js +21 -0
  25. package/dist/_chunks/{freemium-paywall-CM6V1zNf.js → freemium-paywall-B9c8Ylww.js} +11 -11
  26. package/dist/_chunks/{header-DqmKROIY.js → header-CkMb1TZS.js} +24 -24
  27. package/dist/_chunks/heart-pulse-CvuyFKHB.js +21 -0
  28. package/dist/_chunks/icon-button-BRHSSFmZ.js +70 -0
  29. package/dist/_chunks/{isSameDay-ecuM8PBB.js → isSameDay-DHG8Xade.js} +4 -4
  30. package/dist/_chunks/{key-value-pair-DBuOCtIc.js → key-value-pair-CqeKiP__.js} +2 -2
  31. package/dist/_chunks/{link-DmM5IevO.js → link-DrD_cRUg.js} +50 -45
  32. package/dist/_chunks/{locale-picker-BxEUUPW7.js → locale-picker-BHxbTNmR.js} +297 -208
  33. package/dist/_chunks/{map-view-CcwycFQX.js → map-view-DyB8tr6c.js} +9 -9
  34. package/dist/_chunks/{matrix-rain-CRPMXcVx.js → matrix-rain-sDOUUwZp.js} +35 -35
  35. package/dist/_chunks/{message-card-i61k1TGc.js → message-card-DjRtA8GG.js} +3 -3
  36. package/dist/_chunks/{message-tray-DrV7G-wR.js → message-tray-DfsAMncP.js} +3 -3
  37. package/dist/_chunks/monitor-D-SFdbrU.js +16 -0
  38. package/dist/_chunks/{notification-card-ejOw5g6g.js → notification-card-B_847w5g.js} +3 -3
  39. package/dist/_chunks/{notification-tray-D_69dXFY.js → notification-tray-6f7smmT1.js} +22 -19
  40. package/dist/_chunks/parseISO-Dk4xa7q6.js +120 -0
  41. package/dist/_chunks/patient-search-BhlxYAI3.js +1102 -0
  42. package/dist/_chunks/patient-shell-CAXYzbRw.js +173 -0
  43. package/dist/_chunks/{payment-form-F7uh0Rqr.js → payment-form-Ds3rxvad.js} +2 -2
  44. package/dist/_chunks/{pdf-viewer-CuYaVR1I.js → pdf-viewer-CIuaocnq.js} +2 -2
  45. package/dist/_chunks/{popover--derJ_wq.js → popover-D0slaBB9.js} +17 -13
  46. package/dist/_chunks/{privacy-lock-BKsI6ReN.js → privacy-lock-BI4vi9Ud.js} +2 -2
  47. package/dist/_chunks/public-footer.agent-CA29gxHJ.js +516 -0
  48. package/dist/_chunks/{public-header.agent-BQ3r6Hgq.js → public-header.agent-5U3S9QiC.js} +49 -41
  49. package/dist/_chunks/react-day-picker-D3yzgvDB.js +3127 -0
  50. package/dist/_chunks/{recaptcha-widget-Kp1XntuE.js → recaptcha-widget-BtBNb6tB.js} +2 -2
  51. package/dist/_chunks/reviews-panel-CFttsfuC.js +513 -0
  52. package/dist/_chunks/{search-bar-DORSAzNt.js → search-bar-BRMW1-WG.js} +2 -2
  53. package/dist/_chunks/{search-input-BtEJAJHa.js → search-input-CIA6pPfn.js} +2 -2
  54. package/dist/_chunks/{sheet-BT0izeoI.js → sheet-D8M8hf8B.js} +2 -2
  55. package/dist/_chunks/{sign-in-with-alfadocs-button-4zZC-I6y.js → sign-in-with-alfadocs-button-BI0fVonM.js} +2 -2
  56. package/dist/_chunks/slot-grid-B2zprPcv.js +387 -0
  57. package/dist/_chunks/sparkles-CuYXqQLg.js +23 -0
  58. package/dist/_chunks/{spinner-DirtWZNG.js → spinner-CCByyvcb.js} +2 -2
  59. package/dist/_chunks/stepper-accordion-BfS6lUB9.js +257 -0
  60. package/dist/_chunks/stepper-accordion.agent-C4quJ-MD.js +71 -0
  61. package/dist/_chunks/stethoscope-DT5qCW8Y.js +18 -0
  62. package/dist/_chunks/{sun-Eweh5fvi.js → sun-BuXE0xUS.js} +3 -15
  63. package/dist/_chunks/{task-tray-B3A2fRGR.js → task-tray-Bcmrrs8m.js} +3 -3
  64. package/dist/_chunks/{theme-toggle-FrotC2VI.js → theme-toggle-nPzb378f.js} +37 -36
  65. package/dist/_chunks/{timeline-jmd7lfDf.js → timeline-CR7HjZCK.js} +3 -3
  66. package/dist/_chunks/{toast.agent-32WNQ-_x.js → toast.agent-CTF6nIj5.js} +2 -2
  67. package/dist/_chunks/{transcript-panel-DUrjx5sa.js → transcript-panel-QUQ9XJmf.js} +2 -2
  68. package/dist/_chunks/{use-password-requirements-C9vKBSVn.js → use-password-requirements-E0sSfx5X.js} +38 -53
  69. package/dist/_chunks/use-theme-C2dHKUAN.js +145 -0
  70. package/dist/_chunks/{workflow-map-BR6txfFX.js → workflow-map-BKsKdYvZ.js} +5 -5
  71. package/dist/agent-catalog.json +151 -51
  72. package/dist/components/agenda-card/index.js +1 -1
  73. package/dist/components/agenda-tray/index.js +1 -1
  74. package/dist/components/ai-prompt-input/index.js +1 -1
  75. package/dist/components/audio-recorder/index.js +1 -1
  76. package/dist/components/autocomplete/index.js +1 -1
  77. package/dist/components/avatar/index.js +1 -1
  78. package/dist/components/benefit-card/index.js +1 -1
  79. package/dist/components/booking/booking-types.d.ts +145 -0
  80. package/dist/components/booking/booking.agent.d.ts +4 -0
  81. package/dist/components/booking/booking.d.ts +6 -0
  82. package/dist/components/booking/cascade.d.ts +96 -0
  83. package/dist/components/booking/details-form.d.ts +32 -0
  84. package/dist/components/booking/index.d.ts +5 -0
  85. package/dist/components/booking/index.js +8 -0
  86. package/dist/components/button/index.js +1 -1
  87. package/dist/components/calendar/index.js +1 -1
  88. package/dist/components/card/index.js +1 -1
  89. package/dist/components/carousel/index.js +1 -1
  90. package/dist/components/chat-input/index.js +1 -1
  91. package/dist/components/chat-message/index.js +1 -1
  92. package/dist/components/checkbox/checkbox.d.ts +6 -2
  93. package/dist/components/command-palette/index.js +1 -1
  94. package/dist/components/contact-card/index.js +1 -1
  95. package/dist/components/data-table/index.js +1 -1
  96. package/dist/components/date-picker/index.js +1 -1
  97. package/dist/components/date-range-picker/index.js +1 -1
  98. package/dist/components/date-time-picker/index.js +1 -1
  99. package/dist/components/description-list/index.js +1 -1
  100. package/dist/components/dialog/index.js +1 -1
  101. package/dist/components/empty-state/index.js +1 -1
  102. package/dist/components/freemium-paywall/index.js +1 -1
  103. package/dist/components/header/index.js +1 -1
  104. package/dist/components/header-settings/index.js +16 -15
  105. package/dist/components/icon-button/index.js +1 -1
  106. package/dist/components/index.d.ts +4 -1
  107. package/dist/components/key-value-pair/index.js +1 -1
  108. package/dist/components/link/index.js +1 -1
  109. package/dist/components/link/link.d.ts +7 -0
  110. package/dist/components/locale-picker/index.js +1 -1
  111. package/dist/components/map-view/index.js +1 -1
  112. package/dist/components/matrix-rain/index.js +1 -1
  113. package/dist/components/message-card/index.js +1 -1
  114. package/dist/components/message-tray/index.js +1 -1
  115. package/dist/components/notification-card/index.js +1 -1
  116. package/dist/components/notification-tray/index.js +1 -1
  117. package/dist/components/password-input/index.js +1 -1
  118. package/dist/components/patient-search/index.d.ts +4 -0
  119. package/dist/components/patient-search/index.js +6 -0
  120. package/dist/components/patient-search/patient-search.agent.d.ts +4 -0
  121. package/dist/components/patient-search/patient-search.d.ts +103 -0
  122. package/dist/components/payment-form/index.js +1 -1
  123. package/dist/components/pdf-viewer/index.js +1 -1
  124. package/dist/components/popover/index.js +1 -1
  125. package/dist/components/privacy-lock/index.js +1 -1
  126. package/dist/components/public-footer/index.d.ts +6 -0
  127. package/dist/components/public-footer/index.js +10 -0
  128. package/dist/components/public-footer/legal-urls.d.ts +18 -0
  129. package/dist/components/public-footer/public-footer.agent.d.ts +4 -0
  130. package/dist/components/public-footer/public-footer.d.ts +51 -0
  131. package/dist/components/public-footer/socials.d.ts +9 -0
  132. package/dist/components/public-header/index.js +1 -1
  133. package/dist/components/recaptcha-widget/index.js +1 -1
  134. package/dist/components/reviews-panel/index.d.ts +4 -0
  135. package/dist/components/reviews-panel/index.js +6 -0
  136. package/dist/components/reviews-panel/reviews-panel.agent.d.ts +4 -0
  137. package/dist/components/reviews-panel/reviews-panel.d.ts +76 -0
  138. package/dist/components/search-bar/index.js +1 -1
  139. package/dist/components/search-input/index.js +1 -1
  140. package/dist/components/sheet/index.js +1 -1
  141. package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
  142. package/dist/components/slot-grid/index.js +1 -1
  143. package/dist/components/spinner/index.js +1 -1
  144. package/dist/components/stepper-accordion/index.js +4 -3
  145. package/dist/components/task-tray/index.js +1 -1
  146. package/dist/components/theme-toggle/index.js +1 -1
  147. package/dist/components/timeline/index.js +1 -1
  148. package/dist/components/toast/index.js +1 -1
  149. package/dist/components/transcript-panel/index.js +1 -1
  150. package/dist/components/workflow/index.js +1 -1
  151. package/dist/hooks/index.js +1 -1
  152. package/dist/i18n/config.js +4923 -49
  153. package/dist/i18n/locales/ar.d.ts +272 -0
  154. package/dist/i18n/locales/de.d.ts +272 -0
  155. package/dist/i18n/locales/el.d.ts +272 -0
  156. package/dist/i18n/locales/es.d.ts +272 -0
  157. package/dist/i18n/locales/fr.d.ts +272 -0
  158. package/dist/i18n/locales/hi.d.ts +272 -0
  159. package/dist/i18n/locales/ja.d.ts +272 -0
  160. package/dist/i18n/locales/nl.d.ts +272 -0
  161. package/dist/i18n/locales/pl.d.ts +272 -0
  162. package/dist/i18n/locales/pt.d.ts +272 -0
  163. package/dist/i18n/locales/ro.d.ts +272 -0
  164. package/dist/i18n/locales/ru.d.ts +272 -0
  165. package/dist/i18n/locales/sq.d.ts +272 -0
  166. package/dist/i18n/locales/sv.d.ts +272 -0
  167. package/dist/i18n/locales/tr.d.ts +272 -0
  168. package/dist/i18n/locales/zh.d.ts +272 -0
  169. package/dist/i18n/resources.d.ts +544 -0
  170. package/dist/index.js +364 -348
  171. package/dist/locales/ar.json +273 -1
  172. package/dist/locales/de.json +273 -1
  173. package/dist/locales/el.json +273 -1
  174. package/dist/locales/en.json +273 -1
  175. package/dist/locales/es.json +273 -1
  176. package/dist/locales/fr.json +273 -1
  177. package/dist/locales/hi.json +273 -1
  178. package/dist/locales/it.json +273 -1
  179. package/dist/locales/ja.json +273 -1
  180. package/dist/locales/nl.json +273 -1
  181. package/dist/locales/pl.json +273 -1
  182. package/dist/locales/pt.json +273 -1
  183. package/dist/locales/ro.json +273 -1
  184. package/dist/locales/ru.json +273 -1
  185. package/dist/locales/sq.json +273 -1
  186. package/dist/locales/sv.json +273 -1
  187. package/dist/locales/tr.json +273 -1
  188. package/dist/locales/zh.json +273 -1
  189. package/dist/patterns/alia-assistant/index.js +1 -1
  190. package/dist/patterns/patient-shell/index.js +1 -1
  191. package/dist/tokens.css +1 -1
  192. package/package.json +17 -1
  193. package/dist/_chunks/icon-button-C4CGcYuz.js +0 -54
  194. package/dist/_chunks/isSameMonth-5wNF2f4I.js +0 -1307
  195. package/dist/_chunks/patient-shell-B164drIa.js +0 -173
  196. package/dist/_chunks/react-day-picker-C5F3-TTX.js +0 -1827
  197. package/dist/_chunks/slot-grid-CgpYgBkW.js +0 -502
  198. package/dist/_chunks/stepper-C-sIpRRU.js +0 -7
  199. package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +0 -322
  200. package/dist/_chunks/stepper-calendar-BLOJUE0-.js +0 -648
  201. package/dist/_chunks/use-theme-B1cwAXJR.js +0 -145
  202. package/dist/components/stepper-calendar/index.d.ts +0 -4
  203. package/dist/components/stepper-calendar/index.js +0 -6
  204. package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +0 -4
  205. package/dist/components/stepper-calendar/stepper-calendar.d.ts +0 -62
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
2
  import { forwardRef as v } from "react";
3
3
  import { c as h } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as b } from "react-i18next";
5
- import { A as x } from "./avatar-BpFohgWG.js";
5
+ import { A as x } from "./avatar-D_H4emLo.js";
6
6
  import { B as y } from "./badge-cLYVGlMh.js";
7
7
  import { C as N } from "./chevron-right-BrpYejk0.js";
8
8
  const C = h(
@@ -138,4 +138,4 @@ export {
138
138
  T as A,
139
139
  w as i
140
140
  };
141
- //# sourceMappingURL=agenda-card-BmpaUG1h.js.map
141
+ //# sourceMappingURL=agenda-card-CznB7K8e.js.map
@@ -2,10 +2,10 @@ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
2
  import { forwardRef as R, useRef as f, useImperativeHandle as z, useMemo as C } from "react";
3
3
  import { c as S } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as j } from "react-i18next";
5
- import { I as _ } from "./icon-button-C4CGcYuz.js";
5
+ import { I as _ } from "./icon-button-BRHSSFmZ.js";
6
6
  import { S as E } from "./skeleton-CZbwyJAA.js";
7
- import { E as P } from "./empty-state-3CLJIXSj.js";
8
- import { A as H } from "./agenda-card-BmpaUG1h.js";
7
+ import { E as P } from "./empty-state-BLy7tigq.js";
8
+ import { A as H } from "./agenda-card-CznB7K8e.js";
9
9
  import { u as K } from "./registry-C9nwlNyL.js";
10
10
  import { c as L } from "./createLucideIcon-CrFbzy84.js";
11
11
  import { P as V } from "./plus-CYKNmfuA.js";
@@ -178,4 +178,4 @@ export {
178
178
  G as A,
179
179
  D as a
180
180
  };
181
- //# sourceMappingURL=agenda-tray-DiInnVqk.js.map
181
+ //# sourceMappingURL=agenda-tray-C_bha7oK.js.map
@@ -6,7 +6,7 @@ import { u as J } from "./use-controllable-state-BiY4xTzM.js";
6
6
  import { u as Re } from "./registry-C9nwlNyL.js";
7
7
  import { _ as g } from "./index-4xgbg-sn.js";
8
8
  import { u as De } from "./index-BcMWc8W2.js";
9
- import { I as te } from "./icon-button-C4CGcYuz.js";
9
+ import { I as te } from "./icon-button-BRHSSFmZ.js";
10
10
  import { S as _e } from "./select-C92AT_OZ.js";
11
11
  import { S as Ae } from "./send-CySZIRPJ.js";
12
12
  import { X as Le } from "./x-CCcI3eJp.js";
@@ -477,4 +477,4 @@ export {
477
477
  Ze as A,
478
478
  Ue as a
479
479
  };
480
- //# sourceMappingURL=ai-prompt-input-B5MdixzR.js.map
480
+ //# sourceMappingURL=ai-prompt-input-Bka3jX3i.js.map
@@ -1,43 +1,26 @@
1
1
  import { jsx as e, jsxs as o, Fragment as A } from "react/jsx-runtime";
2
- import { forwardRef as k, useMemo as U } from "react";
2
+ import { forwardRef as C, useMemo as U } from "react";
3
3
  import * as ee from "@radix-ui/react-dialog";
4
- import { useTranslation as y } from "react-i18next";
4
+ import { useTranslation as z } from "react-i18next";
5
5
  import { F as se } from "./floating-action-button-pojvb9gG.js";
6
- import { I as B } from "./icon-button-C4CGcYuz.js";
7
- import { S as E } from "./sheet-BT0izeoI.js";
6
+ import { I as B } from "./icon-button-BRHSSFmZ.js";
7
+ import { S as E } from "./sheet-D8M8hf8B.js";
8
8
  import { X as ae } from "./x-CCcI3eJp.js";
9
- import { A as C } from "./avatar-BpFohgWG.js";
9
+ import { S as P } from "./sparkles-CuYXqQLg.js";
10
+ import { A as k } from "./avatar-D_H4emLo.js";
10
11
  import { B as D } from "./button-DD_0Xdmr.js";
11
12
  import { C as de } from "./chat-container-izziXViv.js";
12
- import { C as ie } from "./chat-message-W3k8rLOA.js";
13
- import { C as re } from "./chat-input-B3XmFGDw.js";
13
+ import { C as ie } from "./chat-message-fg221-yx.js";
14
+ import { C as re } from "./chat-input-BfDcz1Yi.js";
14
15
  import { S as le } from "./streaming-text-BgjCTVOw.js";
15
- import { a as q, S as O } from "./suggestion-chip-C4kxWUIs.js";
16
+ import { a as O, S as Q } from "./suggestion-chip-C4kxWUIs.js";
16
17
  import { T as te } from "./typing-indicator-DHeVN4ob.js";
17
18
  import { P as ne } from "./progress-B-PSO5OS.js";
18
19
  import { S as ce } from "./square-CZoGU14v.js";
19
- import { c as oe } from "./createLucideIcon-CrFbzy84.js";
20
- import { P as me } from "./plus-CYKNmfuA.js";
21
- import { U as pe } from "./user-CPxpqFjJ.js";
22
- import { a as ue, C as fe } from "./chevrons-right-d9MwesPG.js";
23
- /**
24
- * @license lucide-react v1.8.0 - ISC
25
- *
26
- * This source code is licensed under the ISC license.
27
- * See the LICENSE file in the root directory of this source tree.
28
- */
29
- const ge = [
30
- [
31
- "path",
32
- {
33
- d: "M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",
34
- key: "1s2grr"
35
- }
36
- ],
37
- ["path", { d: "M20 2v4", key: "1rf3ol" }],
38
- ["path", { d: "M22 4h-4", key: "gwowj6" }],
39
- ["circle", { cx: "4", cy: "20", r: "2", key: "6kqj1y" }]
40
- ], M = oe("sparkles", ge), Q = {
20
+ import { P as oe } from "./plus-CYKNmfuA.js";
21
+ import { U as me } from "./user-CPxpqFjJ.js";
22
+ import { a as pe, C as ue } from "./chevrons-right-d9MwesPG.js";
23
+ const W = {
41
24
  sm: {
42
25
  box: "ds:size-[calc(var(--spacing-md)*2)]",
43
26
  icon: "ds:size-4"
@@ -51,11 +34,11 @@ const ge = [
51
34
  icon: "ds:size-8"
52
35
  }
53
36
  };
54
- function w({
37
+ function y({
55
38
  size: s,
56
39
  label: d
57
40
  }) {
58
- const i = Q[s];
41
+ const i = W[s];
59
42
  return /* @__PURE__ */ e(
60
43
  "span",
61
44
  {
@@ -73,15 +56,15 @@ function w({
73
56
  "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
74
57
  i.box
75
58
  ].join(" "),
76
- children: /* @__PURE__ */ e(M, { "aria-hidden": "true", className: i.icon })
59
+ children: /* @__PURE__ */ e(P, { "aria-hidden": "true", className: i.icon })
77
60
  }
78
61
  );
79
62
  }
80
- function he({
63
+ function fe({
81
64
  size: s,
82
65
  label: d
83
66
  }) {
84
- const i = Q[s];
67
+ const i = W[s];
85
68
  return /* @__PURE__ */ e(
86
69
  "span",
87
70
  {
@@ -95,14 +78,14 @@ function he({
95
78
  "ds:forced-colors:bg-transparent ds:forced-colors:border ds:forced-colors:border-[CanvasText]",
96
79
  i.box
97
80
  ].join(" "),
98
- children: /* @__PURE__ */ e(pe, { "aria-hidden": "true", className: i.icon })
81
+ children: /* @__PURE__ */ e(me, { "aria-hidden": "true", className: i.icon })
99
82
  }
100
83
  );
101
84
  }
102
- function be(s, d) {
103
- return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(he, { size: "sm", label: d }) };
85
+ function ge(s, d) {
86
+ return s ? s.slot ? { slot: s.slot } : { name: s.name, src: s.src } : { slot: /* @__PURE__ */ e(fe, { size: "sm", label: d }) };
104
87
  }
105
- function ve({
88
+ function he({
106
89
  assistantName: s,
107
90
  avatarSrc: d,
108
91
  greeting: i,
@@ -110,7 +93,7 @@ function ve({
110
93
  suggestions: l,
111
94
  onSuggestion: n
112
95
  }) {
113
- const { t: u } = y(), r = "alia-empty-state-heading";
96
+ const { t: u } = z(), r = "alia-empty-state-heading";
114
97
  return /* @__PURE__ */ o(
115
98
  "section",
116
99
  {
@@ -124,7 +107,7 @@ function ve({
124
107
  ].join(" "),
125
108
  "data-testid": "alia-empty-state",
126
109
  children: [
127
- d ? /* @__PURE__ */ e(C, { name: s, src: d, size: "xl" }) : /* @__PURE__ */ e(w, { size: "xl", label: s }),
110
+ d ? /* @__PURE__ */ e(k, { name: s, src: d, size: "xl" }) : /* @__PURE__ */ e(y, { size: "xl", label: s }),
128
111
  /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-xs)] ds:max-w-[32rem]", children: [
129
112
  /* @__PURE__ */ e(
130
113
  "h2",
@@ -137,12 +120,12 @@ function ve({
137
120
  /* @__PURE__ */ e("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: t })
138
121
  ] }),
139
122
  l && l.length > 0 ? /* @__PURE__ */ e("div", { className: "ds:w-full ds:max-w-[40rem]", children: /* @__PURE__ */ e(
140
- q,
123
+ O,
141
124
  {
142
125
  label: u("alia.exampleQuestions"),
143
126
  className: "ds:justify-center",
144
127
  children: l.map((c) => /* @__PURE__ */ e(
145
- O,
128
+ Q,
146
129
  {
147
130
  intent: "suggestion",
148
131
  startIcon: c.icon,
@@ -158,13 +141,13 @@ function ve({
158
141
  }
159
142
  );
160
143
  }
161
- function xe({
144
+ function be({
162
145
  message: s,
163
146
  assistantName: d,
164
147
  avatarSrc: i,
165
148
  renderMarkdown: t
166
149
  }) {
167
- const { t: l, i18n: n } = y(), u = l("chat.message.role.assistant"), r = U(() => {
150
+ const { t: l, i18n: n } = z(), u = l("chat.message.role.assistant"), r = U(() => {
168
151
  if (!s.timestamp) return null;
169
152
  const m = s.timestamp instanceof Date ? s.timestamp : new Date(s.timestamp);
170
153
  return Number.isNaN(m.getTime()) ? null : new Intl.DateTimeFormat(n.language, {
@@ -178,7 +161,7 @@ function xe({
178
161
  "aria-label": c,
179
162
  className: "ds:flex ds:w-full ds:items-start ds:flex-row ds:gap-[var(--spacing-sm)]",
180
163
  children: [
181
- i ? /* @__PURE__ */ e(C, { name: d, src: i, size: "sm" }) : /* @__PURE__ */ e(w, { size: "sm", label: d }),
164
+ i ? /* @__PURE__ */ e(k, { name: d, src: i, size: "sm" }) : /* @__PURE__ */ e(y, { size: "sm", label: d }),
182
165
  /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:items-start", children: /* @__PURE__ */ e(
183
166
  "div",
184
167
  {
@@ -206,14 +189,14 @@ function xe({
206
189
  }
207
190
  );
208
191
  }
209
- function Ne({
192
+ function ve({
210
193
  assistantName: s,
211
194
  avatarSrc: d,
212
195
  onNewConversation: i,
213
196
  headerEndSlot: t,
214
197
  density: l
215
198
  }) {
216
- const { t: n } = y();
199
+ const { t: n } = z();
217
200
  return /* @__PURE__ */ o(
218
201
  "header",
219
202
  {
@@ -231,14 +214,14 @@ function Ne({
231
214
  "data-testid": "alia-header",
232
215
  children: [
233
216
  d ? /* @__PURE__ */ e(
234
- C,
217
+ k,
235
218
  {
236
219
  name: s,
237
220
  src: d,
238
221
  size: l === "compact" ? "sm" : "md"
239
222
  }
240
223
  ) : /* @__PURE__ */ e(
241
- w,
224
+ y,
242
225
  {
243
226
  size: l === "compact" ? "sm" : "md",
244
227
  label: s
@@ -251,7 +234,7 @@ function Ne({
251
234
  {
252
235
  intent: "ghost",
253
236
  size: "sm",
254
- startIcon: /* @__PURE__ */ e(me, { "aria-hidden": "true" }),
237
+ startIcon: /* @__PURE__ */ e(oe, { "aria-hidden": "true" }),
255
238
  onClick: i,
256
239
  children: n("alia.newConversation")
257
240
  }
@@ -262,7 +245,7 @@ function Ne({
262
245
  }
263
246
  );
264
247
  }
265
- const I = k(
248
+ const S = C(
266
249
  ({
267
250
  messages: s,
268
251
  onSend: d,
@@ -277,18 +260,18 @@ const I = k(
277
260
  assistantAvatar: a,
278
261
  userAvatar: b,
279
262
  greeting: v,
280
- subtitle: L,
263
+ subtitle: I,
281
264
  density: x = "default",
282
- renderMarkdown: S = !0,
283
- onNewConversation: W,
284
- onAttach: X,
265
+ renderMarkdown: T = !0,
266
+ onNewConversation: X,
267
+ onAttach: q,
285
268
  acceptedFileTypes: Z,
286
269
  headerEndSlot: $
287
270
  }, J) => {
288
- const { t: p } = y(), f = m ?? p("alia.name"), K = v ?? p("alia.greeting"), V = L ?? p("alia.subtitle"), g = s[s.length - 1], j = (g == null ? void 0 : g.role) === "assistant" && g.streaming === !0, P = j ? s.slice(0, -1) : s, Y = U(() => {
289
- const N = p("chat.message.role.user"), T = P.map((h) => {
271
+ const { t: p } = z(), f = m ?? p("alia.name"), K = v ?? p("alia.greeting"), V = I ?? p("alia.subtitle"), g = s[s.length - 1], j = (g == null ? void 0 : g.role) === "assistant" && g.streaming === !0, F = j ? s.slice(0, -1) : s, Y = U(() => {
272
+ const N = p("chat.message.role.user"), L = F.map((h) => {
290
273
  let _;
291
- return h.role === "assistant" ? _ = a != null && a.src ? { name: f, src: a.src } : { slot: /* @__PURE__ */ e(w, { size: "sm", label: f }) } : h.role === "user" && (_ = be(b, N)), {
274
+ return h.role === "assistant" ? _ = a != null && a.src ? { name: f, src: a.src } : { slot: /* @__PURE__ */ e(y, { size: "sm", label: f }) } : h.role === "user" && (_ = ge(b, N)), {
292
275
  id: h.id,
293
276
  node: /* @__PURE__ */ e(
294
277
  ie,
@@ -298,34 +281,34 @@ const I = k(
298
281
  avatar: _,
299
282
  timestamp: h.timestamp,
300
283
  status: h.status,
301
- renderMarkdown: S,
284
+ renderMarkdown: T,
302
285
  onRetry: i ? () => i(h.id) : void 0
303
286
  }
304
287
  )
305
288
  };
306
289
  });
307
- return j && g && T.push({
290
+ return j && g && L.push({
308
291
  id: g.id,
309
292
  node: /* @__PURE__ */ e(
310
- xe,
293
+ be,
311
294
  {
312
295
  message: g,
313
296
  assistantName: f,
314
297
  avatarSrc: a == null ? void 0 : a.src,
315
- renderMarkdown: S
298
+ renderMarkdown: T
316
299
  }
317
300
  )
318
- }), n && !j && T.push({
301
+ }), n && !j && L.push({
319
302
  id: "__alia-typing__",
320
303
  node: /* @__PURE__ */ o("div", { className: "ds:flex ds:w-full ds:items-start ds:gap-[var(--spacing-sm)]", children: [
321
304
  a != null && a.src ? /* @__PURE__ */ e(
322
- C,
305
+ k,
323
306
  {
324
307
  name: f,
325
308
  src: a.src,
326
309
  size: "sm"
327
310
  }
328
- ) : /* @__PURE__ */ e(w, { size: "sm", label: f }),
311
+ ) : /* @__PURE__ */ e(y, { size: "sm", label: f }),
329
312
  /* @__PURE__ */ e(
330
313
  "div",
331
314
  {
@@ -339,23 +322,23 @@ const I = k(
339
322
  }
340
323
  )
341
324
  ] })
342
- }), T;
325
+ }), L;
343
326
  }, [
344
- P,
327
+ F,
345
328
  j,
346
329
  g,
347
330
  n,
348
331
  f,
349
332
  a == null ? void 0 : a.src,
350
333
  b,
351
- S,
334
+ T,
352
335
  i,
353
336
  x,
354
337
  p
355
338
  ]), G = r ? Math.min(
356
339
  100,
357
340
  Math.max(0, r.current / Math.max(1, r.limit) * 100)
358
- ) : 0, z = r ? r.current >= r.limit : !1, F = r ? r.label ?? p("alia.usageLabel", {
341
+ ) : 0, w = r ? r.current >= r.limit : !1, M = r ? r.label ?? p("alia.usageLabel", {
359
342
  current: r.current,
360
343
  limit: r.limit
361
344
  }) : null, R = s.length === 0 && !n, H = /* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]", children: [
@@ -366,13 +349,13 @@ const I = k(
366
349
  {
367
350
  className: [
368
351
  "type-meta",
369
- z ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
352
+ w ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
370
353
  ].join(" "),
371
354
  "data-testid": "alia-usage-label",
372
- children: z ? p("alia.usageLimitReached") : F
355
+ children: w ? p("alia.usageLimitReached") : M
373
356
  }
374
357
  ),
375
- z && c ? /* @__PURE__ */ e(D, { intent: "primary", size: "sm", onClick: c, children: p("alia.upgrade") }) : null
358
+ w && c ? /* @__PURE__ */ e(D, { intent: "primary", size: "sm", onClick: c, children: p("alia.upgrade") }) : null
376
359
  ] }),
377
360
  /* @__PURE__ */ e(
378
361
  ne,
@@ -380,22 +363,22 @@ const I = k(
380
363
  value: G,
381
364
  max: 100,
382
365
  size: "sm",
383
- ariaLabel: F ?? p("alia.usageLabel", {
366
+ ariaLabel: M ?? p("alia.usageLabel", {
384
367
  current: r.current,
385
368
  limit: r.limit
386
369
  }),
387
- className: z ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
370
+ className: w ? "ds:[&_[role=progressbar]>*]:bg-[color:var(--destructive)]" : void 0,
388
371
  "data-testid": "alia-usage-progress"
389
372
  }
390
373
  )
391
374
  ] }) : null,
392
375
  !R && l && l.length > 0 && !n ? /* @__PURE__ */ e(
393
- q,
376
+ O,
394
377
  {
395
378
  label: p("alia.exampleQuestions"),
396
379
  "data-testid": "alia-followup-suggestions",
397
380
  children: l.map((N) => /* @__PURE__ */ e(
398
- O,
381
+ Q,
399
382
  {
400
383
  intent: "followup",
401
384
  startIcon: N.icon,
@@ -413,9 +396,9 @@ const I = k(
413
396
  {
414
397
  submitOnEnter: !0,
415
398
  onSubmit: d,
416
- onAttach: X,
399
+ onAttach: q,
417
400
  accept: Z,
418
- disabled: z,
401
+ disabled: w,
419
402
  "data-testid": "alia-composer"
420
403
  }
421
404
  ) }),
@@ -443,18 +426,18 @@ const I = k(
443
426
  "data-testid": "alia-surface",
444
427
  children: [
445
428
  /* @__PURE__ */ e(
446
- Ne,
429
+ ve,
447
430
  {
448
431
  assistantName: f,
449
432
  avatarSrc: a == null ? void 0 : a.src,
450
- onNewConversation: W,
433
+ onNewConversation: X,
451
434
  headerEndSlot: $,
452
435
  density: x
453
436
  }
454
437
  ),
455
438
  R ? /* @__PURE__ */ o(A, { children: [
456
439
  /* @__PURE__ */ e(
457
- ve,
440
+ he,
458
441
  {
459
442
  assistantName: f,
460
443
  avatarSrc: a == null ? void 0 : a.src,
@@ -495,8 +478,8 @@ const I = k(
495
478
  );
496
479
  }
497
480
  );
498
- I.displayName = "AliaChatSurface";
499
- const ye = k(
481
+ S.displayName = "AliaChatSurface";
482
+ const xe = C(
500
483
  ({ headerSlot: s, ...d }, i) => /* @__PURE__ */ o(
501
484
  "div",
502
485
  {
@@ -528,18 +511,18 @@ const ye = k(
528
511
  "ds:[max-inline-size:48rem]",
529
512
  "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
530
513
  ].join(" "),
531
- children: /* @__PURE__ */ e(I, { ...d })
514
+ children: /* @__PURE__ */ e(S, { ...d })
532
515
  }
533
516
  ) })
534
517
  ]
535
518
  }
536
519
  )
537
520
  );
538
- ye.displayName = "AliaEmbedded";
539
- function ze(s) {
521
+ xe.displayName = "AliaEmbedded";
522
+ function Ne(s) {
540
523
  return s > 99 ? "99+" : String(s);
541
524
  }
542
- const we = k(
525
+ const ze = C(
543
526
  ({
544
527
  open: s,
545
528
  onOpenChange: d,
@@ -549,7 +532,7 @@ const we = k(
549
532
  assistantAvatar: n,
550
533
  ...u
551
534
  }, r) => {
552
- const { t: c } = y(), m = l || c("alia.name"), a = typeof t == "number" && t > 0, b = a ? c("alia.unseenCount", { count: t }) : c("alia.open"), v = /* @__PURE__ */ e(ee.Close, { asChild: !0, children: /* @__PURE__ */ e(
535
+ const { t: c } = z(), m = l || c("alia.name"), a = typeof t == "number" && t > 0, b = a ? c("alia.unseenCount", { count: t }) : c("alia.open"), v = /* @__PURE__ */ e(ee.Close, { asChild: !0, children: /* @__PURE__ */ e(
553
536
  B,
554
537
  {
555
538
  icon: /* @__PURE__ */ e(ae, { "aria-hidden": "true" }),
@@ -574,7 +557,7 @@ const we = k(
574
557
  /* @__PURE__ */ e(
575
558
  se,
576
559
  {
577
- icon: /* @__PURE__ */ e(M, { "aria-hidden": "true" }),
560
+ icon: /* @__PURE__ */ e(P, { "aria-hidden": "true" }),
578
561
  "aria-label": b,
579
562
  variant: "primary",
580
563
  size: "md",
@@ -600,7 +583,7 @@ const we = k(
600
583
  "ds:pointer-events-none ds:select-none",
601
584
  "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
602
585
  ].join(" "),
603
- children: ze(t)
586
+ children: Ne(t)
604
587
  }
605
588
  ) : null
606
589
  ] })
@@ -617,7 +600,7 @@ const we = k(
617
600
  children: [
618
601
  /* @__PURE__ */ e(E.Title, { className: "ds:sr-only", children: m }),
619
602
  /* @__PURE__ */ e(
620
- I,
603
+ S,
621
604
  {
622
605
  ...u,
623
606
  assistantName: m,
@@ -632,11 +615,11 @@ const we = k(
632
615
  ] });
633
616
  }
634
617
  );
635
- we.displayName = "AliaPopout";
636
- function je(s) {
618
+ ze.displayName = "AliaPopout";
619
+ function we(s) {
637
620
  return s > 99 ? "99+" : String(s);
638
621
  }
639
- const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
622
+ const ye = "ds:[inline-size:22rem]", je = "ds:[inline-size:3rem]", Ce = C(
640
623
  ({
641
624
  open: s,
642
625
  onOpenChange: d,
@@ -647,7 +630,7 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
647
630
  assistantAvatar: u,
648
631
  ...r
649
632
  }, c) => {
650
- const { t: m } = y(), a = n || m("alia.name"), b = typeof t == "number" && t > 0, v = i === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", L = b ? m("alia.unseenCount", { count: t }) : m("alia.open");
633
+ const { t: m } = z(), a = n || m("alia.name"), b = typeof t == "number" && t > 0, v = i === "end" ? "ds:shadow-[var(--shadow-chrome-start)]" : "ds:shadow-[var(--shadow-chrome-end)]", I = b ? m("alia.unseenCount", { count: t }) : m("alia.open");
651
634
  if (!s)
652
635
  return /* @__PURE__ */ e(
653
636
  "aside",
@@ -659,7 +642,7 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
659
642
  "ds:bg-[var(--background)]",
660
643
  v,
661
644
  "ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
662
- Ce
645
+ je
663
646
  ].join(" "),
664
647
  "data-testid": "alia-sidebar-rail",
665
648
  "data-alia-sidebar-state": "collapsed",
@@ -667,8 +650,8 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
667
650
  /* @__PURE__ */ e(
668
651
  B,
669
652
  {
670
- icon: /* @__PURE__ */ e(M, { "aria-hidden": "true" }),
671
- "aria-label": L,
653
+ icon: /* @__PURE__ */ e(P, { "aria-hidden": "true" }),
654
+ "aria-label": I,
672
655
  "aria-expanded": "false",
673
656
  intent: "ghost",
674
657
  size: "sm",
@@ -693,7 +676,7 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
693
676
  "ds:pointer-events-none ds:select-none",
694
677
  "ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
695
678
  ].join(" "),
696
- children: je(t)
679
+ children: we(t)
697
680
  }
698
681
  ) : null
699
682
  ] })
@@ -702,7 +685,7 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
702
685
  const x = /* @__PURE__ */ e(
703
686
  B,
704
687
  {
705
- icon: i === "end" ? /* @__PURE__ */ e(ue, {}) : /* @__PURE__ */ e(fe, {}),
688
+ icon: i === "end" ? /* @__PURE__ */ e(pe, {}) : /* @__PURE__ */ e(ue, {}),
706
689
  intent: "ghost",
707
690
  size: "sm",
708
691
  "aria-label": m("alia.close"),
@@ -720,14 +703,14 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
720
703
  "ds:flex ds:shrink-0 ds:flex-col ds:min-h-0",
721
704
  "ds:bg-[var(--background)]",
722
705
  v,
723
- ke,
706
+ ye,
724
707
  "ds:h-full"
725
708
  ].join(" "),
726
709
  "data-testid": "alia-sidebar",
727
710
  "data-alia-sidebar-state": "expanded",
728
711
  children: [
729
712
  /* @__PURE__ */ e("div", { className: "ds:flex ds:min-h-0 ds:flex-1 ds:flex-col", children: /* @__PURE__ */ e(
730
- I,
713
+ S,
731
714
  {
732
715
  ...r,
733
716
  assistantName: a,
@@ -749,11 +732,11 @@ const ke = "ds:[inline-size:22rem]", Ce = "ds:[inline-size:3rem]", Ie = k(
749
732
  );
750
733
  }
751
734
  );
752
- Ie.displayName = "AliaSidebar";
735
+ Ce.displayName = "AliaSidebar";
753
736
  export {
754
- I as A,
755
- ye as a,
756
- we as b,
757
- Ie as c
737
+ S as A,
738
+ xe as a,
739
+ ze as b,
740
+ Ce as c
758
741
  };
759
- //# sourceMappingURL=alia-sidebar-CUi2UCbY.js.map
742
+ //# sourceMappingURL=alia-sidebar-CnvXq95r.js.map
@@ -3,7 +3,7 @@ import { forwardRef as se, useReducer as ae, useState as x, useRef as m, useEffe
3
3
  import { c as ce } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as oe } from "react-i18next";
5
5
  import { B as G } from "./button-DD_0Xdmr.js";
6
- import { I as N } from "./icon-button-C4CGcYuz.js";
6
+ import { I as N } from "./icon-button-BRHSSFmZ.js";
7
7
  import { S as ue } from "./select-C92AT_OZ.js";
8
8
  import { A as pe } from "./audio-visualiser-I-T4Z7EU.js";
9
9
  import { A as F } from "./alert-ywPR59NE.js";
@@ -454,4 +454,4 @@ export {
454
454
  Ne as A,
455
455
  Re as a
456
456
  };
457
- //# sourceMappingURL=audio-recorder-D4xM3H5i.js.map
457
+ //# sourceMappingURL=audio-recorder-OB6IV9B1.js.map
@@ -4,7 +4,7 @@ import { _ as f } from "./index-4xgbg-sn.js";
4
4
  import * as T from "@radix-ui/react-popover";
5
5
  import { c as A } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as Ze } from "react-i18next";
7
- import { S as pe } from "./spinner-DirtWZNG.js";
7
+ import { S as pe } from "./spinner-CCByyvcb.js";
8
8
  import { u as et } from "./form-field-context-B3APVHKx.js";
9
9
  import { u as tt } from "./use-controllable-state-BiY4xTzM.js";
10
10
  import { g as st } from "./group-options-BvKhQ3xb.js";
@@ -466,4 +466,4 @@ export {
466
466
  it as a,
467
467
  dt as b
468
468
  };
469
- //# sourceMappingURL=autocomplete-C7xq06bP.js.map
469
+ //# sourceMappingURL=autocomplete-CUh0f7Dj.js.map