@alfadocs/ui-kit-debug 0.65.0 → 0.67.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/{agenda-card-Bl-SBiCh.js → agenda-card-BxSFkqgY.js} +2 -2
- package/dist/_chunks/{agenda-card-Bl-SBiCh.js.map → agenda-card-BxSFkqgY.js.map} +1 -1
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js → agenda-tray-T-BumlGZ.js} +2 -2
- package/dist/_chunks/{agenda-tray-Bh1KfEOG.js.map → agenda-tray-T-BumlGZ.js.map} +1 -1
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js → ai-consent-banner-Dxtx_WAh.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-Btzmk8OH.js.map → ai-consent-banner-Dxtx_WAh.js.map} +1 -1
- package/dist/_chunks/{ai-tools-rail-JnlTqfS4.js → ai-tools-rail-DfmewPUN.js} +92 -76
- package/dist/_chunks/ai-tools-rail-DfmewPUN.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js → alia-sidebar-Ckv0yCKi.js} +2 -2
- package/dist/_chunks/{alia-sidebar-CN8pA6c-.js.map → alia-sidebar-Ckv0yCKi.js.map} +1 -1
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js → anamnesis-card-N8pIKWuS.js} +2 -2
- package/dist/_chunks/{anamnesis-card-qeLYRG79.js.map → anamnesis-card-N8pIKWuS.js.map} +1 -1
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js → antenatal-schedule-timeline-35ebkcZT.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-BfzFjEyb.js.map → antenatal-schedule-timeline-35ebkcZT.js.map} +1 -1
- package/dist/_chunks/{appointment-tray-BQnJEora.js → appointment-tray-CQJ3Nbi5.js} +4 -4
- package/dist/_chunks/{appointment-tray-BQnJEora.js.map → appointment-tray-CQJ3Nbi5.js.map} +1 -1
- package/dist/_chunks/{badge-zsf5i5bH.js → badge-CqGsX32l.js} +46 -42
- package/dist/_chunks/badge-CqGsX32l.js.map +1 -0
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-CjsB9bM-.js} +3 -3
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js.map → bishop-score-CjsB9bM-.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-n-823_1V.js} +3 -3
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js.map → bmi-calculator-n-823_1V.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-D42WD4-T.js → care-plan-card-CJei-nl9.js} +4 -4
- package/dist/_chunks/{care-plan-card-D42WD4-T.js.map → care-plan-card-CJei-nl9.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js → care-plan-entry-card-EmfrbHu8.js} +4 -4
- package/dist/_chunks/{care-plan-entry-card-BukNI7Uy.js.map → care-plan-entry-card-EmfrbHu8.js.map} +1 -1
- package/dist/_chunks/{clinical-note-card-BYo437dU.js → clinical-note-card-gtrxv6zn.js} +2 -2
- package/dist/_chunks/{clinical-note-card-BYo437dU.js.map → clinical-note-card-gtrxv6zn.js.map} +1 -1
- package/dist/_chunks/{color-picker-9tL7pz5y.js → color-picker-B7xsn6tX.js} +186 -167
- package/dist/_chunks/color-picker-B7xsn6tX.js.map +1 -0
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/columns-2-BTOBZbep.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js → contact-profile-card-7BMB85T6.js} +2 -2
- package/dist/_chunks/{contact-profile-card-CCeJmjbd.js.map → contact-profile-card-7BMB85T6.js.map} +1 -1
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-BF0ointe.js} +3 -3
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js.map → cycle-calculator-BF0ointe.js.map} +1 -1
- package/dist/_chunks/{dependent-selector-CRWgieHm.js → dependent-selector-DpzGtr_J.js} +2 -2
- package/dist/_chunks/{dependent-selector-CRWgieHm.js.map → dependent-selector-DpzGtr_J.js.map} +1 -1
- package/dist/_chunks/{document-scanner-biBS_f6c.js → document-scanner-D2qehl3-.js} +53 -53
- package/dist/_chunks/{document-scanner-biBS_f6c.js.map → document-scanner-D2qehl3-.js.map} +1 -1
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js → due-date-calculator-DU9AEWNy.js} +4 -4
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js.map → due-date-calculator-DU9AEWNy.js.map} +1 -1
- package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-BVJ04DkB.js} +914 -865
- package/dist/_chunks/editable-currency-cell-renderer-BVJ04DkB.js.map +1 -0
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-BVSzOhuR.js} +3 -3
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js.map → fetal-weight-BVSzOhuR.js.map} +1 -1
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-DBlFdoiP.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js.map → gestational-age-calculator-DBlFdoiP.js.map} +1 -1
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-if4Q8aSX.js} +3 -3
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js.map → hcg-doubling-if4Q8aSX.js.map} +1 -1
- package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
- package/dist/_chunks/image-C6RM5hfF.js.map +1 -0
- package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
- package/dist/_chunks/insert-result-njqBthzT.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Bu-HD3fy.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js.map → marketplace-app-shell-Bu-HD3fy.js.map} +1 -1
- package/dist/_chunks/{message-card-Bgcvfj6-.js → message-card-Bx4GmLvf.js} +9 -9
- package/dist/_chunks/{message-card-Bgcvfj6-.js.map → message-card-Bx4GmLvf.js.map} +1 -1
- package/dist/_chunks/{message-tray-saAVMeHP.js → message-tray-CVyJajVJ.js} +2 -2
- package/dist/_chunks/{message-tray-saAVMeHP.js.map → message-tray-CVyJajVJ.js.map} +1 -1
- package/dist/_chunks/{operator-hero-CM8949Hd.js → operator-hero-f_KaRhw5.js} +2 -2
- package/dist/_chunks/{operator-hero-CM8949Hd.js.map → operator-hero-f_KaRhw5.js.map} +1 -1
- package/dist/_chunks/{patient-search-Bw9ONucF.js → patient-search-DR9XUYRQ.js} +2 -2
- package/dist/_chunks/{patient-search-Bw9ONucF.js.map → patient-search-DR9XUYRQ.js.map} +1 -1
- package/dist/_chunks/{patient-shell-CF_qon7C.js → patient-shell-DrV_iekt.js} +2 -2
- package/dist/_chunks/{patient-shell-CF_qon7C.js.map → patient-shell-DrV_iekt.js.map} +1 -1
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js → patient-summary-card-ByfIU8N0.js} +4 -4
- package/dist/_chunks/{patient-summary-card-Bgso0p_l.js.map → patient-summary-card-ByfIU8N0.js.map} +1 -1
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js → payment-request-card-yTjzKQCU.js} +3 -3
- package/dist/_chunks/{payment-request-card-DBz3hVDz.js.map → payment-request-card-yTjzKQCU.js.map} +1 -1
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js → periodontal-chart-card-Dh3KgvYG.js} +2 -2
- package/dist/_chunks/{periodontal-chart-card-AYyHtU9K.js.map → periodontal-chart-card-Dh3KgvYG.js.map} +1 -1
- package/dist/_chunks/{practice-results-CVAgY2RZ.js → practice-results-DND2SAt7.js} +2 -2
- package/dist/_chunks/{practice-results-CVAgY2RZ.js.map → practice-results-DND2SAt7.js.map} +1 -1
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js → pregnancy-dating-QY-sqpvj.js} +4 -4
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js.map → pregnancy-dating-QY-sqpvj.js.map} +1 -1
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-DOJXXNYP.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js.map → pregnancy-weight-gain-DOJXXNYP.js.map} +1 -1
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js +1970 -0
- package/dist/_chunks/rich-text-editor-BOQr5lHx.js.map +1 -0
- package/dist/_chunks/{scroll-area-BWqCkEGz.js → scroll-area-eccd_Uf-.js} +38 -28
- package/dist/_chunks/scroll-area-eccd_Uf-.js.map +1 -0
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-CGjIk_FQ.js} +36 -22
- package/dist/_chunks/sidebar-CGjIk_FQ.js.map +1 -0
- package/dist/_chunks/{suggestion-chip-C4kxWUIs.js → suggestion-chip-Bk4PmYTg.js} +30 -30
- package/dist/_chunks/suggestion-chip-Bk4PmYTg.js.map +1 -0
- package/dist/_chunks/{tab-bar-Xetknddo.js → tab-bar-B1ovILzh.js} +2 -2
- package/dist/_chunks/{tab-bar-Xetknddo.js.map → tab-bar-B1ovILzh.js.map} +1 -1
- package/dist/_chunks/{tag-CdA0s_VV.js → tag-BQXwuJq1.js} +41 -38
- package/dist/_chunks/tag-BQXwuJq1.js.map +1 -0
- package/dist/_chunks/{transaction-chip-BZCa6XDn.js → transaction-chip-BrW8P50O.js} +19 -19
- package/dist/_chunks/transaction-chip-BrW8P50O.js.map +1 -0
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/trash-2-rPAKaRgB.js.map +1 -0
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js.map → unit-converter-C1V3ACM9.js.map} +1 -1
- package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-JAZryZJr.js} +137 -149
- package/dist/_chunks/workflow-map-JAZryZJr.js.map +1 -0
- package/dist/agent-catalog.json +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/badge/badge.d.ts.map +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts +16 -0
- package/dist/components/data-table/cell-renderers/actions-cell-renderer.d.ts.map +1 -1
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts +12 -0
- package/dist/components/data-table/cell-renderers/tooth-cell-renderer.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +1 -1
- package/dist/components/data-table/index.d.ts +2 -0
- package/dist/components/data-table/index.d.ts.map +1 -1
- package/dist/components/data-table/index.js +13 -12
- package/dist/components/data-table/toolbar.d.ts +5 -1
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/dependent-selector/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +36 -2
- package/dist/components/rich-text-editor/editor-toolbar.d.ts.map +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/scroll-area/index.js +1 -1
- package/dist/components/scroll-area/scroll-area.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/tag/tag.d.ts.map +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transaction-chip/transaction-chip.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +26 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +27 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +26 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +27 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +26 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +27 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +26 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +27 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +26 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +27 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +26 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +27 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +26 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +27 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +26 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +27 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +26 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +27 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +26 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +25 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +26 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +27 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +26 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +27 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +26 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +27 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +26 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +27 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +26 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +27 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +26 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +25 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +26 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +27 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +26 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +25 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +509 -508
- package/dist/locales/ar.json +27 -1
- package/dist/locales/de.json +27 -1
- package/dist/locales/el.json +27 -1
- package/dist/locales/en.json +27 -1
- package/dist/locales/es.json +27 -1
- package/dist/locales/fr.json +27 -1
- package/dist/locales/hi.json +27 -1
- package/dist/locales/it.json +27 -1
- package/dist/locales/ja.json +27 -1
- package/dist/locales/nl.json +27 -1
- package/dist/locales/pl.json +27 -1
- package/dist/locales/pt.json +27 -1
- package/dist/locales/ro.json +27 -1
- package/dist/locales/ru.json +27 -1
- package/dist/locales/sq.json +27 -1
- package/dist/locales/sv.json +27 -1
- package/dist/locales/tr.json +27 -1
- package/dist/locales/zh.json +27 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/dist/_chunks/ai-tools-rail-JnlTqfS4.js.map +0 -1
- package/dist/_chunks/badge-zsf5i5bH.js.map +0 -1
- package/dist/_chunks/color-picker-9tL7pz5y.js.map +0 -1
- package/dist/_chunks/editable-currency-cell-renderer-CFqQc56y.js.map +0 -1
- package/dist/_chunks/insert-result-DIAG3ltJ.js.map +0 -1
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +0 -1190
- package/dist/_chunks/rich-text-editor-u36FqSWz.js.map +0 -1
- package/dist/_chunks/scroll-area-BWqCkEGz.js.map +0 -1
- package/dist/_chunks/sidebar-DPEHzxLZ.js.map +0 -1
- package/dist/_chunks/suggestion-chip-C4kxWUIs.js.map +0 -1
- package/dist/_chunks/tag-CdA0s_VV.js.map +0 -1
- package/dist/_chunks/transaction-chip-BZCa6XDn.js.map +0 -1
- package/dist/_chunks/type-DZ5OMRA2.js.map +0 -1
- package/dist/_chunks/workflow-map-BX3JY1Bu.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as v, useRef as z } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as r from "@radix-ui/react-scroll-area";
|
|
4
4
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { u as p } from "./use-direction-Dp8h70PP.js";
|
|
6
6
|
const u = b(
|
|
@@ -43,72 +43,82 @@ const u = b(
|
|
|
43
43
|
'ds:before:absolute ds:before:content-[""] ds:before:inset-inline-[calc((var(--min-target-size)-100%)/-2)]',
|
|
44
44
|
"ds:before:inset-block-[calc((var(--min-target-size)-100%)/-2)]"
|
|
45
45
|
].join(" ")
|
|
46
|
-
), w = (
|
|
46
|
+
), w = (o) => o === "auto" || o === void 0 ? "hover" : o, S = {
|
|
47
47
|
vertical: "ds:overflow-y-auto",
|
|
48
48
|
horizontal: "ds:overflow-x-auto",
|
|
49
49
|
both: "ds:overflow-auto"
|
|
50
50
|
}, m = v(
|
|
51
51
|
({
|
|
52
|
-
orientation:
|
|
52
|
+
orientation: o = "vertical",
|
|
53
53
|
size: e = "md",
|
|
54
|
-
type:
|
|
55
|
-
className:
|
|
54
|
+
type: l = "auto",
|
|
55
|
+
className: i,
|
|
56
56
|
children: t,
|
|
57
57
|
scrollHideDelay: n,
|
|
58
58
|
...d
|
|
59
59
|
}, c) => {
|
|
60
60
|
const a = z(null), h = p(a);
|
|
61
61
|
return /* @__PURE__ */ g(
|
|
62
|
-
|
|
62
|
+
r.Root,
|
|
63
63
|
{
|
|
64
64
|
ref: a,
|
|
65
|
-
type: w(
|
|
65
|
+
type: w(l),
|
|
66
66
|
dir: h,
|
|
67
67
|
scrollHideDelay: n,
|
|
68
68
|
"data-component": "scroll-area",
|
|
69
69
|
className: [
|
|
70
70
|
"ds:relative ds:overflow-hidden",
|
|
71
71
|
"ds:min-w-0 ds:min-h-0",
|
|
72
|
-
|
|
72
|
+
i
|
|
73
73
|
].filter(Boolean).join(" "),
|
|
74
74
|
...d,
|
|
75
75
|
children: [
|
|
76
76
|
/* @__PURE__ */ s(
|
|
77
|
-
|
|
77
|
+
r.Viewport,
|
|
78
78
|
{
|
|
79
79
|
ref: c,
|
|
80
80
|
tabIndex: 0,
|
|
81
81
|
className: [
|
|
82
82
|
"ds:h-full ds:w-full ds:rounded-[inherit]",
|
|
83
|
+
// Radix wraps the viewport content in an inline
|
|
84
|
+
// `display:table; min-width:100%` div that grows to the content's
|
|
85
|
+
// MAX-content width. In a vertical-only scroll area the Root's
|
|
86
|
+
// overflow-x is hidden, so anything wider than the viewport is
|
|
87
|
+
// silently CLIPPED — not scrollable (seen in the AiToolsRail inbox
|
|
88
|
+
// panel once accessible-mode type pushed content past the panel
|
|
89
|
+
// width). Forcing that wrapper to `block` makes content wrap to the
|
|
90
|
+
// viewport width instead. Horizontal / both keep the table wrapper
|
|
91
|
+
// so they can still scroll on the x-axis.
|
|
92
|
+
o === "vertical" ? "ds:[&>div]:!block" : "",
|
|
83
93
|
// keyboard focus ring on the scroll container
|
|
84
94
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
85
95
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
86
96
|
"ds:forced-colors:focus-visible:outline-[Highlight]"
|
|
87
|
-
].join(" "),
|
|
97
|
+
].filter(Boolean).join(" "),
|
|
88
98
|
children: t
|
|
89
99
|
}
|
|
90
100
|
),
|
|
91
|
-
(
|
|
101
|
+
(o === "vertical" || o === "both") && // forceMount keeps the element in the DOM so CSS opacity transition
|
|
92
102
|
// can animate the show/hide instead of mount/unmount snapping.
|
|
93
103
|
/* @__PURE__ */ s(
|
|
94
|
-
|
|
104
|
+
r.Scrollbar,
|
|
95
105
|
{
|
|
96
106
|
forceMount: !0,
|
|
97
107
|
orientation: "vertical",
|
|
98
108
|
className: u({ size: e }),
|
|
99
|
-
children: /* @__PURE__ */ s(
|
|
109
|
+
children: /* @__PURE__ */ s(r.Thumb, { className: f() })
|
|
100
110
|
}
|
|
101
111
|
),
|
|
102
|
-
(
|
|
103
|
-
|
|
112
|
+
(o === "horizontal" || o === "both") && /* @__PURE__ */ s(
|
|
113
|
+
r.Scrollbar,
|
|
104
114
|
{
|
|
105
115
|
forceMount: !0,
|
|
106
116
|
orientation: "horizontal",
|
|
107
117
|
className: u({ size: e }),
|
|
108
|
-
children: /* @__PURE__ */ s(
|
|
118
|
+
children: /* @__PURE__ */ s(r.Thumb, { className: f() })
|
|
109
119
|
}
|
|
110
120
|
),
|
|
111
|
-
/* @__PURE__ */ s(
|
|
121
|
+
/* @__PURE__ */ s(r.Corner, {})
|
|
112
122
|
]
|
|
113
123
|
}
|
|
114
124
|
);
|
|
@@ -116,24 +126,24 @@ const u = b(
|
|
|
116
126
|
);
|
|
117
127
|
m.displayName = "RadixScrollArea";
|
|
118
128
|
const x = v(
|
|
119
|
-
(
|
|
129
|
+
(o, e) => {
|
|
120
130
|
const {
|
|
121
|
-
orientation:
|
|
122
|
-
type:
|
|
131
|
+
orientation: l = "vertical",
|
|
132
|
+
type: i = "auto",
|
|
123
133
|
className: t,
|
|
124
134
|
children: n,
|
|
125
135
|
scrollHideDelay: d,
|
|
126
136
|
size: c,
|
|
127
137
|
...a
|
|
128
|
-
} =
|
|
129
|
-
return
|
|
138
|
+
} = o;
|
|
139
|
+
return i === "native" ? /* @__PURE__ */ s(
|
|
130
140
|
"div",
|
|
131
141
|
{
|
|
132
142
|
ref: e,
|
|
133
143
|
"data-component": "scroll-area",
|
|
134
144
|
tabIndex: 0,
|
|
135
145
|
className: [
|
|
136
|
-
S[
|
|
146
|
+
S[l],
|
|
137
147
|
"ds:min-w-0 ds:min-h-0",
|
|
138
148
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
139
149
|
"ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
@@ -143,17 +153,17 @@ const x = v(
|
|
|
143
153
|
...a,
|
|
144
154
|
children: n
|
|
145
155
|
}
|
|
146
|
-
) : /* @__PURE__ */ s(m, { ref: e, ...
|
|
156
|
+
) : /* @__PURE__ */ s(m, { ref: e, ...o });
|
|
147
157
|
}
|
|
148
158
|
);
|
|
149
159
|
x.displayName = "ScrollArea";
|
|
150
|
-
const R =
|
|
160
|
+
const R = r.Root, T = r.Viewport, V = r.Scrollbar, B = r.Thumb, H = r.Corner;
|
|
151
161
|
export {
|
|
152
162
|
x as S,
|
|
153
|
-
|
|
163
|
+
H as a,
|
|
154
164
|
R as b,
|
|
155
165
|
V as c,
|
|
156
|
-
|
|
166
|
+
B as d,
|
|
157
167
|
T as e
|
|
158
168
|
};
|
|
159
|
-
//# sourceMappingURL=scroll-area-
|
|
169
|
+
//# sourceMappingURL=scroll-area-eccd_Uf-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-area-eccd_Uf-.js","sources":["../../src/components/scroll-area/scroll-area.tsx"],"sourcesContent":["import { forwardRef, useRef, type ComponentPropsWithoutRef } from 'react';\nimport * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useDirection } from '../_shared/use-direction';\n\nconst scrollbarVariants = cva(\n [\n 'ds:flex ds:touch-none ds:select-none',\n // Fade in/out based on Radix data-state (requires forceMount on Scrollbar).\n // Default opacity is 1 because ScrollAreaScrollbarVisible (type='always')\n // never sets data-state at all — only hover/scroll/auto set data-state=\"hidden\".\n 'ds:transition-opacity ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n 'ds:data-[state=hidden]:opacity-0',\n // Orientation-specific sizing + padding so thumb floats away from the frame edge\n 'ds:data-[orientation=vertical]:w-[var(--scrollbar-size)] ds:data-[orientation=vertical]:p-[var(--scrollbar-padding)]',\n 'ds:data-[orientation=horizontal]:h-[var(--scrollbar-size)] ds:data-[orientation=horizontal]:flex-col ds:data-[orientation=horizontal]:p-[var(--scrollbar-padding)]',\n 'ds:bg-[var(--scrollbar-track)]',\n // forced-colors: 1px border keeps the track visible when background flattens\n 'ds:forced-colors:border ds:forced-colors:border-[ButtonText]',\n ].join(' '),\n {\n variants: {\n size: {\n sm: 'ds:[--scrollbar-size:var(--scrollbar-size-sm)]',\n md: 'ds:[--scrollbar-size:var(--scrollbar-size-md)]',\n lg: 'ds:[--scrollbar-size:var(--scrollbar-size-lg)]',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n },\n);\n\nconst thumbVariants = cva(\n [\n 'ds:relative ds:flex-1',\n 'ds:rounded-[var(--radius-full)]',\n 'ds:bg-[var(--scrollbar-thumb)]',\n 'ds:hover:bg-[var(--scrollbar-thumb-hover)]',\n 'ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none',\n // forced-color-adjust: auto so forced-colors paint ButtonFace/ButtonText\n 'ds:[forced-color-adjust:auto]',\n // hit area extension via ::before for touch pointers (must be absolute)\n 'ds:before:absolute ds:before:content-[\"\"] ds:before:inset-inline-[calc((var(--min-target-size)-100%)/-2)]',\n 'ds:before:inset-block-[calc((var(--min-target-size)-100%)/-2)]',\n ].join(' '),\n);\n\nexport interface ScrollAreaProps\n extends\n Omit<ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>, 'type'>,\n VariantProps<typeof scrollbarVariants> {\n orientation?: 'vertical' | 'horizontal' | 'both';\n size?: 'sm' | 'md' | 'lg';\n /**\n * `auto` — scrollbar fades in on pointer-enter, fades out after `--scrollbar-fade-delay` (default).\n * `always` — scrollbar always visible; use for data tables.\n * `scroll` — scrollbar visible only while scrolling.\n * `hover` — alias for `auto` (Radix hover mode).\n * `native` — skips the custom scrollbar entirely; the OS renders its own.\n * Use for virtualised lists (AG Grid, @tanstack/react-virtual).\n */\n type?: 'auto' | 'always' | 'scroll' | 'hover' | 'native';\n className?: string;\n children: React.ReactNode;\n}\n\nconst radixType = (\n type: ScrollAreaProps['type'],\n): ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>['type'] => {\n if (type === 'auto' || type === undefined) return 'hover';\n return type as Exclude<\n ScrollAreaProps['type'],\n 'auto' | 'native' | undefined\n >;\n};\n\nconst nativeOverflow: Record<\n NonNullable<ScrollAreaProps['orientation']>,\n string\n> = {\n vertical: 'ds:overflow-y-auto',\n horizontal: 'ds:overflow-x-auto',\n both: 'ds:overflow-auto',\n};\n\nconst RadixScrollArea = forwardRef<HTMLDivElement, ScrollAreaProps>(\n (\n {\n orientation = 'vertical',\n size = 'md',\n type = 'auto',\n className,\n children,\n scrollHideDelay,\n ...props\n },\n ref,\n ) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const dir = useDirection(rootRef);\n return (\n <ScrollAreaPrimitive.Root\n ref={rootRef}\n type={radixType(type)}\n dir={dir}\n scrollHideDelay={scrollHideDelay}\n data-component=\"scroll-area\"\n className={[\n 'ds:relative ds:overflow-hidden',\n 'ds:min-w-0 ds:min-h-0',\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n {...props}\n >\n <ScrollAreaPrimitive.Viewport\n ref={ref}\n // axe's `scrollable-region-focusable` rule requires any element\n // with overflow to be reachable via keyboard. Radix's Viewport\n // is the scroll container; mark it focusable (tabIndex=0) so\n // arrow / Home / End keys can drive it.\n tabIndex={0}\n className={[\n 'ds:h-full ds:w-full ds:rounded-[inherit]',\n // Radix wraps the viewport content in an inline\n // `display:table; min-width:100%` div that grows to the content's\n // MAX-content width. In a vertical-only scroll area the Root's\n // overflow-x is hidden, so anything wider than the viewport is\n // silently CLIPPED — not scrollable (seen in the AiToolsRail inbox\n // panel once accessible-mode type pushed content past the panel\n // width). Forcing that wrapper to `block` makes content wrap to the\n // viewport width instead. Horizontal / both keep the table wrapper\n // so they can still scroll on the x-axis.\n orientation === 'vertical' ? 'ds:[&>div]:!block' : '',\n // keyboard focus ring on the scroll container\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:outline-[Highlight]',\n ]\n .filter(Boolean)\n .join(' ')}\n >\n {children}\n </ScrollAreaPrimitive.Viewport>\n\n {(orientation === 'vertical' || orientation === 'both') && (\n // forceMount keeps the element in the DOM so CSS opacity transition\n // can animate the show/hide instead of mount/unmount snapping.\n <ScrollAreaPrimitive.Scrollbar\n forceMount\n orientation=\"vertical\"\n className={scrollbarVariants({ size })}\n >\n <ScrollAreaPrimitive.Thumb className={thumbVariants()} />\n </ScrollAreaPrimitive.Scrollbar>\n )}\n\n {(orientation === 'horizontal' || orientation === 'both') && (\n <ScrollAreaPrimitive.Scrollbar\n forceMount\n orientation=\"horizontal\"\n className={scrollbarVariants({ size })}\n >\n <ScrollAreaPrimitive.Thumb className={thumbVariants()} />\n </ScrollAreaPrimitive.Scrollbar>\n )}\n\n <ScrollAreaPrimitive.Corner />\n </ScrollAreaPrimitive.Root>\n );\n },\n);\n\nRadixScrollArea.displayName = 'RadixScrollArea';\n\nexport const ScrollArea = forwardRef<HTMLDivElement, ScrollAreaProps>(\n (props, ref) => {\n const {\n orientation = 'vertical',\n type = 'auto',\n className,\n children,\n scrollHideDelay: _scrollHideDelay,\n size: _size,\n ...rest\n } = props;\n if (type === 'native') {\n return (\n <div\n ref={ref}\n data-component=\"scroll-area\"\n // Native scroll containers are not focusable by default — axe's\n // scrollable-region-focusable rule fires unless the user marks them\n // explicitly tabbable so keyboard users can scroll with arrows.\n // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex\n tabIndex={0}\n className={[\n nativeOverflow[orientation],\n 'ds:min-w-0 ds:min-h-0',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid',\n 'ds:focus-visible:outline-[color:var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:outline-[Highlight]',\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n {...rest}\n >\n {children}\n </div>\n );\n }\n return <RadixScrollArea ref={ref} {...props} />;\n },\n);\n\nScrollArea.displayName = 'ScrollArea';\n\n// Re-export Radix parts for advanced composition\nexport const ScrollAreaRoot = ScrollAreaPrimitive.Root;\nexport const ScrollAreaViewport = ScrollAreaPrimitive.Viewport;\nexport const ScrollAreaScrollbar = ScrollAreaPrimitive.Scrollbar;\nexport const ScrollAreaThumb = ScrollAreaPrimitive.Thumb;\nexport const ScrollAreaCorner = ScrollAreaPrimitive.Corner;\n"],"names":["scrollbarVariants","cva","thumbVariants","radixType","type","nativeOverflow","RadixScrollArea","forwardRef","orientation","size","className","children","scrollHideDelay","props","ref","rootRef","useRef","dir","useDirection","jsxs","ScrollAreaPrimitive","jsx","ScrollArea","_scrollHideDelay","_size","rest","ScrollAreaRoot","ScrollAreaViewport","ScrollAreaScrollbar","ScrollAreaThumb","ScrollAreaCorner"],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as c, Fragment as $ } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as g, useState as
|
|
2
|
+
import { forwardRef as g, useState as P, useEffect as W, useCallback as J, useRef as U, useMemo as O, useId as is, useContext as Q, createContext as ss } from "react";
|
|
3
3
|
import * as R from "@radix-ui/react-dialog";
|
|
4
4
|
import * as K from "@radix-ui/react-collapsible";
|
|
5
|
-
import * as
|
|
5
|
+
import * as E from "@radix-ui/react-accordion";
|
|
6
6
|
import * as b from "@radix-ui/react-tooltip";
|
|
7
7
|
import { a as ns } from "./accordion-9lJSMMsZ.js";
|
|
8
8
|
import { Slot as os } from "@radix-ui/react-slot";
|
|
@@ -119,6 +119,9 @@ const X = T(
|
|
|
119
119
|
// solid background (e.g. AppFrame's `<main>` surface), otherwise
|
|
120
120
|
// the shadow that projects towards the inline-end gets covered.
|
|
121
121
|
"ds:relative ds:z-[1] ds:shadow-[var(--shadow-md)]",
|
|
122
|
+
// Accessible (AAA) theme prefers a solid border over a soft shadow as the
|
|
123
|
+
// separation cue — swap the resting elevation for a real 1px `border-e`.
|
|
124
|
+
"ds:[.theme-accessible_&]:border-e ds:[.theme-accessible_&]:shadow-none",
|
|
122
125
|
"ds:h-full",
|
|
123
126
|
"ds:transition-[inline-size] ds:duration-[var(--animation-duration)]",
|
|
124
127
|
"ds:motion-reduce:transition-none",
|
|
@@ -170,7 +173,7 @@ const X = T(
|
|
|
170
173
|
id: p,
|
|
171
174
|
...h
|
|
172
175
|
}, N) => {
|
|
173
|
-
const { t: x } = B(), d = e !== void 0, [w, z] =
|
|
176
|
+
const { t: x } = B(), d = e !== void 0, [w, z] = P(
|
|
174
177
|
() => d ? e : ws(a)
|
|
175
178
|
), v = d ? e : w;
|
|
176
179
|
W(() => {
|
|
@@ -196,7 +199,7 @@ const X = T(
|
|
|
196
199
|
[S]
|
|
197
200
|
);
|
|
198
201
|
cs(ys, F, p);
|
|
199
|
-
const D = U(null), A = O(() => ls(N, D), [N]), { separatorProps: L, isResizing:
|
|
202
|
+
const D = U(null), A = O(() => ls(N, D), [N]), { separatorProps: L, isResizing: _ } = ts({
|
|
200
203
|
edge: "inline-end",
|
|
201
204
|
targetRef: D,
|
|
202
205
|
cssProperty: "--sidebar-modern-expanded-size",
|
|
@@ -289,7 +292,7 @@ const X = T(
|
|
|
289
292
|
"data-component-id": p,
|
|
290
293
|
"data-mode": v,
|
|
291
294
|
"data-density": i,
|
|
292
|
-
"data-resizing":
|
|
295
|
+
"data-resizing": _ ? "" : void 0,
|
|
293
296
|
className: [
|
|
294
297
|
X({ mode: v, density: i }),
|
|
295
298
|
i === "compact" ? "ds:density-compact" : "",
|
|
@@ -303,7 +306,7 @@ const X = T(
|
|
|
303
306
|
{
|
|
304
307
|
...L,
|
|
305
308
|
"aria-label": x("navigation.sidebar.resize"),
|
|
306
|
-
"data-resizing":
|
|
309
|
+
"data-resizing": _ ? "" : void 0,
|
|
307
310
|
className: ks
|
|
308
311
|
}
|
|
309
312
|
) : null
|
|
@@ -435,7 +438,7 @@ const Bs = [
|
|
|
435
438
|
] });
|
|
436
439
|
const d = "section";
|
|
437
440
|
return /* @__PURE__ */ s(
|
|
438
|
-
|
|
441
|
+
E.Root,
|
|
439
442
|
{
|
|
440
443
|
type: "single",
|
|
441
444
|
collapsible: !0,
|
|
@@ -443,8 +446,8 @@ const Bs = [
|
|
|
443
446
|
value: n === void 0 ? void 0 : n ? d : "",
|
|
444
447
|
onValueChange: t ? (w) => t(w === d) : void 0,
|
|
445
448
|
asChild: !0,
|
|
446
|
-
children: /* @__PURE__ */ s("div", { ref: f, className: x, ...u, children: /* @__PURE__ */ c(
|
|
447
|
-
/* @__PURE__ */ s(
|
|
449
|
+
children: /* @__PURE__ */ s("div", { ref: f, className: x, ...u, children: /* @__PURE__ */ c(E.Item, { value: d, children: [
|
|
450
|
+
/* @__PURE__ */ s(E.Header, { className: "ds:flex", children: /* @__PURE__ */ c(E.Trigger, { className: Bs, children: [
|
|
448
451
|
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: Y, children: a }) : null,
|
|
449
452
|
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
450
453
|
/* @__PURE__ */ s(
|
|
@@ -547,7 +550,7 @@ const Ds = [
|
|
|
547
550
|
}
|
|
548
551
|
);
|
|
549
552
|
As.displayName = "SidebarGroup";
|
|
550
|
-
const
|
|
553
|
+
const _s = T(
|
|
551
554
|
[
|
|
552
555
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
553
556
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -626,7 +629,7 @@ const Es = T(
|
|
|
626
629
|
ref: f,
|
|
627
630
|
"aria-current": a ? "page" : void 0,
|
|
628
631
|
"aria-label": o,
|
|
629
|
-
className:
|
|
632
|
+
className: _s({
|
|
630
633
|
mode: p,
|
|
631
634
|
density: h,
|
|
632
635
|
isActive: a,
|
|
@@ -679,7 +682,7 @@ const Es = T(
|
|
|
679
682
|
}
|
|
680
683
|
);
|
|
681
684
|
rs.displayName = "SidebarItem";
|
|
682
|
-
const
|
|
685
|
+
const Es = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
683
686
|
"span",
|
|
684
687
|
{
|
|
685
688
|
ref: i,
|
|
@@ -700,8 +703,8 @@ const Ps = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
|
700
703
|
children: a
|
|
701
704
|
}
|
|
702
705
|
));
|
|
703
|
-
|
|
704
|
-
const
|
|
706
|
+
Es.displayName = "SidebarItemIcon";
|
|
707
|
+
const Ps = g(({ className: e, children: a, ...r }, i) => {
|
|
705
708
|
const { mode: n } = y();
|
|
706
709
|
return /* @__PURE__ */ s(
|
|
707
710
|
"span",
|
|
@@ -719,7 +722,7 @@ const _s = g(({ className: e, children: a, ...r }, i) => {
|
|
|
719
722
|
}
|
|
720
723
|
);
|
|
721
724
|
});
|
|
722
|
-
|
|
725
|
+
Ps.displayName = "SidebarItemLabel";
|
|
723
726
|
const Hs = g(({ className: e, children: a, ...r }, i) => {
|
|
724
727
|
const { mode: n } = y(), t = n === "icon";
|
|
725
728
|
return /* @__PURE__ */ s(
|
|
@@ -854,6 +857,17 @@ Vs.displayName = "SidebarPrimaryAction";
|
|
|
854
857
|
const Ks = [
|
|
855
858
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
856
859
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
860
|
+
// Lift above the Sidebar's opt-in resize handle (z-[2]). When `resizable`,
|
|
861
|
+
// that handle's ::before hit-area reaches ~--min-target-size/2 inward from
|
|
862
|
+
// the inline-end edge — exactly where these end-aligned pin stars sit — so
|
|
863
|
+
// without a higher stacking order the separator swallows the click and
|
|
864
|
+
// pinning silently fails. Pointer-events stay off until the row is hovered
|
|
865
|
+
// or the star is focused, so the handle is still fully grabbable at rest
|
|
866
|
+
// (including touch, where the star never reveals). On a NON-resizable
|
|
867
|
+
// sidebar there's no handle to clear, but the same gating is inert — the
|
|
868
|
+
// star reveals and accepts clicks on hover/focus exactly as before.
|
|
869
|
+
"ds:relative ds:z-[3]",
|
|
870
|
+
"ds:pointer-events-none ds:group-hover/item:pointer-events-auto ds:focus-visible:pointer-events-auto",
|
|
857
871
|
// Pin stars carry the accent tint to match every other icon in the rail.
|
|
858
872
|
// Stays quiet via opacity — reveals only on row hover / focus.
|
|
859
873
|
"ds:text-[var(--accent)]",
|
|
@@ -896,7 +910,7 @@ const Ks = [
|
|
|
896
910
|
Z.displayName = "SidebarPinButton";
|
|
897
911
|
const ds = ss(null), Us = () => Q(ds), Os = g(
|
|
898
912
|
({ heading: e, emptyMessage: a, onReorder: r, className: i, children: n, ...t }, l) => {
|
|
899
|
-
const { t: o } = B(), u = e ?? o("navigation.sidebar.favorites", "Favourites"), f = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], p = f.length, h = p > 0, [N, x] =
|
|
913
|
+
const { t: o } = B(), u = e ?? o("navigation.sidebar.favorites", "Favourites"), f = Array.isArray(n) ? n.filter(Boolean) : n ? [n] : [], p = f.length, h = p > 0, [N, x] = P(null), [d, w] = P(""), z = U(!1), v = J((j) => {
|
|
900
914
|
z.current = !z.current, w(z.current ? j : `${j}`);
|
|
901
915
|
}, []), S = O(
|
|
902
916
|
() => ({ onReorder: r, count: p, dragSource: N, setDragSource: x, announce: v }),
|
|
@@ -965,7 +979,7 @@ const Gs = T(
|
|
|
965
979
|
children: f,
|
|
966
980
|
...p
|
|
967
981
|
}, h) => {
|
|
968
|
-
const { t: N } = B(), { mode: x } = y(), d = Us(), [w, z] =
|
|
982
|
+
const { t: N } = B(), { mode: x } = y(), d = Us(), [w, z] = P(!1), v = !!(d != null && d.onReorder) && x !== "icon", S = i ?? o ?? "", j = is(), k = (m, I) => {
|
|
969
983
|
if (!(d != null && d.onReorder)) return;
|
|
970
984
|
const V = Math.max(0, Math.min(d.count - 1, I));
|
|
971
985
|
V !== m && (d.onReorder(m, V), d.announce(
|
|
@@ -983,7 +997,7 @@ const Gs = T(
|
|
|
983
997
|
d == null || d.setDragSource(null), z(!1);
|
|
984
998
|
}, L = (m) => {
|
|
985
999
|
!v || (d == null ? void 0 : d.dragSource) === null || (m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "move"), z(!0));
|
|
986
|
-
},
|
|
1000
|
+
}, _ = () => z(!1), M = (m) => {
|
|
987
1001
|
if (!v) return;
|
|
988
1002
|
m.preventDefault();
|
|
989
1003
|
const I = d == null ? void 0 : d.dragSource;
|
|
@@ -1000,7 +1014,7 @@ const Gs = T(
|
|
|
1000
1014
|
onDragStart: v ? D : void 0,
|
|
1001
1015
|
onDragEnd: v ? A : void 0,
|
|
1002
1016
|
onDragOver: L,
|
|
1003
|
-
onDragLeave:
|
|
1017
|
+
onDragLeave: _,
|
|
1004
1018
|
onDrop: M,
|
|
1005
1019
|
children: [
|
|
1006
1020
|
/* @__PURE__ */ s(
|
|
@@ -1261,8 +1275,8 @@ export {
|
|
|
1261
1275
|
Ts as g,
|
|
1262
1276
|
rs as h,
|
|
1263
1277
|
Hs as i,
|
|
1264
|
-
|
|
1265
|
-
|
|
1278
|
+
Es as j,
|
|
1279
|
+
Ps as k,
|
|
1266
1280
|
Z as l,
|
|
1267
1281
|
Vs as m,
|
|
1268
1282
|
Ws as n,
|
|
@@ -1272,4 +1286,4 @@ export {
|
|
|
1272
1286
|
ys as s,
|
|
1273
1287
|
y as u
|
|
1274
1288
|
};
|
|
1275
|
-
//# sourceMappingURL=sidebar-
|
|
1289
|
+
//# sourceMappingURL=sidebar-CGjIk_FQ.js.map
|