@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,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
2
|
+
import { useRef as f, useState as h, useEffect as v } from "react";
|
|
3
3
|
import * as o from "@radix-ui/react-tooltip";
|
|
4
4
|
import { c as g } from "./index-D2ZczOXr.js";
|
|
5
|
-
function
|
|
5
|
+
function y(t) {
|
|
6
6
|
const [e, r] = h(() => typeof document > "u" ? "ltr" : document.documentElement.dir || "ltr");
|
|
7
7
|
return v(() => {
|
|
8
8
|
const d = t.current;
|
|
@@ -11,19 +11,28 @@ function w(t) {
|
|
|
11
11
|
r(a === "rtl" ? "rtl" : "ltr");
|
|
12
12
|
}, [t]), e;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const w = g(
|
|
15
15
|
[
|
|
16
16
|
"ds:z-[var(--z-tooltip)]",
|
|
17
17
|
"ds:max-w-[240px]",
|
|
18
18
|
"ds:overflow-hidden ds:rounded-[var(--radius-sm)]",
|
|
19
19
|
// High-contrast solid tooltip surface — inverted vs the page so it
|
|
20
20
|
// reads against any background (gradient washes, coloured cards,
|
|
21
|
-
// images).
|
|
22
|
-
//
|
|
23
|
-
// `
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
|
|
21
|
+
// images). Uses opaque ramp-step tokens (`--color-grey-900` /
|
|
22
|
+
// `--color-grey-50`) directly because:
|
|
23
|
+
// - 0.30.3 swapped to `bg-[var(--foreground)]` after the
|
|
24
|
+
// `bg-foreground` shorthand emitted translucent backgrounds in
|
|
25
|
+
// some consumer bundles.
|
|
26
|
+
// - 0.31.0 staging still saw see-through tooltips on the booking-
|
|
27
|
+
// website surface where parent `backdrop-filter` / `opacity`
|
|
28
|
+
// stacking contexts bled into the semantic foreground token.
|
|
29
|
+
// - Ramp-step tokens are theme-stable hex literals — no
|
|
30
|
+
// resolution chain — so the tooltip surface is solid in every
|
|
31
|
+
// theme + every consumer bundle.
|
|
32
|
+
// `isolation: isolate` defends against future parent-side filters /
|
|
33
|
+
// mix-blend-modes by giving the tooltip its own stacking context.
|
|
34
|
+
"ds:bg-[var(--color-grey-900)] ds:text-[var(--color-grey-50)]",
|
|
35
|
+
"ds:[isolation:isolate]",
|
|
27
36
|
"ds:shadow-[var(--shadow-md)]",
|
|
28
37
|
// Forced-colours users (Windows High Contrast) lose `bg-/text-`
|
|
29
38
|
// entirely — emit a CanvasText border so the tooltip is still
|
|
@@ -40,7 +49,7 @@ const x = g(
|
|
|
40
49
|
"ds:motion-reduce:animate-none"
|
|
41
50
|
].join(" ")
|
|
42
51
|
);
|
|
43
|
-
function
|
|
52
|
+
function x(t, e) {
|
|
44
53
|
switch (t) {
|
|
45
54
|
case "top":
|
|
46
55
|
return "top";
|
|
@@ -52,7 +61,7 @@ function b(t, e) {
|
|
|
52
61
|
return e === "rtl" ? "left" : "right";
|
|
53
62
|
}
|
|
54
63
|
}
|
|
55
|
-
const
|
|
64
|
+
const T = ({
|
|
56
65
|
children: t,
|
|
57
66
|
delayDuration: e = 700,
|
|
58
67
|
skipDelayDuration: r = 300
|
|
@@ -64,8 +73,8 @@ const y = ({
|
|
|
64
73
|
children: t
|
|
65
74
|
}
|
|
66
75
|
);
|
|
67
|
-
|
|
68
|
-
const
|
|
76
|
+
T.displayName = "TooltipProvider";
|
|
77
|
+
const b = ({
|
|
69
78
|
label: t,
|
|
70
79
|
children: e,
|
|
71
80
|
side: r = "top",
|
|
@@ -75,7 +84,7 @@ const T = ({
|
|
|
75
84
|
open: c,
|
|
76
85
|
onOpenChange: m
|
|
77
86
|
}) => {
|
|
78
|
-
const n =
|
|
87
|
+
const n = f(null), u = y(n), p = x(r, u);
|
|
79
88
|
return /* @__PURE__ */ l(
|
|
80
89
|
o.Root,
|
|
81
90
|
{
|
|
@@ -87,8 +96,8 @@ const T = ({
|
|
|
87
96
|
/* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ l(
|
|
88
97
|
o.Content,
|
|
89
98
|
{
|
|
90
|
-
className:
|
|
91
|
-
side:
|
|
99
|
+
className: w(),
|
|
100
|
+
side: p,
|
|
92
101
|
align: d,
|
|
93
102
|
sideOffset: s,
|
|
94
103
|
"data-component": "tooltip",
|
|
@@ -102,9 +111,9 @@ const T = ({
|
|
|
102
111
|
}
|
|
103
112
|
);
|
|
104
113
|
};
|
|
105
|
-
|
|
114
|
+
b.displayName = "Tooltip";
|
|
106
115
|
export {
|
|
107
|
-
T,
|
|
108
|
-
|
|
116
|
+
b as T,
|
|
117
|
+
T as a
|
|
109
118
|
};
|
|
110
|
-
//# sourceMappingURL=tooltip-
|
|
119
|
+
//# sourceMappingURL=tooltip-DvmfrNvB.js.map
|
|
@@ -3,7 +3,7 @@ import { forwardRef as xt, useId as wt, useMemo as U, useState as K, useEffect a
|
|
|
3
3
|
import * as D from "@radix-ui/react-tooltip";
|
|
4
4
|
import { c as M } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as lt } from "react-i18next";
|
|
6
|
-
import { u as bt } from "./registry-
|
|
6
|
+
import { u as bt } from "./registry-nPAVE19X.js";
|
|
7
7
|
const Ct = {
|
|
8
8
|
id: "tooth-scheme",
|
|
9
9
|
capabilities: ["pick"],
|
|
@@ -750,4 +750,4 @@ export {
|
|
|
750
750
|
At as r,
|
|
751
751
|
Ct as t
|
|
752
752
|
};
|
|
753
|
-
//# sourceMappingURL=tooth-scheme-
|
|
753
|
+
//# sourceMappingURL=tooth-scheme-CxlsLjfN.js.map
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { o, q as n, r as i, v as m } from "./react-day-picker-DsjfS7uI.js";
|
|
2
|
+
const d = {
|
|
3
|
+
lessThanXSeconds: {
|
|
4
|
+
one: "bir saniyeden az",
|
|
5
|
+
other: "{{count}} saniyeden az"
|
|
6
|
+
},
|
|
7
|
+
xSeconds: {
|
|
8
|
+
one: "1 saniye",
|
|
9
|
+
other: "{{count}} saniye"
|
|
10
|
+
},
|
|
11
|
+
halfAMinute: "yarım dakika",
|
|
12
|
+
lessThanXMinutes: {
|
|
13
|
+
one: "bir dakikadan az",
|
|
14
|
+
other: "{{count}} dakikadan az"
|
|
15
|
+
},
|
|
16
|
+
xMinutes: {
|
|
17
|
+
one: "1 dakika",
|
|
18
|
+
other: "{{count}} dakika"
|
|
19
|
+
},
|
|
20
|
+
aboutXHours: {
|
|
21
|
+
one: "yaklaşık 1 saat",
|
|
22
|
+
other: "yaklaşık {{count}} saat"
|
|
23
|
+
},
|
|
24
|
+
xHours: {
|
|
25
|
+
one: "1 saat",
|
|
26
|
+
other: "{{count}} saat"
|
|
27
|
+
},
|
|
28
|
+
xDays: {
|
|
29
|
+
one: "1 gün",
|
|
30
|
+
other: "{{count}} gün"
|
|
31
|
+
},
|
|
32
|
+
aboutXWeeks: {
|
|
33
|
+
one: "yaklaşık 1 hafta",
|
|
34
|
+
other: "yaklaşık {{count}} hafta"
|
|
35
|
+
},
|
|
36
|
+
xWeeks: {
|
|
37
|
+
one: "1 hafta",
|
|
38
|
+
other: "{{count}} hafta"
|
|
39
|
+
},
|
|
40
|
+
aboutXMonths: {
|
|
41
|
+
one: "yaklaşık 1 ay",
|
|
42
|
+
other: "yaklaşık {{count}} ay"
|
|
43
|
+
},
|
|
44
|
+
xMonths: {
|
|
45
|
+
one: "1 ay",
|
|
46
|
+
other: "{{count}} ay"
|
|
47
|
+
},
|
|
48
|
+
aboutXYears: {
|
|
49
|
+
one: "yaklaşık 1 yıl",
|
|
50
|
+
other: "yaklaşık {{count}} yıl"
|
|
51
|
+
},
|
|
52
|
+
xYears: {
|
|
53
|
+
one: "1 yıl",
|
|
54
|
+
other: "{{count}} yıl"
|
|
55
|
+
},
|
|
56
|
+
overXYears: {
|
|
57
|
+
one: "1 yıldan fazla",
|
|
58
|
+
other: "{{count}} yıldan fazla"
|
|
59
|
+
},
|
|
60
|
+
almostXYears: {
|
|
61
|
+
one: "neredeyse 1 yıl",
|
|
62
|
+
other: "neredeyse {{count}} yıl"
|
|
63
|
+
}
|
|
64
|
+
}, l = (a, r, e) => {
|
|
65
|
+
let t;
|
|
66
|
+
const s = d[a];
|
|
67
|
+
return typeof s == "string" ? t = s : r === 1 ? t = s.one : t = s.other.replace("{{count}}", r.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? t + " sonra" : t + " önce" : t;
|
|
68
|
+
}, c = {
|
|
69
|
+
full: "d MMMM y EEEE",
|
|
70
|
+
long: "d MMMM y",
|
|
71
|
+
medium: "d MMM y",
|
|
72
|
+
short: "dd.MM.yyyy"
|
|
73
|
+
}, u = {
|
|
74
|
+
full: "HH:mm:ss zzzz",
|
|
75
|
+
long: "HH:mm:ss z",
|
|
76
|
+
medium: "HH:mm:ss",
|
|
77
|
+
short: "HH:mm"
|
|
78
|
+
}, h = {
|
|
79
|
+
full: "{{date}} 'saat' {{time}}",
|
|
80
|
+
long: "{{date}} 'saat' {{time}}",
|
|
81
|
+
medium: "{{date}}, {{time}}",
|
|
82
|
+
short: "{{date}}, {{time}}"
|
|
83
|
+
}, y = {
|
|
84
|
+
date: o({
|
|
85
|
+
formats: c,
|
|
86
|
+
defaultWidth: "full"
|
|
87
|
+
}),
|
|
88
|
+
time: o({
|
|
89
|
+
formats: u,
|
|
90
|
+
defaultWidth: "full"
|
|
91
|
+
}),
|
|
92
|
+
dateTime: o({
|
|
93
|
+
formats: h,
|
|
94
|
+
defaultWidth: "full"
|
|
95
|
+
})
|
|
96
|
+
}, k = {
|
|
97
|
+
lastWeek: "'geçen hafta' eeee 'saat' p",
|
|
98
|
+
yesterday: "'dün saat' p",
|
|
99
|
+
today: "'bugün saat' p",
|
|
100
|
+
tomorrow: "'yarın saat' p",
|
|
101
|
+
nextWeek: "eeee 'saat' p",
|
|
102
|
+
other: "P"
|
|
103
|
+
}, f = (a, r, e, t) => k[a], g = {
|
|
104
|
+
narrow: ["MÖ", "MS"],
|
|
105
|
+
abbreviated: ["MÖ", "MS"],
|
|
106
|
+
wide: ["Milattan Önce", "Milattan Sonra"]
|
|
107
|
+
}, b = {
|
|
108
|
+
narrow: ["1", "2", "3", "4"],
|
|
109
|
+
abbreviated: ["1Ç", "2Ç", "3Ç", "4Ç"],
|
|
110
|
+
wide: ["İlk çeyrek", "İkinci Çeyrek", "Üçüncü çeyrek", "Son çeyrek"]
|
|
111
|
+
}, P = {
|
|
112
|
+
narrow: ["O", "Ş", "M", "N", "M", "H", "T", "A", "E", "E", "K", "A"],
|
|
113
|
+
abbreviated: [
|
|
114
|
+
"Oca",
|
|
115
|
+
"Şub",
|
|
116
|
+
"Mar",
|
|
117
|
+
"Nis",
|
|
118
|
+
"May",
|
|
119
|
+
"Haz",
|
|
120
|
+
"Tem",
|
|
121
|
+
"Ağu",
|
|
122
|
+
"Eyl",
|
|
123
|
+
"Eki",
|
|
124
|
+
"Kas",
|
|
125
|
+
"Ara"
|
|
126
|
+
],
|
|
127
|
+
wide: [
|
|
128
|
+
"Ocak",
|
|
129
|
+
"Şubat",
|
|
130
|
+
"Mart",
|
|
131
|
+
"Nisan",
|
|
132
|
+
"Mayıs",
|
|
133
|
+
"Haziran",
|
|
134
|
+
"Temmuz",
|
|
135
|
+
"Ağustos",
|
|
136
|
+
"Eylül",
|
|
137
|
+
"Ekim",
|
|
138
|
+
"Kasım",
|
|
139
|
+
"Aralık"
|
|
140
|
+
]
|
|
141
|
+
}, p = {
|
|
142
|
+
narrow: ["P", "P", "S", "Ç", "P", "C", "C"],
|
|
143
|
+
short: ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"],
|
|
144
|
+
abbreviated: ["Paz", "Pzt", "Sal", "Çar", "Per", "Cum", "Cts"],
|
|
145
|
+
wide: [
|
|
146
|
+
"Pazar",
|
|
147
|
+
"Pazartesi",
|
|
148
|
+
"Salı",
|
|
149
|
+
"Çarşamba",
|
|
150
|
+
"Perşembe",
|
|
151
|
+
"Cuma",
|
|
152
|
+
"Cumartesi"
|
|
153
|
+
]
|
|
154
|
+
}, M = {
|
|
155
|
+
narrow: {
|
|
156
|
+
am: "öö",
|
|
157
|
+
pm: "ös",
|
|
158
|
+
midnight: "gy",
|
|
159
|
+
noon: "ö",
|
|
160
|
+
morning: "sa",
|
|
161
|
+
afternoon: "ös",
|
|
162
|
+
evening: "ak",
|
|
163
|
+
night: "ge"
|
|
164
|
+
},
|
|
165
|
+
abbreviated: {
|
|
166
|
+
am: "ÖÖ",
|
|
167
|
+
pm: "ÖS",
|
|
168
|
+
midnight: "gece yarısı",
|
|
169
|
+
noon: "öğle",
|
|
170
|
+
morning: "sabah",
|
|
171
|
+
afternoon: "öğleden sonra",
|
|
172
|
+
evening: "akşam",
|
|
173
|
+
night: "gece"
|
|
174
|
+
},
|
|
175
|
+
wide: {
|
|
176
|
+
am: "Ö.Ö.",
|
|
177
|
+
pm: "Ö.S.",
|
|
178
|
+
midnight: "gece yarısı",
|
|
179
|
+
noon: "öğle",
|
|
180
|
+
morning: "sabah",
|
|
181
|
+
afternoon: "öğleden sonra",
|
|
182
|
+
evening: "akşam",
|
|
183
|
+
night: "gece"
|
|
184
|
+
}
|
|
185
|
+
}, w = {
|
|
186
|
+
narrow: {
|
|
187
|
+
am: "öö",
|
|
188
|
+
pm: "ös",
|
|
189
|
+
midnight: "gy",
|
|
190
|
+
noon: "ö",
|
|
191
|
+
morning: "sa",
|
|
192
|
+
afternoon: "ös",
|
|
193
|
+
evening: "ak",
|
|
194
|
+
night: "ge"
|
|
195
|
+
},
|
|
196
|
+
abbreviated: {
|
|
197
|
+
am: "ÖÖ",
|
|
198
|
+
pm: "ÖS",
|
|
199
|
+
midnight: "gece yarısı",
|
|
200
|
+
noon: "öğlen",
|
|
201
|
+
morning: "sabahleyin",
|
|
202
|
+
afternoon: "öğleden sonra",
|
|
203
|
+
evening: "akşamleyin",
|
|
204
|
+
night: "geceleyin"
|
|
205
|
+
},
|
|
206
|
+
wide: {
|
|
207
|
+
am: "ö.ö.",
|
|
208
|
+
pm: "ö.s.",
|
|
209
|
+
midnight: "gece yarısı",
|
|
210
|
+
noon: "öğlen",
|
|
211
|
+
morning: "sabahleyin",
|
|
212
|
+
afternoon: "öğleden sonra",
|
|
213
|
+
evening: "akşamleyin",
|
|
214
|
+
night: "geceleyin"
|
|
215
|
+
}
|
|
216
|
+
}, z = (a, r) => Number(a) + ".", v = {
|
|
217
|
+
ordinalNumber: z,
|
|
218
|
+
era: n({
|
|
219
|
+
values: g,
|
|
220
|
+
defaultWidth: "wide"
|
|
221
|
+
}),
|
|
222
|
+
quarter: n({
|
|
223
|
+
values: b,
|
|
224
|
+
defaultWidth: "wide",
|
|
225
|
+
argumentCallback: (a) => Number(a) - 1
|
|
226
|
+
}),
|
|
227
|
+
month: n({
|
|
228
|
+
values: P,
|
|
229
|
+
defaultWidth: "wide"
|
|
230
|
+
}),
|
|
231
|
+
day: n({
|
|
232
|
+
values: p,
|
|
233
|
+
defaultWidth: "wide"
|
|
234
|
+
}),
|
|
235
|
+
dayPeriod: n({
|
|
236
|
+
values: M,
|
|
237
|
+
defaultWidth: "wide",
|
|
238
|
+
formattingValues: w,
|
|
239
|
+
defaultFormattingWidth: "wide"
|
|
240
|
+
})
|
|
241
|
+
}, W = /^(\d+)(\.)?/i, S = /\d+/i, H = {
|
|
242
|
+
narrow: /^(mö|ms)/i,
|
|
243
|
+
abbreviated: /^(mö|ms)/i,
|
|
244
|
+
wide: /^(milattan önce|milattan sonra)/i
|
|
245
|
+
}, C = {
|
|
246
|
+
any: [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i]
|
|
247
|
+
}, E = {
|
|
248
|
+
narrow: /^[1234]/i,
|
|
249
|
+
abbreviated: /^[1234]ç/i,
|
|
250
|
+
wide: /^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i
|
|
251
|
+
}, D = {
|
|
252
|
+
any: [/1/i, /2/i, /3/i, /4/i],
|
|
253
|
+
abbreviated: [/1ç/i, /2ç/i, /3ç/i, /4ç/i],
|
|
254
|
+
wide: [
|
|
255
|
+
/^(i|İ)lk çeyrek/i,
|
|
256
|
+
/(i|İ)kinci çeyrek/i,
|
|
257
|
+
/üçüncü çeyrek/i,
|
|
258
|
+
/son çeyrek/i
|
|
259
|
+
]
|
|
260
|
+
}, x = {
|
|
261
|
+
narrow: /^[oşmnhtaek]/i,
|
|
262
|
+
abbreviated: /^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,
|
|
263
|
+
wide: /^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i
|
|
264
|
+
}, F = {
|
|
265
|
+
narrow: [
|
|
266
|
+
/^o/i,
|
|
267
|
+
/^ş/i,
|
|
268
|
+
/^m/i,
|
|
269
|
+
/^n/i,
|
|
270
|
+
/^m/i,
|
|
271
|
+
/^h/i,
|
|
272
|
+
/^t/i,
|
|
273
|
+
/^a/i,
|
|
274
|
+
/^e/i,
|
|
275
|
+
/^e/i,
|
|
276
|
+
/^k/i,
|
|
277
|
+
/^a/i
|
|
278
|
+
],
|
|
279
|
+
any: [
|
|
280
|
+
/^o/i,
|
|
281
|
+
/^ş/i,
|
|
282
|
+
/^mar/i,
|
|
283
|
+
/^n/i,
|
|
284
|
+
/^may/i,
|
|
285
|
+
/^h/i,
|
|
286
|
+
/^t/i,
|
|
287
|
+
/^ağ/i,
|
|
288
|
+
/^ey/i,
|
|
289
|
+
/^ek/i,
|
|
290
|
+
/^k/i,
|
|
291
|
+
/^ar/i
|
|
292
|
+
]
|
|
293
|
+
}, N = {
|
|
294
|
+
narrow: /^[psçc]/i,
|
|
295
|
+
short: /^(pz|pt|sa|ça|pe|cu|ct)/i,
|
|
296
|
+
abbreviated: /^(paz|pzt|sal|çar|per|cum|cts)/i,
|
|
297
|
+
wide: /^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i
|
|
298
|
+
}, V = {
|
|
299
|
+
narrow: [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i],
|
|
300
|
+
any: [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i],
|
|
301
|
+
wide: [
|
|
302
|
+
/^pazar(?!tesi)/i,
|
|
303
|
+
/^pazartesi/i,
|
|
304
|
+
/^salı/i,
|
|
305
|
+
/^çarşamba/i,
|
|
306
|
+
/^perşembe/i,
|
|
307
|
+
/^cuma(?!rtesi)/i,
|
|
308
|
+
/^cumartesi/i
|
|
309
|
+
]
|
|
310
|
+
}, X = {
|
|
311
|
+
narrow: /^(öö|ös|gy|ö|sa|ös|ak|ge)/i,
|
|
312
|
+
any: /^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i
|
|
313
|
+
}, A = {
|
|
314
|
+
any: {
|
|
315
|
+
am: /^ö\.?ö\.?/i,
|
|
316
|
+
pm: /^ö\.?s\.?/i,
|
|
317
|
+
midnight: /^(gy|gece yarısı)/i,
|
|
318
|
+
noon: /^öğ/i,
|
|
319
|
+
morning: /^sa/i,
|
|
320
|
+
afternoon: /^öğleden sonra/i,
|
|
321
|
+
evening: /^ak/i,
|
|
322
|
+
night: /^ge/i
|
|
323
|
+
}
|
|
324
|
+
}, T = {
|
|
325
|
+
ordinalNumber: m({
|
|
326
|
+
matchPattern: W,
|
|
327
|
+
parsePattern: S,
|
|
328
|
+
valueCallback: function(a) {
|
|
329
|
+
return parseInt(a, 10);
|
|
330
|
+
}
|
|
331
|
+
}),
|
|
332
|
+
era: i({
|
|
333
|
+
matchPatterns: H,
|
|
334
|
+
defaultMatchWidth: "wide",
|
|
335
|
+
parsePatterns: C,
|
|
336
|
+
defaultParseWidth: "any"
|
|
337
|
+
}),
|
|
338
|
+
quarter: i({
|
|
339
|
+
matchPatterns: E,
|
|
340
|
+
defaultMatchWidth: "wide",
|
|
341
|
+
parsePatterns: D,
|
|
342
|
+
defaultParseWidth: "any",
|
|
343
|
+
valueCallback: (a) => a + 1
|
|
344
|
+
}),
|
|
345
|
+
month: i({
|
|
346
|
+
matchPatterns: x,
|
|
347
|
+
defaultMatchWidth: "wide",
|
|
348
|
+
parsePatterns: F,
|
|
349
|
+
defaultParseWidth: "any"
|
|
350
|
+
}),
|
|
351
|
+
day: i({
|
|
352
|
+
matchPatterns: N,
|
|
353
|
+
defaultMatchWidth: "wide",
|
|
354
|
+
parsePatterns: V,
|
|
355
|
+
defaultParseWidth: "any"
|
|
356
|
+
}),
|
|
357
|
+
dayPeriod: i({
|
|
358
|
+
matchPatterns: X,
|
|
359
|
+
defaultMatchWidth: "any",
|
|
360
|
+
parsePatterns: A,
|
|
361
|
+
defaultParseWidth: "any"
|
|
362
|
+
})
|
|
363
|
+
}, O = {
|
|
364
|
+
code: "tr",
|
|
365
|
+
formatDistance: l,
|
|
366
|
+
formatLong: y,
|
|
367
|
+
formatRelative: f,
|
|
368
|
+
localize: v,
|
|
369
|
+
match: T,
|
|
370
|
+
options: {
|
|
371
|
+
weekStartsOn: 1,
|
|
372
|
+
firstWeekContainsDate: 1
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
export {
|
|
376
|
+
O as tr
|
|
377
|
+
};
|
|
378
|
+
//# sourceMappingURL=tr-Dmr412Ac.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs as f, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as K, useState as A, useRef as x, useId as _, useMemo as w, useCallback as R,
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { S as
|
|
2
|
+
import { forwardRef as K, useState as A, useRef as x, useId as _, useMemo as w, useCallback as R, useImperativeHandle as j, Fragment as O } from "react";
|
|
3
|
+
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as D } from "react-i18next";
|
|
5
|
+
import { u as F } from "./registry-nPAVE19X.js";
|
|
6
|
+
import { u as H } from "./index-CJE9uQmb.js";
|
|
7
|
+
import { S as q } from "./search-input-C1C3jQpD.js";
|
|
8
|
+
import { u as B } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
8
9
|
const U = {
|
|
9
10
|
id: "transcript-panel",
|
|
10
11
|
capabilities: ["select_single"],
|
|
@@ -50,7 +51,7 @@ const U = {
|
|
|
50
51
|
description: "Stable opaque turn id (line index). Never carries the turn's dictated text."
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
}, G =
|
|
54
|
+
}, G = V(
|
|
54
55
|
[
|
|
55
56
|
"ds:flex ds:flex-col ds:w-full ds:min-h-0",
|
|
56
57
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-border",
|
|
@@ -106,7 +107,7 @@ function ee({ text: t, query: n }) {
|
|
|
106
107
|
children: u
|
|
107
108
|
},
|
|
108
109
|
p
|
|
109
|
-
) : /* @__PURE__ */ o(
|
|
110
|
+
) : /* @__PURE__ */ o(O, { children: u }, p)
|
|
110
111
|
);
|
|
111
112
|
}
|
|
112
113
|
const te = K(
|
|
@@ -119,7 +120,7 @@ const te = K(
|
|
|
119
120
|
className: p,
|
|
120
121
|
...g
|
|
121
122
|
}, L) => {
|
|
122
|
-
const { t: d, i18n: b } =
|
|
123
|
+
const { t: d, i18n: b } = D(), [m, M] = A(""), h = x(null), T = x(null), P = _(), c = w(() => {
|
|
123
124
|
if (!Number.isFinite(n)) return -1;
|
|
124
125
|
for (let e = 0; e < t.length; e += 1) {
|
|
125
126
|
const r = t[e];
|
|
@@ -143,14 +144,14 @@ const te = K(
|
|
|
143
144
|
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "f" && i && (e.preventDefault(), (r = T.current) == null || r.focus());
|
|
144
145
|
},
|
|
145
146
|
[i]
|
|
146
|
-
), N = t.length > Q, y =
|
|
147
|
+
), N = t.length > Q, y = H({
|
|
147
148
|
count: N ? t.length : 0,
|
|
148
149
|
getScrollElement: () => h.current,
|
|
149
150
|
estimateSize: () => 48,
|
|
150
151
|
overscan: 8,
|
|
151
152
|
getItemKey: (e) => e
|
|
152
153
|
});
|
|
153
|
-
|
|
154
|
+
B(() => {
|
|
154
155
|
if (c < 0) return;
|
|
155
156
|
const e = h.current;
|
|
156
157
|
if (!e) return;
|
|
@@ -164,7 +165,7 @@ const te = K(
|
|
|
164
165
|
behavior: s ? "auto" : "smooth"
|
|
165
166
|
});
|
|
166
167
|
}, [c]);
|
|
167
|
-
const
|
|
168
|
+
const I = R(
|
|
168
169
|
(e, r, s) => {
|
|
169
170
|
const l = r === c, v = J(e.speaker), C = typeof e.confidence == "number" && e.confidence < 0.6;
|
|
170
171
|
return /* @__PURE__ */ f(
|
|
@@ -244,8 +245,8 @@ const te = K(
|
|
|
244
245
|
);
|
|
245
246
|
},
|
|
246
247
|
[c, b.language, a, m, d]
|
|
247
|
-
),
|
|
248
|
-
|
|
248
|
+
), S = x(null);
|
|
249
|
+
j(L, () => S.current, []);
|
|
249
250
|
const E = w(
|
|
250
251
|
() => ({
|
|
251
252
|
getSelectedTurn: () => c >= 0 ? String(c) : null,
|
|
@@ -271,7 +272,7 @@ const te = K(
|
|
|
271
272
|
}),
|
|
272
273
|
[c, t]
|
|
273
274
|
);
|
|
274
|
-
return
|
|
275
|
+
return F(
|
|
275
276
|
U,
|
|
276
277
|
E,
|
|
277
278
|
g.id
|
|
@@ -279,7 +280,7 @@ const te = K(
|
|
|
279
280
|
/* @__PURE__ */ f(
|
|
280
281
|
"div",
|
|
281
282
|
{
|
|
282
|
-
ref:
|
|
283
|
+
ref: S,
|
|
283
284
|
onKeyDown: $,
|
|
284
285
|
"data-component": "transcript-panel",
|
|
285
286
|
"data-component-id": g.id,
|
|
@@ -288,7 +289,7 @@ const te = K(
|
|
|
288
289
|
children: [
|
|
289
290
|
i ? /* @__PURE__ */ f("div", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)] ds:flex ds:items-center ds:gap-[var(--spacing-sm)] ds:border-b ds:border-border", children: [
|
|
290
291
|
/* @__PURE__ */ o(
|
|
291
|
-
|
|
292
|
+
q,
|
|
292
293
|
{
|
|
293
294
|
ref: T,
|
|
294
295
|
id: P,
|
|
@@ -322,7 +323,7 @@ const te = K(
|
|
|
322
323
|
style: { blockSize: `${y.getTotalSize()}px` },
|
|
323
324
|
children: y.getVirtualItems().map((e) => {
|
|
324
325
|
const r = t[e.index];
|
|
325
|
-
return r ?
|
|
326
|
+
return r ? I(r, e.index, {
|
|
326
327
|
liRef: y.measureElement,
|
|
327
328
|
dataIndex: e.index,
|
|
328
329
|
style: { transform: `translateY(${e.start}px)` },
|
|
@@ -330,7 +331,7 @@ const te = K(
|
|
|
330
331
|
}) : null;
|
|
331
332
|
})
|
|
332
333
|
}
|
|
333
|
-
) : /* @__PURE__ */ o("ol", { className: "ds:list-none ds:ps-0 ds:m-0", children: t.map((e, r) =>
|
|
334
|
+
) : /* @__PURE__ */ o("ol", { className: "ds:list-none ds:ps-0 ds:m-0", children: t.map((e, r) => I(e, r)) })
|
|
334
335
|
}
|
|
335
336
|
)
|
|
336
337
|
]
|
|
@@ -343,4 +344,4 @@ export {
|
|
|
343
344
|
te as T,
|
|
344
345
|
U as t
|
|
345
346
|
};
|
|
346
|
-
//# sourceMappingURL=transcript-panel-
|
|
347
|
+
//# sourceMappingURL=transcript-panel-DyhTpAP7.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useState as s
|
|
1
|
+
import { useState as s } from "react";
|
|
2
|
+
import { u as d } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
2
3
|
const l = () => typeof document > "u" ? "ltr" : document.documentElement.getAttribute("dir") === "rtl" ? "rtl" : "ltr";
|
|
3
|
-
function
|
|
4
|
+
function f(e) {
|
|
4
5
|
const [u, r] = s(l);
|
|
5
6
|
return d(() => {
|
|
6
7
|
const t = e.current;
|
|
@@ -17,7 +18,7 @@ function b(e) {
|
|
|
17
18
|
return () => c.disconnect();
|
|
18
19
|
}, [e]), u;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function p() {
|
|
21
22
|
const [e, u] = s(l);
|
|
22
23
|
return d(() => {
|
|
23
24
|
if (typeof document > "u") return;
|
|
@@ -34,7 +35,7 @@ function f() {
|
|
|
34
35
|
}, []), e;
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
p as a,
|
|
39
|
+
f as u
|
|
39
40
|
};
|
|
40
|
-
//# sourceMappingURL=use-direction-
|
|
41
|
+
//# sourceMappingURL=use-direction-Dp8h70PP.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useState as d, useEffect as r } from "react";
|
|
2
|
+
function s(n) {
|
|
3
|
+
const [o, i] = d(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(n).matches);
|
|
4
|
+
return r(() => {
|
|
5
|
+
if (typeof window > "u" || typeof window.matchMedia != "function")
|
|
6
|
+
return;
|
|
7
|
+
const e = window.matchMedia(n);
|
|
8
|
+
i(e.matches);
|
|
9
|
+
const t = (a) => i(a.matches);
|
|
10
|
+
return typeof e.addEventListener == "function" ? (e.addEventListener("change", t), () => e.removeEventListener("change", t)) : (e.addListener(t), () => e.removeListener(t));
|
|
11
|
+
}, [n]), o;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
s as u
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=use-media-query-CcAx5SMM.js.map
|