@alfadocs/ui-kit 1.150.0 → 1.151.1
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-D-RNe-_n.js → ai-summary-panel-DyAHCqaj.js} +2 -2
- 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-CE-i9j-s.js → anamnesis-summary-rows-CFpaA1GP.js} +3 -3
- package/dist/_chunks/{app-frame-DUPEwu4E.js → app-frame-XEjLsLGY.js} +2 -2
- package/dist/_chunks/{appointment-card-BPZggqck.js → appointment-card-CCKjbU5y.js} +105 -104
- package/dist/_chunks/{appointment-details-panel.history-BO31ZFQp.js → appointment-details-panel.history-FSsTXj1t.js} +84 -71
- package/dist/_chunks/{appointment-details-panel.identity-C9kWtC6m.js → appointment-details-panel.identity-9hRo85Lx.js} +4 -4
- package/dist/_chunks/appointment-peek-CmQM4wvx.js +223 -0
- package/dist/_chunks/{appointment-timeline-ynFqcw0S.js → appointment-timeline-B9KRurfc.js} +3 -3
- package/dist/_chunks/{appointment-tray-Dx5VDREk.js → appointment-tray-Be3HuEyO.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-DiyJQcmA.js → balance-badge-cell-OghXENKK.js} +3 -3
- package/dist/_chunks/{bill-line-table-B8Cc2pTH.js → bill-line-table-DxV5_Dmq.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-BfoEpFVx.js → calendar-appointment-editor-dialog-B9MtcBvx.js} +337 -334
- package/dist/_chunks/{calendar-editor-discard-host-DO506cJu.js → calendar-editor-discard-host-BudLsUZO.js} +3 -3
- package/dist/_chunks/{calendar-waiting-list-panel-CyMTv2y3.js → calendar-waiting-list-panel-DukgSOPH.js} +7 -7
- package/dist/_chunks/{calendar-workspace.model-X3aXbDTo.js → calendar-workspace.model-BulUpy0I.js} +2 -2
- package/dist/_chunks/{calendar.sheets-C8x8kPb4.js → calendar.sheets-OmTiQdCg.js} +8 -8
- package/dist/_chunks/{calls-panel-Bpemmnpd.js → calls-panel-eohONLia.js} +3 -3
- package/dist/_chunks/code-BfU9G1ZM.js +15 -0
- package/dist/_chunks/{communications-panel-Cd0TBEhL.js → communications-panel-CqiFs8BH.js} +3 -3
- package/dist/_chunks/{connection-status-Bi6KPTlh.js → connection-status-C13KmOPL.js} +2 -2
- package/dist/_chunks/control-room-rail-C-3o1e0e.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-Zws6CHhK.js → document-preview-TbwhY_eK.js} +3 -3
- package/dist/_chunks/{editable-currency-cell-renderer-DXJI0fnU.js → editable-currency-cell-renderer-a3CrwNKm.js} +143 -168
- package/dist/_chunks/{empty-state-5REM7oDM.js → empty-state-qHtpcasr.js} +65 -77
- 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-PKeLaFry.js → feature-preview-switch-B_8JTya_.js} +2 -2
- package/dist/_chunks/{file-manager-DzOCQBAO.js → file-manager-DMvYx-Gq.js} +4 -4
- package/dist/_chunks/{folder-CH9PJHou.js → folder-DvNxod7_.js} +3 -3
- package/dist/_chunks/{heatmap-DvsZ-mcL.js → heatmap-BZNkPkDD.js} +4 -4
- package/dist/_chunks/{help-me-write-templates-B_wMJ82X.js → help-me-write-templates-VnvlK87x.js} +2 -2
- 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-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-BguRX8VC.js → notes-panel-d0I3hOEY.js} +162 -173
- package/dist/_chunks/{notification-tray-BnC5OItw.js → notification-tray-CjGDlwLg.js} +2 -2
- package/dist/_chunks/{optical-prescription-BzGnlIjq.js → optical-prescription-CAnXavjq.js} +2 -2
- package/dist/_chunks/panel-right-CnMHSvLU.js +15 -0
- package/dist/_chunks/{panel-subview-Om_yZvFG.js → panel-subview-B5hnQwfQ.js} +2 -2
- package/dist/_chunks/{patient-account-settings-YKnBzmwE.js → patient-account-settings-DmB_h5fq.js} +3 -3
- package/dist/_chunks/{patient-check-in-resume-DERfQbp5.js → patient-check-in-resume-CI54cY8Z.js} +6 -6
- package/dist/_chunks/{patient-details-BUD0UbmT.js → patient-details-wFIzTz7N.js} +3 -3
- package/dist/_chunks/{patient-field-row-DytaHdGw.js → patient-field-row-BDgfYLgz.js} +2 -2
- package/dist/_chunks/{patient-summary-card-7Werxl48.js → patient-summary-card-ZunOre3Q.js} +162 -155
- package/dist/_chunks/{payment-request-card-BF3rakTQ.js → payment-request-card-BSSfKrcc.js} +2 -2
- package/dist/_chunks/{portal-details-C1QQGPQf.js → portal-details-BZm8UNMx.js} +4 -4
- package/dist/_chunks/{portal-documents-CzEuCaqv.js → portal-documents-CBVSCKAB.js} +3 -3
- package/dist/_chunks/{portal-parts-BMW4t57s.js → portal-parts-DRfyhL5P.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-CrjD5PYW.js → privacy-mask-CaLBAxzj.js} +2 -2
- 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-Kl1M0dtT.js → radiograph-panel.agent-kgCmmgZk.js} +2 -2
- package/dist/_chunks/{registration-form-AtRCt8n5.js → registration-form-Dbe1sFZb.js} +2 -2
- package/dist/_chunks/{registry-connection-panel-kdKbGQE6.js → registry-connection-panel-BkPPA3Fj.js} +3 -3
- package/dist/_chunks/{reserved.agent-CW0frsMv.js → reserved.agent-C-sMq0pb.js} +4 -4
- package/dist/_chunks/{reviews-panel-54AFY6uy.js → reviews-panel-jIz5aP2X.js} +3 -3
- 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-CIHQQRtP.js → task-editor-aXjGMwYA.js} +4 -4
- package/dist/_chunks/{task-tray-CxxcGGgx.js → task-tray-C48Vq8nt.js} +2 -2
- package/dist/_chunks/{tasks-panel-Bc_odkQN.js → tasks-panel-BdxHb-fX.js} +2 -2
- package/dist/_chunks/{tool-rail-CJBtqzMs.js → tool-rail-C_Ay0Gxi.js} +260 -256
- package/dist/_chunks/{toolbar-B9oh9XY9.js → toolbar-B2JJ_XDT.js} +2 -2
- package/dist/_chunks/tooth-chip-DOv925IH.js +41 -0
- package/dist/_chunks/{treatment-receipt-B6m47Jie.js → treatment-receipt-CZQV1NkJ.js} +45 -46
- package/dist/_chunks/{use-appointment-details-read-HVHbR0Zl.js → use-appointment-details-read-BR3TQOHx.js} +878 -809
- 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 +1 -1
- package/dist/appointment-editor-panel/index.js +3 -3
- 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/mark-adrift.d.ts +12 -0
- 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/appointment-card.d.ts +5 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +9 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +9 -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/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/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/empty-state/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/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- 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 +18 -7
- 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-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/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 +16 -6
- 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/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts +14 -0
- 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 +13 -1
- package/dist/i18n/locales/ar.d.ts +9 -0
- package/dist/i18n/locales/ar.js +11 -2
- package/dist/i18n/locales/de.d.ts +9 -0
- package/dist/i18n/locales/de.js +11 -2
- package/dist/i18n/locales/el.d.ts +9 -0
- package/dist/i18n/locales/el.js +11 -2
- package/dist/i18n/locales/en.d.ts +9 -0
- package/dist/i18n/locales/en.js +10 -1
- package/dist/i18n/locales/es.d.ts +9 -0
- package/dist/i18n/locales/es.js +11 -2
- package/dist/i18n/locales/fr.d.ts +9 -0
- package/dist/i18n/locales/fr.js +11 -2
- package/dist/i18n/locales/hi.d.ts +9 -0
- package/dist/i18n/locales/hi.js +11 -2
- package/dist/i18n/locales/it.d.ts +9 -0
- package/dist/i18n/locales/it.js +11 -2
- package/dist/i18n/locales/ja.d.ts +9 -0
- package/dist/i18n/locales/ja.js +11 -2
- package/dist/i18n/locales/nl.d.ts +9 -0
- package/dist/i18n/locales/nl.js +11 -2
- package/dist/i18n/locales/pl.d.ts +9 -0
- package/dist/i18n/locales/pl.js +11 -2
- package/dist/i18n/locales/pt.d.ts +9 -0
- package/dist/i18n/locales/pt.js +11 -2
- package/dist/i18n/locales/ro.d.ts +9 -0
- package/dist/i18n/locales/ro.js +11 -2
- package/dist/i18n/locales/ru.d.ts +9 -0
- package/dist/i18n/locales/ru.js +11 -2
- package/dist/i18n/locales/sq.d.ts +9 -0
- package/dist/i18n/locales/sq.js +11 -2
- package/dist/i18n/locales/sv.d.ts +9 -0
- package/dist/i18n/locales/sv.js +11 -2
- package/dist/i18n/locales/tr.d.ts +9 -0
- package/dist/i18n/locales/tr.js +11 -2
- package/dist/i18n/locales/zh.d.ts +9 -0
- package/dist/i18n/locales/zh.js +11 -2
- package/dist/index.js +818 -817
- package/dist/locales/ar.json +11 -2
- package/dist/locales/de.json +11 -2
- package/dist/locales/el.json +11 -2
- package/dist/locales/en.json +10 -1
- package/dist/locales/es.json +11 -2
- package/dist/locales/fr.json +11 -2
- package/dist/locales/hi.json +11 -2
- package/dist/locales/it.json +11 -2
- package/dist/locales/ja.json +11 -2
- package/dist/locales/nl.json +11 -2
- package/dist/locales/pl.json +11 -2
- package/dist/locales/pt.json +11 -2
- package/dist/locales/ro.json +11 -2
- package/dist/locales/ru.json +11 -2
- package/dist/locales/sq.json +11 -2
- package/dist/locales/sv.json +11 -2
- package/dist/locales/tr.json +11 -2
- package/dist/locales/zh.json +11 -2
- 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 +1 -1
- package/dist/_chunks/appointment-peek-CGJ6kUvM.js +0 -213
- package/dist/_chunks/control-room-rail-4W1MFY-g.js +0 -416
- package/dist/_chunks/dev-bypass-button-BzfYGPuf.js +0 -33
- package/dist/_chunks/rich-text-editor-DCQEpaIv.js +0 -4523
- /package/dist/{patterns → components}/_shared/mark-pieces.d.ts +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { jsxs as w, jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import { c as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { u as
|
|
1
|
+
import { jsxs as w, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Vt, useRef as m, useState as I, useMemo as H, useId as Ot, useCallback as B, useEffect as ae, useImperativeHandle as Bt, Fragment as Ft } from "react";
|
|
3
|
+
import * as K from "@radix-ui/react-dialog";
|
|
4
|
+
import { c as k } from "./index-D2ZczOXr.js";
|
|
5
|
+
import { useTranslation as Mt } from "react-i18next";
|
|
6
|
+
import { u as jt } from "./app-frame-context-CPszhDDb.js";
|
|
7
|
+
import { u as qt } from "./use-media-query-CcAx5SMM.js";
|
|
7
8
|
import { I as xe } from "./icon-button-u9VMQn3x.js";
|
|
8
|
-
import { D as
|
|
9
|
-
import { a as
|
|
10
|
-
import { S as
|
|
11
|
-
import { a as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { a as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
import { X as
|
|
21
|
-
const
|
|
9
|
+
import { D as Ht, a as Kt } from "./dialog-container-DHR0byah.js";
|
|
10
|
+
import { a as $t } from "./panel-header-DTc5OFUg.js";
|
|
11
|
+
import { S as et } from "./scroll-area-RQtcKkHf.js";
|
|
12
|
+
import { a as Ut } from "./tooltip-uEBdD1-5.js";
|
|
13
|
+
import { u as Wt } from "./use-controllable-state-BiY4xTzM.js";
|
|
14
|
+
import { u as Yt } from "./use-edge-resize-CBtem0j2.js";
|
|
15
|
+
import { u as A } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
16
|
+
import { a as Zt, u as tt, R as Gt } from "./use-list-reflow-C7O4Uqnl.js";
|
|
17
|
+
import { u as Xt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
18
|
+
import { u as Qt } from "./use-presence-transition-cDwWUXV-.js";
|
|
19
|
+
import { u as Jt } from "./use-resolved-theme-B0f1_oyq.js";
|
|
20
|
+
import { u as en } from "./registry-DvAUVLHh.js";
|
|
21
|
+
import { X as tn } from "./x-B5YnXwCz.js";
|
|
22
|
+
const nn = {
|
|
22
23
|
id: "tool-rail",
|
|
23
24
|
capabilities: ["open", "close", "select_single"],
|
|
24
25
|
state: {
|
|
@@ -96,14 +97,14 @@ const Gt = {
|
|
|
96
97
|
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
|
-
},
|
|
100
|
-
function
|
|
101
|
-
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ?
|
|
100
|
+
}, an = "ds:[inline-size:3rem]", sn = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", nt = "--tool-rail-panel-inline-size", at = "ds:flex-1 ds:min-h-0 ds:[&>*]:max-h-full ds:[&>*]:overflow-y-auto", st = "ds:flex ds:h-full ds:flex-col ds:[&>*]:flex-[1_0_auto]", rn = 288, on = 880, ln = 352, dn = "(max-width: 767.98px)", cn = 24;
|
|
101
|
+
function un(i, a, D) {
|
|
102
|
+
return a === void 0 || !Number.isFinite(a) || a <= 0 ? !1 : i === null || !Number.isFinite(i) ? D : D ? i < a + cn : i < a;
|
|
102
103
|
}
|
|
103
104
|
function $(i) {
|
|
104
105
|
return !!(i != null && i.disabled) && !i.disabledReason;
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
+
const fn = k(
|
|
107
108
|
[
|
|
108
109
|
// `relative`: an overlaid panel is positioned against the rail.
|
|
109
110
|
"ds:relative ds:flex ds:shrink-0 ds:h-full",
|
|
@@ -128,19 +129,19 @@ const sn = N(
|
|
|
128
129
|
},
|
|
129
130
|
defaultVariants: { side: "end" }
|
|
130
131
|
}
|
|
131
|
-
),
|
|
132
|
+
), pn = k(
|
|
132
133
|
[
|
|
133
134
|
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
134
135
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
135
136
|
"ds:gap-[var(--spacing-xs)]",
|
|
136
|
-
|
|
137
|
+
an
|
|
137
138
|
].join(" ")
|
|
138
|
-
),
|
|
139
|
+
), vn = k(
|
|
139
140
|
[
|
|
140
141
|
// Positioned by the caller: `relative` docked, absolute when overlaid.
|
|
141
142
|
"ds:flex ds:min-h-0 ds:flex-col ds:h-full",
|
|
142
143
|
"ds:bg-[var(--background)]",
|
|
143
|
-
|
|
144
|
+
sn,
|
|
144
145
|
// Open / collapse: the panel fades and slides from the strip. The WIDTH
|
|
145
146
|
// snaps on purpose — animating it would re-lay-out the main area (a
|
|
146
147
|
// calendar grid) on every frame. Declared at rest so both directions
|
|
@@ -161,7 +162,7 @@ const sn = N(
|
|
|
161
162
|
},
|
|
162
163
|
defaultVariants: { side: "end" }
|
|
163
164
|
}
|
|
164
|
-
),
|
|
165
|
+
), mn = k("", {
|
|
165
166
|
variants: {
|
|
166
167
|
mode: {
|
|
167
168
|
docked: "ds:relative ds:z-[1]",
|
|
@@ -189,12 +190,12 @@ const sn = N(
|
|
|
189
190
|
}
|
|
190
191
|
],
|
|
191
192
|
defaultVariants: { mode: "docked", side: "end" }
|
|
192
|
-
}),
|
|
193
|
+
}), gn = [
|
|
193
194
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal)]",
|
|
194
195
|
"ds:flex ds:flex-col",
|
|
195
196
|
"ds:bg-[var(--background)] ds:text-[color:var(--foreground)]",
|
|
196
197
|
"ds:focus-visible:outline-none"
|
|
197
|
-
].join(" "),
|
|
198
|
+
].join(" "), hn = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", rt = k(
|
|
198
199
|
[
|
|
199
200
|
"ds:flex ds:min-h-0 ds:flex-col",
|
|
200
201
|
"ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
|
|
@@ -219,7 +220,7 @@ const sn = N(
|
|
|
219
220
|
},
|
|
220
221
|
defaultVariants: { layer: "live" }
|
|
221
222
|
}
|
|
222
|
-
),
|
|
223
|
+
), bn = 500, yn = [
|
|
223
224
|
"id",
|
|
224
225
|
"name",
|
|
225
226
|
"for",
|
|
@@ -227,29 +228,29 @@ const sn = N(
|
|
|
227
228
|
"data-component-id",
|
|
228
229
|
"data-testid"
|
|
229
230
|
];
|
|
230
|
-
function
|
|
231
|
+
function xn(i) {
|
|
231
232
|
return window.getComputedStyle(i).transitionDuration.split(",").some((a) => Number.parseFloat(a) > 0);
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
const a = i.cloneNode(!0),
|
|
235
|
-
return
|
|
234
|
+
function wn(i) {
|
|
235
|
+
const a = i.cloneNode(!0), D = i.querySelectorAll("*"), U = a.querySelectorAll("*"), W = [];
|
|
236
|
+
return D.forEach((u, F) => {
|
|
236
237
|
var Y;
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
238
|
+
const p = U[F];
|
|
239
|
+
if (p && ((u.scrollTop !== 0 || u.scrollLeft !== 0) && W.push([p, u.scrollTop, u.scrollLeft]), u instanceof HTMLCanvasElement && p instanceof HTMLCanvasElement))
|
|
239
240
|
try {
|
|
240
|
-
(Y =
|
|
241
|
+
(Y = p.getContext("2d")) == null || Y.drawImage(u, 0, 0);
|
|
241
242
|
} catch {
|
|
242
243
|
}
|
|
243
244
|
}), U.forEach((u) => {
|
|
244
245
|
const F = u instanceof SVGElement;
|
|
245
|
-
for (const
|
|
246
|
-
F &&
|
|
246
|
+
for (const p of yn)
|
|
247
|
+
F && p === "id" || u.removeAttribute(p);
|
|
247
248
|
if (u.matches("iframe, video, audio, embed, object, source"))
|
|
248
|
-
for (const
|
|
249
|
-
u.removeAttribute(
|
|
249
|
+
for (const p of ["src", "srcdoc", "data", "autoplay"])
|
|
250
|
+
u.removeAttribute(p);
|
|
250
251
|
}), { nodes: Array.from(a.childNodes), scrolls: W };
|
|
251
252
|
}
|
|
252
|
-
const
|
|
253
|
+
const In = k(
|
|
253
254
|
[
|
|
254
255
|
"ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
|
|
255
256
|
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
|
|
@@ -273,7 +274,7 @@ const mn = N(
|
|
|
273
274
|
},
|
|
274
275
|
defaultVariants: { edge: "inline-start" }
|
|
275
276
|
}
|
|
276
|
-
),
|
|
277
|
+
), Rn = k(
|
|
277
278
|
[
|
|
278
279
|
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
279
280
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -286,7 +287,7 @@ const mn = N(
|
|
|
286
287
|
"ds:pointer-events-none ds:select-none",
|
|
287
288
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
288
289
|
].join(" ")
|
|
289
|
-
),
|
|
290
|
+
), ot = k(
|
|
290
291
|
// `group/rail-tool` lets an affordance overlay (e.g. a pin star) reveal on
|
|
291
292
|
// hover / focus-within of the whole slot.
|
|
292
293
|
["ds:group/rail-tool ds:relative", "ds:rounded-[var(--radius-sm)]"],
|
|
@@ -308,76 +309,77 @@ const mn = N(
|
|
|
308
309
|
reorderable: !1
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
|
-
),
|
|
312
|
+
), Sn = "ds:opacity-0", it = [
|
|
312
313
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
313
314
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
314
315
|
].join(" ");
|
|
315
|
-
function
|
|
316
|
+
function En(i, a) {
|
|
316
317
|
return i > 99 ? a : String(i);
|
|
317
318
|
}
|
|
318
|
-
const
|
|
319
|
+
const Tn = Vt(
|
|
319
320
|
({
|
|
320
321
|
id: i,
|
|
321
322
|
tools: a,
|
|
322
|
-
activeToolId:
|
|
323
|
+
activeToolId: D,
|
|
323
324
|
defaultActiveToolId: U = null,
|
|
324
325
|
onActiveToolChange: W,
|
|
325
326
|
side: u = "end",
|
|
326
327
|
railLabel: F,
|
|
327
|
-
resizablePanel:
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
resizablePanel: p = !1,
|
|
329
|
+
panelPlacement: Y = "auto",
|
|
330
|
+
panelWidth: lt,
|
|
331
|
+
onPanelWidthChange: dt,
|
|
330
332
|
onReorder: Z,
|
|
331
333
|
formatReorderAnnouncement: se,
|
|
332
334
|
renderToolAffordance: re,
|
|
333
335
|
renderPanelHeader: we,
|
|
334
|
-
dataComponent:
|
|
335
|
-
agentAdapter:
|
|
336
|
-
className:
|
|
337
|
-
},
|
|
338
|
-
var
|
|
339
|
-
const { t: R } =
|
|
340
|
-
value:
|
|
336
|
+
dataComponent: ct = "tool-rail",
|
|
337
|
+
agentAdapter: ut = nn,
|
|
338
|
+
className: ft
|
|
339
|
+
}, pt) => {
|
|
340
|
+
var Ge, Xe;
|
|
341
|
+
const { t: R } = Mt("ui"), [vt, g] = Wt({
|
|
342
|
+
value: D,
|
|
341
343
|
defaultValue: U,
|
|
342
344
|
onChange: W
|
|
343
|
-
}), h =
|
|
345
|
+
}), h = vt ?? null, oe = m([]), L = m(null), [Ie, ie] = I(0), P = m(!1), le = m(!1), N = H(
|
|
344
346
|
() => a.findIndex((e) => e.id === h),
|
|
345
347
|
[a, h]
|
|
346
|
-
), o =
|
|
348
|
+
), o = N >= 0 ? a[N] : null, de = m(o);
|
|
347
349
|
o && (de.current = o);
|
|
348
|
-
const
|
|
350
|
+
const mt = H(
|
|
349
351
|
() => a.findIndex((e) => !$(e)),
|
|
350
352
|
[a]
|
|
351
|
-
), Re =
|
|
353
|
+
), Re = H(() => {
|
|
352
354
|
var t;
|
|
353
355
|
const e = (t = a[0]) == null ? void 0 : t.scope;
|
|
354
356
|
return e ? a.findIndex((n) => n.scope && n.scope !== e) : -1;
|
|
355
|
-
}, [a]),
|
|
357
|
+
}, [a]), gt = Re > 0, b = H(() => {
|
|
356
358
|
var n;
|
|
357
359
|
const e = a.findIndex((s) => s.reorderable);
|
|
358
360
|
if (e < 0) return null;
|
|
359
361
|
let t = e;
|
|
360
362
|
for (; t + 1 < a.length && ((n = a[t + 1]) != null && n.reorderable); ) t += 1;
|
|
361
363
|
return { first: e, last: t };
|
|
362
|
-
}, [a]), Se = !!Z && b !== null, Ee =
|
|
364
|
+
}, [a]), Se = !!Z && b !== null, Ee = Ot(), [M, ce] = I(null), [Te, G] = I(null), T = m(null), { isAccessible: ht } = Jt(T), V = ht || void 0, { containerRef: Ae } = Zt({
|
|
363
365
|
key: a.map((e) => e.id).join(),
|
|
364
366
|
reduceMotion: V
|
|
365
|
-
}), ue =
|
|
367
|
+
}), ue = tt({ reduceMotion: V }), fe = Qt(
|
|
366
368
|
o !== null,
|
|
367
369
|
{ reduceMotion: V }
|
|
368
|
-
),
|
|
370
|
+
), z = o === null && fe.mounted, x = o ?? (z ? de.current : null), { ref: ke } = fe, [bt, yt] = I(null), xt = B(
|
|
369
371
|
(e) => {
|
|
370
|
-
|
|
372
|
+
L.current = e, yt(e), ke(e);
|
|
371
373
|
},
|
|
372
374
|
[ke]
|
|
373
375
|
);
|
|
374
|
-
|
|
376
|
+
A(() => {
|
|
375
377
|
var n;
|
|
376
|
-
const e =
|
|
378
|
+
const e = L.current;
|
|
377
379
|
if (!e) return;
|
|
378
380
|
const t = document.activeElement;
|
|
379
|
-
if (
|
|
380
|
-
const s = (n = de.current) == null ? void 0 : n.id, r = T.current,
|
|
381
|
+
if (z && t instanceof HTMLElement && e.contains(t)) {
|
|
382
|
+
const s = (n = de.current) == null ? void 0 : n.id, r = T.current, c = (s ? r == null ? void 0 : r.querySelector(
|
|
381
383
|
`[data-tool-id="${CSS.escape(s)}"]`
|
|
382
384
|
) : null) ?? /* The tool left the strip with its panel (a host removed it as it
|
|
383
385
|
closed): the strip's tab stop, else its first enabled icon, so
|
|
@@ -387,31 +389,31 @@ const yn = Lt(
|
|
|
387
389
|
)) ?? (r == null ? void 0 : r.querySelector(
|
|
388
390
|
"[data-tool-id]:not(:disabled)"
|
|
389
391
|
));
|
|
390
|
-
t.blur(), e.setAttribute("inert", ""),
|
|
392
|
+
t.blur(), e.setAttribute("inert", ""), c == null || c.focus();
|
|
391
393
|
return;
|
|
392
394
|
}
|
|
393
|
-
e.toggleAttribute("inert",
|
|
394
|
-
}, [
|
|
395
|
-
const
|
|
395
|
+
e.toggleAttribute("inert", z);
|
|
396
|
+
}, [z]);
|
|
397
|
+
const Le = Xt(), [X, Ne] = I(
|
|
396
398
|
(o == null ? void 0 : o.id) ?? null
|
|
397
|
-
), y = (o == null ? void 0 : o.id) ?? null,
|
|
398
|
-
|
|
399
|
+
), y = (o == null ? void 0 : o.id) ?? null, Q = !V && !Le && y !== null && X !== null && X !== y;
|
|
400
|
+
A(() => {
|
|
399
401
|
if (X === y) return;
|
|
400
|
-
if (!
|
|
401
|
-
|
|
402
|
+
if (!Q) {
|
|
403
|
+
Ne(y);
|
|
402
404
|
return;
|
|
403
405
|
}
|
|
404
406
|
let e = 0;
|
|
405
|
-
const t = () =>
|
|
407
|
+
const t = () => Ne(y), n = requestAnimationFrame(() => {
|
|
406
408
|
e = requestAnimationFrame(t);
|
|
407
409
|
}), s = window.setTimeout(t, 64);
|
|
408
410
|
return () => {
|
|
409
411
|
cancelAnimationFrame(n), cancelAnimationFrame(e), window.clearTimeout(s);
|
|
410
412
|
};
|
|
411
|
-
}, [y, X,
|
|
412
|
-
const
|
|
413
|
+
}, [y, X, Q]);
|
|
414
|
+
const wt = !!V || Le, ze = m(null), [f, Ce] = I({ liveId: y, serial: 0, focusLost: !1, leaving: [] });
|
|
413
415
|
if (f.liveId !== y) {
|
|
414
|
-
const e = f.liveId !== null && y !== null ? ((
|
|
416
|
+
const e = f.liveId !== null && y !== null ? ((Ge = ze.current) == null ? void 0 : Ge.querySelector(
|
|
415
417
|
':scope > [data-tool-rail-layer="live"]'
|
|
416
418
|
)) ?? null : null, t = f.leaving.filter(
|
|
417
419
|
(n) => n.toolId !== y
|
|
@@ -420,42 +422,42 @@ const yn = Lt(
|
|
|
420
422
|
liveId: y,
|
|
421
423
|
serial: f.serial + 1,
|
|
422
424
|
focusLost: (e == null ? void 0 : e.contains(document.activeElement)) ?? !1,
|
|
423
|
-
leaving: e && !
|
|
425
|
+
leaving: e && !wt ? [
|
|
424
426
|
...t.filter((n) => n.toolId !== f.liveId),
|
|
425
427
|
{
|
|
426
428
|
exitId: `${f.liveId}:${f.serial}`,
|
|
427
429
|
toolId: f.liveId,
|
|
428
|
-
...
|
|
430
|
+
...wn(e)
|
|
429
431
|
}
|
|
430
432
|
] : t
|
|
431
433
|
});
|
|
432
434
|
}
|
|
433
|
-
const
|
|
435
|
+
const j = B((e) => {
|
|
434
436
|
Ce(
|
|
435
437
|
(t) => t.leaving.some((n) => n.exitId === e) ? {
|
|
436
438
|
...t,
|
|
437
439
|
leaving: t.leaving.filter((n) => n.exitId !== e)
|
|
438
440
|
} : t
|
|
439
441
|
);
|
|
440
|
-
}, []), { leave:
|
|
442
|
+
}, []), { leave: _e } = tt({
|
|
441
443
|
reduceMotion: V,
|
|
442
|
-
durationMs:
|
|
444
|
+
durationMs: bn
|
|
443
445
|
});
|
|
444
446
|
ae(() => {
|
|
445
447
|
for (const { exitId: e } of f.leaving)
|
|
446
|
-
|
|
447
|
-
}, [f.leaving,
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
const
|
|
448
|
+
_e(e, () => j(e));
|
|
449
|
+
}, [f.leaving, _e, j]);
|
|
450
|
+
const It = x ? f.leaving : [], Rt = ((Xe = f.leaving[f.leaving.length - 1]) == null ? void 0 : Xe.exitId) ?? null, De = m(f.leaving);
|
|
451
|
+
De.current = f.leaving;
|
|
452
|
+
const St = B(
|
|
451
453
|
(e) => {
|
|
452
454
|
if (!e || e.childNodes.length > 0) return;
|
|
453
|
-
const t =
|
|
455
|
+
const t = De.current.find(
|
|
454
456
|
(n) => n.exitId === e.dataset.exitId
|
|
455
457
|
);
|
|
456
458
|
if (t) {
|
|
457
|
-
if (!
|
|
458
|
-
|
|
459
|
+
if (!xn(e)) {
|
|
460
|
+
j(t.exitId);
|
|
459
461
|
return;
|
|
460
462
|
}
|
|
461
463
|
e.setAttribute("inert", ""), e.append(...t.nodes);
|
|
@@ -463,9 +465,9 @@ const yn = Lt(
|
|
|
463
465
|
n.scrollTop = s, n.scrollLeft = r;
|
|
464
466
|
}
|
|
465
467
|
},
|
|
466
|
-
[
|
|
468
|
+
[j]
|
|
467
469
|
);
|
|
468
|
-
|
|
470
|
+
A(() => {
|
|
469
471
|
var t, n;
|
|
470
472
|
if (!f.focusLost || !y) return;
|
|
471
473
|
const e = document.activeElement;
|
|
@@ -473,27 +475,27 @@ const yn = Lt(
|
|
|
473
475
|
`[data-tool-id="${CSS.escape(y)}"]`
|
|
474
476
|
)) == null || n.focus();
|
|
475
477
|
}, [f.serial]);
|
|
476
|
-
const [
|
|
478
|
+
const [Et, Pe] = I([]), Ve = m(a);
|
|
477
479
|
ae(() => {
|
|
478
480
|
const e = Ve.current, t = new Set(a.map((s) => s.id)), n = e.filter((s) => !t.has(s.id));
|
|
479
481
|
if (n.length > 0) {
|
|
480
482
|
Pe((s) => {
|
|
481
|
-
const r = new Set(s.map((
|
|
483
|
+
const r = new Set(s.map((c) => c.id));
|
|
482
484
|
return [
|
|
483
485
|
...s,
|
|
484
|
-
...n.filter((
|
|
486
|
+
...n.filter((c) => !r.has(c.id))
|
|
485
487
|
];
|
|
486
488
|
});
|
|
487
489
|
for (const s of n)
|
|
488
490
|
ue.leave(s.id, () => {
|
|
489
491
|
Pe(
|
|
490
|
-
(r) => r.filter((
|
|
492
|
+
(r) => r.filter((c) => c.id !== s.id)
|
|
491
493
|
);
|
|
492
494
|
});
|
|
493
495
|
}
|
|
494
496
|
Ve.current = a;
|
|
495
497
|
}, [a, ue]);
|
|
496
|
-
const [
|
|
498
|
+
const [Tt, At] = I(""), pe = m(!1), Oe = B(
|
|
497
499
|
(e, t) => {
|
|
498
500
|
if (!Z || !b) return;
|
|
499
501
|
const n = Math.max(
|
|
@@ -510,135 +512,135 @@ const yn = Lt(
|
|
|
510
512
|
total: b.last - b.first + 1,
|
|
511
513
|
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
512
514
|
});
|
|
513
|
-
r && (pe.current = !pe.current,
|
|
515
|
+
r && (pe.current = !pe.current, At(pe.current ? r : `${r}`));
|
|
514
516
|
}
|
|
515
517
|
},
|
|
516
518
|
[Z, b, a, R, se]
|
|
517
|
-
),
|
|
519
|
+
), Be = a[Ie], q = N >= 0 ? N : Be && !$(Be) ? Ie : mt, kt = B(
|
|
518
520
|
(e, t) => {
|
|
519
521
|
const n = a.find((s) => s.id === e);
|
|
520
522
|
!n || n.disabled || (P.current = t, g(h === e ? null : e));
|
|
521
523
|
},
|
|
522
524
|
[a, h, g]
|
|
523
|
-
),
|
|
525
|
+
), Lt = B(
|
|
524
526
|
(e) => {
|
|
525
|
-
var
|
|
527
|
+
var O;
|
|
526
528
|
const t = a.length;
|
|
527
529
|
if (t === 0 || e.altKey) return;
|
|
528
530
|
let n = null;
|
|
529
531
|
if (e.key === "ArrowDown" ? n = (q + 1) % t : e.key === "ArrowUp" ? n = (q - 1 + t) % t : e.key === "Home" ? n = 0 : e.key === "End" && (n = t - 1), n === null) return;
|
|
530
532
|
const s = e.key === "ArrowUp" || e.key === "End";
|
|
531
|
-
let r = n,
|
|
532
|
-
for (;
|
|
533
|
-
r = s ? (r - 1 + t) % t : (r + 1) % t,
|
|
534
|
-
$(a[r]) || (e.preventDefault(), ie(r), (
|
|
533
|
+
let r = n, c = 0;
|
|
534
|
+
for (; c < t && $(a[r]); )
|
|
535
|
+
r = s ? (r - 1 + t) % t : (r + 1) % t, c += 1;
|
|
536
|
+
$(a[r]) || (e.preventDefault(), ie(r), (O = oe.current[r]) == null || O.focus());
|
|
535
537
|
},
|
|
536
538
|
[a, q]
|
|
537
|
-
),
|
|
538
|
-
ee.current =
|
|
539
|
-
const [te,
|
|
540
|
-
|
|
539
|
+
), v = jt(), Nt = qt(dn), E = v ? v.phone : Nt, ve = (v == null ? void 0 : v.sharedWidth) ?? null, J = v == null ? void 0 : v.minMainWidth, [Fe, Me] = I(!1), ee = m(!1);
|
|
540
|
+
ee.current = Fe;
|
|
541
|
+
const C = Y === "overlay" || Fe, [te, je] = I(null), qe = m(void 0), He = m(null);
|
|
542
|
+
A(() => {
|
|
541
543
|
var n;
|
|
542
|
-
const e =
|
|
543
|
-
if (
|
|
544
|
-
te !== null &&
|
|
544
|
+
const e = qe.current;
|
|
545
|
+
if (qe.current = h, !E || h === null) {
|
|
546
|
+
te !== null && je(null);
|
|
545
547
|
return;
|
|
546
548
|
}
|
|
547
549
|
if (te === h) return;
|
|
548
550
|
if (e !== void 0 && h !== e) {
|
|
549
|
-
|
|
551
|
+
He.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, je(h);
|
|
550
552
|
return;
|
|
551
553
|
}
|
|
552
554
|
const t = (n = T.current) == null ? void 0 : n.contains(document.activeElement);
|
|
553
|
-
g(null), t && (
|
|
554
|
-
}, [E, h, te, g,
|
|
555
|
+
g(null), t && (v == null || v.focusMain());
|
|
556
|
+
}, [E, h, te, g, v]);
|
|
555
557
|
const me = E && o !== null && te === o.id;
|
|
556
558
|
ae(() => {
|
|
557
559
|
const e = T.current;
|
|
558
560
|
if (!e) return;
|
|
559
561
|
const t = (n) => {
|
|
560
|
-
if (n.key !== "Escape" ||
|
|
562
|
+
if (n.key !== "Escape" || N < 0 || n.target instanceof Element && n.target.closest(`[${Kt}]`))
|
|
561
563
|
return;
|
|
562
564
|
n.preventDefault();
|
|
563
|
-
const s =
|
|
565
|
+
const s = N;
|
|
564
566
|
g(null), ie(s), requestAnimationFrame(() => {
|
|
565
567
|
var r;
|
|
566
568
|
(r = oe.current[s]) == null || r.focus();
|
|
567
569
|
});
|
|
568
570
|
};
|
|
569
571
|
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
570
|
-
}, [
|
|
571
|
-
if (!
|
|
572
|
+
}, [N, g]), ae(() => {
|
|
573
|
+
if (!C || !o || E) return;
|
|
572
574
|
const e = (t) => {
|
|
573
575
|
t.key !== "Escape" || t.defaultPrevented || (t.preventDefault(), g(null));
|
|
574
576
|
};
|
|
575
577
|
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
576
|
-
}, [
|
|
578
|
+
}, [C, o, E, g]), A(() => {
|
|
577
579
|
var e;
|
|
578
|
-
o && P.current && ((e =
|
|
580
|
+
o && P.current && ((e = L.current) == null || e.focus()), P.current = !1;
|
|
579
581
|
}, [o]);
|
|
580
|
-
const Ke = u === "end" ||
|
|
582
|
+
const Ke = u === "end" || C ? "inline-start" : "inline-end", { separatorProps: $e, isResizing: ne, isResized: Ue } = Yt({
|
|
581
583
|
edge: Ke,
|
|
582
|
-
targetRef:
|
|
583
|
-
cssProperty:
|
|
584
|
-
minSize:
|
|
585
|
-
maxSize:
|
|
586
|
-
defaultSize:
|
|
587
|
-
disabled: !
|
|
584
|
+
targetRef: L,
|
|
585
|
+
cssProperty: nt,
|
|
586
|
+
minSize: rn,
|
|
587
|
+
maxSize: on,
|
|
588
|
+
defaultSize: ln,
|
|
589
|
+
disabled: !p,
|
|
588
590
|
// A width the user cannot change or reset is a trap: the controlled
|
|
589
591
|
// value applies only while the handle is on.
|
|
590
|
-
size:
|
|
591
|
-
onResize:
|
|
592
|
-
}), ge =
|
|
593
|
-
|
|
592
|
+
size: p ? lt : void 0,
|
|
593
|
+
onResize: dt
|
|
594
|
+
}), ge = $e["aria-valuenow"];
|
|
595
|
+
A(() => {
|
|
594
596
|
var e;
|
|
595
|
-
!
|
|
596
|
-
|
|
597
|
+
!p || !Ue || !o || (e = L.current) == null || e.style.setProperty(
|
|
598
|
+
nt,
|
|
597
599
|
`${ge}px`
|
|
598
600
|
);
|
|
599
|
-
}, [o,
|
|
600
|
-
const [
|
|
601
|
-
|
|
602
|
-
const e =
|
|
603
|
-
if (!e || !o || !
|
|
601
|
+
}, [o, p, Ue, ge]);
|
|
602
|
+
const [zt, Ct] = I(null), We = !!v && !E && J !== void 0;
|
|
603
|
+
A(() => {
|
|
604
|
+
const e = L.current;
|
|
605
|
+
if (!e || !o || !We || typeof ResizeObserver > "u") return;
|
|
604
606
|
const t = new ResizeObserver(() => {
|
|
605
607
|
const n = e.offsetWidth;
|
|
606
|
-
|
|
608
|
+
Ct((s) => s === n ? s : n);
|
|
607
609
|
});
|
|
608
610
|
return t.observe(e), () => t.disconnect();
|
|
609
|
-
}, [o,
|
|
611
|
+
}, [o, We]), A(() => {
|
|
610
612
|
var r;
|
|
611
|
-
if (!
|
|
612
|
-
ee.current &&
|
|
613
|
+
if (!v || E || J === void 0) {
|
|
614
|
+
ee.current && Me(!1);
|
|
613
615
|
return;
|
|
614
616
|
}
|
|
615
617
|
if (ne) return;
|
|
616
|
-
const e =
|
|
618
|
+
const e = L.current;
|
|
617
619
|
if (!o || !e) return;
|
|
618
|
-
const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s =
|
|
620
|
+
const t = ((r = Ae.current) == null ? void 0 : r.getBoundingClientRect().width) ?? 0, n = ve === null ? null : ve - t - e.offsetWidth, s = un(
|
|
619
621
|
n,
|
|
620
|
-
|
|
622
|
+
J,
|
|
621
623
|
ee.current
|
|
622
624
|
);
|
|
623
|
-
s !== ee.current &&
|
|
625
|
+
s !== ee.current && Me(s);
|
|
624
626
|
}, [
|
|
625
|
-
|
|
627
|
+
v,
|
|
626
628
|
E,
|
|
627
629
|
ve,
|
|
628
|
-
|
|
630
|
+
J,
|
|
629
631
|
o,
|
|
630
632
|
ge,
|
|
631
633
|
ne,
|
|
632
|
-
|
|
634
|
+
zt
|
|
633
635
|
]);
|
|
634
636
|
const he = m(h);
|
|
635
637
|
he.current = h;
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
const be =
|
|
638
|
+
const Ye = m("docked");
|
|
639
|
+
Ye.current = me ? "full-screen" : C ? "overlay" : "docked";
|
|
640
|
+
const be = H(
|
|
639
641
|
() => ({
|
|
640
642
|
getActiveToolId: () => he.current,
|
|
641
|
-
getPanelMode: () =>
|
|
643
|
+
getPanelMode: () => Ye.current,
|
|
642
644
|
setActiveTool: (e) => {
|
|
643
645
|
var t;
|
|
644
646
|
e !== null && ((t = a.find((n) => n.id === e)) != null && t.disabled) || (P.current = !1, g(e));
|
|
@@ -659,61 +661,61 @@ const yn = Lt(
|
|
|
659
661
|
}),
|
|
660
662
|
[a, g]
|
|
661
663
|
);
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
+
Bt(pt, () => be, [be]), en(ut, be, i);
|
|
665
|
+
const _t = R("toolRail.badgeCountOverflow", {
|
|
664
666
|
defaultValue: "99+"
|
|
665
|
-
}),
|
|
667
|
+
}), Ze = F ?? R("toolRail.railLabel", { defaultValue: "Tools" });
|
|
666
668
|
return /* @__PURE__ */ w(
|
|
667
669
|
"aside",
|
|
668
670
|
{
|
|
669
671
|
ref: T,
|
|
670
|
-
"aria-label":
|
|
671
|
-
"data-component":
|
|
672
|
+
"aria-label": Ze,
|
|
673
|
+
"data-component": ct,
|
|
672
674
|
"data-component-id": i,
|
|
673
675
|
"data-side": u,
|
|
674
|
-
"data-panel-mode": me ? "full-screen" :
|
|
675
|
-
className: [
|
|
676
|
+
"data-panel-mode": me ? "full-screen" : C ? "overlay" : "docked",
|
|
677
|
+
className: [fn({ side: u }), ft].filter(Boolean).join(" "),
|
|
676
678
|
children: [
|
|
677
|
-
Se ? /* @__PURE__ */
|
|
679
|
+
Se ? /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Tt }) : null,
|
|
678
680
|
x && !E ? /* @__PURE__ */ w(
|
|
679
681
|
"section",
|
|
680
682
|
{
|
|
681
|
-
ref:
|
|
683
|
+
ref: xt,
|
|
682
684
|
tabIndex: -1,
|
|
683
685
|
"aria-label": R("toolRail.panelLabel", {
|
|
684
686
|
tool: x.label,
|
|
685
687
|
defaultValue: "{{tool}} panel"
|
|
686
688
|
}),
|
|
687
|
-
"aria-hidden":
|
|
688
|
-
"data-tool-rail-state":
|
|
689
|
+
"aria-hidden": z || void 0,
|
|
690
|
+
"data-tool-rail-state": z ? "collapsing" : "expanded",
|
|
689
691
|
"data-presence": fe.phase,
|
|
690
692
|
"data-active-tool": x.id,
|
|
691
693
|
"data-resizing": ne ? "" : void 0,
|
|
692
694
|
className: [
|
|
693
695
|
// Overlaid, it slides in from the strip on its inline end.
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
mode:
|
|
696
|
+
vn({ side: C ? "end" : u }),
|
|
697
|
+
mn({
|
|
698
|
+
mode: C ? "overlay" : "docked",
|
|
697
699
|
side: u
|
|
698
700
|
}),
|
|
699
701
|
"ds:focus-visible:outline-none"
|
|
700
702
|
].filter(Boolean).join(" "),
|
|
701
703
|
children: [
|
|
702
|
-
/* @__PURE__ */ w(
|
|
703
|
-
we ? we(x, { isActive: !
|
|
704
|
-
/* @__PURE__ */ w("div", { ref:
|
|
705
|
-
|
|
704
|
+
/* @__PURE__ */ w(Ht, { container: bt, children: [
|
|
705
|
+
we ? we(x, { isActive: !z }) : null,
|
|
706
|
+
/* @__PURE__ */ w("div", { ref: ze, className: hn, children: [
|
|
707
|
+
It.map((e) => /* @__PURE__ */ d(
|
|
706
708
|
"div",
|
|
707
709
|
{
|
|
708
|
-
ref:
|
|
710
|
+
ref: St,
|
|
709
711
|
"aria-hidden": "true",
|
|
710
712
|
"data-exit-id": e.exitId,
|
|
711
713
|
"data-tool-rail-body": e.toolId,
|
|
712
714
|
"data-tool-rail-layer": "leaving",
|
|
713
|
-
"data-presence":
|
|
714
|
-
className:
|
|
715
|
+
"data-presence": Q && e.exitId === Rt ? "present" : "leaving",
|
|
716
|
+
className: rt({ layer: "leaving" }),
|
|
715
717
|
onTransitionEnd: (t) => {
|
|
716
|
-
t.target === t.currentTarget &&
|
|
718
|
+
t.target === t.currentTarget && j(e.exitId);
|
|
717
719
|
}
|
|
718
720
|
},
|
|
719
721
|
e.exitId
|
|
@@ -723,21 +725,22 @@ const yn = Lt(
|
|
|
723
725
|
{
|
|
724
726
|
"data-tool-rail-body": x.id,
|
|
725
727
|
"data-tool-rail-layer": "live",
|
|
726
|
-
"data-presence":
|
|
727
|
-
className:
|
|
728
|
+
"data-presence": Q ? "entering" : "present",
|
|
729
|
+
className: rt({ layer: "live" }),
|
|
728
730
|
children: [
|
|
729
|
-
x.header ? /* @__PURE__ */
|
|
731
|
+
x.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: x.header }) : null,
|
|
730
732
|
x.fill ? (
|
|
731
733
|
// data-tool-fill: a self-scrolling panel owns its own native
|
|
732
734
|
// scroll, so a token rule paints its scrollbar to match the
|
|
733
735
|
// 8px overlay. See tokens/index.css.
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
-
) : /* @__PURE__ */
|
|
736
|
-
|
|
736
|
+
/* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: x.panel })
|
|
737
|
+
) : /* @__PURE__ */ d(
|
|
738
|
+
et,
|
|
737
739
|
{
|
|
738
740
|
orientation: "vertical",
|
|
741
|
+
fillViewport: !0,
|
|
739
742
|
className: "ds:flex-1 ds:min-h-0",
|
|
740
|
-
children: x.panel
|
|
743
|
+
children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: x.panel })
|
|
741
744
|
}
|
|
742
745
|
)
|
|
743
746
|
]
|
|
@@ -746,62 +749,63 @@ const yn = Lt(
|
|
|
746
749
|
)
|
|
747
750
|
] })
|
|
748
751
|
] }),
|
|
749
|
-
|
|
752
|
+
p ? /* @__PURE__ */ d(
|
|
750
753
|
"div",
|
|
751
754
|
{
|
|
752
|
-
|
|
755
|
+
...$e,
|
|
753
756
|
"aria-label": R("toolRail.resizePanel", {
|
|
754
757
|
defaultValue: "Resize tool panel"
|
|
755
758
|
}),
|
|
756
759
|
"data-resizing": ne ? "" : void 0,
|
|
757
|
-
className:
|
|
760
|
+
className: In({ edge: Ke })
|
|
758
761
|
}
|
|
759
762
|
) : null
|
|
760
763
|
]
|
|
761
764
|
}
|
|
762
765
|
) : null,
|
|
763
|
-
me && o ? /* @__PURE__ */
|
|
764
|
-
|
|
766
|
+
me && o ? /* @__PURE__ */ d(
|
|
767
|
+
K.Root,
|
|
765
768
|
{
|
|
766
769
|
open: !0,
|
|
767
770
|
onOpenChange: (e) => {
|
|
768
771
|
e || g(null);
|
|
769
772
|
},
|
|
770
|
-
children: /* @__PURE__ */
|
|
771
|
-
|
|
773
|
+
children: /* @__PURE__ */ d(K.Portal, { children: /* @__PURE__ */ w(
|
|
774
|
+
K.Content,
|
|
772
775
|
{
|
|
773
776
|
"aria-describedby": void 0,
|
|
774
777
|
"data-component": "tool-rail-panel",
|
|
775
778
|
"data-active-tool": o.id,
|
|
776
|
-
className:
|
|
779
|
+
className: gn,
|
|
777
780
|
onCloseAutoFocus: (e) => {
|
|
778
|
-
const t =
|
|
781
|
+
const t = He.current;
|
|
779
782
|
t != null && t.isConnected && (e.preventDefault(), t.focus());
|
|
780
783
|
},
|
|
781
784
|
children: [
|
|
782
785
|
/* @__PURE__ */ w("div", { className: "ds:flex ds:shrink-0 ds:justify-end ds:p-[var(--spacing-xs)]", children: [
|
|
783
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ d(K.Title, { className: "ds:sr-only", children: R("toolRail.panelLabel", {
|
|
784
787
|
tool: o.label,
|
|
785
788
|
defaultValue: "{{tool}} panel"
|
|
786
789
|
}) }),
|
|
787
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ d(K.Close, { asChild: !0, children: /* @__PURE__ */ d(
|
|
788
791
|
xe,
|
|
789
792
|
{
|
|
790
|
-
icon: /* @__PURE__ */
|
|
793
|
+
icon: /* @__PURE__ */ d(tn, { "aria-hidden": "true" }),
|
|
791
794
|
intent: "ghost",
|
|
792
795
|
size: "lg",
|
|
793
796
|
"aria-label": R("common.close", { defaultValue: "Close" })
|
|
794
797
|
}
|
|
795
798
|
) })
|
|
796
799
|
] }),
|
|
797
|
-
/* @__PURE__ */ w(
|
|
798
|
-
o.header ? /* @__PURE__ */
|
|
799
|
-
o.fill ? /* @__PURE__ */
|
|
800
|
-
|
|
800
|
+
/* @__PURE__ */ w($t, { actions: null, children: [
|
|
801
|
+
o.header ? /* @__PURE__ */ d("div", { className: "ds:shrink-0", children: o.header }) : null,
|
|
802
|
+
o.fill ? /* @__PURE__ */ d("div", { "data-tool-fill": "", className: at, children: o.panel }) : /* @__PURE__ */ d(
|
|
803
|
+
et,
|
|
801
804
|
{
|
|
802
805
|
orientation: "vertical",
|
|
806
|
+
fillViewport: !0,
|
|
803
807
|
className: "ds:flex-1 ds:min-h-0",
|
|
804
|
-
children: o.panel
|
|
808
|
+
children: /* @__PURE__ */ d("div", { "data-tool-flow": "", className: st, children: o.panel })
|
|
805
809
|
}
|
|
806
810
|
)
|
|
807
811
|
] })
|
|
@@ -810,24 +814,24 @@ const yn = Lt(
|
|
|
810
814
|
) })
|
|
811
815
|
}
|
|
812
816
|
) : null,
|
|
813
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ d(Ut, { children: /* @__PURE__ */ w(
|
|
814
818
|
"div",
|
|
815
819
|
{
|
|
816
820
|
ref: Ae,
|
|
817
821
|
role: "toolbar",
|
|
818
822
|
"aria-orientation": "vertical",
|
|
819
|
-
"aria-label":
|
|
820
|
-
className:
|
|
821
|
-
onKeyDown:
|
|
823
|
+
"aria-label": Ze,
|
|
824
|
+
className: pn(),
|
|
825
|
+
onKeyDown: Lt,
|
|
822
826
|
children: [
|
|
823
827
|
a.map((e, t) => {
|
|
824
828
|
const n = e.id === h, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ? R("toolRail.toolWithCount", {
|
|
825
829
|
tool: e.label,
|
|
826
830
|
count: e.badgeCount,
|
|
827
831
|
defaultValue: "{{tool}}, {{count}} updates"
|
|
828
|
-
}) : e.label,
|
|
829
|
-
return /* @__PURE__ */ w(
|
|
830
|
-
|
|
832
|
+
}) : e.label, c = Se && !!e.reorderable && !e.disabled, O = c ? `${Ee}-${e.id}` : void 0, _ = e.disabled ? e.disabledReason : void 0, ye = _ ? `${Ee}-${e.id}-reason` : void 0;
|
|
833
|
+
return /* @__PURE__ */ w(Ft, { children: [
|
|
834
|
+
gt && t === Re ? /* @__PURE__ */ d(
|
|
831
835
|
"div",
|
|
832
836
|
{
|
|
833
837
|
role: "separator",
|
|
@@ -839,84 +843,84 @@ const yn = Lt(
|
|
|
839
843
|
"div",
|
|
840
844
|
{
|
|
841
845
|
className: [
|
|
842
|
-
|
|
846
|
+
ot({
|
|
843
847
|
dragging: M === t,
|
|
844
848
|
dropTarget: Te === t && M !== t,
|
|
845
|
-
reorderable:
|
|
849
|
+
reorderable: c
|
|
846
850
|
}),
|
|
847
|
-
|
|
848
|
-
|
|
851
|
+
it,
|
|
852
|
+
Gt
|
|
849
853
|
].filter(Boolean).join(" "),
|
|
850
854
|
"data-reflow-id": e.id,
|
|
851
855
|
"data-dragging": M === t ? "" : void 0,
|
|
852
|
-
draggable:
|
|
853
|
-
onDragStart:
|
|
856
|
+
draggable: c || void 0,
|
|
857
|
+
onDragStart: c ? (l) => {
|
|
854
858
|
ce(t), l.dataTransfer.effectAllowed = "move", l.dataTransfer.setData(
|
|
855
859
|
"text/plain",
|
|
856
860
|
String(t)
|
|
857
861
|
);
|
|
858
862
|
} : void 0,
|
|
859
|
-
onDragOver:
|
|
863
|
+
onDragOver: c ? (l) => {
|
|
860
864
|
M !== null && (l.preventDefault(), l.dataTransfer.dropEffect = "move", Te !== t && G(t));
|
|
861
865
|
} : void 0,
|
|
862
|
-
onDragLeave:
|
|
863
|
-
onDrop:
|
|
866
|
+
onDragLeave: c ? () => G((l) => l === t ? null : l) : void 0,
|
|
867
|
+
onDrop: c ? (l) => {
|
|
864
868
|
l.preventDefault();
|
|
865
869
|
const S = M;
|
|
866
|
-
G(null), ce(null), !(S === null || S === t) &&
|
|
870
|
+
G(null), ce(null), !(S === null || S === t) && Oe(S, t);
|
|
867
871
|
} : void 0,
|
|
868
|
-
onDragEnd:
|
|
872
|
+
onDragEnd: c ? () => {
|
|
869
873
|
ce(null), G(null);
|
|
870
874
|
} : void 0,
|
|
871
875
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
876
|
+
/* @__PURE__ */ d(
|
|
873
877
|
xe,
|
|
874
878
|
{
|
|
875
879
|
ref: (l) => {
|
|
876
880
|
oe.current[t] = l;
|
|
877
881
|
},
|
|
878
882
|
icon: e.icon,
|
|
879
|
-
tooltip:
|
|
883
|
+
tooltip: _ ?? e.label,
|
|
880
884
|
"aria-label": r,
|
|
881
885
|
intent: "ghost",
|
|
882
886
|
size: "sm",
|
|
883
|
-
disabled: e.disabled && !
|
|
884
|
-
"aria-disabled":
|
|
885
|
-
className:
|
|
887
|
+
disabled: e.disabled && !_,
|
|
888
|
+
"aria-disabled": _ ? !0 : void 0,
|
|
889
|
+
className: _ ? "ds:aria-disabled:focus-visible:opacity-100 ds:aria-disabled:focus-visible:*:opacity-50" : void 0,
|
|
886
890
|
"aria-pressed": n,
|
|
887
891
|
"aria-expanded": n,
|
|
888
892
|
"data-active": n ? e.id : void 0,
|
|
889
893
|
"data-tool-id": e.id,
|
|
890
|
-
"aria-describedby": ye ??
|
|
891
|
-
"aria-keyshortcuts":
|
|
894
|
+
"aria-describedby": ye ?? O,
|
|
895
|
+
"aria-keyshortcuts": c ? "Alt+ArrowUp Alt+ArrowDown" : void 0,
|
|
892
896
|
tabIndex: t === q ? 0 : -1,
|
|
893
897
|
onFocus: () => {
|
|
894
898
|
$(e) || ie(t);
|
|
895
899
|
},
|
|
896
900
|
onClick: (l) => {
|
|
897
|
-
if (
|
|
901
|
+
if (_) {
|
|
898
902
|
l.preventDefault();
|
|
899
903
|
return;
|
|
900
904
|
}
|
|
901
|
-
|
|
905
|
+
kt(e.id, le.current);
|
|
902
906
|
},
|
|
903
907
|
onKeyDown: (l) => {
|
|
904
908
|
if (l.key === "Enter" || l.key === " ") {
|
|
905
909
|
le.current = !0;
|
|
906
910
|
return;
|
|
907
911
|
}
|
|
908
|
-
if (
|
|
912
|
+
if (c && l.altKey && b) {
|
|
909
913
|
let S = null;
|
|
910
914
|
if (l.key === "ArrowUp" ? S = t - 1 : l.key === "ArrowDown" ? S = t + 1 : l.key === "Home" ? S = b.first : l.key === "End" && (S = b.last), S !== null) {
|
|
911
915
|
l.preventDefault();
|
|
912
|
-
const
|
|
916
|
+
const Dt = Math.max(
|
|
913
917
|
b.first,
|
|
914
918
|
Math.min(b.last, S)
|
|
915
|
-
),
|
|
916
|
-
|
|
917
|
-
var
|
|
918
|
-
(Je = (
|
|
919
|
-
`[data-tool-id="${CSS.escape(
|
|
919
|
+
), Pt = e.id;
|
|
920
|
+
Oe(t, Dt), requestAnimationFrame(() => {
|
|
921
|
+
var Qe, Je;
|
|
922
|
+
(Je = (Qe = T.current) == null ? void 0 : Qe.querySelector(
|
|
923
|
+
`[data-tool-id="${CSS.escape(Pt)}"]`
|
|
920
924
|
)) == null || Je.focus();
|
|
921
925
|
});
|
|
922
926
|
}
|
|
@@ -927,9 +931,9 @@ const yn = Lt(
|
|
|
927
931
|
}
|
|
928
932
|
}
|
|
929
933
|
),
|
|
930
|
-
s ? /* @__PURE__ */
|
|
934
|
+
s ? /* @__PURE__ */ d("span", { "aria-hidden": "true", className: Rn(), children: En(
|
|
931
935
|
e.badgeCount,
|
|
932
|
-
|
|
936
|
+
_t
|
|
933
937
|
) }) : null,
|
|
934
938
|
re == null ? void 0 : re(e, {
|
|
935
939
|
index: t,
|
|
@@ -939,9 +943,9 @@ const yn = Lt(
|
|
|
939
943
|
ye ? (
|
|
940
944
|
/* Hidden: it is the icon's description, not a second
|
|
941
945
|
copy of the reason to read in the toolbar. */
|
|
942
|
-
/* @__PURE__ */
|
|
946
|
+
/* @__PURE__ */ d("span", { id: ye, hidden: !0, children: _ })
|
|
943
947
|
) : null,
|
|
944
|
-
|
|
948
|
+
O ? /* @__PURE__ */ d("span", { id: O, className: "ds:sr-only", children: R("toolRail.reorderInstructions", {
|
|
945
949
|
tool: e.label,
|
|
946
950
|
defaultValue: "Reorder {{tool}}. Press Alt + Up or Alt + Down to move."
|
|
947
951
|
}) }) : null
|
|
@@ -950,21 +954,21 @@ const yn = Lt(
|
|
|
950
954
|
)
|
|
951
955
|
] }, e.id);
|
|
952
956
|
}),
|
|
953
|
-
|
|
954
|
-
(e) => ue.isLeaving(e.id) ? /* @__PURE__ */
|
|
957
|
+
Et.map(
|
|
958
|
+
(e) => ue.isLeaving(e.id) ? /* @__PURE__ */ d(
|
|
955
959
|
"div",
|
|
956
960
|
{
|
|
957
961
|
className: [
|
|
958
|
-
|
|
962
|
+
ot({
|
|
959
963
|
dragging: !1,
|
|
960
964
|
dropTarget: !1,
|
|
961
965
|
reorderable: !1
|
|
962
966
|
}),
|
|
963
|
-
|
|
964
|
-
|
|
967
|
+
it,
|
|
968
|
+
Sn
|
|
965
969
|
].filter(Boolean).join(" "),
|
|
966
970
|
"aria-hidden": "true",
|
|
967
|
-
children: /* @__PURE__ */
|
|
971
|
+
children: /* @__PURE__ */ d(
|
|
968
972
|
xe,
|
|
969
973
|
{
|
|
970
974
|
icon: e.icon,
|
|
@@ -986,9 +990,9 @@ const yn = Lt(
|
|
|
986
990
|
);
|
|
987
991
|
}
|
|
988
992
|
);
|
|
989
|
-
|
|
993
|
+
Tn.displayName = "ToolRail";
|
|
990
994
|
export {
|
|
991
|
-
|
|
992
|
-
|
|
995
|
+
Tn as T,
|
|
996
|
+
nn as t
|
|
993
997
|
};
|
|
994
|
-
//# sourceMappingURL=tool-rail-
|
|
998
|
+
//# sourceMappingURL=tool-rail-C_Ay0Gxi.js.map
|