@alfadocs/ui-kit 0.31.0 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-BIZ9GSer.js} +15 -15
- 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-JQunxBIg.js +1618 -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 +1 -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/streaming-text-BgjCTVOw.js +0 -105
- package/dist/_chunks/use-scroll-to-first-error-BrK7dKB_.js +0 -55
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as y, useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { c as
|
|
2
|
+
import { forwardRef as y, useRef as I, useState as j, useEffect as w } from "react";
|
|
3
|
+
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as N } from "react-i18next";
|
|
5
|
+
import { c as E } from "./compose-refs-C0k0tdqF.js";
|
|
6
|
+
import { u as B } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
6
7
|
function R(s) {
|
|
7
8
|
let e = 5381;
|
|
8
|
-
for (let
|
|
9
|
-
e = (e << 5) + e ^ s.charCodeAt(
|
|
9
|
+
for (let o = 0; o < s.length; o++)
|
|
10
|
+
e = (e << 5) + e ^ s.charCodeAt(o), e = e >>> 0;
|
|
10
11
|
return e;
|
|
11
12
|
}
|
|
12
13
|
const i = [
|
|
@@ -34,7 +35,7 @@ function L(s) {
|
|
|
34
35
|
const e = s.trim().split(/\s+/).filter(Boolean);
|
|
35
36
|
return e.length === 0 ? "" : e.length === 1 ? e[0].slice(0, 2).toUpperCase() : (e[0][0] + e[e.length - 1][0]).toUpperCase();
|
|
36
37
|
}
|
|
37
|
-
const k =
|
|
38
|
+
const k = A(
|
|
38
39
|
[
|
|
39
40
|
"ds:relative ds:inline-flex ds:shrink-0 ds:select-none ds:items-center ds:justify-center ds:overflow-hidden ds:rounded-[var(--radius-full)]",
|
|
40
41
|
// Focus ring — uses design-system tokens so theme overrides (accessible: 3px) apply automatically.
|
|
@@ -66,17 +67,17 @@ const k = N(
|
|
|
66
67
|
defaultVariants: { size: "md" }
|
|
67
68
|
}
|
|
68
69
|
), T = y(
|
|
69
|
-
({ src: s, name: e, color:
|
|
70
|
-
const { t: g } =
|
|
71
|
-
|
|
70
|
+
({ src: s, name: e, color: o, size: d, className: c, ...v }, f) => {
|
|
71
|
+
const { t: g } = N(), l = I(null), u = E(f, l), [m, n] = j(!1);
|
|
72
|
+
w(() => {
|
|
72
73
|
n(!1);
|
|
73
|
-
}, [s]),
|
|
74
|
+
}, [s]), B(() => {
|
|
74
75
|
const a = l.current;
|
|
75
|
-
a && (
|
|
76
|
-
}, [
|
|
77
|
-
const
|
|
76
|
+
a && (o ? a.style.setProperty("--avatar-color-override", o) : a.style.removeProperty("--avatar-color-override"));
|
|
77
|
+
}, [o]);
|
|
78
|
+
const t = !!s && !m, b = !t && !!e, h = !t && !e, p = o ? "ds:bg-[var(--avatar-color-override)]" : e ? S(e) : "ds:bg-muted", x = k({
|
|
78
79
|
size: d,
|
|
79
|
-
className: [p,
|
|
80
|
+
className: [p, o || e ? "ds:text-[var(--primary-foreground)] ds:[.theme-dark.theme-accessible_&]:text-[var(--color-grey-500)]" : "ds:text-muted-foreground", c].filter(Boolean).join(" ")
|
|
80
81
|
}), z = e ?? g("avatar.placeholder", "User avatar");
|
|
81
82
|
return /* @__PURE__ */ C(
|
|
82
83
|
"span",
|
|
@@ -88,7 +89,7 @@ const k = N(
|
|
|
88
89
|
className: x,
|
|
89
90
|
...v,
|
|
90
91
|
children: [
|
|
91
|
-
(
|
|
92
|
+
(b || t) && !!e && /* @__PURE__ */ r("span", { "aria-hidden": "true", children: L(e) }),
|
|
92
93
|
h && /* @__PURE__ */ r(
|
|
93
94
|
"svg",
|
|
94
95
|
{
|
|
@@ -98,7 +99,7 @@ const k = N(
|
|
|
98
99
|
children: /* @__PURE__ */ r("path", { d: "M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z" })
|
|
99
100
|
}
|
|
100
101
|
),
|
|
101
|
-
|
|
102
|
+
t && /* @__PURE__ */ r(
|
|
102
103
|
"img",
|
|
103
104
|
{
|
|
104
105
|
src: s,
|
|
@@ -119,4 +120,4 @@ export {
|
|
|
119
120
|
L as g,
|
|
120
121
|
S as n
|
|
121
122
|
};
|
|
122
|
-
//# sourceMappingURL=avatar-
|
|
123
|
+
//# sourceMappingURL=avatar-BNQNhoyL.js.map
|
|
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as w } from "react";
|
|
3
3
|
import { c as r } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as h } from "react-i18next";
|
|
5
|
-
import { T as y } from "./tooltip-
|
|
5
|
+
import { T as y } from "./tooltip-DvmfrNvB.js";
|
|
6
6
|
const z = r(
|
|
7
7
|
[
|
|
8
8
|
"ds:inline-flex ds:items-center ds:gap-1",
|
|
@@ -105,4 +105,4 @@ j.displayName = "Badge";
|
|
|
105
105
|
export {
|
|
106
106
|
j as B
|
|
107
107
|
};
|
|
108
|
-
//# sourceMappingURL=badge-
|
|
108
|
+
//# sourceMappingURL=badge-CptERaHx.js.map
|
|
@@ -2,29 +2,29 @@ import { jsxs as f, jsx as a, Fragment as Z } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as qe, useId as He, useState as H, useCallback as ae, useRef as te, useEffect as Q, useMemo as I, useImperativeHandle as pt } from "react";
|
|
3
3
|
import { c as Ie } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as T, Trans as gt } from "react-i18next";
|
|
5
|
-
import { u as ft } from "./registry-
|
|
5
|
+
import { u as ft } from "./registry-nPAVE19X.js";
|
|
6
6
|
import { A as L } from "./alert-ywPR59NE.js";
|
|
7
7
|
import { B as se } from "./button-DD_0Xdmr.js";
|
|
8
|
-
import { C as _e } from "./checkbox-
|
|
9
|
-
import { C as ht } from "./checkbox-group-
|
|
10
|
-
import { D as vt } from "./date-picker-
|
|
11
|
-
import { E as bt } from "./email-input-
|
|
8
|
+
import { C as _e } from "./checkbox-DRcOdmXv.js";
|
|
9
|
+
import { C as ht } from "./checkbox-group-CpUwlHug.js";
|
|
10
|
+
import { D as vt } from "./date-picker-B94HAV4A.js";
|
|
11
|
+
import { E as bt } from "./email-input-lQivsFrw.js";
|
|
12
12
|
import { F as Y } from "./form-field-BOm9hK35.js";
|
|
13
|
-
import { P as yt } from "./phone-input-
|
|
14
|
-
import { T as kt } from "./text-area-
|
|
15
|
-
import { T as be } from "./text-input-
|
|
13
|
+
import { P as yt } from "./phone-input-DfZbPPvh.js";
|
|
14
|
+
import { T as kt } from "./text-area-BIx0tZ05.js";
|
|
15
|
+
import { T as be } from "./text-input-BaClJL8Y.js";
|
|
16
16
|
import { S as xt } from "./spinner-CCByyvcb.js";
|
|
17
|
-
import { I as Fe } from "./icon-button-
|
|
18
|
-
import { S as we } from "./select-
|
|
17
|
+
import { I as Fe } from "./icon-button-CKEOrN37.js";
|
|
18
|
+
import { S as we } from "./select-hsCaJSX3.js";
|
|
19
19
|
import { S as Se } from "./skeleton-CZbwyJAA.js";
|
|
20
20
|
import { E as Ge } from "./empty-state-BLy7tigq.js";
|
|
21
21
|
import { S as St } from "./stepper-accordion-BfS6lUB9.js";
|
|
22
|
-
import { S as Nt } from "./stepper-progress-
|
|
23
|
-
import { p as ee } from "./parseISO-
|
|
24
|
-
import {
|
|
22
|
+
import { S as Nt } from "./stepper-progress-DDjq5nei.js";
|
|
23
|
+
import { p as ee } from "./parseISO-DEpUNwxZ.js";
|
|
24
|
+
import { w as Ue, f as fe, d as It, h as xe, x as ye } from "./react-day-picker-DsjfS7uI.js";
|
|
25
25
|
import { C as wt } from "./chevron-left-CX1jqD2M.js";
|
|
26
26
|
import { C as Ct } from "./chevron-right-BrpYejk0.js";
|
|
27
|
-
import { i as ze } from "./isSameDay-
|
|
27
|
+
import { i as ze } from "./isSameDay-DUEiAT0G.js";
|
|
28
28
|
import { c as O } from "./createLucideIcon-CrFbzy84.js";
|
|
29
29
|
import { M as Mt, S as Dt } from "./sun-BuXE0xUS.js";
|
|
30
30
|
import { S as Tt } from "./stethoscope-DT5qCW8Y.js";
|
|
@@ -2314,4 +2314,4 @@ export {
|
|
|
2314
2314
|
he as O,
|
|
2315
2315
|
oa as b
|
|
2316
2316
|
};
|
|
2317
|
-
//# sourceMappingURL=booking-
|
|
2317
|
+
//# sourceMappingURL=booking-BIZ9GSer.js.map
|
|
@@ -4,7 +4,7 @@ import * as j from "@radix-ui/react-dropdown-menu";
|
|
|
4
4
|
import { Slot as q } from "@radix-ui/react-slot";
|
|
5
5
|
import { c as K } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as B } from "react-i18next";
|
|
7
|
-
import { u as O } from "./registry-
|
|
7
|
+
import { u as O } from "./registry-nPAVE19X.js";
|
|
8
8
|
import { E as _ } from "./ellipsis-rgGdiK_9.js";
|
|
9
9
|
import { C as D } from "./chevron-right-BrpYejk0.js";
|
|
10
10
|
const G = {
|
|
@@ -376,4 +376,4 @@ export {
|
|
|
376
376
|
T as e,
|
|
377
377
|
G as f
|
|
378
378
|
};
|
|
379
|
-
//# sourceMappingURL=breadcrumb
|
|
379
|
+
//# sourceMappingURL=breadcrumb-CLlhx7qo.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as K, useRef as R, useState as g,
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
|
|
2
|
+
import { forwardRef as K, useRef as R, useState as g, useCallback as T, Children as V, isValidElement as C, cloneElement as F } from "react";
|
|
3
|
+
import { c as N } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as S } from "react-i18next";
|
|
5
|
+
import { u as H } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
6
|
+
const M = N(
|
|
6
7
|
"ds:inline-flex ds:isolate ds:[&>*]:relative ds:[&>*:focus-visible]:z-10",
|
|
7
8
|
{
|
|
8
9
|
variants: {
|
|
@@ -53,13 +54,13 @@ const M = S(
|
|
|
53
54
|
children: z,
|
|
54
55
|
...E
|
|
55
56
|
}, l) => {
|
|
56
|
-
const { t:
|
|
57
|
-
|
|
57
|
+
const { t: I } = S(), L = A ?? I("buttonGroup.label", "Button group"), c = p, d = R([]), [u, h] = g(0), w = R(null), [b, j] = g(!1);
|
|
58
|
+
H(() => {
|
|
58
59
|
if (typeof window > "u") return;
|
|
59
60
|
const t = w.current;
|
|
60
|
-
t &&
|
|
61
|
+
t && j(window.getComputedStyle(t).direction === "rtl");
|
|
61
62
|
}, []);
|
|
62
|
-
const
|
|
63
|
+
const B = T(
|
|
63
64
|
(t) => {
|
|
64
65
|
var y;
|
|
65
66
|
if (!c) return;
|
|
@@ -79,8 +80,8 @@ const M = S(
|
|
|
79
80
|
t.preventDefault(), h(r), (y = d.current[r]) == null || y.focus();
|
|
80
81
|
},
|
|
81
82
|
[c, a, b, u]
|
|
82
|
-
), D =
|
|
83
|
-
if (!
|
|
83
|
+
), D = V.map(z, (t, e) => {
|
|
84
|
+
if (!C(t)) return t;
|
|
84
85
|
const s = t, f = (i) => {
|
|
85
86
|
d.current[e] = i;
|
|
86
87
|
const o = s.ref;
|
|
@@ -94,7 +95,7 @@ const M = S(
|
|
|
94
95
|
},
|
|
95
96
|
ref: f
|
|
96
97
|
};
|
|
97
|
-
return
|
|
98
|
+
return F(s, n);
|
|
98
99
|
});
|
|
99
100
|
return /* @__PURE__ */ G(
|
|
100
101
|
"div",
|
|
@@ -103,10 +104,10 @@ const M = S(
|
|
|
103
104
|
w.current = t, typeof l == "function" ? l(t) : l && typeof l == "object" && (l.current = t);
|
|
104
105
|
},
|
|
105
106
|
role: p ? "toolbar" : "group",
|
|
106
|
-
"aria-label":
|
|
107
|
+
"aria-label": L,
|
|
107
108
|
"aria-orientation": p ? a ?? "horizontal" : void 0,
|
|
108
109
|
"data-component": "button-group",
|
|
109
|
-
onKeyDown:
|
|
110
|
+
onKeyDown: B,
|
|
110
111
|
className: M({ orientation: a, separator: k, className: x }),
|
|
111
112
|
...E,
|
|
112
113
|
children: D
|
|
@@ -118,4 +119,4 @@ U.displayName = "ButtonGroup";
|
|
|
118
119
|
export {
|
|
119
120
|
U as B
|
|
120
121
|
};
|
|
121
|
-
//# sourceMappingURL=button-group-
|
|
122
|
+
//# sourceMappingURL=button-group-Ciq6J4IW.js.map
|
|
@@ -12,7 +12,7 @@ import nt from "@fullcalendar/resource-timeline";
|
|
|
12
12
|
import at from "@fullcalendar/timeline";
|
|
13
13
|
import st from "@fullcalendar/interaction";
|
|
14
14
|
import { u as ot } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
15
|
-
import { u as it } from "./registry-
|
|
15
|
+
import { u as it } from "./registry-nPAVE19X.js";
|
|
16
16
|
import { C as de } from "./chevron-right-BrpYejk0.js";
|
|
17
17
|
import { C as ce } from "./chevron-left-CX1jqD2M.js";
|
|
18
18
|
import { c as V } from "./createLucideIcon-CrFbzy84.js";
|
|
@@ -285,7 +285,7 @@ function _t(r) {
|
|
|
285
285
|
}
|
|
286
286
|
return r.startsWith("en-US") || r.startsWith("he") || r.startsWith("ar-SA") ? 0 : 1;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Et() {
|
|
289
289
|
const { i18n: r } = ae(), [s, d] = ne(() => {
|
|
290
290
|
if (typeof document > "u") return !1;
|
|
291
291
|
const u = document.documentElement.getAttribute("dir"), h = typeof r.dir == "function" ? r.dir() : "ltr";
|
|
@@ -303,7 +303,7 @@ function Rt() {
|
|
|
303
303
|
}), () => u.disconnect();
|
|
304
304
|
}, [r]), s;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Rt({
|
|
307
307
|
arg: r,
|
|
308
308
|
locale: s,
|
|
309
309
|
resources: d,
|
|
@@ -398,7 +398,7 @@ const fe = [
|
|
|
398
398
|
"ds:min-w-[var(--min-target-size)]"
|
|
399
399
|
].join(" "), se = me(
|
|
400
400
|
({ title: r, onToday: s, onPrev: d, onNext: u, end: h, className: D }, N) => {
|
|
401
|
-
const { t: m } = ae(), v =
|
|
401
|
+
const { t: m } = ae(), v = Et(), f = v ? de : ce, y = v ? ce : de, A = [
|
|
402
402
|
"ds:calendar-toolbar",
|
|
403
403
|
"ds:sticky ds:top-0 ds:z-20",
|
|
404
404
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
@@ -500,7 +500,7 @@ const ve = me(
|
|
|
500
500
|
resourceLayout: F = "vertical",
|
|
501
501
|
showResourceInitials: oe = !1
|
|
502
502
|
}, ye) => {
|
|
503
|
-
const { t: o, i18n: _ } = ae(), S = M(null), ee = M(null), b = M(null), w = M(null),
|
|
503
|
+
const { t: o, i18n: _ } = ae(), S = M(null), ee = M(null), b = M(null), w = M(null), E = M(null), H = D ?? _.language ?? "en", [xe, Te] = ne(() => {
|
|
504
504
|
if (typeof document > "u") return "ltr";
|
|
505
505
|
const e = document.documentElement.getAttribute("dir"), t = typeof _.dir == "function" ? _.dir() : "ltr";
|
|
506
506
|
return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
|
|
@@ -604,17 +604,17 @@ const ve = me(
|
|
|
604
604
|
if (!n) return;
|
|
605
605
|
const c = `[data-event-id="${CSS.escape(t)}"]`, i = n.querySelector(c);
|
|
606
606
|
if (i) {
|
|
607
|
-
if (w.current && (clearTimeout(w.current), w.current = null),
|
|
607
|
+
if (w.current && (clearTimeout(w.current), w.current = null), E.current && E.current !== i && E.current.classList.remove("calendar-event-focused"), i.scrollIntoView({
|
|
608
608
|
behavior: q ? "auto" : "smooth",
|
|
609
609
|
block: "center"
|
|
610
|
-
}), i.classList.add("calendar-event-focused"),
|
|
611
|
-
const g = i.getAttribute("aria-label") ?? t,
|
|
610
|
+
}), i.classList.add("calendar-event-focused"), E.current = i, b.current) {
|
|
611
|
+
const g = i.getAttribute("aria-label") ?? t, R = p ? "•••" : g;
|
|
612
612
|
b.current.textContent = o("calendar.focusedEvent", {
|
|
613
|
-
title:
|
|
613
|
+
title: R
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
w.current = setTimeout(() => {
|
|
617
|
-
i.classList.remove("calendar-event-focused"),
|
|
617
|
+
i.classList.remove("calendar-event-focused"), E.current === i && (E.current = null), w.current = null;
|
|
618
618
|
}, 3e3);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
@@ -742,7 +742,7 @@ const ve = me(
|
|
|
742
742
|
const t = e.oldEvent.end;
|
|
743
743
|
if (!t)
|
|
744
744
|
return;
|
|
745
|
-
const n = e.event.end, c = e.event.start ?? t;
|
|
745
|
+
const n = e.event.end, c = e.event.start ?? e.oldEvent.start ?? t;
|
|
746
746
|
if (m({
|
|
747
747
|
event: re(e.event),
|
|
748
748
|
oldEnd: t,
|
|
@@ -750,19 +750,19 @@ const ve = me(
|
|
|
750
750
|
}), b.current) {
|
|
751
751
|
const i = Math.round(
|
|
752
752
|
(n.getTime() - c.getTime()) / 6e4
|
|
753
|
-
), g = e.event.extendedProps ?? {},
|
|
753
|
+
), g = e.event.extendedProps ?? {}, R = p ? g.privacyModeTitle ?? "•••" : e.event.title;
|
|
754
754
|
b.current.textContent = o("calendar.eventResized", {
|
|
755
|
-
title:
|
|
755
|
+
title: R,
|
|
756
756
|
duration: i
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
759
|
};
|
|
760
|
-
}, [m, p, o]),
|
|
760
|
+
}, [m, p, o]), Ee = l(() => {
|
|
761
761
|
if (f)
|
|
762
762
|
return (e) => {
|
|
763
763
|
e.event.start && f(re(e.event));
|
|
764
764
|
};
|
|
765
|
-
}, [f]),
|
|
765
|
+
}, [f]), Re = l(() => {
|
|
766
766
|
if (y)
|
|
767
767
|
return (e) => {
|
|
768
768
|
var t;
|
|
@@ -792,7 +792,7 @@ const ve = me(
|
|
|
792
792
|
[u, F]
|
|
793
793
|
), Le = B(
|
|
794
794
|
(e) => {
|
|
795
|
-
const t = e.resource.extendedProps, n = e.resource.title, c = t.shortTitle, i = t.color, g = t.shortTitleTextColor,
|
|
795
|
+
const t = e.resource.extendedProps, n = e.resource.title, c = t.shortTitle, i = t.color, g = t.shortTitleTextColor, R = i || g ? {
|
|
796
796
|
...i ? { "--resource-color": i } : {},
|
|
797
797
|
...g ? {
|
|
798
798
|
"--resource-initials-text-color": g
|
|
@@ -810,7 +810,7 @@ const ve = me(
|
|
|
810
810
|
"span",
|
|
811
811
|
{
|
|
812
812
|
className: Ke,
|
|
813
|
-
style:
|
|
813
|
+
style: R,
|
|
814
814
|
"aria-hidden": "true",
|
|
815
815
|
children: c
|
|
816
816
|
}
|
|
@@ -823,7 +823,7 @@ const ve = me(
|
|
|
823
823
|
"span",
|
|
824
824
|
{
|
|
825
825
|
className: "resource-dot ds:[background-color:var(--resource-color)]",
|
|
826
|
-
style:
|
|
826
|
+
style: R,
|
|
827
827
|
"aria-hidden": "true"
|
|
828
828
|
}
|
|
829
829
|
),
|
|
@@ -976,7 +976,7 @@ const ve = me(
|
|
|
976
976
|
nowIndicator: k,
|
|
977
977
|
eventLongPressDelay: q ? 0 : 1e3,
|
|
978
978
|
eventDragMinDistance: q ? 0 : 5,
|
|
979
|
-
eventContent: (e) =>
|
|
979
|
+
eventContent: (e) => Rt({
|
|
980
980
|
arg: e,
|
|
981
981
|
locale: H,
|
|
982
982
|
resources: d ?? [],
|
|
@@ -984,11 +984,11 @@ const ve = me(
|
|
|
984
984
|
privacyMode: p,
|
|
985
985
|
showTime: Y
|
|
986
986
|
}),
|
|
987
|
-
eventClick:
|
|
987
|
+
eventClick: Ee,
|
|
988
988
|
eventDrop: Se,
|
|
989
989
|
eventResize: _e,
|
|
990
990
|
eventResizeStart: v,
|
|
991
|
-
select:
|
|
991
|
+
select: Re,
|
|
992
992
|
datesSet: Me
|
|
993
993
|
}
|
|
994
994
|
)
|
|
@@ -1005,4 +1005,4 @@ export {
|
|
|
1005
1005
|
Ct as c,
|
|
1006
1006
|
le as r
|
|
1007
1007
|
};
|
|
1008
|
-
//# sourceMappingURL=calendar-
|
|
1008
|
+
//# sourceMappingURL=calendar-YHFknAGv.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as F, jsxs as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as De, useState as ne, useCallback as le, useEffect as fe, forwardRef as xe, useId as xt, useMemo as Qe, useImperativeHandle as yt, Children as et, isValidElement as tt, createContext as It, useContext as Ct } from "react";
|
|
3
3
|
import { c as nt } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ye } from "react-i18next";
|
|
5
|
-
import { I as Je } from "./icon-button-
|
|
5
|
+
import { I as Je } from "./icon-button-CKEOrN37.js";
|
|
6
6
|
import { C as Lt } from "./chevron-left-CX1jqD2M.js";
|
|
7
7
|
import { C as wt } from "./chevron-right-BrpYejk0.js";
|
|
8
8
|
function Et(e) {
|
|
@@ -1730,4 +1730,4 @@ export {
|
|
|
1730
1730
|
yn as C,
|
|
1731
1731
|
In as c
|
|
1732
1732
|
};
|
|
1733
|
-
//# sourceMappingURL=carousel.agent-
|
|
1733
|
+
//# sourceMappingURL=carousel.agent-DrX96W-1.js.map
|
|
@@ -6,7 +6,7 @@ import ot from "react-apexcharts";
|
|
|
6
6
|
import N from "apexcharts";
|
|
7
7
|
import { u as rt, g as P } from "./apexcharts-theme-BJigns_V.js";
|
|
8
8
|
import { u as at } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
9
|
-
import { u as nt } from "./registry-
|
|
9
|
+
import { u as nt } from "./registry-nPAVE19X.js";
|
|
10
10
|
const st = {
|
|
11
11
|
id: "chart",
|
|
12
12
|
capabilities: [],
|
|
@@ -289,4 +289,4 @@ export {
|
|
|
289
289
|
it as a,
|
|
290
290
|
st as c
|
|
291
291
|
};
|
|
292
|
-
//# sourceMappingURL=chart-
|
|
292
|
+
//# sourceMappingURL=chart-DLkVn_ex.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as B, useRef as u, useState as C, useCallback as H, useImperativeHandle as L, useMemo as E, useEffect as M
|
|
2
|
+
import { forwardRef as B, useRef as u, useState as C, useCallback as H, useImperativeHandle as L, useMemo as E, useEffect as M } from "react";
|
|
3
3
|
import { c as k } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { F as
|
|
8
|
-
import { u as
|
|
4
|
+
import { useTranslation as O } from "react-i18next";
|
|
5
|
+
import { u as S } from "./registry-nPAVE19X.js";
|
|
6
|
+
import { u as j } from "./index-CJE9uQmb.js";
|
|
7
|
+
import { F as A } from "./floating-action-button-pojvb9gG.js";
|
|
8
|
+
import { u as P } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
9
|
+
import { u as $ } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
9
10
|
import { C as D } from "./chevron-down-BX_NP2Yh.js";
|
|
10
11
|
const F = {
|
|
11
12
|
id: "chat-container",
|
|
@@ -65,13 +66,13 @@ const F = {
|
|
|
65
66
|
messages: o,
|
|
66
67
|
composer: r,
|
|
67
68
|
density: w = "default",
|
|
68
|
-
className:
|
|
69
|
+
className: I,
|
|
69
70
|
id: p,
|
|
70
71
|
onAutoScrollChange: i,
|
|
71
|
-
showScrollToLatest:
|
|
72
|
-
...
|
|
72
|
+
showScrollToLatest: N = !1,
|
|
73
|
+
...y
|
|
73
74
|
}, T) => {
|
|
74
|
-
const { t: f } =
|
|
75
|
+
const { t: f } = O(), a = u(null), v = u(null), [c, _] = C(!0), g = P(), n = H(
|
|
75
76
|
(e) => {
|
|
76
77
|
const s = a.current;
|
|
77
78
|
if (!s) return;
|
|
@@ -91,7 +92,7 @@ const F = {
|
|
|
91
92
|
}),
|
|
92
93
|
[n]
|
|
93
94
|
);
|
|
94
|
-
|
|
95
|
+
S(F, R, p), M(() => {
|
|
95
96
|
const e = a.current, s = v.current;
|
|
96
97
|
if (!e || !s) return;
|
|
97
98
|
const d = new IntersectionObserver(
|
|
@@ -109,10 +110,10 @@ const F = {
|
|
|
109
110
|
return d.observe(s), () => d.disconnect();
|
|
110
111
|
}, [i]);
|
|
111
112
|
const z = o.length;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}, [z,
|
|
115
|
-
const b = o.length > X,
|
|
113
|
+
$(() => {
|
|
114
|
+
c && n({ smooth: !1 });
|
|
115
|
+
}, [z, c, n]);
|
|
116
|
+
const b = o.length > X, l = j({
|
|
116
117
|
count: b ? o.length : 0,
|
|
117
118
|
getScrollElement: () => a.current,
|
|
118
119
|
estimateSize: () => 80,
|
|
@@ -126,10 +127,10 @@ const F = {
|
|
|
126
127
|
"div",
|
|
127
128
|
{
|
|
128
129
|
ref: h,
|
|
129
|
-
className: K({ density: w, className:
|
|
130
|
+
className: K({ density: w, className: I }),
|
|
130
131
|
"data-component": "chat-container",
|
|
131
132
|
"data-component-id": p,
|
|
132
|
-
...
|
|
133
|
+
...y,
|
|
133
134
|
children: [
|
|
134
135
|
/* @__PURE__ */ m("div", { className: "ds:relative ds:flex-1 ds:min-h-0 ds:flex ds:flex-col", children: [
|
|
135
136
|
/* @__PURE__ */ m(
|
|
@@ -147,14 +148,14 @@ const F = {
|
|
|
147
148
|
"ol",
|
|
148
149
|
{
|
|
149
150
|
className: "ds:relative ds:list-none ds:ps-0 ds:m-0",
|
|
150
|
-
style: { blockSize: `${
|
|
151
|
-
children:
|
|
151
|
+
style: { blockSize: `${l.getTotalSize()}px` },
|
|
152
|
+
children: l.getVirtualItems().map((e) => {
|
|
152
153
|
const s = o[e.index];
|
|
153
154
|
return s ? /* @__PURE__ */ t(
|
|
154
155
|
"li",
|
|
155
156
|
{
|
|
156
157
|
"data-index": e.index,
|
|
157
|
-
ref:
|
|
158
|
+
ref: l.measureElement,
|
|
158
159
|
className: "ds:absolute ds:start-0 ds:end-0 ds:top-0 ds:w-full",
|
|
159
160
|
style: { transform: `translateY(${e.start}px)` },
|
|
160
161
|
children: /* @__PURE__ */ t("div", { className: "ds:pt-[var(--spacing-xs)] ds:pb-[var(--spacing-xs)]", children: s.node })
|
|
@@ -175,7 +176,7 @@ const F = {
|
|
|
175
176
|
]
|
|
176
177
|
}
|
|
177
178
|
),
|
|
178
|
-
|
|
179
|
+
N && !c ? /* @__PURE__ */ t(
|
|
179
180
|
"div",
|
|
180
181
|
{
|
|
181
182
|
className: [
|
|
@@ -193,7 +194,7 @@ const F = {
|
|
|
193
194
|
"ds:duration-[var(--animation-duration)] ds:ease-[var(--ease-out)]"
|
|
194
195
|
].join(" "),
|
|
195
196
|
children: /* @__PURE__ */ t("div", { className: "ds:pointer-events-auto", children: /* @__PURE__ */ t(
|
|
196
|
-
|
|
197
|
+
A,
|
|
197
198
|
{
|
|
198
199
|
icon: /* @__PURE__ */ t(D, {}),
|
|
199
200
|
"aria-label": f("chat.scrollToLatest"),
|
|
@@ -217,4 +218,4 @@ export {
|
|
|
217
218
|
Z as C,
|
|
218
219
|
F as c
|
|
219
220
|
};
|
|
220
|
-
//# sourceMappingURL=chat-container-
|
|
221
|
+
//# sourceMappingURL=chat-container-ogB4OskO.js.map
|