@alfadocs/ui-kit 0.30.5 → 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-Cw92aqo3.js → booking-BIZ9GSer.js} +149 -160
- 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/calendar-clock-CYkcqdwl.js +19 -0
- 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-CztRy_21.js → editable-currency-cell-renderer-BpicmolK.js} +308 -322
- 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/refresh-cw-CC8jSKMr.js +17 -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/smile-BSYLAHy6.js +17 -0
- 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/{transaction-chip-z9ENE50O.js → transaction-chip-B8ujzowA.js} +47 -60
- 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 +42 -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/index.d.ts +1 -0
- 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.d.ts +4 -0
- package/dist/components/practice-results/index.js +6 -0
- package/dist/components/practice-results/practice-results.agent.d.ts +4 -0
- package/dist/components/practice-results/practice-results.d.ts +159 -0
- 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/transaction-chip/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 +92 -0
- package/dist/i18n/locales/en.js +92 -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 +532 -528
- 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 +92 -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 +5 -2
- package/dist/_chunks/audio-visualiser-I-T4Z7EU.js +0 -145
- 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,18 +1,18 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as Q, useState as I, useRef as U, useCallback as X, useMemo as Z, useImperativeHandle as z } from "react";
|
|
3
|
+
import { useTranslation as ee } from "react-i18next";
|
|
4
4
|
import * as m from "@radix-ui/react-popover";
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as ye } from "./registry-
|
|
9
|
-
function
|
|
10
|
-
return
|
|
5
|
+
import { u as te } from "./use-controllable-state-BiY4xTzM.js";
|
|
6
|
+
import { u as ae } from "./form-field-context-B3APVHKx.js";
|
|
7
|
+
import { a as ne, b as re, u as se, g as oe, c as ie, e as T, s as W, d as de, f as ce, h as v, i as le, C as pe, j as ge, t as ue, p as fe, D as me, k as he, l as ke } from "./react-day-picker-DsjfS7uI.js";
|
|
8
|
+
import { u as ye } from "./registry-nPAVE19X.js";
|
|
9
|
+
function R(t, r, o) {
|
|
10
|
+
return ne(t, -r, o);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function be(t, r, o) {
|
|
13
|
+
return re(t, -1, o);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const ve = {
|
|
16
16
|
id: "date-range-picker",
|
|
17
17
|
capabilities: ["range_pick", "open", "close"],
|
|
18
18
|
state: {
|
|
@@ -83,31 +83,31 @@ const ke = {
|
|
|
83
83
|
description: "Sourced from the id prop."
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
},
|
|
86
|
+
}, Re = Q(
|
|
87
87
|
({
|
|
88
88
|
value: t,
|
|
89
89
|
defaultValue: r,
|
|
90
90
|
onChange: o,
|
|
91
91
|
minDate: l,
|
|
92
|
-
maxDate:
|
|
93
|
-
presets:
|
|
94
|
-
mergePresets:
|
|
95
|
-
size:
|
|
96
|
-
disabled:
|
|
97
|
-
placeholder:
|
|
98
|
-
className:
|
|
99
|
-
id:
|
|
100
|
-
},
|
|
101
|
-
const { t: s, i18n:
|
|
92
|
+
maxDate: V,
|
|
93
|
+
presets: h,
|
|
94
|
+
mergePresets: K = !1,
|
|
95
|
+
size: D = "md",
|
|
96
|
+
disabled: F,
|
|
97
|
+
placeholder: L,
|
|
98
|
+
className: j,
|
|
99
|
+
id: A
|
|
100
|
+
}, B) => {
|
|
101
|
+
const { t: s, i18n: P } = ee(), c = ae(), k = A ?? c.id, w = c.disabled || F, H = c.invalid ? "error" : "default", i = se(P.language), y = oe(P.language), _ = L ?? s("inputs.dateRangePicker.placeholder", "Select date range"), [$, C] = te({
|
|
102
102
|
value: t,
|
|
103
103
|
defaultValue: r ?? {},
|
|
104
104
|
onChange: o
|
|
105
|
-
}), a =
|
|
105
|
+
}), a = $ ?? {}, [p, g] = I(!1), [Y, O] = I(a.from ?? /* @__PURE__ */ new Date()), q = U(null), d = X(
|
|
106
106
|
(e) => {
|
|
107
|
-
|
|
107
|
+
C(e);
|
|
108
108
|
},
|
|
109
|
-
[
|
|
110
|
-
),
|
|
109
|
+
[C]
|
|
110
|
+
), E = ie(l, V), x = [
|
|
111
111
|
{
|
|
112
112
|
label: s("inputs.dateRangePicker.presets.today", "Today"),
|
|
113
113
|
range: () => {
|
|
@@ -118,68 +118,68 @@ const ke = {
|
|
|
118
118
|
{
|
|
119
119
|
label: s("inputs.dateRangePicker.presets.yesterday", "Yesterday"),
|
|
120
120
|
range: () => {
|
|
121
|
-
const e =
|
|
121
|
+
const e = R(/* @__PURE__ */ new Date(), 1);
|
|
122
122
|
return { from: e, to: e };
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
126
|
label: s("inputs.dateRangePicker.presets.last7", "Last 7 days"),
|
|
127
127
|
range: () => ({
|
|
128
|
-
from:
|
|
128
|
+
from: R(/* @__PURE__ */ new Date(), 6),
|
|
129
129
|
to: /* @__PURE__ */ new Date()
|
|
130
130
|
})
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
label: s("inputs.dateRangePicker.presets.thisWeek", "This week"),
|
|
134
134
|
range: () => ({
|
|
135
|
-
from:
|
|
136
|
-
to:
|
|
135
|
+
from: W(/* @__PURE__ */ new Date(), { locale: i }),
|
|
136
|
+
to: T(/* @__PURE__ */ new Date(), { locale: i })
|
|
137
137
|
})
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
label: s("inputs.dateRangePicker.presets.lastWeek", "Last week"),
|
|
141
141
|
range: () => {
|
|
142
|
-
const e =
|
|
142
|
+
const e = be(/* @__PURE__ */ new Date());
|
|
143
143
|
return {
|
|
144
|
-
from:
|
|
145
|
-
to:
|
|
144
|
+
from: W(e, { locale: i }),
|
|
145
|
+
to: T(e, { locale: i })
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
label: s("inputs.dateRangePicker.presets.thisMonth", "This month"),
|
|
151
151
|
range: () => ({
|
|
152
|
-
from:
|
|
153
|
-
to:
|
|
152
|
+
from: ce(/* @__PURE__ */ new Date()),
|
|
153
|
+
to: de(/* @__PURE__ */ new Date())
|
|
154
154
|
})
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
label: s("inputs.dateRangePicker.presets.last30", "Last 30 days"),
|
|
158
158
|
range: () => ({
|
|
159
|
-
from:
|
|
159
|
+
from: R(/* @__PURE__ */ new Date(), 29),
|
|
160
160
|
to: /* @__PURE__ */ new Date()
|
|
161
161
|
})
|
|
162
162
|
}
|
|
163
|
-
],
|
|
163
|
+
], S = h ? K ? [...x, ...h] : h : x, G = (e) => {
|
|
164
164
|
d(e ? { from: e.from, to: e.to } : {});
|
|
165
|
-
},
|
|
165
|
+
}, J = (e) => {
|
|
166
166
|
const u = e.range();
|
|
167
|
-
d(u),
|
|
168
|
-
},
|
|
167
|
+
d(u), O(u.from), g(!1);
|
|
168
|
+
}, M = (() => {
|
|
169
169
|
if (a.from && a.to) {
|
|
170
|
-
const e =
|
|
170
|
+
const e = v(a.from, y, { locale: i }), u = v(a.to, y, { locale: i });
|
|
171
171
|
return `${e} – ${u}`;
|
|
172
172
|
}
|
|
173
|
-
return a.from ?
|
|
174
|
-
})(),
|
|
173
|
+
return a.from ? v(a.from, y, { locale: i }) : "";
|
|
174
|
+
})(), N = (() => {
|
|
175
175
|
if (a.from && a.to) {
|
|
176
|
-
const e =
|
|
176
|
+
const e = le(a.to, a.from) + 1;
|
|
177
177
|
return s("inputs.dateRangePicker.days", "{{count}} days", {
|
|
178
178
|
count: e
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
return "";
|
|
182
|
-
})(),
|
|
182
|
+
})(), b = Z(
|
|
183
183
|
() => ({
|
|
184
184
|
getRange: () => a,
|
|
185
185
|
setRange: (e) => d(e),
|
|
@@ -190,39 +190,39 @@ const ke = {
|
|
|
190
190
|
}),
|
|
191
191
|
[a, d, p]
|
|
192
192
|
);
|
|
193
|
-
return
|
|
193
|
+
return z(B, () => b, [b]), ye(ve, b, k), /* @__PURE__ */ n(m.Root, { open: p, onOpenChange: g, children: /* @__PURE__ */ f(
|
|
194
194
|
"div",
|
|
195
195
|
{
|
|
196
|
-
className:
|
|
196
|
+
className: j,
|
|
197
197
|
"data-component": "date-range-picker",
|
|
198
|
-
"data-component-id":
|
|
198
|
+
"data-component-id": k,
|
|
199
199
|
children: [
|
|
200
|
-
/* @__PURE__ */ n(m.Trigger, { asChild: !0, disabled:
|
|
200
|
+
/* @__PURE__ */ n(m.Trigger, { asChild: !0, disabled: w, children: /* @__PURE__ */ f(
|
|
201
201
|
"button",
|
|
202
202
|
{
|
|
203
|
-
ref:
|
|
204
|
-
id:
|
|
203
|
+
ref: q,
|
|
204
|
+
id: k,
|
|
205
205
|
type: "button",
|
|
206
|
-
disabled:
|
|
206
|
+
disabled: w,
|
|
207
207
|
"aria-describedby": c.describedBy || void 0,
|
|
208
208
|
"aria-invalid": c.invalid || void 0,
|
|
209
209
|
"aria-haspopup": "dialog",
|
|
210
210
|
"aria-expanded": p,
|
|
211
|
-
className:
|
|
211
|
+
className: ue({ size: D, tone: H }),
|
|
212
212
|
children: [
|
|
213
213
|
/* @__PURE__ */ n(
|
|
214
214
|
"span",
|
|
215
215
|
{
|
|
216
|
-
className:
|
|
217
|
-
children:
|
|
216
|
+
className: M ? "ds:text-foreground" : "ds:text-muted-foreground",
|
|
217
|
+
children: M || _
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
220
|
/* @__PURE__ */ n(
|
|
221
221
|
"span",
|
|
222
222
|
{
|
|
223
223
|
"aria-hidden": "true",
|
|
224
|
-
className:
|
|
225
|
-
children: /* @__PURE__ */ n(
|
|
224
|
+
className: ge({ size: D }),
|
|
225
|
+
children: /* @__PURE__ */ n(pe, {})
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
]
|
|
@@ -233,43 +233,43 @@ const ke = {
|
|
|
233
233
|
{
|
|
234
234
|
sideOffset: 4,
|
|
235
235
|
align: "start",
|
|
236
|
-
className:
|
|
236
|
+
className: ke(),
|
|
237
237
|
children: /* @__PURE__ */ f("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
238
|
-
|
|
238
|
+
S.length > 0 ? /* @__PURE__ */ n("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: S.map((e) => /* @__PURE__ */ n(
|
|
239
239
|
"button",
|
|
240
240
|
{
|
|
241
241
|
type: "button",
|
|
242
|
-
onClick: () =>
|
|
243
|
-
className:
|
|
242
|
+
onClick: () => J(e),
|
|
243
|
+
className: fe(),
|
|
244
244
|
children: e.label
|
|
245
245
|
},
|
|
246
246
|
e.label
|
|
247
247
|
)) }) : null,
|
|
248
248
|
/* @__PURE__ */ f("div", { children: [
|
|
249
249
|
/* @__PURE__ */ n(
|
|
250
|
-
|
|
250
|
+
me,
|
|
251
251
|
{
|
|
252
252
|
mode: "range",
|
|
253
253
|
selected: a.from ? { from: a.from, to: a.to } : void 0,
|
|
254
|
-
onSelect:
|
|
255
|
-
month:
|
|
256
|
-
onMonthChange:
|
|
254
|
+
onSelect: G,
|
|
255
|
+
month: Y,
|
|
256
|
+
onMonthChange: O,
|
|
257
257
|
numberOfMonths: 2,
|
|
258
|
-
disabled:
|
|
258
|
+
disabled: E,
|
|
259
259
|
locale: i,
|
|
260
260
|
showOutsideDays: !0,
|
|
261
261
|
fixedWeeks: !0,
|
|
262
262
|
pagedNavigation: !0,
|
|
263
|
-
components: { Chevron:
|
|
263
|
+
components: { Chevron: he }
|
|
264
264
|
}
|
|
265
265
|
),
|
|
266
|
-
|
|
266
|
+
N ? /* @__PURE__ */ n(
|
|
267
267
|
"div",
|
|
268
268
|
{
|
|
269
269
|
role: "status",
|
|
270
270
|
"aria-live": "polite",
|
|
271
271
|
className: "type-body-sm ds:text-muted-foreground ds:mt-[var(--spacing-sm)] ds:text-center",
|
|
272
|
-
children:
|
|
272
|
+
children: N
|
|
273
273
|
}
|
|
274
274
|
) : null
|
|
275
275
|
] })
|
|
@@ -281,9 +281,9 @@ const ke = {
|
|
|
281
281
|
) });
|
|
282
282
|
}
|
|
283
283
|
);
|
|
284
|
-
|
|
284
|
+
Re.displayName = "DateRangePicker";
|
|
285
285
|
export {
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
Re as D,
|
|
287
|
+
ve as d
|
|
288
288
|
};
|
|
289
|
-
//# sourceMappingURL=date-range-picker-
|
|
289
|
+
//# sourceMappingURL=date-range-picker-D4dgDlLU.js.map
|
|
@@ -5,10 +5,10 @@ import { useTranslation as ue } from "react-i18next";
|
|
|
5
5
|
import * as k from "@radix-ui/react-popover";
|
|
6
6
|
import { u as me } from "./use-controllable-state-BiY4xTzM.js";
|
|
7
7
|
import { u as pe } from "./form-field-context-B3APVHKx.js";
|
|
8
|
-
import { T as fe } from "./time-picker-
|
|
9
|
-
import {
|
|
10
|
-
import { u as xe } from "./registry-
|
|
11
|
-
import { t as j } from "./isSameDay-
|
|
8
|
+
import { T as fe } from "./time-picker-B5umYwfv.js";
|
|
9
|
+
import { u as ge, c as he, m as ve, n as be, h as ye, C as Te, j as ke, t as we, D as De, k as Ce, l as Pe } from "./react-day-picker-DsjfS7uI.js";
|
|
10
|
+
import { u as xe } from "./registry-nPAVE19X.js";
|
|
11
|
+
import { t as j } from "./isSameDay-DUEiAT0G.js";
|
|
12
12
|
function K(e, t, r) {
|
|
13
13
|
const i = j(e, r == null ? void 0 : r.in);
|
|
14
14
|
return i.setHours(t), i;
|
|
@@ -307,4 +307,4 @@ export {
|
|
|
307
307
|
Se as D,
|
|
308
308
|
Oe as d
|
|
309
309
|
};
|
|
310
|
-
//# sourceMappingURL=date-time-picker-
|
|
310
|
+
//# sourceMappingURL=date-time-picker-D1GEzf8p.js.map
|