@alfadocs/ui-kit 0.31.0 → 0.31.3
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.
- package/dist/_chunks/{accordion-CNcodXuO.js → accordion-bSU21uTV.js} +3 -3
- package/dist/_chunks/{agenda-card-DO9_yogb.js → agenda-card-UJA6Arbs.js} +3 -3
- package/dist/_chunks/{agenda-tray-WLbfMip6.js → agenda-tray-1fAxNOMz.js} +4 -4
- package/dist/_chunks/{ai-prompt-input-BXlwNnWe.js → ai-prompt-input-C6sCr1Vi.js} +11 -10
- package/dist/_chunks/{alia-sidebar-C-232sD7.js → alia-sidebar-BEoMl6UL.js} +9 -9
- package/dist/_chunks/ar-CEpIJtcO.js +399 -0
- package/dist/_chunks/{audio-recorder-DL800PE_.js → audio-recorder-C1rhKhSN.js} +114 -114
- package/dist/_chunks/audio-visualiser-l6zPd0AG.js +162 -0
- package/dist/_chunks/{autocomplete-CUh0f7Dj.js → autocomplete-DIgdhCGJ.js} +2 -2
- package/dist/_chunks/{avatar-D_H4emLo.js → avatar-BNQNhoyL.js} +19 -18
- package/dist/_chunks/{badge-CIjQ1Us1.js → badge-CptERaHx.js} +2 -2
- package/dist/_chunks/{booking-Bhk9IYm3.js → booking-A4o9xI2n.js} +160 -149
- package/dist/_chunks/{breadcrumb--YI7lcHA.js → breadcrumb-CLlhx7qo.js} +2 -2
- package/dist/_chunks/{button-group-Bh2g_Ng-.js → button-group-Ciq6J4IW.js} +15 -14
- package/dist/_chunks/{calendar-WWNx448i.js → calendar-YHFknAGv.js} +22 -22
- package/dist/_chunks/{carousel.agent-C2Icc9_T.js → carousel.agent-DrX96W-1.js} +2 -2
- package/dist/_chunks/{chart-BLvFl169.js → chart-DLkVn_ex.js} +2 -2
- package/dist/_chunks/{chat-container-izziXViv.js → chat-container-ogB4OskO.js} +24 -23
- package/dist/_chunks/{chat-input-cyl_y9bh.js → chat-input-CQe7nR_v.js} +132 -118
- package/dist/_chunks/{chat-message-fg221-yx.js → chat-message-D53_fH2w.js} +2 -2
- package/dist/_chunks/{checkbox-Dgp_cfUr.js → checkbox-DRcOdmXv.js} +3 -3
- package/dist/_chunks/{checkbox-group-eVowqKcT.js → checkbox-group-CpUwlHug.js} +3 -3
- package/dist/_chunks/{collapsible-hHiyZp0b.js → collapsible-CERONory.js} +2 -2
- package/dist/_chunks/{color-picker-Bm-gzpsh.js → color-picker-9tL7pz5y.js} +192 -181
- package/dist/_chunks/{combobox-Da9eq00i.js → combobox-BC-DFx8G.js} +31 -30
- package/dist/_chunks/{command-palette-11BieSNq.js → command-palette-BiPAAno-.js} +125 -123
- package/dist/_chunks/{copy-field-BAF4mt9h.js → copy-field-CCq7j6Zc.js} +2 -2
- package/dist/_chunks/{date-picker-D0Ry1dMz.js → date-picker-B94HAV4A.js} +4 -4
- package/dist/_chunks/{date-range-picker-DYgHzMOo.js → date-range-picker-D4dgDlLU.js} +73 -73
- package/dist/_chunks/{date-time-picker-CGmGtcyc.js → date-time-picker-D1GEzf8p.js} +5 -5
- package/dist/_chunks/de-Dfbeau59.js +477 -0
- package/dist/_chunks/{description-list-CWjnaDGn.js → description-list-BEbK2g93.js} +2 -2
- package/dist/_chunks/{dialog-C-lTGVkB.js → dialog-Cee13rHU.js} +3 -3
- package/dist/_chunks/{dropdown-menu-DZxwF23X.js → dropdown-menu-BC5ZdOMo.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-Od3Q-Y8J.js → editable-currency-cell-renderer-BpicmolK.js} +314 -317
- package/dist/_chunks/el-Dro3J7CP.js +373 -0
- package/dist/_chunks/{email-input-DvJ_kPKL.js → email-input-lQivsFrw.js} +3 -3
- package/dist/_chunks/es-Dvg8u70B.js +373 -0
- package/dist/_chunks/{file-upload-DxAQprcU.js → file-upload-CdozCPct.js} +226 -233
- package/dist/_chunks/fr-VOGjBSPP.js +338 -0
- package/dist/_chunks/{freemium-paywall-B9c8Ylww.js → freemium-paywall-D1N02Oam.js} +4 -4
- package/dist/_chunks/{header-DDj7uGD-.js → header-CTZWX-tm.js} +2 -2
- package/dist/_chunks/hi-BSDxWU_y.js +433 -0
- package/dist/_chunks/{icon-button-DPEqBKBQ.js → icon-button-CKEOrN37.js} +2 -2
- package/dist/_chunks/{icon-button-group-DeV3FpNY.js → icon-button-group-C48khLE0.js} +23 -22
- package/dist/_chunks/{isSameDay-DHG8Xade.js → isSameDay-DUEiAT0G.js} +2 -2
- package/dist/_chunks/isSameWeek-Dfzu29cW.js +14 -0
- package/dist/_chunks/it-CuonvcI_.js +401 -0
- package/dist/_chunks/ja-DO57gIOT.js +366 -0
- package/dist/_chunks/{key-value-pair-BvDY3zuc.js → key-value-pair-C8DaR3Xs.js} +2 -2
- package/dist/_chunks/{list-BdvDctBz.js → list-BOwqwy03.js} +44 -43
- package/dist/_chunks/{locale-picker-CY89MChR.js → locale-picker-D99UyZVJ.js} +4 -4
- package/dist/_chunks/{map-view-DyB8tr6c.js → map-view-WEWqXzof.js} +569 -557
- package/dist/_chunks/{message-card-D6iyPacd.js → message-card-BbRhZkDI.js} +3 -3
- package/dist/_chunks/{message-tray-Bh-0ra-Y.js → message-tray-B762TKuv.js} +11 -10
- package/dist/_chunks/{multi-select-dSe6Xtc4.js → multi-select-DOLO3K_z.js} +26 -25
- package/dist/_chunks/{navigation-menu-CyS1fBJ7.js → navigation-menu-C6lBYVv9.js} +3 -3
- package/dist/_chunks/nl-DjPaaWaW.js +326 -0
- package/dist/_chunks/{notification-card-vaMaA7Wa.js → notification-card-DMdO4g54.js} +2 -2
- package/dist/_chunks/{notification-tray-Cnum6LwM.js → notification-tray-Dl3FTleW.js} +17 -16
- package/dist/_chunks/{number-input-BZXu6bPY.js → number-input-Dj5L3pXK.js} +2 -2
- package/dist/_chunks/{otp-input-BDF_iNpa.js → otp-input-BEg_sn8A.js} +2 -2
- package/dist/_chunks/{pagination-BWaXF7W0.js → pagination-DQOgnxxw.js} +2 -2
- package/dist/_chunks/{parseISO-Dk4xa7q6.js → parseISO-DEpUNwxZ.js} +2 -2
- package/dist/_chunks/{patient-search-ZpHN-pgJ.js → patient-search-hFiYbqcl.js} +8 -8
- package/dist/_chunks/{patient-shell-CYaNkbA1.js → patient-shell-CDvMw_Nk.js} +6 -6
- package/dist/_chunks/{payment-form-Ds3rxvad.js → payment-form-D5rgnZu7.js} +2 -2
- package/dist/_chunks/{pdf-viewer-CIuaocnq.js → pdf-viewer-DvtEHcEP.js} +347 -320
- package/dist/_chunks/{phone-input-DKSHX7NQ.js → phone-input-DfZbPPvh.js} +217 -201
- package/dist/_chunks/pl-Cl4lOx2N.js +514 -0
- package/dist/_chunks/{popover-BfHSBEKq.js → popover-Devce-tT.js} +3 -3
- package/dist/_chunks/practice-results-RPL64j8E.js +1582 -0
- package/dist/_chunks/{privacy-lock-C6Ra5m3p.js → privacy-lock-DD-wHxBg.js} +3 -3
- package/dist/_chunks/{progress-B-PSO5OS.js → progress-kzIRcdaq.js} +11 -10
- package/dist/_chunks/pt-D7qO5CzD.js +370 -0
- package/dist/_chunks/{public-footer.agent-Bc99tE5Z.js → public-footer.agent-Bh0rnx4i.js} +21 -14
- package/dist/_chunks/{public-header.agent-B-B0WDAi.js → public-header.agent-B2dDg2_d.js} +3 -3
- package/dist/_chunks/{radio-i4ogu3cq.js → radio-TWf9Q-mp.js} +2 -2
- package/dist/_chunks/{radio-group-CTlGc36r.js → radio-group-BcF92GEF.js} +4 -4
- package/dist/_chunks/{react-day-picker-D3yzgvDB.js → react-day-picker-DsjfS7uI.js} +662 -615
- package/dist/_chunks/recaptcha-widget-CFYyLSEX.js +221 -0
- package/dist/_chunks/registry-nPAVE19X.js +21 -0
- package/dist/_chunks/{resizable-COV-cnth.js → resizable-3vzqDlg6.js} +29 -28
- package/dist/_chunks/{reviews-panel-bKEUKSic.js → reviews-panel-yanuBZs-.js} +4 -4
- package/dist/_chunks/{rich-text-editor-J-wAz9eN.js → rich-text-editor-CHmr9Bz8.js} +2 -2
- package/dist/_chunks/ro-CP2-VJ_O.js +361 -0
- package/dist/_chunks/ru-RPn9_Lpq.js +561 -0
- package/dist/_chunks/{scroll-area-DEDU-lp-.js → scroll-area-BWqCkEGz.js} +2 -2
- package/dist/_chunks/{search-bar-BRMW1-WG.js → search-bar-CP6wUJFY.js} +3 -3
- package/dist/_chunks/{search-input-CIA6pPfn.js → search-input-C1C3jQpD.js} +24 -23
- package/dist/_chunks/{select-C92AT_OZ.js → select-hsCaJSX3.js} +3 -3
- package/dist/_chunks/{sheet-D8Yl0nKR.js → sheet-BV-yuLE2.js} +3 -3
- package/dist/_chunks/{sidebar-DkyC6GvS.js → sidebar-BbR8f6oe.js} +3 -3
- package/dist/_chunks/{signature-capture-DjMlFOzS.js → signature-capture-C-fF71xI.js} +213 -205
- package/dist/_chunks/{slider-CfEzeseL.js → slider-BHWzXdjt.js} +3 -3
- package/dist/_chunks/{slot-grid-Q94gVmhn.js → slot-grid-Dz13dH82.js} +4 -4
- package/dist/_chunks/{sparkline-B5Ms55PZ.js → sparkline-DEROcSl0.js} +2 -2
- package/dist/_chunks/sq-AQvefouo.js +355 -0
- package/dist/_chunks/{stepper-progress-jFY8BSf7.js → stepper-progress-DDjq5nei.js} +16 -15
- package/dist/_chunks/streaming-text-GH07yIYh.js +127 -0
- package/dist/_chunks/sv-zkx9eBtD.js +376 -0
- package/dist/_chunks/{switch-D916VW86.js → switch-BJ6HD3Mn.js} +2 -2
- package/dist/_chunks/{tabs-aEQfQV3x.js → tabs-BpPYVme_.js} +4 -4
- package/dist/_chunks/{tag-bBPAvXyh.js → tag-CyoaEmf_.js} +2 -2
- package/dist/_chunks/{task-tray-6NlryfMJ.js → task-tray-DRK0b0Qb.js} +3 -3
- package/dist/_chunks/{text-area-D5GAe8pV.js → text-area-BIx0tZ05.js} +27 -26
- package/dist/_chunks/{text-input-CakysYnD.js → text-input-BaClJL8Y.js} +2 -2
- package/dist/_chunks/{theme-toggle-JoeMs_ws.js → theme-toggle-DpC28kt5.js} +6 -6
- package/dist/_chunks/{time-picker-DeVZkIY2.js → time-picker-B5umYwfv.js} +2 -2
- package/dist/_chunks/{timeline-CR7HjZCK.js → timeline-D0Wo7v_o.js} +3 -3
- package/dist/_chunks/{toast.agent-DVpKt38p.js → toast.agent-WHHfw5VX.js} +322 -320
- package/dist/_chunks/{tooltip-ClJd0ciy.js → tooltip-DvmfrNvB.js} +29 -20
- package/dist/_chunks/{tooth-scheme-3mITSXiZ.js → tooth-scheme-CxlsLjfN.js} +2 -2
- package/dist/_chunks/tr-Dmr412Ac.js +378 -0
- package/dist/_chunks/{transcript-panel-QUQ9XJmf.js → transcript-panel-DyhTpAP7.js} +21 -20
- package/dist/_chunks/{use-direction-D6rvvG9G.js → use-direction-Dp8h70PP.js} +7 -6
- package/dist/_chunks/use-isomorphic-layout-effect-BGfaCOP1.js +6 -0
- package/dist/_chunks/use-media-query-CcAx5SMM.js +16 -0
- package/dist/_chunks/{use-password-requirements-E0sSfx5X.js → use-password-requirements-DsgduV1x.js} +3 -3
- package/dist/_chunks/use-scroll-to-first-error-4Za-u5Nw.js +43 -0
- package/dist/_chunks/{workflow-map-DlWBJJBt.js → workflow-map-BSvQS3be.js} +6 -6
- package/dist/_chunks/zh-CN-DxVt64Zk.js +388 -0
- package/dist/agent/registry.d.ts +1 -6
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/date-locale.d.ts +7 -2
- package/dist/components/_shared/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +6 -6
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +10 -0
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +23 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/hooks/index.js +69 -66
- package/dist/i18n/locales/ar.d.ts +92 -0
- package/dist/i18n/locales/ar.js +82 -0
- package/dist/i18n/locales/de.d.ts +92 -0
- package/dist/i18n/locales/de.js +81 -0
- package/dist/i18n/locales/el.d.ts +92 -0
- package/dist/i18n/locales/el.js +82 -0
- package/dist/i18n/locales/en.d.ts +27 -0
- package/dist/i18n/locales/en.js +27 -0
- package/dist/i18n/locales/es.d.ts +92 -0
- package/dist/i18n/locales/es.js +81 -0
- package/dist/i18n/locales/fr.d.ts +92 -0
- package/dist/i18n/locales/fr.js +81 -0
- package/dist/i18n/locales/hi.d.ts +92 -0
- package/dist/i18n/locales/hi.js +82 -0
- package/dist/i18n/locales/it.d.ts +92 -0
- package/dist/i18n/locales/it.js +81 -0
- package/dist/i18n/locales/ja.d.ts +92 -0
- package/dist/i18n/locales/ja.js +82 -0
- package/dist/i18n/locales/nl.d.ts +92 -0
- package/dist/i18n/locales/nl.js +81 -0
- package/dist/i18n/locales/pl.d.ts +92 -0
- package/dist/i18n/locales/pl.js +82 -0
- package/dist/i18n/locales/pt.d.ts +92 -0
- package/dist/i18n/locales/pt.js +83 -0
- package/dist/i18n/locales/ro.d.ts +92 -0
- package/dist/i18n/locales/ro.js +82 -0
- package/dist/i18n/locales/ru.d.ts +92 -0
- package/dist/i18n/locales/ru.js +82 -0
- package/dist/i18n/locales/sq.d.ts +92 -0
- package/dist/i18n/locales/sq.js +82 -0
- package/dist/i18n/locales/sv.d.ts +92 -0
- package/dist/i18n/locales/sv.js +82 -0
- package/dist/i18n/locales/tr.d.ts +92 -0
- package/dist/i18n/locales/tr.js +82 -0
- package/dist/i18n/locales/zh.d.ts +92 -0
- package/dist/i18n/locales/zh.js +82 -0
- package/dist/index.js +541 -540
- package/dist/locales/ar.json +92 -0
- package/dist/locales/de.json +92 -0
- package/dist/locales/el.json +92 -0
- package/dist/locales/en.json +27 -0
- package/dist/locales/es.json +92 -0
- package/dist/locales/fr.json +92 -0
- package/dist/locales/hi.json +92 -0
- package/dist/locales/it.json +92 -0
- package/dist/locales/ja.json +92 -0
- package/dist/locales/nl.json +92 -0
- package/dist/locales/pl.json +92 -0
- package/dist/locales/pt.json +92 -0
- package/dist/locales/ro.json +92 -0
- package/dist/locales/ru.json +92 -0
- package/dist/locales/sq.json +92 -0
- package/dist/locales/sv.json +92 -0
- package/dist/locales/tr.json +92 -0
- package/dist/locales/zh.json +92 -0
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +2 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- package/dist/_chunks/practice-results-CEKjwsgS.js +0 -1441
- package/dist/_chunks/recaptcha-widget-BtBNb6tB.js +0 -192
- package/dist/_chunks/registry-C9nwlNyL.js +0 -21
- package/dist/_chunks/smile-BSYLAHy6.js +0 -17
- package/dist/_chunks/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as ve, useId as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { I as
|
|
1
|
+
import { jsxs as v, jsx as i, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ve, useId as ye, useRef as k, useCallback as W, useImperativeHandle as be, useMemo as xe } from "react";
|
|
3
|
+
import { c as Ie } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as ke } from "react-i18next";
|
|
5
|
+
import { I as A } from "./icon-button-CKEOrN37.js";
|
|
6
6
|
import { u as we } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
|
-
import { u as
|
|
7
|
+
import { u as Ce } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
|
+
import { u as Ne } from "./registry-nPAVE19X.js";
|
|
8
9
|
import { c as Ve } from "./createLucideIcon-CrFbzy84.js";
|
|
9
10
|
import { C as ze } from "./circle-alert-ChA9opNA.js";
|
|
10
11
|
import { S as He } from "./send-CySZIRPJ.js";
|
|
@@ -14,7 +15,7 @@ import { S as He } from "./send-CySZIRPJ.js";
|
|
|
14
15
|
* This source code is licensed under the ISC license.
|
|
15
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
17
|
*/
|
|
17
|
-
const
|
|
18
|
+
const Te = [
|
|
18
19
|
[
|
|
19
20
|
"path",
|
|
20
21
|
{
|
|
@@ -22,7 +23,7 @@ const Ee = [
|
|
|
22
23
|
key: "1miecu"
|
|
23
24
|
}
|
|
24
25
|
]
|
|
25
|
-
],
|
|
26
|
+
], je = Ve("paperclip", Te), Ee = {
|
|
26
27
|
id: "chat-input",
|
|
27
28
|
capabilities: ["edit_inline", "submit"],
|
|
28
29
|
state: {
|
|
@@ -45,8 +46,8 @@ const Ee = [
|
|
|
45
46
|
argsType: "{ value: string }",
|
|
46
47
|
descriptionKey: "ui.agent.chatInput.actions.setValue",
|
|
47
48
|
description: "Replace the composer text.",
|
|
48
|
-
invoke: (t,
|
|
49
|
-
t.setValue(
|
|
49
|
+
invoke: (t, n) => {
|
|
50
|
+
t.setValue(n.value);
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
clear: {
|
|
@@ -86,7 +87,7 @@ const Ee = [
|
|
|
86
87
|
description: "Sourced from the id prop."
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
},
|
|
90
|
+
}, Me = Ie(
|
|
90
91
|
[
|
|
91
92
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:w-full",
|
|
92
93
|
// Uses the kit's shared input-chrome tokens — `--input` for fill,
|
|
@@ -111,135 +112,148 @@ const Ee = [
|
|
|
111
112
|
defaultVariants: { size: "md" }
|
|
112
113
|
}
|
|
113
114
|
);
|
|
114
|
-
function
|
|
115
|
+
function Se(t, n) {
|
|
115
116
|
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
116
117
|
try {
|
|
117
|
-
const
|
|
118
|
+
const l = new Intl.Segmenter(n, { granularity: "grapheme" });
|
|
118
119
|
let s = 0;
|
|
119
|
-
for (const
|
|
120
|
+
for (const y of l.segment(t)) s += 1;
|
|
120
121
|
return s;
|
|
121
122
|
} catch {
|
|
122
123
|
}
|
|
123
124
|
return Array.from(t).length;
|
|
124
125
|
}
|
|
125
|
-
|
|
126
|
+
function Fe(t, n, l) {
|
|
127
|
+
if (typeof Intl < "u" && typeof Intl.Segmenter == "function")
|
|
128
|
+
try {
|
|
129
|
+
const y = new Intl.Segmenter(l, { granularity: "grapheme" }), o = [];
|
|
130
|
+
for (const u of y.segment(t))
|
|
131
|
+
if (o.push(u.segment), o.length >= n) break;
|
|
132
|
+
const d = o.join("");
|
|
133
|
+
return d.length === t.length ? t : d;
|
|
134
|
+
} catch {
|
|
135
|
+
}
|
|
136
|
+
const s = Array.from(t);
|
|
137
|
+
return s.length <= n ? t : s.slice(0, n).join("");
|
|
138
|
+
}
|
|
139
|
+
const Ke = ve(
|
|
126
140
|
({
|
|
127
141
|
size: t = "md",
|
|
128
|
-
value:
|
|
129
|
-
defaultValue:
|
|
142
|
+
value: n,
|
|
143
|
+
defaultValue: l,
|
|
130
144
|
maxLength: s,
|
|
131
|
-
submitOnEnter:
|
|
132
|
-
minRows:
|
|
133
|
-
maxRows:
|
|
134
|
-
onSubmit:
|
|
135
|
-
onAttach:
|
|
136
|
-
accept:
|
|
137
|
-
disabled:
|
|
138
|
-
toolbar:
|
|
139
|
-
label:
|
|
140
|
-
placeholder:
|
|
141
|
-
className:
|
|
142
|
-
onChange:
|
|
143
|
-
onKeyDown:
|
|
144
|
-
onCompositionStart:
|
|
145
|
-
onCompositionEnd:
|
|
146
|
-
id:
|
|
147
|
-
...
|
|
148
|
-
},
|
|
149
|
-
const { t:
|
|
150
|
-
|
|
151
|
-
}, []), [X,
|
|
152
|
-
value:
|
|
153
|
-
defaultValue: String(
|
|
154
|
-
}), a = X ?? "",
|
|
155
|
-
const e =
|
|
145
|
+
submitOnEnter: y = !1,
|
|
146
|
+
minRows: o = 1,
|
|
147
|
+
maxRows: d = 8,
|
|
148
|
+
onSubmit: u,
|
|
149
|
+
onAttach: b,
|
|
150
|
+
accept: G,
|
|
151
|
+
disabled: x,
|
|
152
|
+
toolbar: U,
|
|
153
|
+
label: E,
|
|
154
|
+
placeholder: Y,
|
|
155
|
+
className: q,
|
|
156
|
+
onChange: w,
|
|
157
|
+
onKeyDown: C,
|
|
158
|
+
onCompositionStart: N,
|
|
159
|
+
onCompositionEnd: V,
|
|
160
|
+
id: z,
|
|
161
|
+
...J
|
|
162
|
+
}, L) => {
|
|
163
|
+
const { t: c, i18n: M } = ke(), O = ye(), p = k(!1), S = k(null), H = k(null), Q = W((e) => {
|
|
164
|
+
H.current = e;
|
|
165
|
+
}, []), [X, m] = we({
|
|
166
|
+
value: n === void 0 ? void 0 : String(n),
|
|
167
|
+
defaultValue: String(l ?? "")
|
|
168
|
+
}), a = X ?? "", T = Se(a, M.language), f = typeof s == "number" && s > 0, Z = f ? Math.max(0, s - T) : 0, D = f && T > s * 0.9, h = f && T >= s, F = W(() => {
|
|
169
|
+
const e = H.current;
|
|
156
170
|
if (!e) return;
|
|
157
|
-
const
|
|
171
|
+
const r = window.getComputedStyle(e), I = parseFloat(r.lineHeight) || 24, de = parseFloat(r.paddingTop) || 0, ue = parseFloat(r.paddingBottom) || 0, pe = parseFloat(r.borderTopWidth) || 0, me = parseFloat(r.borderBottomWidth) || 0, _ = de + ue + pe + me, fe = I * o + _, $ = I * d + _;
|
|
158
172
|
e.style.height = "auto";
|
|
159
|
-
const he = Math.max(fe, Math.min(e.scrollHeight,
|
|
160
|
-
e.style.height = `${he}px`, e.style.overflowY = e.scrollHeight >
|
|
161
|
-
}, [
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, [
|
|
173
|
+
const he = Math.max(fe, Math.min(e.scrollHeight, $));
|
|
174
|
+
e.style.height = `${he}px`, e.style.overflowY = e.scrollHeight > $ ? "auto" : "hidden";
|
|
175
|
+
}, [o, d]);
|
|
176
|
+
Ce(() => {
|
|
177
|
+
F();
|
|
178
|
+
}, [F, a]);
|
|
165
179
|
const ee = (e) => {
|
|
166
|
-
|
|
180
|
+
let r = e.target.value;
|
|
181
|
+
f && !p.current && (r = Fe(r, s, M.language)), m(r), !p.current && (w == null || w(e));
|
|
167
182
|
}, te = (e) => {
|
|
168
|
-
|
|
183
|
+
p.current = !0, N == null || N(e);
|
|
169
184
|
}, se = (e) => {
|
|
170
|
-
|
|
171
|
-
},
|
|
172
|
-
!a.trim() ||
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
const
|
|
185
|
+
p.current = !1, V == null || V(e);
|
|
186
|
+
}, re = (e) => e.nativeEvent.isComposing || e.keyCode === 229 || p.current, j = () => {
|
|
187
|
+
!a.trim() || x || h || (u == null || u(a), m(""));
|
|
188
|
+
}, K = k(null);
|
|
189
|
+
be(L, () => K.current, []);
|
|
190
|
+
const ne = xe(
|
|
176
191
|
() => ({
|
|
177
192
|
getValue: () => a,
|
|
178
193
|
isEmpty: () => !a.trim(),
|
|
179
194
|
setValue: (e) => {
|
|
180
|
-
|
|
195
|
+
m(e);
|
|
181
196
|
},
|
|
182
197
|
clear: () => {
|
|
183
|
-
|
|
198
|
+
m("");
|
|
184
199
|
},
|
|
185
200
|
submit: () => {
|
|
186
|
-
|
|
201
|
+
j();
|
|
187
202
|
},
|
|
188
203
|
focus: () => {
|
|
189
204
|
var e;
|
|
190
|
-
(e =
|
|
205
|
+
(e = H.current) == null || e.focus();
|
|
191
206
|
}
|
|
192
207
|
}),
|
|
193
208
|
// `submit` is a local closure that always sees the latest currentValue
|
|
194
209
|
// via React's render cycle — depend on currentValue so the handle
|
|
195
210
|
// picks up new values across renders.
|
|
196
211
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
197
|
-
[a,
|
|
212
|
+
[a, m]
|
|
198
213
|
);
|
|
199
|
-
Ne(
|
|
200
|
-
const
|
|
201
|
-
if (
|
|
202
|
-
const
|
|
203
|
-
(
|
|
214
|
+
Ne(Ee, ne, z);
|
|
215
|
+
const ae = (e) => {
|
|
216
|
+
if (C == null || C(e), !e.defaultPrevented && !re(e) && e.key === "Enter") {
|
|
217
|
+
const r = e.metaKey || e.ctrlKey, I = y && !e.shiftKey;
|
|
218
|
+
(r || I) && (e.preventDefault(), j());
|
|
204
219
|
}
|
|
205
220
|
}, ie = () => {
|
|
206
221
|
var e;
|
|
207
|
-
(e =
|
|
222
|
+
(e = S.current) == null || e.click();
|
|
208
223
|
}, oe = (e) => {
|
|
209
|
-
e.target.files && e.target.files.length > 0 && (
|
|
210
|
-
},
|
|
211
|
-
return /* @__PURE__ */
|
|
224
|
+
e.target.files && e.target.files.length > 0 && (b == null || b(e.target.files)), e.target.value = "";
|
|
225
|
+
}, g = z ?? O, R = `${g}-label`, B = f ? `${g}-counter` : void 0, P = `${g}-hint`, ce = Y ?? c("chat.input.placeholder"), le = E ?? c("chat.prompt");
|
|
226
|
+
return /* @__PURE__ */ v(
|
|
212
227
|
"div",
|
|
213
228
|
{
|
|
214
|
-
ref:
|
|
229
|
+
ref: K,
|
|
215
230
|
"data-component": "chat-input",
|
|
216
|
-
"data-component-id":
|
|
217
|
-
className:
|
|
231
|
+
"data-component-id": z,
|
|
232
|
+
className: Me({ size: t, className: q }),
|
|
218
233
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ i(
|
|
220
235
|
"label",
|
|
221
236
|
{
|
|
222
|
-
id:
|
|
223
|
-
htmlFor:
|
|
224
|
-
className:
|
|
237
|
+
id: R,
|
|
238
|
+
htmlFor: g,
|
|
239
|
+
className: E ? "type-label ds:ps-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)]" : "ds:sr-only",
|
|
225
240
|
children: le
|
|
226
241
|
}
|
|
227
242
|
),
|
|
228
|
-
/* @__PURE__ */
|
|
243
|
+
/* @__PURE__ */ i(
|
|
229
244
|
"textarea",
|
|
230
245
|
{
|
|
231
246
|
ref: Q,
|
|
232
|
-
id:
|
|
247
|
+
id: g,
|
|
233
248
|
value: a,
|
|
234
|
-
disabled:
|
|
235
|
-
rows:
|
|
236
|
-
maxLength: s,
|
|
249
|
+
disabled: x,
|
|
250
|
+
rows: o,
|
|
237
251
|
placeholder: ce,
|
|
238
|
-
"aria-labelledby":
|
|
239
|
-
"aria-describedby": [
|
|
240
|
-
"aria-invalid":
|
|
252
|
+
"aria-labelledby": R,
|
|
253
|
+
"aria-describedby": [B, P].filter(Boolean).join(" ") || void 0,
|
|
254
|
+
"aria-invalid": h || void 0,
|
|
241
255
|
onChange: ee,
|
|
242
|
-
onKeyDown:
|
|
256
|
+
onKeyDown: ae,
|
|
243
257
|
onCompositionStart: te,
|
|
244
258
|
onCompositionEnd: se,
|
|
245
259
|
className: [
|
|
@@ -257,68 +271,68 @@ const Re = ve(
|
|
|
257
271
|
"ds:rounded-[var(--radius-sm)]",
|
|
258
272
|
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
259
273
|
].join(" "),
|
|
260
|
-
...
|
|
274
|
+
...J
|
|
261
275
|
}
|
|
262
276
|
),
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
|
|
265
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ v("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: [
|
|
278
|
+
b ? /* @__PURE__ */ v(ge, { children: [
|
|
279
|
+
/* @__PURE__ */ i(
|
|
266
280
|
"input",
|
|
267
281
|
{
|
|
268
|
-
ref:
|
|
282
|
+
ref: S,
|
|
269
283
|
type: "file",
|
|
270
284
|
className: "ds:sr-only",
|
|
271
285
|
multiple: !0,
|
|
272
|
-
accept:
|
|
286
|
+
accept: G,
|
|
273
287
|
onChange: oe,
|
|
274
|
-
"aria-label":
|
|
288
|
+
"aria-label": c("chat.input.attach"),
|
|
275
289
|
tabIndex: -1
|
|
276
290
|
}
|
|
277
291
|
),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
|
|
292
|
+
/* @__PURE__ */ i(
|
|
293
|
+
A,
|
|
280
294
|
{
|
|
281
|
-
icon: /* @__PURE__ */
|
|
282
|
-
"aria-label":
|
|
295
|
+
icon: /* @__PURE__ */ i(je, {}),
|
|
296
|
+
"aria-label": c("chat.input.attach"),
|
|
283
297
|
intent: "ghost",
|
|
284
298
|
size: "sm",
|
|
285
299
|
onClick: ie,
|
|
286
|
-
disabled:
|
|
300
|
+
disabled: x
|
|
287
301
|
}
|
|
288
302
|
)
|
|
289
303
|
] }) : null,
|
|
290
|
-
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
D ? /* @__PURE__ */
|
|
304
|
+
U,
|
|
305
|
+
/* @__PURE__ */ v("div", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
306
|
+
D ? /* @__PURE__ */ v(
|
|
293
307
|
"span",
|
|
294
308
|
{
|
|
295
|
-
id:
|
|
309
|
+
id: B,
|
|
296
310
|
"aria-live": "polite",
|
|
297
311
|
className: [
|
|
298
312
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
299
313
|
"type-meta ds:tabular-nums",
|
|
300
|
-
|
|
314
|
+
h ? "ds:text-[color:var(--destructive)]" : "ds:text-[color:var(--muted-foreground)]"
|
|
301
315
|
].join(" "),
|
|
302
316
|
children: [
|
|
303
|
-
|
|
317
|
+
h ? (
|
|
304
318
|
// Icon pairs with --destructive colour so the at-limit
|
|
305
319
|
// state is not conveyed by hue alone (WCAG 1.4.1).
|
|
306
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ i(ze, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
307
321
|
) : null,
|
|
308
|
-
|
|
322
|
+
c("chat.input.remaining", { count: Z })
|
|
309
323
|
]
|
|
310
324
|
}
|
|
311
325
|
) : null,
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
|
|
326
|
+
/* @__PURE__ */ i("span", { id: P, className: "ds:sr-only", children: c("chat.input.sendHint") }),
|
|
327
|
+
/* @__PURE__ */ i(
|
|
328
|
+
A,
|
|
315
329
|
{
|
|
316
|
-
icon: /* @__PURE__ */
|
|
317
|
-
"aria-label":
|
|
330
|
+
icon: /* @__PURE__ */ i(He, {}),
|
|
331
|
+
"aria-label": c("chat.send"),
|
|
318
332
|
intent: "primary",
|
|
319
333
|
size: "sm",
|
|
320
|
-
disabled:
|
|
321
|
-
onClick:
|
|
334
|
+
disabled: x || !a.trim() || h,
|
|
335
|
+
onClick: j,
|
|
322
336
|
"aria-keyshortcuts": "Meta+Enter Control+Enter"
|
|
323
337
|
}
|
|
324
338
|
)
|
|
@@ -329,9 +343,9 @@ const Re = ve(
|
|
|
329
343
|
);
|
|
330
344
|
}
|
|
331
345
|
);
|
|
332
|
-
|
|
346
|
+
Ke.displayName = "ChatInput";
|
|
333
347
|
export {
|
|
334
|
-
|
|
335
|
-
|
|
348
|
+
Ke as C,
|
|
349
|
+
Ee as c
|
|
336
350
|
};
|
|
337
|
-
//# sourceMappingURL=chat-input-
|
|
351
|
+
//# sourceMappingURL=chat-input-CQe7nR_v.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as C, useMemo as j, Fragment as g } from "react";
|
|
|
3
3
|
import { c as h } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as T } from "react-i18next";
|
|
5
5
|
import { B as z } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { A as M } from "./avatar-
|
|
6
|
+
import { A as M } from "./avatar-BNQNhoyL.js";
|
|
7
7
|
import { T as I } from "./timestamp-BV2lC-wV.js";
|
|
8
8
|
import { s as A } from "./safe-image-src-DstKgCo7.js";
|
|
9
9
|
import { c as F } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -236,4 +236,4 @@ H.displayName = "ChatMessage";
|
|
|
236
236
|
export {
|
|
237
237
|
H as C
|
|
238
238
|
};
|
|
239
|
-
//# sourceMappingURL=chat-message-
|
|
239
|
+
//# sourceMappingURL=chat-message-D53_fH2w.js.map
|
|
@@ -3,8 +3,8 @@ import { createContext as O, useContext as S, forwardRef as G, useId as K, useRe
|
|
|
3
3
|
import * as b from "@radix-ui/react-checkbox";
|
|
4
4
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { u as B } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
-
import { T as F } from "./tooltip-
|
|
7
|
-
import { u as H } from "./registry-
|
|
6
|
+
import { T as F } from "./tooltip-DvmfrNvB.js";
|
|
7
|
+
import { u as H } from "./registry-nPAVE19X.js";
|
|
8
8
|
const W = O(null);
|
|
9
9
|
function D() {
|
|
10
10
|
return S(W);
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
W as a,
|
|
206
206
|
D as u
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=checkbox-
|
|
208
|
+
//# sourceMappingURL=checkbox-DRcOdmXv.js.map
|
|
@@ -3,8 +3,8 @@ import { forwardRef as O, useId as Q, useMemo as S, useState as T, useRef as W,
|
|
|
3
3
|
import { c as Z } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as V } from "react-i18next";
|
|
5
5
|
import { u as ee } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
-
import { C as M, a as te } from "./checkbox-
|
|
7
|
-
import { u as se } from "./registry-
|
|
6
|
+
import { C as M, a as te } from "./checkbox-DRcOdmXv.js";
|
|
7
|
+
import { u as se } from "./registry-nPAVE19X.js";
|
|
8
8
|
import { C as ce } from "./circle-alert-ChA9opNA.js";
|
|
9
9
|
const re = {
|
|
10
10
|
id: "checkbox-group",
|
|
@@ -210,4 +210,4 @@ oe.displayName = "CheckboxGroup";
|
|
|
210
210
|
export {
|
|
211
211
|
oe as C
|
|
212
212
|
};
|
|
213
|
-
//# sourceMappingURL=checkbox-group-
|
|
213
|
+
//# sourceMappingURL=checkbox-group-CpUwlHug.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as p, useRef as f, useMemo as C, useEffect as v } from "reac
|
|
|
3
3
|
import * as b from "@radix-ui/react-collapsible";
|
|
4
4
|
import { a as y, c as h } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { u as k } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
-
import { u as w } from "./registry-
|
|
6
|
+
import { u as w } from "./registry-nPAVE19X.js";
|
|
7
7
|
const x = {
|
|
8
8
|
id: "collapsible",
|
|
9
9
|
capabilities: ["expand"],
|
|
@@ -142,4 +142,4 @@ export {
|
|
|
142
142
|
T as b,
|
|
143
143
|
x as c
|
|
144
144
|
};
|
|
145
|
-
//# sourceMappingURL=collapsible-
|
|
145
|
+
//# sourceMappingURL=collapsible-CERONory.js.map
|