@alfadocs/ui-kit 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{actions-cell-renderer-CUn1pqEq.js → actions-cell-renderer-BXBy9c0f.js} +3 -3
- package/dist/_chunks/{agenda-tray-CG6jUjKc.js → agenda-tray-CBaJASb5.js} +3 -3
- package/dist/_chunks/{ai-consent-banner-De4gzSBZ.js → ai-consent-banner-DvtaM3yg.js} +2 -2
- package/dist/_chunks/{ai-prompt-input-DdxlaI7q.js → ai-prompt-input-DXknpQCB.js} +2 -2
- package/dist/_chunks/{alia-sidebar-B6bXlZZk.js → alia-sidebar-CUqaJNPQ.js} +7 -7
- package/dist/_chunks/{anamnesis-card-DGwINeNn.js → anamnesis-card-xtEhyojD.js} +2 -2
- package/dist/_chunks/{anamnesis-summary-rows-Cxtgo2ok.js → anamnesis-summary-rows-DQUqwWc1.js} +7 -7
- package/dist/_chunks/{appointment-card-WsDGBBut.js → appointment-card-TgR_2GKS.js} +134 -102
- package/dist/_chunks/{appointment-peek-5S4O1VQP.js → appointment-peek-abiR0T9e.js} +3 -3
- package/dist/_chunks/{appointment-timeline-D-rNwKpS.js → appointment-timeline-CCnyUYKz.js} +67 -63
- package/dist/_chunks/{appointment-tray-CK2CULg_.js → appointment-tray-N0yEI8UF.js} +4 -4
- package/dist/_chunks/{audio-recorder-BlQBC7N_.js → audio-recorder-B7dT-Y3v.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DHs5p0bA.js → balance-badge-cell-o6LldMUA.js} +5 -5
- package/dist/_chunks/{bishop-score-D5b8tktp.js → bishop-score-Cu70iv9C.js} +2 -2
- package/dist/_chunks/{bmi-calculator-dOKP-vW4.js → bmi-calculator-C9N19aLX.js} +2 -2
- package/dist/_chunks/{booking-x3J7sS2G.js → booking-Dn3jvv3K.js} +5 -5
- package/dist/_chunks/{button-nJaPh_HC.js → button-CaUe1uyd.js} +11 -7
- package/dist/_chunks/{button-group-QmN1VdUW.js → button-group-R32U7SyV.js} +2 -2
- package/dist/_chunks/{calendar-7GAUlsNO.js → calendar-ChJQzRw-.js} +2 -2
- package/dist/_chunks/calendar-workspace-B-fUbm62.js +11372 -0
- package/dist/_chunks/{care-plan-card-COFOI-fI.js → care-plan-card-BOv0NRle.js} +3 -3
- package/dist/_chunks/{care-plan-entry-card-BOKn0KW-.js → care-plan-entry-card-d-rZD4li.js} +3 -3
- package/dist/_chunks/{care-plan-header-CbuOuVBw.js → care-plan-header-CEmBXn6-.js} +2 -2
- package/dist/_chunks/{carousel.agent-Dv4a4M8L.js → carousel.agent-z1yLBpyC.js} +2 -2
- package/dist/_chunks/{chart-iWl76PXv.js → chart-PF2krCZC.js} +3 -3
- package/dist/_chunks/{chat-input-qM5QpUSq.js → chat-input-Cj7ZYQr5.js} +2 -2
- package/dist/_chunks/{chat-message-RniXtrCH.js → chat-message-BMVxiUIX.js} +3 -3
- package/dist/_chunks/{code-block-uVjNSI9g.js → code-block-BB-viuTn.js} +2 -2
- package/dist/_chunks/{connection-status-OEsWjmRk.js → connection-status-BmA9T0UO.js} +3 -3
- package/dist/_chunks/{contact-profile-card--My1H2UD.js → contact-profile-card-Zt6WNg1u.js} +2 -2
- package/dist/_chunks/{control-room-rail-DQoHdE1U.js → control-room-rail-CnNZusR5.js} +3 -3
- package/dist/_chunks/{copy-field-fYKpl6aN.js → copy-field-B8XRVmQv.js} +2 -2
- package/dist/_chunks/credit-card-D9XZsHGA.js +15 -0
- package/dist/_chunks/{cycle-calculator-BJeaXiZv.js → cycle-calculator-BH2StWoT.js} +2 -2
- package/dist/_chunks/{dashboard-grid-B23BFzRl.js → dashboard-grid-BcXWL5S9.js} +2 -2
- package/dist/_chunks/{data-table-Dy1lyumT.js → data-table-CcAx_I1w.js} +6 -6
- package/dist/_chunks/{data-table-tabs-BMR0zsVQ.js → data-table-tabs-B9SXA5VP.js} +3 -3
- package/dist/_chunks/{description-list-C1RXMDZ_.js → description-list-BsJ_6CQE.js} +2 -2
- package/dist/_chunks/{document-preview-DsEyRcNd.js → document-preview-COV0BC6n.js} +2 -2
- package/dist/_chunks/{document-scanner-CbWVtm7u.js → document-scanner-B1abl-A4.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Dhc9Ljkb.js → due-date-calculator-Buh_mVHq.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-D7blbDFY.js → editable-currency-cell-renderer-Psb6XKHR.js} +3 -3
- package/dist/_chunks/{editable-description-7ptNpJEg.js → editable-description-ADMVFPUz.js} +3 -3
- package/dist/_chunks/{editor-overlay-8fKAcRsm.js → editor-overlay-9tcPXNWt.js} +2 -2
- package/dist/_chunks/{empty-state-X0sVPfVo.js → empty-state-BUN_UAWf.js} +2 -2
- package/dist/_chunks/{entity-summary-BbW0mIzU.js → entity-summary-DXejuQ8i.js} +3 -3
- package/dist/_chunks/{error-boundary-ayXFCcq4.js → error-boundary-BNT2iQ1w.js} +2 -2
- package/dist/_chunks/{face-scheme-uFvhqz6h.js → face-scheme-Dg6ZyLKb.js} +5 -5
- package/dist/_chunks/{fetal-weight-C6SxchOv.js → fetal-weight-wx4ycKc6.js} +2 -2
- package/dist/_chunks/{field-array-C9dmRaIM.js → field-array-BW9KeeXG.js} +3 -3
- package/dist/_chunks/{file-manager-UlcYQv8n.js → file-manager-BfLQxF5t.js} +136 -150
- package/dist/_chunks/{finished-terminal-Br61Ip4e.js → finished-terminal-DJd7Z_po.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-CkwIdB1y.js → fiscal-code-input-ODQRd_Sw.js} +2 -2
- package/dist/_chunks/folder-BghC8_S2.js +20 -0
- package/dist/_chunks/{freemium-paywall-BqGk_SBU.js → freemium-paywall-Cz-O9lQD.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-DDOGaPvg.js → gestational-age-calculator-CwbecTul.js} +2 -2
- package/dist/_chunks/{hcg-doubling-Bb_n6tEa.js → hcg-doubling-BcXriXJe.js} +2 -2
- package/dist/_chunks/{header-BZ4pZlJV.js → header-3o9o9v_T.js} +2 -2
- package/dist/_chunks/{header-settings-B8mLc03Q.js → header-settings-CTe45iDy.js} +4 -4
- package/dist/_chunks/{hover-card-Bcku1GQu.js → hover-card-BMJBVqIf.js} +2 -2
- package/dist/_chunks/{icon-button-8xqRnkdG.js → icon-button-CehAeZoP.js} +2 -2
- package/dist/_chunks/{icon-button-group-Dj6CRoYR.js → icon-button-group-DkkdIygu.js} +2 -2
- package/dist/_chunks/{icon-picker-CTWzlHJr.js → icon-picker-DMEelg9v.js} +3 -3
- package/dist/_chunks/{image-cropper-C84NDTB7.js → image-cropper-BjPjT7wU.js} +2 -2
- package/dist/_chunks/{info-tip-ey_Pon2y.js → info-tip-iP2Pm9dh.js} +2 -2
- package/dist/_chunks/{insert-result-LCNTskNJ.js → insert-result-DPnOBD85.js} +2 -2
- package/dist/_chunks/{key-value-pair-DczGb4yz.js → key-value-pair-DaQI_LZB.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BNa8x6oJ.js → link-cell-renderer-s3oHzOwi.js} +2 -2
- package/dist/_chunks/{locale-picker-BLeHbFSc.js → locale-picker-CH3kfrIG.js} +3 -3
- package/dist/_chunks/{map-view-CCAlC9IL.js → map-view-CHw4RL6w.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-BwH6Aruw.js → marketplace-app-shell-d2EtcUbe.js} +4 -4
- package/dist/_chunks/{message-card-Dm5Xshup.js → message-card-V3sFPiQI.js} +3 -3
- package/dist/_chunks/{message-tray-CXjVsKqp.js → message-tray-CrRIHfiQ.js} +4 -4
- package/dist/_chunks/{note-timeline-D2oPuQP6.js → note-timeline-Dn_XTo1s.js} +131 -90
- package/dist/_chunks/{notes-panel-CkbfDDzj.js → notes-panel-CAD1Ytcj.js} +276 -243
- package/dist/_chunks/{notification-card-ChcK9Wat.js → notification-card-B2gLO6dK.js} +3 -3
- package/dist/_chunks/{notification-tray-_NoChRKi.js → notification-tray-BOEKegVV.js} +4 -4
- package/dist/_chunks/{optical-prescription-cphK41eP.js → optical-prescription-LGgmtcST.js} +2 -2
- package/dist/_chunks/{panel-subview-BNXN8OEL.js → panel-subview-Cc2Wtt7D.js} +52 -52
- package/dist/_chunks/{patient-details-2cIaL-Zb.js → patient-details-C8ImUrVg.js} +3 -3
- package/dist/_chunks/{patient-field-row-IHb2VFc2.js → patient-field-row-BRSOKvme.js} +7 -7
- package/dist/_chunks/{patient-search-D08b6jgj.js → patient-search-5QcmQKJD.js} +2 -2
- package/dist/_chunks/{patient-summary-card-B131Q7Bp.js → patient-summary-card-BhmKB2KR.js} +7 -7
- package/dist/_chunks/{payment-automation-upsell-BLTdE2em.js → payment-automation-upsell-BKmBXU4i.js} +17 -16
- package/dist/_chunks/{payment-request-card-BxcdvxKR.js → payment-request-card-Cer6XXCn.js} +6 -5
- package/dist/_chunks/{periodontal-chart-BF_e3wZp.js → periodontal-chart-DJoZS_o7.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-BJEuJuzh.js → periodontal-chart-card-Nd1ZoYWb.js} +2 -2
- package/dist/_chunks/{popover-DzR5QYxp.js → popover-DO-pssF3.js} +2 -2
- package/dist/_chunks/{practice-results-CBNRJNnY.js → practice-results-D_jjzwgf.js} +5 -5
- package/dist/_chunks/{pregnancy-dating-nV1_S6w0.js → pregnancy-dating-DcyV9ZRD.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-tRecShAD.js → pregnancy-weight-gain-Bfq4Kwt5.js} +2 -2
- package/dist/_chunks/{privacy-lock-Be39vQUN.js → privacy-lock-CbFCAMM3.js} +3 -3
- package/dist/_chunks/{product-hub-panel-C3bMjscm.js → product-hub-panel-w40-_-1s.js} +3 -3
- package/dist/_chunks/{public-header.agent-Bl1KFwSE.js → public-header.agent-D-EBVskf.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-k0G7JuoM.js → radiograph-panel.agent-LrILY2lN.js} +4 -4
- package/dist/_chunks/{receipt-euro-C6k4Gzhr.js → receipt-euro-B1cLM_TN.js} +3 -14
- package/dist/_chunks/{reviews-panel-Cy969x7q.js → reviews-panel-2GVuxGeT.js} +4 -4
- package/dist/_chunks/{rich-text-editor-BTXlorm5.js → rich-text-editor-C6fE-uP4.js} +5 -5
- package/dist/_chunks/{session-countdown-QMsnRa1x.js → session-countdown-BqppPrw6.js} +2 -2
- package/dist/_chunks/{sheet-hm04DGFd.js → sheet-C8WIDFS8.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BLe_quy5.js → sign-in-with-alfadocs-button-DWwBJtyE.js} +2 -2
- package/dist/_chunks/{signature-request-b-86AGlT.js → signature-request-D_j2aQu1.js} +359 -370
- package/dist/_chunks/{slot-grid-Bk3GZL1p.js → slot-grid-B3eOPkKD.js} +4 -4
- package/dist/_chunks/{streaming-text-DjFqLSt_.js → streaming-text-CE1u_oGa.js} +2 -2
- package/dist/_chunks/{task-tray-5co9Jr2L.js → task-tray-DIwjAIes.js} +3 -3
- package/dist/_chunks/{tasks-panel-BpH-x7U3.js → tasks-panel-CpcikOeY.js} +5 -5
- package/dist/_chunks/{theme-toggle-CMz8YfC1.js → theme-toggle-bI0pgDDv.js} +3 -3
- package/dist/_chunks/{toast-8jqtbfAB.js → toast-ZZfhA5u0.js} +2 -2
- package/dist/_chunks/{token-insert-menu-9Um0JinI.js → token-insert-menu-A9B5AJw6.js} +2 -2
- package/dist/_chunks/tool-rail-D89USYE6.js +799 -0
- package/dist/_chunks/{tooth-scheme-BWkYxxjR.js → tooth-scheme-DPAq0vQK.js} +3 -3
- package/dist/_chunks/{transaction-chip-Dth1nThY.js → transaction-chip-CwgcJiqF.js} +47 -46
- package/dist/_chunks/{unit-converter-BTgU50gk.js → unit-converter-C-LpGzrN.js} +2 -2
- package/dist/_chunks/user-plus-BtcOLgNU.js +17 -0
- package/dist/_chunks/{warning-stack-BW5Dwb3z.js → warning-stack-C0glSB7p.js} +3 -3
- package/dist/_chunks/{workflow-map-CXdsxvUj.js → workflow-map-DhR_h5yw.js} +5 -5
- package/dist/agent-catalog.json +3 -418
- package/dist/agent-i18n/en.json +2 -18
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/appointment-card.d.ts +24 -0
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/appointment-timeline.d.ts +15 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/index.js +2 -2
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calendar/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/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/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/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 +9 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notes-panel/notes-panel.d.ts +5 -4
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/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/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts +7 -0
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/host-compat.css +13 -4
- package/dist/i18n/locales/ar.d.ts +235 -183
- package/dist/i18n/locales/ar.js +239 -187
- package/dist/i18n/locales/de.d.ts +219 -167
- package/dist/i18n/locales/de.js +223 -171
- package/dist/i18n/locales/el.d.ts +234 -182
- package/dist/i18n/locales/el.js +238 -186
- package/dist/i18n/locales/en.d.ts +52 -0
- package/dist/i18n/locales/en.js +56 -4
- package/dist/i18n/locales/es.d.ts +227 -175
- package/dist/i18n/locales/es.js +231 -179
- package/dist/i18n/locales/fr.d.ts +221 -169
- package/dist/i18n/locales/fr.js +225 -173
- package/dist/i18n/locales/hi.d.ts +235 -183
- package/dist/i18n/locales/hi.js +243 -187
- package/dist/i18n/locales/it.d.ts +179 -127
- package/dist/i18n/locales/it.js +183 -131
- package/dist/i18n/locales/ja.d.ts +233 -181
- package/dist/i18n/locales/ja.js +237 -185
- package/dist/i18n/locales/nl.d.ts +224 -172
- package/dist/i18n/locales/nl.js +228 -176
- package/dist/i18n/locales/pl.d.ts +229 -177
- package/dist/i18n/locales/pl.js +233 -181
- package/dist/i18n/locales/pt.d.ts +229 -177
- package/dist/i18n/locales/pt.js +233 -181
- package/dist/i18n/locales/ro.d.ts +228 -176
- package/dist/i18n/locales/ro.js +232 -180
- package/dist/i18n/locales/ru.d.ts +234 -182
- package/dist/i18n/locales/ru.js +238 -186
- package/dist/i18n/locales/sq.d.ts +228 -176
- package/dist/i18n/locales/sq.js +232 -180
- package/dist/i18n/locales/sv.d.ts +229 -177
- package/dist/i18n/locales/sv.js +233 -181
- package/dist/i18n/locales/tr.d.ts +235 -183
- package/dist/i18n/locales/tr.js +239 -187
- package/dist/i18n/locales/zh.d.ts +228 -176
- package/dist/i18n/locales/zh.js +232 -180
- package/dist/index.js +107 -107
- package/dist/locales/ar.json +239 -187
- package/dist/locales/de.json +223 -171
- package/dist/locales/el.json +238 -186
- package/dist/locales/en.json +56 -4
- package/dist/locales/es.json +231 -179
- package/dist/locales/fr.json +225 -173
- package/dist/locales/hi.json +239 -187
- package/dist/locales/it.json +183 -131
- package/dist/locales/ja.json +237 -185
- package/dist/locales/nl.json +228 -176
- package/dist/locales/pl.json +233 -181
- package/dist/locales/pt.json +233 -181
- package/dist/locales/ro.json +232 -180
- package/dist/locales/ru.json +238 -186
- package/dist/locales/sq.json +232 -180
- package/dist/locales/sv.json +233 -181
- package/dist/locales/tr.json +239 -187
- package/dist/locales/zh.json +232 -180
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +7 -0
- package/dist/patterns/calendar/calendar-appointment-details.sections.d.ts +10 -5
- package/dist/patterns/calendar/calendar-bookings-panel.d.ts +31 -0
- package/dist/patterns/calendar/calendar-info-hover.d.ts +15 -1
- package/dist/patterns/calendar/calendar-privacy.d.ts +23 -0
- package/dist/patterns/calendar/calendar-rail-settle.d.ts +14 -0
- package/dist/patterns/calendar/calendar-upcoming-panel.d.ts +32 -0
- package/dist/patterns/calendar/calendar-waiting-list-panel.d.ts +62 -0
- package/dist/patterns/calendar/calendar-workspace.d.ts +14 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +37 -1
- package/dist/patterns/calendar/calendar.model.d.ts +8 -2
- package/dist/patterns/calendar/calendar.sheets.d.ts +43 -27
- package/dist/patterns/calendar/calendar.types.d.ts +6 -0
- package/dist/patterns/calendar/index.d.ts +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +3 -1
- package/dist/_chunks/calendar-workspace-Cc1LRVWY.js +0 -9900
- package/dist/_chunks/tool-rail-BP8sjxCw.js +0 -667
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
import { jsxs as T, jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as Ue, useRef as v, useState as k, useMemo as D, useId as We, useCallback as P, useEffect as ge, useImperativeHandle as $e, Fragment as Ze } from "react";
|
|
3
|
-
import { c as w } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as Xe } from "react-i18next";
|
|
5
|
-
import { I as be } from "./icon-button-8xqRnkdG.js";
|
|
6
|
-
import { S as Ye } from "./scroll-area-BZOvUhwQ.js";
|
|
7
|
-
import { a as Ge } from "./tooltip-Cp-PLePW.js";
|
|
8
|
-
import { u as Je } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
-
import { u as Qe } from "./use-edge-resize-ZnGG7gyO.js";
|
|
10
|
-
import { u as M } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
|
-
import { a as et, u as tt, R as st } from "./use-list-reflow-Cw43nxw5.js";
|
|
12
|
-
import { u as at } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
13
|
-
import { u as nt } from "./use-presence-transition-cDwWUXV-.js";
|
|
14
|
-
import { u as rt } from "./use-theme-CAuo6EYT.js";
|
|
15
|
-
import { u as it } from "./registry-DvAUVLHh.js";
|
|
16
|
-
const ot = {
|
|
17
|
-
id: "tool-rail",
|
|
18
|
-
capabilities: ["open", "close", "select_single"],
|
|
19
|
-
state: {
|
|
20
|
-
activeToolId: {
|
|
21
|
-
type: "string | null",
|
|
22
|
-
descriptionKey: "ui.toolRail.agent.state.activeToolId",
|
|
23
|
-
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.",
|
|
24
|
-
read: (l) => l.getActiveToolId()
|
|
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 shape is intentionally pre-existing — already resolves to
|
|
39
|
-
// real multi-locale translations; do not canonicalise.
|
|
40
|
-
descriptionKey: "ui.toolRail.agent.actions.open",
|
|
41
|
-
description: "Open the given tool's panel.",
|
|
42
|
-
examples: [{ args: { id: "inbox" }, note: "Open the inbox tool panel." }],
|
|
43
|
-
invoke: (l, a) => {
|
|
44
|
-
l.open(a.id);
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
close: {
|
|
48
|
-
safety: "read",
|
|
49
|
-
idempotent: !0,
|
|
50
|
-
descriptionKey: "ui.toolRail.agent.actions.close",
|
|
51
|
-
description: "Collapse the rail to its strip (no active tool).",
|
|
52
|
-
invoke: (l) => {
|
|
53
|
-
l.close();
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
select_tool: {
|
|
57
|
-
safety: "read",
|
|
58
|
-
argsType: "{ id: string | null }",
|
|
59
|
-
argsSchema: {
|
|
60
|
-
type: "object",
|
|
61
|
-
properties: { id: { type: ["string", "null"] } },
|
|
62
|
-
required: ["id"]
|
|
63
|
-
},
|
|
64
|
-
idempotent: !0,
|
|
65
|
-
descriptionKey: "ui.toolRail.agent.actions.selectTool",
|
|
66
|
-
description: "Set the active tool by id (opens its panel), or pass null to collapse.",
|
|
67
|
-
invoke: (l, a) => {
|
|
68
|
-
l.setActiveTool(a.id);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
domHooks: {
|
|
73
|
-
root: {
|
|
74
|
-
attr: "data-component",
|
|
75
|
-
value: "tool-rail",
|
|
76
|
-
description: "Marks the ToolRail wrapper."
|
|
77
|
-
},
|
|
78
|
-
instanceId: {
|
|
79
|
-
attr: "data-component-id",
|
|
80
|
-
sourceProp: "id",
|
|
81
|
-
description: "Sourced from the id prop. Required to address a specific rail from the agent."
|
|
82
|
-
},
|
|
83
|
-
item: {
|
|
84
|
-
attr: "data-tool-id",
|
|
85
|
-
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}, dt = "ds:[inline-size:3rem]", lt = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", he = "--tool-rail-panel-inline-size", ct = 288, ut = 880, ft = 352, pt = w(
|
|
89
|
-
["ds:flex ds:shrink-0 ds:h-full", "ds:bg-[var(--background)]"].join(" "),
|
|
90
|
-
{
|
|
91
|
-
variants: {
|
|
92
|
-
side: {
|
|
93
|
-
// Strip docks inline-end; the panel mounts inline-start of it
|
|
94
|
-
// (flex-row, panel rendered first). Shadow faces the main area —
|
|
95
|
-
// no border against main (the rail stays line-free; the only seam
|
|
96
|
-
// is the strip↔panel divider on the open panel, see render).
|
|
97
|
-
// Accessible (AAA) theme swaps the soft chrome shadow for a solid 1px
|
|
98
|
-
// border on the content-facing edge (border-s for end-docked).
|
|
99
|
-
end: "ds:flex-row ds:shadow-[var(--shadow-chrome-start)] ds:[.theme-accessible_&]:border-s ds:[.theme-accessible_&]:border-[var(--border)] ds:[.theme-accessible_&]:shadow-none",
|
|
100
|
-
// Strip docks inline-start; the panel mounts inline-end of it.
|
|
101
|
-
start: "ds:flex-row-reverse ds:shadow-[var(--shadow-chrome-end)] ds:[.theme-accessible_&]:border-e ds:[.theme-accessible_&]:border-[var(--border)] ds:[.theme-accessible_&]:shadow-none"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
defaultVariants: { side: "end" }
|
|
105
|
-
}
|
|
106
|
-
), vt = w(
|
|
107
|
-
[
|
|
108
|
-
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
109
|
-
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
110
|
-
"ds:gap-[var(--spacing-xs)]",
|
|
111
|
-
dt
|
|
112
|
-
].join(" ")
|
|
113
|
-
), mt = w(
|
|
114
|
-
[
|
|
115
|
-
"ds:relative ds:flex ds:min-h-0 ds:flex-col ds:h-full",
|
|
116
|
-
"ds:bg-[var(--background)]",
|
|
117
|
-
lt,
|
|
118
|
-
// Open / collapse: the panel fades and slides from the strip. The WIDTH
|
|
119
|
-
// snaps on purpose — animating it would re-lay-out the main area (a
|
|
120
|
-
// calendar grid) on every frame. Declared at rest so both directions
|
|
121
|
-
// have a value to move from.
|
|
122
|
-
"ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
|
|
123
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
|
|
124
|
-
"ds:data-[presence=entering]:opacity-0 ds:data-[presence=leaving]:opacity-0",
|
|
125
|
-
"ds:data-[presence=leaving]:pointer-events-none",
|
|
126
|
-
"ds:data-[resizing]:transition-none"
|
|
127
|
-
].join(" "),
|
|
128
|
-
{
|
|
129
|
-
variants: {
|
|
130
|
-
// Slide toward the strip the panel belongs to, mirrored in RTL.
|
|
131
|
-
side: {
|
|
132
|
-
end: "ds:data-[presence=entering]:translate-x-[var(--spacing-md)] ds:data-[presence=leaving]:translate-x-[var(--spacing-md)] ds:rtl:data-[presence=entering]:-translate-x-[var(--spacing-md)] ds:rtl:data-[presence=leaving]:-translate-x-[var(--spacing-md)]",
|
|
133
|
-
start: "ds:data-[presence=entering]:-translate-x-[var(--spacing-md)] ds:data-[presence=leaving]:-translate-x-[var(--spacing-md)] ds:rtl:data-[presence=entering]:translate-x-[var(--spacing-md)] ds:rtl:data-[presence=leaving]:translate-x-[var(--spacing-md)]"
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
defaultVariants: { side: "end" }
|
|
137
|
-
}
|
|
138
|
-
), gt = w(
|
|
139
|
-
[
|
|
140
|
-
"ds:flex ds:min-h-0 ds:flex-1 ds:flex-col",
|
|
141
|
-
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
142
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none",
|
|
143
|
-
"ds:data-[presence=entering]:opacity-0"
|
|
144
|
-
].join(" ")
|
|
145
|
-
), bt = w(
|
|
146
|
-
[
|
|
147
|
-
"ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
|
|
148
|
-
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
|
|
149
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
150
|
-
"ds:hover:bg-[var(--accent)] ds:focus-visible:bg-[var(--accent)] ds:data-[resizing]:bg-[var(--accent)]",
|
|
151
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
152
|
-
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
153
|
-
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
154
|
-
"ds:before:absolute ds:before:content-['']",
|
|
155
|
-
"ds:before:[block-size:100%]",
|
|
156
|
-
"ds:before:[inline-size:var(--min-target-size)]",
|
|
157
|
-
"ds:before:[inset-block:0]",
|
|
158
|
-
"ds:before:[inset-inline:calc(0px_-_(var(--min-target-size)_-_var(--resizable-handle-size))_/_2)]"
|
|
159
|
-
],
|
|
160
|
-
{
|
|
161
|
-
variants: {
|
|
162
|
-
edge: {
|
|
163
|
-
"inline-start": "ds:start-0",
|
|
164
|
-
"inline-end": "ds:end-0"
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
defaultVariants: { edge: "inline-start" }
|
|
168
|
-
}
|
|
169
|
-
), ht = w(
|
|
170
|
-
[
|
|
171
|
-
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
172
|
-
"ds:inline-flex ds:items-center ds:justify-center",
|
|
173
|
-
"ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
174
|
-
"ds:h-[calc(var(--spacing-md)+var(--spacing-xs))]",
|
|
175
|
-
"ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
|
|
176
|
-
"ds:rounded-[var(--radius-full)]",
|
|
177
|
-
"ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
|
|
178
|
-
"ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
179
|
-
"ds:pointer-events-none ds:select-none",
|
|
180
|
-
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
181
|
-
].join(" ")
|
|
182
|
-
), ye = w(
|
|
183
|
-
// `group/rail-tool` lets an affordance overlay (e.g. a pin star) reveal on
|
|
184
|
-
// hover / focus-within of the whole slot.
|
|
185
|
-
["ds:group/rail-tool ds:relative", "ds:rounded-[var(--radius-sm)]"],
|
|
186
|
-
{
|
|
187
|
-
variants: {
|
|
188
|
-
dragging: { true: "ds:opacity-60", false: "" },
|
|
189
|
-
dropTarget: {
|
|
190
|
-
true: "ds:outline-[length:var(--focus-ring-width)] ds:outline-dashed ds:outline-[var(--accent)] ds:outline-offset-[length:var(--focus-ring-offset)]",
|
|
191
|
-
false: ""
|
|
192
|
-
},
|
|
193
|
-
reorderable: {
|
|
194
|
-
true: "ds:cursor-grab ds:active:cursor-grabbing",
|
|
195
|
-
false: ""
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
defaultVariants: {
|
|
199
|
-
dragging: !1,
|
|
200
|
-
dropTarget: !1,
|
|
201
|
-
reorderable: !1
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
), yt = "ds:opacity-0", we = [
|
|
205
|
-
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
206
|
-
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
207
|
-
].join(" ");
|
|
208
|
-
function wt(l, a) {
|
|
209
|
-
return l > 99 ? a : String(l);
|
|
210
|
-
}
|
|
211
|
-
const xt = Ue(
|
|
212
|
-
({
|
|
213
|
-
id: l,
|
|
214
|
-
tools: a,
|
|
215
|
-
activeToolId: xe,
|
|
216
|
-
defaultActiveToolId: Ie = null,
|
|
217
|
-
onActiveToolChange: Re,
|
|
218
|
-
side: A = "end",
|
|
219
|
-
railLabel: Te,
|
|
220
|
-
resizablePanel: N = !1,
|
|
221
|
-
onReorder: L,
|
|
222
|
-
formatReorderAnnouncement: F,
|
|
223
|
-
renderToolAffordance: K,
|
|
224
|
-
renderPanelHeader: Q,
|
|
225
|
-
dataComponent: ke = "tool-rail",
|
|
226
|
-
agentAdapter: Ae = ot,
|
|
227
|
-
className: Se
|
|
228
|
-
}, Ee) => {
|
|
229
|
-
var pe;
|
|
230
|
-
const { t: m } = Xe(), [_e, g] = Je({
|
|
231
|
-
value: xe,
|
|
232
|
-
defaultValue: Ie,
|
|
233
|
-
onChange: Re
|
|
234
|
-
}), b = _e ?? null, q = v([]), S = v(null), [B, H] = k(0), x = v(!1), O = v(!1), h = D(
|
|
235
|
-
() => a.findIndex((e) => e.id === b),
|
|
236
|
-
[a, b]
|
|
237
|
-
), d = h >= 0 ? a[h] : null, U = v(d);
|
|
238
|
-
d && (U.current = d);
|
|
239
|
-
const ze = D(
|
|
240
|
-
() => a.findIndex((e) => !e.disabled),
|
|
241
|
-
[a]
|
|
242
|
-
), ee = D(() => {
|
|
243
|
-
var t;
|
|
244
|
-
const e = (t = a[0]) == null ? void 0 : t.scope;
|
|
245
|
-
return e ? a.findIndex((s) => s.scope && s.scope !== e) : -1;
|
|
246
|
-
}, [a]), De = ee > 0, c = D(() => {
|
|
247
|
-
var s;
|
|
248
|
-
const e = a.findIndex((n) => n.reorderable);
|
|
249
|
-
if (e < 0) return null;
|
|
250
|
-
let t = e;
|
|
251
|
-
for (; t + 1 < a.length && ((s = a[t + 1]) != null && s.reorderable); ) t += 1;
|
|
252
|
-
return { first: e, last: t };
|
|
253
|
-
}, [a]), te = !!L && c !== null, Ne = We(), [E, W] = k(null), [se, C] = k(null), { resolvedTheme: Le } = rt(), V = Le.endsWith("-accessible") || void 0, { containerRef: Ce } = et({
|
|
254
|
-
key: a.map((e) => e.id).join(),
|
|
255
|
-
reduceMotion: V
|
|
256
|
-
}), $ = tt({ reduceMotion: V }), Z = nt(
|
|
257
|
-
d !== null,
|
|
258
|
-
{ reduceMotion: V }
|
|
259
|
-
), y = d === null && Z.mounted, p = d ?? (y ? U.current : null), { ref: ae } = Z, Ve = P(
|
|
260
|
-
(e) => {
|
|
261
|
-
S.current = e, ae(e);
|
|
262
|
-
},
|
|
263
|
-
[ae]
|
|
264
|
-
);
|
|
265
|
-
M(() => {
|
|
266
|
-
var s, n;
|
|
267
|
-
const e = S.current;
|
|
268
|
-
if (!e) return;
|
|
269
|
-
const t = document.activeElement;
|
|
270
|
-
if (y && t instanceof HTMLElement && e.contains(t)) {
|
|
271
|
-
const i = (s = U.current) == null ? void 0 : s.id, o = i ? (n = z.current) == null ? void 0 : n.querySelector(
|
|
272
|
-
`[data-tool-id="${CSS.escape(i)}"]`
|
|
273
|
-
) : null;
|
|
274
|
-
t.blur(), e.setAttribute("inert", ""), o == null || o.focus();
|
|
275
|
-
return;
|
|
276
|
-
}
|
|
277
|
-
e.toggleAttribute("inert", y);
|
|
278
|
-
}, [y]);
|
|
279
|
-
const je = at(), [j, ne] = k(
|
|
280
|
-
(d == null ? void 0 : d.id) ?? null
|
|
281
|
-
), I = (d == null ? void 0 : d.id) ?? null, X = !V && !je && I !== null && j !== null && j !== I;
|
|
282
|
-
M(() => {
|
|
283
|
-
if (j === I) return;
|
|
284
|
-
if (!X) {
|
|
285
|
-
ne(I);
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
let e = 0;
|
|
289
|
-
const t = () => ne(I), s = requestAnimationFrame(() => {
|
|
290
|
-
e = requestAnimationFrame(t);
|
|
291
|
-
}), n = window.setTimeout(t, 64);
|
|
292
|
-
return () => {
|
|
293
|
-
cancelAnimationFrame(s), cancelAnimationFrame(e), window.clearTimeout(n);
|
|
294
|
-
};
|
|
295
|
-
}, [I, j, X]);
|
|
296
|
-
const [Pe, re] = k([]), ie = v(a);
|
|
297
|
-
ge(() => {
|
|
298
|
-
const e = ie.current, t = new Set(a.map((n) => n.id)), s = e.filter((n) => !t.has(n.id));
|
|
299
|
-
if (s.length > 0) {
|
|
300
|
-
re((n) => {
|
|
301
|
-
const i = new Set(n.map((o) => o.id));
|
|
302
|
-
return [
|
|
303
|
-
...n,
|
|
304
|
-
...s.filter((o) => !i.has(o.id))
|
|
305
|
-
];
|
|
306
|
-
});
|
|
307
|
-
for (const n of s)
|
|
308
|
-
$.leave(n.id, () => {
|
|
309
|
-
re(
|
|
310
|
-
(i) => i.filter((o) => o.id !== n.id)
|
|
311
|
-
);
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
ie.current = a;
|
|
315
|
-
}, [a, $]);
|
|
316
|
-
const [Me, Fe] = k(""), Y = v(!1), oe = P(
|
|
317
|
-
(e, t) => {
|
|
318
|
-
if (!L || !c) return;
|
|
319
|
-
const s = Math.max(
|
|
320
|
-
c.first,
|
|
321
|
-
Math.min(c.last, t)
|
|
322
|
-
);
|
|
323
|
-
if (s === e) return;
|
|
324
|
-
L(e, s);
|
|
325
|
-
const n = a[e];
|
|
326
|
-
if (n) {
|
|
327
|
-
const i = F ? F({ tool: n, from: e, to: s }) : m("toolRail.reorderAnnounce", {
|
|
328
|
-
tool: n.label,
|
|
329
|
-
to: s - c.first + 1,
|
|
330
|
-
total: c.last - c.first + 1,
|
|
331
|
-
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
332
|
-
});
|
|
333
|
-
i && (Y.current = !Y.current, Fe(Y.current ? i : `${i}`));
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
[L, c, a, m, F]
|
|
337
|
-
), _ = h >= 0 ? h : B >= 0 && !((pe = a[B]) != null && pe.disabled) ? B : ze, Ke = P(
|
|
338
|
-
(e, t) => {
|
|
339
|
-
const s = a.find((n) => n.id === e);
|
|
340
|
-
!s || s.disabled || (x.current = t, g(b === e ? null : e));
|
|
341
|
-
},
|
|
342
|
-
[a, b, g]
|
|
343
|
-
), qe = P(
|
|
344
|
-
(e) => {
|
|
345
|
-
var R, r, u;
|
|
346
|
-
const t = a.length;
|
|
347
|
-
if (t === 0 || e.altKey) return;
|
|
348
|
-
let s = null;
|
|
349
|
-
if (e.key === "ArrowDown" ? s = (_ + 1) % t : e.key === "ArrowUp" ? s = (_ - 1 + t) % t : e.key === "Home" ? s = 0 : e.key === "End" && (s = t - 1), s === null) return;
|
|
350
|
-
const n = e.key === "ArrowUp" || e.key === "End";
|
|
351
|
-
let i = s, o = 0;
|
|
352
|
-
for (; o < t && ((R = a[i]) != null && R.disabled); )
|
|
353
|
-
i = n ? (i - 1 + t) % t : (i + 1) % t, o += 1;
|
|
354
|
-
(r = a[i]) != null && r.disabled || (e.preventDefault(), H(i), (u = q.current[i]) == null || u.focus());
|
|
355
|
-
},
|
|
356
|
-
[a, _]
|
|
357
|
-
), z = v(null);
|
|
358
|
-
ge(() => {
|
|
359
|
-
const e = z.current;
|
|
360
|
-
if (!e) return;
|
|
361
|
-
const t = (s) => {
|
|
362
|
-
if (s.key !== "Escape" || h < 0) return;
|
|
363
|
-
s.preventDefault();
|
|
364
|
-
const n = h;
|
|
365
|
-
g(null), H(n), requestAnimationFrame(() => {
|
|
366
|
-
var i;
|
|
367
|
-
(i = q.current[n]) == null || i.focus();
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
371
|
-
}, [h, g]), M(() => {
|
|
372
|
-
var e;
|
|
373
|
-
d && x.current && ((e = S.current) == null || e.focus()), x.current = !1;
|
|
374
|
-
}, [d]);
|
|
375
|
-
const de = A === "end" ? "inline-start" : "inline-end", { separatorProps: le, isResizing: ce, isResized: ue } = Qe({
|
|
376
|
-
edge: de,
|
|
377
|
-
targetRef: S,
|
|
378
|
-
cssProperty: he,
|
|
379
|
-
minSize: ct,
|
|
380
|
-
maxSize: ut,
|
|
381
|
-
defaultSize: ft,
|
|
382
|
-
disabled: !N
|
|
383
|
-
}), fe = le["aria-valuenow"];
|
|
384
|
-
M(() => {
|
|
385
|
-
var e;
|
|
386
|
-
!N || !ue || !d || (e = S.current) == null || e.style.setProperty(
|
|
387
|
-
he,
|
|
388
|
-
`${fe}px`
|
|
389
|
-
);
|
|
390
|
-
}, [d, N, ue, fe]);
|
|
391
|
-
const G = v(b);
|
|
392
|
-
G.current = b;
|
|
393
|
-
const J = D(
|
|
394
|
-
() => ({
|
|
395
|
-
getActiveToolId: () => G.current,
|
|
396
|
-
setActiveTool: (e) => {
|
|
397
|
-
x.current = !1, g(e);
|
|
398
|
-
},
|
|
399
|
-
open: (e) => {
|
|
400
|
-
const t = a.find((s) => s.id === e);
|
|
401
|
-
!t || t.disabled || (x.current = !1, g(e));
|
|
402
|
-
},
|
|
403
|
-
close: () => {
|
|
404
|
-
const e = G.current;
|
|
405
|
-
x.current = !1, g(null), e != null && requestAnimationFrame(() => {
|
|
406
|
-
var t, s;
|
|
407
|
-
(s = (t = z.current) == null ? void 0 : t.querySelector(
|
|
408
|
-
`[data-tool-id="${CSS.escape(e)}"]`
|
|
409
|
-
)) == null || s.focus();
|
|
410
|
-
});
|
|
411
|
-
}
|
|
412
|
-
}),
|
|
413
|
-
[a, g]
|
|
414
|
-
);
|
|
415
|
-
$e(Ee, () => J, [J]), it(Ae, J, l);
|
|
416
|
-
const Be = m("toolRail.badgeCountOverflow", {
|
|
417
|
-
defaultValue: "99+"
|
|
418
|
-
});
|
|
419
|
-
return /* @__PURE__ */ T(
|
|
420
|
-
"div",
|
|
421
|
-
{
|
|
422
|
-
ref: z,
|
|
423
|
-
"data-component": ke,
|
|
424
|
-
"data-component-id": l,
|
|
425
|
-
"data-side": A,
|
|
426
|
-
className: [pt({ side: A }), Se].filter(Boolean).join(" "),
|
|
427
|
-
children: [
|
|
428
|
-
te ? /* @__PURE__ */ f("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Me }) : null,
|
|
429
|
-
p ? /* @__PURE__ */ T(
|
|
430
|
-
"aside",
|
|
431
|
-
{
|
|
432
|
-
ref: Ve,
|
|
433
|
-
tabIndex: -1,
|
|
434
|
-
"aria-label": m("toolRail.panelLabel", {
|
|
435
|
-
tool: p.label,
|
|
436
|
-
defaultValue: "{{tool}} panel"
|
|
437
|
-
}),
|
|
438
|
-
"aria-hidden": y || void 0,
|
|
439
|
-
"data-tool-rail-state": y ? "collapsing" : "expanded",
|
|
440
|
-
"data-presence": Z.phase,
|
|
441
|
-
"data-active-tool": p.id,
|
|
442
|
-
"data-resizing": ce ? "" : void 0,
|
|
443
|
-
className: [
|
|
444
|
-
mt({ side: A }),
|
|
445
|
-
// Subtle shadow — not a line — separating the panel from the
|
|
446
|
-
// icon strip (the tab row). The panel casts a soft chrome
|
|
447
|
-
// shadow toward the strip on its strip-facing edge. `z-[1]`
|
|
448
|
-
// lifts it above the adjacent strip (the panel is already
|
|
449
|
-
// `relative`) so the shadow paints at the seam instead of being
|
|
450
|
-
// covered by the strip's opaque background. Only renders while
|
|
451
|
-
// the panel is open (the aside is unmounted when collapsed), so
|
|
452
|
-
// it never doubles as a rail↔main seam. In the accessible (AAA)
|
|
453
|
-
// theme the soft shadow becomes a solid 1px border on that same
|
|
454
|
-
// strip-facing edge.
|
|
455
|
-
"ds:z-[1]",
|
|
456
|
-
A === "end" ? "ds:shadow-[var(--shadow-chrome-end)] ds:[.theme-accessible_&]:border-e ds:[.theme-accessible_&]:border-[var(--border)] ds:[.theme-accessible_&]:shadow-none" : "ds:shadow-[var(--shadow-chrome-start)] ds:[.theme-accessible_&]:border-s ds:[.theme-accessible_&]:border-[var(--border)] ds:[.theme-accessible_&]:shadow-none",
|
|
457
|
-
"ds:focus-visible:outline-none"
|
|
458
|
-
].join(" "),
|
|
459
|
-
children: [
|
|
460
|
-
Q ? Q(p, { isActive: !y }) : null,
|
|
461
|
-
/* @__PURE__ */ T(
|
|
462
|
-
"div",
|
|
463
|
-
{
|
|
464
|
-
"data-presence": X ? "entering" : "present",
|
|
465
|
-
className: gt(),
|
|
466
|
-
children: [
|
|
467
|
-
p.header ? /* @__PURE__ */ f("div", { className: "ds:shrink-0", children: p.header }) : null,
|
|
468
|
-
p.fill ? (
|
|
469
|
-
// data-tool-fill: a self-scrolling panel owns its own native
|
|
470
|
-
// scroll (it can't use the rail's ScrollArea), so a token rule
|
|
471
|
-
// paints its scrollbar to match the 8px overlay. See tokens/index.css.
|
|
472
|
-
/* @__PURE__ */ f("div", { "data-tool-fill": "", className: "ds:flex-1 ds:min-h-0", children: p.panel })
|
|
473
|
-
) : /* @__PURE__ */ f(
|
|
474
|
-
Ye,
|
|
475
|
-
{
|
|
476
|
-
orientation: "vertical",
|
|
477
|
-
className: "ds:flex-1 ds:min-h-0",
|
|
478
|
-
children: p.panel
|
|
479
|
-
}
|
|
480
|
-
)
|
|
481
|
-
]
|
|
482
|
-
},
|
|
483
|
-
p.id
|
|
484
|
-
),
|
|
485
|
-
N ? /* @__PURE__ */ f(
|
|
486
|
-
"div",
|
|
487
|
-
{
|
|
488
|
-
...le,
|
|
489
|
-
"aria-label": m("toolRail.resizePanel", {
|
|
490
|
-
defaultValue: "Resize tool panel"
|
|
491
|
-
}),
|
|
492
|
-
"data-resizing": ce ? "" : void 0,
|
|
493
|
-
className: bt({ edge: de })
|
|
494
|
-
}
|
|
495
|
-
) : null
|
|
496
|
-
]
|
|
497
|
-
}
|
|
498
|
-
) : null,
|
|
499
|
-
/* @__PURE__ */ f(Ge, { children: /* @__PURE__ */ T(
|
|
500
|
-
"div",
|
|
501
|
-
{
|
|
502
|
-
ref: Ce,
|
|
503
|
-
role: "toolbar",
|
|
504
|
-
"aria-orientation": "vertical",
|
|
505
|
-
"aria-label": Te ?? m("toolRail.railLabel", { defaultValue: "Tools" }),
|
|
506
|
-
className: vt(),
|
|
507
|
-
onKeyDown: qe,
|
|
508
|
-
children: [
|
|
509
|
-
a.map((e, t) => {
|
|
510
|
-
const s = e.id === b, n = typeof e.badgeCount == "number" && e.badgeCount > 0, i = n ? m("toolRail.toolWithCount", {
|
|
511
|
-
tool: e.label,
|
|
512
|
-
count: e.badgeCount,
|
|
513
|
-
defaultValue: "{{tool}}, {{count}} updates"
|
|
514
|
-
}) : e.label, o = te && !!e.reorderable && !e.disabled, R = o ? `${Ne}-${e.id}` : void 0;
|
|
515
|
-
return /* @__PURE__ */ T(Ze, { children: [
|
|
516
|
-
De && t === ee ? /* @__PURE__ */ f(
|
|
517
|
-
"div",
|
|
518
|
-
{
|
|
519
|
-
role: "separator",
|
|
520
|
-
"aria-orientation": "horizontal",
|
|
521
|
-
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]"
|
|
522
|
-
}
|
|
523
|
-
) : null,
|
|
524
|
-
/* @__PURE__ */ T(
|
|
525
|
-
"div",
|
|
526
|
-
{
|
|
527
|
-
className: [
|
|
528
|
-
ye({
|
|
529
|
-
dragging: E === t,
|
|
530
|
-
dropTarget: se === t && E !== t,
|
|
531
|
-
reorderable: o
|
|
532
|
-
}),
|
|
533
|
-
we,
|
|
534
|
-
st
|
|
535
|
-
].filter(Boolean).join(" "),
|
|
536
|
-
"data-reflow-id": e.id,
|
|
537
|
-
"data-dragging": E === t ? "" : void 0,
|
|
538
|
-
draggable: o || void 0,
|
|
539
|
-
onDragStart: o ? (r) => {
|
|
540
|
-
W(t), r.dataTransfer.effectAllowed = "move", r.dataTransfer.setData(
|
|
541
|
-
"text/plain",
|
|
542
|
-
String(t)
|
|
543
|
-
);
|
|
544
|
-
} : void 0,
|
|
545
|
-
onDragOver: o ? (r) => {
|
|
546
|
-
E !== null && (r.preventDefault(), r.dataTransfer.dropEffect = "move", se !== t && C(t));
|
|
547
|
-
} : void 0,
|
|
548
|
-
onDragLeave: o ? () => C((r) => r === t ? null : r) : void 0,
|
|
549
|
-
onDrop: o ? (r) => {
|
|
550
|
-
r.preventDefault();
|
|
551
|
-
const u = E;
|
|
552
|
-
C(null), W(null), !(u === null || u === t) && oe(u, t);
|
|
553
|
-
} : void 0,
|
|
554
|
-
onDragEnd: o ? () => {
|
|
555
|
-
W(null), C(null);
|
|
556
|
-
} : void 0,
|
|
557
|
-
children: [
|
|
558
|
-
/* @__PURE__ */ f(
|
|
559
|
-
be,
|
|
560
|
-
{
|
|
561
|
-
ref: (r) => {
|
|
562
|
-
q.current[t] = r;
|
|
563
|
-
},
|
|
564
|
-
icon: e.icon,
|
|
565
|
-
tooltip: e.label,
|
|
566
|
-
"aria-label": i,
|
|
567
|
-
intent: "ghost",
|
|
568
|
-
size: "sm",
|
|
569
|
-
disabled: e.disabled,
|
|
570
|
-
"aria-pressed": s,
|
|
571
|
-
"aria-expanded": s,
|
|
572
|
-
"data-active": s ? e.id : void 0,
|
|
573
|
-
"data-tool-id": e.id,
|
|
574
|
-
"aria-describedby": R,
|
|
575
|
-
"aria-keyshortcuts": o ? "Alt+ArrowUp Alt+ArrowDown" : void 0,
|
|
576
|
-
tabIndex: t === _ ? 0 : -1,
|
|
577
|
-
onFocus: () => {
|
|
578
|
-
e.disabled || H(t);
|
|
579
|
-
},
|
|
580
|
-
onClick: () => Ke(e.id, O.current),
|
|
581
|
-
onKeyDown: (r) => {
|
|
582
|
-
if (r.key === "Enter" || r.key === " ") {
|
|
583
|
-
O.current = !0;
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
if (o && r.altKey && c) {
|
|
587
|
-
let u = null;
|
|
588
|
-
if (r.key === "ArrowUp" ? u = t - 1 : r.key === "ArrowDown" ? u = t + 1 : r.key === "Home" ? u = c.first : r.key === "End" && (u = c.last), u !== null) {
|
|
589
|
-
r.preventDefault();
|
|
590
|
-
const He = Math.max(
|
|
591
|
-
c.first,
|
|
592
|
-
Math.min(c.last, u)
|
|
593
|
-
), Oe = e.id;
|
|
594
|
-
oe(t, He), requestAnimationFrame(() => {
|
|
595
|
-
var ve, me;
|
|
596
|
-
(me = (ve = z.current) == null ? void 0 : ve.querySelector(
|
|
597
|
-
`[data-tool-id="${CSS.escape(Oe)}"]`
|
|
598
|
-
)) == null || me.focus();
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
onKeyUp: (r) => {
|
|
604
|
-
(r.key === "Enter" || r.key === " ") && (O.current = !1);
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
),
|
|
608
|
-
n ? /* @__PURE__ */ f("span", { "aria-hidden": "true", className: ht(), children: wt(
|
|
609
|
-
e.badgeCount,
|
|
610
|
-
Be
|
|
611
|
-
) }) : null,
|
|
612
|
-
K == null ? void 0 : K(e, {
|
|
613
|
-
index: t,
|
|
614
|
-
isActive: s,
|
|
615
|
-
isRovingTarget: t === _
|
|
616
|
-
}),
|
|
617
|
-
R ? /* @__PURE__ */ f("span", { id: R, className: "ds:sr-only", children: m("toolRail.reorderInstructions", {
|
|
618
|
-
tool: e.label,
|
|
619
|
-
defaultValue: "Reorder {{tool}}. Press Alt + Up or Alt + Down to move."
|
|
620
|
-
}) }) : null
|
|
621
|
-
]
|
|
622
|
-
}
|
|
623
|
-
)
|
|
624
|
-
] }, e.id);
|
|
625
|
-
}),
|
|
626
|
-
Pe.map(
|
|
627
|
-
(e) => $.isLeaving(e.id) ? /* @__PURE__ */ f(
|
|
628
|
-
"div",
|
|
629
|
-
{
|
|
630
|
-
className: [
|
|
631
|
-
ye({
|
|
632
|
-
dragging: !1,
|
|
633
|
-
dropTarget: !1,
|
|
634
|
-
reorderable: !1
|
|
635
|
-
}),
|
|
636
|
-
we,
|
|
637
|
-
yt
|
|
638
|
-
].filter(Boolean).join(" "),
|
|
639
|
-
"aria-hidden": "true",
|
|
640
|
-
children: /* @__PURE__ */ f(
|
|
641
|
-
be,
|
|
642
|
-
{
|
|
643
|
-
icon: e.icon,
|
|
644
|
-
intent: "ghost",
|
|
645
|
-
size: "sm",
|
|
646
|
-
disabled: !0,
|
|
647
|
-
tabIndex: -1
|
|
648
|
-
}
|
|
649
|
-
)
|
|
650
|
-
},
|
|
651
|
-
e.id
|
|
652
|
-
) : null
|
|
653
|
-
)
|
|
654
|
-
]
|
|
655
|
-
}
|
|
656
|
-
) })
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
|
-
);
|
|
662
|
-
xt.displayName = "ToolRail";
|
|
663
|
-
export {
|
|
664
|
-
xt as T,
|
|
665
|
-
ot as t
|
|
666
|
-
};
|
|
667
|
-
//# sourceMappingURL=tool-rail-BP8sjxCw.js.map
|