@alfadocs/ui-kit-debug 0.73.0 → 0.75.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-DLrcSTK_.js +1546 -0
- package/dist/_chunks/actions-cell-renderer-DLrcSTK_.js.map +1 -0
- package/dist/_chunks/{ai-prompt-input-DFm58UjY.js → ai-prompt-input-DziJCGLe.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DFm58UjY.js.map → ai-prompt-input-DziJCGLe.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-CjAY0GAc.js → audio-recorder-Cc3KuL9y.js} +2 -2
- package/dist/_chunks/{audio-recorder-CjAY0GAc.js.map → audio-recorder-Cc3KuL9y.js.map} +1 -1
- package/dist/_chunks/{bishop-score-Bs6t6Zv1.js → bishop-score-DDW5-gb9.js} +2 -2
- package/dist/_chunks/{bishop-score-Bs6t6Zv1.js.map → bishop-score-DDW5-gb9.js.map} +1 -1
- package/dist/_chunks/{booking-CWnZhZ5g.js → booking-B1Qkcl3c.js} +2 -2
- package/dist/_chunks/{booking-CWnZhZ5g.js.map → booking-B1Qkcl3c.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-CfIP3Vc1.js → care-plan-card-BrwhyIJI.js} +2 -2
- package/dist/_chunks/{care-plan-card-CfIP3Vc1.js.map → care-plan-card-BrwhyIJI.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-CRbS-G00.js → care-plan-entry-card-DWEdCQM3.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-CRbS-G00.js.map → care-plan-entry-card-DWEdCQM3.js.map} +1 -1
- package/dist/_chunks/data-table-tabs-BEUXiRlu.js +710 -0
- package/dist/_chunks/data-table-tabs-BEUXiRlu.js.map +1 -0
- package/dist/_chunks/document-preview-CGSM_au9.js +181 -0
- package/dist/_chunks/document-preview-CGSM_au9.js.map +1 -0
- package/dist/_chunks/{document-scanner-BE6Jz4Ob.js → document-scanner-B6h1Ir56.js} +2 -2
- package/dist/_chunks/{document-scanner-BE6Jz4Ob.js.map → document-scanner-B6h1Ir56.js.map} +1 -1
- package/dist/_chunks/{field-value-DCXJXKab.js → field-value-DHG6gEKS.js} +2 -2
- package/dist/_chunks/{field-value-DCXJXKab.js.map → field-value-DHG6gEKS.js.map} +1 -1
- package/dist/_chunks/file-Cwe9VC1A.js +40 -0
- package/dist/_chunks/file-Cwe9VC1A.js.map +1 -0
- package/dist/_chunks/file-manager-UF8dkQF1.js +1776 -0
- package/dist/_chunks/file-manager-UF8dkQF1.js.map +1 -0
- package/dist/_chunks/{file-upload-B2SXhRiN.js → file-upload-DENvuhfs.js} +98 -129
- package/dist/_chunks/file-upload-DENvuhfs.js.map +1 -0
- package/dist/_chunks/{gestational-age-calculator-C9Dfis4I.js → gestational-age-calculator-BpYw-WF-.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-C9Dfis4I.js.map → gestational-age-calculator-BpYw-WF-.js.map} +1 -1
- package/dist/_chunks/{header-settings-CRQDCYgr.js → header-settings-4cwQzeFc.js} +2 -2
- package/dist/_chunks/{header-settings-CRQDCYgr.js.map → header-settings-4cwQzeFc.js.map} +1 -1
- package/dist/_chunks/{icon-picker-BePK27S-.js → icon-picker-CM9ubkew.js} +2 -2
- package/dist/_chunks/{icon-picker-BePK27S-.js.map → icon-picker-CM9ubkew.js.map} +1 -1
- package/dist/_chunks/link-cell-renderer-BQGUs45d.js +711 -0
- package/dist/_chunks/link-cell-renderer-BQGUs45d.js.map +1 -0
- package/dist/_chunks/{locale-picker-Cbfqc0_N.js → locale-picker-GNF3lo8K.js} +2 -2
- package/dist/_chunks/{locale-picker-Cbfqc0_N.js.map → locale-picker-GNF3lo8K.js.map} +1 -1
- package/dist/_chunks/{marketplace-app-shell-Dm6S-hun.js → marketplace-app-shell-D_1tF4La.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-Dm6S-hun.js.map → marketplace-app-shell-D_1tF4La.js.map} +1 -1
- package/dist/_chunks/{muscle-scheme-B9MIkuj0.js → muscle-scheme-CFBE2dme.js} +6 -14
- package/dist/_chunks/{muscle-scheme-B9MIkuj0.js.map → muscle-scheme-CFBE2dme.js.map} +1 -1
- package/dist/_chunks/{notes-panel-B_8-Mebz.js → notes-panel-Cvdp818a.js} +2 -2
- package/dist/_chunks/{notes-panel-B_8-Mebz.js.map → notes-panel-Cvdp818a.js.map} +1 -1
- package/dist/_chunks/{optical-prescription-BQ75_kf6.js → optical-prescription-BEjYQjiO.js} +2 -2
- package/dist/_chunks/{optical-prescription-BQ75_kf6.js.map → optical-prescription-BEjYQjiO.js.map} +1 -1
- package/dist/_chunks/{patient-details-JkOI3Ijd.js → patient-details-DP4wKyq4.js} +3 -3
- package/dist/_chunks/{patient-details-JkOI3Ijd.js.map → patient-details-DP4wKyq4.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-CQOLMH3E.js → patient-summary-card-D6kgdTNn.js} +2 -2
- package/dist/_chunks/{patient-summary-card-CQOLMH3E.js.map → patient-summary-card-D6kgdTNn.js.map} +1 -1
- package/dist/_chunks/{patient-table-B_mOe-ZT.js → patient-table-DweKjiXg.js} +122 -118
- package/dist/_chunks/patient-table-DweKjiXg.js.map +1 -0
- package/dist/_chunks/periodontal-chart-D8hOFmde.js +1173 -0
- package/dist/_chunks/periodontal-chart-D8hOFmde.js.map +1 -0
- package/dist/_chunks/periodontal-diagnosis-cco40xTa.js +345 -0
- package/dist/_chunks/periodontal-diagnosis-cco40xTa.js.map +1 -0
- package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js +334 -0
- package/dist/_chunks/periodontal-risk-chart-bUGkMwDg.js.map +1 -0
- package/dist/_chunks/{popover-DGTKfLWh.js → popover-Cc0a69sw.js} +31 -28
- package/dist/_chunks/{popover-DGTKfLWh.js.map → popover-Cc0a69sw.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-IsDVfqJX.js → pregnancy-dating-msMl_6wz.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-IsDVfqJX.js.map → pregnancy-dating-msMl_6wz.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-e488ooH8.js → radiograph-panel.agent-CxF9pVxd.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-e488ooH8.js.map → radiograph-panel.agent-CxF9pVxd.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CgA2bYwi.js → rich-text-editor-CCWjNkbx.js} +186 -177
- package/dist/_chunks/rich-text-editor-CCWjNkbx.js.map +1 -0
- package/dist/_chunks/{select-BmCbJMJS.js → select-BW5ecXlX.js} +13 -13
- package/dist/_chunks/{select-BmCbJMJS.js.map → select-BW5ecXlX.js.map} +1 -1
- package/dist/_chunks/{sidebar-CtU35PIX.js → sidebar-C0PbwJBc.js} +357 -320
- package/dist/_chunks/sidebar-C0PbwJBc.js.map +1 -0
- package/dist/_chunks/signature-request-C-mskXwi.js +318 -0
- package/dist/_chunks/signature-request-C-mskXwi.js.map +1 -0
- package/dist/_chunks/{tabs-DVQ941Sj.js → tabs-CVTukWRD.js} +2 -2
- package/dist/_chunks/{tabs-DVQ941Sj.js.map → tabs-CVTukWRD.js.map} +1 -1
- package/dist/_chunks/{tasks-panel-LCK5ZXvU.js → tasks-panel-CjGAhIN8.js} +2 -2
- package/dist/_chunks/{tasks-panel-LCK5ZXvU.js.map → tasks-panel-CjGAhIN8.js.map} +1 -1
- package/dist/_chunks/tooth-data-BwuoKFf4.js +660 -0
- package/dist/_chunks/tooth-data-BwuoKFf4.js.map +1 -0
- package/dist/_chunks/tooth-scheme-BzJ6rcte.js +1483 -0
- package/dist/_chunks/tooth-scheme-BzJ6rcte.js.map +1 -0
- package/dist/_chunks/{unit-converter-3uL_tMCm.js → unit-converter-CSLWFDQh.js} +2 -2
- package/dist/_chunks/{unit-converter-3uL_tMCm.js.map → unit-converter-CSLWFDQh.js.map} +1 -1
- package/dist/agent-catalog.json +1282 -213
- package/dist/agent-i18n/en.json +84 -5
- package/dist/components/_shared/entity-card/entity-card.d.ts +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/card/card.d.ts +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/clinical-note-card/clinical-note-card.d.ts +1 -1
- package/dist/components/contact-profile-card/contact-profile-card.d.ts +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/filters/number-filter.d.ts.map +1 -1
- package/dist/components/data-table/index.js +35 -34
- package/dist/components/data-table/index.js.map +1 -1
- package/dist/components/data-table/toolbar.d.ts +1 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts +4 -0
- package/dist/components/data-table-tabs/data-table-tabs.agent.d.ts.map +1 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts +93 -0
- package/dist/components/data-table-tabs/data-table-tabs.d.ts.map +1 -0
- package/dist/components/data-table-tabs/index.d.ts +5 -0
- package/dist/components/data-table-tabs/index.d.ts.map +1 -0
- package/dist/components/data-table-tabs/index.js +8 -0
- package/dist/components/data-table-tabs/index.js.map +1 -0
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts +63 -0
- package/dist/components/data-table-tabs/use-data-table-filter-tabs.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.agent.d.ts +4 -0
- package/dist/components/document-preview/document-preview.agent.d.ts.map +1 -0
- package/dist/components/document-preview/document-preview.d.ts +41 -0
- package/dist/components/document-preview/document-preview.d.ts.map +1 -0
- package/dist/components/document-preview/index.d.ts +4 -0
- package/dist/components/document-preview/index.d.ts.map +1 -0
- package/dist/components/document-preview/index.js +6 -0
- package/dist/components/document-preview/index.js.map +1 -0
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/file-manager/dialogs.d.ts +48 -0
- package/dist/components/file-manager/dialogs.d.ts.map +1 -0
- package/dist/components/file-manager/file-manager.agent.d.ts +4 -0
- package/dist/components/file-manager/file-manager.agent.d.ts.map +1 -0
- package/dist/components/file-manager/file-manager.d.ts +82 -0
- package/dist/components/file-manager/file-manager.d.ts.map +1 -0
- package/dist/components/file-manager/folder-tree.d.ts +12 -0
- package/dist/components/file-manager/folder-tree.d.ts.map +1 -0
- package/dist/components/file-manager/index.d.ts +5 -0
- package/dist/components/file-manager/index.d.ts.map +1 -0
- package/dist/components/file-manager/index.js +6 -0
- package/dist/components/file-manager/index.js.map +1 -0
- package/dist/components/file-manager/list-view.d.ts +49 -0
- package/dist/components/file-manager/list-view.d.ts.map +1 -0
- package/dist/components/file-manager/toolbar.d.ts +15 -0
- package/dist/components/file-manager/toolbar.d.ts.map +1 -0
- package/dist/components/file-manager/types.d.ts +167 -0
- package/dist/components/file-manager/types.d.ts.map +1 -0
- package/dist/components/file-manager/utils.d.ts +34 -0
- package/dist/components/file-manager/utils.d.ts.map +1 -0
- package/dist/components/file-upload/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/icon-picker/index.js +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/muscle-scheme/muscle-scheme.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/notification-card.d.ts +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +1 -1
- package/dist/components/patient-table/columns.d.ts.map +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/payment-card.d.ts +1 -1
- package/dist/components/payment-card/payment-request-card.d.ts +1 -1
- package/dist/components/periodontal-chart/index.d.ts +6 -0
- package/dist/components/periodontal-chart/index.d.ts.map +1 -0
- package/dist/components/periodontal-chart/index.js +22 -0
- package/dist/components/periodontal-chart/index.js.map +1 -0
- package/dist/components/periodontal-chart/periodontal-chart-data.d.ts +119 -0
- package/dist/components/periodontal-chart/periodontal-chart-data.d.ts.map +1 -0
- package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-chart/periodontal-chart.agent.d.ts.map +1 -0
- package/dist/components/periodontal-chart/periodontal-chart.d.ts +69 -0
- package/dist/components/periodontal-chart/periodontal-chart.d.ts.map +1 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +1 -1
- package/dist/components/periodontal-diagnosis/index.d.ts +6 -0
- package/dist/components/periodontal-diagnosis/index.d.ts.map +1 -0
- package/dist/components/periodontal-diagnosis/index.js +13 -0
- package/dist/components/periodontal-diagnosis/index.js.map +1 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts +30 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis-data.d.ts.map +1 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts +4 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.agent.d.ts.map +1 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts +44 -0
- package/dist/components/periodontal-diagnosis/periodontal-diagnosis.d.ts.map +1 -0
- package/dist/components/periodontal-risk-chart/index.d.ts +6 -0
- package/dist/components/periodontal-risk-chart/index.d.ts.map +1 -0
- package/dist/components/periodontal-risk-chart/index.js +9 -0
- package/dist/components/periodontal-risk-chart/index.js.map +1 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts +4 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.agent.d.ts.map +1 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts +28 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-chart.d.ts.map +1 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts +47 -0
- package/dist/components/periodontal-risk-chart/periodontal-risk-data.d.ts.map +1 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -0
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts +9 -0
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/skeleton-scheme/index.js +5 -13
- package/dist/components/skeleton-scheme/index.js.map +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +29 -28
- package/dist/components/tooth-scheme/index.js.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +320 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +320 -0
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +320 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +320 -0
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +320 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +320 -0
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +320 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +320 -0
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +320 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +320 -0
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +320 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +320 -0
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +320 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +320 -0
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +320 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +320 -0
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +320 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +320 -0
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +320 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +320 -0
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +320 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +320 -0
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +320 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +320 -0
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +320 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +320 -0
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +320 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +320 -0
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +320 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +320 -0
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +320 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +320 -0
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +320 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +320 -0
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +320 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +320 -0
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +832 -782
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +320 -0
- package/dist/locales/de.json +320 -0
- package/dist/locales/el.json +320 -0
- package/dist/locales/en.json +320 -0
- package/dist/locales/es.json +320 -0
- package/dist/locales/fr.json +320 -0
- package/dist/locales/hi.json +320 -0
- package/dist/locales/it.json +320 -0
- package/dist/locales/ja.json +320 -0
- package/dist/locales/nl.json +320 -0
- package/dist/locales/pl.json +320 -0
- package/dist/locales/pt.json +320 -0
- package/dist/locales/ro.json +320 -0
- package/dist/locales/ru.json +320 -0
- package/dist/locales/sq.json +320 -0
- package/dist/locales/sv.json +320 -0
- package/dist/locales/tr.json +320 -0
- package/dist/locales/zh.json +320 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/signature-request/index.d.ts +3 -0
- package/dist/patterns/signature-request/index.d.ts.map +1 -0
- package/dist/patterns/signature-request/index.js +5 -0
- package/dist/patterns/signature-request/index.js.map +1 -0
- package/dist/patterns/signature-request/signature-request.d.ts +81 -0
- package/dist/patterns/signature-request/signature-request.d.ts.map +1 -0
- package/dist/tokens.css +1 -1
- package/package.json +29 -1
- package/dist/_chunks/columns-2-8lq4-b8e.js +0 -15
- package/dist/_chunks/columns-2-8lq4-b8e.js.map +0 -1
- package/dist/_chunks/file-upload-B2SXhRiN.js.map +0 -1
- package/dist/_chunks/link-cell-renderer-CLI7sBkX.js +0 -2210
- package/dist/_chunks/link-cell-renderer-CLI7sBkX.js.map +0 -1
- package/dist/_chunks/patient-table-B_mOe-ZT.js.map +0 -1
- package/dist/_chunks/rich-text-editor-CgA2bYwi.js.map +0 -1
- package/dist/_chunks/sidebar-CtU35PIX.js.map +0 -1
- package/dist/_chunks/tooth-scheme-CX49GycY.js +0 -2133
- package/dist/_chunks/tooth-scheme-CX49GycY.js.map +0 -1
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { jsx as s, jsxs as u, Fragment as
|
|
2
|
-
import { forwardRef as b, useState as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import { jsx as s, jsxs as u, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as B, useEffect as L, useCallback as ss, useRef as G, useMemo as $, useId as ns, useContext as q, createContext as Z } from "react";
|
|
3
|
+
import * as R from "@radix-ui/react-dialog";
|
|
4
|
+
import * as K from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as E from "@radix-ui/react-accordion";
|
|
6
6
|
import * as h from "@radix-ui/react-tooltip";
|
|
7
|
-
import { a as
|
|
8
|
-
import { S as
|
|
7
|
+
import { a as os } from "./accordion-C11v9ouP.js";
|
|
8
|
+
import { S as ts } from "./scroll-area-BZOvUhwQ.js";
|
|
9
9
|
import { Slot as ls } from "@radix-ui/react-slot";
|
|
10
|
-
import { c as
|
|
11
|
-
import { useTranslation as
|
|
10
|
+
import { c as T } from "./index-D2ZczOXr.js";
|
|
11
|
+
import { useTranslation as A } from "react-i18next";
|
|
12
12
|
import { u as cs } from "./registry-DvAUVLHh.js";
|
|
13
13
|
import { u as us } from "./use-edge-resize-ZnGG7gyO.js";
|
|
14
14
|
import { c as ms } from "./compose-refs-C0k0tdqF.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { a as vs, b as ps, d as fs } from "./input-surface-xyERuLU_.js";
|
|
16
|
+
import { X as gs } from "./x-B5YnXwCz.js";
|
|
17
|
+
import { c as W } from "./createLucideIcon-DhHxpK9K.js";
|
|
18
|
+
import { G as bs } from "./grip-vertical-onSb1JXO.js";
|
|
18
19
|
import { C as H } from "./chevron-right-I9AeSxH2.js";
|
|
19
|
-
import { S as
|
|
20
|
+
import { S as hs } from "./star-Bf9L2Uot.js";
|
|
20
21
|
/**
|
|
21
22
|
* @license lucide-react v1.22.0 - ISC
|
|
22
23
|
*
|
|
23
24
|
* This source code is licensed under the ISC license.
|
|
24
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
25
26
|
*/
|
|
26
|
-
const
|
|
27
|
+
const xs = [
|
|
27
28
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
28
29
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
29
30
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
30
|
-
],
|
|
31
|
+
], ys = W("panel-left-close", xs);
|
|
31
32
|
/**
|
|
32
33
|
* @license lucide-react v1.22.0 - ISC
|
|
33
34
|
*
|
|
34
35
|
* This source code is licensed under the ISC license.
|
|
35
36
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
37
|
*/
|
|
37
|
-
const
|
|
38
|
+
const Ns = [
|
|
38
39
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
39
40
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
40
41
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
41
|
-
],
|
|
42
|
+
], ws = W("panel-left-open", Ns);
|
|
42
43
|
/**
|
|
43
44
|
* @license lucide-react v1.22.0 - ISC
|
|
44
45
|
*
|
|
45
46
|
* This source code is licensed under the ISC license.
|
|
46
47
|
* See the LICENSE file in the root directory of this source tree.
|
|
47
48
|
*/
|
|
48
|
-
const
|
|
49
|
+
const zs = [
|
|
49
50
|
["path", { d: "M16 7h6v6", key: "box55l" }],
|
|
50
51
|
["path", { d: "m22 7-8.5 8.5-5-5L2 17", key: "1t1m79" }]
|
|
51
|
-
],
|
|
52
|
+
], Ss = W("trending-up", zs), js = {
|
|
52
53
|
id: "sidebar",
|
|
53
54
|
capabilities: ["expand"],
|
|
54
55
|
state: {
|
|
@@ -83,11 +84,11 @@ const ys = [
|
|
|
83
84
|
description: "Each Sidebar.Item emits its `navId` prop as data-nav-id. Agents activate a nav item via native click on the matching anchor."
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
+
}, O = Z({
|
|
87
88
|
mode: "expanded",
|
|
88
89
|
density: "default"
|
|
89
|
-
}), x = () =>
|
|
90
|
-
function
|
|
90
|
+
}), x = () => q(O), es = "ui.sidebar.state";
|
|
91
|
+
function Cs(e) {
|
|
91
92
|
if (typeof window > "u") return e;
|
|
92
93
|
try {
|
|
93
94
|
const a = window.localStorage.getItem(es);
|
|
@@ -96,14 +97,14 @@ function zs(e) {
|
|
|
96
97
|
}
|
|
97
98
|
return e;
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function ks(e) {
|
|
100
101
|
if (!(typeof window > "u"))
|
|
101
102
|
try {
|
|
102
103
|
window.localStorage.setItem(es, e);
|
|
103
104
|
} catch {
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
|
-
const J =
|
|
107
|
+
const J = T(
|
|
107
108
|
[
|
|
108
109
|
"ds:flex ds:flex-col",
|
|
109
110
|
// Sidebar sits at the page background in light mode (white-on-white
|
|
@@ -149,7 +150,7 @@ const J = I(
|
|
|
149
150
|
},
|
|
150
151
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
151
152
|
}
|
|
152
|
-
),
|
|
153
|
+
), Ts = 192, Is = 384, Rs = 248, Bs = [
|
|
153
154
|
"ds:absolute ds:[inset-block:0] ds:end-0 ds:z-[2]",
|
|
154
155
|
"ds:w-[var(--resizable-handle-size)]",
|
|
155
156
|
"ds:cursor-col-resize ds:select-none ds:touch-none",
|
|
@@ -163,37 +164,37 @@ const J = I(
|
|
|
163
164
|
"ds:before:[inset-block:0]",
|
|
164
165
|
"ds:before:[inline-size:var(--min-target-size)]",
|
|
165
166
|
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
166
|
-
].join(" "),
|
|
167
|
+
].join(" "), As = b(
|
|
167
168
|
({
|
|
168
169
|
state: e,
|
|
169
170
|
defaultState: a = "expanded",
|
|
170
171
|
onStateChange: r,
|
|
171
|
-
density:
|
|
172
|
+
density: i = "default",
|
|
172
173
|
open: n,
|
|
173
|
-
onOpenChange:
|
|
174
|
-
resizable:
|
|
175
|
-
"aria-label":
|
|
176
|
-
className:
|
|
174
|
+
onOpenChange: c,
|
|
175
|
+
resizable: o = !1,
|
|
176
|
+
"aria-label": t,
|
|
177
|
+
className: l,
|
|
177
178
|
children: p,
|
|
178
179
|
id: f,
|
|
179
180
|
...g
|
|
180
|
-
},
|
|
181
|
-
const { t: y } =
|
|
182
|
-
() =>
|
|
183
|
-
), m =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}, [
|
|
181
|
+
}, w) => {
|
|
182
|
+
const { t: y } = A(), d = e !== void 0, [N, z] = B(
|
|
183
|
+
() => d ? e : Cs(a)
|
|
184
|
+
), m = d ? e : N;
|
|
185
|
+
L(() => {
|
|
186
|
+
d || ks(N);
|
|
187
|
+
}, [N, d]);
|
|
187
188
|
const S = ss(
|
|
188
189
|
(k) => {
|
|
189
|
-
|
|
190
|
+
d || z(k), r == null || r(k);
|
|
190
191
|
},
|
|
191
|
-
[
|
|
192
|
-
), j =
|
|
193
|
-
|
|
192
|
+
[d, r]
|
|
193
|
+
), j = t ?? y("navigation.sidebar.label"), C = G(m);
|
|
194
|
+
L(() => {
|
|
194
195
|
C.current = m;
|
|
195
196
|
}, [m]);
|
|
196
|
-
const F =
|
|
197
|
+
const F = $(
|
|
197
198
|
() => ({
|
|
198
199
|
getIsCollapsed: () => C.current !== "expanded",
|
|
199
200
|
toggleCollapsed: () => {
|
|
@@ -203,23 +204,23 @@ const J = I(
|
|
|
203
204
|
}),
|
|
204
205
|
[S]
|
|
205
206
|
);
|
|
206
|
-
cs(
|
|
207
|
-
const
|
|
207
|
+
cs(js, F, f);
|
|
208
|
+
const D = G(null), _ = $(() => ms(w, D), [w]), { separatorProps: U, isResizing: P } = us({
|
|
208
209
|
edge: "inline-end",
|
|
209
|
-
targetRef:
|
|
210
|
+
targetRef: D,
|
|
210
211
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
211
|
-
minSize:
|
|
212
|
-
maxSize:
|
|
213
|
-
defaultSize:
|
|
214
|
-
disabled: !
|
|
215
|
-
}),
|
|
212
|
+
minSize: Ts,
|
|
213
|
+
maxSize: Is,
|
|
214
|
+
defaultSize: Rs,
|
|
215
|
+
disabled: !o || m !== "expanded"
|
|
216
|
+
}), M = o && m === "expanded";
|
|
216
217
|
return m === "overlay" ? /* @__PURE__ */ s(
|
|
217
|
-
|
|
218
|
+
O.Provider,
|
|
218
219
|
{
|
|
219
|
-
value: { mode: "overlay", density:
|
|
220
|
-
children: /* @__PURE__ */ s(
|
|
220
|
+
value: { mode: "overlay", density: i, transitionTo: S },
|
|
221
|
+
children: /* @__PURE__ */ s(R.Root, { open: n, onOpenChange: c, children: /* @__PURE__ */ u(R.Portal, { children: [
|
|
221
222
|
/* @__PURE__ */ s(
|
|
222
|
-
|
|
223
|
+
R.Overlay,
|
|
223
224
|
{
|
|
224
225
|
className: [
|
|
225
226
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -231,7 +232,7 @@ const J = I(
|
|
|
231
232
|
}
|
|
232
233
|
),
|
|
233
234
|
/* @__PURE__ */ u(
|
|
234
|
-
|
|
235
|
+
R.Content,
|
|
235
236
|
{
|
|
236
237
|
"aria-label": j,
|
|
237
238
|
className: [
|
|
@@ -241,20 +242,20 @@ const J = I(
|
|
|
241
242
|
// utilities and compiled to nothing.
|
|
242
243
|
"ds:start-0 ds:top-0",
|
|
243
244
|
"ds:h-dvh",
|
|
244
|
-
J({ mode: "overlay", density:
|
|
245
|
+
J({ mode: "overlay", density: i }),
|
|
245
246
|
"ds:shadow-[var(--shadow-xl)]",
|
|
246
247
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
247
248
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
248
249
|
"ds:rtl:data-[state=open]:slide-in-from-right ds:rtl:data-[state=closed]:slide-out-to-right",
|
|
249
250
|
"ds:motion-reduce:animate-none",
|
|
250
251
|
"ds:focus:outline-none",
|
|
251
|
-
|
|
252
|
+
l ?? ""
|
|
252
253
|
].filter(Boolean).join(" "),
|
|
253
254
|
children: [
|
|
254
255
|
/* @__PURE__ */ s(
|
|
255
256
|
"nav",
|
|
256
257
|
{
|
|
257
|
-
ref:
|
|
258
|
+
ref: _,
|
|
258
259
|
id: f,
|
|
259
260
|
"aria-label": j,
|
|
260
261
|
"data-component": "sidebar",
|
|
@@ -264,7 +265,7 @@ const J = I(
|
|
|
264
265
|
children: p
|
|
265
266
|
}
|
|
266
267
|
),
|
|
267
|
-
/* @__PURE__ */ s(
|
|
268
|
+
/* @__PURE__ */ s(R.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
268
269
|
"button",
|
|
269
270
|
{
|
|
270
271
|
type: "button",
|
|
@@ -278,7 +279,7 @@ const J = I(
|
|
|
278
279
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
279
280
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
280
281
|
].join(" "),
|
|
281
|
-
children: /* @__PURE__ */ s(
|
|
282
|
+
children: /* @__PURE__ */ s(gs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
282
283
|
}
|
|
283
284
|
) })
|
|
284
285
|
]
|
|
@@ -287,35 +288,35 @@ const J = I(
|
|
|
287
288
|
] }) })
|
|
288
289
|
}
|
|
289
290
|
) : /* @__PURE__ */ s(
|
|
290
|
-
|
|
291
|
+
O.Provider,
|
|
291
292
|
{
|
|
292
|
-
value: { mode: m, density:
|
|
293
|
+
value: { mode: m, density: i, transitionTo: S },
|
|
293
294
|
children: /* @__PURE__ */ s(h.Provider, { delayDuration: 300, children: /* @__PURE__ */ u(
|
|
294
295
|
"nav",
|
|
295
296
|
{
|
|
296
|
-
ref:
|
|
297
|
+
ref: _,
|
|
297
298
|
id: f,
|
|
298
299
|
"aria-label": j,
|
|
299
300
|
"data-component": "sidebar",
|
|
300
301
|
"data-component-id": f,
|
|
301
302
|
"data-mode": m,
|
|
302
|
-
"data-density":
|
|
303
|
-
"data-resizing":
|
|
303
|
+
"data-density": i,
|
|
304
|
+
"data-resizing": P ? "" : void 0,
|
|
304
305
|
className: [
|
|
305
|
-
J({ mode: m, density:
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
J({ mode: m, density: i }),
|
|
307
|
+
i === "compact" ? "ds:density-compact" : "",
|
|
308
|
+
l ?? ""
|
|
308
309
|
].filter(Boolean).join(" "),
|
|
309
310
|
...g,
|
|
310
311
|
children: [
|
|
311
312
|
p,
|
|
312
|
-
|
|
313
|
+
M ? /* @__PURE__ */ s(
|
|
313
314
|
"div",
|
|
314
315
|
{
|
|
315
|
-
...
|
|
316
|
+
...U,
|
|
316
317
|
"aria-label": y("navigation.sidebar.resize"),
|
|
317
|
-
"data-resizing":
|
|
318
|
-
className:
|
|
318
|
+
"data-resizing": P ? "" : void 0,
|
|
319
|
+
className: Bs
|
|
319
320
|
}
|
|
320
321
|
) : null
|
|
321
322
|
]
|
|
@@ -325,9 +326,9 @@ const J = I(
|
|
|
325
326
|
);
|
|
326
327
|
}
|
|
327
328
|
);
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
const { mode:
|
|
329
|
+
As.displayName = "Sidebar";
|
|
330
|
+
const Ds = b(({ className: e, ...a }, r) => {
|
|
331
|
+
const { mode: i } = x();
|
|
331
332
|
return /* @__PURE__ */ s(
|
|
332
333
|
"div",
|
|
333
334
|
{
|
|
@@ -337,7 +338,7 @@ const Bs = b(({ className: e, ...a }, r) => {
|
|
|
337
338
|
"ds:min-h-[var(--min-target-size)]",
|
|
338
339
|
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
339
340
|
// control fits centred inside the header.
|
|
340
|
-
|
|
341
|
+
i === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
341
342
|
"ds:py-[var(--spacing-sm)]",
|
|
342
343
|
// Hairline border + downward chrome shadow cast the header as a
|
|
343
344
|
// sticky top band above the scrolling body.
|
|
@@ -349,9 +350,9 @@ const Bs = b(({ className: e, ...a }, r) => {
|
|
|
349
350
|
}
|
|
350
351
|
);
|
|
351
352
|
});
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
({ className: e, children: a, ...r },
|
|
353
|
+
Ds.displayName = "SidebarHeader";
|
|
354
|
+
const _s = b(
|
|
355
|
+
({ className: e, children: a, ...r }, i) => (
|
|
355
356
|
// Scroll the nav sections through the kit `ScrollArea` (8px tokenised
|
|
356
357
|
// scrollbar) instead of native `overflow-auto` (the OS scrollbar), so the
|
|
357
358
|
// sidebar matches the Control Room rail and the kit's trays. `flex-1 min-h-0`
|
|
@@ -359,14 +360,14 @@ const Rs = b(
|
|
|
359
360
|
// body box (the ScrollArea root). Padding + `ref` + div props go on the inner
|
|
360
361
|
// content div so the scrollbar sits flush at the inline-end edge.
|
|
361
362
|
/* @__PURE__ */ s(
|
|
362
|
-
|
|
363
|
+
ts,
|
|
363
364
|
{
|
|
364
365
|
orientation: "vertical",
|
|
365
366
|
className: ["ds:flex-1 ds:min-h-0", e ?? ""].filter(Boolean).join(" "),
|
|
366
367
|
children: /* @__PURE__ */ s(
|
|
367
368
|
"div",
|
|
368
369
|
{
|
|
369
|
-
ref:
|
|
370
|
+
ref: i,
|
|
370
371
|
className: "ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)] ds:py-[var(--spacing-sm)]",
|
|
371
372
|
...r,
|
|
372
373
|
children: a
|
|
@@ -376,9 +377,9 @@ const Rs = b(
|
|
|
376
377
|
)
|
|
377
378
|
)
|
|
378
379
|
);
|
|
379
|
-
|
|
380
|
-
const
|
|
381
|
-
const { mode:
|
|
380
|
+
_s.displayName = "SidebarBody";
|
|
381
|
+
const Ps = b(({ className: e, ...a }, r) => {
|
|
382
|
+
const { mode: i } = x();
|
|
382
383
|
return /* @__PURE__ */ s(
|
|
383
384
|
"div",
|
|
384
385
|
{
|
|
@@ -387,7 +388,7 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
387
388
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
388
389
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
389
390
|
// so switch to a vertical stack and let each row self-centre.
|
|
390
|
-
|
|
391
|
+
i === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
391
392
|
"ds:min-h-[var(--min-target-size)]",
|
|
392
393
|
"ds:py-[var(--spacing-sm)]",
|
|
393
394
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
@@ -400,8 +401,8 @@ const Ds = b(({ className: e, ...a }, r) => {
|
|
|
400
401
|
}
|
|
401
402
|
);
|
|
402
403
|
});
|
|
403
|
-
|
|
404
|
-
const
|
|
404
|
+
Ps.displayName = "SidebarFooter";
|
|
405
|
+
const Es = [
|
|
405
406
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
406
407
|
"type-eyebrow",
|
|
407
408
|
"ds:text-[var(--muted-foreground)]",
|
|
@@ -421,21 +422,21 @@ const As = [
|
|
|
421
422
|
label: e,
|
|
422
423
|
icon: a,
|
|
423
424
|
collapsible: r = !0,
|
|
424
|
-
defaultOpen:
|
|
425
|
+
defaultOpen: i = !0,
|
|
425
426
|
open: n,
|
|
426
|
-
onOpenChange:
|
|
427
|
-
className:
|
|
428
|
-
children:
|
|
429
|
-
...
|
|
427
|
+
onOpenChange: c,
|
|
428
|
+
className: o,
|
|
429
|
+
children: t,
|
|
430
|
+
...l
|
|
430
431
|
}, p) => {
|
|
431
|
-
const { mode: f } = x(), g = f === "icon",
|
|
432
|
+
const { mode: f } = x(), g = f === "icon", w = r && !g && !!e, y = [
|
|
432
433
|
"ds:flex ds:flex-col",
|
|
433
434
|
"ds:gap-[var(--spacing-xs)]",
|
|
434
435
|
"ds:mt-[var(--spacing-sm)]",
|
|
435
|
-
|
|
436
|
+
o ?? ""
|
|
436
437
|
].filter(Boolean).join(" ");
|
|
437
|
-
if (!
|
|
438
|
-
return /* @__PURE__ */ u("div", { ref: p, className: y, ...
|
|
438
|
+
if (!w)
|
|
439
|
+
return /* @__PURE__ */ u("div", { ref: p, className: y, ...l, children: [
|
|
439
440
|
!!e || !!a ? /* @__PURE__ */ u(
|
|
440
441
|
"span",
|
|
441
442
|
{
|
|
@@ -453,20 +454,20 @@ const As = [
|
|
|
453
454
|
]
|
|
454
455
|
}
|
|
455
456
|
) : null,
|
|
456
|
-
|
|
457
|
+
t
|
|
457
458
|
] });
|
|
458
|
-
const
|
|
459
|
+
const d = "section";
|
|
459
460
|
return /* @__PURE__ */ s(
|
|
460
461
|
E.Root,
|
|
461
462
|
{
|
|
462
463
|
type: "single",
|
|
463
464
|
collapsible: !0,
|
|
464
|
-
defaultValue: n === void 0 &&
|
|
465
|
-
value: n === void 0 ? void 0 : n ?
|
|
466
|
-
onValueChange:
|
|
465
|
+
defaultValue: n === void 0 && i ? d : void 0,
|
|
466
|
+
value: n === void 0 ? void 0 : n ? d : "",
|
|
467
|
+
onValueChange: c ? (N) => c(N === d) : void 0,
|
|
467
468
|
asChild: !0,
|
|
468
|
-
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...
|
|
469
|
-
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className:
|
|
469
|
+
children: /* @__PURE__ */ s("div", { ref: p, className: y, ...l, children: /* @__PURE__ */ u(E.Item, { value: d, children: [
|
|
470
|
+
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ u(E.Trigger, { className: Es, children: [
|
|
470
471
|
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Q, children: a }) : null,
|
|
471
472
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
472
473
|
/* @__PURE__ */ s(
|
|
@@ -478,11 +479,11 @@ const As = [
|
|
|
478
479
|
)
|
|
479
480
|
] }) }),
|
|
480
481
|
/* @__PURE__ */ s(
|
|
481
|
-
|
|
482
|
+
os,
|
|
482
483
|
{
|
|
483
484
|
"aria-label": e,
|
|
484
485
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
485
|
-
children:
|
|
486
|
+
children: t
|
|
486
487
|
}
|
|
487
488
|
)
|
|
488
489
|
] }) })
|
|
@@ -491,7 +492,7 @@ const As = [
|
|
|
491
492
|
}
|
|
492
493
|
);
|
|
493
494
|
as.displayName = "SidebarSection";
|
|
494
|
-
const
|
|
495
|
+
const Hs = [
|
|
495
496
|
"ds:group ds:flex ds:w-full ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
496
497
|
"ds:min-h-[var(--min-target-size)]",
|
|
497
498
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
@@ -502,29 +503,29 @@ const Ps = [
|
|
|
502
503
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
503
504
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
504
505
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
505
|
-
].join(" "),
|
|
506
|
+
].join(" "), Fs = b(
|
|
506
507
|
({
|
|
507
508
|
label: e,
|
|
508
509
|
icon: a,
|
|
509
510
|
children: r,
|
|
510
|
-
className:
|
|
511
|
+
className: i,
|
|
511
512
|
defaultOpen: n,
|
|
512
|
-
open:
|
|
513
|
-
onOpenChange:
|
|
514
|
-
...
|
|
515
|
-
},
|
|
513
|
+
open: c,
|
|
514
|
+
onOpenChange: o,
|
|
515
|
+
...t
|
|
516
|
+
}, l) => {
|
|
516
517
|
const { mode: p } = x();
|
|
517
518
|
return /* @__PURE__ */ u(
|
|
518
|
-
|
|
519
|
+
K.Root,
|
|
519
520
|
{
|
|
520
|
-
ref:
|
|
521
|
+
ref: l,
|
|
521
522
|
defaultOpen: n,
|
|
522
|
-
open:
|
|
523
|
-
onOpenChange:
|
|
524
|
-
className:
|
|
525
|
-
...
|
|
523
|
+
open: c,
|
|
524
|
+
onOpenChange: o,
|
|
525
|
+
className: i,
|
|
526
|
+
...t,
|
|
526
527
|
children: [
|
|
527
|
-
/* @__PURE__ */ u(
|
|
528
|
+
/* @__PURE__ */ u(K.Trigger, { className: Hs, children: [
|
|
528
529
|
a ? /* @__PURE__ */ s(
|
|
529
530
|
"span",
|
|
530
531
|
{
|
|
@@ -552,7 +553,7 @@ const Ps = [
|
|
|
552
553
|
) : null
|
|
553
554
|
] }),
|
|
554
555
|
/* @__PURE__ */ s(
|
|
555
|
-
|
|
556
|
+
K.Content,
|
|
556
557
|
{
|
|
557
558
|
className: [
|
|
558
559
|
"ds:overflow-hidden",
|
|
@@ -568,8 +569,8 @@ const Ps = [
|
|
|
568
569
|
);
|
|
569
570
|
}
|
|
570
571
|
);
|
|
571
|
-
|
|
572
|
-
const
|
|
572
|
+
Fs.displayName = "SidebarGroup";
|
|
573
|
+
const Us = T(
|
|
573
574
|
[
|
|
574
575
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
575
576
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -630,55 +631,55 @@ const Es = I(
|
|
|
630
631
|
isActive: !1
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
), rs =
|
|
634
|
+
), rs = Z(null), ds = b(
|
|
634
635
|
({
|
|
635
636
|
asChild: e = !1,
|
|
636
637
|
isActive: a = !1,
|
|
637
638
|
navId: r,
|
|
638
|
-
isPinned:
|
|
639
|
+
isPinned: i = !1,
|
|
639
640
|
onPinChange: n,
|
|
640
|
-
pinLabel:
|
|
641
|
-
className:
|
|
642
|
-
children:
|
|
643
|
-
"aria-label":
|
|
641
|
+
pinLabel: c,
|
|
642
|
+
className: o,
|
|
643
|
+
children: t,
|
|
644
|
+
"aria-label": l,
|
|
644
645
|
...p
|
|
645
646
|
}, f) => {
|
|
646
|
-
const { mode: g, density:
|
|
647
|
+
const { mode: g, density: w } = x(), y = e ? ls : "a", d = n !== void 0 && g !== "icon", [N, z] = B(null), m = g === "icon" && l != null && N ? `${l}, ${N}` : l, S = /* @__PURE__ */ s(
|
|
647
648
|
y,
|
|
648
649
|
{
|
|
649
650
|
ref: f,
|
|
650
651
|
"aria-current": a ? "page" : void 0,
|
|
651
652
|
"aria-label": m,
|
|
652
653
|
"data-nav-id": r,
|
|
653
|
-
className:
|
|
654
|
+
className: Us({
|
|
654
655
|
mode: g,
|
|
655
|
-
density:
|
|
656
|
+
density: w,
|
|
656
657
|
isActive: a,
|
|
657
|
-
className:
|
|
658
|
+
className: d ? "ds:flex-1 ds:min-w-0" : o
|
|
658
659
|
}),
|
|
659
660
|
...p,
|
|
660
|
-
children:
|
|
661
|
+
children: t
|
|
661
662
|
}
|
|
662
|
-
), j =
|
|
663
|
+
), j = d ? /* @__PURE__ */ u(
|
|
663
664
|
"div",
|
|
664
665
|
{
|
|
665
666
|
className: [
|
|
666
667
|
"ds:group/item ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
667
|
-
|
|
668
|
+
o ?? ""
|
|
668
669
|
].filter(Boolean).join(" "),
|
|
669
670
|
children: [
|
|
670
671
|
S,
|
|
671
672
|
/* @__PURE__ */ s(
|
|
672
673
|
Y,
|
|
673
674
|
{
|
|
674
|
-
isPinned:
|
|
675
|
-
label:
|
|
675
|
+
isPinned: i,
|
|
676
|
+
label: c ?? l ?? "",
|
|
676
677
|
onPinChange: n
|
|
677
678
|
}
|
|
678
679
|
)
|
|
679
680
|
]
|
|
680
681
|
}
|
|
681
|
-
) : S, C = g === "icon" &&
|
|
682
|
+
) : S, C = g === "icon" && l ? /* @__PURE__ */ u(h.Root, { children: [
|
|
682
683
|
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: j }),
|
|
683
684
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
684
685
|
h.Content,
|
|
@@ -693,7 +694,7 @@ const Es = I(
|
|
|
693
694
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
694
695
|
].join(" "),
|
|
695
696
|
children: [
|
|
696
|
-
|
|
697
|
+
l,
|
|
697
698
|
/* @__PURE__ */ s(h.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
698
699
|
]
|
|
699
700
|
}
|
|
@@ -702,11 +703,11 @@ const Es = I(
|
|
|
702
703
|
return /* @__PURE__ */ s(rs.Provider, { value: z, children: C });
|
|
703
704
|
}
|
|
704
705
|
);
|
|
705
|
-
|
|
706
|
-
const
|
|
706
|
+
ds.displayName = "SidebarItem";
|
|
707
|
+
const Ms = b(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
707
708
|
"span",
|
|
708
709
|
{
|
|
709
|
-
ref:
|
|
710
|
+
ref: i,
|
|
710
711
|
"aria-hidden": "true",
|
|
711
712
|
className: [
|
|
712
713
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -724,13 +725,13 @@ const Hs = b(({ className: e, children: a, ...r }, d) => /* @__PURE__ */ s(
|
|
|
724
725
|
children: a
|
|
725
726
|
}
|
|
726
727
|
));
|
|
727
|
-
|
|
728
|
-
const
|
|
728
|
+
Ms.displayName = "SidebarItemIcon";
|
|
729
|
+
const Vs = b(({ className: e, children: a, ...r }, i) => {
|
|
729
730
|
const { mode: n } = x();
|
|
730
731
|
return /* @__PURE__ */ s(
|
|
731
732
|
"span",
|
|
732
733
|
{
|
|
733
|
-
ref:
|
|
734
|
+
ref: i,
|
|
734
735
|
className: [
|
|
735
736
|
"ds:flex-1",
|
|
736
737
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
@@ -743,22 +744,22 @@ const Fs = b(({ className: e, children: a, ...r }, d) => {
|
|
|
743
744
|
}
|
|
744
745
|
);
|
|
745
746
|
});
|
|
746
|
-
|
|
747
|
-
const
|
|
748
|
-
const { mode: n } = x(),
|
|
749
|
-
return
|
|
750
|
-
if (!
|
|
751
|
-
const
|
|
752
|
-
return t
|
|
753
|
-
}, [
|
|
747
|
+
Vs.displayName = "SidebarItemLabel";
|
|
748
|
+
const Ks = b(({ className: e, children: a, ...r }, i) => {
|
|
749
|
+
const { mode: n } = x(), c = n === "icon", o = q(rs);
|
|
750
|
+
return L(() => {
|
|
751
|
+
if (!o || !c) return;
|
|
752
|
+
const t = a == null || a === !1 ? null : String(a).trim() || null;
|
|
753
|
+
return o(t), () => o(null);
|
|
754
|
+
}, [o, a, c]), /* @__PURE__ */ s(
|
|
754
755
|
"span",
|
|
755
756
|
{
|
|
756
|
-
ref:
|
|
757
|
-
"aria-hidden":
|
|
757
|
+
ref: i,
|
|
758
|
+
"aria-hidden": c ? "true" : void 0,
|
|
758
759
|
className: [
|
|
759
760
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
760
761
|
"ds:font-[var(--font-weight-semibold)]",
|
|
761
|
-
|
|
762
|
+
c ? [
|
|
762
763
|
"ds:absolute ds:top-[2px] ds:end-[2px]",
|
|
763
764
|
"ds:min-w-0 ds:size-[10px] ds:ps-0 ds:pe-0",
|
|
764
765
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -779,55 +780,91 @@ const Ms = b(({ className: e, children: a, ...r }, d) => {
|
|
|
779
780
|
}
|
|
780
781
|
);
|
|
781
782
|
});
|
|
782
|
-
|
|
783
|
-
const
|
|
783
|
+
Ks.displayName = "SidebarItemBadge";
|
|
784
|
+
const Ls = T(
|
|
784
785
|
[
|
|
785
|
-
"ds:flex ds:items-center
|
|
786
|
-
"ds:
|
|
787
|
-
"ds:
|
|
788
|
-
"ds:rounded-[var(--radius-md)]",
|
|
789
|
-
"ds:text-[var(--foreground)] ds:text-[length:var(--font-size-sm)]",
|
|
790
|
-
"ds:hover:bg-[var(--muted)]/20",
|
|
786
|
+
"ds:flex ds:items-center",
|
|
787
|
+
"ds:text-[var(--foreground)]",
|
|
788
|
+
"ds:transition-colors ds:motion-reduce:transition-none",
|
|
791
789
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
792
790
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
793
791
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
794
792
|
"ds:no-underline"
|
|
795
|
-
].join(" ")
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
793
|
+
].join(" "),
|
|
794
|
+
{
|
|
795
|
+
variants: {
|
|
796
|
+
variant: {
|
|
797
|
+
// Borderless (Linear / Notion style): transparent at rest with a
|
|
798
|
+
// muted hover fill, a 44px tap target, roomier radius, and the dense
|
|
799
|
+
// `--font-size-sm` label. The historical default.
|
|
800
|
+
ghost: [
|
|
801
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
802
|
+
"ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
803
|
+
"ds:text-[length:var(--font-size-sm)]",
|
|
804
|
+
"ds:rounded-[var(--radius-md)]",
|
|
805
|
+
"ds:hover:bg-[var(--muted)]/20"
|
|
806
|
+
].join(" "),
|
|
807
|
+
// Input-field look: consumes the SAME shared input-surface tokens as
|
|
808
|
+
// <TextInput size="sm"> — height, text size and horizontal inset — so
|
|
809
|
+
// a practice / workspace selector stacked directly above the sidebar
|
|
810
|
+
// <SearchBar size="sm"> renders as a genuinely matched pair (identical
|
|
811
|
+
// 32px box and label size) and stays in lockstep if that surface
|
|
812
|
+
// evolves. `gap-3` + the shared `ps-3` line the pin glyph and label up
|
|
813
|
+
// with the search input's icon and text below. The bordered
|
|
814
|
+
// `--input`/`--shadow-input`/`--radius-sm` chrome mirrors the input's
|
|
815
|
+
// resting surface; opaque hover keeps the fill solid over a
|
|
816
|
+
// brand-tinted parent. 32px clears WCAG 2.5.8 (24px AA).
|
|
817
|
+
field: [
|
|
818
|
+
vs.sm,
|
|
819
|
+
ps.sm,
|
|
820
|
+
fs.sm,
|
|
821
|
+
"ds:gap-3",
|
|
822
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
823
|
+
"ds:border ds:border-[var(--border)] ds:bg-[var(--input)]",
|
|
824
|
+
"ds:shadow-[var(--shadow-input)]",
|
|
825
|
+
"ds:hover:bg-[color-mix(in_srgb,var(--muted)_20%,var(--input))]"
|
|
826
|
+
].join(" ")
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
defaultVariants: { variant: "ghost" }
|
|
830
|
+
}
|
|
831
|
+
), Gs = b(
|
|
832
|
+
({ logo: e, name: a, showChevron: r = !0, variant: i = "ghost", className: n, ...c }, o) => {
|
|
833
|
+
const { mode: t } = x(), l = t !== "icon";
|
|
834
|
+
return /* @__PURE__ */ u(
|
|
835
|
+
"button",
|
|
836
|
+
{
|
|
837
|
+
ref: o,
|
|
838
|
+
type: "button",
|
|
839
|
+
"aria-label": a,
|
|
840
|
+
className: [Ls({ variant: i }), n].filter(Boolean).join(" "),
|
|
841
|
+
...c,
|
|
842
|
+
children: [
|
|
843
|
+
/* @__PURE__ */ s(
|
|
844
|
+
"span",
|
|
819
845
|
{
|
|
820
846
|
"aria-hidden": "true",
|
|
821
|
-
className: "ds:
|
|
847
|
+
className: "ds:inline-flex ds:items-center ds:shrink-0",
|
|
848
|
+
children: e
|
|
822
849
|
}
|
|
823
|
-
)
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
850
|
+
),
|
|
851
|
+
l ? /* @__PURE__ */ u(X, { children: [
|
|
852
|
+
/* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
853
|
+
r ? /* @__PURE__ */ s(
|
|
854
|
+
H,
|
|
855
|
+
{
|
|
856
|
+
"aria-hidden": "true",
|
|
857
|
+
className: "ds:size-4 ds:shrink-0 ds:rotate-90"
|
|
858
|
+
}
|
|
859
|
+
) : null
|
|
860
|
+
] }) : null
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
);
|
|
864
|
+
}
|
|
865
|
+
);
|
|
866
|
+
Gs.displayName = "SidebarWorkspaceSwitcher";
|
|
867
|
+
const $s = T(
|
|
831
868
|
[
|
|
832
869
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
833
870
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -850,16 +887,16 @@ const Vs = I(
|
|
|
850
887
|
},
|
|
851
888
|
defaultVariants: { mode: "expanded" }
|
|
852
889
|
}
|
|
853
|
-
),
|
|
854
|
-
const { mode:
|
|
890
|
+
), Os = b(({ icon: e, label: a, shortcut: r, className: i, ...n }, c) => {
|
|
891
|
+
const { mode: o } = x(), t = o !== "icon";
|
|
855
892
|
return /* @__PURE__ */ u(
|
|
856
893
|
"button",
|
|
857
894
|
{
|
|
858
|
-
ref:
|
|
895
|
+
ref: c,
|
|
859
896
|
type: "button",
|
|
860
897
|
"aria-label": a,
|
|
861
898
|
"aria-keyshortcuts": r,
|
|
862
|
-
className: [
|
|
899
|
+
className: [$s({ mode: o }), i].filter(Boolean).join(" "),
|
|
863
900
|
...n,
|
|
864
901
|
children: [
|
|
865
902
|
/* @__PURE__ */ s(
|
|
@@ -870,7 +907,7 @@ const Vs = I(
|
|
|
870
907
|
children: e
|
|
871
908
|
}
|
|
872
909
|
),
|
|
873
|
-
|
|
910
|
+
t ? /* @__PURE__ */ u(X, { children: [
|
|
874
911
|
/* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
|
|
875
912
|
r ? /* @__PURE__ */ s("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
|
|
876
913
|
] }) : null
|
|
@@ -878,8 +915,8 @@ const Vs = I(
|
|
|
878
915
|
}
|
|
879
916
|
);
|
|
880
917
|
});
|
|
881
|
-
|
|
882
|
-
const
|
|
918
|
+
Os.displayName = "SidebarPrimaryAction";
|
|
919
|
+
const Xs = [
|
|
883
920
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
884
921
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
885
922
|
// Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
|
|
@@ -904,24 +941,24 @@ const $s = [
|
|
|
904
941
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
905
942
|
"ds:motion-reduce:transition-none"
|
|
906
943
|
].join(" "), Y = b(
|
|
907
|
-
({ isPinned: e, onPinChange: a, label: r, className:
|
|
908
|
-
const { t
|
|
909
|
-
if (
|
|
910
|
-
const p = e ?
|
|
944
|
+
({ isPinned: e, onPinChange: a, label: r, className: i, onClick: n, ...c }, o) => {
|
|
945
|
+
const { t } = A(), { mode: l } = x();
|
|
946
|
+
if (l === "icon") return null;
|
|
947
|
+
const p = e ? t("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : t("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
911
948
|
return /* @__PURE__ */ s(
|
|
912
949
|
"button",
|
|
913
950
|
{
|
|
914
|
-
ref:
|
|
951
|
+
ref: o,
|
|
915
952
|
type: "button",
|
|
916
953
|
"aria-label": p,
|
|
917
954
|
"aria-pressed": e,
|
|
918
|
-
className: [
|
|
955
|
+
className: [Xs, i].filter(Boolean).join(" "),
|
|
919
956
|
onClick: (f) => {
|
|
920
957
|
f.preventDefault(), f.stopPropagation(), a == null || a(!e), n == null || n(f);
|
|
921
958
|
},
|
|
922
|
-
...
|
|
959
|
+
...c,
|
|
923
960
|
children: /* @__PURE__ */ s(
|
|
924
|
-
|
|
961
|
+
hs,
|
|
925
962
|
{
|
|
926
963
|
"aria-hidden": "true",
|
|
927
964
|
className: "ds:size-4",
|
|
@@ -933,31 +970,31 @@ const $s = [
|
|
|
933
970
|
}
|
|
934
971
|
);
|
|
935
972
|
Y.displayName = "SidebarPinButton";
|
|
936
|
-
const
|
|
937
|
-
({ heading: e, emptyMessage: a, onReorder: r, className:
|
|
938
|
-
const { t
|
|
939
|
-
z.current = !z.current,
|
|
940
|
-
}, []), S =
|
|
941
|
-
() => ({ onReorder: r, count: f, dragSource:
|
|
942
|
-
[r, f,
|
|
973
|
+
const is = Z(null), qs = () => q(is), Zs = b(
|
|
974
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: i, children: n, ...c }, o) => {
|
|
975
|
+
const { t } = A(), l = e ?? t("navigation.sidebar.favorites", "Favourites"), p = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], f = p.length, g = f > 0, [w, y] = B(null), [d, N] = B(""), z = G(!1), m = ss((j) => {
|
|
976
|
+
z.current = !z.current, N(z.current ? j : `${j}`);
|
|
977
|
+
}, []), S = $(
|
|
978
|
+
() => ({ onReorder: r, count: f, dragSource: w, setDragSource: y, announce: m }),
|
|
979
|
+
[r, f, w, m]
|
|
943
980
|
);
|
|
944
|
-
return !g && !a ? null : /* @__PURE__ */ s(
|
|
981
|
+
return !g && !a ? null : /* @__PURE__ */ s(is.Provider, { value: S, children: /* @__PURE__ */ u(
|
|
945
982
|
as,
|
|
946
983
|
{
|
|
947
|
-
ref:
|
|
948
|
-
label:
|
|
949
|
-
className:
|
|
950
|
-
...
|
|
984
|
+
ref: o,
|
|
985
|
+
label: l,
|
|
986
|
+
className: i,
|
|
987
|
+
...c,
|
|
951
988
|
children: [
|
|
952
989
|
g ? p : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
953
|
-
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
990
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: d })
|
|
954
991
|
]
|
|
955
992
|
}
|
|
956
993
|
) });
|
|
957
994
|
}
|
|
958
995
|
);
|
|
959
|
-
|
|
960
|
-
const
|
|
996
|
+
Zs.displayName = "SidebarFavorites";
|
|
997
|
+
const Ws = T(
|
|
961
998
|
[
|
|
962
999
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
963
1000
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -976,7 +1013,7 @@ const qs = I(
|
|
|
976
1013
|
},
|
|
977
1014
|
defaultVariants: { dragging: !1, dropTarget: !1 }
|
|
978
1015
|
}
|
|
979
|
-
),
|
|
1016
|
+
), Ys = [
|
|
980
1017
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
981
1018
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
982
1019
|
"ds:cursor-grab ds:active:cursor-grabbing",
|
|
@@ -990,68 +1027,68 @@ const qs = I(
|
|
|
990
1027
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
991
1028
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
992
1029
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
993
|
-
].join(" "),
|
|
1030
|
+
].join(" "), Js = b(
|
|
994
1031
|
({
|
|
995
1032
|
index: e,
|
|
996
1033
|
isActive: a = !1,
|
|
997
1034
|
asChild: r = !1,
|
|
998
|
-
reorderLabel:
|
|
1035
|
+
reorderLabel: i,
|
|
999
1036
|
isPinned: n = !1,
|
|
1000
|
-
onPinChange:
|
|
1001
|
-
pinLabel:
|
|
1002
|
-
"aria-label":
|
|
1003
|
-
className:
|
|
1037
|
+
onPinChange: c,
|
|
1038
|
+
pinLabel: o,
|
|
1039
|
+
"aria-label": t,
|
|
1040
|
+
className: l,
|
|
1004
1041
|
children: p,
|
|
1005
1042
|
...f
|
|
1006
1043
|
}, g) => {
|
|
1007
|
-
const { t:
|
|
1008
|
-
if (!(
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
|
|
1044
|
+
const { t: w } = A(), { mode: y } = x(), d = qs(), [N, z] = B(!1), m = !!(d != null && d.onReorder) && y !== "icon", S = i ?? t ?? "", j = ns(), C = (v, I) => {
|
|
1045
|
+
if (!(d != null && d.onReorder)) return;
|
|
1046
|
+
const V = Math.max(0, Math.min(d.count - 1, I));
|
|
1047
|
+
V !== v && (d.onReorder(v, V), d.announce(
|
|
1048
|
+
w(
|
|
1012
1049
|
"navigation.sidebar.reorderAnnounce",
|
|
1013
1050
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
1014
|
-
{ label: S, to:
|
|
1051
|
+
{ label: S, to: V + 1, total: d.count }
|
|
1015
1052
|
)
|
|
1016
1053
|
));
|
|
1017
1054
|
}, F = (v) => {
|
|
1018
|
-
m && (v.altKey && v.key === "ArrowUp" ? (v.preventDefault(), C(e, e - 1)) : v.altKey && v.key === "ArrowDown" ? (v.preventDefault(), C(e, e + 1)) : v.key === "Home" && v.altKey ? (v.preventDefault(), C(e, 0)) : v.key === "End" && v.altKey && (v.preventDefault(), C(e,
|
|
1019
|
-
},
|
|
1020
|
-
m && (
|
|
1021
|
-
},
|
|
1022
|
-
|
|
1023
|
-
},
|
|
1024
|
-
!m || (
|
|
1025
|
-
},
|
|
1055
|
+
m && (v.altKey && v.key === "ArrowUp" ? (v.preventDefault(), C(e, e - 1)) : v.altKey && v.key === "ArrowDown" ? (v.preventDefault(), C(e, e + 1)) : v.key === "Home" && v.altKey ? (v.preventDefault(), C(e, 0)) : v.key === "End" && v.altKey && (v.preventDefault(), C(e, d.count - 1)));
|
|
1056
|
+
}, D = (v) => {
|
|
1057
|
+
m && (d == null || d.setDragSource(e), v.dataTransfer && (v.dataTransfer.effectAllowed = "move", v.dataTransfer.setData("ds:text/plain", String(e))));
|
|
1058
|
+
}, _ = () => {
|
|
1059
|
+
d == null || d.setDragSource(null), z(!1);
|
|
1060
|
+
}, U = (v) => {
|
|
1061
|
+
!m || (d == null ? void 0 : d.dragSource) === null || (v.preventDefault(), v.dataTransfer && (v.dataTransfer.dropEffect = "move"), z(!0));
|
|
1062
|
+
}, P = () => z(!1), M = (v) => {
|
|
1026
1063
|
if (!m) return;
|
|
1027
1064
|
v.preventDefault();
|
|
1028
|
-
const
|
|
1029
|
-
z(!1), !(
|
|
1030
|
-
}, k = (
|
|
1065
|
+
const I = d == null ? void 0 : d.dragSource;
|
|
1066
|
+
z(!1), !(I == null || I === e) && C(I, e);
|
|
1067
|
+
}, k = (d == null ? void 0 : d.dragSource) === e;
|
|
1031
1068
|
return /* @__PURE__ */ u(
|
|
1032
1069
|
"div",
|
|
1033
1070
|
{
|
|
1034
|
-
className:
|
|
1071
|
+
className: Ws({
|
|
1035
1072
|
dragging: k,
|
|
1036
|
-
dropTarget:
|
|
1073
|
+
dropTarget: N && !k
|
|
1037
1074
|
}),
|
|
1038
1075
|
draggable: m || void 0,
|
|
1039
|
-
onDragStart: m ?
|
|
1040
|
-
onDragEnd: m ?
|
|
1041
|
-
onDragOver:
|
|
1042
|
-
onDragLeave:
|
|
1043
|
-
onDrop:
|
|
1076
|
+
onDragStart: m ? D : void 0,
|
|
1077
|
+
onDragEnd: m ? _ : void 0,
|
|
1078
|
+
onDragOver: U,
|
|
1079
|
+
onDragLeave: P,
|
|
1080
|
+
onDrop: M,
|
|
1044
1081
|
children: [
|
|
1045
1082
|
/* @__PURE__ */ s(
|
|
1046
|
-
|
|
1083
|
+
ds,
|
|
1047
1084
|
{
|
|
1048
1085
|
ref: g,
|
|
1049
1086
|
isActive: a,
|
|
1050
1087
|
asChild: r,
|
|
1051
|
-
"aria-label":
|
|
1088
|
+
"aria-label": t,
|
|
1052
1089
|
"aria-describedby": m ? j : void 0,
|
|
1053
1090
|
draggable: m ? !1 : void 0,
|
|
1054
|
-
className: [m ? "ds:flex-1 ds:min-w-0" : "",
|
|
1091
|
+
className: [m ? "ds:flex-1 ds:min-w-0" : "", l ?? ""].filter(Boolean).join(" "),
|
|
1055
1092
|
...f,
|
|
1056
1093
|
children: p
|
|
1057
1094
|
}
|
|
@@ -1061,22 +1098,22 @@ const qs = I(
|
|
|
1061
1098
|
{
|
|
1062
1099
|
type: "button",
|
|
1063
1100
|
id: j,
|
|
1064
|
-
"aria-label":
|
|
1101
|
+
"aria-label": w(
|
|
1065
1102
|
"navigation.sidebar.reorderHandle",
|
|
1066
1103
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
1067
1104
|
{ label: S }
|
|
1068
1105
|
),
|
|
1069
|
-
className:
|
|
1106
|
+
className: Ys,
|
|
1070
1107
|
onKeyDown: F,
|
|
1071
|
-
children: /* @__PURE__ */ s(
|
|
1108
|
+
children: /* @__PURE__ */ s(bs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
1072
1109
|
}
|
|
1073
1110
|
) : null,
|
|
1074
|
-
|
|
1111
|
+
c && y !== "icon" ? /* @__PURE__ */ s(
|
|
1075
1112
|
Y,
|
|
1076
1113
|
{
|
|
1077
1114
|
isPinned: n,
|
|
1078
|
-
label:
|
|
1079
|
-
onPinChange:
|
|
1115
|
+
label: o ?? t ?? "",
|
|
1116
|
+
onPinChange: c
|
|
1080
1117
|
}
|
|
1081
1118
|
) : null
|
|
1082
1119
|
]
|
|
@@ -1084,8 +1121,8 @@ const qs = I(
|
|
|
1084
1121
|
);
|
|
1085
1122
|
}
|
|
1086
1123
|
);
|
|
1087
|
-
|
|
1088
|
-
const
|
|
1124
|
+
Js.displayName = "SidebarFavoriteItem";
|
|
1125
|
+
const Qs = T(
|
|
1089
1126
|
[
|
|
1090
1127
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1091
1128
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1098,16 +1135,16 @@ const Xs = I(
|
|
|
1098
1135
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1099
1136
|
"ds:no-underline"
|
|
1100
1137
|
].join(" ")
|
|
1101
|
-
),
|
|
1102
|
-
const { mode:
|
|
1138
|
+
), se = b(({ avatar: e, name: a, subtitle: r, subtitleLabel: i, className: n, ...c }, o) => {
|
|
1139
|
+
const { mode: t } = x(), l = t !== "icon", p = typeof r == "string" ? r : i;
|
|
1103
1140
|
return /* @__PURE__ */ u(
|
|
1104
1141
|
"button",
|
|
1105
1142
|
{
|
|
1106
|
-
ref:
|
|
1143
|
+
ref: o,
|
|
1107
1144
|
type: "button",
|
|
1108
1145
|
"aria-label": p ? `${a}, ${p}` : a,
|
|
1109
|
-
className: [
|
|
1110
|
-
...
|
|
1146
|
+
className: [Qs(), n].filter(Boolean).join(" "),
|
|
1147
|
+
...c,
|
|
1111
1148
|
children: [
|
|
1112
1149
|
/* @__PURE__ */ s(
|
|
1113
1150
|
"span",
|
|
@@ -1117,7 +1154,7 @@ const Xs = I(
|
|
|
1117
1154
|
children: e
|
|
1118
1155
|
}
|
|
1119
1156
|
),
|
|
1120
|
-
|
|
1157
|
+
l ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1121
1158
|
/* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1122
1159
|
r ? typeof r == "string" ? /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[length:var(--spacing-xs)] ds:min-w-0 type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : null
|
|
1123
1160
|
] }) : null
|
|
@@ -1125,8 +1162,8 @@ const Xs = I(
|
|
|
1125
1162
|
}
|
|
1126
1163
|
);
|
|
1127
1164
|
});
|
|
1128
|
-
|
|
1129
|
-
const
|
|
1165
|
+
se.displayName = "SidebarProfilePill";
|
|
1166
|
+
const ee = [
|
|
1130
1167
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1131
1168
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
1132
1169
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1136,29 +1173,29 @@ const Js = [
|
|
|
1136
1173
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1137
1174
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1138
1175
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1139
|
-
].join(" "),
|
|
1140
|
-
const { t:
|
|
1141
|
-
if (
|
|
1142
|
-
const
|
|
1176
|
+
].join(" "), ae = b(({ className: e, "aria-label": a, onClick: r, ...i }, n) => {
|
|
1177
|
+
const { t: c } = A(), { mode: o, transitionTo: t } = x();
|
|
1178
|
+
if (o === "overlay") return null;
|
|
1179
|
+
const l = o === "expanded", p = a ?? (l ? c("navigation.sidebar.collapse", "Collapse sidebar") : c("navigation.sidebar.expand", "Expand sidebar")), f = /* @__PURE__ */ s(
|
|
1143
1180
|
"button",
|
|
1144
1181
|
{
|
|
1145
1182
|
ref: n,
|
|
1146
1183
|
type: "button",
|
|
1147
1184
|
"aria-label": p,
|
|
1148
|
-
"aria-expanded":
|
|
1185
|
+
"aria-expanded": l,
|
|
1149
1186
|
onClick: (g) => {
|
|
1150
|
-
|
|
1187
|
+
t == null || t(l ? "icon" : "expanded"), r == null || r(g);
|
|
1151
1188
|
},
|
|
1152
|
-
className: [
|
|
1153
|
-
...
|
|
1154
|
-
children:
|
|
1155
|
-
|
|
1189
|
+
className: [ee, e].filter(Boolean).join(" "),
|
|
1190
|
+
...i,
|
|
1191
|
+
children: l ? /* @__PURE__ */ s(
|
|
1192
|
+
ys,
|
|
1156
1193
|
{
|
|
1157
1194
|
"aria-hidden": "true",
|
|
1158
1195
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1159
1196
|
}
|
|
1160
1197
|
) : /* @__PURE__ */ s(
|
|
1161
|
-
|
|
1198
|
+
ws,
|
|
1162
1199
|
{
|
|
1163
1200
|
"aria-hidden": "true",
|
|
1164
1201
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -1171,7 +1208,7 @@ const Js = [
|
|
|
1171
1208
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1172
1209
|
h.Content,
|
|
1173
1210
|
{
|
|
1174
|
-
side:
|
|
1211
|
+
side: o === "icon" ? "right" : "top",
|
|
1175
1212
|
sideOffset: 6,
|
|
1176
1213
|
className: [
|
|
1177
1214
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
@@ -1188,8 +1225,8 @@ const Js = [
|
|
|
1188
1225
|
) })
|
|
1189
1226
|
] });
|
|
1190
1227
|
});
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1228
|
+
ae.displayName = "SidebarCollapseTrigger";
|
|
1229
|
+
const re = T(
|
|
1193
1230
|
[
|
|
1194
1231
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1195
1232
|
"ds:rounded-[var(--radius-md)]",
|
|
@@ -1220,17 +1257,17 @@ const se = I(
|
|
|
1220
1257
|
},
|
|
1221
1258
|
defaultVariants: { mode: "expanded" }
|
|
1222
1259
|
}
|
|
1223
|
-
),
|
|
1224
|
-
const { mode:
|
|
1260
|
+
), de = b(({ title: e, description: a, icon: r, className: i, ...n }, c) => {
|
|
1261
|
+
const { mode: o } = x(), t = o === "icon", l = (
|
|
1225
1262
|
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1226
1263
|
// expanded mode the accessible name comes from the visible contents
|
|
1227
1264
|
// so the description isn't excluded from it.
|
|
1228
1265
|
/* @__PURE__ */ u(
|
|
1229
1266
|
"a",
|
|
1230
1267
|
{
|
|
1231
|
-
ref:
|
|
1232
|
-
"aria-label":
|
|
1233
|
-
className:
|
|
1268
|
+
ref: c,
|
|
1269
|
+
"aria-label": t ? e : void 0,
|
|
1270
|
+
className: re({ mode: o, className: i }),
|
|
1234
1271
|
...n,
|
|
1235
1272
|
children: [
|
|
1236
1273
|
/* @__PURE__ */ s(
|
|
@@ -1242,10 +1279,10 @@ const se = I(
|
|
|
1242
1279
|
"ds:rounded-[var(--radius-sm)]",
|
|
1243
1280
|
"ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
|
|
1244
1281
|
].join(" "),
|
|
1245
|
-
children: r ?? /* @__PURE__ */ s(
|
|
1282
|
+
children: r ?? /* @__PURE__ */ s(Ss, { className: "ds:size-4" })
|
|
1246
1283
|
}
|
|
1247
1284
|
),
|
|
1248
|
-
|
|
1285
|
+
t ? null : /* @__PURE__ */ u(X, { children: [
|
|
1249
1286
|
/* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1250
1287
|
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
|
|
1251
1288
|
a ? (
|
|
@@ -1266,8 +1303,8 @@ const se = I(
|
|
|
1266
1303
|
}
|
|
1267
1304
|
)
|
|
1268
1305
|
);
|
|
1269
|
-
return
|
|
1270
|
-
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children:
|
|
1306
|
+
return t ? /* @__PURE__ */ u(h.Root, { children: [
|
|
1307
|
+
/* @__PURE__ */ s(h.Trigger, { asChild: !0, children: l }),
|
|
1271
1308
|
/* @__PURE__ */ s(h.Portal, { children: /* @__PURE__ */ u(
|
|
1272
1309
|
h.Content,
|
|
1273
1310
|
{
|
|
@@ -1286,29 +1323,29 @@ const se = I(
|
|
|
1286
1323
|
]
|
|
1287
1324
|
}
|
|
1288
1325
|
) })
|
|
1289
|
-
] }) :
|
|
1326
|
+
] }) : l;
|
|
1290
1327
|
});
|
|
1291
|
-
|
|
1328
|
+
de.displayName = "SidebarUpgradeChip";
|
|
1292
1329
|
export {
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1330
|
+
As as S,
|
|
1331
|
+
_s as a,
|
|
1332
|
+
ae as b,
|
|
1333
|
+
Js as c,
|
|
1334
|
+
Zs as d,
|
|
1335
|
+
Ps as e,
|
|
1336
|
+
Fs as f,
|
|
1337
|
+
Ds as g,
|
|
1338
|
+
ds as h,
|
|
1339
|
+
Ks as i,
|
|
1340
|
+
Ms as j,
|
|
1341
|
+
Vs as k,
|
|
1305
1342
|
Y as l,
|
|
1306
|
-
|
|
1307
|
-
|
|
1343
|
+
Os as m,
|
|
1344
|
+
se as n,
|
|
1308
1345
|
as as o,
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1346
|
+
de as p,
|
|
1347
|
+
Gs as q,
|
|
1348
|
+
js as s,
|
|
1312
1349
|
x as u
|
|
1313
1350
|
};
|
|
1314
|
-
//# sourceMappingURL=sidebar-
|
|
1351
|
+
//# sourceMappingURL=sidebar-C0PbwJBc.js.map
|