@alfadocs/ui-kit 1.67.0 → 1.69.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/{address-fields-CJtu7LQU.js → address-fields-BUPRs3n-.js} +3 -3
- package/dist/_chunks/{agenda-card-DR9gDdKp.js → agenda-card-BDuvreCe.js} +2 -2
- package/dist/_chunks/{agenda-tray-DGB1Zup-.js → agenda-tray-CfwylhWf.js} +3 -3
- package/dist/_chunks/{ai-credits-exhausted-notice-DfAgfZDF.js → ai-credits-exhausted-notice-Bg8NpW2K.js} +2 -2
- package/dist/_chunks/{ai-permission-notice-qsdm4Sx4.js → ai-permission-notice-C00i6VhY.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DSGSe4LH.js → ai-prompt-input-DzgyoKyk.js} +141 -139
- package/dist/_chunks/{alert-DjsJMGRE.js → alert-9kEwDza3.js} +122 -112
- package/dist/_chunks/{alia-sidebar-qe0quZkB.js → alia-sidebar-DEMMoefU.js} +4 -4
- package/dist/_chunks/{anamnesis-card-CsUBOG32.js → anamnesis-card-Bey9qQu4.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-card-CMzBLTiN.js → anamnesis-summary-card-DQ3iE1gD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-BQ_EokKz.js → anamnesis-summary-rows-rNwSrNWZ.js} +393 -389
- package/dist/_chunks/{appointment-card-CL32sux-.js → appointment-card-5JMWi9_f.js} +2 -2
- package/dist/_chunks/{appointment-peek-B5mcDcXt.js → appointment-peek-CpcqB8oO.js} +3 -3
- package/dist/_chunks/{appointment-timeline-CCqjORFb.js → appointment-timeline-VFP6HoXT.js} +4 -4
- package/dist/_chunks/{appointment-tray-qtpJt8e0.js → appointment-tray-B3PDER3I.js} +3 -3
- package/dist/_chunks/{audio-recorder-B11RR-rC.js → audio-recorder-4Ll0pwYK.js} +3 -3
- package/dist/_chunks/{auth-form-parts-DwUTH6YN.js → auth-form-parts-B40zvD-a.js} +2 -2
- package/dist/_chunks/avatar-BPiPL7ND.js +199 -0
- package/dist/_chunks/{balance-badge-cell-DZNthHO1.js → balance-badge-cell-BG3DMly4.js} +4 -4
- package/dist/_chunks/{bishop-score-CaNTrikJ.js → bishop-score-Df8nF1qg.js} +2 -2
- package/dist/_chunks/{booking-tTVxKPQY.js → booking-B1pDbERi.js} +377 -335
- package/dist/_chunks/{calendar-BhN-jisv.js → calendar-BvOM8rG3.js} +2 -2
- package/dist/_chunks/{calendar-workspace-MRrzcxAy.js → calendar-workspace-Ct8_454k.js} +18 -18
- package/dist/_chunks/{chat-message-fRLZ95O5.js → chat-message-C2VXQMoB.js} +3 -3
- package/dist/_chunks/{clinical-note-card-BnFTIs6x.js → clinical-note-card-Caidqcwa.js} +2 -2
- package/dist/_chunks/{code-block-vwEv1jEa.js → code-block-RSKdF3E-.js} +35 -35
- package/dist/_chunks/{color-picker-BsggJovx.js → color-picker-AcaWuKah.js} +99 -95
- package/dist/_chunks/{combobox-U5yfO6o0.js → combobox-vF9O-QoG.js} +92 -83
- package/dist/_chunks/{connection-status--wYsgreh.js → connection-status-BOZC5QU5.js} +2 -2
- package/dist/_chunks/{contact-profile-card-C4-OCshj.js → contact-profile-card-CAwwOqHl.js} +40 -40
- package/dist/_chunks/{control-room-rail-DUerqHeo.js → control-room-rail-BB6rCDWI.js} +3 -3
- package/dist/_chunks/{country-select-DF5Bd_mn.js → country-select-CSE2Zm_s.js} +2 -2
- package/dist/_chunks/dashboard-grid-7JzaiKnk.js +1487 -0
- package/dist/_chunks/{data-table-COoCQ4n_.js → data-table-Cty4-Jht.js} +3 -3
- package/dist/_chunks/{dependent-selector-DBr1AhLg.js → dependent-selector-C4kOgO8b.js} +2 -2
- package/dist/_chunks/{description-list-Q8640NHu.js → description-list-DQQ2OA_t.js} +68 -66
- package/dist/_chunks/{document-preview-VyQOjFVL.js → document-preview-513f3iPn.js} +4 -4
- package/dist/_chunks/{document-scanner-CXH_GYh4.js → document-scanner-Bd3wbzpI.js} +2 -2
- package/dist/_chunks/{editable-description-ChGNdYY8.js → editable-description-DnAFi360.js} +2 -2
- package/dist/_chunks/{entity-summary-Bj-Wxq7Y.js → entity-summary-C2B8yNmc.js} +4 -4
- package/dist/_chunks/{error-summary-PUE5Zxp9.js → error-summary-mGxIyDAY.js} +2 -2
- package/dist/_chunks/{face-scheme-DAD-mXzM.js → face-scheme-CSJdRNad.js} +248 -244
- package/dist/_chunks/{file-manager-RiV7-OEE.js → file-manager-D4cPnRhL.js} +3 -3
- package/dist/_chunks/{forgot-password-form-CPOfRE0C.js → forgot-password-form-Dqi7R-NL.js} +4 -4
- package/dist/_chunks/format-number-DdzqwMs1.js +13 -0
- package/dist/_chunks/{freemium-paywall-6DO7noHX.js → freemium-paywall-C73C8Rgd.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-CZYa2D6m.js → gestational-age-calculator-Du53p8MH.js} +2 -2
- package/dist/_chunks/{header-settings-BSH9Gk0J.js → header-settings-DlUbvAUx.js} +37 -36
- package/dist/_chunks/{heatmap-C1TeC7wT.js → heatmap-DbZIQg14.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-Bw3Q58x-.js → help-me-write-templates-5WkUfvc_.js} +3 -3
- package/dist/_chunks/{kit-extensions-DWs1UEXb.js → kit-extensions-CYvLL4ee.js} +3 -3
- package/dist/_chunks/length-token-DwMnGEYT.js +24 -0
- package/dist/_chunks/{link-cell-renderer-CtTsvfPY.js → link-cell-renderer-DtIsQWDO.js} +4 -4
- package/dist/_chunks/{login-dev-card-A-CL3mjt.js → login-dev-card-vEL-o5wq.js} +3 -3
- package/dist/_chunks/{map-view-BuVfJMEa.js → map-view-CtohteZD.js} +300 -191
- package/dist/_chunks/{marketplace-app-shell-DtSX8sYb.js → marketplace-app-shell-CcLQ0Dn-.js} +4 -4
- package/dist/_chunks/{message-card-A3mJNqfy.js → message-card-C_ksqIYM.js} +2 -2
- package/dist/_chunks/{message-tray-Ft6vSr71.js → message-tray-DCoQ4GQb.js} +3 -3
- package/dist/_chunks/{multi-select-CMaAQQgb.js → multi-select-BOad3za9.js} +110 -98
- package/dist/_chunks/{muscle-scheme-YoN3rYXV.js → muscle-scheme-C66WlCxG.js} +2 -2
- package/dist/_chunks/{note-timeline-DDqNU46n.js → note-timeline-KzL52MmB.js} +2 -2
- package/dist/_chunks/{notes-panel-IdsmqRFC.js → notes-panel-BXN46XkF.js} +6 -6
- package/dist/_chunks/notice-group-DkYzKyAZ.js +291 -0
- package/dist/_chunks/{notification-tray-BR3seWA7.js → notification-tray-Cp18MW5b.js} +2 -2
- package/dist/_chunks/{operator-hero-3_RG4Dkj.js → operator-hero-6aAIQaFZ.js} +83 -66
- package/dist/_chunks/{optical-prescription-CxfMsbxi.js → optical-prescription-D5c7FBlT.js} +526 -510
- package/dist/_chunks/panel-header-CbtlTe85.js +190 -0
- package/dist/_chunks/{panel-subview-yP4qIbKS.js → panel-subview-BPU7220K.js} +2 -2
- package/dist/_chunks/{patient-details-C-EWQTms.js → patient-details-qWOsn1MX.js} +5 -5
- package/dist/_chunks/{patient-field-row-lY-Tb5Mo.js → patient-field-row-CAl5ydtX.js} +5 -5
- package/dist/_chunks/{patient-search-DpAKidZ5.js → patient-search-BADdx3M1.js} +2 -2
- package/dist/_chunks/{patient-summary-card-Bpto_VCD.js → patient-summary-card-BhuRh9AE.js} +4 -4
- package/dist/_chunks/{payment-automation-upsell-BQ307qEX.js → payment-automation-upsell-CiwF5UrC.js} +2 -2
- package/dist/_chunks/{payment-form-XKtinW8r.js → payment-form-PBuh8PIa.js} +2 -2
- package/dist/_chunks/{payment-request-card-0DjQgVgX.js → payment-request-card-bysjRZrP.js} +2 -2
- package/dist/_chunks/{pdf-viewer-BvoVMjH4.js → pdf-viewer-gAsNUsA8.js} +2 -2
- package/dist/_chunks/{periodontal-risk-chart-CPy7CNFe.js → periodontal-risk-chart-B7S9OmPC.js} +97 -89
- package/dist/_chunks/practice-profile-hero-qfrsFQI_.js +236 -0
- package/dist/_chunks/{practice-results-BrUDDMXC.js → practice-results-BzThnpnm.js} +328 -298
- package/dist/_chunks/{pregnancy-dating-B8wo4l_r.js → pregnancy-dating-EFcFUJkQ.js} +2 -2
- package/dist/_chunks/{privacy-mask-Ch7743uk.js → privacy-mask-CCz9zuIh.js} +2 -2
- package/dist/_chunks/{product-hub-panel-C_ZosrBt.js → product-hub-panel-YuFbNPlT.js} +2 -2
- package/dist/_chunks/progress-notice-DiHWZ8Ms.js +279 -0
- package/dist/_chunks/{province-select-Bd20Z9Br.js → province-select-CDjs5obD.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-8Ewv8-d7.js → radiograph-panel.agent-4UllIoTQ.js} +2 -2
- package/dist/_chunks/{rating-C1Vrmpsi.js → rating-CGYpg5dj.js} +43 -44
- package/dist/_chunks/{registration-form-BxwqUZzk.js → registration-form-1B0PTDal.js} +4 -4
- package/dist/_chunks/{reviews-panel-AvsVgtJu.js → reviews-panel-sbsVmmCA.js} +30 -8
- package/dist/_chunks/{rich-text-editor-aCIoptbg.js → rich-text-editor-56dSsyZI.js} +3 -3
- package/dist/_chunks/{select-k4gBdS8N.js → select-4S-eYZUf.js} +244 -214
- package/dist/_chunks/{sign-document-D1P1nUQA.js → sign-document-BiOTs1P4.js} +2 -2
- package/dist/_chunks/{signature-request-3u6TvRt2.js → signature-request-DAmNj_uq.js} +5 -5
- package/dist/_chunks/skeleton-tTWJpvAq.js +415 -0
- package/dist/_chunks/{slot-grid-dj5f6R2w.js → slot-grid-D_gix9mJ.js} +2 -2
- package/dist/_chunks/{streaming-text-zFViGexf.js → streaming-text-DbqKTsmj.js} +2 -2
- package/dist/_chunks/{tabs-2x3L13jn.js → tabs-BTj-2qMZ.js} +2 -2
- package/dist/_chunks/{task-card-BS7Uqevr.js → task-card-Ci2XbLmq.js} +2 -2
- package/dist/_chunks/{task-editor-Bb5MMcid.js → task-editor-BomyxGoZ.js} +8 -8
- package/dist/_chunks/{task-tray-eQU4KJcA.js → task-tray-Dnc72nl-.js} +3 -3
- package/dist/_chunks/{tasks-panel-BOb57Ysw.js → tasks-panel-ATz9JDy8.js} +6 -6
- package/dist/_chunks/{theme-toggle-Ctb77x6O.js → theme-toggle-DT_Jn4DC.js} +147 -138
- package/dist/_chunks/{timeline-DEIuHrWz.js → timeline-wUuTDFY_.js} +2 -2
- package/dist/_chunks/{tool-rail-C-03rH2I.js → tool-rail-C-M3eVdY.js} +2 -2
- package/dist/_chunks/{transcript-panel-XudW5l6l.js → transcript-panel-CoHHpcFg.js} +2 -2
- package/dist/_chunks/{treatment-receipt-Cpm8tqQN.js → treatment-receipt-pFqWFyD_.js} +2 -2
- package/dist/_chunks/{unit-converter-BPZ0Ldkb.js → unit-converter-CIoTmCmP.js} +2 -2
- package/dist/_chunks/{use-appointment-details-read-CVSPoP5j.js → use-appointment-details-read-1gjZuup4.js} +13 -13
- package/dist/_chunks/use-dismissed-CTOWqA0e.js +177 -0
- package/dist/_chunks/{voice-control-panel-BJIEbDq6.js → voice-control-panel-B8Lrk0C4.js} +4 -4
- package/dist/_chunks/{warning-stack-BdY-0bd3.js → warning-stack-BhHUmRiD.js} +2 -2
- package/dist/_chunks/{workflow-map-CYbRD9ek.js → workflow-map-ln4_OG8A.js} +2 -2
- package/dist/_chunks/workflow-webhook-action-Ct8tFYi7.js +691 -0
- package/dist/agent-catalog.json +271 -4
- package/dist/agent-i18n/en.json +34 -1
- package/dist/components/_shared/code-block.d.ts +6 -0
- package/dist/components/_shared/format-number.d.ts +20 -0
- package/dist/components/_shared/length-token.d.ts +12 -0
- package/dist/components/_shared/option.d.ts +1 -0
- package/dist/components/address-fields/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-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/alert/alert.d.ts +26 -0
- package/dist/components/alert/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/avatar/avatar.d.ts +2 -0
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calendar/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/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/connection-status/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/country-select/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +20 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/description-list/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/editable-description/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-summary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/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/header-settings/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +5 -2
- package/dist/components/map-view/index.d.ts +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.d.ts +51 -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/muscle-scheme/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notice-group/index.d.ts +3 -0
- package/dist/components/notice-group/index.js +6 -0
- package/dist/components/notice-group/notice-group.agent.d.ts +4 -0
- package/dist/components/notice-group/notice-group.d.ts +43 -0
- 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/optical-prescription/optical-prescription-data.d.ts +8 -8
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +10 -0
- 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/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-profile-hero/practice-profile-hero.d.ts +4 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/practice-results/practice-results.d.ts +10 -2
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress-notice/index.d.ts +3 -0
- package/dist/components/progress-notice/index.js +6 -0
- package/dist/components/progress-notice/progress-notice.agent.d.ts +4 -0
- package/dist/components/progress-notice/progress-notice.d.ts +81 -0
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/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/select/index.js +1 -1
- package/dist/components/select/select.d.ts +6 -0
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/skeleton/index.d.ts +1 -1
- package/dist/components/skeleton/index.js +1 -1
- package/dist/components/skeleton/skeleton.d.ts +41 -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/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/tool-rail/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/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/workflow/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +81 -76
- package/dist/hooks/use-dismissed.d.ts +58 -0
- package/dist/i18n/locales/ar.d.ts +77 -0
- package/dist/i18n/locales/ar.js +77 -0
- package/dist/i18n/locales/de.d.ts +77 -0
- package/dist/i18n/locales/de.js +77 -0
- package/dist/i18n/locales/el.d.ts +77 -0
- package/dist/i18n/locales/el.js +77 -0
- package/dist/i18n/locales/en.d.ts +77 -0
- package/dist/i18n/locales/en.js +77 -0
- package/dist/i18n/locales/es.d.ts +77 -0
- package/dist/i18n/locales/es.js +77 -0
- package/dist/i18n/locales/fr.d.ts +77 -0
- package/dist/i18n/locales/fr.js +77 -0
- package/dist/i18n/locales/hi.d.ts +77 -0
- package/dist/i18n/locales/hi.js +77 -0
- package/dist/i18n/locales/it.d.ts +77 -0
- package/dist/i18n/locales/it.js +77 -0
- package/dist/i18n/locales/ja.d.ts +77 -0
- package/dist/i18n/locales/ja.js +77 -0
- package/dist/i18n/locales/nl.d.ts +77 -0
- package/dist/i18n/locales/nl.js +77 -0
- package/dist/i18n/locales/pl.d.ts +77 -0
- package/dist/i18n/locales/pl.js +77 -0
- package/dist/i18n/locales/pt.d.ts +77 -0
- package/dist/i18n/locales/pt.js +77 -0
- package/dist/i18n/locales/ro.d.ts +77 -0
- package/dist/i18n/locales/ro.js +77 -0
- package/dist/i18n/locales/ru.d.ts +77 -0
- package/dist/i18n/locales/ru.js +77 -0
- package/dist/i18n/locales/sq.d.ts +77 -0
- package/dist/i18n/locales/sq.js +77 -0
- package/dist/i18n/locales/sv.d.ts +77 -0
- package/dist/i18n/locales/sv.js +77 -0
- package/dist/i18n/locales/tr.d.ts +77 -0
- package/dist/i18n/locales/tr.js +77 -0
- package/dist/i18n/locales/zh.d.ts +77 -0
- package/dist/i18n/locales/zh.js +77 -0
- package/dist/index.js +1197 -1183
- package/dist/locales/ar.json +77 -0
- package/dist/locales/de.json +77 -0
- package/dist/locales/el.json +77 -0
- package/dist/locales/en.json +77 -0
- package/dist/locales/es.json +77 -0
- package/dist/locales/fr.json +77 -0
- package/dist/locales/hi.json +77 -0
- package/dist/locales/it.json +77 -0
- package/dist/locales/ja.json +77 -0
- package/dist/locales/nl.json +77 -0
- package/dist/locales/pl.json +77 -0
- package/dist/locales/pt.json +77 -0
- package/dist/locales/ro.json +77 -0
- package/dist/locales/ru.json +77 -0
- package/dist/locales/sq.json +77 -0
- package/dist/locales/sv.json +77 -0
- package/dist/locales/tr.json +77 -0
- package/dist/locales/zh.json +77 -0
- 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/forgot-password-form/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +2 -2
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- 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/workflow-webhook-action/index.d.ts +3 -0
- package/dist/patterns/workflow-webhook-action/index.js +6 -0
- package/dist/patterns/workflow-webhook-action/workflow-webhook-action.d.ts +93 -0
- package/dist/tokens.css +1 -1
- package/package.json +13 -1
- package/dist/_chunks/avatar-WZY3eGE7.js +0 -123
- package/dist/_chunks/dashboard-grid-B2MB7SRS.js +0 -1428
- package/dist/_chunks/panel-header-BJkaUwnl.js +0 -128
- package/dist/_chunks/practice-profile-hero-Dfc0F60y.js +0 -193
- package/dist/_chunks/skeleton-B1KTdJ4N.js +0 -116
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as f, useContext as
|
|
3
|
-
import { u as
|
|
2
|
+
import { forwardRef as f, useContext as fe, useId as pe, useState as M, useRef as _, useEffect as Ae, useMemo as De, createContext as Fe } from "react";
|
|
3
|
+
import { u as Le } from "./registry-DvAUVLHh.js";
|
|
4
4
|
import * as n from "@radix-ui/react-select";
|
|
5
|
-
import { c as
|
|
6
|
-
import { useTranslation as
|
|
7
|
-
import { u as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { b as
|
|
12
|
-
import { P as
|
|
13
|
-
import { o as
|
|
14
|
-
import { C as
|
|
15
|
-
import { C as
|
|
16
|
-
import { C as
|
|
17
|
-
import { u as
|
|
18
|
-
import { X as
|
|
19
|
-
const
|
|
5
|
+
import { c as J } from "./index-D2ZczOXr.js";
|
|
6
|
+
import { useTranslation as Ge } from "react-i18next";
|
|
7
|
+
import { u as Ke, F as We, a as $e } from "./form-field-context-DtiROUJV.js";
|
|
8
|
+
import { g as qe } from "./group-options-BvKhQ3xb.js";
|
|
9
|
+
import { u as He } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
10
|
+
import { u as Me } from "./use-controllable-state-BiY4xTzM.js";
|
|
11
|
+
import { b as Ue } from "./menu-row-BAr8bx1I.js";
|
|
12
|
+
import { P as Xe } from "./popup-region-qz_5_A0V.js";
|
|
13
|
+
import { o as U, b as Je, d as Qe, c as Ye } from "./option-row-Dc7BrbK8.js";
|
|
14
|
+
import { C as Ze } from "./chevron-up-umRGgtJA.js";
|
|
15
|
+
import { C as ge } from "./chevron-down-DWE7GSq9.js";
|
|
16
|
+
import { C as et } from "./check-DrFSN__t.js";
|
|
17
|
+
import { u as tt } from "./use-direction-Dp8h70PP.js";
|
|
18
|
+
import { X as st } from "./x-B5YnXwCz.js";
|
|
19
|
+
const at = {
|
|
20
20
|
id: "select",
|
|
21
21
|
// Persisted single choice (value state + set_value) → select_single + set_value,
|
|
22
22
|
// plus open/close of the option list.
|
|
@@ -100,7 +100,7 @@ const st = {
|
|
|
100
100
|
description: "Stable opaque option value emitted on each rendered option."
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, he = J(
|
|
104
104
|
[
|
|
105
105
|
"ds:group ds:inline-flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:w-full",
|
|
106
106
|
"ds:rounded-[var(--radius-sm)] ds:border ds:border-[color:var(--control-border)] ds:bg-input",
|
|
@@ -130,7 +130,7 @@ const st = {
|
|
|
130
130
|
tone: "default"
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
),
|
|
133
|
+
), ot = J(
|
|
134
134
|
[
|
|
135
135
|
"ds:z-[var(--z-dropdown)] ds:overflow-hidden",
|
|
136
136
|
// Never wider than the screen allows: a long option wraps or ends in an
|
|
@@ -145,12 +145,12 @@ const st = {
|
|
|
145
145
|
"ds:data-[side=top]:slide-in-from-bottom-2",
|
|
146
146
|
"ds:motion-reduce:animate-none"
|
|
147
147
|
].join(" ")
|
|
148
|
-
),
|
|
148
|
+
), nt = J(
|
|
149
149
|
[
|
|
150
150
|
"ds:relative ds:flex ds:cursor-pointer ds:items-center",
|
|
151
151
|
"ds:rounded-[var(--radius-sm)]",
|
|
152
152
|
"ds:text-foreground ds:outline-none ds:select-none",
|
|
153
|
-
|
|
153
|
+
Ue.highlighted,
|
|
154
154
|
"ds:data-[disabled]:pointer-events-none ds:data-[disabled]:opacity-50"
|
|
155
155
|
].join(" "),
|
|
156
156
|
{
|
|
@@ -165,11 +165,11 @@ const st = {
|
|
|
165
165
|
size: "md"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
),
|
|
168
|
+
), rt = [
|
|
169
169
|
"ds:ps-8 ds:pe-3 ds:py-1.5",
|
|
170
170
|
"type-eyebrow ds:text-muted-foreground",
|
|
171
171
|
"ds:sticky ds:top-0 ds:bg-background"
|
|
172
|
-
].join(" "),
|
|
172
|
+
].join(" "), dt = {
|
|
173
173
|
sm: "ds:size-3.5",
|
|
174
174
|
md: "ds:size-4",
|
|
175
175
|
lg: "ds:size-5"
|
|
@@ -178,80 +178,80 @@ const st = {
|
|
|
178
178
|
md: "ds:start-2",
|
|
179
179
|
lg: "ds:start-3"
|
|
180
180
|
};
|
|
181
|
-
function
|
|
181
|
+
function lt(...t) {
|
|
182
182
|
return (a) => {
|
|
183
183
|
for (const o of t)
|
|
184
184
|
o && (typeof o == "function" ? o(a) : o.current = a);
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
|
-
const
|
|
187
|
+
const Q = Fe(void 0), ve = ({
|
|
188
188
|
open: t,
|
|
189
189
|
defaultOpen: a,
|
|
190
190
|
onOpenChange: o,
|
|
191
191
|
...r
|
|
192
192
|
}) => {
|
|
193
|
-
const [l,
|
|
193
|
+
const [l, i] = Me({
|
|
194
194
|
value: t,
|
|
195
195
|
defaultValue: a ?? !1,
|
|
196
196
|
onChange: o
|
|
197
197
|
});
|
|
198
|
-
return /* @__PURE__ */ e(
|
|
198
|
+
return /* @__PURE__ */ e(Q.Provider, { value: l ?? !1, children: /* @__PURE__ */ e(
|
|
199
199
|
n.Root,
|
|
200
200
|
{
|
|
201
201
|
open: l ?? !1,
|
|
202
|
-
onOpenChange:
|
|
202
|
+
onOpenChange: i,
|
|
203
203
|
...r
|
|
204
204
|
}
|
|
205
205
|
) });
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
const
|
|
209
|
-
({ size: t, tone: a, className: o, children: r, ...l },
|
|
207
|
+
ve.displayName = "Select.Root";
|
|
208
|
+
const be = f(
|
|
209
|
+
({ size: t, tone: a, className: o, children: r, ...l }, i) => /* @__PURE__ */ e(
|
|
210
210
|
n.Trigger,
|
|
211
211
|
{
|
|
212
|
-
ref:
|
|
213
|
-
className:
|
|
212
|
+
ref: i,
|
|
213
|
+
className: he({ size: t, tone: a, className: o }),
|
|
214
214
|
...l,
|
|
215
215
|
children: r
|
|
216
216
|
}
|
|
217
217
|
)
|
|
218
218
|
);
|
|
219
|
-
|
|
220
|
-
const
|
|
219
|
+
be.displayName = "Select.Trigger";
|
|
220
|
+
const X = { "data-select-value": "" }, me = [
|
|
221
221
|
"ds:[[data-select-value]_&]:block",
|
|
222
222
|
"ds:[[data-select-value]_&]:truncate"
|
|
223
|
-
].join(" "),
|
|
224
|
-
|
|
225
|
-
const
|
|
223
|
+
].join(" "), ye = f((t, a) => /* @__PURE__ */ e(n.Value, { ref: a, ...X, ...t }));
|
|
224
|
+
ye.displayName = "Select.Value";
|
|
225
|
+
const Y = f(
|
|
226
226
|
({
|
|
227
227
|
className: t,
|
|
228
228
|
children: a,
|
|
229
229
|
position: o = "popper",
|
|
230
230
|
sideOffset: r = 4,
|
|
231
231
|
container: l,
|
|
232
|
-
...
|
|
233
|
-
},
|
|
234
|
-
const
|
|
235
|
-
return /* @__PURE__ */ e(n.Portal, { container: l ?? void 0, children: /* @__PURE__ */ e(
|
|
232
|
+
...i
|
|
233
|
+
}, C) => {
|
|
234
|
+
const w = fe(Q);
|
|
235
|
+
return /* @__PURE__ */ e(n.Portal, { container: l ?? void 0, children: /* @__PURE__ */ e(Xe, { popupRef: C, open: w, children: (h) => /* @__PURE__ */ m(
|
|
236
236
|
n.Content,
|
|
237
237
|
{
|
|
238
238
|
ref: h,
|
|
239
239
|
position: o,
|
|
240
240
|
sideOffset: r,
|
|
241
241
|
"data-component": "select-content",
|
|
242
|
-
className:
|
|
243
|
-
...
|
|
242
|
+
className: ot({ className: t }),
|
|
243
|
+
...i,
|
|
244
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(
|
|
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(Ze, { "aria-hidden": "true", className: "ds:size-4" }) }),
|
|
246
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(
|
|
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(ge, { "aria-hidden": "true", className: "ds:size-4" }) })
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
) }) });
|
|
251
251
|
}
|
|
252
252
|
);
|
|
253
|
-
|
|
254
|
-
const
|
|
253
|
+
Y.displayName = "Select.Content";
|
|
254
|
+
const Z = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
255
255
|
n.Viewport,
|
|
256
256
|
{
|
|
257
257
|
ref: o,
|
|
@@ -259,24 +259,25 @@ const Q = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
|
259
259
|
...a
|
|
260
260
|
}
|
|
261
261
|
));
|
|
262
|
-
|
|
263
|
-
const
|
|
262
|
+
Z.displayName = "Select.Viewport";
|
|
263
|
+
const ee = f(
|
|
264
264
|
({
|
|
265
265
|
size: t = "md",
|
|
266
266
|
className: a,
|
|
267
267
|
children: o,
|
|
268
268
|
startAdornment: r,
|
|
269
269
|
endContent: l,
|
|
270
|
-
description:
|
|
271
|
-
descriptionTone:
|
|
272
|
-
descriptionInName:
|
|
270
|
+
description: i,
|
|
271
|
+
descriptionTone: C,
|
|
272
|
+
descriptionInName: w = !1,
|
|
273
273
|
wrapLabel: h = !1,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
labelDir: v,
|
|
275
|
+
...y
|
|
276
|
+
}, V) => {
|
|
277
|
+
const P = it[t ?? "md"], A = dt[t ?? "md"], T = pe(), x = pe(), g = i != null && i !== "", R = g && w, j = R ? { id: x } : {}, D = R ? { "aria-labelledby": `${x} ${T}` } : {}, k = h ? U({
|
|
277
278
|
wrap: !0,
|
|
278
|
-
className:
|
|
279
|
-
}) : "",
|
|
279
|
+
className: me
|
|
280
|
+
}) : "", S = g ? "ds:group-data-[disabled]/select-item:opacity-50" : "", E = l ? (
|
|
280
281
|
// Radix points the item's `aria-labelledby` at `ItemText`, so
|
|
281
282
|
// anything rendered outside it is dropped from the accessible
|
|
282
283
|
// name — a price there would be visible but never announced.
|
|
@@ -303,38 +304,65 @@ const Y = f(
|
|
|
303
304
|
/* @__PURE__ */ e(n.ItemText, { asChild: !0, ...j, children: /* @__PURE__ */ m(
|
|
304
305
|
"span",
|
|
305
306
|
{
|
|
306
|
-
className:
|
|
307
|
+
className: Qe({
|
|
307
308
|
wrap: h,
|
|
308
|
-
className:
|
|
309
|
+
className: S
|
|
309
310
|
}),
|
|
310
311
|
children: [
|
|
311
|
-
/* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
/* @__PURE__ */ e(
|
|
313
|
+
"span",
|
|
314
|
+
{
|
|
315
|
+
dir: v,
|
|
316
|
+
className: k || U(),
|
|
317
|
+
children: o
|
|
318
|
+
}
|
|
319
|
+
),
|
|
320
|
+
/* @__PURE__ */ e("span", { className: Je, children: l })
|
|
313
321
|
]
|
|
314
322
|
}
|
|
315
323
|
) })
|
|
316
|
-
) :
|
|
324
|
+
) : g || h ? /* @__PURE__ */ e(n.ItemText, { asChild: !0, ...j, children: /* @__PURE__ */ e(
|
|
325
|
+
"span",
|
|
326
|
+
{
|
|
327
|
+
dir: v,
|
|
328
|
+
className: [k, S].filter(Boolean).join(" "),
|
|
329
|
+
children: o
|
|
330
|
+
}
|
|
331
|
+
) }) : v ? (
|
|
332
|
+
// Our own element, so the direction sits on the box that clips, in
|
|
333
|
+
// the list and in the trigger (Radix mirrors this span there).
|
|
334
|
+
/* @__PURE__ */ e(n.ItemText, { asChild: !0, children: /* @__PURE__ */ e(
|
|
335
|
+
"span",
|
|
336
|
+
{
|
|
337
|
+
dir: v,
|
|
338
|
+
className: U({
|
|
339
|
+
className: me
|
|
340
|
+
}),
|
|
341
|
+
children: o
|
|
342
|
+
}
|
|
343
|
+
) })
|
|
344
|
+
) : /* @__PURE__ */ e(n.ItemText, { children: o });
|
|
317
345
|
return /* @__PURE__ */ m(
|
|
318
346
|
n.Item,
|
|
319
347
|
{
|
|
320
|
-
ref:
|
|
348
|
+
ref: V,
|
|
321
349
|
...D,
|
|
322
|
-
"aria-describedby":
|
|
323
|
-
className:
|
|
350
|
+
"aria-describedby": g && !R ? T : void 0,
|
|
351
|
+
className: nt({
|
|
324
352
|
size: t,
|
|
325
|
-
className:
|
|
353
|
+
className: g ? [
|
|
326
354
|
"ds:group/select-item ds:data-[disabled]:!opacity-100",
|
|
327
355
|
a
|
|
328
356
|
].filter(Boolean).join(" ") : a
|
|
329
357
|
}),
|
|
330
|
-
...
|
|
358
|
+
...y,
|
|
331
359
|
children: [
|
|
332
360
|
/* @__PURE__ */ e(
|
|
333
361
|
"span",
|
|
334
362
|
{
|
|
335
|
-
className: `ds:absolute ${
|
|
363
|
+
className: `ds:absolute ${P} ds:inline-flex ds:items-center ds:justify-center ${S}`,
|
|
336
364
|
"aria-hidden": "true",
|
|
337
|
-
children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
365
|
+
children: /* @__PURE__ */ e(n.ItemIndicator, { children: /* @__PURE__ */ e(et, { className: A }) })
|
|
338
366
|
}
|
|
339
367
|
),
|
|
340
368
|
r ? (
|
|
@@ -343,21 +371,21 @@ const Y = f(
|
|
|
343
371
|
"span",
|
|
344
372
|
{
|
|
345
373
|
"aria-hidden": "true",
|
|
346
|
-
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${
|
|
374
|
+
className: `ds:inline-flex ds:items-center ds:shrink-0 ds:me-[var(--spacing-xs)] ${S}`,
|
|
347
375
|
children: r
|
|
348
376
|
}
|
|
349
377
|
)
|
|
350
378
|
) : null,
|
|
351
|
-
|
|
379
|
+
g || h ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:py-[var(--spacing-xs)]", children: [
|
|
352
380
|
E,
|
|
353
|
-
|
|
381
|
+
g ? /* @__PURE__ */ e(
|
|
354
382
|
"span",
|
|
355
383
|
{
|
|
356
|
-
id:
|
|
357
|
-
className:
|
|
358
|
-
tone:
|
|
384
|
+
id: T,
|
|
385
|
+
className: Ye({
|
|
386
|
+
tone: C
|
|
359
387
|
}),
|
|
360
|
-
children:
|
|
388
|
+
children: i
|
|
361
389
|
}
|
|
362
390
|
) : null
|
|
363
391
|
] }) : E
|
|
@@ -366,21 +394,21 @@ const Y = f(
|
|
|
366
394
|
);
|
|
367
395
|
}
|
|
368
396
|
);
|
|
369
|
-
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
const
|
|
373
|
-
|
|
374
|
-
const
|
|
397
|
+
ee.displayName = "Select.Item";
|
|
398
|
+
const xe = f((t, a) => /* @__PURE__ */ e(n.ItemText, { ref: a, ...t }));
|
|
399
|
+
xe.displayName = "Select.ItemText";
|
|
400
|
+
const Se = f((t, a) => /* @__PURE__ */ e(n.Group, { ref: a, ...t }));
|
|
401
|
+
Se.displayName = "Select.Group";
|
|
402
|
+
const te = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
375
403
|
n.Label,
|
|
376
404
|
{
|
|
377
405
|
ref: o,
|
|
378
|
-
className: [
|
|
406
|
+
className: [rt, t].filter(Boolean).join(" "),
|
|
379
407
|
...a
|
|
380
408
|
}
|
|
381
409
|
));
|
|
382
|
-
|
|
383
|
-
const
|
|
410
|
+
te.displayName = "Select.Label";
|
|
411
|
+
const Ne = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
384
412
|
n.Separator,
|
|
385
413
|
{
|
|
386
414
|
ref: o,
|
|
@@ -388,7 +416,7 @@ const xe = f(({ className: t, ...a }, o) => /* @__PURE__ */ e(
|
|
|
388
416
|
...a
|
|
389
417
|
}
|
|
390
418
|
));
|
|
391
|
-
|
|
419
|
+
Ne.displayName = "Select.Separator";
|
|
392
420
|
const ct = "ds-select-detached", ut = /* @__PURE__ */ new Set([
|
|
393
421
|
"data-component",
|
|
394
422
|
"data-component-id",
|
|
@@ -404,132 +432,132 @@ function pt(t) {
|
|
|
404
432
|
r === void 0 || ut.has(o) || (o.startsWith("data-") || o.startsWith("aria-")) && (a[o] = r);
|
|
405
433
|
return a;
|
|
406
434
|
}
|
|
407
|
-
const
|
|
435
|
+
const Ie = f(function({
|
|
408
436
|
options: a,
|
|
409
437
|
value: o,
|
|
410
438
|
defaultValue: r,
|
|
411
439
|
onValueChange: l,
|
|
412
|
-
placeholder:
|
|
413
|
-
clearable:
|
|
414
|
-
disabled:
|
|
440
|
+
placeholder: i,
|
|
441
|
+
clearable: C = !1,
|
|
442
|
+
disabled: w,
|
|
415
443
|
required: h,
|
|
416
|
-
name:
|
|
417
|
-
id:
|
|
418
|
-
size:
|
|
444
|
+
name: v,
|
|
445
|
+
id: y,
|
|
446
|
+
size: V = "md",
|
|
419
447
|
tone: P = "default",
|
|
420
|
-
className:
|
|
421
|
-
container:
|
|
422
|
-
"aria-label":
|
|
423
|
-
"aria-describedby":
|
|
424
|
-
adornmentInTrigger:
|
|
425
|
-
showDescriptions:
|
|
426
|
-
descriptionInName:
|
|
427
|
-
wrapOptionLabels:
|
|
428
|
-
...
|
|
429
|
-
},
|
|
430
|
-
var
|
|
431
|
-
const { t:
|
|
448
|
+
className: A,
|
|
449
|
+
container: T,
|
|
450
|
+
"aria-label": x,
|
|
451
|
+
"aria-describedby": g,
|
|
452
|
+
adornmentInTrigger: R = !1,
|
|
453
|
+
showDescriptions: j = !1,
|
|
454
|
+
descriptionInName: D = !1,
|
|
455
|
+
wrapOptionLabels: k = !1,
|
|
456
|
+
...S
|
|
457
|
+
}, E) {
|
|
458
|
+
var ce;
|
|
459
|
+
const { t: F } = Ge("ui"), N = Ke(), b = fe(We) !== null, [Ce, O] = M(
|
|
432
460
|
o ?? r ?? ""
|
|
433
|
-
),
|
|
434
|
-
|
|
435
|
-
const
|
|
436
|
-
|
|
461
|
+
), I = o !== void 0, c = I ? o : Ce, [B, L] = M(!1), se = _(c);
|
|
462
|
+
se.current = c;
|
|
463
|
+
const we = $e(N, y), Te = y ?? (b ? we : void 0), G = (b ? N.disabled : !1) || !!w, K = (b ? N.required : !1) || !!h, ae = b ? N.invalid : !1, Re = ae ? "error" : P, ze = [b ? N.describedBy : void 0, g].filter(Boolean).join(" ") || void 0, oe = R ? (ce = a.find((s) => s.value === c)) == null ? void 0 : ce.startAdornment : void 0, z = _(null), Ve = lt(E, z), je = tt(z), [ke, Ee] = M(!0);
|
|
464
|
+
He(() => {
|
|
437
465
|
var s;
|
|
438
|
-
|
|
466
|
+
c === "" && Ee(!!((s = z.current) != null && s.closest("form")));
|
|
439
467
|
});
|
|
440
|
-
const
|
|
441
|
-
|
|
468
|
+
const W = c === "" && ke, ne = _(null), $ = _(c !== "");
|
|
469
|
+
Ae(() => {
|
|
442
470
|
var s;
|
|
443
|
-
if (
|
|
444
|
-
|
|
471
|
+
if (c !== "") {
|
|
472
|
+
$.current = !0;
|
|
445
473
|
return;
|
|
446
474
|
}
|
|
447
|
-
|
|
448
|
-
}, [
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
},
|
|
452
|
-
var
|
|
453
|
-
s.preventDefault(), s.stopPropagation(),
|
|
454
|
-
},
|
|
475
|
+
$.current && ($.current = !1, (s = ne.current) == null || s.dispatchEvent(new Event("change", { bubbles: !0 })));
|
|
476
|
+
}, [c]);
|
|
477
|
+
const d = l, re = (s) => {
|
|
478
|
+
I || O(s), d == null || d(s);
|
|
479
|
+
}, Oe = (s) => {
|
|
480
|
+
var u;
|
|
481
|
+
s.preventDefault(), s.stopPropagation(), I || O(""), d == null || d(""), (u = z.current) == null || u.focus();
|
|
482
|
+
}, q = i ?? F("inputs.select.placeholder", "Select…"), Be = C && !!c && !G, de = x === void 0 && !b, ie = de ? q : x, le = !x && b ? `${N.id}-label` : void 0, _e = qe(a), Pe = De(
|
|
455
483
|
() => ({
|
|
456
|
-
getValue: () =>
|
|
484
|
+
getValue: () => se.current,
|
|
457
485
|
setValue: (s) => {
|
|
458
|
-
const
|
|
459
|
-
!
|
|
486
|
+
const u = a.find((H) => H.value === s);
|
|
487
|
+
!u || u.disabled || (I || O(s), d == null || d(s));
|
|
460
488
|
},
|
|
461
489
|
clear: () => {
|
|
462
|
-
|
|
490
|
+
I || O(""), d == null || d("");
|
|
463
491
|
},
|
|
464
|
-
open: () =>
|
|
465
|
-
close: () =>
|
|
492
|
+
open: () => L(!0),
|
|
493
|
+
close: () => L(!1),
|
|
466
494
|
isOpen: () => B
|
|
467
495
|
}),
|
|
468
|
-
[
|
|
496
|
+
[d, I, B, a]
|
|
469
497
|
);
|
|
470
|
-
return
|
|
498
|
+
return Le(at, Pe, y), /* @__PURE__ */ m(
|
|
471
499
|
n.Root,
|
|
472
500
|
{
|
|
473
|
-
value:
|
|
474
|
-
onValueChange:
|
|
501
|
+
value: c,
|
|
502
|
+
onValueChange: re,
|
|
475
503
|
open: B,
|
|
476
|
-
onOpenChange:
|
|
477
|
-
disabled:
|
|
478
|
-
required:
|
|
479
|
-
name:
|
|
480
|
-
form:
|
|
481
|
-
dir:
|
|
504
|
+
onOpenChange: L,
|
|
505
|
+
disabled: G,
|
|
506
|
+
required: K,
|
|
507
|
+
name: W ? void 0 : v,
|
|
508
|
+
form: W ? ct : void 0,
|
|
509
|
+
dir: je,
|
|
482
510
|
children: [
|
|
483
511
|
/* @__PURE__ */ m(
|
|
484
512
|
n.Trigger,
|
|
485
513
|
{
|
|
486
|
-
ref:
|
|
487
|
-
id:
|
|
488
|
-
"aria-label":
|
|
489
|
-
"aria-labelledby":
|
|
490
|
-
"data-name-from-placeholder":
|
|
491
|
-
"aria-describedby":
|
|
492
|
-
"aria-invalid":
|
|
493
|
-
...pt(
|
|
514
|
+
ref: Ve,
|
|
515
|
+
id: Te,
|
|
516
|
+
"aria-label": ie,
|
|
517
|
+
"aria-labelledby": le,
|
|
518
|
+
"data-name-from-placeholder": de || void 0,
|
|
519
|
+
"aria-describedby": ze,
|
|
520
|
+
"aria-invalid": ae || void 0,
|
|
521
|
+
...pt(S),
|
|
494
522
|
"data-component": "select",
|
|
495
|
-
"data-component-id":
|
|
496
|
-
className:
|
|
497
|
-
size:
|
|
498
|
-
tone:
|
|
499
|
-
className:
|
|
523
|
+
"data-component-id": y,
|
|
524
|
+
className: he({
|
|
525
|
+
size: V,
|
|
526
|
+
tone: Re,
|
|
527
|
+
className: A
|
|
500
528
|
}),
|
|
501
529
|
children: [
|
|
502
|
-
|
|
530
|
+
oe ? /* @__PURE__ */ m("span", { className: "ds:flex ds:min-w-0 ds:items-center ds:gap-[var(--spacing-sm)]", children: [
|
|
503
531
|
/* @__PURE__ */ e(
|
|
504
532
|
"span",
|
|
505
533
|
{
|
|
506
534
|
"aria-hidden": "true",
|
|
507
535
|
"data-select-trigger-adornment": "",
|
|
508
536
|
className: "ds:inline-flex ds:shrink-0 ds:items-center",
|
|
509
|
-
children:
|
|
537
|
+
children: oe
|
|
510
538
|
}
|
|
511
539
|
),
|
|
512
540
|
/* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ e(
|
|
513
541
|
n.Value,
|
|
514
542
|
{
|
|
515
|
-
...
|
|
516
|
-
placeholder:
|
|
543
|
+
...X,
|
|
544
|
+
placeholder: q
|
|
517
545
|
}
|
|
518
546
|
) })
|
|
519
547
|
] }) : /* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:truncate ds:text-start", children: /* @__PURE__ */ e(
|
|
520
548
|
n.Value,
|
|
521
549
|
{
|
|
522
|
-
...
|
|
523
|
-
placeholder:
|
|
550
|
+
...X,
|
|
551
|
+
placeholder: q
|
|
524
552
|
}
|
|
525
553
|
) }),
|
|
526
554
|
/* @__PURE__ */ m("span", { className: "ds:ms-auto ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
527
|
-
|
|
555
|
+
Be ? /* @__PURE__ */ e(
|
|
528
556
|
"button",
|
|
529
557
|
{
|
|
530
558
|
type: "button",
|
|
531
|
-
"aria-label":
|
|
532
|
-
onClick:
|
|
559
|
+
"aria-label": F("inputs.select.clear", "Clear selection"),
|
|
560
|
+
onClick: Oe,
|
|
533
561
|
onPointerDown: (s) => s.stopPropagation(),
|
|
534
562
|
onKeyDown: (s) => {
|
|
535
563
|
(s.key === "Enter" || s.key === " ") && s.stopPropagation();
|
|
@@ -542,11 +570,11 @@ const Se = f(function({
|
|
|
542
570
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
543
571
|
"ds:size-4"
|
|
544
572
|
].join(" "),
|
|
545
|
-
children: /* @__PURE__ */ e(
|
|
573
|
+
children: /* @__PURE__ */ e(st, { "aria-hidden": "true", className: "ds:size-3.5" })
|
|
546
574
|
}
|
|
547
575
|
) : null,
|
|
548
576
|
/* @__PURE__ */ e(n.Icon, { asChild: !0, children: /* @__PURE__ */ e(
|
|
549
|
-
|
|
577
|
+
ge,
|
|
550
578
|
{
|
|
551
579
|
"aria-hidden": "true",
|
|
552
580
|
className: [
|
|
@@ -560,22 +588,22 @@ const Se = f(function({
|
|
|
560
588
|
]
|
|
561
589
|
}
|
|
562
590
|
),
|
|
563
|
-
|
|
591
|
+
W && (v !== void 0 || K) ? /* @__PURE__ */ m(
|
|
564
592
|
"select",
|
|
565
593
|
{
|
|
566
|
-
ref:
|
|
594
|
+
ref: ne,
|
|
567
595
|
"data-component": "select-field",
|
|
568
596
|
"aria-hidden": !0,
|
|
569
597
|
tabIndex: -1,
|
|
570
|
-
"aria-label":
|
|
571
|
-
"aria-labelledby":
|
|
572
|
-
name:
|
|
573
|
-
required:
|
|
574
|
-
disabled:
|
|
598
|
+
"aria-label": ie,
|
|
599
|
+
"aria-labelledby": le,
|
|
600
|
+
name: v,
|
|
601
|
+
required: K,
|
|
602
|
+
disabled: G,
|
|
575
603
|
value: "",
|
|
576
604
|
onChange: (s) => {
|
|
577
|
-
var
|
|
578
|
-
s.target.value !== "" && (document.activeElement === s.target && ((
|
|
605
|
+
var u;
|
|
606
|
+
s.target.value !== "" && (document.activeElement === s.target && ((u = z.current) == null || u.focus()), re(s.target.value));
|
|
579
607
|
},
|
|
580
608
|
className: "ds:sr-only",
|
|
581
609
|
children: [
|
|
@@ -585,6 +613,7 @@ const Se = f(function({
|
|
|
585
613
|
{
|
|
586
614
|
value: s.value,
|
|
587
615
|
disabled: s.disabled,
|
|
616
|
+
dir: s.dir,
|
|
588
617
|
children: s.label
|
|
589
618
|
},
|
|
590
619
|
s.value
|
|
@@ -592,58 +621,59 @@ const Se = f(function({
|
|
|
592
621
|
]
|
|
593
622
|
}
|
|
594
623
|
) : null,
|
|
595
|
-
/* @__PURE__ */ e(
|
|
596
|
-
const
|
|
597
|
-
|
|
624
|
+
/* @__PURE__ */ e(Q.Provider, { value: B, children: /* @__PURE__ */ e(Y, { container: T, children: /* @__PURE__ */ e(Z, { 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: F("inputs.select.noOptions", "No options") }) : _e.map(({ group: s, items: u }, H) => {
|
|
625
|
+
const ue = u.map((p) => /* @__PURE__ */ e(
|
|
626
|
+
ee,
|
|
598
627
|
{
|
|
599
|
-
value:
|
|
600
|
-
disabled:
|
|
601
|
-
size:
|
|
602
|
-
"data-option-id":
|
|
603
|
-
startAdornment:
|
|
604
|
-
endContent:
|
|
605
|
-
description:
|
|
606
|
-
descriptionTone:
|
|
607
|
-
descriptionInName:
|
|
608
|
-
wrapLabel:
|
|
609
|
-
|
|
628
|
+
value: p.value,
|
|
629
|
+
disabled: p.disabled,
|
|
630
|
+
size: V,
|
|
631
|
+
"data-option-id": p.value,
|
|
632
|
+
startAdornment: p.startAdornment,
|
|
633
|
+
endContent: p.endContent,
|
|
634
|
+
description: j ? p.description : void 0,
|
|
635
|
+
descriptionTone: p.descriptionTone,
|
|
636
|
+
descriptionInName: D,
|
|
637
|
+
wrapLabel: k,
|
|
638
|
+
labelDir: p.dir,
|
|
639
|
+
children: p.label
|
|
610
640
|
},
|
|
611
|
-
|
|
641
|
+
p.value
|
|
612
642
|
));
|
|
613
643
|
return s ? /* @__PURE__ */ m(n.Group, { children: [
|
|
614
|
-
/* @__PURE__ */ e(
|
|
615
|
-
|
|
616
|
-
] }, `group-${s}`) : /* @__PURE__ */ e(n.Group, { children:
|
|
644
|
+
/* @__PURE__ */ e(te, { children: s }),
|
|
645
|
+
ue
|
|
646
|
+
] }, `group-${s}`) : /* @__PURE__ */ e(n.Group, { children: ue }, `group-${H}`);
|
|
617
647
|
}) }) }) })
|
|
618
648
|
]
|
|
619
649
|
}
|
|
620
650
|
);
|
|
621
651
|
});
|
|
622
|
-
|
|
623
|
-
const mt = Object.assign(
|
|
624
|
-
Root:
|
|
625
|
-
Trigger:
|
|
626
|
-
Value:
|
|
627
|
-
Content:
|
|
628
|
-
Viewport:
|
|
629
|
-
Item:
|
|
630
|
-
ItemText:
|
|
631
|
-
Group:
|
|
632
|
-
Label:
|
|
633
|
-
Separator:
|
|
652
|
+
Ie.displayName = "Select";
|
|
653
|
+
const mt = Object.assign(Ie, {
|
|
654
|
+
Root: ve,
|
|
655
|
+
Trigger: be,
|
|
656
|
+
Value: ye,
|
|
657
|
+
Content: Y,
|
|
658
|
+
Viewport: Z,
|
|
659
|
+
Item: ee,
|
|
660
|
+
ItemText: xe,
|
|
661
|
+
Group: Se,
|
|
662
|
+
Label: te,
|
|
663
|
+
Separator: Ne
|
|
634
664
|
}), kt = mt;
|
|
635
665
|
export {
|
|
636
666
|
kt as S,
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
667
|
+
Y as a,
|
|
668
|
+
Se as b,
|
|
669
|
+
ee as c,
|
|
670
|
+
xe as d,
|
|
671
|
+
te as e,
|
|
672
|
+
ve as f,
|
|
673
|
+
Ne as g,
|
|
674
|
+
be as h,
|
|
675
|
+
ye as i,
|
|
676
|
+
Z as j,
|
|
677
|
+
he as s
|
|
648
678
|
};
|
|
649
|
-
//# sourceMappingURL=select-
|
|
679
|
+
//# sourceMappingURL=select-4S-eYZUf.js.map
|