@alfadocs/ui-kit-debug 1.57.0 → 1.58.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-fields-BfjxS05Z.js → address-fields-CJtu7LQU.js} +2 -2
- package/dist/_chunks/{address-fields-BfjxS05Z.js.map → address-fields-CJtu7LQU.js.map} +1 -1
- package/dist/_chunks/{alia-sidebar-BBKBJCv6.js → alia-sidebar-dybRpWml.js} +2 -2
- package/dist/_chunks/{alia-sidebar-BBKBJCv6.js.map → alia-sidebar-dybRpWml.js.map} +1 -1
- package/dist/_chunks/{anamnesis-summary-rows-CCQ62mMN.js → anamnesis-summary-rows-M-FUkw9p.js} +3 -3
- package/dist/_chunks/{anamnesis-summary-rows-CCQ62mMN.js.map → anamnesis-summary-rows-M-FUkw9p.js.map} +1 -1
- package/dist/_chunks/{app-frame-B-0O9CrU.js → app-frame-CqmDh2v5.js} +2 -2
- package/dist/_chunks/{app-frame-B-0O9CrU.js.map → app-frame-CqmDh2v5.js.map} +1 -1
- package/dist/_chunks/{balance-badge-cell-CII3SDmR.js → balance-badge-cell-CGoJZlKf.js} +3 -3
- package/dist/_chunks/{balance-badge-cell-CII3SDmR.js.map → balance-badge-cell-CGoJZlKf.js.map} +1 -1
- package/dist/_chunks/{booking-81WnKDsH.js → booking-CiFSAMR-.js} +2 -2
- package/dist/_chunks/{booking-81WnKDsH.js.map → booking-CiFSAMR-.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-D5-k_9zE.js → calendar-workspace-DNHzjG7O.js} +12 -12
- package/dist/_chunks/calendar-workspace-DNHzjG7O.js.map +1 -0
- package/dist/_chunks/{chart-DQ5GxqgT.js → chart-ZMkX-Gqy.js} +28 -28
- package/dist/_chunks/{chart-DQ5GxqgT.js.map → chart-ZMkX-Gqy.js.map} +1 -1
- package/dist/_chunks/{city-input-BC_nYINn.js → city-input-3J3bz9EO.js} +2 -2
- package/dist/_chunks/{city-input-BC_nYINn.js.map → city-input-3J3bz9EO.js.map} +1 -1
- package/dist/_chunks/{control-room-rail-Tx2jW250.js → control-room-rail-CJ85HkS2.js} +2 -2
- package/dist/_chunks/{control-room-rail-Tx2jW250.js.map → control-room-rail-CJ85HkS2.js.map} +1 -1
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js +933 -0
- package/dist/_chunks/dashboard-grid-Cs7cJAsA.js.map +1 -0
- package/dist/_chunks/{data-table-fAMTeAjM.js → data-table-Yn5xiGzs.js} +2 -2
- package/dist/_chunks/{data-table-fAMTeAjM.js.map → data-table-Yn5xiGzs.js.map} +1 -1
- package/dist/_chunks/{face-scheme-BicuUA2K.js → face-scheme-DSKDdIsb.js} +2 -2
- package/dist/_chunks/{face-scheme-BicuUA2K.js.map → face-scheme-DSKDdIsb.js.map} +1 -1
- package/dist/_chunks/{file-manager-CFsL1KVt.js → file-manager-DEtkQR1F.js} +3 -3
- package/dist/_chunks/{file-manager-CFsL1KVt.js.map → file-manager-DEtkQR1F.js.map} +1 -1
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js → forgot-password-form-CEqOmNuX.js} +2 -2
- package/dist/_chunks/{forgot-password-form-DEx-M_QR.js.map → forgot-password-form-CEqOmNuX.js.map} +1 -1
- package/dist/_chunks/{heatmap-BEeOThkW.js → heatmap-DiyOSQk9.js} +2 -2
- package/dist/_chunks/{heatmap-BEeOThkW.js.map → heatmap-DiyOSQk9.js.map} +1 -1
- package/dist/_chunks/{help-me-write-templates-BUoYGo6f.js → help-me-write-templates-CM1p6qkm.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-BUoYGo6f.js.map → help-me-write-templates-CM1p6qkm.js.map} +1 -1
- package/dist/_chunks/{icon-picker-C86lQTIA.js → icon-picker-rOFTawXk.js} +2 -2
- package/dist/_chunks/{icon-picker-C86lQTIA.js.map → icon-picker-rOFTawXk.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-CxW_oLa5.js → link-cell-renderer-C1wOyxDF.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-CxW_oLa5.js.map → link-cell-renderer-C1wOyxDF.js.map} +1 -1
- package/dist/_chunks/{list-RRN2TJ_7.js → list-CNnn7DOD.js} +75 -73
- package/dist/_chunks/list-CNnn7DOD.js.map +1 -0
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js → login-dev-card-CIim81VB.js} +2 -2
- package/dist/_chunks/{login-dev-card-DmZ1B0lB.js.map → login-dev-card-CIim81VB.js.map} +1 -1
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js +613 -0
- package/dist/_chunks/marketplace-app-shell-CSDmGLPW.js.map +1 -0
- package/dist/_chunks/{message-tray-QKQutwxj.js → message-tray-DmU0poD7.js} +2 -2
- package/dist/_chunks/{message-tray-QKQutwxj.js.map → message-tray-DmU0poD7.js.map} +1 -1
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js +9 -0
- package/dist/_chunks/navigation-dismiss-B1mcW1CT.js.map +1 -0
- package/dist/_chunks/{notes-panel-Cm4pttpl.js → notes-panel-DHLHsxpW.js} +2 -2
- package/dist/_chunks/{notes-panel-Cm4pttpl.js.map → notes-panel-DHLHsxpW.js.map} +1 -1
- package/dist/_chunks/{notification-tray-C5VtbGjd.js → notification-tray-DPU-Xg0i.js} +2 -2
- package/dist/_chunks/{notification-tray-C5VtbGjd.js.map → notification-tray-DPU-Xg0i.js.map} +1 -1
- package/dist/_chunks/{panel-subview-BT-Apwgb.js → panel-subview-D4o6ar6_.js} +61 -47
- package/dist/_chunks/panel-subview-D4o6ar6_.js.map +1 -0
- package/dist/_chunks/{patient-details-99kEdtc5.js → patient-details-BCaVuaXz.js} +2 -2
- package/dist/_chunks/{patient-details-99kEdtc5.js.map → patient-details-BCaVuaXz.js.map} +1 -1
- package/dist/_chunks/{patient-field-row-DkxY13T6.js → patient-field-row-jcRSTrp4.js} +3 -3
- package/dist/_chunks/{patient-field-row-DkxY13T6.js.map → patient-field-row-jcRSTrp4.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-opdyfeW2.js → patient-summary-card-kQIfPQOE.js} +2 -2
- package/dist/_chunks/{patient-summary-card-opdyfeW2.js.map → patient-summary-card-kQIfPQOE.js.map} +1 -1
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js → payment-automation-upsell-C4wHOxsp.js} +2 -2
- package/dist/_chunks/{payment-automation-upsell-DiHovmUL.js.map → payment-automation-upsell-C4wHOxsp.js.map} +1 -1
- package/dist/_chunks/{practice-results-CfRkjzsI.js → practice-results-D07wgCqV.js} +2 -2
- package/dist/_chunks/{practice-results-CfRkjzsI.js.map → practice-results-D07wgCqV.js.map} +1 -1
- package/dist/_chunks/{product-hub-panel-DlVRK7Ue.js → product-hub-panel-DCYX0rPG.js} +2 -2
- package/dist/_chunks/{product-hub-panel-DlVRK7Ue.js.map → product-hub-panel-DCYX0rPG.js.map} +1 -1
- package/dist/_chunks/{public-header.agent-BctevbuY.js → public-header.agent-C1SlVSYt.js} +2 -2
- package/dist/_chunks/{public-header.agent-BctevbuY.js.map → public-header.agent-C1SlVSYt.js.map} +1 -1
- package/dist/_chunks/{registration-form-BlTzYywa.js → registration-form-DrSR9Sjk.js} +3 -3
- package/dist/_chunks/{registration-form-BlTzYywa.js.map → registration-form-DrSR9Sjk.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-DTnNZ4Ff.js → rich-text-editor-UgXri8h6.js} +2 -2
- package/dist/_chunks/{rich-text-editor-DTnNZ4Ff.js.map → rich-text-editor-UgXri8h6.js.map} +1 -1
- package/dist/_chunks/{scroll-area-ZtFCv9K7.js → scroll-area-CY5SLYNw.js} +104 -74
- package/dist/_chunks/scroll-area-CY5SLYNw.js.map +1 -0
- package/dist/_chunks/{search-bar-DQJS0wJN.js → search-bar-mA4bPe3t.js} +294 -255
- package/dist/_chunks/search-bar-mA4bPe3t.js.map +1 -0
- package/dist/_chunks/{sheet-8qsiMoUI.js → sheet-Dtjk0CVv.js} +2 -2
- package/dist/_chunks/{sheet-8qsiMoUI.js.map → sheet-Dtjk0CVv.js.map} +1 -1
- package/dist/_chunks/sidebar-D4Wllqfz.js +2029 -0
- package/dist/_chunks/sidebar-D4Wllqfz.js.map +1 -0
- package/dist/_chunks/{signature-request-DRuYAG5I.js → signature-request-dAVgE0_5.js} +2 -2
- package/dist/_chunks/{signature-request-DRuYAG5I.js.map → signature-request-dAVgE0_5.js.map} +1 -1
- package/dist/_chunks/{signed-out-frame-AhMsNW1r.js → signed-out-frame-DOJpobp8.js} +2 -2
- package/dist/_chunks/{signed-out-frame-AhMsNW1r.js.map → signed-out-frame-DOJpobp8.js.map} +1 -1
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js → state-backed-text-input-Cgh4ms3p.js} +2 -2
- package/dist/_chunks/{state-backed-text-input-DECQy5aA.js.map → state-backed-text-input-Cgh4ms3p.js.map} +1 -1
- package/dist/_chunks/{task-editor-NkcopDna.js → task-editor-BflEZmcF.js} +5 -4
- package/dist/_chunks/task-editor-BflEZmcF.js.map +1 -0
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js → tool-rail-CTq1KwxW.js} +115 -114
- package/dist/_chunks/{tool-rail-Bwyuw_Ot.js.map → tool-rail-CTq1KwxW.js.map} +1 -1
- package/dist/_chunks/{use-appointment-details-read-CfFQNOF_.js → use-appointment-details-read-izwoXh-G.js} +6 -6
- package/dist/_chunks/{use-appointment-details-read-CfFQNOF_.js.map → use-appointment-details-read-izwoXh-G.js.map} +1 -1
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js +57 -0
- package/dist/_chunks/use-state-backed-input-DhRQo6gM.js.map +1 -0
- package/dist/_chunks/{voice-control-panel-BKbgb7FM.js → voice-control-panel-an-bpQfF.js} +2 -2
- package/dist/_chunks/{voice-control-panel-BKbgb7FM.js.map → voice-control-panel-an-bpQfF.js.map} +1 -1
- package/dist/_chunks/{widget-picker-rBA7MR5P.js → widget-picker-DlJOgYrZ.js} +80 -57
- package/dist/_chunks/widget-picker-DlJOgYrZ.js.map +1 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/_shared/navigation-dismiss.d.ts +8 -0
- package/dist/components/_shared/navigation-dismiss.d.ts.map +1 -0
- package/dist/components/_shared/use-state-backed-input.d.ts +3 -2
- package/dist/components/_shared/use-state-backed-input.d.ts.map +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts.map +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/dashboard-grid/dashboard-grid.d.ts +33 -8
- package/dist/components/dashboard-grid/dashboard-grid.d.ts.map +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/index.js +2 -2
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/panel-subview/index.js +1 -1
- package/dist/components/panel-subview/panel-subview.d.ts.map +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/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/rich-text-editor/index.js +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts +6 -5
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/search-bar.d.ts +1 -1
- package/dist/components/search-bar/search-bar.d.ts.map +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar-move.d.ts +88 -0
- package/dist/components/sidebar/sidebar-move.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +26 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-editor/task-editor.d.ts.map +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tool-rail/tool-rail.d.ts.map +1 -1
- package/dist/components/voice-control-panel/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/widget-picker/widget-picker.d.ts.map +1 -1
- package/dist/host-compat.css +2 -1
- package/dist/i18n/locales/ar.d.ts +10 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +11 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +10 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +11 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +10 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +11 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +10 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +11 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +10 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +11 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +10 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +11 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +10 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +11 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +10 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +11 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +10 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +11 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +10 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +11 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +10 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +11 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +10 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +11 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +10 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +11 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +10 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +11 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +10 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +11 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +10 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +11 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +10 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +11 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +10 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +11 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +44 -44
- package/dist/locales/ar.json +11 -1
- package/dist/locales/de.json +11 -1
- package/dist/locales/el.json +11 -1
- package/dist/locales/en.json +11 -1
- package/dist/locales/es.json +11 -1
- package/dist/locales/fr.json +11 -1
- package/dist/locales/hi.json +11 -1
- package/dist/locales/it.json +11 -1
- package/dist/locales/ja.json +11 -1
- package/dist/locales/nl.json +11 -1
- package/dist/locales/pl.json +11 -1
- package/dist/locales/pt.json +11 -1
- package/dist/locales/ro.json +11 -1
- package/dist/locales/ru.json +11 -1
- package/dist/locales/sq.json +11 -1
- package/dist/locales/sv.json +11 -1
- package/dist/locales/tr.json +11 -1
- package/dist/locales/zh.json +11 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/forgot-password-form/index.js +1 -1
- 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/marketplace-app-shell/marketplace-app-shell.d.ts +34 -9
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/registration-form/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signed-out-frame/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-workspace-D5-k_9zE.js.map +0 -1
- package/dist/_chunks/dashboard-grid-DfEY2qci.js +0 -844
- package/dist/_chunks/dashboard-grid-DfEY2qci.js.map +0 -1
- package/dist/_chunks/list-RRN2TJ_7.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js +0 -555
- package/dist/_chunks/marketplace-app-shell-BZcA9Z06.js.map +0 -1
- package/dist/_chunks/panel-subview-BT-Apwgb.js.map +0 -1
- package/dist/_chunks/scroll-area-ZtFCv9K7.js.map +0 -1
- package/dist/_chunks/search-bar-DQJS0wJN.js.map +0 -1
- package/dist/_chunks/sidebar-DLsG2AIk.js +0 -1349
- package/dist/_chunks/sidebar-DLsG2AIk.js.map +0 -1
- package/dist/_chunks/task-editor-NkcopDna.js.map +0 -1
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js +0 -59
- package/dist/_chunks/use-state-backed-input-C7ESmxKB.js.map +0 -1
- package/dist/_chunks/widget-picker-rBA7MR5P.js.map +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as R, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as lt, useRef as h, useState as S, useMemo as j, useId as dt, useCallback as N, useEffect as re, useImperativeHandle as ct, Fragment as ut } from "react";
|
|
3
3
|
import { c as A } from "./index-D2ZczOXr.js";
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { I as
|
|
6
|
-
import { S as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
4
|
+
import { useTranslation as ft } from "react-i18next";
|
|
5
|
+
import { I as De } from "./icon-button-COX76Jdj.js";
|
|
6
|
+
import { S as pt } from "./scroll-area-CY5SLYNw.js";
|
|
7
|
+
import { a as vt } from "./tooltip-Cp-PLePW.js";
|
|
8
|
+
import { u as gt } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
|
+
import { u as mt } from "./use-edge-resize-DHbyQwu8.js";
|
|
10
10
|
import { u as M } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
11
|
-
import { a as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
const
|
|
11
|
+
import { a as bt, u as Ce, R as ht } from "./use-list-reflow-C7O4Uqnl.js";
|
|
12
|
+
import { u as yt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
13
|
+
import { u as xt } from "./use-presence-transition-cDwWUXV-.js";
|
|
14
|
+
import { u as It } from "./use-theme-CAuo6EYT.js";
|
|
15
|
+
import { u as wt } from "./registry-DvAUVLHh.js";
|
|
16
|
+
const Tt = {
|
|
17
17
|
id: "tool-rail",
|
|
18
18
|
capabilities: ["open", "close", "select_single"],
|
|
19
19
|
state: {
|
|
@@ -85,7 +85,7 @@ const wt = {
|
|
|
85
85
|
description: "Stable tool id emitted on each strip IconButton. The active icon also carries data-active set to its id."
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
},
|
|
88
|
+
}, Rt = "ds:[inline-size:3rem]", St = "ds:[inline-size:var(--tool-rail-panel-inline-size,var(--ai-tools-rail-panel-inline-size,22rem))]", _e = "--tool-rail-panel-inline-size", At = 288, Et = 880, kt = 352, Lt = A(
|
|
89
89
|
["ds:flex ds:shrink-0 ds:h-full", "ds:bg-[var(--background)]"].join(" "),
|
|
90
90
|
{
|
|
91
91
|
variants: {
|
|
@@ -106,18 +106,18 @@ const wt = {
|
|
|
106
106
|
},
|
|
107
107
|
defaultVariants: { side: "end" }
|
|
108
108
|
}
|
|
109
|
-
),
|
|
109
|
+
), zt = A(
|
|
110
110
|
[
|
|
111
111
|
"ds:flex ds:shrink-0 ds:flex-col ds:items-center",
|
|
112
112
|
"ds:pt-[var(--spacing-md)] ds:pb-[var(--spacing-md)]",
|
|
113
113
|
"ds:gap-[var(--spacing-xs)]",
|
|
114
|
-
|
|
114
|
+
Rt
|
|
115
115
|
].join(" ")
|
|
116
|
-
),
|
|
116
|
+
), Nt = A(
|
|
117
117
|
[
|
|
118
118
|
"ds:relative ds:flex ds:min-h-0 ds:flex-col ds:h-full",
|
|
119
119
|
"ds:bg-[var(--background)]",
|
|
120
|
-
|
|
120
|
+
St,
|
|
121
121
|
// Open / collapse: the panel fades and slides from the strip. The WIDTH
|
|
122
122
|
// snaps on purpose — animating it would re-lay-out the main area (a
|
|
123
123
|
// calendar grid) on every frame. Declared at rest so both directions
|
|
@@ -138,7 +138,7 @@ const wt = {
|
|
|
138
138
|
},
|
|
139
139
|
defaultVariants: { side: "end" }
|
|
140
140
|
}
|
|
141
|
-
),
|
|
141
|
+
), Dt = "ds:relative ds:flex ds:min-h-0 ds:flex-1 ds:flex-col ds:overflow-clip", Ve = A(
|
|
142
142
|
[
|
|
143
143
|
"ds:flex ds:min-h-0 ds:flex-col",
|
|
144
144
|
"ds:transition-[opacity,translate] ds:duration-[var(--animation-duration)]",
|
|
@@ -163,7 +163,7 @@ const wt = {
|
|
|
163
163
|
},
|
|
164
164
|
defaultVariants: { layer: "live" }
|
|
165
165
|
}
|
|
166
|
-
),
|
|
166
|
+
), Ct = 500, _t = [
|
|
167
167
|
"id",
|
|
168
168
|
"name",
|
|
169
169
|
"for",
|
|
@@ -171,10 +171,10 @@ const wt = {
|
|
|
171
171
|
"data-component-id",
|
|
172
172
|
"data-testid"
|
|
173
173
|
];
|
|
174
|
-
function
|
|
174
|
+
function Vt(l) {
|
|
175
175
|
return window.getComputedStyle(l).transitionDuration.split(",").some((n) => Number.parseFloat(n) > 0);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Bt(l) {
|
|
178
178
|
const n = l.cloneNode(!0), U = l.querySelectorAll("*"), q = n.querySelectorAll("*"), P = [];
|
|
179
179
|
return U.forEach((d, D) => {
|
|
180
180
|
var F;
|
|
@@ -186,14 +186,14 @@ function Vt(l) {
|
|
|
186
186
|
}
|
|
187
187
|
}), q.forEach((d) => {
|
|
188
188
|
const D = d instanceof SVGElement;
|
|
189
|
-
for (const f of
|
|
189
|
+
for (const f of _t)
|
|
190
190
|
D && f === "id" || d.removeAttribute(f);
|
|
191
191
|
if (d.matches("iframe, video, audio, embed, object, source"))
|
|
192
192
|
for (const f of ["src", "srcdoc", "data", "autoplay"])
|
|
193
193
|
d.removeAttribute(f);
|
|
194
194
|
}), { nodes: Array.from(n.childNodes), scrolls: P };
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const jt = A(
|
|
197
197
|
[
|
|
198
198
|
"ds:absolute ds:[inset-block:0] ds:z-[1] ds:select-none ds:touch-none",
|
|
199
199
|
"ds:[inline-size:var(--resizable-handle-size)] ds:cursor-col-resize",
|
|
@@ -217,7 +217,7 @@ const Bt = A(
|
|
|
217
217
|
},
|
|
218
218
|
defaultVariants: { edge: "inline-start" }
|
|
219
219
|
}
|
|
220
|
-
),
|
|
220
|
+
), Mt = A(
|
|
221
221
|
[
|
|
222
222
|
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
223
223
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -230,7 +230,7 @@ const Bt = A(
|
|
|
230
230
|
"ds:pointer-events-none ds:select-none",
|
|
231
231
|
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
232
232
|
].join(" ")
|
|
233
|
-
),
|
|
233
|
+
), Be = A(
|
|
234
234
|
// `group/rail-tool` lets an affordance overlay (e.g. a pin star) reveal on
|
|
235
235
|
// hover / focus-within of the whole slot.
|
|
236
236
|
["ds:group/rail-tool ds:relative", "ds:rounded-[var(--radius-sm)]"],
|
|
@@ -252,14 +252,14 @@ const Bt = A(
|
|
|
252
252
|
reorderable: !1
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
),
|
|
255
|
+
), qt = "ds:opacity-0", je = [
|
|
256
256
|
"ds:transition-opacity ds:duration-[var(--animation-duration)]",
|
|
257
257
|
"ds:ease-[var(--ease-out)] ds:motion-reduce:transition-none"
|
|
258
258
|
].join(" ");
|
|
259
|
-
function
|
|
259
|
+
function Pt(l, n) {
|
|
260
260
|
return l > 99 ? n : String(l);
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const Ft = lt(
|
|
263
263
|
({
|
|
264
264
|
id: l,
|
|
265
265
|
tools: n,
|
|
@@ -270,46 +270,46 @@ const Pt = ot(
|
|
|
270
270
|
railLabel: D,
|
|
271
271
|
resizablePanel: f = !1,
|
|
272
272
|
panelWidth: F,
|
|
273
|
-
onPanelWidthChange:
|
|
273
|
+
onPanelWidthChange: Me,
|
|
274
274
|
onReorder: K,
|
|
275
275
|
formatReorderAnnouncement: W,
|
|
276
276
|
renderToolAffordance: Z,
|
|
277
277
|
renderPanelHeader: ie,
|
|
278
|
-
dataComponent:
|
|
279
|
-
agentAdapter:
|
|
280
|
-
className:
|
|
281
|
-
},
|
|
282
|
-
var
|
|
283
|
-
const { t: y } =
|
|
278
|
+
dataComponent: qe = "tool-rail",
|
|
279
|
+
agentAdapter: Pe = Tt,
|
|
280
|
+
className: Fe
|
|
281
|
+
}, Ke) => {
|
|
282
|
+
var ke, Le;
|
|
283
|
+
const { t: y } = ft("ui"), [Oe, x] = gt({
|
|
284
284
|
value: U,
|
|
285
285
|
defaultValue: q,
|
|
286
286
|
onChange: P
|
|
287
|
-
}), I =
|
|
287
|
+
}), I = Oe ?? null, G = h([]), C = h(null), [oe, Y] = S(0), E = h(!1), X = h(!1), w = j(
|
|
288
288
|
() => n.findIndex((e) => e.id === I),
|
|
289
289
|
[n, I]
|
|
290
290
|
), u = w >= 0 ? n[w] : null, J = h(u);
|
|
291
291
|
u && (J.current = u);
|
|
292
|
-
const
|
|
292
|
+
const $e = j(
|
|
293
293
|
() => n.findIndex((e) => !e.disabled),
|
|
294
294
|
[n]
|
|
295
295
|
), le = j(() => {
|
|
296
296
|
var t;
|
|
297
297
|
const e = (t = n[0]) == null ? void 0 : t.scope;
|
|
298
298
|
return e ? n.findIndex((a) => a.scope && a.scope !== e) : -1;
|
|
299
|
-
}, [n]),
|
|
299
|
+
}, [n]), He = le > 0, p = j(() => {
|
|
300
300
|
var a;
|
|
301
301
|
const e = n.findIndex((s) => s.reorderable);
|
|
302
302
|
if (e < 0) return null;
|
|
303
303
|
let t = e;
|
|
304
304
|
for (; t + 1 < n.length && ((a = n[t + 1]) != null && a.reorderable); ) t += 1;
|
|
305
305
|
return { first: e, last: t };
|
|
306
|
-
}, [n]), de = !!K && p !== null,
|
|
306
|
+
}, [n]), de = !!K && p !== null, Ue = dt(), [_, Q] = S(null), [ce, O] = S(null), { resolvedTheme: We } = It(), k = We.endsWith("-accessible") || void 0, { containerRef: Ze } = bt({
|
|
307
307
|
key: n.map((e) => e.id).join(),
|
|
308
308
|
reduceMotion: k
|
|
309
|
-
}), ee =
|
|
309
|
+
}), ee = Ce({ reduceMotion: k }), te = xt(
|
|
310
310
|
u !== null,
|
|
311
311
|
{ reduceMotion: k }
|
|
312
|
-
), T = u === null && te.mounted, b = u ?? (T ? J.current : null), { ref: ue } = te,
|
|
312
|
+
), T = u === null && te.mounted, b = u ?? (T ? J.current : null), { ref: ue } = te, Ge = N(
|
|
313
313
|
(e) => {
|
|
314
314
|
C.current = e, ue(e);
|
|
315
315
|
},
|
|
@@ -336,7 +336,7 @@ const Pt = ot(
|
|
|
336
336
|
}
|
|
337
337
|
e.toggleAttribute("inert", T);
|
|
338
338
|
}, [T]);
|
|
339
|
-
const fe =
|
|
339
|
+
const fe = yt(), [$, pe] = S(
|
|
340
340
|
(u == null ? void 0 : u.id) ?? null
|
|
341
341
|
), v = (u == null ? void 0 : u.id) ?? null, H = !k && !fe && v !== null && $ !== null && $ !== v;
|
|
342
342
|
M(() => {
|
|
@@ -353,9 +353,9 @@ const Pt = ot(
|
|
|
353
353
|
cancelAnimationFrame(a), cancelAnimationFrame(e), window.clearTimeout(s);
|
|
354
354
|
};
|
|
355
355
|
}, [v, $, H]);
|
|
356
|
-
const
|
|
356
|
+
const Ye = !!k || fe, ve = h(null), [c, ge] = S({ liveId: v, serial: 0, focusLost: !1, leaving: [] });
|
|
357
357
|
if (c.liveId !== v) {
|
|
358
|
-
const e = c.liveId !== null && v !== null ? ((
|
|
358
|
+
const e = c.liveId !== null && v !== null ? ((ke = ve.current) == null ? void 0 : ke.querySelector(
|
|
359
359
|
':scope > [data-tool-rail-layer="live"]'
|
|
360
360
|
)) ?? null : null, t = c.leaving.filter(
|
|
361
361
|
(a) => a.toolId !== v
|
|
@@ -364,12 +364,12 @@ const Pt = ot(
|
|
|
364
364
|
liveId: v,
|
|
365
365
|
serial: c.serial + 1,
|
|
366
366
|
focusLost: (e == null ? void 0 : e.contains(document.activeElement)) ?? !1,
|
|
367
|
-
leaving: e && !
|
|
367
|
+
leaving: e && !Ye ? [
|
|
368
368
|
...t.filter((a) => a.toolId !== c.liveId),
|
|
369
369
|
{
|
|
370
370
|
exitId: `${c.liveId}:${c.serial}`,
|
|
371
371
|
toolId: c.liveId,
|
|
372
|
-
...
|
|
372
|
+
...Bt(e)
|
|
373
373
|
}
|
|
374
374
|
] : t
|
|
375
375
|
});
|
|
@@ -381,24 +381,24 @@ const Pt = ot(
|
|
|
381
381
|
leaving: t.leaving.filter((a) => a.exitId !== e)
|
|
382
382
|
} : t
|
|
383
383
|
);
|
|
384
|
-
}, []), { leave: me } =
|
|
384
|
+
}, []), { leave: me } = Ce({
|
|
385
385
|
reduceMotion: k,
|
|
386
|
-
durationMs:
|
|
386
|
+
durationMs: Ct
|
|
387
387
|
});
|
|
388
388
|
re(() => {
|
|
389
389
|
for (const { exitId: e } of c.leaving)
|
|
390
390
|
me(e, () => V(e));
|
|
391
391
|
}, [c.leaving, me, V]);
|
|
392
|
-
const
|
|
392
|
+
const Xe = b ? c.leaving : [], Je = ((Le = c.leaving[c.leaving.length - 1]) == null ? void 0 : Le.exitId) ?? null, be = h(c.leaving);
|
|
393
393
|
be.current = c.leaving;
|
|
394
|
-
const
|
|
394
|
+
const Qe = N(
|
|
395
395
|
(e) => {
|
|
396
396
|
if (!e || e.childNodes.length > 0) return;
|
|
397
397
|
const t = be.current.find(
|
|
398
398
|
(a) => a.exitId === e.dataset.exitId
|
|
399
399
|
);
|
|
400
400
|
if (t) {
|
|
401
|
-
if (!
|
|
401
|
+
if (!Vt(e)) {
|
|
402
402
|
V(t.exitId);
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
@@ -417,7 +417,7 @@ const Pt = ot(
|
|
|
417
417
|
`[data-tool-id="${CSS.escape(v)}"]`
|
|
418
418
|
)) == null || a.focus();
|
|
419
419
|
}, [c.serial]);
|
|
420
|
-
const [
|
|
420
|
+
const [et, he] = S([]), ye = h(n);
|
|
421
421
|
re(() => {
|
|
422
422
|
const e = ye.current, t = new Set(n.map((s) => s.id)), a = e.filter((s) => !t.has(s.id));
|
|
423
423
|
if (a.length > 0) {
|
|
@@ -437,7 +437,7 @@ const Pt = ot(
|
|
|
437
437
|
}
|
|
438
438
|
ye.current = n;
|
|
439
439
|
}, [n, ee]);
|
|
440
|
-
const [
|
|
440
|
+
const [tt, at] = S(""), ae = h(!1), xe = N(
|
|
441
441
|
(e, t) => {
|
|
442
442
|
if (!K || !p) return;
|
|
443
443
|
const a = Math.max(
|
|
@@ -454,17 +454,17 @@ const Pt = ot(
|
|
|
454
454
|
total: p.last - p.first + 1,
|
|
455
455
|
defaultValue: "{{tool}} moved to position {{to}} of {{total}}"
|
|
456
456
|
});
|
|
457
|
-
r && (ae.current = !ae.current,
|
|
457
|
+
r && (ae.current = !ae.current, at(ae.current ? r : `${r}`));
|
|
458
458
|
}
|
|
459
459
|
},
|
|
460
460
|
[K, p, n, y, W]
|
|
461
|
-
), Ie = n[oe], B = w >= 0 ? w : Ie && !Ie.disabled ? oe :
|
|
461
|
+
), Ie = n[oe], B = w >= 0 ? w : Ie && !Ie.disabled ? oe : $e, nt = N(
|
|
462
462
|
(e, t) => {
|
|
463
463
|
const a = n.find((s) => s.id === e);
|
|
464
464
|
!a || a.disabled || (E.current = t, x(I === e ? null : e));
|
|
465
465
|
},
|
|
466
466
|
[n, I, x]
|
|
467
|
-
),
|
|
467
|
+
), st = N(
|
|
468
468
|
(e) => {
|
|
469
469
|
var z, i, g;
|
|
470
470
|
const t = n.length;
|
|
@@ -496,23 +496,23 @@ const Pt = ot(
|
|
|
496
496
|
var e;
|
|
497
497
|
u && E.current && ((e = C.current) == null || e.focus()), E.current = !1;
|
|
498
498
|
}, [u]);
|
|
499
|
-
const we = d === "end" ? "inline-start" : "inline-end", { separatorProps: Te, isResizing: Re, isResized: Se } =
|
|
499
|
+
const we = d === "end" ? "inline-start" : "inline-end", { separatorProps: Te, isResizing: Re, isResized: Se } = mt({
|
|
500
500
|
edge: we,
|
|
501
501
|
targetRef: C,
|
|
502
|
-
cssProperty:
|
|
503
|
-
minSize:
|
|
504
|
-
maxSize:
|
|
505
|
-
defaultSize:
|
|
502
|
+
cssProperty: _e,
|
|
503
|
+
minSize: At,
|
|
504
|
+
maxSize: Et,
|
|
505
|
+
defaultSize: kt,
|
|
506
506
|
disabled: !f,
|
|
507
507
|
// A width the user cannot change or reset is a trap: the controlled
|
|
508
508
|
// value applies only while the handle is on.
|
|
509
509
|
size: f ? F : void 0,
|
|
510
|
-
onResize:
|
|
510
|
+
onResize: Me
|
|
511
511
|
}), Ae = Te["aria-valuenow"];
|
|
512
512
|
M(() => {
|
|
513
513
|
var e;
|
|
514
514
|
!f || !Se || !u || (e = C.current) == null || e.style.setProperty(
|
|
515
|
-
|
|
515
|
+
_e,
|
|
516
516
|
`${Ae}px`
|
|
517
517
|
);
|
|
518
518
|
}, [u, f, Se, Ae]);
|
|
@@ -540,24 +540,25 @@ const Pt = ot(
|
|
|
540
540
|
}),
|
|
541
541
|
[n, x]
|
|
542
542
|
);
|
|
543
|
-
|
|
544
|
-
const
|
|
543
|
+
ct(Ke, () => se, [se]), wt(Pe, se, l);
|
|
544
|
+
const rt = y("toolRail.badgeCountOverflow", {
|
|
545
545
|
defaultValue: "99+"
|
|
546
|
-
});
|
|
546
|
+
}), Ee = D ?? y("toolRail.railLabel", { defaultValue: "Tools" });
|
|
547
547
|
return /* @__PURE__ */ R(
|
|
548
|
-
"
|
|
548
|
+
"aside",
|
|
549
549
|
{
|
|
550
550
|
ref: L,
|
|
551
|
-
"
|
|
551
|
+
"aria-label": Ee,
|
|
552
|
+
"data-component": qe,
|
|
552
553
|
"data-component-id": l,
|
|
553
554
|
"data-side": d,
|
|
554
|
-
className: [
|
|
555
|
+
className: [Lt({ side: d }), Fe].filter(Boolean).join(" "),
|
|
555
556
|
children: [
|
|
556
|
-
de ? /* @__PURE__ */ m("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children:
|
|
557
|
+
de ? /* @__PURE__ */ m("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: tt }) : null,
|
|
557
558
|
b ? /* @__PURE__ */ R(
|
|
558
|
-
"
|
|
559
|
+
"section",
|
|
559
560
|
{
|
|
560
|
-
ref:
|
|
561
|
+
ref: Ge,
|
|
561
562
|
tabIndex: -1,
|
|
562
563
|
"aria-label": y("toolRail.panelLabel", {
|
|
563
564
|
tool: b.label,
|
|
@@ -569,14 +570,14 @@ const Pt = ot(
|
|
|
569
570
|
"data-active-tool": b.id,
|
|
570
571
|
"data-resizing": Re ? "" : void 0,
|
|
571
572
|
className: [
|
|
572
|
-
|
|
573
|
+
Nt({ side: d }),
|
|
573
574
|
// Subtle shadow — not a line — separating the panel from the
|
|
574
575
|
// icon strip (the tab row). The panel casts a soft chrome
|
|
575
576
|
// shadow toward the strip on its strip-facing edge. `z-[1]`
|
|
576
577
|
// lifts it above the adjacent strip (the panel is already
|
|
577
578
|
// `relative`) so the shadow paints at the seam instead of being
|
|
578
579
|
// covered by the strip's opaque background. Only renders while
|
|
579
|
-
// the panel is open (
|
|
580
|
+
// the panel is open (it is unmounted when collapsed), so
|
|
580
581
|
// it never doubles as a rail↔main seam. In the accessible (AAA)
|
|
581
582
|
// theme the soft shadow becomes a solid 1px border on that same
|
|
582
583
|
// strip-facing edge.
|
|
@@ -586,17 +587,17 @@ const Pt = ot(
|
|
|
586
587
|
].join(" "),
|
|
587
588
|
children: [
|
|
588
589
|
ie ? ie(b, { isActive: !T }) : null,
|
|
589
|
-
/* @__PURE__ */ R("div", { ref: ve, className:
|
|
590
|
-
|
|
590
|
+
/* @__PURE__ */ R("div", { ref: ve, className: Dt, children: [
|
|
591
|
+
Xe.map((e) => /* @__PURE__ */ m(
|
|
591
592
|
"div",
|
|
592
593
|
{
|
|
593
|
-
ref:
|
|
594
|
+
ref: Qe,
|
|
594
595
|
"aria-hidden": "true",
|
|
595
596
|
"data-exit-id": e.exitId,
|
|
596
597
|
"data-tool-rail-body": e.toolId,
|
|
597
598
|
"data-tool-rail-layer": "leaving",
|
|
598
|
-
"data-presence": H && e.exitId ===
|
|
599
|
-
className:
|
|
599
|
+
"data-presence": H && e.exitId === Je ? "present" : "leaving",
|
|
600
|
+
className: Ve({ layer: "leaving" }),
|
|
600
601
|
onTransitionEnd: (t) => {
|
|
601
602
|
t.target === t.currentTarget && V(e.exitId);
|
|
602
603
|
}
|
|
@@ -609,7 +610,7 @@ const Pt = ot(
|
|
|
609
610
|
"data-tool-rail-body": b.id,
|
|
610
611
|
"data-tool-rail-layer": "live",
|
|
611
612
|
"data-presence": H ? "entering" : "present",
|
|
612
|
-
className:
|
|
613
|
+
className: Ve({ layer: "live" }),
|
|
613
614
|
children: [
|
|
614
615
|
b.header ? /* @__PURE__ */ m("div", { className: "ds:shrink-0", children: b.header }) : null,
|
|
615
616
|
b.fill ? (
|
|
@@ -618,7 +619,7 @@ const Pt = ot(
|
|
|
618
619
|
// 8px overlay. See tokens/index.css.
|
|
619
620
|
/* @__PURE__ */ m("div", { "data-tool-fill": "", className: "ds:flex-1 ds:min-h-0", children: b.panel })
|
|
620
621
|
) : /* @__PURE__ */ m(
|
|
621
|
-
|
|
622
|
+
pt,
|
|
622
623
|
{
|
|
623
624
|
orientation: "vertical",
|
|
624
625
|
className: "ds:flex-1 ds:min-h-0",
|
|
@@ -638,30 +639,30 @@ const Pt = ot(
|
|
|
638
639
|
defaultValue: "Resize tool panel"
|
|
639
640
|
}),
|
|
640
641
|
"data-resizing": Re ? "" : void 0,
|
|
641
|
-
className:
|
|
642
|
+
className: jt({ edge: we })
|
|
642
643
|
}
|
|
643
644
|
) : null
|
|
644
645
|
]
|
|
645
646
|
}
|
|
646
647
|
) : null,
|
|
647
|
-
/* @__PURE__ */ m(
|
|
648
|
+
/* @__PURE__ */ m(vt, { children: /* @__PURE__ */ R(
|
|
648
649
|
"div",
|
|
649
650
|
{
|
|
650
|
-
ref:
|
|
651
|
+
ref: Ze,
|
|
651
652
|
role: "toolbar",
|
|
652
653
|
"aria-orientation": "vertical",
|
|
653
|
-
"aria-label":
|
|
654
|
-
className:
|
|
655
|
-
onKeyDown:
|
|
654
|
+
"aria-label": Ee,
|
|
655
|
+
className: zt(),
|
|
656
|
+
onKeyDown: st,
|
|
656
657
|
children: [
|
|
657
658
|
n.map((e, t) => {
|
|
658
659
|
const a = e.id === I, s = typeof e.badgeCount == "number" && e.badgeCount > 0, r = s ? y("toolRail.toolWithCount", {
|
|
659
660
|
tool: e.label,
|
|
660
661
|
count: e.badgeCount,
|
|
661
662
|
defaultValue: "{{tool}}, {{count}} updates"
|
|
662
|
-
}) : e.label, o = de && !!e.reorderable && !e.disabled, z = o ? `${
|
|
663
|
-
return /* @__PURE__ */ R(
|
|
664
|
-
|
|
663
|
+
}) : e.label, o = de && !!e.reorderable && !e.disabled, z = o ? `${Ue}-${e.id}` : void 0;
|
|
664
|
+
return /* @__PURE__ */ R(ut, { children: [
|
|
665
|
+
He && t === le ? /* @__PURE__ */ m(
|
|
665
666
|
"div",
|
|
666
667
|
{
|
|
667
668
|
role: "separator",
|
|
@@ -673,13 +674,13 @@ const Pt = ot(
|
|
|
673
674
|
"div",
|
|
674
675
|
{
|
|
675
676
|
className: [
|
|
676
|
-
|
|
677
|
+
Be({
|
|
677
678
|
dragging: _ === t,
|
|
678
679
|
dropTarget: ce === t && _ !== t,
|
|
679
680
|
reorderable: o
|
|
680
681
|
}),
|
|
681
|
-
|
|
682
|
-
|
|
682
|
+
je,
|
|
683
|
+
ht
|
|
683
684
|
].filter(Boolean).join(" "),
|
|
684
685
|
"data-reflow-id": e.id,
|
|
685
686
|
"data-dragging": _ === t ? "" : void 0,
|
|
@@ -704,7 +705,7 @@ const Pt = ot(
|
|
|
704
705
|
} : void 0,
|
|
705
706
|
children: [
|
|
706
707
|
/* @__PURE__ */ m(
|
|
707
|
-
|
|
708
|
+
De,
|
|
708
709
|
{
|
|
709
710
|
ref: (i) => {
|
|
710
711
|
G.current[t] = i;
|
|
@@ -725,7 +726,7 @@ const Pt = ot(
|
|
|
725
726
|
onFocus: () => {
|
|
726
727
|
e.disabled || Y(t);
|
|
727
728
|
},
|
|
728
|
-
onClick: () =>
|
|
729
|
+
onClick: () => nt(e.id, X.current),
|
|
729
730
|
onKeyDown: (i) => {
|
|
730
731
|
if (i.key === "Enter" || i.key === " ") {
|
|
731
732
|
X.current = !0;
|
|
@@ -735,15 +736,15 @@ const Pt = ot(
|
|
|
735
736
|
let g = null;
|
|
736
737
|
if (i.key === "ArrowUp" ? g = t - 1 : i.key === "ArrowDown" ? g = t + 1 : i.key === "Home" ? g = p.first : i.key === "End" && (g = p.last), g !== null) {
|
|
737
738
|
i.preventDefault();
|
|
738
|
-
const
|
|
739
|
+
const it = Math.max(
|
|
739
740
|
p.first,
|
|
740
741
|
Math.min(p.last, g)
|
|
741
|
-
),
|
|
742
|
-
xe(t,
|
|
743
|
-
var
|
|
744
|
-
(
|
|
745
|
-
`[data-tool-id="${CSS.escape(
|
|
746
|
-
)) == null ||
|
|
742
|
+
), ot = e.id;
|
|
743
|
+
xe(t, it), requestAnimationFrame(() => {
|
|
744
|
+
var ze, Ne;
|
|
745
|
+
(Ne = (ze = L.current) == null ? void 0 : ze.querySelector(
|
|
746
|
+
`[data-tool-id="${CSS.escape(ot)}"]`
|
|
747
|
+
)) == null || Ne.focus();
|
|
747
748
|
});
|
|
748
749
|
}
|
|
749
750
|
}
|
|
@@ -753,9 +754,9 @@ const Pt = ot(
|
|
|
753
754
|
}
|
|
754
755
|
}
|
|
755
756
|
),
|
|
756
|
-
s ? /* @__PURE__ */ m("span", { "aria-hidden": "true", className:
|
|
757
|
+
s ? /* @__PURE__ */ m("span", { "aria-hidden": "true", className: Mt(), children: Pt(
|
|
757
758
|
e.badgeCount,
|
|
758
|
-
|
|
759
|
+
rt
|
|
759
760
|
) }) : null,
|
|
760
761
|
Z == null ? void 0 : Z(e, {
|
|
761
762
|
index: t,
|
|
@@ -771,22 +772,22 @@ const Pt = ot(
|
|
|
771
772
|
)
|
|
772
773
|
] }, e.id);
|
|
773
774
|
}),
|
|
774
|
-
|
|
775
|
+
et.map(
|
|
775
776
|
(e) => ee.isLeaving(e.id) ? /* @__PURE__ */ m(
|
|
776
777
|
"div",
|
|
777
778
|
{
|
|
778
779
|
className: [
|
|
779
|
-
|
|
780
|
+
Be({
|
|
780
781
|
dragging: !1,
|
|
781
782
|
dropTarget: !1,
|
|
782
783
|
reorderable: !1
|
|
783
784
|
}),
|
|
784
|
-
|
|
785
|
-
|
|
785
|
+
je,
|
|
786
|
+
qt
|
|
786
787
|
].filter(Boolean).join(" "),
|
|
787
788
|
"aria-hidden": "true",
|
|
788
789
|
children: /* @__PURE__ */ m(
|
|
789
|
-
|
|
790
|
+
De,
|
|
790
791
|
{
|
|
791
792
|
icon: e.icon,
|
|
792
793
|
intent: "ghost",
|
|
@@ -807,9 +808,9 @@ const Pt = ot(
|
|
|
807
808
|
);
|
|
808
809
|
}
|
|
809
810
|
);
|
|
810
|
-
|
|
811
|
+
Ft.displayName = "ToolRail";
|
|
811
812
|
export {
|
|
812
|
-
|
|
813
|
-
|
|
813
|
+
Ft as T,
|
|
814
|
+
Tt as t
|
|
814
815
|
};
|
|
815
|
-
//# sourceMappingURL=tool-rail-
|
|
816
|
+
//# sourceMappingURL=tool-rail-CTq1KwxW.js.map
|