@alfadocs/ui-kit 1.149.1 → 1.151.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-autocomplete-_LeOFdM7.js → address-autocomplete-Bt1nwxyn.js} +2 -2
- package/dist/_chunks/{address-fields-C4khof4C.js → address-fields-COumFRSX.js} +2 -2
- package/dist/_chunks/{agenda-tray-NgxPuAAz.js → agenda-tray-CmfcYQhc.js} +2 -2
- package/dist/_chunks/{ai-summary-panel-Cdsve-XN.js → ai-summary-panel-DyAHCqaj.js} +4 -4
- package/dist/_chunks/{alia-sidebar-Bjuxk8mU.js → alia-sidebar-BqZjnVoF.js} +2 -2
- package/dist/_chunks/{anamnesis-card-G0qzw0Oi.js → anamnesis-card-CoiG7vDj.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-QCv6zW-J.js → anamnesis-summary-rows-CFpaA1GP.js} +4 -4
- package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
- package/dist/_chunks/{appointment-card-HOZrABrQ.js → appointment-card-BPZggqck.js} +2 -2
- package/dist/_chunks/{appointment-details-panel.history-BxNqcA-r.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
- package/dist/_chunks/{appointment-details-panel.identity--_j07UG1.js → appointment-details-panel.identity-9hRo85Lx.js} +91 -79
- package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
- package/dist/_chunks/{appointment-timeline-CuZW-CGT.js → appointment-timeline-COfoHpoJ.js} +4 -4
- package/dist/_chunks/{appointment-tray-CFCxukwq.js → appointment-tray-BlKwDJKi.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-BPz9bQAB.js → balance-badge-cell-OghXENKK.js} +4 -4
- package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-fQleWmJE.js → calendar-appointment-editor-dialog-BPAfWtm9.js} +590 -583
- package/dist/_chunks/{calendar-editor-discard-host-DWS_kM-a.js → calendar-editor-discard-host-BudLsUZO.js} +5 -5
- package/dist/_chunks/{calendar-waiting-list-panel-BKBHfBpn.js → calendar-waiting-list-panel-DukgSOPH.js} +9 -9
- package/dist/_chunks/{calendar-workspace.model-4zmA3BFE.js → calendar-workspace.model-BulUpy0I.js} +2 -2
- package/dist/_chunks/{calendar.sheets-lgAqJB34.js → calendar.sheets-OmTiQdCg.js} +11 -11
- package/dist/_chunks/{calls-panel-BTTfHnPD.js → calls-panel-eohONLia.js} +5 -5
- package/dist/_chunks/{care-plan-card-2U2LuIJD.js → care-plan-card-DJXNWjKB.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-CUAlQv1c.js → care-plan-entry-card-W5QvNv8m.js} +2 -2
- package/dist/_chunks/code-BfU9G1ZM.js +15 -0
- package/dist/_chunks/{communications-panel-DDzUyoHi.js → communications-panel-CqiFs8BH.js} +4 -4
- package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
- package/dist/_chunks/control-room-rail-BmpTKtL1.js +456 -0
- package/dist/_chunks/{data-grid-CkzbCZSo.js → data-grid-DTAwrOiq.js} +3 -3
- package/dist/_chunks/{data-table-DFAYYsSc.js → data-table-CgpHO6EZ.js} +2 -2
- package/dist/_chunks/{default-tabs-C45FVzsG.js → default-tabs-CZaDDf1G.js} +4 -4
- package/dist/_chunks/{description-list-DA4TgL_I.js → description-list-DaldSpGy.js} +29 -26
- package/dist/_chunks/dev-bypass-button-DFcNpCQj.js +24 -0
- package/dist/_chunks/{document-preview-oSuJsJ3k.js → document-preview-TbwhY_eK.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
- package/dist/_chunks/{editable-description-BsSjLnSx.js → editable-description-B2F54K4T.js} +34 -33
- package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
- package/dist/_chunks/{entity-summary-CZmGcWi2.js → entity-summary-BNnTP1F6.js} +62 -50
- package/dist/_chunks/{error-boundary-BQ5mRqEd.js → error-boundary-BDS1XStO.js} +2 -2
- package/dist/_chunks/{error-page-CdNGIezW.js → error-page-3gWV-Vmj.js} +2 -2
- package/dist/_chunks/{error-page-illustration-BdJLuMdV.js → error-page-illustration-CJCjLk_-.js} +125 -149
- package/dist/_chunks/{face-scheme-BC2whb1S.js → face-scheme-DRYGaszs.js} +255 -264
- package/dist/_chunks/feature-preview-switch-B_8JTya_.js +75 -0
- package/dist/_chunks/{file-manager-Cp3Z4VvM.js → file-manager-DMvYx-Gq.js} +165 -180
- package/dist/_chunks/folder-DvNxod7_.js +36 -0
- package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-DlA54nu5.js → help-me-write-templates-VnvlK87x.js} +3 -3
- package/dist/_chunks/{info-tip-cCppV1fD.js → info-tip-DkVISvo-.js} +2 -2
- package/dist/_chunks/{invoice-upload-list-BReimsvV.js → invoice-upload-list-DutydbjC.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-CWLArl5e.js → link-cell-renderer-DTunki79.js} +3 -3
- package/dist/_chunks/{login-dev-card-DqUNJcd7.js → login-dev-card-CQz9yhrU.js} +2 -2
- package/dist/_chunks/{map-view-n6GiDRWM.js → map-view-B67HXWPR.js} +2 -2
- package/dist/_chunks/mark-adrift-LBqHvZwv.js +42 -0
- package/dist/_chunks/{marketplace-app-shell-CGA-R-zt.js → marketplace-app-shell-CclaaAvb.js} +3 -3
- package/dist/_chunks/message-square-warning-DsGGfd0K.js +22 -0
- package/dist/_chunks/{message-tray-Dx2HPcKB.js → message-tray-DysT-DPS.js} +2 -2
- package/dist/_chunks/{note-timeline-BbjHMhkL.js → note-timeline-CS5j2OKD.js} +86 -77
- package/dist/_chunks/notebook-text-spVSekMN.js +21 -0
- package/dist/_chunks/{notes-panel-Cw06dLDm.js → notes-panel-d0I3hOEY.js} +363 -341
- package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
- package/dist/_chunks/{optical-prescription-DZvauMiM.js → optical-prescription-CAnXavjq.js} +3 -3
- package/dist/_chunks/{panel-header-CbtlTe85.js → panel-header-DTc5OFUg.js} +78 -66
- package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
- package/dist/_chunks/{panel-subview-DjBwNV16.js → panel-subview-B5hnQwfQ.js} +3 -3
- package/dist/_chunks/{patient-account-settings-Do0QbDJe.js → patient-account-settings-DQx_9CYV.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-Bxy1_Pfo.js → patient-check-in-resume-BOHcm9hT.js} +6 -6
- package/dist/_chunks/{patient-details-Cj3dp9GB.js → patient-details-wFIzTz7N.js} +4 -4
- package/dist/_chunks/{patient-field-row-DDjsUsc_.js → patient-field-row-BDgfYLgz.js} +202 -201
- package/dist/_chunks/{patient-summary-card-roM9Esfb.js → patient-summary-card-ZunOre3Q.js} +158 -164
- package/dist/_chunks/{payment-request-card-C9VglWsV.js → payment-request-card-BSSfKrcc.js} +3 -3
- package/dist/_chunks/{portal-details-CKF4yFHs.js → portal-details-R-lwrisO.js} +4 -4
- package/dist/_chunks/{portal-documents-DvpAwmSI.js → portal-documents-C6XlWpEl.js} +3 -3
- package/dist/_chunks/{portal-parts-Cvu4PfIY.js → portal-parts-DlvSUZFX.js} +3 -3
- package/dist/_chunks/{practice-results-D0TAgL8v.js → practice-results-CqoB5YAv.js} +5 -5
- package/dist/_chunks/{prescription-history-CQuJmd4H.js → prescription-history-CxBM3gnm.js} +4 -4
- package/dist/_chunks/{privacy-mask-zVh0ntm0.js → privacy-mask-CaLBAxzj.js} +3 -3
- package/dist/_chunks/{product-hub-panel-NVpRuJeW.js → product-hub-panel-RJzrDcGp.js} +3 -3
- package/dist/_chunks/{public-header.agent-Dzo6ujrE.js → public-header.agent-B2CqVq4s.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-BUZPsuSP.js → radiograph-panel.agent-kgCmmgZk.js} +4 -4
- package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
- package/dist/_chunks/{registry-connection-panel-ACOsXu3F.js → registry-connection-panel-BkPPA3Fj.js} +4 -4
- package/dist/_chunks/{reserved.agent-DjvapRF1.js → reserved.agent-C-sMq0pb.js} +5 -5
- package/dist/_chunks/{reviews-panel-Cw5ygAxs.js → reviews-panel-jIz5aP2X.js} +4 -4
- package/dist/_chunks/rich-text-editor-DTadvKa7.js +4716 -0
- package/dist/_chunks/{scroll-area-CY5SLYNw.js → scroll-area-RQtcKkHf.js} +84 -79
- package/dist/_chunks/{sheet-CZDjW9Q-.js → sheet-1LXzej6Q.js} +2 -2
- package/dist/_chunks/{sidebar-D5DFYN5K.js → sidebar-BV9JCgS4.js} +2 -2
- package/dist/_chunks/{signed-out-frame-CC25CgKo.js → signed-out-frame-CKA8SSbU.js} +2 -2
- package/dist/_chunks/{signing-end-screen-Bq6tkFE6.js → signing-end-screen-HXkalppf.js} +2 -2
- package/dist/_chunks/{slot-grid-khIpy8Gx.js → slot-grid-DdqeF6PW.js} +2 -2
- package/dist/_chunks/{sync-tray-BQD-HuA4.js → sync-tray-CSVGzuur.js} +2 -2
- package/dist/_chunks/{task-editor-C-4I2sBa.js → task-editor-aXjGMwYA.js} +6 -6
- package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
- package/dist/_chunks/{tasks-panel-BDPQPOP6.js → tasks-panel-BdxHb-fX.js} +3 -3
- package/dist/_chunks/text-area-DbxGkpzE.js +269 -0
- package/dist/_chunks/{tool-rail-DjPEiBa2.js → tool-rail-B4p6MmxA.js} +383 -363
- package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
- package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
- package/dist/_chunks/{transaction-chip-CkYd-3ky.js → transaction-chip-6jToArJn.js} +45 -43
- package/dist/_chunks/{transcript-panel-Wr8e4Zgi.js → transcript-panel-Dc0fK4WO.js} +2 -2
- package/dist/_chunks/{treatment-receipt-BZzwvsnY.js → treatment-receipt-CZQV1NkJ.js} +59 -62
- package/dist/_chunks/use-appointment-details-read-BR3TQOHx.js +2091 -0
- package/dist/_chunks/user-round-DZxRG9zq.js +15 -0
- package/dist/_chunks/{week-availability-D0tTll4q.js → week-availability-D00rMjsX.js} +2 -2
- package/dist/_chunks/{workflow-map-F7OThorL.js → workflow-map-DLUTUZ27.js} +2 -2
- package/dist/agent-catalog.json +15 -1
- package/dist/appointment-editor-panel/index.js +4 -4
- package/dist/booking-tools-data/index.js +1 -1
- package/dist/browser-support.js +1 -1
- package/dist/calendar-action-buttons/index.js +1 -1
- package/dist/components/_shared/appointment-format.d.ts +4 -0
- package/dist/components/_shared/mark-adrift.d.ts +12 -0
- package/dist/components/_shared/patient-field-row.d.ts +5 -1
- package/dist/components/_shared/safe-html.d.ts +6 -0
- package/dist/components/_shared/tooth-chip.d.ts +21 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-summary-panel/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +12 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +3 -1
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +12 -2
- package/dist/components/appointment-details-panel/description-length.d.ts +18 -0
- package/dist/components/appointment-details-panel/index.d.ts +1 -0
- package/dist/components/appointment-details-panel/index.js +7 -6
- package/dist/components/appointment-peek/appointment-peek.d.ts +45 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bill-line-table/index.js +1 -1
- package/dist/components/bill-table/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calls-panel/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/communications-panel/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/control-room-rail/control-room-rail.d.ts +24 -0
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/data-grid/index.js +2 -2
- package/dist/components/data-table/index.js +3 -3
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dev-bypass-button/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/editable-description/editable-description.d.ts +7 -0
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/feature-preview-switch/feature-preview-switch.d.ts +55 -0
- package/dist/components/feature-preview-switch/index.d.ts +2 -0
- package/dist/components/feature-preview-switch/index.js +5 -0
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/invoice-upload-list/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/note-timeline/note-timeline.d.ts +8 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +33 -2
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-header/index.js +1 -1
- package/dist/components/panel-header/panel-header.d.ts +8 -0
- package/dist/components/panel-subview/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 +9 -0
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/registry-connection-panel/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +18 -5
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/link-bar.d.ts +8 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +25 -3
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -0
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/sync-tray/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/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.d.ts +15 -0
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +23 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/treatment-receipt/treatment-receipt.d.ts +6 -1
- package/dist/components/week-availability/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/find-free-slots-panel/index.js +1 -1
- package/dist/host-compat.css +4 -1
- package/dist/host-legacy.css +63 -4
- package/dist/i18n/locales/ar.d.ts +18 -0
- package/dist/i18n/locales/ar.js +18 -3
- package/dist/i18n/locales/de.d.ts +18 -0
- package/dist/i18n/locales/de.js +18 -3
- package/dist/i18n/locales/el.d.ts +18 -0
- package/dist/i18n/locales/el.js +21 -3
- package/dist/i18n/locales/en.d.ts +18 -0
- package/dist/i18n/locales/en.js +21 -3
- package/dist/i18n/locales/es.d.ts +18 -0
- package/dist/i18n/locales/es.js +21 -3
- package/dist/i18n/locales/fr.d.ts +18 -0
- package/dist/i18n/locales/fr.js +21 -3
- package/dist/i18n/locales/hi.d.ts +18 -0
- package/dist/i18n/locales/hi.js +18 -3
- package/dist/i18n/locales/it.d.ts +28 -10
- package/dist/i18n/locales/it.js +31 -13
- package/dist/i18n/locales/ja.d.ts +18 -0
- package/dist/i18n/locales/ja.js +18 -3
- package/dist/i18n/locales/nl.d.ts +18 -0
- package/dist/i18n/locales/nl.js +18 -3
- package/dist/i18n/locales/pl.d.ts +18 -0
- package/dist/i18n/locales/pl.js +21 -3
- package/dist/i18n/locales/pt.d.ts +18 -0
- package/dist/i18n/locales/pt.js +21 -3
- package/dist/i18n/locales/ro.d.ts +18 -0
- package/dist/i18n/locales/ro.js +21 -3
- package/dist/i18n/locales/ru.d.ts +18 -0
- package/dist/i18n/locales/ru.js +18 -3
- package/dist/i18n/locales/sq.d.ts +18 -0
- package/dist/i18n/locales/sq.js +21 -3
- package/dist/i18n/locales/sv.d.ts +18 -0
- package/dist/i18n/locales/sv.js +18 -3
- package/dist/i18n/locales/tr.d.ts +18 -0
- package/dist/i18n/locales/tr.js +18 -3
- package/dist/i18n/locales/zh.d.ts +18 -0
- package/dist/i18n/locales/zh.js +18 -3
- package/dist/index.js +820 -817
- package/dist/locales/ar.json +21 -3
- package/dist/locales/de.json +21 -3
- package/dist/locales/el.json +21 -3
- package/dist/locales/en.json +21 -3
- package/dist/locales/es.json +21 -3
- package/dist/locales/fr.json +21 -3
- package/dist/locales/hi.json +21 -3
- package/dist/locales/it.json +31 -13
- package/dist/locales/ja.json +21 -3
- package/dist/locales/nl.json +21 -3
- package/dist/locales/pl.json +21 -3
- package/dist/locales/pt.json +21 -3
- package/dist/locales/ro.json +21 -3
- package/dist/locales/ru.json +21 -3
- package/dist/locales/sq.json +21 -3
- package/dist/locales/sv.json +21 -3
- package/dist/locales/tr.json +21 -3
- package/dist/locales/zh.json +21 -3
- package/dist/online-bookings-panel/index.js +2 -2
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +4 -4
- package/dist/patterns/error-page/index.js +2 -2
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/login-form/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-account-settings/index.js +1 -1
- package/dist/patterns/patient-check-in/index.js +1 -1
- package/dist/patterns/patient-portal/index.js +2 -2
- package/dist/patterns/prescription/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/patterns/signing/index.js +1 -1
- package/dist/redactor.css +9 -0
- package/dist/safe-html/index.js +33 -19
- package/dist/tokens.css +61 -52
- package/dist/waiting-list-panel/index.js +3 -3
- package/package.json +5 -1
- package/dist/_chunks/appointment-peek-B3raO90X.js +0 -123
- package/dist/_chunks/contact-round-DiSvB3LP.js +0 -18
- package/dist/_chunks/control-room-rail-BQvaYowi.js +0 -416
- package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
- package/dist/_chunks/folder-BghC8_S2.js +0 -20
- package/dist/_chunks/rich-text-editor-eGdYDPK2.js +0 -4405
- package/dist/_chunks/text-area-COMVJ1yE.js +0 -258
- package/dist/_chunks/use-appointment-details-read-Bl1DHXQ2.js +0 -1998
- /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { u as
|
|
7
|
-
import { I as
|
|
8
|
-
import { D as
|
|
9
|
-
import { a as
|
|
10
|
-
import { S as
|
|
11
|
-
import { a as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { a as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
import { X as
|
|
21
|
-
const
|
|
1
|
+
import { jsxs as w, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Vt, useRef as m, useState as I, useMemo as K, useId as Pt, useCallback as B, useEffect as ae, useImperativeHandle as Ot, Fragment as Bt } from "react";
|
|
3
|
+
import * as H from "@radix-ui/react-dialog";
|
|
4
|
+
import { c as k } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as Ft } from "react-i18next";
|
|
6
|
+
import { u as jt } from "./app-frame-context-CPszhDDb.js";
|
|
7
|
+
import { I as xe } from "./icon-button-u9VMQn3x.js";
|
|
8
|
+
import { D as Mt, a as qt } from "./dialog-container-DHR0byah.js";
|
|
9
|
+
import { a as Kt } from "./panel-header-DTc5OFUg.js";
|
|
10
|
+
import { S as et } from "./scroll-area-RQtcKkHf.js";
|
|
11
|
+
import { a as Ht } from "./tooltip-uEBdD1-5.js";
|
|
12
|
+
import { u as $t } from "./use-controllable-state-BiY4xTzM.js";
|
|
13
|
+
import { u as Ut } from "./use-edge-resize-CBtem0j2.js";
|
|
14
|
+
import { u as A } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
15
|
+
import { a as Wt, u as tt, R as Yt } from "./use-list-reflow-C7O4Uqnl.js";
|
|
16
|
+
import { u as Zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
17
|
+
import { u as Gt } from "./use-presence-transition-cDwWUXV-.js";
|
|
18
|
+
import { u as Xt } from "./use-resolved-theme-B0f1_oyq.js";
|
|
19
|
+
import { u as Jt } from "./registry-DvAUVLHh.js";
|
|
20
|
+
import { X as Qt } from "./x-B5YnXwCz.js";
|
|
21
|
+
const en = {
|
|
22
22
|
id: "tool-rail",
|
|
23
23
|
capabilities: ["open", "close", "select_single"],
|
|
24
24
|
state: {
|
|
@@ -26,13 +26,13 @@ const Wt = {
|
|
|
26
26
|
type: "string | null",
|
|
27
27
|
descriptionKey: "ui.toolRail.agent.state.activeToolId",
|
|
28
28
|
description: "Id of the tool whose panel is currently open, or null when the rail is collapsed to its strip. No panel content is ever exposed.",
|
|
29
|
-
read: (
|
|
29
|
+
read: (i) => i.getActiveToolId()
|
|
30
30
|
},
|
|
31
31
|
panelMode: {
|
|
32
32
|
type: "'docked' | 'overlay' | 'full-screen'",
|
|
33
33
|
descriptionKey: "ui.agent.toolRail.state.panelMode",
|
|
34
34
|
description: "How an open panel shows: docked beside the content, over it because the frame keeps a minimum width for main, or full screen on a phone.",
|
|
35
|
-
read: (
|
|
35
|
+
read: (i) => i.getPanelMode()
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
actions: {
|
|
@@ -51,8 +51,8 @@ const Wt = {
|
|
|
51
51
|
descriptionKey: "ui.toolRail.agent.actions.open",
|
|
52
52
|
description: "Open the given tool's panel.",
|
|
53
53
|
examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
|
|
54
|
-
invoke: (
|
|
55
|
-
|
|
54
|
+
invoke: (i, a) => {
|
|
55
|
+
i.open(a.id);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
close: {
|
|
@@ -60,8 +60,8 @@ const Wt = {
|
|
|
60
60
|
idempotent: !0,
|
|
61
61
|
descriptionKey: "ui.toolRail.agent.actions.close",
|
|
62
62
|
description: "Collapse the rail to its strip (no active tool).",
|
|
63
|
-
invoke: (
|
|
64
|
-
|
|
63
|
+
invoke: (i) => {
|
|
64
|
+
i.close();
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
select_tool: {
|
|
@@ -75,8 +75,8 @@ const Wt = {
|
|
|
75
75
|
idempotent: !0,
|
|
76
76
|
descriptionKey: "ui.toolRail.agent.actions.selectTool",
|
|
77
77
|
description: "Set the active tool by id (opens its panel), or pass null to collapse.",
|
|
78
|
-
invoke: (
|
|
79
|
-
|
|
78
|
+
invoke: (i, a) => {
|
|
79
|
+
i.setActiveTool(a.id);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
},
|
|
@@ -96,11 +96,14 @@ const Wt = {
|
|
|
96
96
|
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
},
|
|
100
|
-
function
|
|
101
|
-
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 :
|
|
99
|
+
}, tn = "ds:[inline-size:3rem]", nn = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", nt = "--tool-rail-panel-inline-size", at = "ds:flex-1 ds:min-h-0 ds:[&>*]:max-h-full ds:[&>*]:overflow-y-auto", st = "ds:flex ds:h-full ds:flex-col ds:[&>*]:flex-[1_0_auto]", an = 288, sn = 880, rn = 352, on = 24;
|
|
100
|
+
function ln(i, a, _) {
|
|
101
|
+
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ? _ : _ ? i < a + on : i < a;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
function $(i) {
|
|
104
|
+
return !!(i != null && i.disabled) && !i.disabledReason;
|
|
105
|
+
}
|
|
106
|
+
const dn = k(
|
|
104
107
|
[
|
|
105
108
|
// `relative`: an overlaid panel is positioned against the rail.
|
|
106
109
|
"ds:relative ds:flex ds:shrink-0 ds:h-full",
|
|
@@ -125,19 +128,19 @@ const tn = N(
|
|
|
125
128
|
},
|
|
126
129
|
defaultVariants: { side: "end" }
|
|
127
130
|
}
|
|
128
|
-
),
|
|
131
|
+
), cn = k(
|
|
129
132
|
[
|
|
130
133
|
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
131
134
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
132
135
|
"ds:gap-[var(--spacing-xs)]",
|
|
133
|
-
|
|
136
|
+
tn
|
|
134
137
|
].join(" ")
|
|
135
|
-
),
|
|
138
|
+
), un = k(
|
|
136
139
|
[
|
|
137
140
|
// Positioned by the caller: `relative` docked, absolute when overlaid.
|
|
138
141
|
"ds:flex ds:min-h-0 ds:flex-col ds:h-full",
|
|
139
142
|
"ds:bg-[var(--background)]",
|
|
140
|
-
|
|
143
|
+
nn,
|
|
141
144
|
// Open / collapse: the panel fades and slides from the strip. The WIDTH
|
|
142
145
|
// snaps on purpose — animating it would re-lay-out the main area (a
|
|
143
146
|
// calendar grid) on every frame. Declared at rest so both directions
|
|
@@ -158,7 +161,7 @@ const tn = N(
|
|
|
158
161
|
},
|
|
159
162
|
defaultVariants: { side: "end" }
|
|
160
163
|
}
|
|
161
|
-
),
|
|
164
|
+
), fn = k("", {
|
|
162
165
|
variants: {
|
|
163
166
|
mode: {
|
|
164
167
|
docked: "ds:relative ds:z-[1]",
|
|
@@ -186,12 +189,12 @@ const tn = N(
|
|
|
186
189
|
}
|
|
187
190
|
],
|
|
188
191
|
defaultVariants: { mode: "docked", side: "end" }
|
|
189
|
-
}),
|
|
192
|
+
}), pn = [
|
|
190
193
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
|
|
191
194
|
"ds:flex ds:flex-col",
|
|
192
195
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
|
|
193
196
|
"ds:focus-visible:outline-none"
|
|
194
|
-
].join(" "),
|
|
197
|
+
].join(" "), vn = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", rt = k(
|
|
195
198
|
[
|
|
196
199
|
"ds:flex ds:min-h-0 ds:flex-col",
|
|
197
200
|
"ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
|
|
@@ -216,7 +219,7 @@ const tn = N(
|
|
|
216
219
|
},
|
|
217
220
|
defaultVariants: { layer: "live" }
|
|
218
221
|
}
|
|
219
|
-
),
|
|
222
|
+
), mn = 500, gn = [
|
|
220
223
|
"id",
|
|
221
224
|
"name",
|
|
222
225
|
"for",
|
|
@@ -224,29 +227,29 @@ const tn = N(
|
|
|
224
227
|
"data-component-id",
|
|
225
228
|
"data-testid"
|
|
226
229
|
];
|
|
227
|
-
function
|
|
228
|
-
return window.getComputedStyle(
|
|
230
|
+
function hn(i) {
|
|
231
|
+
return window.getComputedStyle(i).transitionDuration.split(",").some((a) => Number.parseFloat(a) > 0);
|
|
229
232
|
}
|
|
230
|
-
function
|
|
231
|
-
const a =
|
|
232
|
-
return
|
|
233
|
-
var
|
|
234
|
-
const v =
|
|
235
|
-
if (v && ((u.scrollTop !== 0 || u.scrollLeft !== 0) &&
|
|
233
|
+
function bn(i) {
|
|
234
|
+
const a = i.cloneNode(!0), _ = i.querySelectorAll("*"), U = a.querySelectorAll("*"), W = [];
|
|
235
|
+
return _.forEach((u, F) => {
|
|
236
|
+
var Y;
|
|
237
|
+
const v = U[F];
|
|
238
|
+
if (v && ((u.scrollTop !== 0 || u.scrollLeft !== 0) && W.push([v, u.scrollTop, u.scrollLeft]), u instanceof HTMLCanvasElement && v instanceof HTMLCanvasElement))
|
|
236
239
|
try {
|
|
237
|
-
(
|
|
240
|
+
(Y = v.getContext("2d")) == null || Y.drawImage(u, 0, 0);
|
|
238
241
|
} catch {
|
|
239
242
|
}
|
|
240
|
-
}),
|
|
241
|
-
const
|
|
242
|
-
for (const v of
|
|
243
|
-
|
|
243
|
+
}), U.forEach((u) => {
|
|
244
|
+
const F = u instanceof SVGElement;
|
|
245
|
+
for (const v of gn)
|
|
246
|
+
F && v === "id" || u.removeAttribute(v);
|
|
244
247
|
if (u.matches("iframe, video, audio, embed, object, source"))
|
|
245
248
|
for (const v of ["src", "srcdoc", "data", "autoplay"])
|
|
246
249
|
u.removeAttribute(v);
|
|
247
|
-
}), { nodes: Array.from(a.childNodes), scrolls:
|
|
250
|
+
}), { nodes: Array.from(a.childNodes), scrolls: W };
|
|
248
251
|
}
|
|
249
|
-
const
|
|
252
|
+
const yn = k(
|
|
250
253
|
[
|
|
251
254
|
"ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
|
|
252
255
|
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
|
|
@@ -270,7 +273,7 @@ const fn = N(
|
|
|
270
273
|
},
|
|
271
274
|
defaultVariants: { edge: "inline-start" }
|
|
272
275
|
}
|
|
273
|
-
),
|
|
276
|
+
), xn = k(
|
|
274
277
|
[
|
|
275
278
|
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
276
279
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -283,7 +286,7 @@ const fn = N(
|
|
|
283
286
|
"ds:pointer-events-none ds:select-none",
|
|
284
287
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
285
288
|
].join(" ")
|
|
286
|
-
),
|
|
289
|
+
), ot = k(
|
|
287
290
|
// `group/rail-tool` lets an affordance overlay (e.g. a pin star) reveal on
|
|
288
291
|
// hover / focus-within of the whole slot.
|
|
289
292
|
["ds:group/rail-tool ds:relative", "ds:rounded-[var(--radius-sm)]"],
|
|
@@ -305,76 +308,77 @@ const fn = N(
|
|
|
305
308
|
reorderable: !1
|
|
306
309
|
}
|
|
307
310
|
}
|
|
308
|
-
),
|
|
311
|
+
), wn = "ds:opacity-0", it = [
|
|
309
312
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
310
313
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
311
314
|
].join(" ");
|
|
312
|
-
function
|
|
313
|
-
return
|
|
315
|
+
function In(i, a) {
|
|
316
|
+
return i > 99 ? a : String(i);
|
|
314
317
|
}
|
|
315
|
-
const
|
|
318
|
+
const Rn = Vt(
|
|
316
319
|
({
|
|
317
|
-
id:
|
|
320
|
+
id: i,
|
|
318
321
|
tools: a,
|
|
319
|
-
activeToolId:
|
|
320
|
-
defaultActiveToolId:
|
|
321
|
-
onActiveToolChange:
|
|
322
|
+
activeToolId: _,
|
|
323
|
+
defaultActiveToolId: U = null,
|
|
324
|
+
onActiveToolChange: W,
|
|
322
325
|
side: u = "end",
|
|
323
|
-
railLabel:
|
|
326
|
+
railLabel: F,
|
|
324
327
|
resizablePanel: v = !1,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
328
|
+
panelPlacement: Y = "auto",
|
|
329
|
+
panelWidth: lt,
|
|
330
|
+
onPanelWidthChange: dt,
|
|
331
|
+
onReorder: Z,
|
|
332
|
+
formatReorderAnnouncement: se,
|
|
333
|
+
renderToolAffordance: re,
|
|
334
|
+
renderPanelHeader: we,
|
|
335
|
+
dataComponent: ct = "tool-rail",
|
|
336
|
+
agentAdapter: ut = en,
|
|
337
|
+
className: ft
|
|
338
|
+
}, pt) => {
|
|
339
|
+
var Ge, Xe;
|
|
340
|
+
const { t: R } = Ft("ui"), [vt, g] = $t({
|
|
341
|
+
value: _,
|
|
342
|
+
defaultValue: U,
|
|
343
|
+
onChange: W
|
|
344
|
+
}), h = vt ?? null, oe = m([]), L = m(null), [Ie, ie] = I(0), V = m(!1), le = m(!1), N = K(
|
|
341
345
|
() => a.findIndex((e) => e.id === h),
|
|
342
346
|
[a, h]
|
|
343
|
-
), o =
|
|
344
|
-
o && (
|
|
345
|
-
const
|
|
346
|
-
() => a.findIndex((e) =>
|
|
347
|
+
), o = N >= 0 ? a[N] : null, de = m(o);
|
|
348
|
+
o && (de.current = o);
|
|
349
|
+
const mt = K(
|
|
350
|
+
() => a.findIndex((e) => !$(e)),
|
|
347
351
|
[a]
|
|
348
|
-
),
|
|
352
|
+
), Re = K(() => {
|
|
349
353
|
var t;
|
|
350
354
|
const e = (t = a[0]) == null ? void 0 : t.scope;
|
|
351
355
|
return e ? a.findIndex((n) => n.scope && n.scope !== e) : -1;
|
|
352
|
-
}, [a]),
|
|
356
|
+
}, [a]), gt = Re > 0, b = K(() => {
|
|
353
357
|
var n;
|
|
354
358
|
const e = a.findIndex((s) => s.reorderable);
|
|
355
359
|
if (e < 0) return null;
|
|
356
360
|
let t = e;
|
|
357
361
|
for (; t + 1 < a.length && ((n = a[t + 1]) != null && n.reorderable); ) t += 1;
|
|
358
362
|
return { first: e, last: t };
|
|
359
|
-
}, [a]),
|
|
363
|
+
}, [a]), Se = !!Z && b !== null, Te = Pt(), [j, ce] = I(null), [Ee, G] = I(null), E = m(null), { isAccessible: ht } = Xt(E), P = ht || void 0, { containerRef: Ae } = Wt({
|
|
360
364
|
key: a.map((e) => e.id).join(),
|
|
361
365
|
reduceMotion: P
|
|
362
|
-
}),
|
|
366
|
+
}), ue = tt({ reduceMotion: P }), fe = Gt(
|
|
363
367
|
o !== null,
|
|
364
368
|
{ reduceMotion: P }
|
|
365
|
-
),
|
|
369
|
+
), z = o === null && fe.mounted, x = o ?? (z ? de.current : null), { ref: ke } = fe, [bt, yt] = I(null), xt = B(
|
|
366
370
|
(e) => {
|
|
367
|
-
|
|
371
|
+
L.current = e, yt(e), ke(e);
|
|
368
372
|
},
|
|
369
|
-
[
|
|
373
|
+
[ke]
|
|
370
374
|
);
|
|
371
|
-
|
|
375
|
+
A(() => {
|
|
372
376
|
var n;
|
|
373
|
-
const e =
|
|
377
|
+
const e = L.current;
|
|
374
378
|
if (!e) return;
|
|
375
379
|
const t = document.activeElement;
|
|
376
|
-
if (
|
|
377
|
-
const s = (n =
|
|
380
|
+
if (z && t instanceof HTMLElement && e.contains(t)) {
|
|
381
|
+
const s = (n = de.current) == null ? void 0 : n.id, r = E.current, c = (s ? r == null ? void 0 : r.querySelector(
|
|
378
382
|
`[data-tool-id="${CSS.escape(s)}"]`
|
|
379
383
|
) : null) ?? /* The tool left the strip with its panel (a host removed it as it
|
|
380
384
|
closed): the strip's tab stop, else its first enabled icon, so
|
|
@@ -384,75 +388,75 @@ const gn = kt(
|
|
|
384
388
|
)) ?? (r == null ? void 0 : r.querySelector(
|
|
385
389
|
"[data-tool-id]:not(:disabled)"
|
|
386
390
|
));
|
|
387
|
-
t.blur(), e.setAttribute("inert", ""),
|
|
391
|
+
t.blur(), e.setAttribute("inert", ""), c == null || c.focus();
|
|
388
392
|
return;
|
|
389
393
|
}
|
|
390
|
-
e.toggleAttribute("inert",
|
|
391
|
-
}, [
|
|
392
|
-
const
|
|
394
|
+
e.toggleAttribute("inert", z);
|
|
395
|
+
}, [z]);
|
|
396
|
+
const Le = Zt(), [X, Ne] = I(
|
|
393
397
|
(o == null ? void 0 : o.id) ?? null
|
|
394
|
-
), y = (o == null ? void 0 : o.id) ?? null,
|
|
395
|
-
|
|
396
|
-
if (
|
|
397
|
-
if (!
|
|
398
|
-
|
|
398
|
+
), y = (o == null ? void 0 : o.id) ?? null, J = !P && !Le && y !== null && X !== null && X !== y;
|
|
399
|
+
A(() => {
|
|
400
|
+
if (X === y) return;
|
|
401
|
+
if (!J) {
|
|
402
|
+
Ne(y);
|
|
399
403
|
return;
|
|
400
404
|
}
|
|
401
405
|
let e = 0;
|
|
402
|
-
const t = () =>
|
|
406
|
+
const t = () => Ne(y), n = requestAnimationFrame(() => {
|
|
403
407
|
e = requestAnimationFrame(t);
|
|
404
408
|
}), s = window.setTimeout(t, 64);
|
|
405
409
|
return () => {
|
|
406
410
|
cancelAnimationFrame(n), cancelAnimationFrame(e), window.clearTimeout(s);
|
|
407
411
|
};
|
|
408
|
-
}, [y,
|
|
409
|
-
const
|
|
412
|
+
}, [y, X, J]);
|
|
413
|
+
const wt = !!P || Le, ze = m(null), [f, Ce] = I({ liveId: y, serial: 0, focusLost: !1, leaving: [] });
|
|
410
414
|
if (f.liveId !== y) {
|
|
411
|
-
const e = f.liveId !== null && y !== null ? ((
|
|
415
|
+
const e = f.liveId !== null && y !== null ? ((Ge = ze.current) == null ? void 0 : Ge.querySelector(
|
|
412
416
|
':scope > [data-tool-rail-layer="live"]'
|
|
413
417
|
)) ?? null : null, t = f.leaving.filter(
|
|
414
418
|
(n) => n.toolId !== y
|
|
415
419
|
);
|
|
416
|
-
|
|
420
|
+
Ce({
|
|
417
421
|
liveId: y,
|
|
418
422
|
serial: f.serial + 1,
|
|
419
423
|
focusLost: (e == null ? void 0 : e.contains(document.activeElement)) ?? !1,
|
|
420
|
-
leaving: e && !
|
|
424
|
+
leaving: e && !wt ? [
|
|
421
425
|
...t.filter((n) => n.toolId !== f.liveId),
|
|
422
426
|
{
|
|
423
427
|
exitId: `${f.liveId}:${f.serial}`,
|
|
424
428
|
toolId: f.liveId,
|
|
425
|
-
...
|
|
429
|
+
...bn(e)
|
|
426
430
|
}
|
|
427
431
|
] : t
|
|
428
432
|
});
|
|
429
433
|
}
|
|
430
|
-
const
|
|
431
|
-
|
|
434
|
+
const M = B((e) => {
|
|
435
|
+
Ce(
|
|
432
436
|
(t) => t.leaving.some((n) => n.exitId === e) ? {
|
|
433
437
|
...t,
|
|
434
438
|
leaving: t.leaving.filter((n) => n.exitId !== e)
|
|
435
439
|
} : t
|
|
436
440
|
);
|
|
437
|
-
}, []), { leave:
|
|
441
|
+
}, []), { leave: De } = tt({
|
|
438
442
|
reduceMotion: P,
|
|
439
|
-
durationMs:
|
|
443
|
+
durationMs: mn
|
|
440
444
|
});
|
|
441
|
-
|
|
445
|
+
ae(() => {
|
|
442
446
|
for (const { exitId: e } of f.leaving)
|
|
443
|
-
|
|
444
|
-
}, [f.leaving,
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
const
|
|
447
|
+
De(e, () => M(e));
|
|
448
|
+
}, [f.leaving, De, M]);
|
|
449
|
+
const It = x ? f.leaving : [], Rt = ((Xe = f.leaving[f.leaving.length - 1]) == null ? void 0 : Xe.exitId) ?? null, _e = m(f.leaving);
|
|
450
|
+
_e.current = f.leaving;
|
|
451
|
+
const St = B(
|
|
448
452
|
(e) => {
|
|
449
453
|
if (!e || e.childNodes.length > 0) return;
|
|
450
|
-
const t =
|
|
454
|
+
const t = _e.current.find(
|
|
451
455
|
(n) => n.exitId === e.dataset.exitId
|
|
452
456
|
);
|
|
453
457
|
if (t) {
|
|
454
|
-
if (!
|
|
455
|
-
|
|
458
|
+
if (!hn(e)) {
|
|
459
|
+
M(t.exitId);
|
|
456
460
|
return;
|
|
457
461
|
}
|
|
458
462
|
e.setAttribute("inert", ""), e.append(...t.nodes);
|
|
@@ -460,194 +464,195 @@ const gn = kt(
|
|
|
460
464
|
n.scrollTop = s, n.scrollLeft = r;
|
|
461
465
|
}
|
|
462
466
|
},
|
|
463
|
-
[
|
|
467
|
+
[M]
|
|
464
468
|
);
|
|
465
|
-
|
|
469
|
+
A(() => {
|
|
466
470
|
var t, n;
|
|
467
471
|
if (!f.focusLost || !y) return;
|
|
468
472
|
const e = document.activeElement;
|
|
469
|
-
e && e !== document.body || (n = (t =
|
|
473
|
+
e && e !== document.body || (n = (t = E.current) == null ? void 0 : t.querySelector(
|
|
470
474
|
`[data-tool-id="${CSS.escape(y)}"]`
|
|
471
475
|
)) == null || n.focus();
|
|
472
476
|
}, [f.serial]);
|
|
473
|
-
const [
|
|
474
|
-
|
|
475
|
-
const e =
|
|
477
|
+
const [Tt, Ve] = I([]), Pe = m(a);
|
|
478
|
+
ae(() => {
|
|
479
|
+
const e = Pe.current, t = new Set(a.map((s) => s.id)), n = e.filter((s) => !t.has(s.id));
|
|
476
480
|
if (n.length > 0) {
|
|
477
|
-
|
|
478
|
-
const r = new Set(s.map((
|
|
481
|
+
Ve((s) => {
|
|
482
|
+
const r = new Set(s.map((c) => c.id));
|
|
479
483
|
return [
|
|
480
484
|
...s,
|
|
481
|
-
...n.filter((
|
|
485
|
+
...n.filter((c) => !r.has(c.id))
|
|
482
486
|
];
|
|
483
487
|
});
|
|
484
488
|
for (const s of n)
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
(r) => r.filter((
|
|
489
|
+
ue.leave(s.id, () => {
|
|
490
|
+
Ve(
|
|
491
|
+
(r) => r.filter((c) => c.id !== s.id)
|
|
488
492
|
);
|
|
489
493
|
});
|
|
490
494
|
}
|
|
491
|
-
|
|
492
|
-
}, [a,
|
|
493
|
-
const [
|
|
495
|
+
Pe.current = a;
|
|
496
|
+
}, [a, ue]);
|
|
497
|
+
const [Et, At] = I(""), pe = m(!1), Oe = B(
|
|
494
498
|
(e, t) => {
|
|
495
|
-
if (!
|
|
499
|
+
if (!Z || !b) return;
|
|
496
500
|
const n = Math.max(
|
|
497
501
|
b.first,
|
|
498
502
|
Math.min(b.last, t)
|
|
499
503
|
);
|
|
500
504
|
if (n === e) return;
|
|
501
|
-
|
|
505
|
+
Z(e, n);
|
|
502
506
|
const s = a[e];
|
|
503
507
|
if (s) {
|
|
504
|
-
const r =
|
|
508
|
+
const r = se ? se({ tool: s, from: e, to: n }) : R("toolRail.reorderAnnounce", {
|
|
505
509
|
tool: s.label,
|
|
506
510
|
to: n - b.first + 1,
|
|
507
511
|
total: b.last - b.first + 1,
|
|
508
512
|
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
509
513
|
});
|
|
510
|
-
r && (
|
|
514
|
+
r && (pe.current = !pe.current, At(pe.current ? r : `${r}`));
|
|
511
515
|
}
|
|
512
516
|
},
|
|
513
|
-
[
|
|
514
|
-
),
|
|
517
|
+
[Z, b, a, R, se]
|
|
518
|
+
), Be = a[Ie], q = N >= 0 ? N : Be && !$(Be) ? Ie : mt, kt = B(
|
|
515
519
|
(e, t) => {
|
|
516
520
|
const n = a.find((s) => s.id === e);
|
|
517
|
-
!n || n.disabled || (
|
|
521
|
+
!n || n.disabled || (V.current = t, g(h === e ? null : e));
|
|
518
522
|
},
|
|
519
523
|
[a, h, g]
|
|
520
|
-
),
|
|
524
|
+
), Lt = B(
|
|
521
525
|
(e) => {
|
|
522
|
-
var
|
|
526
|
+
var O;
|
|
523
527
|
const t = a.length;
|
|
524
528
|
if (t === 0 || e.altKey) return;
|
|
525
529
|
let n = null;
|
|
526
|
-
if (e.key === "ArrowDown" ? n = (
|
|
530
|
+
if (e.key === "ArrowDown" ? n = (q + 1) % t : e.key === "ArrowUp" ? n = (q - 1 + t) % t : e.key === "Home" ? n = 0 : e.key === "End" && (n = t - 1), n === null) return;
|
|
527
531
|
const s = e.key === "ArrowUp" || e.key === "End";
|
|
528
|
-
let r = n,
|
|
529
|
-
for (;
|
|
530
|
-
r = s ? (r - 1 + t) % t : (r + 1) % t,
|
|
531
|
-
(
|
|
532
|
+
let r = n, c = 0;
|
|
533
|
+
for (; c < t && $(a[r]); )
|
|
534
|
+
r = s ? (r - 1 + t) % t : (r + 1) % t, c += 1;
|
|
535
|
+
$(a[r]) || (e.preventDefault(), ie(r), (O = oe.current[r]) == null || O.focus());
|
|
532
536
|
},
|
|
533
|
-
[a,
|
|
534
|
-
), p =
|
|
535
|
-
|
|
536
|
-
const [
|
|
537
|
-
|
|
537
|
+
[a, q]
|
|
538
|
+
), p = jt(), T = (p == null ? void 0 : p.phone) ?? !1, ve = (p == null ? void 0 : p.sharedWidth) ?? null, Q = p == null ? void 0 : p.minMainWidth, [Fe, je] = I(!1), ee = m(!1);
|
|
539
|
+
ee.current = Fe;
|
|
540
|
+
const C = Y === "overlay" || Fe, [te, Me] = I(null), qe = m(void 0), Ke = m(null);
|
|
541
|
+
A(() => {
|
|
538
542
|
var n;
|
|
539
|
-
const e =
|
|
540
|
-
if (
|
|
541
|
-
|
|
543
|
+
const e = qe.current;
|
|
544
|
+
if (qe.current = h, !T || h === null) {
|
|
545
|
+
te !== null && Me(null);
|
|
542
546
|
return;
|
|
543
547
|
}
|
|
544
|
-
if (
|
|
548
|
+
if (te === h) return;
|
|
545
549
|
if (e !== void 0 && h !== e) {
|
|
546
|
-
|
|
550
|
+
Ke.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, Me(h);
|
|
547
551
|
return;
|
|
548
552
|
}
|
|
549
|
-
const t = (n =
|
|
553
|
+
const t = (n = E.current) == null ? void 0 : n.contains(document.activeElement);
|
|
550
554
|
g(null), t && (p == null || p.focusMain());
|
|
551
|
-
}, [
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
const e =
|
|
555
|
+
}, [T, h, te, g, p]);
|
|
556
|
+
const me = T && o !== null && te === o.id;
|
|
557
|
+
ae(() => {
|
|
558
|
+
const e = E.current;
|
|
555
559
|
if (!e) return;
|
|
556
560
|
const t = (n) => {
|
|
557
|
-
if (n.key !== "Escape" ||
|
|
561
|
+
if (n.key !== "Escape" || N < 0 || n.target instanceof Element && n.target.closest(`[${qt}]`))
|
|
558
562
|
return;
|
|
559
563
|
n.preventDefault();
|
|
560
|
-
const s =
|
|
561
|
-
g(null),
|
|
564
|
+
const s = N;
|
|
565
|
+
g(null), ie(s), requestAnimationFrame(() => {
|
|
562
566
|
var r;
|
|
563
|
-
(r =
|
|
567
|
+
(r = oe.current[s]) == null || r.focus();
|
|
564
568
|
});
|
|
565
569
|
};
|
|
566
570
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
567
|
-
}, [
|
|
568
|
-
if (!
|
|
571
|
+
}, [N, g]), ae(() => {
|
|
572
|
+
if (!C || !o || T) return;
|
|
569
573
|
const e = (t) => {
|
|
570
574
|
t.key !== "Escape" || t.defaultPrevented || (t.preventDefault(), g(null));
|
|
571
575
|
};
|
|
572
576
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
573
|
-
}, [
|
|
577
|
+
}, [C, o, T, g]), A(() => {
|
|
574
578
|
var e;
|
|
575
|
-
o &&
|
|
579
|
+
o && V.current && ((e = L.current) == null || e.focus()), V.current = !1;
|
|
576
580
|
}, [o]);
|
|
577
|
-
const
|
|
578
|
-
edge:
|
|
579
|
-
targetRef:
|
|
580
|
-
cssProperty:
|
|
581
|
-
minSize:
|
|
582
|
-
maxSize:
|
|
583
|
-
defaultSize:
|
|
581
|
+
const He = u === "end" || C ? "inline-start" : "inline-end", { separatorProps: $e, isResizing: ne, isResized: Ue } = Ut({
|
|
582
|
+
edge: He,
|
|
583
|
+
targetRef: L,
|
|
584
|
+
cssProperty: nt,
|
|
585
|
+
minSize: an,
|
|
586
|
+
maxSize: sn,
|
|
587
|
+
defaultSize: rn,
|
|
584
588
|
disabled: !v,
|
|
585
589
|
// A width the user cannot change or reset is a trap: the controlled
|
|
586
590
|
// value applies only while the handle is on.
|
|
587
|
-
size: v ?
|
|
588
|
-
onResize:
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
+
size: v ? lt : void 0,
|
|
592
|
+
onResize: dt
|
|
593
|
+
}), ge = $e["aria-valuenow"];
|
|
594
|
+
A(() => {
|
|
591
595
|
var e;
|
|
592
|
-
!v || !
|
|
593
|
-
|
|
594
|
-
`${
|
|
596
|
+
!v || !Ue || !o || (e = L.current) == null || e.style.setProperty(
|
|
597
|
+
nt,
|
|
598
|
+
`${ge}px`
|
|
595
599
|
);
|
|
596
|
-
}, [o, v,
|
|
597
|
-
const [
|
|
598
|
-
|
|
599
|
-
const e =
|
|
600
|
-
if (!e || !o || !
|
|
600
|
+
}, [o, v, Ue, ge]);
|
|
601
|
+
const [Nt, zt] = I(null), We = !!p && !T && Q !== void 0;
|
|
602
|
+
A(() => {
|
|
603
|
+
const e = L.current;
|
|
604
|
+
if (!e || !o || !We || typeof ResizeObserver > "u") return;
|
|
601
605
|
const t = new ResizeObserver(() => {
|
|
602
606
|
const n = e.offsetWidth;
|
|
603
|
-
|
|
607
|
+
zt((s) => s === n ? s : n);
|
|
604
608
|
});
|
|
605
609
|
return t.observe(e), () => t.disconnect();
|
|
606
|
-
}, [o,
|
|
610
|
+
}, [o, We]), A(() => {
|
|
607
611
|
var r;
|
|
608
|
-
if (!p ||
|
|
609
|
-
|
|
612
|
+
if (!p || T || Q === void 0) {
|
|
613
|
+
ee.current && je(!1);
|
|
610
614
|
return;
|
|
611
615
|
}
|
|
612
|
-
if (
|
|
613
|
-
const e =
|
|
616
|
+
if (ne) return;
|
|
617
|
+
const e = L.current;
|
|
614
618
|
if (!o || !e) return;
|
|
615
|
-
const t = ((r =
|
|
619
|
+
const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s = ln(
|
|
616
620
|
n,
|
|
617
|
-
|
|
618
|
-
|
|
621
|
+
Q,
|
|
622
|
+
ee.current
|
|
619
623
|
);
|
|
620
|
-
s !==
|
|
624
|
+
s !== ee.current && je(s);
|
|
621
625
|
}, [
|
|
622
626
|
p,
|
|
623
|
-
|
|
624
|
-
fe,
|
|
625
|
-
X,
|
|
626
|
-
o,
|
|
627
|
+
T,
|
|
627
628
|
ve,
|
|
628
|
-
|
|
629
|
-
|
|
629
|
+
Q,
|
|
630
|
+
o,
|
|
631
|
+
ge,
|
|
632
|
+
ne,
|
|
633
|
+
Nt
|
|
630
634
|
]);
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
const
|
|
635
|
+
const he = m(h);
|
|
636
|
+
he.current = h;
|
|
637
|
+
const Ye = m("docked");
|
|
638
|
+
Ye.current = me ? "full-screen" : C ? "overlay" : "docked";
|
|
639
|
+
const be = K(
|
|
636
640
|
() => ({
|
|
637
|
-
getActiveToolId: () =>
|
|
638
|
-
getPanelMode: () =>
|
|
641
|
+
getActiveToolId: () => he.current,
|
|
642
|
+
getPanelMode: () => Ye.current,
|
|
639
643
|
setActiveTool: (e) => {
|
|
640
|
-
|
|
644
|
+
var t;
|
|
645
|
+
e !== null && ((t = a.find((n) => n.id === e)) != null && t.disabled) || (V.current = !1, g(e));
|
|
641
646
|
},
|
|
642
647
|
open: (e) => {
|
|
643
648
|
const t = a.find((n) => n.id === e);
|
|
644
|
-
!t || t.disabled || (
|
|
649
|
+
!t || t.disabled || (V.current = !1, g(e));
|
|
645
650
|
},
|
|
646
651
|
close: () => {
|
|
647
|
-
const e =
|
|
648
|
-
|
|
652
|
+
const e = he.current;
|
|
653
|
+
V.current = !1, g(null), e != null && requestAnimationFrame(() => {
|
|
649
654
|
var t, n;
|
|
650
|
-
(n = (t =
|
|
655
|
+
(n = (t = E.current) == null ? void 0 : t.querySelector(
|
|
651
656
|
`[data-tool-id="${CSS.escape(e)}"]`
|
|
652
657
|
)) == null || n.focus();
|
|
653
658
|
});
|
|
@@ -655,149 +660,151 @@ const gn = kt(
|
|
|
655
660
|
}),
|
|
656
661
|
[a, g]
|
|
657
662
|
);
|
|
658
|
-
|
|
659
|
-
const
|
|
663
|
+
Ot(pt, () => be, [be]), Jt(ut, be, i);
|
|
664
|
+
const Ct = R("toolRail.badgeCountOverflow", {
|
|
660
665
|
defaultValue: "99+"
|
|
661
|
-
}),
|
|
662
|
-
return /* @__PURE__ */
|
|
666
|
+
}), Ze = F ?? R("toolRail.railLabel", { defaultValue: "Tools" });
|
|
667
|
+
return /* @__PURE__ */ w(
|
|
663
668
|
"aside",
|
|
664
669
|
{
|
|
665
|
-
ref:
|
|
666
|
-
"aria-label":
|
|
667
|
-
"data-component":
|
|
668
|
-
"data-component-id":
|
|
670
|
+
ref: E,
|
|
671
|
+
"aria-label": Ze,
|
|
672
|
+
"data-component": ct,
|
|
673
|
+
"data-component-id": i,
|
|
669
674
|
"data-side": u,
|
|
670
|
-
"data-panel-mode":
|
|
671
|
-
className: [
|
|
675
|
+
"data-panel-mode": me ? "full-screen" : C ? "overlay" : "docked",
|
|
676
|
+
className: [dn({ side: u }), ft].filter(Boolean).join(" "),
|
|
672
677
|
children: [
|
|
673
|
-
|
|
674
|
-
|
|
678
|
+
Se ? /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Et }) : null,
|
|
679
|
+
x && !T ? /* @__PURE__ */ w(
|
|
675
680
|
"section",
|
|
676
681
|
{
|
|
677
|
-
ref:
|
|
682
|
+
ref: xt,
|
|
678
683
|
tabIndex: -1,
|
|
679
|
-
"aria-label":
|
|
680
|
-
tool:
|
|
684
|
+
"aria-label": R("toolRail.panelLabel", {
|
|
685
|
+
tool: x.label,
|
|
681
686
|
defaultValue: "{{tool}} panel"
|
|
682
687
|
}),
|
|
683
|
-
"aria-hidden":
|
|
684
|
-
"data-tool-rail-state":
|
|
685
|
-
"data-presence":
|
|
686
|
-
"data-active-tool":
|
|
687
|
-
"data-resizing":
|
|
688
|
+
"aria-hidden": z || void 0,
|
|
689
|
+
"data-tool-rail-state": z ? "collapsing" : "expanded",
|
|
690
|
+
"data-presence": fe.phase,
|
|
691
|
+
"data-active-tool": x.id,
|
|
692
|
+
"data-resizing": ne ? "" : void 0,
|
|
688
693
|
className: [
|
|
689
694
|
// Overlaid, it slides in from the strip on its inline end.
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
mode:
|
|
695
|
+
un({ side: C ? "end" : u }),
|
|
696
|
+
fn({
|
|
697
|
+
mode: C ? "overlay" : "docked",
|
|
693
698
|
side: u
|
|
694
699
|
}),
|
|
695
700
|
"ds:focus-visible:outline-none"
|
|
696
701
|
].filter(Boolean).join(" "),
|
|
697
702
|
children: [
|
|
698
|
-
/* @__PURE__ */
|
|
699
|
-
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
|
|
703
|
+
/* @__PURE__ */ w(Mt, { container: bt, children: [
|
|
704
|
+
we ? we(x, { isActive: !z }) : null,
|
|
705
|
+
/* @__PURE__ */ w("div", { ref: ze, className: vn, children: [
|
|
706
|
+
It.map((e) => /* @__PURE__ */ d(
|
|
702
707
|
"div",
|
|
703
708
|
{
|
|
704
|
-
ref:
|
|
709
|
+
ref: St,
|
|
705
710
|
"aria-hidden": "true",
|
|
706
711
|
"data-exit-id": e.exitId,
|
|
707
712
|
"data-tool-rail-body": e.toolId,
|
|
708
713
|
"data-tool-rail-layer": "leaving",
|
|
709
|
-
"data-presence":
|
|
710
|
-
className:
|
|
714
|
+
"data-presence": J && e.exitId === Rt ? "present" : "leaving",
|
|
715
|
+
className: rt({ layer: "leaving" }),
|
|
711
716
|
onTransitionEnd: (t) => {
|
|
712
|
-
t.target === t.currentTarget &&
|
|
717
|
+
t.target === t.currentTarget && M(e.exitId);
|
|
713
718
|
}
|
|
714
719
|
},
|
|
715
720
|
e.exitId
|
|
716
721
|
)),
|
|
717
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ w(
|
|
718
723
|
"div",
|
|
719
724
|
{
|
|
720
|
-
"data-tool-rail-body":
|
|
725
|
+
"data-tool-rail-body": x.id,
|
|
721
726
|
"data-tool-rail-layer": "live",
|
|
722
|
-
"data-presence":
|
|
723
|
-
className:
|
|
727
|
+
"data-presence": J ? "entering" : "present",
|
|
728
|
+
className: rt({ layer: "live" }),
|
|
724
729
|
children: [
|
|
725
|
-
|
|
726
|
-
|
|
730
|
+
x.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: x.header }) : null,
|
|
731
|
+
x.fill ? (
|
|
727
732
|
// data-tool-fill: a self-scrolling panel owns its own native
|
|
728
733
|
// scroll, so a token rule paints its scrollbar to match the
|
|
729
734
|
// 8px overlay. See tokens/index.css.
|
|
730
|
-
/* @__PURE__ */
|
|
731
|
-
) : /* @__PURE__ */
|
|
732
|
-
|
|
735
|
+
/* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: x.panel })
|
|
736
|
+
) : /* @__PURE__ */ d(
|
|
737
|
+
et,
|
|
733
738
|
{
|
|
734
739
|
orientation: "vertical",
|
|
740
|
+
fillViewport: !0,
|
|
735
741
|
className: "ds:flex-1 ds:min-h-0",
|
|
736
|
-
children:
|
|
742
|
+
children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: x.panel })
|
|
737
743
|
}
|
|
738
744
|
)
|
|
739
745
|
]
|
|
740
746
|
},
|
|
741
|
-
|
|
747
|
+
x.id
|
|
742
748
|
)
|
|
743
749
|
] })
|
|
744
750
|
] }),
|
|
745
|
-
v ? /* @__PURE__ */
|
|
751
|
+
v ? /* @__PURE__ */ d(
|
|
746
752
|
"div",
|
|
747
753
|
{
|
|
748
|
-
|
|
749
|
-
"aria-label":
|
|
754
|
+
...$e,
|
|
755
|
+
"aria-label": R("toolRail.resizePanel", {
|
|
750
756
|
defaultValue: "Resize tool panel"
|
|
751
757
|
}),
|
|
752
|
-
"data-resizing":
|
|
753
|
-
className:
|
|
758
|
+
"data-resizing": ne ? "" : void 0,
|
|
759
|
+
className: yn({ edge: He })
|
|
754
760
|
}
|
|
755
761
|
) : null
|
|
756
762
|
]
|
|
757
763
|
}
|
|
758
764
|
) : null,
|
|
759
|
-
|
|
760
|
-
|
|
765
|
+
me && o ? /* @__PURE__ */ d(
|
|
766
|
+
H.Root,
|
|
761
767
|
{
|
|
762
768
|
open: !0,
|
|
763
769
|
onOpenChange: (e) => {
|
|
764
770
|
e || g(null);
|
|
765
771
|
},
|
|
766
|
-
children: /* @__PURE__ */
|
|
767
|
-
|
|
772
|
+
children: /* @__PURE__ */ d(H.Portal, { children: /* @__PURE__ */ w(
|
|
773
|
+
H.Content,
|
|
768
774
|
{
|
|
769
775
|
"aria-describedby": void 0,
|
|
770
776
|
"data-component": "tool-rail-panel",
|
|
771
777
|
"data-active-tool": o.id,
|
|
772
|
-
className:
|
|
778
|
+
className: pn,
|
|
773
779
|
onCloseAutoFocus: (e) => {
|
|
774
|
-
const t =
|
|
780
|
+
const t = Ke.current;
|
|
775
781
|
t != null && t.isConnected && (e.preventDefault(), t.focus());
|
|
776
782
|
},
|
|
777
783
|
children: [
|
|
778
|
-
/* @__PURE__ */
|
|
779
|
-
/* @__PURE__ */
|
|
784
|
+
/* @__PURE__ */ w("div", { className: "ds:flex ds:shrink-0 ds:justify-end ds:p-[var(--spacing-xs)]", children: [
|
|
785
|
+
/* @__PURE__ */ d(H.Title, { className: "ds:sr-only", children: R("toolRail.panelLabel", {
|
|
780
786
|
tool: o.label,
|
|
781
787
|
defaultValue: "{{tool}} panel"
|
|
782
788
|
}) }),
|
|
783
|
-
/* @__PURE__ */
|
|
784
|
-
|
|
789
|
+
/* @__PURE__ */ d(H.Close, { asChild: !0, children: /* @__PURE__ */ d(
|
|
790
|
+
xe,
|
|
785
791
|
{
|
|
786
|
-
icon: /* @__PURE__ */
|
|
792
|
+
icon: /* @__PURE__ */ d(Qt, { "aria-hidden": "true" }),
|
|
787
793
|
intent: "ghost",
|
|
788
794
|
size: "lg",
|
|
789
|
-
"aria-label":
|
|
795
|
+
"aria-label": R("common.close", { defaultValue: "Close" })
|
|
790
796
|
}
|
|
791
797
|
) })
|
|
792
798
|
] }),
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
o.header ? /* @__PURE__ */
|
|
795
|
-
o.fill ? /* @__PURE__ */
|
|
796
|
-
|
|
799
|
+
/* @__PURE__ */ w(Kt, { actions: null, children: [
|
|
800
|
+
o.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: o.header }) : null,
|
|
801
|
+
o.fill ? /* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: o.panel }) : /* @__PURE__ */ d(
|
|
802
|
+
et,
|
|
797
803
|
{
|
|
798
804
|
orientation: "vertical",
|
|
805
|
+
fillViewport: !0,
|
|
799
806
|
className: "ds:flex-1 ds:min-h-0",
|
|
800
|
-
children: o.panel
|
|
807
|
+
children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: o.panel })
|
|
801
808
|
}
|
|
802
809
|
)
|
|
803
810
|
] })
|
|
@@ -806,24 +813,24 @@ const gn = kt(
|
|
|
806
813
|
) })
|
|
807
814
|
}
|
|
808
815
|
) : null,
|
|
809
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ d(Ht, { children: /* @__PURE__ */ w(
|
|
810
817
|
"div",
|
|
811
818
|
{
|
|
812
|
-
ref:
|
|
819
|
+
ref: Ae,
|
|
813
820
|
role: "toolbar",
|
|
814
821
|
"aria-orientation": "vertical",
|
|
815
|
-
"aria-label":
|
|
816
|
-
className:
|
|
817
|
-
onKeyDown:
|
|
822
|
+
"aria-label": Ze,
|
|
823
|
+
className: cn(),
|
|
824
|
+
onKeyDown: Lt,
|
|
818
825
|
children: [
|
|
819
826
|
a.map((e, t) => {
|
|
820
|
-
const n = e.id === h, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ?
|
|
827
|
+
const n = e.id === h, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ? R("toolRail.toolWithCount", {
|
|
821
828
|
tool: e.label,
|
|
822
829
|
count: e.badgeCount,
|
|
823
830
|
defaultValue: "{{tool}}, {{count}} updates"
|
|
824
|
-
}) : e.label,
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
|
|
831
|
+
}) : e.label, c = Se && !!e.reorderable && !e.disabled, O = c ? `${Te}-${e.id}` : void 0, D = e.disabled ? e.disabledReason : void 0, ye = D ? `${Te}-${e.id}-reason` : void 0;
|
|
832
|
+
return /* @__PURE__ */ w(Bt, { children: [
|
|
833
|
+
gt && t === Re ? /* @__PURE__ */ d(
|
|
827
834
|
"div",
|
|
828
835
|
{
|
|
829
836
|
role: "separator",
|
|
@@ -831,100 +838,113 @@ const gn = kt(
|
|
|
831
838
|
className: "ds:my-[var(--spacing-2xs)] ds:h-px ds:w-[var(--spacing-lg)] ds:shrink-0 ds:bg-[var(--border)] ds:forced-colors:bg-[CanvasText]"
|
|
832
839
|
}
|
|
833
840
|
) : null,
|
|
834
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ w(
|
|
835
842
|
"div",
|
|
836
843
|
{
|
|
837
844
|
className: [
|
|
838
|
-
|
|
839
|
-
dragging:
|
|
840
|
-
dropTarget:
|
|
841
|
-
reorderable:
|
|
845
|
+
ot({
|
|
846
|
+
dragging: j === t,
|
|
847
|
+
dropTarget: Ee === t && j !== t,
|
|
848
|
+
reorderable: c
|
|
842
849
|
}),
|
|
843
|
-
|
|
844
|
-
|
|
850
|
+
it,
|
|
851
|
+
Yt
|
|
845
852
|
].filter(Boolean).join(" "),
|
|
846
853
|
"data-reflow-id": e.id,
|
|
847
|
-
"data-dragging":
|
|
848
|
-
draggable:
|
|
849
|
-
onDragStart:
|
|
850
|
-
|
|
854
|
+
"data-dragging": j === t ? "" : void 0,
|
|
855
|
+
draggable: c || void 0,
|
|
856
|
+
onDragStart: c ? (l) => {
|
|
857
|
+
ce(t), l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData(
|
|
851
858
|
"text/plain",
|
|
852
859
|
String(t)
|
|
853
860
|
);
|
|
854
861
|
} : void 0,
|
|
855
|
-
onDragOver:
|
|
856
|
-
|
|
862
|
+
onDragOver: c ? (l) => {
|
|
863
|
+
j !== null && (l.preventDefault(), l.dataTransfer.dropEffect = "move", Ee !== t && G(t));
|
|
857
864
|
} : void 0,
|
|
858
|
-
onDragLeave:
|
|
859
|
-
onDrop:
|
|
860
|
-
|
|
861
|
-
const
|
|
862
|
-
|
|
865
|
+
onDragLeave: c ? () => G((l) => l === t ? null : l) : void 0,
|
|
866
|
+
onDrop: c ? (l) => {
|
|
867
|
+
l.preventDefault();
|
|
868
|
+
const S = j;
|
|
869
|
+
G(null), ce(null), !(S === null || S === t) && Oe(S, t);
|
|
863
870
|
} : void 0,
|
|
864
|
-
onDragEnd:
|
|
865
|
-
|
|
871
|
+
onDragEnd: c ? () => {
|
|
872
|
+
ce(null), G(null);
|
|
866
873
|
} : void 0,
|
|
867
874
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
|
|
875
|
+
/* @__PURE__ */ d(
|
|
876
|
+
xe,
|
|
870
877
|
{
|
|
871
|
-
ref: (
|
|
872
|
-
|
|
878
|
+
ref: (l) => {
|
|
879
|
+
oe.current[t] = l;
|
|
873
880
|
},
|
|
874
881
|
icon: e.icon,
|
|
875
|
-
tooltip: e.label,
|
|
882
|
+
tooltip: D ?? e.label,
|
|
876
883
|
"aria-label": r,
|
|
877
884
|
intent: "ghost",
|
|
878
885
|
size: "sm",
|
|
879
|
-
disabled: e.disabled,
|
|
886
|
+
disabled: e.disabled && !D,
|
|
887
|
+
"aria-disabled": D ? !0 : void 0,
|
|
888
|
+
className: D ? "ds:aria-disabled:focus-visible:opacity-100 ds:aria-disabled:focus-visible:*:opacity-50" : void 0,
|
|
880
889
|
"aria-pressed": n,
|
|
881
890
|
"aria-expanded": n,
|
|
882
891
|
"data-active": n ? e.id : void 0,
|
|
883
892
|
"data-tool-id": e.id,
|
|
884
|
-
"aria-describedby":
|
|
885
|
-
"aria-keyshortcuts":
|
|
886
|
-
tabIndex: t ===
|
|
893
|
+
"aria-describedby": ye ?? O,
|
|
894
|
+
"aria-keyshortcuts": c ? "Alt+ArrowUp Alt+ArrowDown" : void 0,
|
|
895
|
+
tabIndex: t === q ? 0 : -1,
|
|
887
896
|
onFocus: () => {
|
|
888
|
-
e
|
|
897
|
+
$(e) || ie(t);
|
|
889
898
|
},
|
|
890
|
-
onClick: () =>
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
oe.current = !0;
|
|
899
|
+
onClick: (l) => {
|
|
900
|
+
if (D) {
|
|
901
|
+
l.preventDefault();
|
|
894
902
|
return;
|
|
895
903
|
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
904
|
+
kt(e.id, le.current);
|
|
905
|
+
},
|
|
906
|
+
onKeyDown: (l) => {
|
|
907
|
+
if (l.key === "Enter" || l.key === " ") {
|
|
908
|
+
le.current = !0;
|
|
909
|
+
return;
|
|
910
|
+
}
|
|
911
|
+
if (c && l.altKey && b) {
|
|
912
|
+
let S = null;
|
|
913
|
+
if (l.key === "ArrowUp" ? S = t - 1 : l.key === "ArrowDown" ? S = t + 1 : l.key === "Home" ? S = b.first : l.key === "End" && (S = b.last), S !== null) {
|
|
914
|
+
l.preventDefault();
|
|
915
|
+
const Dt = Math.max(
|
|
901
916
|
b.first,
|
|
902
|
-
Math.min(b.last,
|
|
903
|
-
),
|
|
904
|
-
|
|
905
|
-
var
|
|
906
|
-
(
|
|
907
|
-
`[data-tool-id="${CSS.escape(
|
|
908
|
-
)) == null ||
|
|
917
|
+
Math.min(b.last, S)
|
|
918
|
+
), _t = e.id;
|
|
919
|
+
Oe(t, Dt), requestAnimationFrame(() => {
|
|
920
|
+
var Je, Qe;
|
|
921
|
+
(Qe = (Je = E.current) == null ? void 0 : Je.querySelector(
|
|
922
|
+
`[data-tool-id="${CSS.escape(_t)}"]`
|
|
923
|
+
)) == null || Qe.focus();
|
|
909
924
|
});
|
|
910
925
|
}
|
|
911
926
|
}
|
|
912
927
|
},
|
|
913
|
-
onKeyUp: (
|
|
914
|
-
(
|
|
928
|
+
onKeyUp: (l) => {
|
|
929
|
+
(l.key === "Enter" || l.key === " ") && (le.current = !1);
|
|
915
930
|
}
|
|
916
931
|
}
|
|
917
932
|
),
|
|
918
|
-
s ? /* @__PURE__ */
|
|
933
|
+
s ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: xn(), children: In(
|
|
919
934
|
e.badgeCount,
|
|
920
|
-
|
|
935
|
+
Ct
|
|
921
936
|
) }) : null,
|
|
922
|
-
|
|
937
|
+
re == null ? void 0 : re(e, {
|
|
923
938
|
index: t,
|
|
924
939
|
isActive: n,
|
|
925
|
-
isRovingTarget: t ===
|
|
940
|
+
isRovingTarget: t === q
|
|
926
941
|
}),
|
|
927
|
-
|
|
942
|
+
ye ? (
|
|
943
|
+
/* Hidden: it is the icon's description, not a second
|
|
944
|
+
copy of the reason to read in the toolbar. */
|
|
945
|
+
/* @__PURE__ */ d("span", { id: ye, hidden: !0, children: D })
|
|
946
|
+
) : null,
|
|
947
|
+
O ? /* @__PURE__ */ d("span", { id: O, className: "ds:sr-only", children: R("toolRail.reorderInstructions", {
|
|
928
948
|
tool: e.label,
|
|
929
949
|
defaultValue: "Reorder {{tool}}. Press Alt + Up or Alt + Down to move."
|
|
930
950
|
}) }) : null
|
|
@@ -933,22 +953,22 @@ const gn = kt(
|
|
|
933
953
|
)
|
|
934
954
|
] }, e.id);
|
|
935
955
|
}),
|
|
936
|
-
|
|
937
|
-
(e) =>
|
|
956
|
+
Tt.map(
|
|
957
|
+
(e) => ue.isLeaving(e.id) ? /* @__PURE__ */ d(
|
|
938
958
|
"div",
|
|
939
959
|
{
|
|
940
960
|
className: [
|
|
941
|
-
|
|
961
|
+
ot({
|
|
942
962
|
dragging: !1,
|
|
943
963
|
dropTarget: !1,
|
|
944
964
|
reorderable: !1
|
|
945
965
|
}),
|
|
946
|
-
|
|
947
|
-
|
|
966
|
+
it,
|
|
967
|
+
wn
|
|
948
968
|
].filter(Boolean).join(" "),
|
|
949
969
|
"aria-hidden": "true",
|
|
950
|
-
children: /* @__PURE__ */
|
|
951
|
-
|
|
970
|
+
children: /* @__PURE__ */ d(
|
|
971
|
+
xe,
|
|
952
972
|
{
|
|
953
973
|
icon: e.icon,
|
|
954
974
|
intent: "ghost",
|
|
@@ -969,9 +989,9 @@ const gn = kt(
|
|
|
969
989
|
);
|
|
970
990
|
}
|
|
971
991
|
);
|
|
972
|
-
|
|
992
|
+
Rn.displayName = "ToolRail";
|
|
973
993
|
export {
|
|
974
|
-
|
|
975
|
-
|
|
994
|
+
Rn as T,
|
|
995
|
+
en as t
|
|
976
996
|
};
|
|
977
|
-
//# sourceMappingURL=tool-rail-
|
|
997
|
+
//# sourceMappingURL=tool-rail-B4p6MmxA.js.map
|