@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,16 +1,17 @@
|
|
|
1
1
|
import { jsx as o, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as je, useContext as Ae, useMemo as U, useState as oe, useRef as g,
|
|
2
|
+
import { forwardRef as je, useContext as Ae, useMemo as U, useState as oe, useRef as g, useEffect as w, useCallback as Te } from "react";
|
|
3
3
|
import * as _ from "@radix-ui/react-popover";
|
|
4
|
-
import { R as
|
|
4
|
+
import { R as $e, _ as c, P as ke } from "./index-4xgbg-sn.js";
|
|
5
5
|
import { c as E } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
6
|
+
import { useTranslation as Oe } from "react-i18next";
|
|
7
|
+
import { u as qe, F as Be } from "./form-field-context-B3APVHKx.js";
|
|
8
|
+
import { c as Ue } from "./compose-refs-C0k0tdqF.js";
|
|
9
9
|
import { n as H } from "./normalize-diacritics-BNGbFNlJ.js";
|
|
10
|
-
import { g as
|
|
11
|
-
import { u as
|
|
10
|
+
import { g as He } from "./group-options-BvKhQ3xb.js";
|
|
11
|
+
import { u as Ge } from "./use-controllable-state-BiY4xTzM.js";
|
|
12
|
+
import { u as Me } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
12
13
|
import { I as Le, a as G, d as M, c as Qe } from "./input-surface-xyERuLU_.js";
|
|
13
|
-
import { u as Ke } from "./registry-
|
|
14
|
+
import { u as Ke } from "./registry-nPAVE19X.js";
|
|
14
15
|
import { X as Xe } from "./x-CCcI3eJp.js";
|
|
15
16
|
import { C as We } from "./check-DPdL_Sm7.js";
|
|
16
17
|
const Je = {
|
|
@@ -170,7 +171,7 @@ function rt({
|
|
|
170
171
|
size: V,
|
|
171
172
|
onSelect: D
|
|
172
173
|
}) {
|
|
173
|
-
return
|
|
174
|
+
return ke((P) => P.filtered.count) > 0 ? null : /* @__PURE__ */ N(
|
|
174
175
|
c.Item,
|
|
175
176
|
{
|
|
176
177
|
value: `__combobox-create__${t}`,
|
|
@@ -215,25 +216,25 @@ const re = je(
|
|
|
215
216
|
className: fe,
|
|
216
217
|
"aria-label": K
|
|
217
218
|
}, pe) {
|
|
218
|
-
const { t: x } =
|
|
219
|
+
const { t: x } = Oe(), b = qe(), y = Ae(Be) !== null, [be, z] = Ge({
|
|
219
220
|
value: F,
|
|
220
221
|
defaultValue: V ?? "",
|
|
221
222
|
onChange: D
|
|
222
223
|
}), m = be ?? "", $ = U(
|
|
223
224
|
() => r.find((e) => e.value === m),
|
|
224
225
|
[r, m]
|
|
225
|
-
), C = ($ == null ? void 0 : $.label) ?? "", [f, i] = oe(C), [he, X] = oe(!1), S = Q !== void 0, d = S ? Q : he, R = g(!1),
|
|
226
|
-
|
|
226
|
+
), C = ($ == null ? void 0 : $.label) ?? "", [f, i] = oe(C), [he, X] = oe(!1), S = Q !== void 0, d = S ? Q : he, R = g(!1), I = g(null), W = g(null);
|
|
227
|
+
Me(() => {
|
|
227
228
|
var e;
|
|
228
|
-
(e =
|
|
229
|
-
}),
|
|
229
|
+
(e = I.current) == null || e.setAttribute("aria-expanded", String(d));
|
|
230
|
+
}), w(() => {
|
|
230
231
|
d || i(C);
|
|
231
232
|
}, [C, d]);
|
|
232
233
|
const ge = j ?? (y ? b.id : void 0), k = (y ? b.disabled : !1) || !!ae, h = !!ie, ve = (y ? b.required : !1) || !!de, J = y ? b.invalid : !1, xe = J ? "error" : ce, ye = y && b.describedBy ? b.describedBy : void 0, Y = L ?? x("inputs.combobox.placeholder", "Search…"), Ce = U(
|
|
233
234
|
() => (e, s, n) => {
|
|
234
235
|
if (R.current) return 1;
|
|
235
236
|
const p = H(e), a = H(s), B = n == null ? void 0 : n.map(H);
|
|
236
|
-
return A ? A(p, a) :
|
|
237
|
+
return A ? A(p, a) : $e(
|
|
237
238
|
p,
|
|
238
239
|
a,
|
|
239
240
|
B
|
|
@@ -253,33 +254,33 @@ const re = je(
|
|
|
253
254
|
h || (i(e), !d && e.length > 0 && !R.current && l(!0));
|
|
254
255
|
}, Re = () => {
|
|
255
256
|
!k && !h && l(!0);
|
|
256
|
-
}, we = () => {
|
|
257
|
-
R.current = !0;
|
|
258
257
|
}, Ie = () => {
|
|
258
|
+
R.current = !0;
|
|
259
|
+
}, we = () => {
|
|
259
260
|
var s;
|
|
260
261
|
if (R.current = !1, h) return;
|
|
261
|
-
const e = ((s =
|
|
262
|
+
const e = ((s = I.current) == null ? void 0 : s.value) ?? "";
|
|
262
263
|
i(e), e.length > 0 && l(!0);
|
|
263
264
|
}, _e = (e) => {
|
|
264
265
|
e.nativeEvent.isComposing || e.key === "Escape" && d && (e.preventDefault(), l(!1), i(C));
|
|
265
266
|
}, Ee = (e) => {
|
|
266
267
|
var s;
|
|
267
|
-
e.preventDefault(), e.stopPropagation(), Z(""), i(""), l(!0), (s =
|
|
268
|
+
e.preventDefault(), e.stopPropagation(), Z(""), i(""), l(!0), (s = I.current) == null || s.focus();
|
|
268
269
|
}, Fe = (e) => {
|
|
269
270
|
h && e || (l(e), e || i(C));
|
|
270
271
|
}, ee = g(m);
|
|
271
|
-
|
|
272
|
+
w(() => {
|
|
272
273
|
ee.current = m;
|
|
273
274
|
}, [m]);
|
|
274
275
|
const te = g(f);
|
|
275
|
-
|
|
276
|
+
w(() => {
|
|
276
277
|
te.current = f;
|
|
277
278
|
}, [f]);
|
|
278
279
|
const se = g(d);
|
|
279
|
-
|
|
280
|
+
w(() => {
|
|
280
281
|
se.current = d;
|
|
281
282
|
}, [d]);
|
|
282
|
-
const O =
|
|
283
|
+
const O = Te(
|
|
283
284
|
(e) => {
|
|
284
285
|
S || X(e), u == null || u(e);
|
|
285
286
|
},
|
|
@@ -307,7 +308,7 @@ const re = je(
|
|
|
307
308
|
[z, r, O]
|
|
308
309
|
);
|
|
309
310
|
Ke(Je, Ve, j);
|
|
310
|
-
const De = P && !!m && !k && !h, Pe =
|
|
311
|
+
const De = P && !!m && !k && !h, Pe = He(r), q = nt[v];
|
|
311
312
|
return /* @__PURE__ */ o(_.Root, { open: d, onOpenChange: Fe, children: /* @__PURE__ */ N(
|
|
312
313
|
c,
|
|
313
314
|
{
|
|
@@ -332,7 +333,7 @@ const re = je(
|
|
|
332
333
|
/* @__PURE__ */ o(
|
|
333
334
|
c.Input,
|
|
334
335
|
{
|
|
335
|
-
ref:
|
|
336
|
+
ref: Ue(pe, I),
|
|
336
337
|
value: f,
|
|
337
338
|
onValueChange: Se,
|
|
338
339
|
id: ge,
|
|
@@ -345,8 +346,8 @@ const re = je(
|
|
|
345
346
|
"aria-invalid": J || void 0,
|
|
346
347
|
onFocus: Re,
|
|
347
348
|
onKeyDown: _e,
|
|
348
|
-
onCompositionStart:
|
|
349
|
-
onCompositionEnd:
|
|
349
|
+
onCompositionStart: Ie,
|
|
350
|
+
onCompositionEnd: we,
|
|
350
351
|
className: Ye({ size: v })
|
|
351
352
|
}
|
|
352
353
|
),
|
|
@@ -446,13 +447,13 @@ const re = je(
|
|
|
446
447
|
}
|
|
447
448
|
);
|
|
448
449
|
re.displayName = "Combobox";
|
|
449
|
-
const
|
|
450
|
+
const Ct = re;
|
|
450
451
|
export {
|
|
451
|
-
|
|
452
|
+
Ct as C,
|
|
452
453
|
et as a,
|
|
453
454
|
Ye as b,
|
|
454
455
|
Je as c,
|
|
455
456
|
ne as d,
|
|
456
457
|
Ze as e
|
|
457
458
|
};
|
|
458
|
-
//# sourceMappingURL=combobox-
|
|
459
|
+
//# sourceMappingURL=combobox-BC-DFx8G.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as s, jsxs as m, Fragment as
|
|
2
|
-
import { forwardRef as u, useState as
|
|
3
|
-
import { _ as
|
|
1
|
+
import { jsx as s, jsxs as m, Fragment as P } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u, useState as w, useEffect as v, useRef as C, useMemo as k, useCallback as T } from "react";
|
|
3
|
+
import { _ as p, R as J } from "./index-4xgbg-sn.js";
|
|
4
4
|
import * as h from "@radix-ui/react-dialog";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as R } from "react-i18next";
|
|
6
6
|
import { S as V } from "./search-BonnQsHv.js";
|
|
7
|
-
import { u as $ } from "./registry-
|
|
7
|
+
import { u as $ } from "./registry-nPAVE19X.js";
|
|
8
8
|
const W = {
|
|
9
9
|
id: "command-palette",
|
|
10
10
|
capabilities: ["open", "close", "filter", "pick", "submit"],
|
|
@@ -60,14 +60,14 @@ const W = {
|
|
|
60
60
|
function y(e) {
|
|
61
61
|
return e.normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
|
|
62
62
|
}
|
|
63
|
-
const X = (e, t, a) => J(y(e), y(t), a == null ? void 0 : a.map(y)),
|
|
63
|
+
const X = (e, t, a) => J(y(e), y(t), a == null ? void 0 : a.map(y)), A = "ui.cmdk.recents", j = 5;
|
|
64
64
|
function Y() {
|
|
65
65
|
if (typeof window > "u") return [];
|
|
66
66
|
try {
|
|
67
|
-
const e = window.localStorage.getItem(
|
|
67
|
+
const e = window.localStorage.getItem(A);
|
|
68
68
|
if (!e) return [];
|
|
69
69
|
const t = JSON.parse(e);
|
|
70
|
-
return Array.isArray(t) ? t.slice(0,
|
|
70
|
+
return Array.isArray(t) ? t.slice(0, j).filter((a) => typeof a == "string") : [];
|
|
71
71
|
} catch {
|
|
72
72
|
return [];
|
|
73
73
|
}
|
|
@@ -76,20 +76,22 @@ function L(e) {
|
|
|
76
76
|
if (!(typeof window > "u"))
|
|
77
77
|
try {
|
|
78
78
|
window.localStorage.setItem(
|
|
79
|
-
|
|
80
|
-
JSON.stringify(e.slice(0,
|
|
79
|
+
A,
|
|
80
|
+
JSON.stringify(e.slice(0, j))
|
|
81
81
|
);
|
|
82
82
|
} catch {
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
function me() {
|
|
86
|
-
const [e, t] =
|
|
86
|
+
const [e, t] = w(!1);
|
|
87
87
|
return v(() => {
|
|
88
|
-
function a(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
function a(r) {
|
|
89
|
+
if ((r.metaKey || r.ctrlKey) && r.key === "k") {
|
|
90
|
+
r.preventDefault(), t((g) => !g);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const d = r.target, l = d == null ? void 0 : d.tagName.toLowerCase();
|
|
94
|
+
(l === "input" || l === "textarea" || d != null && d.isContentEditable) && (e && r.key);
|
|
93
95
|
}
|
|
94
96
|
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
95
97
|
}, [e]), { open: e, setOpen: t };
|
|
@@ -98,18 +100,18 @@ const U = [
|
|
|
98
100
|
"ds:flex ds:h-full ds:w-full ds:flex-col ds:overflow-hidden",
|
|
99
101
|
"ds:rounded-[var(--radius-md)]",
|
|
100
102
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]"
|
|
101
|
-
].join(" "),
|
|
102
|
-
|
|
103
|
+
].join(" "), D = u(({ className: e, filter: t = X, id: a, ...r }, o) => /* @__PURE__ */ s(
|
|
104
|
+
p,
|
|
103
105
|
{
|
|
104
106
|
ref: o,
|
|
105
107
|
filter: t,
|
|
106
108
|
className: [U, e].filter(Boolean).join(" "),
|
|
107
109
|
"data-component": "command-palette",
|
|
108
110
|
"data-component-id": a,
|
|
109
|
-
...
|
|
111
|
+
...r
|
|
110
112
|
}
|
|
111
113
|
));
|
|
112
|
-
|
|
114
|
+
D.displayName = "CommandPalette";
|
|
113
115
|
const Z = [
|
|
114
116
|
"ds:flex ds:items-center",
|
|
115
117
|
"ds:border-block-end ds:border-[var(--border)]",
|
|
@@ -122,8 +124,8 @@ const Z = [
|
|
|
122
124
|
"ds:outline-none",
|
|
123
125
|
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50",
|
|
124
126
|
"ds:border-0"
|
|
125
|
-
].join(" "),
|
|
126
|
-
const { t: o } =
|
|
127
|
+
].join(" "), O = u(({ className: e, placeholder: t, ...a }, r) => {
|
|
128
|
+
const { t: o } = R();
|
|
127
129
|
return /* @__PURE__ */ m("div", { className: Z, children: [
|
|
128
130
|
/* @__PURE__ */ s(
|
|
129
131
|
V,
|
|
@@ -133,9 +135,9 @@ const Z = [
|
|
|
133
135
|
}
|
|
134
136
|
),
|
|
135
137
|
/* @__PURE__ */ s(
|
|
136
|
-
|
|
138
|
+
p.Input,
|
|
137
139
|
{
|
|
138
|
-
ref:
|
|
140
|
+
ref: r,
|
|
139
141
|
placeholder: t ?? o("navigation.cmdk.placeholder", "Type a command or search…"),
|
|
140
142
|
className: [ee, e].filter(Boolean).join(" "),
|
|
141
143
|
...a
|
|
@@ -143,9 +145,9 @@ const Z = [
|
|
|
143
145
|
)
|
|
144
146
|
] });
|
|
145
147
|
});
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
148
|
+
O.displayName = "CommandInput";
|
|
149
|
+
const Q = u(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
150
|
+
p.List,
|
|
149
151
|
{
|
|
150
152
|
ref: a,
|
|
151
153
|
className: [
|
|
@@ -157,13 +159,13 @@ const O = u(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
|
157
159
|
...t
|
|
158
160
|
}
|
|
159
161
|
));
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
const { t: o } =
|
|
162
|
+
Q.displayName = "CommandList";
|
|
163
|
+
const q = u(({ className: e, children: t, ...a }, r) => {
|
|
164
|
+
const { t: o } = R();
|
|
163
165
|
return /* @__PURE__ */ s(
|
|
164
|
-
|
|
166
|
+
p.Empty,
|
|
165
167
|
{
|
|
166
|
-
ref:
|
|
168
|
+
ref: r,
|
|
167
169
|
className: [
|
|
168
170
|
"ds:py-[var(--spacing-lg)] ds:text-center",
|
|
169
171
|
"type-body-sm ds:text-[var(--muted-foreground)]",
|
|
@@ -174,11 +176,11 @@ const Q = u(({ className: e, children: t, ...a }, n) => {
|
|
|
174
176
|
}
|
|
175
177
|
);
|
|
176
178
|
});
|
|
177
|
-
|
|
178
|
-
const
|
|
179
|
-
|
|
179
|
+
q.displayName = "CommandEmpty";
|
|
180
|
+
const N = u(({ className: e, heading: t, ...a }, r) => /* @__PURE__ */ s(
|
|
181
|
+
p.Group,
|
|
180
182
|
{
|
|
181
|
-
ref:
|
|
183
|
+
ref: r,
|
|
182
184
|
heading: t,
|
|
183
185
|
className: [
|
|
184
186
|
"ds:overflow-hidden",
|
|
@@ -193,7 +195,7 @@ const S = u(({ className: e, heading: t, ...a }, n) => /* @__PURE__ */ s(
|
|
|
193
195
|
...a
|
|
194
196
|
}
|
|
195
197
|
));
|
|
196
|
-
|
|
198
|
+
N.displayName = "CommandGroup";
|
|
197
199
|
const te = [
|
|
198
200
|
"ds:relative ds:flex ds:items-center",
|
|
199
201
|
"ds:gap-[var(--spacing-sm)]",
|
|
@@ -206,17 +208,17 @@ const te = [
|
|
|
206
208
|
"ds:data-[selected=true]:font-[var(--font-weight-semibold)]",
|
|
207
209
|
"ds:data-[disabled=true]:pointer-events-none ds:data-[disabled=true]:opacity-50",
|
|
208
210
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
209
|
-
].join(" "),
|
|
210
|
-
|
|
211
|
+
].join(" "), x = u(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
212
|
+
p.Item,
|
|
211
213
|
{
|
|
212
214
|
ref: a,
|
|
213
215
|
className: [te, e].filter(Boolean).join(" "),
|
|
214
216
|
...t
|
|
215
217
|
}
|
|
216
218
|
));
|
|
217
|
-
|
|
218
|
-
const
|
|
219
|
-
|
|
219
|
+
x.displayName = "CommandItem";
|
|
220
|
+
const G = u(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
221
|
+
p.Separator,
|
|
220
222
|
{
|
|
221
223
|
ref: a,
|
|
222
224
|
className: [
|
|
@@ -228,12 +230,12 @@ const q = u(({ className: e, ...t }, a) => /* @__PURE__ */ s(
|
|
|
228
230
|
...t
|
|
229
231
|
}
|
|
230
232
|
));
|
|
231
|
-
|
|
232
|
-
const
|
|
233
|
-
({ className: e, children: t, ...a },
|
|
233
|
+
G.displayName = "CommandSeparator";
|
|
234
|
+
const S = u(
|
|
235
|
+
({ className: e, children: t, ...a }, r) => /* @__PURE__ */ s(
|
|
234
236
|
"kbd",
|
|
235
237
|
{
|
|
236
|
-
ref:
|
|
238
|
+
ref: r,
|
|
237
239
|
className: [
|
|
238
240
|
"ds:ms-auto",
|
|
239
241
|
"ds:inline-flex ds:items-center",
|
|
@@ -250,16 +252,16 @@ const R = u(
|
|
|
250
252
|
}
|
|
251
253
|
)
|
|
252
254
|
);
|
|
253
|
-
|
|
255
|
+
S.displayName = "CommandShortcut";
|
|
254
256
|
function ae(e, t) {
|
|
255
257
|
if (!t) return e;
|
|
256
|
-
const a = y(e),
|
|
258
|
+
const a = y(e), r = y(t), o = a.indexOf(r);
|
|
257
259
|
if (o === -1) return e;
|
|
258
|
-
const
|
|
259
|
-
return /* @__PURE__ */ m(
|
|
260
|
-
|
|
260
|
+
const d = e.slice(0, o), l = e.slice(o, o + r.length), f = e.slice(o + r.length);
|
|
261
|
+
return /* @__PURE__ */ m(P, { children: [
|
|
262
|
+
d,
|
|
261
263
|
/* @__PURE__ */ s("mark", { className: "ds:bg-[var(--accent)]/20 ds:text-inherit ds:rounded-[var(--radius-sm)] ds:px-[0.125em]", children: l }),
|
|
262
|
-
|
|
264
|
+
f
|
|
263
265
|
] });
|
|
264
266
|
}
|
|
265
267
|
const se = [
|
|
@@ -284,63 +286,63 @@ const se = [
|
|
|
284
286
|
"ds:data-[state=open]:zoom-in-95 ds:data-[state=closed]:zoom-out-95",
|
|
285
287
|
"ds:motion-reduce:animate-none",
|
|
286
288
|
"ds:focus:outline-none"
|
|
287
|
-
].join(" "),
|
|
289
|
+
].join(" "), M = ({ children: e }) => /* @__PURE__ */ s("span", { className: "ds:sr-only", children: e });
|
|
288
290
|
function ue({
|
|
289
291
|
open: e,
|
|
290
292
|
onOpenChange: t,
|
|
291
293
|
commands: a,
|
|
292
|
-
header:
|
|
294
|
+
header: r,
|
|
293
295
|
id: o
|
|
294
296
|
}) {
|
|
295
|
-
const { t:
|
|
297
|
+
const { t: d } = R(), [l, f] = w(""), [g, E] = w(Y);
|
|
296
298
|
v(() => {
|
|
297
|
-
e ||
|
|
299
|
+
e || f("");
|
|
298
300
|
}, [e]);
|
|
299
|
-
const z =
|
|
301
|
+
const z = C(e);
|
|
300
302
|
v(() => {
|
|
301
303
|
z.current = e;
|
|
302
304
|
}, [e]);
|
|
303
|
-
const I =
|
|
305
|
+
const I = C(l);
|
|
304
306
|
v(() => {
|
|
305
307
|
I.current = l;
|
|
306
308
|
}, [l]);
|
|
307
|
-
const
|
|
309
|
+
const b = C(t);
|
|
308
310
|
v(() => {
|
|
309
|
-
|
|
311
|
+
b.current = t;
|
|
310
312
|
}, [t]);
|
|
311
|
-
const
|
|
313
|
+
const F = k(
|
|
312
314
|
() => ({
|
|
313
315
|
getQuery: () => I.current,
|
|
314
316
|
getIsOpen: () => z.current,
|
|
315
|
-
open: () =>
|
|
316
|
-
close: () =>
|
|
317
|
-
setQuery: (
|
|
317
|
+
open: () => b.current(!0),
|
|
318
|
+
close: () => b.current(!1),
|
|
319
|
+
setQuery: (n) => f(n)
|
|
318
320
|
}),
|
|
319
321
|
[]
|
|
320
322
|
);
|
|
321
|
-
$(W,
|
|
322
|
-
const
|
|
323
|
-
const
|
|
324
|
-
return a.forEach((
|
|
325
|
-
const
|
|
326
|
-
|
|
327
|
-
}),
|
|
328
|
-
}, [a]), _ =
|
|
323
|
+
$(W, F, o);
|
|
324
|
+
const H = k(() => {
|
|
325
|
+
const n = /* @__PURE__ */ new Map();
|
|
326
|
+
return a.forEach((c) => {
|
|
327
|
+
const i = n.get(c.group) ?? [];
|
|
328
|
+
i.push(c), n.set(c.group, i);
|
|
329
|
+
}), n;
|
|
330
|
+
}, [a]), _ = k(() => {
|
|
329
331
|
if (l) return [];
|
|
330
|
-
const
|
|
331
|
-
return g.map((
|
|
332
|
+
const n = new Map(a.map((c) => [c.id, c]));
|
|
333
|
+
return g.map((c) => n.get(c)).filter(Boolean);
|
|
332
334
|
}, [a, g, l]), B = T(
|
|
333
|
-
(
|
|
335
|
+
(n) => {
|
|
334
336
|
t(!1);
|
|
335
|
-
const
|
|
337
|
+
const c = [n.id, ...g.filter((i) => i !== n.id)].slice(
|
|
336
338
|
0,
|
|
337
|
-
|
|
339
|
+
j
|
|
338
340
|
);
|
|
339
|
-
|
|
341
|
+
E(c), L(c), setTimeout(() => n.onSelect(), 0);
|
|
340
342
|
},
|
|
341
343
|
[g, t]
|
|
342
|
-
),
|
|
343
|
-
|
|
344
|
+
), K = T(() => {
|
|
345
|
+
E([]), L([]);
|
|
344
346
|
}, []);
|
|
345
347
|
return /* @__PURE__ */ s(h.Root, { open: e, onOpenChange: t, children: /* @__PURE__ */ m(h.Portal, { children: [
|
|
346
348
|
/* @__PURE__ */ s(
|
|
@@ -355,48 +357,48 @@ function ue({
|
|
|
355
357
|
{
|
|
356
358
|
"data-component": "command-palette-dialog",
|
|
357
359
|
className: ne,
|
|
358
|
-
"aria-label":
|
|
360
|
+
"aria-label": d("navigation.cmdk.title", "Command palette"),
|
|
359
361
|
children: [
|
|
360
|
-
/* @__PURE__ */ s(h.Title, { asChild: !0, children: /* @__PURE__ */ s(
|
|
361
|
-
/* @__PURE__ */ s(h.Description, { asChild: !0, children: /* @__PURE__ */ s(
|
|
362
|
+
/* @__PURE__ */ s(h.Title, { asChild: !0, children: /* @__PURE__ */ s(M, { children: d("navigation.cmdk.title", "Command palette") }) }),
|
|
363
|
+
/* @__PURE__ */ s(h.Description, { asChild: !0, children: /* @__PURE__ */ s(M, { children: d(
|
|
362
364
|
"navigation.cmdk.description",
|
|
363
365
|
"Search for commands, pages, and actions"
|
|
364
366
|
) }) }),
|
|
365
367
|
/* @__PURE__ */ m(
|
|
366
|
-
|
|
368
|
+
D,
|
|
367
369
|
{
|
|
368
370
|
id: o,
|
|
369
|
-
label:
|
|
371
|
+
label: d("navigation.cmdk.title", "Command palette"),
|
|
370
372
|
children: [
|
|
371
|
-
|
|
372
|
-
/* @__PURE__ */ s(
|
|
373
|
-
/* @__PURE__ */ m(
|
|
374
|
-
/* @__PURE__ */ s(
|
|
375
|
-
_.length > 0 ? /* @__PURE__ */ m(
|
|
373
|
+
r,
|
|
374
|
+
/* @__PURE__ */ s(O, { value: l, onValueChange: f }),
|
|
375
|
+
/* @__PURE__ */ m(Q, { children: [
|
|
376
|
+
/* @__PURE__ */ s(q, {}),
|
|
377
|
+
_.length > 0 ? /* @__PURE__ */ m(P, { children: [
|
|
376
378
|
/* @__PURE__ */ m(
|
|
377
|
-
|
|
379
|
+
N,
|
|
378
380
|
{
|
|
379
|
-
heading:
|
|
381
|
+
heading: d("navigation.cmdk.recents", "Recent"),
|
|
380
382
|
children: [
|
|
381
|
-
_.map((
|
|
382
|
-
|
|
383
|
+
_.map((n) => /* @__PURE__ */ m(
|
|
384
|
+
x,
|
|
383
385
|
{
|
|
384
|
-
value: `recent-${
|
|
385
|
-
onSelect: () => B(
|
|
386
|
+
value: `recent-${n.label}`,
|
|
387
|
+
onSelect: () => B(n),
|
|
386
388
|
children: [
|
|
387
|
-
|
|
388
|
-
/* @__PURE__ */ s("span", { children:
|
|
389
|
-
|
|
389
|
+
n.icon ? /* @__PURE__ */ s("span", { "aria-hidden": "true", children: n.icon }) : null,
|
|
390
|
+
/* @__PURE__ */ s("span", { children: n.label }),
|
|
391
|
+
n.shortcut ? /* @__PURE__ */ s(S, { children: n.shortcut }) : null
|
|
390
392
|
]
|
|
391
393
|
},
|
|
392
|
-
`recent-${
|
|
394
|
+
`recent-${n.id}`
|
|
393
395
|
)),
|
|
394
396
|
/* @__PURE__ */ s(
|
|
395
|
-
|
|
397
|
+
x,
|
|
396
398
|
{
|
|
397
399
|
value: "__clear-recents",
|
|
398
|
-
onSelect:
|
|
399
|
-
children: /* @__PURE__ */ s("span", { children:
|
|
400
|
+
onSelect: K,
|
|
401
|
+
children: /* @__PURE__ */ s("span", { children: d(
|
|
400
402
|
"navigation.cmdk.clearRecents",
|
|
401
403
|
"Clear recent commands"
|
|
402
404
|
) })
|
|
@@ -405,22 +407,22 @@ function ue({
|
|
|
405
407
|
]
|
|
406
408
|
}
|
|
407
409
|
),
|
|
408
|
-
/* @__PURE__ */ s(
|
|
410
|
+
/* @__PURE__ */ s(G, {})
|
|
409
411
|
] }) : null,
|
|
410
|
-
Array.from(
|
|
411
|
-
|
|
412
|
+
Array.from(H.entries()).map(([n, c]) => /* @__PURE__ */ s(N, { heading: n, children: c.map((i) => /* @__PURE__ */ m(
|
|
413
|
+
x,
|
|
412
414
|
{
|
|
413
|
-
value:
|
|
414
|
-
keywords:
|
|
415
|
-
onSelect: () => B(
|
|
415
|
+
value: i.label,
|
|
416
|
+
keywords: i.keywords,
|
|
417
|
+
onSelect: () => B(i),
|
|
416
418
|
children: [
|
|
417
|
-
|
|
418
|
-
/* @__PURE__ */ s("span", { children: ae(
|
|
419
|
-
|
|
419
|
+
i.icon ? /* @__PURE__ */ s("span", { "aria-hidden": "true", children: i.icon }) : null,
|
|
420
|
+
/* @__PURE__ */ s("span", { children: ae(i.label, l) }),
|
|
421
|
+
i.shortcut ? /* @__PURE__ */ s(S, { children: i.shortcut }) : null
|
|
420
422
|
]
|
|
421
423
|
},
|
|
422
|
-
|
|
423
|
-
)) },
|
|
424
|
+
i.id
|
|
425
|
+
)) }, n))
|
|
424
426
|
] })
|
|
425
427
|
]
|
|
426
428
|
}
|
|
@@ -431,18 +433,18 @@ function ue({
|
|
|
431
433
|
] }) });
|
|
432
434
|
}
|
|
433
435
|
export {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
436
|
+
q as C,
|
|
437
|
+
N as a,
|
|
438
|
+
O as b,
|
|
439
|
+
x as c,
|
|
440
|
+
Q as d,
|
|
441
|
+
D as e,
|
|
440
442
|
ue as f,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
+
G as g,
|
|
444
|
+
S as h,
|
|
443
445
|
W as i,
|
|
444
446
|
X as j,
|
|
445
447
|
ae as k,
|
|
446
448
|
me as u
|
|
447
449
|
};
|
|
448
|
-
//# sourceMappingURL=command-palette-
|
|
450
|
+
//# sourceMappingURL=command-palette-BiPAAno-.js.map
|
|
@@ -4,7 +4,7 @@ import { c as u } from "./index-D2ZczOXr.js";
|
|
|
4
4
|
import { useTranslation as _ } from "react-i18next";
|
|
5
5
|
import { B as q } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { u as D } from "./use-copy-to-clipboard-Cyfc_dlv.js";
|
|
7
|
-
import { u as G } from "./registry-
|
|
7
|
+
import { u as G } from "./registry-nPAVE19X.js";
|
|
8
8
|
import { C as J } from "./check-DPdL_Sm7.js";
|
|
9
9
|
import { C as Q } from "./copy-B00HK7tj.js";
|
|
10
10
|
const U = {
|
|
@@ -258,4 +258,4 @@ export {
|
|
|
258
258
|
ee as C,
|
|
259
259
|
U as c
|
|
260
260
|
};
|
|
261
|
-
//# sourceMappingURL=copy-field-
|
|
261
|
+
//# sourceMappingURL=copy-field-CCq7j6Zc.js.map
|
|
@@ -7,9 +7,9 @@ import { useTranslation as Ee } from "react-i18next";
|
|
|
7
7
|
import * as Z from "@radix-ui/react-popover";
|
|
8
8
|
import { u as He } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as qe } from "./form-field-context-B3APVHKx.js";
|
|
10
|
-
import {
|
|
11
|
-
import { u as Se } from "./registry-
|
|
12
|
-
import { t as E, c as O, m as et, a as tt, b as rt } from "./isSameDay-
|
|
10
|
+
import { y as ce, z as Ce, s as S, A as ue, B as Le, E as Ne, a as le, F as de, G as Re, H as ae, I as Qe, J as ie, K as We, u as Ae, g as Fe, h as oe, c as Be, m as Ge, n as Ve, t as Xe, C as Ke, j as ze, p as Ze, D as $e, k as je, l as Ue, L as Je } from "./react-day-picker-DsjfS7uI.js";
|
|
11
|
+
import { u as Se } from "./registry-nPAVE19X.js";
|
|
12
|
+
import { t as E, c as O, m as et, a as tt, b as rt } from "./isSameDay-DUEiAT0G.js";
|
|
13
13
|
function nt() {
|
|
14
14
|
return Object.assign({}, ce());
|
|
15
15
|
}
|
|
@@ -1821,4 +1821,4 @@ export {
|
|
|
1821
1821
|
rr as D,
|
|
1822
1822
|
tr as d
|
|
1823
1823
|
};
|
|
1824
|
-
//# sourceMappingURL=date-picker-
|
|
1824
|
+
//# sourceMappingURL=date-picker-B94HAV4A.js.map
|