@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
|
@@ -3,11 +3,11 @@ import { forwardRef as os, useId as ls, useState as cs, useCallback as L } from
|
|
|
3
3
|
import { c as f } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as ms } from "react-i18next";
|
|
5
5
|
import { B as $ } from "./button-DD_0Xdmr.js";
|
|
6
|
-
import { I as A } from "./icon-button-
|
|
6
|
+
import { I as A } from "./icon-button-CKEOrN37.js";
|
|
7
7
|
import { E as us } from "./empty-state-BLy7tigq.js";
|
|
8
8
|
import { S as B } from "./skeleton-CZbwyJAA.js";
|
|
9
|
-
import { i as fs } from "./isSameDay-
|
|
10
|
-
import { p as gs } from "./parseISO-
|
|
9
|
+
import { i as fs } from "./isSameDay-DUEiAT0G.js";
|
|
10
|
+
import { p as gs } from "./parseISO-DEpUNwxZ.js";
|
|
11
11
|
const ps = f(
|
|
12
12
|
[
|
|
13
13
|
"ds:flex ds:flex-col ds:gap-[var(--spacing-sm)]",
|
|
@@ -384,4 +384,4 @@ export {
|
|
|
384
384
|
Ts as f,
|
|
385
385
|
Rs as i
|
|
386
386
|
};
|
|
387
|
-
//# sourceMappingURL=slot-grid-
|
|
387
|
+
//# sourceMappingURL=slot-grid-Dz13dH82.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as q } from "react-i18next";
|
|
|
5
5
|
import J from "react-apexcharts";
|
|
6
6
|
import v from "apexcharts";
|
|
7
7
|
import { g as D, u as K } from "./apexcharts-theme-BJigns_V.js";
|
|
8
|
-
import { u as Q } from "./registry-
|
|
8
|
+
import { u as Q } from "./registry-nPAVE19X.js";
|
|
9
9
|
function X(n) {
|
|
10
10
|
if (n.length < 2)
|
|
11
11
|
return { slope: 0, direction: "steady" };
|
|
@@ -249,4 +249,4 @@ export {
|
|
|
249
249
|
Y as s,
|
|
250
250
|
X as u
|
|
251
251
|
};
|
|
252
|
-
//# sourceMappingURL=sparkline-
|
|
252
|
+
//# sourceMappingURL=sparkline-DEROcSl0.js.map
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
import { o as s, q as r, r as i, v as m } from "./react-day-picker-DsjfS7uI.js";
|
|
2
|
+
const d = {
|
|
3
|
+
lessThanXSeconds: {
|
|
4
|
+
one: "më pak se një sekondë",
|
|
5
|
+
other: "më pak se {{count}} sekonda"
|
|
6
|
+
},
|
|
7
|
+
xSeconds: {
|
|
8
|
+
one: "1 sekondë",
|
|
9
|
+
other: "{{count}} sekonda"
|
|
10
|
+
},
|
|
11
|
+
halfAMinute: "gjysëm minuti",
|
|
12
|
+
lessThanXMinutes: {
|
|
13
|
+
one: "më pak se një minute",
|
|
14
|
+
other: "më pak se {{count}} minuta"
|
|
15
|
+
},
|
|
16
|
+
xMinutes: {
|
|
17
|
+
one: "1 minutë",
|
|
18
|
+
other: "{{count}} minuta"
|
|
19
|
+
},
|
|
20
|
+
aboutXHours: {
|
|
21
|
+
one: "rreth 1 orë",
|
|
22
|
+
other: "rreth {{count}} orë"
|
|
23
|
+
},
|
|
24
|
+
xHours: {
|
|
25
|
+
one: "1 orë",
|
|
26
|
+
other: "{{count}} orë"
|
|
27
|
+
},
|
|
28
|
+
xDays: {
|
|
29
|
+
one: "1 ditë",
|
|
30
|
+
other: "{{count}} ditë"
|
|
31
|
+
},
|
|
32
|
+
aboutXWeeks: {
|
|
33
|
+
one: "rreth 1 javë",
|
|
34
|
+
other: "rreth {{count}} javë"
|
|
35
|
+
},
|
|
36
|
+
xWeeks: {
|
|
37
|
+
one: "1 javë",
|
|
38
|
+
other: "{{count}} javë"
|
|
39
|
+
},
|
|
40
|
+
aboutXMonths: {
|
|
41
|
+
one: "rreth 1 muaj",
|
|
42
|
+
other: "rreth {{count}} muaj"
|
|
43
|
+
},
|
|
44
|
+
xMonths: {
|
|
45
|
+
one: "1 muaj",
|
|
46
|
+
other: "{{count}} muaj"
|
|
47
|
+
},
|
|
48
|
+
aboutXYears: {
|
|
49
|
+
one: "rreth 1 vit",
|
|
50
|
+
other: "rreth {{count}} vite"
|
|
51
|
+
},
|
|
52
|
+
xYears: {
|
|
53
|
+
one: "1 vit",
|
|
54
|
+
other: "{{count}} vite"
|
|
55
|
+
},
|
|
56
|
+
overXYears: {
|
|
57
|
+
one: "mbi 1 vit",
|
|
58
|
+
other: "mbi {{count}} vite"
|
|
59
|
+
},
|
|
60
|
+
almostXYears: {
|
|
61
|
+
one: "pothuajse 1 vit",
|
|
62
|
+
other: "pothuajse {{count}} vite"
|
|
63
|
+
}
|
|
64
|
+
}, h = (e, a, t) => {
|
|
65
|
+
let n;
|
|
66
|
+
const o = d[e];
|
|
67
|
+
return typeof o == "string" ? n = o : a === 1 ? n = o.one : n = o.other.replace("{{count}}", String(a)), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "në " + n : n + " më parë" : n;
|
|
68
|
+
}, u = {
|
|
69
|
+
full: "EEEE, MMMM do, y",
|
|
70
|
+
long: "MMMM do, y",
|
|
71
|
+
medium: "MMM d, y",
|
|
72
|
+
short: "MM/dd/yyyy"
|
|
73
|
+
}, l = {
|
|
74
|
+
full: "h:mm:ss a zzzz",
|
|
75
|
+
long: "h:mm:ss a z",
|
|
76
|
+
medium: "h:mm:ss a",
|
|
77
|
+
short: "h:mm a"
|
|
78
|
+
}, c = {
|
|
79
|
+
full: "{{date}} 'në' {{time}}",
|
|
80
|
+
long: "{{date}} 'në' {{time}}",
|
|
81
|
+
medium: "{{date}}, {{time}}",
|
|
82
|
+
short: "{{date}}, {{time}}"
|
|
83
|
+
}, b = {
|
|
84
|
+
date: s({
|
|
85
|
+
formats: u,
|
|
86
|
+
defaultWidth: "full"
|
|
87
|
+
}),
|
|
88
|
+
time: s({
|
|
89
|
+
formats: l,
|
|
90
|
+
defaultWidth: "full"
|
|
91
|
+
}),
|
|
92
|
+
dateTime: s({
|
|
93
|
+
formats: c,
|
|
94
|
+
defaultWidth: "full"
|
|
95
|
+
})
|
|
96
|
+
}, f = {
|
|
97
|
+
lastWeek: "'të' eeee 'e shkuar në' p",
|
|
98
|
+
yesterday: "'dje në' p",
|
|
99
|
+
today: "'sot në' p",
|
|
100
|
+
tomorrow: "'nesër në' p",
|
|
101
|
+
nextWeek: "eeee 'at' p",
|
|
102
|
+
other: "P"
|
|
103
|
+
}, g = (e, a, t, n) => f[e], j = {
|
|
104
|
+
narrow: ["P", "M"],
|
|
105
|
+
abbreviated: ["PK", "MK"],
|
|
106
|
+
wide: ["Para Krishtit", "Mbas Krishtit"]
|
|
107
|
+
}, p = {
|
|
108
|
+
narrow: ["1", "2", "3", "4"],
|
|
109
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
110
|
+
wide: ["4-mujori I", "4-mujori II", "4-mujori III", "4-mujori IV"]
|
|
111
|
+
}, P = {
|
|
112
|
+
narrow: ["J", "S", "M", "P", "M", "Q", "K", "G", "S", "T", "N", "D"],
|
|
113
|
+
abbreviated: [
|
|
114
|
+
"Jan",
|
|
115
|
+
"Shk",
|
|
116
|
+
"Mar",
|
|
117
|
+
"Pri",
|
|
118
|
+
"Maj",
|
|
119
|
+
"Qer",
|
|
120
|
+
"Kor",
|
|
121
|
+
"Gus",
|
|
122
|
+
"Sht",
|
|
123
|
+
"Tet",
|
|
124
|
+
"Nën",
|
|
125
|
+
"Dhj"
|
|
126
|
+
],
|
|
127
|
+
wide: [
|
|
128
|
+
"Janar",
|
|
129
|
+
"Shkurt",
|
|
130
|
+
"Mars",
|
|
131
|
+
"Prill",
|
|
132
|
+
"Maj",
|
|
133
|
+
"Qershor",
|
|
134
|
+
"Korrik",
|
|
135
|
+
"Gusht",
|
|
136
|
+
"Shtator",
|
|
137
|
+
"Tetor",
|
|
138
|
+
"Nëntor",
|
|
139
|
+
"Dhjetor"
|
|
140
|
+
]
|
|
141
|
+
}, M = {
|
|
142
|
+
narrow: ["D", "H", "M", "M", "E", "P", "S"],
|
|
143
|
+
short: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"],
|
|
144
|
+
abbreviated: ["Die", "Hën", "Mar", "Mër", "Enj", "Pre", "Sht"],
|
|
145
|
+
wide: ["Dielë", "Hënë", "Martë", "Mërkurë", "Enjte", "Premte", "Shtunë"]
|
|
146
|
+
}, v = {
|
|
147
|
+
narrow: {
|
|
148
|
+
am: "p",
|
|
149
|
+
pm: "m",
|
|
150
|
+
midnight: "m",
|
|
151
|
+
noon: "d",
|
|
152
|
+
morning: "mëngjes",
|
|
153
|
+
afternoon: "dite",
|
|
154
|
+
evening: "mbrëmje",
|
|
155
|
+
night: "natë"
|
|
156
|
+
},
|
|
157
|
+
abbreviated: {
|
|
158
|
+
am: "PD",
|
|
159
|
+
pm: "MD",
|
|
160
|
+
midnight: "mesnëtë",
|
|
161
|
+
noon: "drek",
|
|
162
|
+
morning: "mëngjes",
|
|
163
|
+
afternoon: "mbasdite",
|
|
164
|
+
evening: "mbrëmje",
|
|
165
|
+
night: "natë"
|
|
166
|
+
},
|
|
167
|
+
wide: {
|
|
168
|
+
am: "p.d.",
|
|
169
|
+
pm: "m.d.",
|
|
170
|
+
midnight: "mesnëtë",
|
|
171
|
+
noon: "drek",
|
|
172
|
+
morning: "mëngjes",
|
|
173
|
+
afternoon: "mbasdite",
|
|
174
|
+
evening: "mbrëmje",
|
|
175
|
+
night: "natë"
|
|
176
|
+
}
|
|
177
|
+
}, k = {
|
|
178
|
+
narrow: {
|
|
179
|
+
am: "p",
|
|
180
|
+
pm: "m",
|
|
181
|
+
midnight: "m",
|
|
182
|
+
noon: "d",
|
|
183
|
+
morning: "në mëngjes",
|
|
184
|
+
afternoon: "në mbasdite",
|
|
185
|
+
evening: "në mbrëmje",
|
|
186
|
+
night: "në mesnatë"
|
|
187
|
+
},
|
|
188
|
+
abbreviated: {
|
|
189
|
+
am: "PD",
|
|
190
|
+
pm: "MD",
|
|
191
|
+
midnight: "mesnatë",
|
|
192
|
+
noon: "drek",
|
|
193
|
+
morning: "në mëngjes",
|
|
194
|
+
afternoon: "në mbasdite",
|
|
195
|
+
evening: "në mbrëmje",
|
|
196
|
+
night: "në mesnatë"
|
|
197
|
+
},
|
|
198
|
+
wide: {
|
|
199
|
+
am: "p.d.",
|
|
200
|
+
pm: "m.d.",
|
|
201
|
+
midnight: "mesnatë",
|
|
202
|
+
noon: "drek",
|
|
203
|
+
morning: "në mëngjes",
|
|
204
|
+
afternoon: "në mbasdite",
|
|
205
|
+
evening: "në mbrëmje",
|
|
206
|
+
night: "në mesnatë"
|
|
207
|
+
}
|
|
208
|
+
}, y = (e, a) => {
|
|
209
|
+
const t = Number(e);
|
|
210
|
+
return (a == null ? void 0 : a.unit) === "hour" ? String(t) : t === 1 ? t + "-rë" : t === 4 ? t + "t" : t + "-të";
|
|
211
|
+
}, w = {
|
|
212
|
+
ordinalNumber: y,
|
|
213
|
+
era: r({
|
|
214
|
+
values: j,
|
|
215
|
+
defaultWidth: "wide"
|
|
216
|
+
}),
|
|
217
|
+
quarter: r({
|
|
218
|
+
values: p,
|
|
219
|
+
defaultWidth: "wide",
|
|
220
|
+
argumentCallback: (e) => e - 1
|
|
221
|
+
}),
|
|
222
|
+
month: r({
|
|
223
|
+
values: P,
|
|
224
|
+
defaultWidth: "wide"
|
|
225
|
+
}),
|
|
226
|
+
day: r({
|
|
227
|
+
values: M,
|
|
228
|
+
defaultWidth: "wide"
|
|
229
|
+
}),
|
|
230
|
+
dayPeriod: r({
|
|
231
|
+
values: v,
|
|
232
|
+
defaultWidth: "wide",
|
|
233
|
+
formattingValues: k,
|
|
234
|
+
defaultFormattingWidth: "wide"
|
|
235
|
+
})
|
|
236
|
+
}, W = /^(\d+)(-rë|-të|t|)?/i, D = /\d+/i, S = {
|
|
237
|
+
narrow: /^(p|m)/i,
|
|
238
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
239
|
+
wide: /^(para krishtit|mbas krishtit)/i
|
|
240
|
+
}, q = {
|
|
241
|
+
any: [/^b/i, /^(p|m)/i]
|
|
242
|
+
}, x = {
|
|
243
|
+
narrow: /^[1234]/i,
|
|
244
|
+
abbreviated: /^q[1234]/i,
|
|
245
|
+
wide: /^[1234]-mujori (i{1,3}|iv)/i
|
|
246
|
+
}, E = {
|
|
247
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
248
|
+
}, F = {
|
|
249
|
+
narrow: /^[jsmpqkftnd]/i,
|
|
250
|
+
abbreviated: /^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,
|
|
251
|
+
wide: /^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i
|
|
252
|
+
}, Q = {
|
|
253
|
+
narrow: [
|
|
254
|
+
/^j/i,
|
|
255
|
+
/^s/i,
|
|
256
|
+
/^m/i,
|
|
257
|
+
/^p/i,
|
|
258
|
+
/^m/i,
|
|
259
|
+
/^q/i,
|
|
260
|
+
/^k/i,
|
|
261
|
+
/^g/i,
|
|
262
|
+
/^s/i,
|
|
263
|
+
/^t/i,
|
|
264
|
+
/^n/i,
|
|
265
|
+
/^d/i
|
|
266
|
+
],
|
|
267
|
+
any: [
|
|
268
|
+
/^ja/i,
|
|
269
|
+
/^shk/i,
|
|
270
|
+
/^mar/i,
|
|
271
|
+
/^pri/i,
|
|
272
|
+
/^maj/i,
|
|
273
|
+
/^qer/i,
|
|
274
|
+
/^kor/i,
|
|
275
|
+
/^gu/i,
|
|
276
|
+
/^sht/i,
|
|
277
|
+
/^tet/i,
|
|
278
|
+
/^n/i,
|
|
279
|
+
/^d/i
|
|
280
|
+
]
|
|
281
|
+
}, V = {
|
|
282
|
+
narrow: /^[dhmeps]/i,
|
|
283
|
+
short: /^(di|hë|ma|më|en|pr|sh)/i,
|
|
284
|
+
abbreviated: /^(die|hën|mar|mër|enj|pre|sht)/i,
|
|
285
|
+
wide: /^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i
|
|
286
|
+
}, z = {
|
|
287
|
+
narrow: [/^d/i, /^h/i, /^m/i, /^m/i, /^e/i, /^p/i, /^s/i],
|
|
288
|
+
any: [/^d/i, /^h/i, /^ma/i, /^më/i, /^e/i, /^p/i, /^s/i]
|
|
289
|
+
}, I = {
|
|
290
|
+
narrow: /^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,
|
|
291
|
+
any: /^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i
|
|
292
|
+
}, N = {
|
|
293
|
+
any: {
|
|
294
|
+
am: /^p/i,
|
|
295
|
+
pm: /^m/i,
|
|
296
|
+
midnight: /^me/i,
|
|
297
|
+
noon: /^dr/i,
|
|
298
|
+
morning: /mëngjes/i,
|
|
299
|
+
afternoon: /mbasdite/i,
|
|
300
|
+
evening: /mbrëmje/i,
|
|
301
|
+
night: /natë/i
|
|
302
|
+
}
|
|
303
|
+
}, X = {
|
|
304
|
+
ordinalNumber: m({
|
|
305
|
+
matchPattern: W,
|
|
306
|
+
parsePattern: D,
|
|
307
|
+
valueCallback: (e) => parseInt(e, 10)
|
|
308
|
+
}),
|
|
309
|
+
era: i({
|
|
310
|
+
matchPatterns: S,
|
|
311
|
+
defaultMatchWidth: "wide",
|
|
312
|
+
parsePatterns: q,
|
|
313
|
+
defaultParseWidth: "any"
|
|
314
|
+
}),
|
|
315
|
+
quarter: i({
|
|
316
|
+
matchPatterns: x,
|
|
317
|
+
defaultMatchWidth: "wide",
|
|
318
|
+
parsePatterns: E,
|
|
319
|
+
defaultParseWidth: "any",
|
|
320
|
+
valueCallback: (e) => e + 1
|
|
321
|
+
}),
|
|
322
|
+
month: i({
|
|
323
|
+
matchPatterns: F,
|
|
324
|
+
defaultMatchWidth: "wide",
|
|
325
|
+
parsePatterns: Q,
|
|
326
|
+
defaultParseWidth: "any"
|
|
327
|
+
}),
|
|
328
|
+
day: i({
|
|
329
|
+
matchPatterns: V,
|
|
330
|
+
defaultMatchWidth: "wide",
|
|
331
|
+
parsePatterns: z,
|
|
332
|
+
defaultParseWidth: "any"
|
|
333
|
+
}),
|
|
334
|
+
dayPeriod: i({
|
|
335
|
+
matchPatterns: I,
|
|
336
|
+
defaultMatchWidth: "any",
|
|
337
|
+
parsePatterns: N,
|
|
338
|
+
defaultParseWidth: "any"
|
|
339
|
+
})
|
|
340
|
+
}, T = {
|
|
341
|
+
code: "sq",
|
|
342
|
+
formatDistance: h,
|
|
343
|
+
formatLong: b,
|
|
344
|
+
formatRelative: g,
|
|
345
|
+
localize: w,
|
|
346
|
+
match: X,
|
|
347
|
+
options: {
|
|
348
|
+
weekStartsOn: 1,
|
|
349
|
+
firstWeekContainsDate: 1
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
export {
|
|
353
|
+
T as sq
|
|
354
|
+
};
|
|
355
|
+
//# sourceMappingURL=sq-AQvefouo.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as H, useRef as P, useState as
|
|
2
|
+
import { forwardRef as H, useRef as P, useState as I, useEffect as E, useMemo as B, useImperativeHandle as C } from "react";
|
|
3
3
|
import { c as p } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { u as
|
|
4
|
+
import { useTranslation as L } from "react-i18next";
|
|
5
|
+
import { u as O } from "./registry-nPAVE19X.js";
|
|
6
|
+
import { u as Z } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
6
7
|
const _ = {
|
|
7
8
|
id: "stepper-progress",
|
|
8
9
|
capabilities: ["navigate"],
|
|
@@ -120,14 +121,14 @@ const _ = {
|
|
|
120
121
|
className: k,
|
|
121
122
|
...R
|
|
122
123
|
}, T) => {
|
|
123
|
-
const { t: u } =
|
|
124
|
-
|
|
124
|
+
const { t: u } = L(), m = P(null), t = o.length, s = Math.max(0, Math.min(e, t - 1)), r = o[s], v = (r == null ? void 0 : r.status) === "error" ? "error" : "current", f = s + 1, V = t === 0 ? 0 : f / t * 100, g = v === "error" ? "error" : s === t - 1 && t > 0 ? "complete" : "progress", [K, j] = I(!1);
|
|
125
|
+
E(() => {
|
|
125
126
|
j(!0);
|
|
126
127
|
}, []);
|
|
127
128
|
const h = K ? V : 0;
|
|
128
|
-
|
|
129
|
+
Z(() => {
|
|
129
130
|
var n;
|
|
130
|
-
(n =
|
|
131
|
+
(n = m.current) == null || n.style.setProperty(
|
|
131
132
|
"--stepper-progress-value",
|
|
132
133
|
String(h)
|
|
133
134
|
);
|
|
@@ -135,11 +136,11 @@ const _ = {
|
|
|
135
136
|
const x = u("navigation.stepper.stepOfTotal", {
|
|
136
137
|
n: s + 1,
|
|
137
138
|
total: t
|
|
138
|
-
}), z = S ?? u("navigation.stepper.label"), l =
|
|
139
|
+
}), z = S ?? u("navigation.stepper.label"), l = v === "error" && (r != null && r.description) ? r.description : null, q = [
|
|
139
140
|
x,
|
|
140
141
|
r ? `— ${r.label}` : null,
|
|
141
142
|
l
|
|
142
|
-
].filter(Boolean).join(" "), A =
|
|
143
|
+
].filter(Boolean).join(" "), A = B(
|
|
143
144
|
() => ({
|
|
144
145
|
getCurrentStep: () => s,
|
|
145
146
|
getTotalSteps: () => t,
|
|
@@ -157,7 +158,7 @@ const _ = {
|
|
|
157
158
|
}),
|
|
158
159
|
[s, t, a]
|
|
159
160
|
), b = P(null);
|
|
160
|
-
return
|
|
161
|
+
return C(T, () => b.current, []), O(_, A, d), /* @__PURE__ */ c(
|
|
161
162
|
"div",
|
|
162
163
|
{
|
|
163
164
|
ref: b,
|
|
@@ -167,7 +168,7 @@ const _ = {
|
|
|
167
168
|
className: $({ captionPosition: N, className: k }),
|
|
168
169
|
...R,
|
|
169
170
|
children: [
|
|
170
|
-
w ? null : /* @__PURE__ */ c("div", { className: G({ tone:
|
|
171
|
+
w ? null : /* @__PURE__ */ c("div", { className: G({ tone: g }), "aria-hidden": "true", children: [
|
|
171
172
|
/* @__PURE__ */ i("span", { className: "type-meta ds:font-[var(--font-weight-semibold)]", children: x }),
|
|
172
173
|
r ? /* @__PURE__ */ c("span", { className: "type-meta ds:text-[var(--muted-foreground)]", children: [
|
|
173
174
|
"— ",
|
|
@@ -182,15 +183,15 @@ const _ = {
|
|
|
182
183
|
"aria-label": z,
|
|
183
184
|
"aria-valuemin": 0,
|
|
184
185
|
"aria-valuemax": t,
|
|
185
|
-
"aria-valuenow":
|
|
186
|
+
"aria-valuenow": f,
|
|
186
187
|
"aria-valuetext": q,
|
|
187
188
|
className: D({ size: M }),
|
|
188
189
|
children: /* @__PURE__ */ i(
|
|
189
190
|
"span",
|
|
190
191
|
{
|
|
191
|
-
ref:
|
|
192
|
+
ref: m,
|
|
192
193
|
"aria-hidden": "true",
|
|
193
|
-
className: F({ tone:
|
|
194
|
+
className: F({ tone: g })
|
|
194
195
|
}
|
|
195
196
|
)
|
|
196
197
|
}
|
|
@@ -205,4 +206,4 @@ export {
|
|
|
205
206
|
J as S,
|
|
206
207
|
_ as s
|
|
207
208
|
};
|
|
208
|
-
//# sourceMappingURL=stepper-progress-
|
|
209
|
+
//# sourceMappingURL=stepper-progress-DDjq5nei.js.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsxs as p, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useState as y, useEffect as b, Fragment as v } from "react";
|
|
3
|
+
import { c as x } from "./index-D2ZczOXr.js";
|
|
4
|
+
const g = x(
|
|
5
|
+
"type-body ds:block ds:whitespace-pre-wrap ds:break-words",
|
|
6
|
+
{
|
|
7
|
+
variants: {
|
|
8
|
+
// Family, weight, tracking, line-height all come from `.type-body` on the base.
|
|
9
|
+
// Size variants override --type-body-size to shift the ramp step.
|
|
10
|
+
size: {
|
|
11
|
+
sm: "ds:[--type-body-size:var(--font-size-sm)]",
|
|
12
|
+
md: "",
|
|
13
|
+
lg: "ds:[--type-body-size:var(--font-size-lg)]"
|
|
14
|
+
},
|
|
15
|
+
density: {
|
|
16
|
+
default: "",
|
|
17
|
+
compact: "ds:[--type-body-size:var(--font-size-sm)] ds:leading-snug"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: { size: "md", density: "default" }
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
function z(a) {
|
|
24
|
+
const t = [], r = a.length, o = 42, c = 96, u = 10;
|
|
25
|
+
let i = 0, e = 0;
|
|
26
|
+
const d = (n) => {
|
|
27
|
+
n > i && t.push({ type: "text", value: a.slice(i, n) });
|
|
28
|
+
};
|
|
29
|
+
for (; e < r; ) {
|
|
30
|
+
const n = a.charCodeAt(e);
|
|
31
|
+
if (n === o && e + 1 < r && a.charCodeAt(e + 1) === o) {
|
|
32
|
+
let s = e + 2;
|
|
33
|
+
for (; s < r && a.charCodeAt(s) !== o; ) s++;
|
|
34
|
+
if (s < r - 1 && a.charCodeAt(s + 1) === o && s > e + 2) {
|
|
35
|
+
d(e), t.push({ type: "bold", value: a.slice(e + 2, s) }), e = s + 2, i = e;
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
e += 2;
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (n === c) {
|
|
42
|
+
let s = e + 1;
|
|
43
|
+
for (; s < r && a.charCodeAt(s) !== c; ) s++;
|
|
44
|
+
if (s < r && s > e + 1) {
|
|
45
|
+
d(e), t.push({ type: "code", value: a.slice(e + 1, s) }), e = s + 1, i = e;
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
e += 1;
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (n === u) {
|
|
52
|
+
d(e), t.push({ type: "br" }), e += 1, i = e;
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
e += 1;
|
|
56
|
+
}
|
|
57
|
+
return d(r), t;
|
|
58
|
+
}
|
|
59
|
+
function T(a) {
|
|
60
|
+
return z(a).map((t, r) => t.type === "bold" ? /* @__PURE__ */ l("strong", { children: t.value }, r) : t.type === "code" ? /* @__PURE__ */ l(
|
|
61
|
+
"code",
|
|
62
|
+
{
|
|
63
|
+
dir: "ltr",
|
|
64
|
+
className: "ds:rounded-[var(--radius-sm)] ds:bg-muted/20 ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:font-[family-name:var(--font-mono)] ds:text-[length:0.95em]",
|
|
65
|
+
children: t.value
|
|
66
|
+
},
|
|
67
|
+
r
|
|
68
|
+
) : t.type === "br" ? /* @__PURE__ */ l("br", {}, r) : /* @__PURE__ */ l(v, { children: t.value }, r));
|
|
69
|
+
}
|
|
70
|
+
const C = h(
|
|
71
|
+
({
|
|
72
|
+
content: a,
|
|
73
|
+
isStreaming: t,
|
|
74
|
+
renderMarkdown: r = !1,
|
|
75
|
+
ariaLive: o = "polite",
|
|
76
|
+
size: c = "md",
|
|
77
|
+
density: u = "default",
|
|
78
|
+
className: i,
|
|
79
|
+
...e
|
|
80
|
+
}, d) => {
|
|
81
|
+
const [n, s] = y(a);
|
|
82
|
+
b(() => {
|
|
83
|
+
if (!t) {
|
|
84
|
+
s(a);
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const f = setTimeout(() => s(a), 100);
|
|
88
|
+
return () => clearTimeout(f);
|
|
89
|
+
}, [a, t]);
|
|
90
|
+
const m = r ? T(n) : n;
|
|
91
|
+
return /* @__PURE__ */ p(
|
|
92
|
+
"span",
|
|
93
|
+
{
|
|
94
|
+
ref: d,
|
|
95
|
+
"aria-live": o,
|
|
96
|
+
"aria-busy": !!t,
|
|
97
|
+
"data-component": "streaming-text",
|
|
98
|
+
className: g({ size: c, density: u, className: i }),
|
|
99
|
+
...e,
|
|
100
|
+
children: [
|
|
101
|
+
m,
|
|
102
|
+
t ? /* @__PURE__ */ l(
|
|
103
|
+
"span",
|
|
104
|
+
{
|
|
105
|
+
"aria-hidden": "true",
|
|
106
|
+
className: [
|
|
107
|
+
"ds:inline-block ds:align-baseline",
|
|
108
|
+
"ds:text-[color:var(--primary)]",
|
|
109
|
+
"ds:motion-safe:animate-[streaming-cursor-blink_1s_step-end_infinite]",
|
|
110
|
+
"ds:motion-reduce:opacity-100",
|
|
111
|
+
"ds:[.theme-accessible_&]:animate-none",
|
|
112
|
+
"ds:forced-colors:text-[CanvasText]",
|
|
113
|
+
"ds:ms-[1px]"
|
|
114
|
+
].join(" "),
|
|
115
|
+
children: "▍"
|
|
116
|
+
}
|
|
117
|
+
) : null
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
C.displayName = "StreamingText";
|
|
124
|
+
export {
|
|
125
|
+
C as S
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=streaming-text-GH07yIYh.js.map
|