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