@alfadocs/ui-kit 1.58.0 → 1.60.0
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/{actions-cell-renderer-Dj1ZkvJj.js → actions-cell-renderer-CZWGQFKV.js} +4 -4
- package/dist/_chunks/{agenda-tray-ZKhDxlfw.js → agenda-tray-DU7O5Z7R.js} +3 -3
- package/dist/_chunks/{ai-credits-notice-ktklr8fy.js → ai-credits-notice-MBgQXxsx.js} +11 -11
- package/dist/_chunks/{ai-permission-notice-DyuEGwAt.js → ai-permission-notice-BJHutKLE.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-Beh-O_rJ.js → ai-prompt-input-Dzos37rf.js} +3 -3
- package/dist/_chunks/{alia-sidebar-dybRpWml.js → alia-sidebar-CU3mVL9J.js} +8 -8
- package/dist/_chunks/{anamnesis-card-BSlAhaoG.js → anamnesis-card-VjJOUl-t.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-card-2YfIYY2j.js → anamnesis-summary-card-cCj7LPh3.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-M-FUkw9p.js → anamnesis-summary-rows-C5F08WT6.js} +12 -12
- package/dist/_chunks/{antenatal-schedule-timeline-Kf2Yg8uo.js → antenatal-schedule-timeline-CfNFrej5.js} +2 -2
- package/dist/_chunks/{appointment-card-Dh3fAcyf.js → appointment-card-BXQUZlAJ.js} +2 -2
- package/dist/_chunks/{appointment-peek-WvNbE4JG.js → appointment-peek-BvzXHYiD.js} +4 -4
- package/dist/_chunks/{appointment-timeline-Z0494xO-.js → appointment-timeline-r-q97cec.js} +5 -5
- package/dist/_chunks/{appointment-tray-CyI_p3zU.js → appointment-tray-DF_R9ldY.js} +4 -4
- package/dist/_chunks/{audio-recorder-DWKKjGPt.js → audio-recorder-Cssm6jVh.js} +4 -4
- package/dist/_chunks/{balance-badge-cell-CGoJZlKf.js → balance-badge-cell-DMG06b2C.js} +5 -5
- package/dist/_chunks/{bishop-score-BxA20j9T.js → bishop-score-DxfkcxiV.js} +4 -4
- package/dist/_chunks/{bmi-calculator-C0UTxB7R.js → bmi-calculator-B4kgPqt5.js} +3 -3
- package/dist/_chunks/{booking-CiFSAMR-.js → booking-CXaqmdF7.js} +7 -7
- package/dist/_chunks/{button-Bn16lcFM.js → button-D-MQxsA_.js} +82 -63
- package/dist/_chunks/{button-group-CWlwR-A5.js → button-group-Cfpyu6pc.js} +73 -73
- package/dist/_chunks/{calculator-dialog-CzQv03p0.js → calculator-dialog-BUfaWqvu.js} +2 -2
- package/dist/_chunks/{calendar-6-24PQ1u.js → calendar-DNTVaK6b.js} +2 -2
- package/dist/_chunks/{calendar-workspace-DNHzjG7O.js → calendar-workspace-UL5xcpWa.js} +26 -26
- package/dist/_chunks/{card-DMO2nkt4.js → card-BA4Ig_kn.js} +9 -8
- package/dist/_chunks/{care-plan-card-DxrRLRdW.js → care-plan-card-DFQbU_Gd.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-0rpR-4Te.js → care-plan-entry-card-bj784KRk.js} +2 -2
- package/dist/_chunks/{care-plan-header-BMwZIgHJ.js → care-plan-header-DDhyAfVK.js} +2 -2
- package/dist/_chunks/{carousel.agent-D3xthzTf.js → carousel.agent-Csn24G1k.js} +2 -2
- package/dist/_chunks/{chart-ZMkX-Gqy.js → chart-D7PbNO_M.js} +407 -393
- package/dist/_chunks/{chat-input-PtrSu1ZC.js → chat-input-Ck34Pnmp.js} +2 -2
- package/dist/_chunks/{chat-message-CmGUcajG.js → chat-message-DU0X3Xnl.js} +3 -3
- package/dist/_chunks/{clinical-note-card-hx939bvw.js → clinical-note-card-L6FVM9Gx.js} +2 -2
- package/dist/_chunks/{code-block-BQgK70mO.js → code-block-DiC4bg-o.js} +2 -2
- package/dist/_chunks/{connection-status-ncTjUPt6.js → connection-status-BAnuwayz.js} +4 -4
- package/dist/_chunks/{contact-card-fHBMwEsx.js → contact-card-C8rEsC4Q.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CMyBYgRR.js → contact-profile-card-JTRbnbxy.js} +3 -3
- package/dist/_chunks/{control-room-rail-CJ85HkS2.js → control-room-rail-BbBEIdws.js} +3 -3
- package/dist/_chunks/{copy-field-CvTIuA_p.js → copy-field-BCT7APRE.js} +2 -2
- package/dist/_chunks/{cycle-calculator-Cww9DzIa.js → cycle-calculator-BuFi6ZJa.js} +3 -3
- package/dist/_chunks/{dashboard-grid-Cs7cJAsA.js → dashboard-grid-DeNEltwI.js} +2 -2
- package/dist/_chunks/{data-table-Yn5xiGzs.js → data-table-DAPkhyXO.js} +10 -10
- package/dist/_chunks/{data-table-tabs-CHYAAeHy.js → data-table-tabs-2t0cdk0h.js} +3 -3
- package/dist/_chunks/{description-list-DkLeHiew.js → description-list-CFEw__MT.js} +2 -2
- package/dist/_chunks/{dev-bypass-button-BhGn6evf.js → dev-bypass-button-dTuUuzsT.js} +2 -2
- package/dist/_chunks/{dialog-Dn-iQ0Jp.js → dialog-D6fkpRc4.js} +72 -61
- package/dist/_chunks/{document-preview-CHGGG0l_.js → document-preview-DYX669jE.js} +4 -4
- package/dist/_chunks/{document-scanner-CQS9kv84.js → document-scanner-C41n4pNq.js} +2 -2
- package/dist/_chunks/{dropdown-menu-BQSNVp4x.js → dropdown-menu-D1we7oAY.js} +134 -133
- package/dist/_chunks/{due-date-calculator-D_qFUiHp.js → due-date-calculator-yYvX8Ww_.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-CmYcMuwi.js → editable-currency-cell-renderer-6LDFAWUE.js} +3 -3
- package/dist/_chunks/{editable-description-DuJlvltc.js → editable-description-D9FsTi8e.js} +3 -3
- package/dist/_chunks/{editor-overlay-NMxzcO6J.js → editor-overlay-BYkcaLCj.js} +2 -2
- package/dist/_chunks/{empty-state-gNG3qYCX.js → empty-state-pL1qum99.js} +61 -59
- package/dist/_chunks/{entity-summary-CWcCSThK.js → entity-summary-oD_63dlz.js} +4 -4
- package/dist/_chunks/{error-boundary-ChowhO6w.js → error-boundary-Dzgu3O6W.js} +2 -2
- package/dist/_chunks/{error-page-CpuYbpOB.js → error-page-DirZKDz2.js} +2 -2
- package/dist/_chunks/{face-scheme-DSKDdIsb.js → face-scheme-C-5V3MsY.js} +6 -6
- package/dist/_chunks/{fetal-weight-BWaqqjea.js → fetal-weight-CHv2winC.js} +3 -3
- package/dist/_chunks/{field-array-BO-kaKFK.js → field-array-dSkD_ePA.js} +3 -3
- package/dist/_chunks/{file-manager-DEtkQR1F.js → file-manager-C8bdHsYy.js} +8 -8
- package/dist/_chunks/{finished-terminal-CPSDrIMB.js → finished-terminal-DuF3xrUv.js} +3 -3
- package/dist/_chunks/{fiscal-code-input-DesSQ6Fh.js → fiscal-code-input-BSWwda0C.js} +2 -2
- package/dist/_chunks/{forgot-password-form-CEqOmNuX.js → forgot-password-form-CGWV5Q1-.js} +3 -3
- package/dist/_chunks/{freemium-paywall-DIKuhX8b.js → freemium-paywall-DjjVPC-5.js} +27 -27
- package/dist/_chunks/{gestational-age-calculator-CZi43xKG.js → gestational-age-calculator-BLccWS_4.js} +5 -5
- package/dist/_chunks/{hcg-doubling-Ccvh7OaU.js → hcg-doubling-CnrY2OVu.js} +3 -3
- package/dist/_chunks/{header-B9552pLh.js → header-BVHAt7Fi.js} +2 -2
- package/dist/_chunks/{header-settings-BMcCx2LC.js → header-settings-C200bKyp.js} +4 -4
- package/dist/_chunks/{heatmap-DiyOSQk9.js → heatmap-CRMr7VWC.js} +6 -6
- package/dist/_chunks/{help-me-write-templates-CM1p6qkm.js → help-me-write-templates-C9T8-DcT.js} +6 -6
- package/dist/_chunks/{hover-card-U_ZYoh1n.js → hover-card-DbTmj-ea.js} +2 -2
- package/dist/_chunks/{icon-button-COX76Jdj.js → icon-button-dNE6ENLn.js} +12 -9
- package/dist/_chunks/{icon-button-group-C5hhI-R5.js → icon-button-group-Du8IvZek.js} +3 -3
- package/dist/_chunks/{icon-picker-rOFTawXk.js → icon-picker-D5NdDbCL.js} +3 -3
- package/dist/_chunks/{image-cropper-D0kkQ4lG.js → image-cropper-s8ej8cxa.js} +2 -2
- package/dist/_chunks/{info-tip-CJpNpzZe.js → info-tip-DObdz3w3.js} +2 -2
- package/dist/_chunks/{insert-result-C1C2OCc3.js → insert-result-h3WL-gMo.js} +2 -2
- package/dist/_chunks/{key-value-pair-BNNITp6S.js → key-value-pair-BNYHAZwD.js} +2 -2
- package/dist/_chunks/{kit-extensions-DYVxWcqv.js → kit-extensions-DI2nHVNw.js} +6 -6
- package/dist/_chunks/{link-cell-renderer-C1wOyxDF.js → link-cell-renderer-DvhzS6lu.js} +5 -5
- package/dist/_chunks/{locale-picker-BGfrZyTw.js → locale-picker-Bu4YE5b2.js} +3 -3
- package/dist/_chunks/{login-dev-card-CIim81VB.js → login-dev-card-DwWWHclZ.js} +3 -3
- package/dist/_chunks/{map-view-CO2v0hfp.js → map-view-BuVfJMEa.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-CSDmGLPW.js → marketplace-app-shell-DK2pFMpf.js} +279 -236
- package/dist/_chunks/{message-card-DVo8-dOm.js → message-card-CvZlo3Fn.js} +3 -3
- package/dist/_chunks/{message-tray-DmU0poD7.js → message-tray-DrS_LOed.js} +4 -4
- package/dist/_chunks/{muscle-scheme-BDgIaGeW.js → muscle-scheme-YoN3rYXV.js} +2 -2
- package/dist/_chunks/{notes-panel-DHLHsxpW.js → notes-panel-6TElt7jQ.js} +7 -7
- package/dist/_chunks/{notification-card-BGCIL6Mu.js → notification-card-Qrs52HIA.js} +3 -3
- package/dist/_chunks/{notification-tray-DPU-Xg0i.js → notification-tray-DRm1z97G.js} +4 -4
- package/dist/_chunks/{operator-hero-Dyd2IGbR.js → operator-hero-C_Khr5IU.js} +2 -2
- package/dist/_chunks/{optical-prescription-Do6e3wfs.js → optical-prescription-DLIAhJ6f.js} +3 -3
- package/dist/_chunks/{pagination-BR1_GfD_.js → pagination-DvKGrsXu.js} +146 -142
- package/dist/_chunks/{panel-subview-D4o6ar6_.js → panel-subview-CjZgdWwO.js} +2 -2
- package/dist/_chunks/{patient-details-BCaVuaXz.js → patient-details-BjqKBY2x.js} +4 -4
- package/dist/_chunks/{patient-field-row-jcRSTrp4.js → patient-field-row-BiI0BPPK.js} +7 -7
- package/dist/_chunks/{patient-search-D5xlXmd2.js → patient-search-B5R7FyFO.js} +4 -4
- package/dist/_chunks/{patient-summary-card-kQIfPQOE.js → patient-summary-card-BOgnWKRV.js} +6 -6
- package/dist/_chunks/{payment-automation-upsell-C4wHOxsp.js → payment-automation-upsell-39d5ykBi.js} +3 -3
- package/dist/_chunks/{payment-request-card-DAniJNLX.js → payment-request-card-E3G4aVt6.js} +4 -4
- package/dist/_chunks/{periodontal-chart-DD5C0M3l.js → periodontal-chart-BZ1d6S36.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-CxdXvsPU.js → periodontal-chart-card-BE5hiQnn.js} +3 -3
- package/dist/_chunks/{periodontal-diagnosis-D-PJv7KS.js → periodontal-diagnosis-6wybid_W.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-D3DjIymT.js → periodontal-risk-chart-CgLwBj5c.js} +2 -2
- package/dist/_chunks/{popover-BG75rYjN.js → popover-DQr_tljb.js} +2 -2
- package/dist/_chunks/popup-region-qz_5_A0V.js +79 -0
- package/dist/_chunks/{practice-profile-hero-C8RPACCi.js → practice-profile-hero-DPbvYfCs.js} +2 -2
- package/dist/_chunks/{practice-results-D07wgCqV.js → practice-results-Cktx7KaC.js} +6 -6
- package/dist/_chunks/{pregnancy-dating-BFzv9g1N.js → pregnancy-dating-26fcvhAx.js} +5 -5
- package/dist/_chunks/{pregnancy-weight-gain-CUUrBTBo.js → pregnancy-weight-gain-D8q1IUCT.js} +3 -3
- package/dist/_chunks/{privacy-lock-WkUgwIj_.js → privacy-lock-BpVgSgMb.js} +3 -3
- package/dist/_chunks/{privacy-mask-ChIjELJC.js → privacy-mask-BfMC57ST.js} +3 -3
- package/dist/_chunks/{product-hub-panel-DCYX0rPG.js → product-hub-panel-CH4B49ij.js} +3 -3
- package/dist/_chunks/{public-header.agent-C1SlVSYt.js → public-header.agent-BHTDKMsw.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-DyqbTECc.js → radiograph-panel.agent-DR0gOeSc.js} +6 -6
- package/dist/_chunks/{registration-form-DrSR9Sjk.js → registration-form-B8IeB9kd.js} +5 -5
- package/dist/_chunks/{reviews-panel-CDcK6W3b.js → reviews-panel-CHzDqerd.js} +5 -5
- package/dist/_chunks/{rich-text-editor-UgXri8h6.js → rich-text-editor-BRuTo2hm.js} +10 -10
- package/dist/_chunks/{section-card-ChJdOlBU.js → section-card-D5nWiTcK.js} +2 -2
- package/dist/_chunks/{select-Ce5RMk93.js → select-k4gBdS8N.js} +249 -224
- package/dist/_chunks/{session-countdown-CBINYw8H.js → session-countdown-DWY61IcV.js} +2 -2
- package/dist/_chunks/{sheet-Dtjk0CVv.js → sheet-CqvPYNLn.js} +7 -7
- package/dist/_chunks/sidebar-DhePV1hE.js +2563 -0
- package/dist/_chunks/{sign-in-with-alfadocs-button-D91_x8DX.js → sign-in-with-alfadocs-button-CIv0GgeA.js} +2 -2
- package/dist/_chunks/{signature-request-dAVgE0_5.js → signature-request-BH7yKI01.js} +6 -6
- package/dist/_chunks/{signed-out-frame-DOJpobp8.js → signed-out-frame-eaOWHpDr.js} +3 -3
- package/dist/_chunks/{slot-grid-sVZriOiQ.js → slot-grid-DELa2Nwz.js} +4 -4
- package/dist/_chunks/{streaming-text-BKZmbW1Q.js → streaming-text-bPDoG7Y3.js} +2 -2
- package/dist/_chunks/{tab-bar-Bm-rJB7Y.js → tab-bar-5GppbMGc.js} +2 -2
- package/dist/_chunks/{tabs-I2wf_nC7.js → tabs-2x3L13jn.js} +3 -3
- package/dist/_chunks/{task-card-BMXMh3uE.js → task-card-zaTU1rQa.js} +2 -2
- package/dist/_chunks/{task-editor-BflEZmcF.js → task-editor-CgGcg-2c.js} +8 -8
- package/dist/_chunks/{task-tray-DsBO-AaP.js → task-tray-DGMwogWu.js} +4 -4
- package/dist/_chunks/{tasks-panel-CdgZQQgG.js → tasks-panel-xGtiEdcj.js} +7 -7
- package/dist/_chunks/{theme-toggle-PpFcFoYK.js → theme-toggle-_cfYEK73.js} +4 -4
- package/dist/_chunks/{timeline-DG8wAlAx.js → timeline-DEIuHrWz.js} +2 -2
- package/dist/_chunks/{toast-CPqguP7G.js → toast-CNUydTgT.js} +2 -2
- package/dist/_chunks/{token-insert-menu-B-pWFDKX.js → token-insert-menu-CQvV4u1m.js} +3 -3
- package/dist/_chunks/{tool-rail-CTq1KwxW.js → tool-rail-Blgibz0a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-BAO_voUO.js → tooth-scheme-05DsRMA5.js} +3 -3
- package/dist/_chunks/{unit-converter-DS4UB_59.js → unit-converter-BPZ0Ldkb.js} +3 -3
- package/dist/_chunks/{use-appointment-details-read-izwoXh-G.js → use-appointment-details-read-BGVthJFx.js} +16 -16
- package/dist/_chunks/{voice-control-panel-an-bpQfF.js → voice-control-panel-DyKEaFxt.js} +5 -5
- package/dist/_chunks/{warning-stack-ubD0IZCy.js → warning-stack-CAL9xVo1.js} +3 -3
- package/dist/_chunks/{widget-picker-DlJOgYrZ.js → widget-picker-CkhoG4Rj.js} +2 -2
- package/dist/_chunks/{workflow-map-Demlpy39.js → workflow-map-BUYG1oXU.js} +7 -7
- package/dist/_chunks/{workflow-status-BT27_fQp.js → workflow-status-Dc_CyEz5.js} +2 -2
- package/dist/agent-catalog.json +26 -1
- package/dist/agent-i18n/en.json +4 -2
- package/dist/components/_shared/aria-keyshortcuts.d.ts +5 -0
- package/dist/components/_shared/popup-region.d.ts +28 -0
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/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/clinical-note-card/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table/toolbar.d.ts +1 -1
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/empty-state/empty-state.d.ts +8 -0
- package/dist/components/empty-state/index.d.ts +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/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/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/notes-panel/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/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/section-card/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.js +24 -21
- package/dist/components/sidebar/sidebar.d.ts +69 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +7 -0
- package/dist/i18n/locales/ar.js +8 -1
- package/dist/i18n/locales/de.d.ts +7 -0
- package/dist/i18n/locales/de.js +8 -1
- package/dist/i18n/locales/el.d.ts +7 -0
- package/dist/i18n/locales/el.js +8 -1
- package/dist/i18n/locales/en.d.ts +7 -0
- package/dist/i18n/locales/en.js +8 -1
- package/dist/i18n/locales/es.d.ts +7 -0
- package/dist/i18n/locales/es.js +8 -1
- package/dist/i18n/locales/fr.d.ts +7 -0
- package/dist/i18n/locales/fr.js +8 -1
- package/dist/i18n/locales/hi.d.ts +7 -0
- package/dist/i18n/locales/hi.js +8 -1
- package/dist/i18n/locales/it.d.ts +7 -0
- package/dist/i18n/locales/it.js +8 -1
- package/dist/i18n/locales/ja.d.ts +7 -0
- package/dist/i18n/locales/ja.js +8 -1
- package/dist/i18n/locales/nl.d.ts +7 -0
- package/dist/i18n/locales/nl.js +8 -1
- package/dist/i18n/locales/pl.d.ts +7 -0
- package/dist/i18n/locales/pl.js +8 -1
- package/dist/i18n/locales/pt.d.ts +7 -0
- package/dist/i18n/locales/pt.js +8 -1
- package/dist/i18n/locales/ro.d.ts +7 -0
- package/dist/i18n/locales/ro.js +8 -1
- package/dist/i18n/locales/ru.d.ts +7 -0
- package/dist/i18n/locales/ru.js +8 -1
- package/dist/i18n/locales/sq.d.ts +7 -0
- package/dist/i18n/locales/sq.js +8 -1
- package/dist/i18n/locales/sv.d.ts +7 -0
- package/dist/i18n/locales/sv.js +8 -1
- package/dist/i18n/locales/tr.d.ts +7 -0
- package/dist/i18n/locales/tr.js +8 -1
- package/dist/i18n/locales/zh.d.ts +7 -0
- package/dist/i18n/locales/zh.js +8 -1
- package/dist/index.js +781 -778
- package/dist/locales/ar.json +8 -1
- package/dist/locales/de.json +8 -1
- package/dist/locales/el.json +8 -1
- package/dist/locales/en.json +8 -1
- package/dist/locales/es.json +8 -1
- package/dist/locales/fr.json +8 -1
- package/dist/locales/hi.json +8 -1
- package/dist/locales/it.json +8 -1
- package/dist/locales/ja.json +8 -1
- package/dist/locales/nl.json +8 -1
- package/dist/locales/pl.json +8 -1
- package/dist/locales/pt.json +8 -1
- package/dist/locales/ro.json +8 -1
- package/dist/locales/ru.json +8 -1
- package/dist/locales/sq.json +8 -1
- package/dist/locales/sv.json +8 -1
- package/dist/locales/tr.json +8 -1
- package/dist/locales/zh.json +8 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/error-page/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +23 -4
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/dist/_chunks/sidebar-D4Wllqfz.js +0 -2029
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { u as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f, useContext as pe, useId as ce, useState as H, useRef as _, useEffect as Pe, useMemo as De, createContext as Ae } from "react";
|
|
3
|
+
import { u as Fe } from "./registry-DvAUVLHh.js";
|
|
4
4
|
import * as n from "@radix-ui/react-select";
|
|
5
5
|
import { c as U } from "./index-D2ZczOXr.js";
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { C as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
6
|
+
import { useTranslation as Le } from "react-i18next";
|
|
7
|
+
import { u as Ge, F as Ke, a as We } from "./form-field-context-DtiROUJV.js";
|
|
8
|
+
import { g as $e } from "./group-options-BvKhQ3xb.js";
|
|
9
|
+
import { u as qe } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
|
+
import { u as He } from "./use-controllable-state-BiY4xTzM.js";
|
|
11
|
+
import { b as Me } from "./menu-row-BAr8bx1I.js";
|
|
12
|
+
import { P as Ue } from "./popup-region-qz_5_A0V.js";
|
|
13
|
+
import { o as ue, b as Xe, d as Je, c as Qe } from "./option-row-Dc7BrbK8.js";
|
|
14
|
+
import { C as Ye } from "./chevron-up-umRGgtJA.js";
|
|
15
|
+
import { C as me } from "./chevron-down-DWE7GSq9.js";
|
|
16
|
+
import { C as Ze } from "./check-DrFSN__t.js";
|
|
17
|
+
import { u as et } from "./use-direction-Dp8h70PP.js";
|
|
18
|
+
import { X as tt } from "./x-B5YnXwCz.js";
|
|
19
|
+
const st = {
|
|
18
20
|
id: "select",
|
|
19
21
|
// Persisted single choice (value state + set_value) → select_single + set_value,
|
|
20
22
|
// plus open/close of the option list.
|
|
@@ -98,7 +100,7 @@ const Qe = {
|
|
|
98
100
|
description: "Stable opaque option value emitted on each rendered option."
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
},
|
|
103
|
+
}, fe = U(
|
|
102
104
|
[
|
|
103
105
|
"ds:group ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full",
|
|
104
106
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
|
|
@@ -128,7 +130,7 @@ const Qe = {
|
|
|
128
130
|
tone: "default"
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
|
-
),
|
|
133
|
+
), at = U(
|
|
132
134
|
[
|
|
133
135
|
"ds:z-[var(--z-dropdown)] ds:overflow-hidden",
|
|
134
136
|
// Never wider than the screen allows: a long option wraps or ends in an
|
|
@@ -143,12 +145,12 @@ const Qe = {
|
|
|
143
145
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
144
146
|
"ds:motion-reduce:animate-none"
|
|
145
147
|
].join(" ")
|
|
146
|
-
),
|
|
148
|
+
), ot = U(
|
|
147
149
|
[
|
|
148
150
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center",
|
|
149
151
|
"ds:rounded-[var(--radius-sm)]",
|
|
150
152
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
151
|
-
|
|
153
|
+
Me.highlighted,
|
|
152
154
|
"ds:data-[disabled]:pointer-events-none ds:data-[disabled]:opacity-50"
|
|
153
155
|
].join(" "),
|
|
154
156
|
{
|
|
@@ -163,71 +165,93 @@ const Qe = {
|
|
|
163
165
|
size: "md"
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
|
-
),
|
|
168
|
+
), nt = [
|
|
167
169
|
"ds:ps-8 ds:pe-3 ds:py-1.5",
|
|
168
170
|
"type-eyebrow ds:text-muted-foreground",
|
|
169
171
|
"ds:sticky ds:top-0 ds:bg-background"
|
|
170
|
-
].join(" "),
|
|
172
|
+
].join(" "), rt = {
|
|
171
173
|
sm: "ds:size-3.5",
|
|
172
174
|
md: "ds:size-4",
|
|
173
175
|
lg: "ds:size-5"
|
|
174
|
-
},
|
|
176
|
+
}, it = {
|
|
175
177
|
sm: "ds:start-2",
|
|
176
178
|
md: "ds:start-2",
|
|
177
179
|
lg: "ds:start-3"
|
|
178
180
|
};
|
|
179
|
-
function
|
|
181
|
+
function dt(...t) {
|
|
180
182
|
return (a) => {
|
|
181
183
|
for (const o of t)
|
|
182
184
|
o && (typeof o == "function" ? o(a) : o.current = a);
|
|
183
185
|
};
|
|
184
186
|
}
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
const X = Ae(void 0), ge = ({
|
|
188
|
+
open: t,
|
|
189
|
+
defaultOpen: a,
|
|
190
|
+
onOpenChange: o,
|
|
191
|
+
...r
|
|
192
|
+
}) => {
|
|
193
|
+
const [l, d] = He({
|
|
194
|
+
value: t,
|
|
195
|
+
defaultValue: a ?? !1,
|
|
196
|
+
onChange: o
|
|
197
|
+
});
|
|
198
|
+
return /* @__PURE__ */ e(X.Provider, { value: l ?? !1, children: /* @__PURE__ */ e(
|
|
199
|
+
n.Root,
|
|
200
|
+
{
|
|
201
|
+
open: l ?? !1,
|
|
202
|
+
onOpenChange: d,
|
|
203
|
+
...r
|
|
204
|
+
}
|
|
205
|
+
) });
|
|
206
|
+
};
|
|
207
|
+
ge.displayName = "Select.Root";
|
|
208
|
+
const he = f(
|
|
209
|
+
({ size: t, tone: a, className: o, children: r, ...l }, d) => /* @__PURE__ */ e(
|
|
189
210
|
n.Trigger,
|
|
190
211
|
{
|
|
191
|
-
ref:
|
|
192
|
-
className:
|
|
193
|
-
...
|
|
194
|
-
children:
|
|
212
|
+
ref: d,
|
|
213
|
+
className: fe({ size: t, tone: a, className: o }),
|
|
214
|
+
...l,
|
|
215
|
+
children: r
|
|
195
216
|
}
|
|
196
217
|
)
|
|
197
218
|
);
|
|
198
|
-
|
|
199
|
-
const M = { "data-select-value": "" },
|
|
219
|
+
he.displayName = "Select.Trigger";
|
|
220
|
+
const M = { "data-select-value": "" }, lt = [
|
|
200
221
|
"ds:[[data-select-value]_&]:block",
|
|
201
222
|
"ds:[[data-select-value]_&]:truncate"
|
|
202
|
-
].join(" "),
|
|
203
|
-
|
|
204
|
-
const
|
|
223
|
+
].join(" "), ve = f((t, a) => /* @__PURE__ */ e(n.Value, { ref: a, ...M, ...t }));
|
|
224
|
+
ve.displayName = "Select.Value";
|
|
225
|
+
const J = f(
|
|
205
226
|
({
|
|
206
227
|
className: t,
|
|
207
228
|
children: a,
|
|
208
229
|
position: o = "popper",
|
|
209
|
-
sideOffset:
|
|
210
|
-
container:
|
|
211
|
-
...
|
|
212
|
-
}, N) =>
|
|
213
|
-
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
sideOffset: r = 4,
|
|
231
|
+
container: l,
|
|
232
|
+
...d
|
|
233
|
+
}, N) => {
|
|
234
|
+
const I = pe(X);
|
|
235
|
+
return /* @__PURE__ */ e(n.Portal, { container: l ?? void 0, children: /* @__PURE__ */ e(Ue, { popupRef: N, open: I, children: (h) => /* @__PURE__ */ m(
|
|
236
|
+
n.Content,
|
|
237
|
+
{
|
|
238
|
+
ref: h,
|
|
239
|
+
position: o,
|
|
240
|
+
sideOffset: r,
|
|
241
|
+
"data-component": "select-content",
|
|
242
|
+
className: at({ className: t }),
|
|
243
|
+
...d,
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ e(n.ScrollUpButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ e(Ye, { "aria-hidden": "true", className: "ds:size-4" }) }),
|
|
246
|
+
a,
|
|
247
|
+
/* @__PURE__ */ e(n.ScrollDownButton, { className: "ds:flex ds:items-center ds:justify-center ds:h-6 ds:bg-background ds:cursor-default", children: /* @__PURE__ */ e(me, { "aria-hidden": "true", className: "ds:size-4" }) })
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
) }) });
|
|
251
|
+
}
|
|
228
252
|
);
|
|
229
|
-
|
|
230
|
-
const
|
|
253
|
+
J.displayName = "Select.Content";
|
|
254
|
+
const Q = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
231
255
|
n.Viewport,
|
|
232
256
|
{
|
|
233
257
|
ref: o,
|
|
@@ -235,24 +259,24 @@ const J = m(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
|
235
259
|
...a
|
|
236
260
|
}
|
|
237
261
|
));
|
|
238
|
-
|
|
239
|
-
const
|
|
262
|
+
Q.displayName = "Select.Viewport";
|
|
263
|
+
const Y = f(
|
|
240
264
|
({
|
|
241
265
|
size: t = "md",
|
|
242
266
|
className: a,
|
|
243
267
|
children: o,
|
|
244
|
-
startAdornment:
|
|
245
|
-
endContent:
|
|
246
|
-
description:
|
|
268
|
+
startAdornment: r,
|
|
269
|
+
endContent: l,
|
|
270
|
+
description: d,
|
|
247
271
|
descriptionTone: N,
|
|
248
|
-
descriptionInName:
|
|
249
|
-
wrapLabel:
|
|
250
|
-
...
|
|
272
|
+
descriptionInName: I = !1,
|
|
273
|
+
wrapLabel: h = !1,
|
|
274
|
+
...C
|
|
251
275
|
}, b) => {
|
|
252
|
-
const
|
|
276
|
+
const z = it[t ?? "md"], P = rt[t ?? "md"], w = ce(), V = ce(), c = d != null && d !== "", T = c && I, j = T ? { id: V } : {}, D = T ? { "aria-labelledby": `${V} ${w}` } : {}, k = h ? ue({
|
|
253
277
|
wrap: !0,
|
|
254
|
-
className:
|
|
255
|
-
}) : "", y =
|
|
278
|
+
className: lt
|
|
279
|
+
}) : "", y = c ? "ds:group-data-[disabled]/select-item:opacity-50" : "", E = l ? (
|
|
256
280
|
// Radix points the item's `aria-labelledby` at `ItemText`, so
|
|
257
281
|
// anything rendered outside it is dropped from the accessible
|
|
258
282
|
// name — a price there would be visible but never announced.
|
|
@@ -276,87 +300,87 @@ const Q = m(
|
|
|
276
300
|
// our own span become the ItemText element, so `flex-1` lands.
|
|
277
301
|
//
|
|
278
302
|
// A wrapping label keeps the end content on its first line.
|
|
279
|
-
/* @__PURE__ */ e(n.ItemText, { asChild: !0, ...j, children: /* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ e(n.ItemText, { asChild: !0, ...j, children: /* @__PURE__ */ m(
|
|
280
304
|
"span",
|
|
281
305
|
{
|
|
282
|
-
className:
|
|
283
|
-
wrap:
|
|
306
|
+
className: Je({
|
|
307
|
+
wrap: h,
|
|
284
308
|
className: y
|
|
285
309
|
}),
|
|
286
310
|
children: [
|
|
287
|
-
/* @__PURE__ */ e("span", { className:
|
|
288
|
-
/* @__PURE__ */ e("span", { className:
|
|
311
|
+
/* @__PURE__ */ e("span", { className: k || ue(), children: o }),
|
|
312
|
+
/* @__PURE__ */ e("span", { className: Xe, children: l })
|
|
289
313
|
]
|
|
290
314
|
}
|
|
291
315
|
) })
|
|
292
|
-
) :
|
|
293
|
-
return /* @__PURE__ */
|
|
316
|
+
) : c || h ? /* @__PURE__ */ e(n.ItemText, { asChild: !0, ...j, children: /* @__PURE__ */ e("span", { className: [k, y].filter(Boolean).join(" "), children: o }) }) : /* @__PURE__ */ e(n.ItemText, { children: o });
|
|
317
|
+
return /* @__PURE__ */ m(
|
|
294
318
|
n.Item,
|
|
295
319
|
{
|
|
296
320
|
ref: b,
|
|
297
321
|
...D,
|
|
298
|
-
"aria-describedby":
|
|
299
|
-
className:
|
|
322
|
+
"aria-describedby": c && !T ? w : void 0,
|
|
323
|
+
className: ot({
|
|
300
324
|
size: t,
|
|
301
|
-
className:
|
|
325
|
+
className: c ? [
|
|
302
326
|
"ds:group/select-item ds:data-[disabled]:!opacity-100",
|
|
303
327
|
a
|
|
304
328
|
].filter(Boolean).join(" ") : a
|
|
305
329
|
}),
|
|
306
|
-
...
|
|
330
|
+
...C,
|
|
307
331
|
children: [
|
|
308
332
|
/* @__PURE__ */ e(
|
|
309
333
|
"span",
|
|
310
334
|
{
|
|
311
|
-
className: `ds:absolute ${
|
|
335
|
+
className: `ds:absolute ${z} ds:inline-flex ds:items-center ds:justify-center ${y}`,
|
|
312
336
|
"aria-hidden": "true",
|
|
313
|
-
children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
337
|
+
children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(Ze, { className: P }) })
|
|
314
338
|
}
|
|
315
339
|
),
|
|
316
|
-
|
|
340
|
+
r ? (
|
|
317
341
|
// Decorative by contract — accessible name comes from the item text.
|
|
318
342
|
/* @__PURE__ */ e(
|
|
319
343
|
"span",
|
|
320
344
|
{
|
|
321
345
|
"aria-hidden": "true",
|
|
322
346
|
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${y}`,
|
|
323
|
-
children:
|
|
347
|
+
children: r
|
|
324
348
|
}
|
|
325
349
|
)
|
|
326
350
|
) : null,
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
351
|
+
c || h ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:py-[var(--spacing-xs)]", children: [
|
|
352
|
+
E,
|
|
353
|
+
c ? /* @__PURE__ */ e(
|
|
330
354
|
"span",
|
|
331
355
|
{
|
|
332
356
|
id: w,
|
|
333
|
-
className:
|
|
357
|
+
className: Qe({
|
|
334
358
|
tone: N
|
|
335
359
|
}),
|
|
336
|
-
children:
|
|
360
|
+
children: d
|
|
337
361
|
}
|
|
338
362
|
) : null
|
|
339
|
-
] }) :
|
|
363
|
+
] }) : E
|
|
340
364
|
]
|
|
341
365
|
}
|
|
342
366
|
);
|
|
343
367
|
}
|
|
344
368
|
);
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
const
|
|
349
|
-
|
|
350
|
-
const
|
|
369
|
+
Y.displayName = "Select.Item";
|
|
370
|
+
const be = f((t, a) => /* @__PURE__ */ e(n.ItemText, { ref: a, ...t }));
|
|
371
|
+
be.displayName = "Select.ItemText";
|
|
372
|
+
const ye = f((t, a) => /* @__PURE__ */ e(n.Group, { ref: a, ...t }));
|
|
373
|
+
ye.displayName = "Select.Group";
|
|
374
|
+
const Z = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
351
375
|
n.Label,
|
|
352
376
|
{
|
|
353
377
|
ref: o,
|
|
354
|
-
className: [
|
|
378
|
+
className: [nt, t].filter(Boolean).join(" "),
|
|
355
379
|
...a
|
|
356
380
|
}
|
|
357
381
|
));
|
|
358
|
-
|
|
359
|
-
const
|
|
382
|
+
Z.displayName = "Select.Label";
|
|
383
|
+
const xe = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
360
384
|
n.Separator,
|
|
361
385
|
{
|
|
362
386
|
ref: o,
|
|
@@ -364,8 +388,8 @@ const ve = m(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
|
364
388
|
...a
|
|
365
389
|
}
|
|
366
390
|
));
|
|
367
|
-
|
|
368
|
-
const
|
|
391
|
+
xe.displayName = "Select.Separator";
|
|
392
|
+
const ct = "ds-select-detached", ut = /* @__PURE__ */ new Set([
|
|
369
393
|
"data-component",
|
|
370
394
|
"data-component-id",
|
|
371
395
|
"data-state",
|
|
@@ -374,114 +398,115 @@ const nt = "ds-select-detached", it = /* @__PURE__ */ new Set([
|
|
|
374
398
|
"aria-expanded",
|
|
375
399
|
"aria-controls"
|
|
376
400
|
]);
|
|
377
|
-
function
|
|
401
|
+
function pt(t) {
|
|
378
402
|
const a = {};
|
|
379
|
-
for (const [o,
|
|
380
|
-
|
|
403
|
+
for (const [o, r] of Object.entries(t))
|
|
404
|
+
r === void 0 || ut.has(o) || (o.startsWith("data-") || o.startsWith("aria-")) && (a[o] = r);
|
|
381
405
|
return a;
|
|
382
406
|
}
|
|
383
|
-
const
|
|
407
|
+
const Se = f(function({
|
|
384
408
|
options: a,
|
|
385
409
|
value: o,
|
|
386
|
-
defaultValue:
|
|
387
|
-
onValueChange:
|
|
388
|
-
placeholder:
|
|
410
|
+
defaultValue: r,
|
|
411
|
+
onValueChange: l,
|
|
412
|
+
placeholder: d,
|
|
389
413
|
clearable: N = !1,
|
|
390
|
-
disabled:
|
|
391
|
-
required:
|
|
392
|
-
name:
|
|
414
|
+
disabled: I,
|
|
415
|
+
required: h,
|
|
416
|
+
name: C,
|
|
393
417
|
id: b,
|
|
394
|
-
size:
|
|
395
|
-
tone:
|
|
418
|
+
size: z = "md",
|
|
419
|
+
tone: P = "default",
|
|
396
420
|
className: w,
|
|
397
|
-
container:
|
|
398
|
-
"aria-label":
|
|
399
|
-
"aria-describedby":
|
|
421
|
+
container: V,
|
|
422
|
+
"aria-label": c,
|
|
423
|
+
"aria-describedby": T,
|
|
400
424
|
adornmentInTrigger: j = !1,
|
|
401
425
|
showDescriptions: D = !1,
|
|
402
|
-
descriptionInName:
|
|
426
|
+
descriptionInName: k = !1,
|
|
403
427
|
wrapOptionLabels: y = !1,
|
|
404
|
-
...
|
|
405
|
-
},
|
|
406
|
-
var
|
|
407
|
-
const { t: A } =
|
|
408
|
-
o ??
|
|
409
|
-
), S = o !== void 0,
|
|
410
|
-
|
|
411
|
-
const
|
|
412
|
-
|
|
428
|
+
...E
|
|
429
|
+
}, Ne) {
|
|
430
|
+
var de;
|
|
431
|
+
const { t: A } = Le("ui"), x = Ge(), v = pe(Ke) !== null, [Ie, O] = H(
|
|
432
|
+
o ?? r ?? ""
|
|
433
|
+
), S = o !== void 0, u = S ? o : Ie, [B, F] = H(!1), ee = _(u);
|
|
434
|
+
ee.current = u;
|
|
435
|
+
const Ce = We(x, b), we = b ?? (v ? Ce : void 0), L = (v ? x.disabled : !1) || !!I, G = (v ? x.required : !1) || !!h, te = v ? x.invalid : !1, Te = te ? "error" : P, Re = [v ? x.describedBy : void 0, T].filter(Boolean).join(" ") || void 0, se = j ? (de = a.find((s) => s.value === u)) == null ? void 0 : de.startAdornment : void 0, R = _(null), ze = dt(Ne, R), Ve = et(R), [je, ke] = H(!0);
|
|
436
|
+
qe(() => {
|
|
413
437
|
var s;
|
|
414
|
-
|
|
438
|
+
u === "" && ke(!!((s = R.current) != null && s.closest("form")));
|
|
415
439
|
});
|
|
416
|
-
const K =
|
|
417
|
-
|
|
440
|
+
const K = u === "" && je, ae = _(null), W = _(u !== "");
|
|
441
|
+
Pe(() => {
|
|
418
442
|
var s;
|
|
419
|
-
if (
|
|
443
|
+
if (u !== "") {
|
|
420
444
|
W.current = !0;
|
|
421
445
|
return;
|
|
422
446
|
}
|
|
423
|
-
W.current && (W.current = !1, (s =
|
|
424
|
-
}, [
|
|
425
|
-
const i =
|
|
426
|
-
S ||
|
|
427
|
-
},
|
|
428
|
-
var
|
|
429
|
-
s.preventDefault(), s.stopPropagation(), S ||
|
|
430
|
-
}, $ =
|
|
447
|
+
W.current && (W.current = !1, (s = ae.current) == null || s.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
448
|
+
}, [u]);
|
|
449
|
+
const i = l, oe = (s) => {
|
|
450
|
+
S || O(s), i == null || i(s);
|
|
451
|
+
}, Ee = (s) => {
|
|
452
|
+
var p;
|
|
453
|
+
s.preventDefault(), s.stopPropagation(), S || O(""), i == null || i(""), (p = R.current) == null || p.focus();
|
|
454
|
+
}, $ = d ?? A("inputs.select.placeholder", "Select…"), Oe = N && !!u && !L, ne = c === void 0 && !v, re = ne ? $ : c, ie = !c && v ? `${x.id}-label` : void 0, Be = $e(a), _e = De(
|
|
431
455
|
() => ({
|
|
432
|
-
getValue: () =>
|
|
456
|
+
getValue: () => ee.current,
|
|
433
457
|
setValue: (s) => {
|
|
434
|
-
const
|
|
435
|
-
!
|
|
458
|
+
const p = a.find((q) => q.value === s);
|
|
459
|
+
!p || p.disabled || (S || O(s), i == null || i(s));
|
|
436
460
|
},
|
|
437
461
|
clear: () => {
|
|
438
|
-
S ||
|
|
462
|
+
S || O(""), i == null || i("");
|
|
439
463
|
},
|
|
440
464
|
open: () => F(!0),
|
|
441
465
|
close: () => F(!1),
|
|
442
|
-
isOpen: () =>
|
|
466
|
+
isOpen: () => B
|
|
443
467
|
}),
|
|
444
|
-
[i, S,
|
|
468
|
+
[i, S, B, a]
|
|
445
469
|
);
|
|
446
|
-
return
|
|
470
|
+
return Fe(st, _e, b), /* @__PURE__ */ m(
|
|
447
471
|
n.Root,
|
|
448
472
|
{
|
|
449
|
-
value:
|
|
450
|
-
onValueChange:
|
|
451
|
-
open:
|
|
473
|
+
value: u,
|
|
474
|
+
onValueChange: oe,
|
|
475
|
+
open: B,
|
|
452
476
|
onOpenChange: F,
|
|
453
|
-
disabled:
|
|
454
|
-
required:
|
|
455
|
-
name: K ? void 0 :
|
|
456
|
-
form: K ?
|
|
457
|
-
dir:
|
|
477
|
+
disabled: L,
|
|
478
|
+
required: G,
|
|
479
|
+
name: K ? void 0 : C,
|
|
480
|
+
form: K ? ct : void 0,
|
|
481
|
+
dir: Ve,
|
|
458
482
|
children: [
|
|
459
|
-
/* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ m(
|
|
460
484
|
n.Trigger,
|
|
461
485
|
{
|
|
462
|
-
ref:
|
|
463
|
-
id:
|
|
464
|
-
"aria-label":
|
|
465
|
-
"aria-labelledby":
|
|
466
|
-
"
|
|
467
|
-
"aria-
|
|
468
|
-
|
|
486
|
+
ref: ze,
|
|
487
|
+
id: we,
|
|
488
|
+
"aria-label": re,
|
|
489
|
+
"aria-labelledby": ie,
|
|
490
|
+
"data-name-from-placeholder": ne || void 0,
|
|
491
|
+
"aria-describedby": Re,
|
|
492
|
+
"aria-invalid": te || void 0,
|
|
493
|
+
...pt(E),
|
|
469
494
|
"data-component": "select",
|
|
470
495
|
"data-component-id": b,
|
|
471
|
-
className:
|
|
472
|
-
size:
|
|
473
|
-
tone:
|
|
496
|
+
className: fe({
|
|
497
|
+
size: z,
|
|
498
|
+
tone: Te,
|
|
474
499
|
className: w
|
|
475
500
|
}),
|
|
476
501
|
children: [
|
|
477
|
-
|
|
502
|
+
se ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
478
503
|
/* @__PURE__ */ e(
|
|
479
504
|
"span",
|
|
480
505
|
{
|
|
481
506
|
"aria-hidden": "true",
|
|
482
507
|
"data-select-trigger-adornment": "",
|
|
483
508
|
className: "ds:inline-flex ds:shrink-0 ds:items-center",
|
|
484
|
-
children:
|
|
509
|
+
children: se
|
|
485
510
|
}
|
|
486
511
|
),
|
|
487
512
|
/* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ e(
|
|
@@ -498,13 +523,13 @@ const be = m(function({
|
|
|
498
523
|
placeholder: $
|
|
499
524
|
}
|
|
500
525
|
) }),
|
|
501
|
-
/* @__PURE__ */
|
|
502
|
-
|
|
526
|
+
/* @__PURE__ */ m("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
527
|
+
Oe ? /* @__PURE__ */ e(
|
|
503
528
|
"button",
|
|
504
529
|
{
|
|
505
530
|
type: "button",
|
|
506
531
|
"aria-label": A("inputs.select.clear", "Clear selection"),
|
|
507
|
-
onClick:
|
|
532
|
+
onClick: Ee,
|
|
508
533
|
onPointerDown: (s) => s.stopPropagation(),
|
|
509
534
|
onKeyDown: (s) => {
|
|
510
535
|
(s.key === "Enter" || s.key === " ") && s.stopPropagation();
|
|
@@ -517,11 +542,11 @@ const be = m(function({
|
|
|
517
542
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
518
543
|
"ds:size-4"
|
|
519
544
|
].join(" "),
|
|
520
|
-
children: /* @__PURE__ */ e(
|
|
545
|
+
children: /* @__PURE__ */ e(tt, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
521
546
|
}
|
|
522
547
|
) : null,
|
|
523
548
|
/* @__PURE__ */ e(n.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
524
|
-
|
|
549
|
+
me,
|
|
525
550
|
{
|
|
526
551
|
"aria-hidden": "true",
|
|
527
552
|
className: [
|
|
@@ -535,22 +560,22 @@ const be = m(function({
|
|
|
535
560
|
]
|
|
536
561
|
}
|
|
537
562
|
),
|
|
538
|
-
K && (
|
|
563
|
+
K && (C !== void 0 || G) ? /* @__PURE__ */ m(
|
|
539
564
|
"select",
|
|
540
565
|
{
|
|
541
|
-
ref:
|
|
566
|
+
ref: ae,
|
|
542
567
|
"data-component": "select-field",
|
|
543
568
|
"aria-hidden": !0,
|
|
544
569
|
tabIndex: -1,
|
|
545
|
-
"aria-label":
|
|
546
|
-
"aria-labelledby":
|
|
547
|
-
name:
|
|
548
|
-
required:
|
|
549
|
-
disabled:
|
|
570
|
+
"aria-label": re,
|
|
571
|
+
"aria-labelledby": ie,
|
|
572
|
+
name: C,
|
|
573
|
+
required: G,
|
|
574
|
+
disabled: L,
|
|
550
575
|
value: "",
|
|
551
576
|
onChange: (s) => {
|
|
552
|
-
var
|
|
553
|
-
s.target.value !== "" && (document.activeElement === s.target && ((
|
|
577
|
+
var p;
|
|
578
|
+
s.target.value !== "" && (document.activeElement === s.target && ((p = R.current) == null || p.focus()), oe(s.target.value));
|
|
554
579
|
},
|
|
555
580
|
className: "ds:sr-only",
|
|
556
581
|
children: [
|
|
@@ -567,58 +592,58 @@ const be = m(function({
|
|
|
567
592
|
]
|
|
568
593
|
}
|
|
569
594
|
) : null,
|
|
570
|
-
/* @__PURE__ */ e(X, {
|
|
571
|
-
const
|
|
572
|
-
|
|
595
|
+
/* @__PURE__ */ e(X.Provider, { value: B, children: /* @__PURE__ */ e(J, { container: V, children: /* @__PURE__ */ e(Q, { children: a.length === 0 ? /* @__PURE__ */ e("div", { className: "ds:ps-8 ds:pe-3 ds:py-2 type-body-sm ds:text-muted-foreground", children: A("inputs.select.noOptions", "No options") }) : Be.map(({ group: s, items: p }, q) => {
|
|
596
|
+
const le = p.map((g) => /* @__PURE__ */ e(
|
|
597
|
+
Y,
|
|
573
598
|
{
|
|
574
|
-
value:
|
|
575
|
-
disabled:
|
|
576
|
-
size:
|
|
577
|
-
"data-option-id":
|
|
578
|
-
startAdornment:
|
|
579
|
-
endContent:
|
|
580
|
-
description: D ?
|
|
581
|
-
descriptionTone:
|
|
582
|
-
descriptionInName:
|
|
599
|
+
value: g.value,
|
|
600
|
+
disabled: g.disabled,
|
|
601
|
+
size: z,
|
|
602
|
+
"data-option-id": g.value,
|
|
603
|
+
startAdornment: g.startAdornment,
|
|
604
|
+
endContent: g.endContent,
|
|
605
|
+
description: D ? g.description : void 0,
|
|
606
|
+
descriptionTone: g.descriptionTone,
|
|
607
|
+
descriptionInName: k,
|
|
583
608
|
wrapLabel: y,
|
|
584
|
-
children:
|
|
609
|
+
children: g.label
|
|
585
610
|
},
|
|
586
|
-
|
|
611
|
+
g.value
|
|
587
612
|
));
|
|
588
|
-
return s ? /* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */ e(
|
|
590
|
-
|
|
591
|
-
] }, `group-${s}`) : /* @__PURE__ */ e(n.Group, { children:
|
|
592
|
-
}) }) })
|
|
613
|
+
return s ? /* @__PURE__ */ m(n.Group, { children: [
|
|
614
|
+
/* @__PURE__ */ e(Z, { children: s }),
|
|
615
|
+
le
|
|
616
|
+
] }, `group-${s}`) : /* @__PURE__ */ e(n.Group, { children: le }, `group-${q}`);
|
|
617
|
+
}) }) }) })
|
|
593
618
|
]
|
|
594
619
|
}
|
|
595
620
|
);
|
|
596
621
|
});
|
|
597
|
-
|
|
598
|
-
const
|
|
599
|
-
Root:
|
|
600
|
-
Trigger:
|
|
601
|
-
Value:
|
|
602
|
-
Content:
|
|
603
|
-
Viewport:
|
|
604
|
-
Item:
|
|
605
|
-
ItemText:
|
|
606
|
-
Group:
|
|
607
|
-
Label:
|
|
608
|
-
Separator:
|
|
609
|
-
}),
|
|
622
|
+
Se.displayName = "Select";
|
|
623
|
+
const mt = Object.assign(Se, {
|
|
624
|
+
Root: ge,
|
|
625
|
+
Trigger: he,
|
|
626
|
+
Value: ve,
|
|
627
|
+
Content: J,
|
|
628
|
+
Viewport: Q,
|
|
629
|
+
Item: Y,
|
|
630
|
+
ItemText: be,
|
|
631
|
+
Group: ye,
|
|
632
|
+
Label: Z,
|
|
633
|
+
Separator: xe
|
|
634
|
+
}), kt = mt;
|
|
610
635
|
export {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
636
|
+
kt as S,
|
|
637
|
+
J as a,
|
|
638
|
+
ye as b,
|
|
639
|
+
Y as c,
|
|
640
|
+
be as d,
|
|
641
|
+
Z as e,
|
|
642
|
+
ge as f,
|
|
643
|
+
xe as g,
|
|
644
|
+
he as h,
|
|
645
|
+
ve as i,
|
|
646
|
+
Q as j,
|
|
647
|
+
fe as s
|
|
623
648
|
};
|
|
624
|
-
//# sourceMappingURL=select-
|
|
649
|
+
//# sourceMappingURL=select-k4gBdS8N.js.map
|