@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
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { jsx as k, jsxs as ro, Fragment as jo } from "react/jsx-runtime";
|
|
2
|
+
import { useState as P, useCallback as g, useMemo as M, useRef as N, useEffect as lo, useContext as B, useId as Eo, createContext as Ho, forwardRef as No } from "react";
|
|
3
|
+
import { useTranslation as Oo } from "react-i18next";
|
|
4
|
+
import { I as J } from "./icon-button-u9VMQn3x.js";
|
|
5
|
+
import { a as qo } from "./panel-header-DTc5OFUg.js";
|
|
6
|
+
import { T as zo } from "./tool-rail-B4p6MmxA.js";
|
|
7
|
+
import { u as K } from "./use-persistent-state-nZwZAnE9.js";
|
|
8
|
+
import { S as Lo } from "./star-Bf9L2Uot.js";
|
|
9
|
+
import { P as Uo } from "./panel-right-CnMHSvLU.js";
|
|
10
|
+
import { c as Bo } from "./createLucideIcon-DhHxpK9K.js";
|
|
11
|
+
import { X as Do } from "./x-B5YnXwCz.js";
|
|
12
|
+
/**
|
|
13
|
+
* @license lucide-react v1.22.0 - ISC
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the ISC license.
|
|
16
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/
|
|
18
|
+
const Qo = [
|
|
19
|
+
["path", { d: "M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4", key: "daa4of" }],
|
|
20
|
+
["rect", { width: "10", height: "7", x: "12", y: "13", rx: "2", key: "1nb8gs" }]
|
|
21
|
+
], Xo = Bo("picture-in-picture-2", Qo), $o = {
|
|
22
|
+
id: "control-room-rail",
|
|
23
|
+
capabilities: ["open", "close", "select_single"],
|
|
24
|
+
state: {
|
|
25
|
+
activeToolId: {
|
|
26
|
+
type: "string | null",
|
|
27
|
+
descriptionKey: "ui.toolRail.agent.state.activeToolId",
|
|
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: (t) => t.getActiveToolId()
|
|
30
|
+
},
|
|
31
|
+
panelMode: {
|
|
32
|
+
type: "'docked' | 'overlay' | 'full-screen'",
|
|
33
|
+
descriptionKey: "ui.agent.controlRoomRail.state.panelMode",
|
|
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: (t) => t.getPanelMode()
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
actions: {
|
|
39
|
+
open: {
|
|
40
|
+
// Pure ephemeral panel state (open) — no data loss, no external effect.
|
|
41
|
+
safety: "read",
|
|
42
|
+
argsType: "{ id: string }",
|
|
43
|
+
argsSchema: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: { id: { type: "string" } },
|
|
46
|
+
required: ["id"]
|
|
47
|
+
},
|
|
48
|
+
idempotent: !0,
|
|
49
|
+
descriptionKey: "ui.toolRail.agent.actions.open",
|
|
50
|
+
description: "Open the given tool's panel.",
|
|
51
|
+
examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
|
|
52
|
+
invoke: (t, r) => {
|
|
53
|
+
t.open(r.id);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
close: {
|
|
57
|
+
safety: "read",
|
|
58
|
+
idempotent: !0,
|
|
59
|
+
descriptionKey: "ui.toolRail.agent.actions.close",
|
|
60
|
+
description: "Collapse the rail to its strip (no active tool).",
|
|
61
|
+
invoke: (t) => {
|
|
62
|
+
t.close();
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
select_tool: {
|
|
66
|
+
safety: "read",
|
|
67
|
+
argsType: "{ id: string | null }",
|
|
68
|
+
argsSchema: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: { id: { type: ["string", "null"] } },
|
|
71
|
+
required: ["id"]
|
|
72
|
+
},
|
|
73
|
+
idempotent: !0,
|
|
74
|
+
descriptionKey: "ui.toolRail.agent.actions.selectTool",
|
|
75
|
+
description: "Set the active tool by id (opens its panel), or pass null to collapse.",
|
|
76
|
+
invoke: (t, r) => {
|
|
77
|
+
t.setActiveTool(r.id);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
domHooks: {
|
|
82
|
+
root: {
|
|
83
|
+
attr: "data-component",
|
|
84
|
+
value: "control-room-rail",
|
|
85
|
+
description: "Marks the ControlRoomRail wrapper."
|
|
86
|
+
},
|
|
87
|
+
instanceId: {
|
|
88
|
+
attr: "data-component-id",
|
|
89
|
+
sourceProp: "id",
|
|
90
|
+
description: "Sourced from the id prop. Required to address a specific rail from the agent."
|
|
91
|
+
},
|
|
92
|
+
item: {
|
|
93
|
+
attr: "data-tool-id",
|
|
94
|
+
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, Go = 1e3, O = Ho(null);
|
|
98
|
+
function it({
|
|
99
|
+
globalTools: t = [],
|
|
100
|
+
children: r
|
|
101
|
+
}) {
|
|
102
|
+
const [u, n] = P(
|
|
103
|
+
() => /* @__PURE__ */ new Map()
|
|
104
|
+
), d = g(
|
|
105
|
+
(l, f) => {
|
|
106
|
+
n((h) => {
|
|
107
|
+
const q = new Map(h);
|
|
108
|
+
return q.set(l, f), q;
|
|
109
|
+
});
|
|
110
|
+
},
|
|
111
|
+
[]
|
|
112
|
+
), R = g((l) => {
|
|
113
|
+
n((f) => {
|
|
114
|
+
if (!f.has(l)) return f;
|
|
115
|
+
const h = new Map(f);
|
|
116
|
+
return h.delete(l), h;
|
|
117
|
+
});
|
|
118
|
+
}, []), c = M(
|
|
119
|
+
() => Array.from(u.values()).flat(),
|
|
120
|
+
[u]
|
|
121
|
+
), p = N(null), i = N(null), a = g(() => {
|
|
122
|
+
i.current && clearTimeout(i.current.timer), i.current = null;
|
|
123
|
+
}, []), b = g(
|
|
124
|
+
(l, f = () => !0) => {
|
|
125
|
+
if (l) {
|
|
126
|
+
p.current = { handle: l, hasTool: f };
|
|
127
|
+
const h = i.current;
|
|
128
|
+
h && f(h.id) && (a(), l.setActiveTool(h.id));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
p.current = null, queueMicrotask(() => {
|
|
132
|
+
p.current || a();
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
[a]
|
|
136
|
+
);
|
|
137
|
+
lo(() => a, [a]);
|
|
138
|
+
const v = g(
|
|
139
|
+
(l) => {
|
|
140
|
+
a();
|
|
141
|
+
const f = p.current;
|
|
142
|
+
if (f && f.hasTool(l)) {
|
|
143
|
+
f.handle.setActiveTool(l);
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
i.current = {
|
|
147
|
+
id: l,
|
|
148
|
+
timer: setTimeout(a, Go)
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
[a]
|
|
152
|
+
), _ = g(() => {
|
|
153
|
+
var l;
|
|
154
|
+
a(), (l = p.current) == null || l.handle.setActiveTool(null);
|
|
155
|
+
}, [a]), A = M(
|
|
156
|
+
() => ({
|
|
157
|
+
globalTools: t,
|
|
158
|
+
contextualTools: c,
|
|
159
|
+
registerContextualTools: d,
|
|
160
|
+
unregisterContextualTools: R,
|
|
161
|
+
registerRail: b,
|
|
162
|
+
openTool: v,
|
|
163
|
+
closeTool: _
|
|
164
|
+
}),
|
|
165
|
+
[
|
|
166
|
+
t,
|
|
167
|
+
c,
|
|
168
|
+
d,
|
|
169
|
+
R,
|
|
170
|
+
b,
|
|
171
|
+
v,
|
|
172
|
+
_
|
|
173
|
+
]
|
|
174
|
+
);
|
|
175
|
+
return /* @__PURE__ */ k(O.Provider, { value: A, children: r });
|
|
176
|
+
}
|
|
177
|
+
function ct(t) {
|
|
178
|
+
const r = B(O), u = r == null ? void 0 : r.registerContextualTools, n = r == null ? void 0 : r.unregisterContextualTools, d = Eo();
|
|
179
|
+
lo(() => {
|
|
180
|
+
if (!(!u || !n))
|
|
181
|
+
return u(d, t), () => n(d);
|
|
182
|
+
}, [u, n, d, t]);
|
|
183
|
+
}
|
|
184
|
+
function Jo() {
|
|
185
|
+
const t = B(O);
|
|
186
|
+
return M(() => {
|
|
187
|
+
if (!t) return [];
|
|
188
|
+
const r = t.contextualTools.map((n) => ({
|
|
189
|
+
...n,
|
|
190
|
+
scope: "contextual"
|
|
191
|
+
})), u = t.globalTools.map((n) => ({
|
|
192
|
+
...n,
|
|
193
|
+
scope: "global"
|
|
194
|
+
}));
|
|
195
|
+
return [...r, ...u];
|
|
196
|
+
}, [t]);
|
|
197
|
+
}
|
|
198
|
+
function at() {
|
|
199
|
+
const t = B(O), r = g(() => {
|
|
200
|
+
}, []);
|
|
201
|
+
return {
|
|
202
|
+
openTool: (t == null ? void 0 : t.openTool) ?? r,
|
|
203
|
+
closeTool: (t == null ? void 0 : t.closeTool) ?? r
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
function Ko() {
|
|
207
|
+
const t = B(O), r = g(() => {
|
|
208
|
+
}, []);
|
|
209
|
+
return (t == null ? void 0 : t.registerRail) ?? r;
|
|
210
|
+
}
|
|
211
|
+
function Po(t, r, u, n) {
|
|
212
|
+
const d = r.includes(t), R = u.includes(t);
|
|
213
|
+
if (!d && R) return { toolId: t, action: "pin" };
|
|
214
|
+
if (d && !R)
|
|
215
|
+
return n != null && n.includes(t) ? void 0 : { toolId: t, action: "unpin" };
|
|
216
|
+
const c = (b) => n != null && n.length ? [...n, ...b.filter((v) => !n.includes(v))] : b, p = c(r), i = c(u);
|
|
217
|
+
return p.length !== i.length || p.some((b, v) => i[v] !== b) ? { toolId: t, action: "reorder" } : void 0;
|
|
218
|
+
}
|
|
219
|
+
function so(t, r, u) {
|
|
220
|
+
const n = new Set(u), d = [], R = /* @__PURE__ */ new Map();
|
|
221
|
+
let c = null;
|
|
222
|
+
for (const i of t)
|
|
223
|
+
r(i) ? n.has(i) && (c = i) : c === null ? d.push(i) : R.set(c, [...R.get(c) ?? [], i]);
|
|
224
|
+
const p = [
|
|
225
|
+
...d,
|
|
226
|
+
...u.flatMap((i) => [i, ...R.get(i) ?? []])
|
|
227
|
+
];
|
|
228
|
+
return Array.from(new Set(p));
|
|
229
|
+
}
|
|
230
|
+
const ut = No(function({
|
|
231
|
+
tools: r,
|
|
232
|
+
railLabel: u,
|
|
233
|
+
reorderable: n = !0,
|
|
234
|
+
favoriteIds: d,
|
|
235
|
+
defaultFavoriteIds: R,
|
|
236
|
+
pinnedFavoriteIds: c,
|
|
237
|
+
onFavoriteIdsChange: p,
|
|
238
|
+
persistFavoritesKey: i = "ui.controlRoom.favorites",
|
|
239
|
+
activeToolId: a,
|
|
240
|
+
defaultActiveToolId: b = null,
|
|
241
|
+
onActiveToolChange: v,
|
|
242
|
+
panelWidth: _,
|
|
243
|
+
onPanelWidthChange: A,
|
|
244
|
+
persistPanelWidthKey: l,
|
|
245
|
+
floatablePanel: f = !1,
|
|
246
|
+
panelFloating: h,
|
|
247
|
+
defaultPanelFloating: q = !1,
|
|
248
|
+
onPanelFloatingChange: D,
|
|
249
|
+
persistPanelFloatingKey: Y,
|
|
250
|
+
panelPlacement: io,
|
|
251
|
+
...co
|
|
252
|
+
}, j) {
|
|
253
|
+
const { t: y } = Oo("ui"), [ao, uo] = P(
|
|
254
|
+
a ?? b ?? null
|
|
255
|
+
), Z = a !== void 0 ? a : ao, fo = g(
|
|
256
|
+
(o) => {
|
|
257
|
+
a === void 0 && uo(o), v == null || v(o);
|
|
258
|
+
},
|
|
259
|
+
[a, v]
|
|
260
|
+
), po = Jo(), S = r ?? po, Q = d !== void 0, [mo, go] = K(
|
|
261
|
+
i,
|
|
262
|
+
() => R ?? S.filter((o) => o.scope === "global").map((o) => o.id),
|
|
263
|
+
{ disabled: Q }
|
|
264
|
+
), X = Q ? d : mo, V = M(() => c != null && c.length ? [
|
|
265
|
+
...c,
|
|
266
|
+
...X.filter((o) => !c.includes(o))
|
|
267
|
+
] : X, [c, X]), z = _ !== void 0, [Ro, W] = K(l ?? "ui.controlRoom.panelWidth.unused", null, {
|
|
268
|
+
disabled: z || !l
|
|
269
|
+
}), vo = z ? _ : l ? Ro : void 0, ho = g(
|
|
270
|
+
(o) => {
|
|
271
|
+
!z && l && W(o), A == null || A(o);
|
|
272
|
+
},
|
|
273
|
+
[
|
|
274
|
+
z,
|
|
275
|
+
l,
|
|
276
|
+
W,
|
|
277
|
+
A
|
|
278
|
+
]
|
|
279
|
+
), $ = h !== void 0, [To, bo] = K(
|
|
280
|
+
Y ?? "ui.controlRoom.panelFloating.unused",
|
|
281
|
+
q,
|
|
282
|
+
{ disabled: $ || !Y }
|
|
283
|
+
), E = f && ($ ? h : To === !0), yo = (o) => {
|
|
284
|
+
const s = !E;
|
|
285
|
+
$ || bo(s), D == null || D(s, o);
|
|
286
|
+
}, T = M(() => {
|
|
287
|
+
const o = /* @__PURE__ */ new Map();
|
|
288
|
+
for (const s of S) o.set(s.id, s);
|
|
289
|
+
return o;
|
|
290
|
+
}, [S]), H = M(
|
|
291
|
+
() => new Set(V.filter((o) => T.has(o))),
|
|
292
|
+
[V, T]
|
|
293
|
+
), F = (o, s) => {
|
|
294
|
+
const e = (x) => T.has(x), m = V.filter(e), w = s(m);
|
|
295
|
+
Q || go(
|
|
296
|
+
(x) => so(x, e, s(x.filter(e)))
|
|
297
|
+
), p == null || p(
|
|
298
|
+
so(V, e, w),
|
|
299
|
+
Po(o, m, w, c)
|
|
300
|
+
);
|
|
301
|
+
}, I = M(() => {
|
|
302
|
+
if (!n) return S;
|
|
303
|
+
const o = V.filter((e) => T.has(e)).map((e) => ({
|
|
304
|
+
...T.get(e),
|
|
305
|
+
scope: "global",
|
|
306
|
+
reorderable: !0
|
|
307
|
+
})), s = S.filter((e) => !H.has(e.id)).map((e) => ({
|
|
308
|
+
...e,
|
|
309
|
+
scope: "contextual",
|
|
310
|
+
reorderable: !0
|
|
311
|
+
}));
|
|
312
|
+
return [...o, ...s];
|
|
313
|
+
}, [n, S, V, T, H]), [ko, wo] = P(""), G = N(!1), xo = (o, s) => {
|
|
314
|
+
const e = s ? y("controlRoom.pinnedAnnounce", {
|
|
315
|
+
tool: o,
|
|
316
|
+
defaultValue: "Pinned {{tool}} to favourites"
|
|
317
|
+
}) : y("controlRoom.unpinnedAnnounce", {
|
|
318
|
+
tool: o,
|
|
319
|
+
defaultValue: "Removed {{tool}} from favourites"
|
|
320
|
+
});
|
|
321
|
+
G.current = !G.current, wo(G.current ? e : `${e}`);
|
|
322
|
+
}, Co = (o) => {
|
|
323
|
+
var s;
|
|
324
|
+
xo(((s = T.get(o)) == null ? void 0 : s.label) ?? o, !H.has(o)), F(
|
|
325
|
+
o,
|
|
326
|
+
(e) => e.includes(o) ? e.filter((m) => m !== o) : [...e, o]
|
|
327
|
+
);
|
|
328
|
+
}, Mo = (o, s) => {
|
|
329
|
+
var m;
|
|
330
|
+
const e = (m = I[o]) == null ? void 0 : m.id;
|
|
331
|
+
e !== void 0 && F(e, (w) => {
|
|
332
|
+
const x = w.filter((C) => T.has(C)), U = x.length;
|
|
333
|
+
if (o < U) {
|
|
334
|
+
if (s >= U) return x.filter((_o) => _o !== e);
|
|
335
|
+
const C = x.slice();
|
|
336
|
+
return C.splice(o, 1), C.splice(s, 0, e), C;
|
|
337
|
+
}
|
|
338
|
+
if (s <= U) {
|
|
339
|
+
const C = x.slice();
|
|
340
|
+
return C.splice(Math.min(s, U), 0, e), C;
|
|
341
|
+
}
|
|
342
|
+
return w;
|
|
343
|
+
});
|
|
344
|
+
}, Ao = ({
|
|
345
|
+
tool: o,
|
|
346
|
+
from: s,
|
|
347
|
+
to: e
|
|
348
|
+
}) => {
|
|
349
|
+
const m = H.size, w = s < m;
|
|
350
|
+
return w && e >= m ? y("controlRoom.unpinnedAnnounce", {
|
|
351
|
+
tool: o.label,
|
|
352
|
+
defaultValue: "Removed {{tool}} from favourites"
|
|
353
|
+
}) : !w && e <= m ? y("controlRoom.pinnedAnnounce", {
|
|
354
|
+
tool: o.label,
|
|
355
|
+
defaultValue: "Pinned {{tool}} to favourites"
|
|
356
|
+
}) : w && e < m ? y("controlRoom.reorderAnnounce", {
|
|
357
|
+
tool: o.label,
|
|
358
|
+
to: e + 1,
|
|
359
|
+
total: m,
|
|
360
|
+
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
361
|
+
}) : "";
|
|
362
|
+
}, oo = N(null), to = Ko(), eo = N(T);
|
|
363
|
+
eo.current = T;
|
|
364
|
+
const no = g((o) => {
|
|
365
|
+
const s = eo.current.get(o);
|
|
366
|
+
return s !== void 0 && !s.disabled;
|
|
367
|
+
}, []), So = g(
|
|
368
|
+
(o) => {
|
|
369
|
+
oo.current = o, to(o, no), typeof j == "function" ? j(o) : j && (j.current = o);
|
|
370
|
+
},
|
|
371
|
+
[to, no, j]
|
|
372
|
+
), L = Z != null ? T.get(Z) ?? null : null, Vo = L ? /* @__PURE__ */ ro(jo, { children: [
|
|
373
|
+
n ? (() => {
|
|
374
|
+
const o = H.has(L.id);
|
|
375
|
+
return /* @__PURE__ */ k(
|
|
376
|
+
J,
|
|
377
|
+
{
|
|
378
|
+
icon: /* @__PURE__ */ k(
|
|
379
|
+
Lo,
|
|
380
|
+
{
|
|
381
|
+
"aria-hidden": "true",
|
|
382
|
+
fill: o ? "currentColor" : "none",
|
|
383
|
+
className: o ? "ds:text-[color:var(--accent)]" : void 0
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
intent: "ghost",
|
|
387
|
+
size: "sm",
|
|
388
|
+
"aria-pressed": o,
|
|
389
|
+
"aria-label": y("controlRoom.favorite", {
|
|
390
|
+
defaultValue: "Favourite"
|
|
391
|
+
}),
|
|
392
|
+
onClick: () => Co(L.id)
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
})() : null,
|
|
396
|
+
f ? (() => {
|
|
397
|
+
const o = y(E ? "controlRoom.dockPanel" : "controlRoom.floatPanel");
|
|
398
|
+
return /* @__PURE__ */ k(
|
|
399
|
+
J,
|
|
400
|
+
{
|
|
401
|
+
icon: E ? /* @__PURE__ */ k(Uo, { "aria-hidden": "true" }) : /* @__PURE__ */ k(Xo, { "aria-hidden": "true" }),
|
|
402
|
+
intent: "ghost",
|
|
403
|
+
size: "sm",
|
|
404
|
+
"data-action": E ? "dock-panel" : "float-panel",
|
|
405
|
+
"aria-label": o,
|
|
406
|
+
tooltip: o,
|
|
407
|
+
onClick: () => yo(L.id)
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
})() : null,
|
|
411
|
+
/* @__PURE__ */ k(
|
|
412
|
+
J,
|
|
413
|
+
{
|
|
414
|
+
icon: /* @__PURE__ */ k(Do, { "aria-hidden": "true" }),
|
|
415
|
+
intent: "ghost",
|
|
416
|
+
size: "sm",
|
|
417
|
+
"aria-label": y("controlRoom.close", { defaultValue: "Close" }),
|
|
418
|
+
onClick: () => {
|
|
419
|
+
var o;
|
|
420
|
+
return (o = oo.current) == null ? void 0 : o.close();
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
)
|
|
424
|
+
] }) : null;
|
|
425
|
+
return /* @__PURE__ */ ro(qo, { actions: Vo, children: [
|
|
426
|
+
/* @__PURE__ */ k(
|
|
427
|
+
zo,
|
|
428
|
+
{
|
|
429
|
+
ref: So,
|
|
430
|
+
dataComponent: "control-room-rail",
|
|
431
|
+
agentAdapter: $o,
|
|
432
|
+
tools: I,
|
|
433
|
+
activeToolId: a,
|
|
434
|
+
defaultActiveToolId: b,
|
|
435
|
+
onActiveToolChange: fo,
|
|
436
|
+
panelWidth: vo,
|
|
437
|
+
onPanelWidthChange: ho,
|
|
438
|
+
panelPlacement: E ? "overlay" : io,
|
|
439
|
+
railLabel: u ?? y("controlRoom.railLabel", { defaultValue: "Control room" }),
|
|
440
|
+
onReorder: n ? Mo : void 0,
|
|
441
|
+
formatReorderAnnouncement: n ? Ao : void 0,
|
|
442
|
+
...co
|
|
443
|
+
}
|
|
444
|
+
),
|
|
445
|
+
n ? /* @__PURE__ */ k("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: ko }) : null
|
|
446
|
+
] });
|
|
447
|
+
});
|
|
448
|
+
export {
|
|
449
|
+
it as C,
|
|
450
|
+
ut as a,
|
|
451
|
+
Jo as b,
|
|
452
|
+
$o as c,
|
|
453
|
+
ct as d,
|
|
454
|
+
at as u
|
|
455
|
+
};
|
|
456
|
+
//# sourceMappingURL=control-room-rail-BmpTKtL1.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as fe } from "react-i18next";
|
|
|
5
5
|
import { u as fa } from "./registry-DvAUVLHh.js";
|
|
6
6
|
import { c as ui } from "./compose-refs-C0k0tdqF.js";
|
|
7
7
|
import { i as Fe } from "./is-development-CLUAnsU7.js";
|
|
8
|
-
import { S as di } from "./scroll-area-
|
|
8
|
+
import { S as di } from "./scroll-area-RQtcKkHf.js";
|
|
9
9
|
import { S as ro } from "./spinner-CoflYlEx.js";
|
|
10
10
|
import { a as Ct } from "./format-number-DdzqwMs1.js";
|
|
11
11
|
import { p as ls } from "./privacy-mask-text-B8YfzB7L.js";
|
|
@@ -32,7 +32,7 @@ import { F as Da } from "./funnel-DpPV3Qkd.js";
|
|
|
32
32
|
import { A as ka, a as Aa } from "./arrow-up-BYvcvTkB.js";
|
|
33
33
|
import { C as za } from "./chevrons-up-down-CgiVAHb7.js";
|
|
34
34
|
import { P as Va } from "./pagination-BpXG5jVk.js";
|
|
35
|
-
import { E as Ko } from "./empty-state-
|
|
35
|
+
import { E as Ko } from "./empty-state-qHtpcasr.js";
|
|
36
36
|
import { S as Ta } from "./skeleton-tTWJpvAq.js";
|
|
37
37
|
import { d as Ga, u as La } from "./index-Bze5jCG_.js";
|
|
38
38
|
import { u as Na } from "./use-direction-Dp8h70PP.js";
|
|
@@ -9877,4 +9877,4 @@ export {
|
|
|
9877
9877
|
_m as f,
|
|
9878
9878
|
Ih as g
|
|
9879
9879
|
};
|
|
9880
|
-
//# sourceMappingURL=data-grid-
|
|
9880
|
+
//# sourceMappingURL=data-grid-DTAwrOiq.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as y, jsxs as te } from "react/jsx-runtime";
|
|
2
2
|
import { createContext as At, useContext as kt, useRef as k, useEffect as V, useState as q, useMemo as N, forwardRef as ae, useCallback as D, useImperativeHandle as Mt } from "react";
|
|
3
3
|
import { S as Nt } from "./skeleton-tTWJpvAq.js";
|
|
4
|
-
import { E as Lt } from "./empty-state-
|
|
4
|
+
import { E as Lt } from "./empty-state-qHtpcasr.js";
|
|
5
5
|
import { c as Ot } from "./index-D2ZczOXr.js";
|
|
6
6
|
import { useTranslation as H } from "react-i18next";
|
|
7
7
|
import { useGridFilter as Vt, AgGridReact as _t } from "ag-grid-react";
|
|
@@ -1691,4 +1691,4 @@ export {
|
|
|
1691
1691
|
P as i,
|
|
1692
1692
|
pr as r
|
|
1693
1693
|
};
|
|
1694
|
-
//# sourceMappingURL=data-table-
|
|
1694
|
+
//# sourceMappingURL=data-table-CgpHO6EZ.js.map
|
|
@@ -2,8 +2,8 @@ import { jsxs as T, jsx as l, Fragment as ne } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId as Pe, useMemo as M, createElement as mt, forwardRef as ft, useRef as K, useState as yt, useImperativeHandle as ht, useCallback as gt } from "react";
|
|
3
3
|
import { useTranslation as v } from "react-i18next";
|
|
4
4
|
import { u as Tt } from "./registry-DvAUVLHh.js";
|
|
5
|
-
import { D as St, e as vt } from "./data-grid-
|
|
6
|
-
import { D as N } from "./toolbar-
|
|
5
|
+
import { D as St, e as vt } from "./data-grid-DTAwrOiq.js";
|
|
6
|
+
import { D as N } from "./toolbar-B2JJ_XDT.js";
|
|
7
7
|
import { I as wt } from "./icon-button-group-DEAx9M5v.js";
|
|
8
8
|
import { c as w } from "./index-D2ZczOXr.js";
|
|
9
9
|
import { b as It, a as kt } from "./accessible-target-D3j6F-AG.js";
|
|
@@ -12,7 +12,7 @@ import { V as Ee } from "./visually-hidden-BHxEUGyT.js";
|
|
|
12
12
|
import { B as Lt } from "./badge-BUk4RjTS.js";
|
|
13
13
|
import { B as Ot } from "./button-Dp4j9ygh.js";
|
|
14
14
|
import { I as At } from "./icon-button-u9VMQn3x.js";
|
|
15
|
-
import { I as _t } from "./info-tip-
|
|
15
|
+
import { I as _t } from "./info-tip-DkVISvo-.js";
|
|
16
16
|
import { M as oe } from "./money-OE6_oDPH.js";
|
|
17
17
|
import { P as F } from "./popover-C9O7my6h.js";
|
|
18
18
|
import { a as Dt } from "./format-number-DdzqwMs1.js";
|
|
@@ -2211,4 +2211,4 @@ export {
|
|
|
2211
2211
|
ii as m,
|
|
2212
2212
|
Ka as u
|
|
2213
2213
|
};
|
|
2214
|
-
//# sourceMappingURL=default-tabs-
|
|
2214
|
+
//# sourceMappingURL=default-tabs-CZaDDf1G.js.map
|
|
@@ -111,6 +111,9 @@ const k = P({
|
|
|
111
111
|
copyable: !0,
|
|
112
112
|
className: "ds:grid ds:grid-cols-[minmax(0,1fr)_auto] ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)] ds:items-start ds:[&>[data-dl-copy-slot]]:col-start-2 ds:[&>[data-dl-copy-slot]]:row-span-full"
|
|
113
113
|
},
|
|
114
|
+
/* The gap after the icon reads `--description-list-icon-gap`, so a card
|
|
115
|
+
that mixes a stacked list with an inline one (whose gap is wider) can
|
|
116
|
+
line the labels of the two up. */
|
|
114
117
|
/* ----- stacked / with icons — explicit grid so dt/dd remain
|
|
115
118
|
direct children of the row div while the icon sits at the
|
|
116
119
|
leading edge of the column-2 stack. `labelWidth` does not
|
|
@@ -119,13 +122,13 @@ const k = P({
|
|
|
119
122
|
layout: "stacked",
|
|
120
123
|
hasIcons: !0,
|
|
121
124
|
copyable: !1,
|
|
122
|
-
className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)] ds:items-start ds:[&>dt]:col-start-2 ds:[&>dd]:col-start-2 ds:[&>[data-dl-icon-slot]]:row-span-full"
|
|
125
|
+
className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)] ds:gap-x-[var(--description-list-icon-gap,var(--spacing-sm))] ds:gap-y-[var(--spacing-xs)] ds:items-start ds:[&>dt]:col-start-2 ds:[&>dd]:col-start-2 ds:[&>[data-dl-icon-slot]]:row-span-full"
|
|
123
126
|
},
|
|
124
127
|
{
|
|
125
128
|
layout: "stacked",
|
|
126
129
|
hasIcons: !0,
|
|
127
130
|
copyable: !0,
|
|
128
|
-
className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)_auto] ds:gap-x-[var(--spacing-sm)] ds:gap-y-[var(--spacing-xs)] ds:items-start ds:[&>dt]:col-start-2 ds:[&>dd]:col-start-2 ds:[&>[data-dl-icon-slot]]:row-span-full ds:[&>[data-dl-copy-slot]]:col-start-3 ds:[&>[data-dl-copy-slot]]:row-span-full"
|
|
131
|
+
className: "ds:grid ds:grid-cols-[auto_minmax(0,1fr)_auto] ds:gap-x-[var(--description-list-icon-gap,var(--spacing-sm))] ds:gap-y-[var(--spacing-xs)] ds:items-start ds:[&>dt]:col-start-2 ds:[&>dd]:col-start-2 ds:[&>[data-dl-icon-slot]]:row-span-full ds:[&>[data-dl-copy-slot]]:col-start-3 ds:[&>[data-dl-copy-slot]]:row-span-full"
|
|
129
132
|
},
|
|
130
133
|
/* ----- responsive / no icons (inline above sm, stacked below) ----- */
|
|
131
134
|
{
|
|
@@ -164,30 +167,30 @@ const k = P({
|
|
|
164
167
|
({
|
|
165
168
|
layout: s = "inline",
|
|
166
169
|
density: a = "default",
|
|
167
|
-
divider:
|
|
170
|
+
divider: r = "none",
|
|
168
171
|
labelWidth: t = "auto",
|
|
169
172
|
className: m,
|
|
170
173
|
children: o,
|
|
171
|
-
style:
|
|
174
|
+
style: i,
|
|
172
175
|
...u
|
|
173
176
|
}, f) => {
|
|
174
177
|
const v = x(
|
|
175
178
|
() => C.toArray(o).some(
|
|
176
|
-
(
|
|
179
|
+
(d) => T(d) && d.props.icon != null
|
|
177
180
|
),
|
|
178
181
|
[o]
|
|
179
|
-
),
|
|
182
|
+
), l = x(
|
|
180
183
|
() => ({
|
|
181
|
-
...
|
|
184
|
+
...i,
|
|
182
185
|
"--description-list-label-track": E(t),
|
|
183
186
|
"--description-list-value-track": M(t)
|
|
184
187
|
}),
|
|
185
|
-
[
|
|
188
|
+
[i, t]
|
|
186
189
|
);
|
|
187
190
|
return /* @__PURE__ */ e(
|
|
188
191
|
k.Provider,
|
|
189
192
|
{
|
|
190
|
-
value: { layout: s, density: a, divider:
|
|
193
|
+
value: { layout: s, density: a, divider: r, hasIcons: v },
|
|
191
194
|
children: /* @__PURE__ */ e(
|
|
192
195
|
"dl",
|
|
193
196
|
{
|
|
@@ -195,12 +198,12 @@ const k = P({
|
|
|
195
198
|
className: O({
|
|
196
199
|
layout: s,
|
|
197
200
|
density: a,
|
|
198
|
-
divider:
|
|
201
|
+
divider: r,
|
|
199
202
|
className: m
|
|
200
203
|
}),
|
|
201
204
|
"data-component": "description-list",
|
|
202
205
|
"data-label-width": t === "auto" || t === "fixed" ? t : "custom",
|
|
203
|
-
style:
|
|
206
|
+
style: l,
|
|
204
207
|
...u,
|
|
205
208
|
children: o
|
|
206
209
|
}
|
|
@@ -214,23 +217,23 @@ const N = n(
|
|
|
214
217
|
({
|
|
215
218
|
copyable: s = !1,
|
|
216
219
|
copyText: a,
|
|
217
|
-
copyLabel:
|
|
220
|
+
copyLabel: r,
|
|
218
221
|
icon: t,
|
|
219
222
|
className: m,
|
|
220
223
|
children: o,
|
|
221
|
-
...
|
|
224
|
+
...i
|
|
222
225
|
}, u) => {
|
|
223
|
-
const { layout: f, divider: v, hasIcons:
|
|
226
|
+
const { layout: f, divider: v, hasIcons: l } = R(k), { t: d } = z("ui"), [I, g] = b(!1), [L, c] = b(""), D = j(async () => {
|
|
224
227
|
if (a)
|
|
225
228
|
try {
|
|
226
|
-
await navigator.clipboard.writeText(a), g(!0), c(
|
|
229
|
+
await navigator.clipboard.writeText(a), g(!0), c(d("keyValuePair.copied")), setTimeout(() => {
|
|
227
230
|
g(!1), c("");
|
|
228
231
|
}, 2e3);
|
|
229
232
|
} catch {
|
|
230
|
-
c(
|
|
233
|
+
c(d("keyValuePair.notAvailable")), setTimeout(() => c(""), 3e3);
|
|
231
234
|
}
|
|
232
|
-
}, [a,
|
|
233
|
-
label:
|
|
235
|
+
}, [a, d]), V = d("keyValuePair.copy", {
|
|
236
|
+
label: r ?? a ?? ""
|
|
234
237
|
});
|
|
235
238
|
return /* @__PURE__ */ y(
|
|
236
239
|
"div",
|
|
@@ -240,12 +243,12 @@ const N = n(
|
|
|
240
243
|
layout: f,
|
|
241
244
|
divider: v,
|
|
242
245
|
copyable: s,
|
|
243
|
-
hasIcons:
|
|
246
|
+
hasIcons: l,
|
|
244
247
|
className: m
|
|
245
248
|
}),
|
|
246
|
-
...
|
|
249
|
+
...i,
|
|
247
250
|
children: [
|
|
248
|
-
|
|
251
|
+
l && /* @__PURE__ */ e(
|
|
249
252
|
"span",
|
|
250
253
|
{
|
|
251
254
|
"data-dl-icon-slot": !0,
|
|
@@ -291,22 +294,22 @@ const F = p(
|
|
|
291
294
|
}
|
|
292
295
|
}
|
|
293
296
|
), _ = n(
|
|
294
|
-
({ className: s, ...a },
|
|
297
|
+
({ className: s, ...a }, r) => /* @__PURE__ */ e(
|
|
295
298
|
"dt",
|
|
296
299
|
{
|
|
297
|
-
ref:
|
|
300
|
+
ref: r,
|
|
298
301
|
className: F({ className: s }),
|
|
299
302
|
...a
|
|
300
303
|
}
|
|
301
304
|
)
|
|
302
305
|
);
|
|
303
306
|
_.displayName = "DescriptionList.Term";
|
|
304
|
-
const h = n(({ numeric: s = !1, className: a, ...
|
|
307
|
+
const h = n(({ numeric: s = !1, className: a, ...r }, t) => /* @__PURE__ */ e(
|
|
305
308
|
"dd",
|
|
306
309
|
{
|
|
307
310
|
ref: t,
|
|
308
311
|
className: G({ numeric: s, className: a }),
|
|
309
|
-
...
|
|
312
|
+
...r
|
|
310
313
|
}
|
|
311
314
|
));
|
|
312
315
|
h.displayName = "DescriptionList.Detail";
|
|
@@ -318,4 +321,4 @@ const Z = Object.assign(w, {
|
|
|
318
321
|
export {
|
|
319
322
|
Z as D
|
|
320
323
|
};
|
|
321
|
-
//# sourceMappingURL=description-list-
|
|
324
|
+
//# sourceMappingURL=description-list-DaldSpGy.js.map
|