@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
|
@@ -4,9 +4,9 @@ import { useTranslation as K } from "react-i18next";
|
|
|
4
4
|
import { d as s, b as L } from "../_chunks/toast-Cgmh1cvj.js";
|
|
5
5
|
import { a as M } from "../_chunks/tooltip-uEBdD1-5.js";
|
|
6
6
|
import { C as Q } from "../_chunks/calendar-editor-guard-9fShhNIA.js";
|
|
7
|
-
import { S as V } from "../_chunks/calendar.sheets-
|
|
8
|
-
import { W as X } from "../_chunks/calendar-waiting-list-panel-
|
|
9
|
-
import { P as Y } from "../_chunks/privacy-mask-
|
|
7
|
+
import { S as V } from "../_chunks/calendar.sheets-OmTiQdCg.js";
|
|
8
|
+
import { W as X } from "../_chunks/calendar-waiting-list-panel-DukgSOPH.js";
|
|
9
|
+
import { P as Y } from "../_chunks/privacy-mask-CaLBAxzj.js";
|
|
10
10
|
import { H as Z } from "../_chunks/hourglass-BEAzW1wE.js";
|
|
11
11
|
const q = { open: () => {
|
|
12
12
|
}, close: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfadocs/ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.151.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -421,6 +421,10 @@
|
|
|
421
421
|
"types": "./dist/components/error-summary/index.d.ts",
|
|
422
422
|
"import": "./dist/components/error-summary/index.js"
|
|
423
423
|
},
|
|
424
|
+
"./feature-preview-switch": {
|
|
425
|
+
"types": "./dist/components/feature-preview-switch/index.d.ts",
|
|
426
|
+
"import": "./dist/components/feature-preview-switch/index.js"
|
|
427
|
+
},
|
|
424
428
|
"./file-manager": {
|
|
425
429
|
"types": "./dist/components/file-manager/index.d.ts",
|
|
426
430
|
"import": "./dist/components/file-manager/index.js"
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as P, isValidElement as D } from "react";
|
|
3
|
-
import { c as V } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as y } from "react-i18next";
|
|
5
|
-
import { A as z } from "./avatar-Dp5apm1d.js";
|
|
6
|
-
import { D as l } from "./description-list-DA4TgL_I.js";
|
|
7
|
-
import { H as E } from "./hover-card-CS8ulBf9.js";
|
|
8
|
-
import { a as H } from "./workflow-status-Cg7yjnye.js";
|
|
9
|
-
import { C as I } from "./clock-Drd4Wtis.js";
|
|
10
|
-
import { V as S } from "./video-BheNGvsu.js";
|
|
11
|
-
import { A as W } from "./armchair-BaLDW6Hz.js";
|
|
12
|
-
import { E as j } from "./eye-off-C_4xkbRP.js";
|
|
13
|
-
import { a as L } from "./entity-card-p-LANpYt.js";
|
|
14
|
-
const R = V(
|
|
15
|
-
"ds:flex ds:min-w-0 ds:flex-col ds:gap-[var(--spacing-sm)]"
|
|
16
|
-
), T = P(
|
|
17
|
-
({
|
|
18
|
-
name: t,
|
|
19
|
-
avatarSrc: h,
|
|
20
|
-
time: u,
|
|
21
|
-
location: m,
|
|
22
|
-
telehealth: x = !1,
|
|
23
|
-
status: s,
|
|
24
|
-
statusLabel: k,
|
|
25
|
-
details: d,
|
|
26
|
-
treatment: p,
|
|
27
|
-
flags: f,
|
|
28
|
-
privacy: r = !1,
|
|
29
|
-
className: N,
|
|
30
|
-
...g
|
|
31
|
-
}, w) => {
|
|
32
|
-
const { t: i } = y("ui"), n = s ? L(s) : null, v = n == null ? void 0 : n.Icon, b = x ? S : W, c = !r, A = [
|
|
33
|
-
{ icon: /* @__PURE__ */ e(I, {}), label: i("appointmentPeek.time"), value: u },
|
|
34
|
-
...m ? [
|
|
35
|
-
{
|
|
36
|
-
icon: /* @__PURE__ */ e(b, {}),
|
|
37
|
-
label: i("appointmentPeek.location"),
|
|
38
|
-
value: m
|
|
39
|
-
}
|
|
40
|
-
] : [],
|
|
41
|
-
...c && p ? [
|
|
42
|
-
{
|
|
43
|
-
icon: null,
|
|
44
|
-
label: i("calendarWorkspace.details.care"),
|
|
45
|
-
value: p
|
|
46
|
-
}
|
|
47
|
-
] : [],
|
|
48
|
-
...c && d ? d.map((a) => ({
|
|
49
|
-
icon: D(a.icon) ? a.icon : null,
|
|
50
|
-
label: a.label,
|
|
51
|
-
value: a.value
|
|
52
|
-
})) : []
|
|
53
|
-
];
|
|
54
|
-
return /* @__PURE__ */ o(
|
|
55
|
-
"div",
|
|
56
|
-
{
|
|
57
|
-
ref: w,
|
|
58
|
-
"data-component": "appointment-peek",
|
|
59
|
-
"data-status": s,
|
|
60
|
-
className: R({ className: N }),
|
|
61
|
-
...g,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:items-start ds:gap-[var(--spacing-sm)]", children: [
|
|
64
|
-
r ? null : /* @__PURE__ */ e(
|
|
65
|
-
z,
|
|
66
|
-
{
|
|
67
|
-
size: "sm",
|
|
68
|
-
name: t,
|
|
69
|
-
src: h,
|
|
70
|
-
"aria-hidden": "true",
|
|
71
|
-
className: "ds:shrink-0"
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
/* @__PURE__ */ o("div", { className: "ds:flex ds:min-w-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-2xs)]", children: [
|
|
75
|
-
/* @__PURE__ */ e(E.Heading, { className: "ds:min-w-0", children: r ? /* @__PURE__ */ o("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
76
|
-
/* @__PURE__ */ e(
|
|
77
|
-
j,
|
|
78
|
-
{
|
|
79
|
-
"aria-hidden": "true",
|
|
80
|
-
className: "ds:size-4 ds:shrink-0"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
i("appointmentPeek.hiddenName")
|
|
84
|
-
] }) : t }),
|
|
85
|
-
c && f ? /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
86
|
-
] })
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ e(
|
|
89
|
-
l,
|
|
90
|
-
{
|
|
91
|
-
layout: "inline",
|
|
92
|
-
density: "compact",
|
|
93
|
-
divider: "none",
|
|
94
|
-
className: "ds:[--description-list-icon-color:var(--accent)]",
|
|
95
|
-
children: A.map((a, C) => /* @__PURE__ */ o(l.Row, { icon: a.icon, children: [
|
|
96
|
-
/* @__PURE__ */ e(l.Term, { children: a.label }),
|
|
97
|
-
/* @__PURE__ */ e(l.Detail, { children: a.value })
|
|
98
|
-
] }, C))
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
s && n && v ? /* @__PURE__ */ e("div", { "data-slot": "workflow", children: /* @__PURE__ */ e(
|
|
102
|
-
H,
|
|
103
|
-
{
|
|
104
|
-
size: "sm",
|
|
105
|
-
value: s,
|
|
106
|
-
option: {
|
|
107
|
-
value: s,
|
|
108
|
-
label: k ?? i(`appointmentCard.state.${s}`),
|
|
109
|
-
icon: /* @__PURE__ */ e(v, { "aria-hidden": "true" }),
|
|
110
|
-
tone: n.tone
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
) }) : null
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
T.displayName = "AppointmentPeek";
|
|
120
|
-
export {
|
|
121
|
-
T as A
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=appointment-peek-B3raO90X.js.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { c } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v1.22.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const e = [
|
|
9
|
-
["path", { d: "M16 2v2", key: "scm5qe" }],
|
|
10
|
-
["path", { d: "M17.915 22a6 6 0 0 0-12 0", key: "suqz9p" }],
|
|
11
|
-
["path", { d: "M8 2v2", key: "pbkmx" }],
|
|
12
|
-
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
13
|
-
["rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", key: "12vinp" }]
|
|
14
|
-
], o = c("contact-round", e);
|
|
15
|
-
export {
|
|
16
|
-
o as C
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=contact-round-DiSvB3LP.js.map
|
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import { jsx as M, jsxs as P, Fragment as ho } from "react/jsx-runtime";
|
|
2
|
-
import { useState as D, useCallback as R, useMemo as x, useRef as O, useEffect as oo, useContext as N, useId as yo, createContext as Co, forwardRef as wo } from "react";
|
|
3
|
-
import { useTranslation as Ao } from "react-i18next";
|
|
4
|
-
import { I as F } from "./icon-button-u9VMQn3x.js";
|
|
5
|
-
import { a as Mo } from "./panel-header-CbtlTe85.js";
|
|
6
|
-
import { T as xo } from "./tool-rail-DjPEiBa2.js";
|
|
7
|
-
import { u as W } from "./use-persistent-state-nZwZAnE9.js";
|
|
8
|
-
import { S as ko } from "./star-Bf9L2Uot.js";
|
|
9
|
-
import { X as So } from "./x-B5YnXwCz.js";
|
|
10
|
-
const Vo = {
|
|
11
|
-
id: "control-room-rail",
|
|
12
|
-
capabilities: ["open", "close", "select_single"],
|
|
13
|
-
state: {
|
|
14
|
-
activeToolId: {
|
|
15
|
-
type: "string | null",
|
|
16
|
-
descriptionKey: "ui.toolRail.agent.state.activeToolId",
|
|
17
|
-
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.",
|
|
18
|
-
read: (e) => e.getActiveToolId()
|
|
19
|
-
},
|
|
20
|
-
panelMode: {
|
|
21
|
-
type: "'docked' | 'overlay' | 'full-screen'",
|
|
22
|
-
descriptionKey: "ui.agent.controlRoomRail.state.panelMode",
|
|
23
|
-
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.",
|
|
24
|
-
read: (e) => e.getPanelMode()
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
actions: {
|
|
28
|
-
open: {
|
|
29
|
-
// Pure ephemeral panel state (open) — no data loss, no external effect.
|
|
30
|
-
safety: "read",
|
|
31
|
-
argsType: "{ id: string }",
|
|
32
|
-
argsSchema: {
|
|
33
|
-
type: "object",
|
|
34
|
-
properties: { id: { type: "string" } },
|
|
35
|
-
required: ["id"]
|
|
36
|
-
},
|
|
37
|
-
idempotent: !0,
|
|
38
|
-
descriptionKey: "ui.toolRail.agent.actions.open",
|
|
39
|
-
description: "Open the given tool's panel.",
|
|
40
|
-
examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
|
|
41
|
-
invoke: (e, r) => {
|
|
42
|
-
e.open(r.id);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
close: {
|
|
46
|
-
safety: "read",
|
|
47
|
-
idempotent: !0,
|
|
48
|
-
descriptionKey: "ui.toolRail.agent.actions.close",
|
|
49
|
-
description: "Collapse the rail to its strip (no active tool).",
|
|
50
|
-
invoke: (e) => {
|
|
51
|
-
e.close();
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
select_tool: {
|
|
55
|
-
safety: "read",
|
|
56
|
-
argsType: "{ id: string | null }",
|
|
57
|
-
argsSchema: {
|
|
58
|
-
type: "object",
|
|
59
|
-
properties: { id: { type: ["string", "null"] } },
|
|
60
|
-
required: ["id"]
|
|
61
|
-
},
|
|
62
|
-
idempotent: !0,
|
|
63
|
-
descriptionKey: "ui.toolRail.agent.actions.selectTool",
|
|
64
|
-
description: "Set the active tool by id (opens its panel), or pass null to collapse.",
|
|
65
|
-
invoke: (e, r) => {
|
|
66
|
-
e.setActiveTool(r.id);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
domHooks: {
|
|
71
|
-
root: {
|
|
72
|
-
attr: "data-component",
|
|
73
|
-
value: "control-room-rail",
|
|
74
|
-
description: "Marks the ControlRoomRail wrapper."
|
|
75
|
-
},
|
|
76
|
-
instanceId: {
|
|
77
|
-
attr: "data-component-id",
|
|
78
|
-
sourceProp: "id",
|
|
79
|
-
description: "Sourced from the id prop. Required to address a specific rail from the agent."
|
|
80
|
-
},
|
|
81
|
-
item: {
|
|
82
|
-
attr: "data-tool-id",
|
|
83
|
-
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}, jo = 1e3, _ = Co(null);
|
|
87
|
-
function Xo({
|
|
88
|
-
globalTools: e = [],
|
|
89
|
-
children: r
|
|
90
|
-
}) {
|
|
91
|
-
const [u, n] = D(
|
|
92
|
-
() => /* @__PURE__ */ new Map()
|
|
93
|
-
), f = R(
|
|
94
|
-
(l, d) => {
|
|
95
|
-
n((m) => {
|
|
96
|
-
const b = new Map(m);
|
|
97
|
-
return b.set(l, d), b;
|
|
98
|
-
});
|
|
99
|
-
},
|
|
100
|
-
[]
|
|
101
|
-
), v = R((l) => {
|
|
102
|
-
n((d) => {
|
|
103
|
-
if (!d.has(l)) return d;
|
|
104
|
-
const m = new Map(d);
|
|
105
|
-
return m.delete(l), m;
|
|
106
|
-
});
|
|
107
|
-
}, []), c = x(
|
|
108
|
-
() => Array.from(u.values()).flat(),
|
|
109
|
-
[u]
|
|
110
|
-
), p = O(null), i = O(null), a = R(() => {
|
|
111
|
-
i.current && clearTimeout(i.current.timer), i.current = null;
|
|
112
|
-
}, []), y = R(
|
|
113
|
-
(l, d = () => !0) => {
|
|
114
|
-
if (l) {
|
|
115
|
-
p.current = { handle: l, hasTool: d };
|
|
116
|
-
const m = i.current;
|
|
117
|
-
m && d(m.id) && (a(), l.setActiveTool(m.id));
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
p.current = null, queueMicrotask(() => {
|
|
121
|
-
p.current || a();
|
|
122
|
-
});
|
|
123
|
-
},
|
|
124
|
-
[a]
|
|
125
|
-
);
|
|
126
|
-
oo(() => a, [a]);
|
|
127
|
-
const T = R(
|
|
128
|
-
(l) => {
|
|
129
|
-
a();
|
|
130
|
-
const d = p.current;
|
|
131
|
-
if (d && d.hasTool(l)) {
|
|
132
|
-
d.handle.setActiveTool(l);
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
i.current = {
|
|
136
|
-
id: l,
|
|
137
|
-
timer: setTimeout(a, jo)
|
|
138
|
-
};
|
|
139
|
-
},
|
|
140
|
-
[a]
|
|
141
|
-
), j = R(() => {
|
|
142
|
-
var l;
|
|
143
|
-
a(), (l = p.current) == null || l.handle.setActiveTool(null);
|
|
144
|
-
}, [a]), k = x(
|
|
145
|
-
() => ({
|
|
146
|
-
globalTools: e,
|
|
147
|
-
contextualTools: c,
|
|
148
|
-
registerContextualTools: f,
|
|
149
|
-
unregisterContextualTools: v,
|
|
150
|
-
registerRail: y,
|
|
151
|
-
openTool: T,
|
|
152
|
-
closeTool: j
|
|
153
|
-
}),
|
|
154
|
-
[
|
|
155
|
-
e,
|
|
156
|
-
c,
|
|
157
|
-
f,
|
|
158
|
-
v,
|
|
159
|
-
y,
|
|
160
|
-
T,
|
|
161
|
-
j
|
|
162
|
-
]
|
|
163
|
-
);
|
|
164
|
-
return /* @__PURE__ */ M(_.Provider, { value: k, children: r });
|
|
165
|
-
}
|
|
166
|
-
function $o(e) {
|
|
167
|
-
const r = N(_), u = r == null ? void 0 : r.registerContextualTools, n = r == null ? void 0 : r.unregisterContextualTools, f = yo();
|
|
168
|
-
oo(() => {
|
|
169
|
-
if (!(!u || !n))
|
|
170
|
-
return u(f, e), () => n(f);
|
|
171
|
-
}, [u, n, f, e]);
|
|
172
|
-
}
|
|
173
|
-
function Eo() {
|
|
174
|
-
const e = N(_);
|
|
175
|
-
return x(() => {
|
|
176
|
-
if (!e) return [];
|
|
177
|
-
const r = e.contextualTools.map((n) => ({
|
|
178
|
-
...n,
|
|
179
|
-
scope: "contextual"
|
|
180
|
-
})), u = e.globalTools.map((n) => ({
|
|
181
|
-
...n,
|
|
182
|
-
scope: "global"
|
|
183
|
-
}));
|
|
184
|
-
return [...r, ...u];
|
|
185
|
-
}, [e]);
|
|
186
|
-
}
|
|
187
|
-
function Go() {
|
|
188
|
-
const e = N(_), r = R(() => {
|
|
189
|
-
}, []);
|
|
190
|
-
return {
|
|
191
|
-
openTool: (e == null ? void 0 : e.openTool) ?? r,
|
|
192
|
-
closeTool: (e == null ? void 0 : e.closeTool) ?? r
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function Oo() {
|
|
196
|
-
const e = N(_), r = R(() => {
|
|
197
|
-
}, []);
|
|
198
|
-
return (e == null ? void 0 : e.registerRail) ?? r;
|
|
199
|
-
}
|
|
200
|
-
function _o(e, r, u, n) {
|
|
201
|
-
const f = r.includes(e), v = u.includes(e);
|
|
202
|
-
if (!f && v) return { toolId: e, action: "pin" };
|
|
203
|
-
if (f && !v)
|
|
204
|
-
return n != null && n.includes(e) ? void 0 : { toolId: e, action: "unpin" };
|
|
205
|
-
const c = (y) => n != null && n.length ? [...n, ...y.filter((T) => !n.includes(T))] : y, p = c(r), i = c(u);
|
|
206
|
-
return p.length !== i.length || p.some((y, T) => i[T] !== y) ? { toolId: e, action: "reorder" } : void 0;
|
|
207
|
-
}
|
|
208
|
-
function I(e, r, u) {
|
|
209
|
-
const n = new Set(u), f = [], v = /* @__PURE__ */ new Map();
|
|
210
|
-
let c = null;
|
|
211
|
-
for (const i of e)
|
|
212
|
-
r(i) ? n.has(i) && (c = i) : c === null ? f.push(i) : v.set(c, [...v.get(c) ?? [], i]);
|
|
213
|
-
const p = [
|
|
214
|
-
...f,
|
|
215
|
-
...u.flatMap((i) => [i, ...v.get(i) ?? []])
|
|
216
|
-
];
|
|
217
|
-
return Array.from(new Set(p));
|
|
218
|
-
}
|
|
219
|
-
const Jo = wo(function({
|
|
220
|
-
tools: r,
|
|
221
|
-
railLabel: u,
|
|
222
|
-
reorderable: n = !0,
|
|
223
|
-
favoriteIds: f,
|
|
224
|
-
defaultFavoriteIds: v,
|
|
225
|
-
pinnedFavoriteIds: c,
|
|
226
|
-
onFavoriteIdsChange: p,
|
|
227
|
-
persistFavoritesKey: i = "ui.controlRoom.favorites",
|
|
228
|
-
activeToolId: a,
|
|
229
|
-
defaultActiveToolId: y = null,
|
|
230
|
-
onActiveToolChange: T,
|
|
231
|
-
panelWidth: j,
|
|
232
|
-
onPanelWidthChange: k,
|
|
233
|
-
persistPanelWidthKey: l,
|
|
234
|
-
...d
|
|
235
|
-
}, m) {
|
|
236
|
-
const { t: b } = Ao("ui"), [eo, to] = D(
|
|
237
|
-
a ?? y ?? null
|
|
238
|
-
), K = a !== void 0 ? a : eo, no = R(
|
|
239
|
-
(o) => {
|
|
240
|
-
a === void 0 && to(o), T == null || T(o);
|
|
241
|
-
},
|
|
242
|
-
[a, T]
|
|
243
|
-
), ro = Eo(), S = r ?? ro, z = f !== void 0, [so, lo] = W(
|
|
244
|
-
i,
|
|
245
|
-
() => v ?? S.filter((o) => o.scope === "global").map((o) => o.id),
|
|
246
|
-
{ disabled: z }
|
|
247
|
-
), U = z ? f : so, V = x(() => c != null && c.length ? [
|
|
248
|
-
...c,
|
|
249
|
-
...U.filter((o) => !c.includes(o))
|
|
250
|
-
] : U, [c, U]), q = j !== void 0, [io, Q] = W(l ?? "ui.controlRoom.panelWidth.unused", null, {
|
|
251
|
-
disabled: q || !l
|
|
252
|
-
}), co = q ? j : l ? io : void 0, ao = R(
|
|
253
|
-
(o) => {
|
|
254
|
-
!q && l && Q(o), k == null || k(o);
|
|
255
|
-
},
|
|
256
|
-
[
|
|
257
|
-
q,
|
|
258
|
-
l,
|
|
259
|
-
Q,
|
|
260
|
-
k
|
|
261
|
-
]
|
|
262
|
-
), h = x(() => {
|
|
263
|
-
const o = /* @__PURE__ */ new Map();
|
|
264
|
-
for (const s of S) o.set(s.id, s);
|
|
265
|
-
return o;
|
|
266
|
-
}, [S]), E = x(
|
|
267
|
-
() => new Set(V.filter((o) => h.has(o))),
|
|
268
|
-
[V, h]
|
|
269
|
-
), X = (o, s) => {
|
|
270
|
-
const t = (w) => h.has(w), g = V.filter(t), C = s(g);
|
|
271
|
-
z || lo(
|
|
272
|
-
(w) => I(w, t, s(w.filter(t)))
|
|
273
|
-
), p == null || p(
|
|
274
|
-
I(V, t, C),
|
|
275
|
-
_o(o, g, C, c)
|
|
276
|
-
);
|
|
277
|
-
}, $ = x(() => {
|
|
278
|
-
if (!n) return S;
|
|
279
|
-
const o = V.filter((t) => h.has(t)).map((t) => ({
|
|
280
|
-
...h.get(t),
|
|
281
|
-
scope: "global",
|
|
282
|
-
reorderable: !0
|
|
283
|
-
})), s = S.filter((t) => !E.has(t.id)).map((t) => ({
|
|
284
|
-
...t,
|
|
285
|
-
scope: "contextual",
|
|
286
|
-
reorderable: !0
|
|
287
|
-
}));
|
|
288
|
-
return [...o, ...s];
|
|
289
|
-
}, [n, S, V, h, E]), [uo, fo] = D(""), B = O(!1), po = (o, s) => {
|
|
290
|
-
const t = s ? b("controlRoom.pinnedAnnounce", {
|
|
291
|
-
tool: o,
|
|
292
|
-
defaultValue: "Pinned {{tool}} to favourites"
|
|
293
|
-
}) : b("controlRoom.unpinnedAnnounce", {
|
|
294
|
-
tool: o,
|
|
295
|
-
defaultValue: "Removed {{tool}} from favourites"
|
|
296
|
-
});
|
|
297
|
-
B.current = !B.current, fo(B.current ? t : `${t}`);
|
|
298
|
-
}, mo = (o) => {
|
|
299
|
-
var s;
|
|
300
|
-
po(((s = h.get(o)) == null ? void 0 : s.label) ?? o, !E.has(o)), X(
|
|
301
|
-
o,
|
|
302
|
-
(t) => t.includes(o) ? t.filter((g) => g !== o) : [...t, o]
|
|
303
|
-
);
|
|
304
|
-
}, go = (o, s) => {
|
|
305
|
-
var g;
|
|
306
|
-
const t = (g = $[o]) == null ? void 0 : g.id;
|
|
307
|
-
t !== void 0 && X(t, (C) => {
|
|
308
|
-
const w = C.filter((A) => h.has(A)), H = w.length;
|
|
309
|
-
if (o < H) {
|
|
310
|
-
if (s >= H) return w.filter((bo) => bo !== t);
|
|
311
|
-
const A = w.slice();
|
|
312
|
-
return A.splice(o, 1), A.splice(s, 0, t), A;
|
|
313
|
-
}
|
|
314
|
-
if (s <= H) {
|
|
315
|
-
const A = w.slice();
|
|
316
|
-
return A.splice(Math.min(s, H), 0, t), A;
|
|
317
|
-
}
|
|
318
|
-
return C;
|
|
319
|
-
});
|
|
320
|
-
}, Ro = ({
|
|
321
|
-
tool: o,
|
|
322
|
-
from: s,
|
|
323
|
-
to: t
|
|
324
|
-
}) => {
|
|
325
|
-
const g = E.size, C = s < g;
|
|
326
|
-
return C && t >= g ? b("controlRoom.unpinnedAnnounce", {
|
|
327
|
-
tool: o.label,
|
|
328
|
-
defaultValue: "Removed {{tool}} from favourites"
|
|
329
|
-
}) : !C && t <= g ? b("controlRoom.pinnedAnnounce", {
|
|
330
|
-
tool: o.label,
|
|
331
|
-
defaultValue: "Pinned {{tool}} to favourites"
|
|
332
|
-
}) : C && t < g ? b("controlRoom.reorderAnnounce", {
|
|
333
|
-
tool: o.label,
|
|
334
|
-
to: t + 1,
|
|
335
|
-
total: g,
|
|
336
|
-
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
337
|
-
}) : "";
|
|
338
|
-
}, G = O(null), J = Oo(), Y = O(h);
|
|
339
|
-
Y.current = h;
|
|
340
|
-
const Z = R((o) => {
|
|
341
|
-
const s = Y.current.get(o);
|
|
342
|
-
return s !== void 0 && !s.disabled;
|
|
343
|
-
}, []), vo = R(
|
|
344
|
-
(o) => {
|
|
345
|
-
G.current = o, J(o, Z), typeof m == "function" ? m(o) : m && (m.current = o);
|
|
346
|
-
},
|
|
347
|
-
[J, Z, m]
|
|
348
|
-
), L = K != null ? h.get(K) ?? null : null, To = L ? /* @__PURE__ */ P(ho, { children: [
|
|
349
|
-
n ? (() => {
|
|
350
|
-
const o = E.has(L.id);
|
|
351
|
-
return /* @__PURE__ */ M(
|
|
352
|
-
F,
|
|
353
|
-
{
|
|
354
|
-
icon: /* @__PURE__ */ M(
|
|
355
|
-
ko,
|
|
356
|
-
{
|
|
357
|
-
"aria-hidden": "true",
|
|
358
|
-
fill: o ? "currentColor" : "none",
|
|
359
|
-
className: o ? "ds:text-[color:var(--accent)]" : void 0
|
|
360
|
-
}
|
|
361
|
-
),
|
|
362
|
-
intent: "ghost",
|
|
363
|
-
size: "sm",
|
|
364
|
-
"aria-pressed": o,
|
|
365
|
-
"aria-label": b("controlRoom.favorite", {
|
|
366
|
-
defaultValue: "Favourite"
|
|
367
|
-
}),
|
|
368
|
-
onClick: () => mo(L.id)
|
|
369
|
-
}
|
|
370
|
-
);
|
|
371
|
-
})() : null,
|
|
372
|
-
/* @__PURE__ */ M(
|
|
373
|
-
F,
|
|
374
|
-
{
|
|
375
|
-
icon: /* @__PURE__ */ M(So, { "aria-hidden": "true" }),
|
|
376
|
-
intent: "ghost",
|
|
377
|
-
size: "sm",
|
|
378
|
-
"aria-label": b("controlRoom.close", { defaultValue: "Close" }),
|
|
379
|
-
onClick: () => {
|
|
380
|
-
var o;
|
|
381
|
-
return (o = G.current) == null ? void 0 : o.close();
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
)
|
|
385
|
-
] }) : null;
|
|
386
|
-
return /* @__PURE__ */ P(Mo, { actions: To, children: [
|
|
387
|
-
/* @__PURE__ */ M(
|
|
388
|
-
xo,
|
|
389
|
-
{
|
|
390
|
-
ref: vo,
|
|
391
|
-
dataComponent: "control-room-rail",
|
|
392
|
-
agentAdapter: Vo,
|
|
393
|
-
tools: $,
|
|
394
|
-
activeToolId: a,
|
|
395
|
-
defaultActiveToolId: y,
|
|
396
|
-
onActiveToolChange: no,
|
|
397
|
-
panelWidth: co,
|
|
398
|
-
onPanelWidthChange: ao,
|
|
399
|
-
railLabel: u ?? b("controlRoom.railLabel", { defaultValue: "Control room" }),
|
|
400
|
-
onReorder: n ? go : void 0,
|
|
401
|
-
formatReorderAnnouncement: n ? Ro : void 0,
|
|
402
|
-
...d
|
|
403
|
-
}
|
|
404
|
-
),
|
|
405
|
-
n ? /* @__PURE__ */ M("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: uo }) : null
|
|
406
|
-
] });
|
|
407
|
-
});
|
|
408
|
-
export {
|
|
409
|
-
Xo as C,
|
|
410
|
-
Jo as a,
|
|
411
|
-
Eo as b,
|
|
412
|
-
Vo as c,
|
|
413
|
-
$o as d,
|
|
414
|
-
Go as u
|
|
415
|
-
};
|
|
416
|
-
//# sourceMappingURL=control-room-rail-BQvaYowi.js.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as p } from "react";
|
|
3
|
-
import { c as r } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { I as c } from "./icon-button-u9VMQn3x.js";
|
|
5
|
-
import { c as i } from "./createLucideIcon-DhHxpK9K.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license lucide-react v1.22.0 - ISC
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the ISC license.
|
|
10
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
const m = [
|
|
13
|
-
["path", { d: "m16 18 6-6-6-6", key: "eg8j8" }],
|
|
14
|
-
["path", { d: "m8 6-6 6 6 6", key: "ppft3o" }]
|
|
15
|
-
], d = i("code", m), u = r("ds:shrink-0"), f = p(({ label: o, size: a = "md", className: e, ...s }, n) => /* @__PURE__ */ t(
|
|
16
|
-
c,
|
|
17
|
-
{
|
|
18
|
-
ref: n,
|
|
19
|
-
icon: /* @__PURE__ */ t(d, { "aria-hidden": "true" }),
|
|
20
|
-
intent: "outline",
|
|
21
|
-
size: a,
|
|
22
|
-
tooltip: o,
|
|
23
|
-
className: u({ className: e }),
|
|
24
|
-
...s,
|
|
25
|
-
type: "button",
|
|
26
|
-
"data-component": "dev-bypass-button"
|
|
27
|
-
}
|
|
28
|
-
));
|
|
29
|
-
f.displayName = "DevBypassButton";
|
|
30
|
-
export {
|
|
31
|
-
f as D
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=dev-bypass-button-BzfYGPuf.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { c as o } from "./createLucideIcon-DhHxpK9K.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v1.22.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const a = [
|
|
9
|
-
[
|
|
10
|
-
"path",
|
|
11
|
-
{
|
|
12
|
-
d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",
|
|
13
|
-
key: "1kt360"
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
], c = o("folder", a);
|
|
17
|
-
export {
|
|
18
|
-
c as F
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=folder-BghC8_S2.js.map
|