@alfadocs/ui-kit-debug 0.47.0 → 0.49.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-CSjMrBvu.js → address-autocomplete-CT-9AOli.js} +2 -2
- package/dist/_chunks/{address-autocomplete-CSjMrBvu.js.map → address-autocomplete-CT-9AOli.js.map} +1 -1
- package/dist/_chunks/{agenda-card-CFyWSX7Z.js → agenda-card-BaSfVfrL.js} +25 -29
- package/dist/_chunks/agenda-card-BaSfVfrL.js.map +1 -0
- package/dist/_chunks/{agenda-tray-Dyj9ChHC.js → agenda-tray-DQayYmQ0.js} +50 -67
- package/dist/_chunks/agenda-tray-DQayYmQ0.js.map +1 -0
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js +169 -0
- package/dist/_chunks/ai-consent-banner-F2md5JD3.js.map +1 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js +280 -0
- package/dist/_chunks/ai-tools-rail-CYLWrRmm.js.map +1 -0
- package/dist/_chunks/{alert-ywPR59NE.js → alert-CUTxnym2.js} +56 -35
- package/dist/_chunks/alert-CUTxnym2.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-CVIPrdc9.js → alia-sidebar-DlvyXgVC.js} +3 -2
- package/dist/_chunks/alia-sidebar-DlvyXgVC.js.map +1 -0
- package/dist/_chunks/anamnesis-card-CmkBVAln.js +156 -0
- package/dist/_chunks/anamnesis-card-CmkBVAln.js.map +1 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.js.map +1 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js +419 -0
- package/dist/_chunks/appointment-tray-BwDHhWWC.js.map +1 -0
- package/dist/_chunks/{ar-DEz65ZJW.js → ar-C68WKG5a.js} +2 -2
- package/dist/_chunks/{ar-DEz65ZJW.js.map → ar-C68WKG5a.js.map} +1 -1
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js → audio-recorder-DVJXV7_k.js} +2 -2
- package/dist/_chunks/{audio-recorder-DC-v9YFW.js.map → audio-recorder-DVJXV7_k.js.map} +1 -1
- package/dist/_chunks/bishop-score-2MzAz8NE.js +185 -0
- package/dist/_chunks/bishop-score-2MzAz8NE.js.map +1 -0
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js → bmi-calculator-DdylQzT6.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CQqXTVNL.js.map → bmi-calculator-DdylQzT6.js.map} +1 -1
- package/dist/_chunks/{booking-DlDVuWMd.js → booking-DljH0JkS.js} +294 -306
- package/dist/_chunks/booking-DljH0JkS.js.map +1 -0
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js → calculator-dialog-CFk4I91b.js} +2 -2
- package/dist/_chunks/{calculator-dialog-D-nfvteH.js.map → calculator-dialog-CFk4I91b.js.map} +1 -1
- package/dist/_chunks/calendar-days-C4BmpCZg.js +23 -0
- package/dist/_chunks/calendar-days-C4BmpCZg.js.map +1 -0
- package/dist/_chunks/{calendar-YHFknAGv.js → calendar-oYWOCrnf.js} +195 -210
- package/dist/_chunks/calendar-oYWOCrnf.js.map +1 -0
- package/dist/_chunks/care-plan-card-QmNpGggC.js +252 -0
- package/dist/_chunks/care-plan-card-QmNpGggC.js.map +1 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js +318 -0
- package/dist/_chunks/care-plan-entry-card-Cnra7vUc.js.map +1 -0
- package/dist/_chunks/{chat-message-B5JpFj0F.js → chat-message-Dm8U2RY1.js} +36 -35
- package/dist/_chunks/chat-message-Dm8U2RY1.js.map +1 -0
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js +16 -0
- package/dist/_chunks/circle-arrow-up-CC_85SuH.js.map +1 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js +333 -0
- package/dist/_chunks/clinical-note-card-BYo437dU.js.map +1 -0
- package/dist/_chunks/{contact-profile-card-DHyuAPXM.js → contact-profile-card-DvvVfAA2.js} +102 -115
- package/dist/_chunks/contact-profile-card-DvvVfAA2.js.map +1 -0
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js +252 -0
- package/dist/_chunks/cycle-calculator-oOkj5wlB.js.map +1 -0
- package/dist/_chunks/{date-picker-Bq7xhMA-.js → date-picker-BfHblqwA.js} +2 -2
- package/dist/_chunks/{date-picker-Bq7xhMA-.js.map → date-picker-BfHblqwA.js.map} +1 -1
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js → date-picker-variants-CXEAx3O_.js} +22 -22
- package/dist/_chunks/{date-picker-variants-DLi1Va_e.js.map → date-picker-variants-CXEAx3O_.js.map} +1 -1
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js → date-range-picker-hcAMs1wO.js} +3 -3
- package/dist/_chunks/{date-range-picker-DcXuI9y7.js.map → date-range-picker-hcAMs1wO.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-RimumeLR.js → date-time-picker-H-3Pwqlb.js} +9 -9
- package/dist/_chunks/{date-time-picker-RimumeLR.js.map → date-time-picker-H-3Pwqlb.js.map} +1 -1
- package/dist/_chunks/{de-bTBGdjPS.js → de-DK4A9_a8.js} +2 -2
- package/dist/_chunks/{de-bTBGdjPS.js.map → de-DK4A9_a8.js.map} +1 -1
- package/dist/_chunks/{dialog-BTpZV6It.js → dialog-DMGnSelc.js} +55 -55
- package/dist/_chunks/dialog-DMGnSelc.js.map +1 -0
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js → document-scanner-Cxqvq7GR.js} +2 -2
- package/dist/_chunks/{document-scanner-BqLsGs4Y.js.map → document-scanner-Cxqvq7GR.js.map} +1 -1
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js +256 -0
- package/dist/_chunks/due-date-calculator-tDqZXPWO.js.map +1 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js → editable-currency-cell-renderer-Bh48OHRv.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-CLil9B29.js.map → editable-currency-cell-renderer-Bh48OHRv.js.map} +1 -1
- package/dist/_chunks/{el-BWG5RXxa.js → el-B29HXhG5.js} +2 -2
- package/dist/_chunks/{el-BWG5RXxa.js.map → el-B29HXhG5.js.map} +1 -1
- package/dist/_chunks/entity-card-COhmqHly.js +69 -0
- package/dist/_chunks/entity-card-COhmqHly.js.map +1 -0
- package/dist/_chunks/{es-DfO_G435.js → es-BOwPVwWn.js} +2 -2
- package/dist/_chunks/{es-DfO_G435.js.map → es-BOwPVwWn.js.map} +1 -1
- package/dist/_chunks/fetal-weight-Da-B4P4k.js +122 -0
- package/dist/_chunks/fetal-weight-Da-B4P4k.js.map +1 -0
- package/dist/_chunks/{fr-BTn24bs8.js → fr-DoDBtn0T.js} +2 -2
- package/dist/_chunks/{fr-BTn24bs8.js.map → fr-DoDBtn0T.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js → freemium-paywall-BWaLWje-.js} +2 -2
- package/dist/_chunks/{freemium-paywall-DzpD63WY.js.map → freemium-paywall-BWaLWje-.js.map} +1 -1
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js +311 -0
- package/dist/_chunks/gestational-age-calculator-DbDfTJU2.js.map +1 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js +170 -0
- package/dist/_chunks/hcg-doubling-DAnpbale.js.map +1 -0
- package/dist/_chunks/{hi-Dj3oYd84.js → hi-DGByrKby.js} +2 -2
- package/dist/_chunks/{hi-Dj3oYd84.js.map → hi-DGByrKby.js.map} +1 -1
- package/dist/_chunks/{insert-result-C5ABnzDl.js → insert-result-DNdi_JYW.js} +140 -168
- package/dist/_chunks/insert-result-DNdi_JYW.js.map +1 -0
- package/dist/_chunks/is-safe-url-DkETxeHz.js +7 -0
- package/dist/_chunks/is-safe-url-DkETxeHz.js.map +1 -0
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js → isSameWeek-B1odL2vR.js} +2 -2
- package/dist/_chunks/{isSameWeek-HfxKk6Lz.js.map → isSameWeek-B1odL2vR.js.map} +1 -1
- package/dist/_chunks/{it-Y85ofIQQ.js → it-B16rEecm.js} +3 -3
- package/dist/_chunks/{it-Y85ofIQQ.js.map → it-B16rEecm.js.map} +1 -1
- package/dist/_chunks/{ja-CQ7J6YoA.js → ja-B0viOgft.js} +2 -2
- package/dist/_chunks/{ja-CQ7J6YoA.js.map → ja-B0viOgft.js.map} +1 -1
- package/dist/_chunks/languages-DsVf_WzT.js +19 -0
- package/dist/_chunks/languages-DsVf_WzT.js.map +1 -0
- package/dist/_chunks/layers-pzGcbLPj.js +34 -0
- package/dist/_chunks/layers-pzGcbLPj.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js → marketplace-app-shell-UKSLx9K_.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-Gfsf78ge.js.map → marketplace-app-shell-UKSLx9K_.js.map} +1 -1
- package/dist/_chunks/{message-card-DSPw5ghw.js → message-card-Dvl1TgaN.js} +15 -19
- package/dist/_chunks/message-card-Dvl1TgaN.js.map +1 -0
- package/dist/_chunks/{message-tray-hSQff9u4.js → message-tray-Dl6GQaaV.js} +2 -2
- package/dist/_chunks/{message-tray-hSQff9u4.js.map → message-tray-Dl6GQaaV.js.map} +1 -1
- package/dist/_chunks/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js.map → nl-cBxEX2QU.js.map} +1 -1
- package/dist/_chunks/operator-hero-CM8949Hd.js +198 -0
- package/dist/_chunks/operator-hero-CM8949Hd.js.map +1 -0
- package/dist/_chunks/{patient-search-CocVcGJ3.js → patient-search-BJOmTmDA.js} +2 -2
- package/dist/_chunks/{patient-search-CocVcGJ3.js.map → patient-search-BJOmTmDA.js.map} +1 -1
- package/dist/_chunks/{patient-shell-CnT4L8gn.js → patient-shell-DUmhXnFq.js} +2 -2
- package/dist/_chunks/{patient-shell-CnT4L8gn.js.map → patient-shell-DUmhXnFq.js.map} +1 -1
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js +443 -0
- package/dist/_chunks/patient-summary-card-BnTqxcTr.js.map +1 -0
- package/dist/_chunks/{payment-form-BNTx4876.js → payment-form-xmeCkxas.js} +2 -2
- package/dist/_chunks/{payment-form-BNTx4876.js.map → payment-form-xmeCkxas.js.map} +1 -1
- package/dist/_chunks/payment-request-card-B_lyobd0.js +478 -0
- package/dist/_chunks/payment-request-card-B_lyobd0.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-CWEXTlwq.js → pdf-viewer-q1D3Uion.js} +4 -4
- package/dist/_chunks/pdf-viewer-q1D3Uion.js.map +1 -0
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js +455 -0
- package/dist/_chunks/periodontal-chart-card-BYs9hax1.js.map +1 -0
- package/dist/_chunks/phone-Bi5yUm4I.js +20 -0
- package/dist/_chunks/phone-Bi5yUm4I.js.map +1 -0
- package/dist/_chunks/{pl-B3Smqpkr.js → pl-DtS08ioY.js} +3 -3
- package/dist/_chunks/{pl-B3Smqpkr.js.map → pl-DtS08ioY.js.map} +1 -1
- package/dist/_chunks/{practice-results-DDi-kvaD.js → practice-results-Cq1y8JFD.js} +4 -3
- package/dist/_chunks/{practice-results-DDi-kvaD.js.map → practice-results-Cq1y8JFD.js.map} +1 -1
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js +322 -0
- package/dist/_chunks/pregnancy-weight-gain-CCGrvarh.js.map +1 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js +620 -0
- package/dist/_chunks/product-hub-panel-CkfZBA3t.js.map +1 -0
- package/dist/_chunks/{pt-D3J-1c_7.js → pt-yFXs1VvH.js} +2 -2
- package/dist/_chunks/{pt-D3J-1c_7.js.map → pt-yFXs1VvH.js.map} +1 -1
- package/dist/_chunks/{ro-BKAbbEA3.js → ro-DsCzSrzR.js} +2 -2
- package/dist/_chunks/{ro-BKAbbEA3.js.map → ro-DsCzSrzR.js.map} +1 -1
- package/dist/_chunks/{ru-BeG8f0Ep.js → ru-DgDxL0pc.js} +3 -3
- package/dist/_chunks/{ru-BeG8f0Ep.js.map → ru-DgDxL0pc.js.map} +1 -1
- package/dist/_chunks/scan-line-lGioFwLC.js +18 -0
- package/dist/_chunks/scan-line-lGioFwLC.js.map +1 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js +21 -0
- package/dist/_chunks/shield-check-BjCGH_Sr.js.map +1 -0
- package/dist/_chunks/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/sidebar-h78cTNLh.js.map +1 -0
- package/dist/_chunks/{sign-document-BCyLpFHJ.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sign-document-BCyLpFHJ.js.map → sign-document-CZkAf28g.js.map} +1 -1
- package/dist/_chunks/{sq-_hRPaeUy.js → sq-DHlCYN67.js} +2 -2
- package/dist/_chunks/{sq-_hRPaeUy.js.map → sq-DHlCYN67.js.map} +1 -1
- package/dist/_chunks/subDays-Bs00akhK.js +8 -0
- package/dist/_chunks/{subDays-Dv7q9S7u.js.map → subDays-Bs00akhK.js.map} +1 -1
- package/dist/_chunks/{sv-g009fSpe.js → sv-O0QaQs_s.js} +2 -2
- package/dist/_chunks/{sv-g009fSpe.js.map → sv-O0QaQs_s.js.map} +1 -1
- package/dist/_chunks/{tr-OKUOuhMW.js → tr-BmNDRuio.js} +2 -2
- package/dist/_chunks/{tr-OKUOuhMW.js.map → tr-BmNDRuio.js.map} +1 -1
- package/dist/_chunks/{transaction-chip-B8ujzowA.js → transaction-chip-BZCa6XDn.js} +8 -6
- package/dist/_chunks/{transaction-chip-B8ujzowA.js.map → transaction-chip-BZCa6XDn.js.map} +1 -1
- package/dist/_chunks/{unit-converter-u3CwNDpP.js → unit-converter-jWp3Z85y.js} +2 -2
- package/dist/_chunks/{unit-converter-u3CwNDpP.js.map → unit-converter-jWp3Z85y.js.map} +1 -1
- package/dist/_chunks/user-cog-BS_qc8nA.js +24 -0
- package/dist/_chunks/user-cog-BS_qc8nA.js.map +1 -0
- package/dist/_chunks/video-BAeICxCT.js +21 -0
- package/dist/_chunks/video-BAeICxCT.js.map +1 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js.map +1 -0
- package/dist/_chunks/{workflow-map-Djn1QMJc.js → workflow-map-DzX_LI4y.js} +139 -157
- package/dist/_chunks/workflow-map-DzX_LI4y.js.map +1 -0
- package/dist/_chunks/{zh-CN-De4zwEhx.js → zh-CN-CgVJZEzz.js} +3 -3
- package/dist/_chunks/{zh-CN-De4zwEhx.js.map → zh-CN-CgVJZEzz.js.map} +1 -1
- package/dist/agent-catalog.json +367 -1
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts +18 -0
- package/dist/components/_shared/antenatal-schedule-timeline.d.ts.map +1 -0
- package/dist/components/_shared/antenatal-schedule.d.ts +68 -0
- package/dist/components/_shared/antenatal-schedule.d.ts.map +1 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts +40 -0
- package/dist/components/_shared/entity-card/entity-card.d.ts.map +1 -0
- package/dist/components/_shared/entity-card/index.d.ts +3 -0
- package/dist/components/_shared/entity-card/index.d.ts.map +1 -0
- package/dist/components/_shared/index.d.ts +5 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- package/dist/components/_shared/is-safe-url.d.ts +13 -0
- package/dist/components/_shared/is-safe-url.d.ts.map +1 -0
- package/dist/components/_shared/obstetrics.d.ts +138 -0
- package/dist/components/_shared/obstetrics.d.ts.map +1 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/agenda-card/agenda-card.d.ts +1 -2
- package/dist/components/agenda-card/agenda-card.d.ts.map +1 -1
- package/dist/components/agenda-card/index.d.ts +2 -1
- package/dist/components/agenda-card/index.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +6 -5
- package/dist/components/agenda-card/index.js.map +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts +4 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.agent.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts +45 -0
- package/dist/components/ai-consent-banner/ai-consent-banner.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/index.d.ts +4 -0
- package/dist/components/ai-consent-banner/index.d.ts.map +1 -0
- package/dist/components/ai-consent-banner/index.js +6 -0
- package/dist/components/ai-consent-banner/index.js.map +1 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts +4 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.agent.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts +60 -0
- package/dist/components/ai-tools-rail/ai-tools-rail.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/index.d.ts +4 -0
- package/dist/components/ai-tools-rail/index.d.ts.map +1 -0
- package/dist/components/ai-tools-rail/index.js +6 -0
- package/dist/components/ai-tools-rail/index.js.map +1 -0
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/anamnesis-card.d.ts +68 -0
- package/dist/components/anamnesis-card/anamnesis-card.d.ts.map +1 -0
- package/dist/components/anamnesis-card/index.d.ts +3 -0
- package/dist/components/anamnesis-card/index.d.ts.map +1 -0
- package/dist/components/anamnesis-card/index.js +5 -0
- package/dist/components/anamnesis-card/index.js.map +1 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts +3 -0
- package/dist/components/appointment-card/appointment-card.agent.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-card.d.ts +93 -0
- package/dist/components/appointment-card/appointment-card.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts +4 -0
- package/dist/components/appointment-card/appointment-tray.agent.d.ts.map +1 -0
- package/dist/components/appointment-card/appointment-tray.d.ts +48 -0
- package/dist/components/appointment-card/appointment-tray.d.ts.map +1 -0
- package/dist/components/appointment-card/index.d.ts +8 -0
- package/dist/components/appointment-card/index.d.ts.map +1 -0
- package/dist/components/appointment-card/index.js +10 -0
- package/dist/components/appointment-card/index.js.map +1 -0
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bishop-score/bishop-score.d.ts +27 -0
- package/dist/components/bishop-score/bishop-score.d.ts.map +1 -0
- package/dist/components/bishop-score/bishop.d.ts +30 -0
- package/dist/components/bishop-score/bishop.d.ts.map +1 -0
- package/dist/components/bishop-score/index.d.ts +4 -0
- package/dist/components/bishop-score/index.d.ts.map +1 -0
- package/dist/components/bishop-score/index.js +10 -0
- package/dist/components/bishop-score/index.js.map +1 -0
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts +4 -0
- package/dist/components/care-plan-card/care-plan-card.agent.d.ts.map +1 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts +102 -0
- package/dist/components/care-plan-card/care-plan-card.d.ts.map +1 -0
- package/dist/components/care-plan-card/index.d.ts +4 -0
- package/dist/components/care-plan-card/index.d.ts.map +1 -0
- package/dist/components/care-plan-card/index.js +6 -0
- package/dist/components/care-plan-card/index.js.map +1 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts +4 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.agent.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts +110 -0
- package/dist/components/care-plan-entry-card/care-plan-entry-card.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/index.d.ts +4 -0
- package/dist/components/care-plan-entry-card/index.d.ts.map +1 -0
- package/dist/components/care-plan-entry-card/index.js +6 -0
- package/dist/components/care-plan-entry-card/index.js.map +1 -0
- package/dist/components/chat-message/chat-message.d.ts +7 -0
- package/dist/components/chat-message/chat-message.d.ts.map +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts +4 -0
- package/dist/components/clinical-note-card/clinical-note-card.agent.d.ts.map +1 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts +98 -0
- package/dist/components/clinical-note-card/clinical-note-card.d.ts.map +1 -0
- package/dist/components/clinical-note-card/index.d.ts +4 -0
- package/dist/components/clinical-note-card/index.d.ts.map +1 -0
- package/dist/components/clinical-note-card/index.js +6 -0
- package/dist/components/clinical-note-card/index.js.map +1 -0
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/cycle.d.ts +5 -0
- package/dist/components/cycle-calculator/cycle.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/dialog.d.ts +7 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +13 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/gestation.d.ts +1 -59
- package/dist/components/due-date-calculator/gestation.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +16 -10
- package/dist/components/fetal-weight/efw.d.ts +25 -0
- package/dist/components/fetal-weight/efw.d.ts.map +1 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +27 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -0
- package/dist/components/fetal-weight/index.d.ts +4 -0
- package/dist/components/fetal-weight/index.d.ts.map +1 -0
- package/dist/components/fetal-weight/index.js +6 -0
- package/dist/components/fetal-weight/index.js.map +1 -0
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +25 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +31 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -0
- package/dist/components/hcg-doubling/hcg.d.ts +33 -0
- package/dist/components/hcg-doubling/hcg.d.ts.map +1 -0
- package/dist/components/hcg-doubling/index.d.ts +4 -0
- package/dist/components/hcg-doubling/index.d.ts.map +1 -0
- package/dist/components/hcg-doubling/index.js +7 -0
- package/dist/components/hcg-doubling/index.js.map +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/message-card/index.js +5 -4
- package/dist/components/message-card/index.js.map +1 -1
- package/dist/components/message-card/message-card.d.ts +1 -2
- package/dist/components/message-card/message-card.d.ts.map +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/operator-hero/operator-hero.agent.d.ts.map +1 -1
- package/dist/components/operator-hero/operator-hero.d.ts +9 -0
- package/dist/components/operator-hero/operator-hero.d.ts.map +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.d.ts +4 -0
- package/dist/components/patient-summary-card/index.d.ts.map +1 -0
- package/dist/components/patient-summary-card/index.js +6 -0
- package/dist/components/patient-summary-card/index.js.map +1 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts +4 -0
- package/dist/components/patient-summary-card/patient-summary-card.agent.d.ts.map +1 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts +120 -0
- package/dist/components/patient-summary-card/patient-summary-card.d.ts.map +1 -0
- package/dist/components/payment-card/index.d.ts +7 -0
- package/dist/components/payment-card/index.d.ts.map +1 -0
- package/dist/components/payment-card/index.js +8 -0
- package/dist/components/payment-card/index.js.map +1 -0
- package/dist/components/payment-card/payment-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-card.agent.d.ts.map +1 -0
- package/dist/components/payment-card/payment-card.d.ts +71 -0
- package/dist/components/payment-card/payment-card.d.ts.map +1 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts +4 -0
- package/dist/components/payment-card/payment-request-card.agent.d.ts.map +1 -0
- package/dist/components/payment-card/payment-request-card.d.ts +43 -0
- package/dist/components/payment-card/payment-request-card.d.ts.map +1 -0
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/periodontal-chart-card/index.d.ts +4 -0
- package/dist/components/periodontal-chart-card/index.d.ts.map +1 -0
- package/dist/components/periodontal-chart-card/index.js +7 -0
- package/dist/components/periodontal-chart-card/index.js.map +1 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts +4 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.agent.d.ts.map +1 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts +74 -0
- package/dist/components/periodontal-chart-card/periodontal-chart-card.d.ts.map +1 -0
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +7 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts +33 -8
- package/dist/components/pregnancy-weight-gain/weight-gain.d.ts.map +1 -1
- package/dist/components/product-hub-tray/index.d.ts +8 -0
- package/dist/components/product-hub-tray/index.d.ts.map +1 -0
- package/dist/components/product-hub-tray/index.js +10 -0
- package/dist/components/product-hub-tray/index.js.map +1 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-panel.agent.d.ts.map +1 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts +54 -0
- package/dist/components/product-hub-tray/product-hub-panel.d.ts.map +1 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts +4 -0
- package/dist/components/product-hub-tray/product-hub-tray.agent.d.ts.map +1 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts +115 -0
- package/dist/components/product-hub-tray/product-hub-tray.d.ts.map +1 -0
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sidebar/index.d.ts +2 -2
- package/dist/components/sidebar/index.d.ts.map +1 -1
- package/dist/components/sidebar/index.js +12 -11
- package/dist/components/sidebar/sidebar.d.ts +14 -1
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +561 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +560 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +561 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +560 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +561 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +560 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +561 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +560 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +561 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +560 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +561 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +560 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +561 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +560 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +561 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +560 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +561 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +560 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +561 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +560 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +561 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +560 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +561 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +560 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +561 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +560 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +561 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +560 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +561 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +560 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +561 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +560 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +561 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +560 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +561 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +560 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +663 -600
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +562 -2
- package/dist/locales/de.json +562 -2
- package/dist/locales/el.json +562 -2
- package/dist/locales/en.json +562 -2
- package/dist/locales/es.json +562 -2
- package/dist/locales/fr.json +562 -2
- package/dist/locales/hi.json +562 -2
- package/dist/locales/it.json +562 -2
- package/dist/locales/ja.json +562 -2
- package/dist/locales/nl.json +562 -2
- package/dist/locales/pl.json +562 -2
- package/dist/locales/pt.json +562 -2
- package/dist/locales/ro.json +562 -2
- package/dist/locales/ru.json +562 -2
- package/dist/locales/sq.json +562 -2
- package/dist/locales/sv.json +562 -2
- package/dist/locales/tr.json +562 -2
- package/dist/locales/zh.json +562 -2
- package/dist/patterns/alia-assistant/alia-chat-surface.d.ts.map +1 -1
- package/dist/patterns/alia-assistant/alia-types.d.ts +15 -0
- package/dist/patterns/alia-assistant/alia-types.d.ts.map +1 -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 +1 -1
- package/package.json +58 -1
- package/dist/_chunks/agenda-card-CFyWSX7Z.js.map +0 -1
- package/dist/_chunks/agenda-tray-Dyj9ChHC.js.map +0 -1
- package/dist/_chunks/alert-ywPR59NE.js.map +0 -1
- package/dist/_chunks/alia-sidebar-CVIPrdc9.js.map +0 -1
- package/dist/_chunks/booking-DlDVuWMd.js.map +0 -1
- package/dist/_chunks/calendar-YHFknAGv.js.map +0 -1
- package/dist/_chunks/chat-message-B5JpFj0F.js.map +0 -1
- package/dist/_chunks/contact-profile-card-DHyuAPXM.js.map +0 -1
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js +0 -211
- package/dist/_chunks/cycle-calculator-KxA8dqDf.js.map +0 -1
- package/dist/_chunks/dialog-BTpZV6It.js.map +0 -1
- package/dist/_chunks/due-date-calculator-mFxpHLml.js +0 -216
- package/dist/_chunks/due-date-calculator-mFxpHLml.js.map +0 -1
- package/dist/_chunks/gestation-mWF4AXea.js +0 -50
- package/dist/_chunks/gestation-mWF4AXea.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js +0 -203
- package/dist/_chunks/gestational-age-calculator-gWI_uRA1.js.map +0 -1
- package/dist/_chunks/insert-result-C5ABnzDl.js.map +0 -1
- package/dist/_chunks/message-card-DSPw5ghw.js.map +0 -1
- package/dist/_chunks/operator-hero-7LiiP7zi.js +0 -171
- package/dist/_chunks/operator-hero-7LiiP7zi.js.map +0 -1
- package/dist/_chunks/pdf-viewer-CWEXTlwq.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js +0 -246
- package/dist/_chunks/pregnancy-weight-gain-BtEHaSqy.js.map +0 -1
- package/dist/_chunks/shield-check-C73ma9Cs.js +0 -36
- package/dist/_chunks/shield-check-C73ma9Cs.js.map +0 -1
- package/dist/_chunks/sidebar-_vJXI9rB.js.map +0 -1
- package/dist/_chunks/subDays-Dv7q9S7u.js +0 -8
- package/dist/_chunks/warning-stack-DNR3-IbP.js +0 -180
- package/dist/_chunks/warning-stack-DNR3-IbP.js.map +0 -1
- package/dist/_chunks/workflow-map-Djn1QMJc.js.map +0 -1
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
1
|
+
import { jsx as s, jsxs as u, Fragment as V } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useState as R, useEffect as M, useCallback as U, useRef as G, useMemo as $, useId as is, useContext as q, createContext as W } from "react";
|
|
3
|
+
import * as B from "@radix-ui/react-dialog";
|
|
4
|
+
import * as F from "@radix-ui/react-collapsible";
|
|
5
5
|
import * as A from "@radix-ui/react-accordion";
|
|
6
|
-
import * as
|
|
7
|
-
import { a as
|
|
8
|
-
import { Slot as
|
|
9
|
-
import { c as
|
|
6
|
+
import * as x from "@radix-ui/react-tooltip";
|
|
7
|
+
import { a as ns } from "./accordion-9lJSMMsZ.js";
|
|
8
|
+
import { Slot as ts } from "@radix-ui/react-slot";
|
|
9
|
+
import { c as k } from "./index-D2ZczOXr.js";
|
|
10
10
|
import { useTranslation as D } from "react-i18next";
|
|
11
11
|
import { u as os } from "./registry-nPAVE19X.js";
|
|
12
12
|
import { X as ls } from "./x-CCcI3eJp.js";
|
|
13
13
|
import { c as X } from "./createLucideIcon-CrFbzy84.js";
|
|
14
14
|
import { G as cs } from "./grip-vertical-Dlg0_k5C.js";
|
|
15
|
-
import { C as
|
|
15
|
+
import { C as P } from "./chevron-right-BrpYejk0.js";
|
|
16
16
|
import { S as us } from "./star-vav0SJ9e.js";
|
|
17
|
+
import { C as ms } from "./circle-arrow-up-CC_85SuH.js";
|
|
17
18
|
/**
|
|
18
19
|
* @license lucide-react v1.8.0 - ISC
|
|
19
20
|
*
|
|
20
21
|
* This source code is licensed under the ISC license.
|
|
21
22
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
23
|
*/
|
|
23
|
-
const
|
|
24
|
+
const ps = [
|
|
24
25
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
25
26
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
26
27
|
["path", { d: "m16 15-3-3 3-3", key: "14y99z" }]
|
|
27
|
-
], vs = X("panel-left-close",
|
|
28
|
+
], vs = X("panel-left-close", ps);
|
|
28
29
|
/**
|
|
29
30
|
* @license lucide-react v1.8.0 - ISC
|
|
30
31
|
*
|
|
@@ -35,22 +36,22 @@ const fs = [
|
|
|
35
36
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
36
37
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
37
38
|
["path", { d: "m14 9 3 3-3 3", key: "8010ee" }]
|
|
38
|
-
],
|
|
39
|
+
], gs = X("panel-left-open", fs), bs = {
|
|
39
40
|
id: "sidebar",
|
|
40
41
|
capabilities: ["expand"],
|
|
41
42
|
state: {
|
|
42
43
|
isCollapsed: {
|
|
43
44
|
type: "boolean",
|
|
44
45
|
description: "True when the sidebar is in its collapsed (rail) state.",
|
|
45
|
-
read: (
|
|
46
|
+
read: (e) => e.getIsCollapsed()
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
actions: {
|
|
49
50
|
toggle_collapsed: {
|
|
50
51
|
safety: "read",
|
|
51
52
|
description: "Toggle the sidebar between collapsed and expanded.",
|
|
52
|
-
invoke: (
|
|
53
|
-
|
|
53
|
+
invoke: (e) => {
|
|
54
|
+
e.toggleCollapsed();
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
},
|
|
@@ -66,27 +67,27 @@ const fs = [
|
|
|
66
67
|
description: "Each Sidebar.Item emits its key as data-nav-id."
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
|
-
},
|
|
70
|
+
}, E = W({
|
|
70
71
|
mode: "expanded",
|
|
71
72
|
density: "default"
|
|
72
|
-
}),
|
|
73
|
-
function
|
|
74
|
-
if (typeof window > "u") return
|
|
73
|
+
}), w = () => q(E), Y = "ui.sidebar.state";
|
|
74
|
+
function hs(e) {
|
|
75
|
+
if (typeof window > "u") return e;
|
|
75
76
|
try {
|
|
76
77
|
const a = window.localStorage.getItem(Y);
|
|
77
78
|
if (a === "expanded" || a === "icon" || a === "overlay") return a;
|
|
78
79
|
} catch {
|
|
79
80
|
}
|
|
80
|
-
return
|
|
81
|
+
return e;
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function xs(e) {
|
|
83
84
|
if (!(typeof window > "u"))
|
|
84
85
|
try {
|
|
85
|
-
window.localStorage.setItem(Y,
|
|
86
|
+
window.localStorage.setItem(Y, e);
|
|
86
87
|
} catch {
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
const _ =
|
|
90
|
+
const _ = k(
|
|
90
91
|
[
|
|
91
92
|
"ds:flex ds:flex-col",
|
|
92
93
|
// Sidebar sits at the page background in light mode (white-on-white
|
|
@@ -126,52 +127,52 @@ const _ = B(
|
|
|
126
127
|
},
|
|
127
128
|
defaultVariants: { mode: "expanded", density: "default" }
|
|
128
129
|
}
|
|
129
|
-
),
|
|
130
|
+
), ys = g(
|
|
130
131
|
({
|
|
131
|
-
state:
|
|
132
|
+
state: e,
|
|
132
133
|
defaultState: a = "expanded",
|
|
133
134
|
onStateChange: r,
|
|
134
|
-
density:
|
|
135
|
-
open:
|
|
135
|
+
density: i = "default",
|
|
136
|
+
open: t,
|
|
136
137
|
onOpenChange: o,
|
|
137
|
-
"aria-label":
|
|
138
|
+
"aria-label": l,
|
|
138
139
|
className: n,
|
|
139
140
|
children: m,
|
|
140
|
-
id:
|
|
141
|
-
...
|
|
142
|
-
},
|
|
143
|
-
const { t:
|
|
144
|
-
() =>
|
|
145
|
-
), h =
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}, [d,
|
|
149
|
-
const
|
|
150
|
-
(
|
|
151
|
-
|
|
141
|
+
id: c,
|
|
142
|
+
...v
|
|
143
|
+
}, y) => {
|
|
144
|
+
const { t: N } = D(), b = e !== void 0, [d, S] = R(
|
|
145
|
+
() => b ? e : hs(a)
|
|
146
|
+
), h = b ? e : d;
|
|
147
|
+
M(() => {
|
|
148
|
+
b || xs(d);
|
|
149
|
+
}, [d, b]);
|
|
150
|
+
const f = U(
|
|
151
|
+
(T) => {
|
|
152
|
+
b || S(T), r == null || r(T);
|
|
152
153
|
},
|
|
153
|
-
[
|
|
154
|
-
),
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
[b, r]
|
|
155
|
+
), j = l ?? N("navigation.sidebar.label"), z = G(h);
|
|
156
|
+
M(() => {
|
|
157
|
+
z.current = h;
|
|
157
158
|
}, [h]);
|
|
158
|
-
const
|
|
159
|
+
const C = $(
|
|
159
160
|
() => ({
|
|
160
|
-
getIsCollapsed: () =>
|
|
161
|
+
getIsCollapsed: () => z.current !== "expanded",
|
|
161
162
|
toggleCollapsed: () => {
|
|
162
|
-
const
|
|
163
|
-
|
|
163
|
+
const T = z.current === "expanded" ? "icon" : "expanded";
|
|
164
|
+
f(T);
|
|
164
165
|
}
|
|
165
166
|
}),
|
|
166
|
-
[
|
|
167
|
+
[f]
|
|
167
168
|
);
|
|
168
|
-
return os(
|
|
169
|
-
|
|
169
|
+
return os(bs, C, c), h === "overlay" ? /* @__PURE__ */ s(
|
|
170
|
+
E.Provider,
|
|
170
171
|
{
|
|
171
|
-
value: { mode: "overlay", density:
|
|
172
|
-
children: /* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
174
|
-
|
|
172
|
+
value: { mode: "overlay", density: i, transitionTo: f },
|
|
173
|
+
children: /* @__PURE__ */ s(B.Root, { open: t, onOpenChange: o, children: /* @__PURE__ */ u(B.Portal, { children: [
|
|
174
|
+
/* @__PURE__ */ s(
|
|
175
|
+
B.Overlay,
|
|
175
176
|
{
|
|
176
177
|
className: [
|
|
177
178
|
"ds:fixed ds:inset-0 ds:z-[var(--z-modal-backdrop)]",
|
|
@@ -182,15 +183,15 @@ const _ = B(
|
|
|
182
183
|
].join(" ")
|
|
183
184
|
}
|
|
184
185
|
),
|
|
185
|
-
/* @__PURE__ */
|
|
186
|
-
|
|
186
|
+
/* @__PURE__ */ u(
|
|
187
|
+
B.Content,
|
|
187
188
|
{
|
|
188
|
-
"aria-label":
|
|
189
|
+
"aria-label": j,
|
|
189
190
|
className: [
|
|
190
191
|
"ds:fixed ds:z-[var(--z-modal)]",
|
|
191
192
|
"ds:inset-inline-start-0 ds:inset-block-start-0",
|
|
192
193
|
"ds:h-dvh",
|
|
193
|
-
_({ mode: "overlay", density:
|
|
194
|
+
_({ mode: "overlay", density: i }),
|
|
194
195
|
"ds:shadow-[var(--shadow-xl)]",
|
|
195
196
|
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
196
197
|
"ds:data-[state=open]:slide-in-from-left ds:data-[state=closed]:slide-out-to-left",
|
|
@@ -200,24 +201,24 @@ const _ = B(
|
|
|
200
201
|
n ?? ""
|
|
201
202
|
].filter(Boolean).join(" "),
|
|
202
203
|
children: [
|
|
203
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ s(
|
|
204
205
|
"nav",
|
|
205
206
|
{
|
|
206
|
-
ref:
|
|
207
|
-
id:
|
|
208
|
-
"aria-label":
|
|
207
|
+
ref: y,
|
|
208
|
+
id: c,
|
|
209
|
+
"aria-label": j,
|
|
209
210
|
"data-component": "sidebar",
|
|
210
|
-
"data-component-id":
|
|
211
|
+
"data-component-id": c,
|
|
211
212
|
className: "ds:flex ds:flex-col ds:h-full",
|
|
212
|
-
...
|
|
213
|
+
...v,
|
|
213
214
|
children: m
|
|
214
215
|
}
|
|
215
216
|
),
|
|
216
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ s(B.Close, { asChild: !0, children: /* @__PURE__ */ s(
|
|
217
218
|
"button",
|
|
218
219
|
{
|
|
219
220
|
type: "button",
|
|
220
|
-
"aria-label":
|
|
221
|
+
"aria-label": N("navigation.sidebar.close"),
|
|
221
222
|
className: [
|
|
222
223
|
"ds:absolute ds:top-[var(--spacing-sm)] ds:end-[var(--spacing-sm)]",
|
|
223
224
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -227,7 +228,7 @@ const _ = B(
|
|
|
227
228
|
"ds:focus-visible:outline-solid ds:focus-visible:outline-[var(--ring)]",
|
|
228
229
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
229
230
|
].join(" "),
|
|
230
|
-
children: /* @__PURE__ */
|
|
231
|
+
children: /* @__PURE__ */ s(ls, { "aria-hidden": "true", className: "ds:size-4" })
|
|
231
232
|
}
|
|
232
233
|
) })
|
|
233
234
|
]
|
|
@@ -235,26 +236,26 @@ const _ = B(
|
|
|
235
236
|
)
|
|
236
237
|
] }) })
|
|
237
238
|
}
|
|
238
|
-
) : /* @__PURE__ */
|
|
239
|
-
|
|
239
|
+
) : /* @__PURE__ */ s(
|
|
240
|
+
E.Provider,
|
|
240
241
|
{
|
|
241
|
-
value: { mode: h, density:
|
|
242
|
-
children: /* @__PURE__ */
|
|
242
|
+
value: { mode: h, density: i, transitionTo: f },
|
|
243
|
+
children: /* @__PURE__ */ s(x.Provider, { delayDuration: 300, children: /* @__PURE__ */ s(
|
|
243
244
|
"nav",
|
|
244
245
|
{
|
|
245
|
-
ref:
|
|
246
|
-
id:
|
|
247
|
-
"aria-label":
|
|
246
|
+
ref: y,
|
|
247
|
+
id: c,
|
|
248
|
+
"aria-label": j,
|
|
248
249
|
"data-component": "sidebar",
|
|
249
|
-
"data-component-id":
|
|
250
|
+
"data-component-id": c,
|
|
250
251
|
"data-mode": h,
|
|
251
|
-
"data-density":
|
|
252
|
+
"data-density": i,
|
|
252
253
|
className: [
|
|
253
|
-
_({ mode: h, density:
|
|
254
|
-
|
|
254
|
+
_({ mode: h, density: i }),
|
|
255
|
+
i === "compact" ? "ds:density-compact" : "",
|
|
255
256
|
n ?? ""
|
|
256
257
|
].filter(Boolean).join(" "),
|
|
257
|
-
...
|
|
258
|
+
...v,
|
|
258
259
|
children: m
|
|
259
260
|
}
|
|
260
261
|
) })
|
|
@@ -262,10 +263,10 @@ const _ = B(
|
|
|
262
263
|
);
|
|
263
264
|
}
|
|
264
265
|
);
|
|
265
|
-
|
|
266
|
-
const
|
|
267
|
-
const { mode:
|
|
268
|
-
return /* @__PURE__ */
|
|
266
|
+
ys.displayName = "Sidebar";
|
|
267
|
+
const ws = g(({ className: e, ...a }, r) => {
|
|
268
|
+
const { mode: i } = w();
|
|
269
|
+
return /* @__PURE__ */ s(
|
|
269
270
|
"div",
|
|
270
271
|
{
|
|
271
272
|
ref: r,
|
|
@@ -274,21 +275,21 @@ const ys = b(({ className: s, ...a }, r) => {
|
|
|
274
275
|
"ds:min-h-[var(--min-target-size)]",
|
|
275
276
|
// Icon-rail is 64px — shrink horizontal padding so a 44×44
|
|
276
277
|
// control fits centred inside the header.
|
|
277
|
-
|
|
278
|
+
i === "icon" ? "ds:justify-center ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
278
279
|
"ds:py-[var(--spacing-sm)]",
|
|
279
280
|
// Hairline border + downward chrome shadow cast the header as a
|
|
280
281
|
// sticky top band above the scrolling body.
|
|
281
282
|
"ds:border-block-end ds:border-[var(--border)]",
|
|
282
283
|
"ds:shadow-[var(--shadow-chrome-down)]",
|
|
283
|
-
|
|
284
|
+
e ?? ""
|
|
284
285
|
].filter(Boolean).join(" "),
|
|
285
286
|
...a
|
|
286
287
|
}
|
|
287
288
|
);
|
|
288
289
|
});
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
({ className:
|
|
290
|
+
ws.displayName = "SidebarHeader";
|
|
291
|
+
const Ns = g(
|
|
292
|
+
({ className: e, ...a }, r) => /* @__PURE__ */ s(
|
|
292
293
|
"div",
|
|
293
294
|
{
|
|
294
295
|
ref: r,
|
|
@@ -296,16 +297,16 @@ const ws = b(
|
|
|
296
297
|
"ds:flex-1 ds:overflow-auto",
|
|
297
298
|
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]",
|
|
298
299
|
"ds:py-[var(--spacing-sm)]",
|
|
299
|
-
|
|
300
|
+
e ?? ""
|
|
300
301
|
].filter(Boolean).join(" "),
|
|
301
302
|
...a
|
|
302
303
|
}
|
|
303
304
|
)
|
|
304
305
|
);
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
const { mode:
|
|
308
|
-
return /* @__PURE__ */
|
|
306
|
+
Ns.displayName = "SidebarBody";
|
|
307
|
+
const Ss = g(({ className: e, ...a }, r) => {
|
|
308
|
+
const { mode: i } = w();
|
|
309
|
+
return /* @__PURE__ */ s(
|
|
309
310
|
"div",
|
|
310
311
|
{
|
|
311
312
|
ref: r,
|
|
@@ -313,21 +314,21 @@ const Ns = b(({ className: s, ...a }, r) => {
|
|
|
313
314
|
"ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
314
315
|
// Icon-rail is 64px — two 44×44 controls can't sit side-by-side,
|
|
315
316
|
// so switch to a vertical stack and let each row self-centre.
|
|
316
|
-
|
|
317
|
+
i === "icon" ? "ds:flex-col ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]" : "ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
317
318
|
"ds:min-h-[var(--min-target-size)]",
|
|
318
319
|
"ds:py-[var(--spacing-sm)]",
|
|
319
320
|
// Hairline border + upward chrome shadow cast the footer as a
|
|
320
321
|
// sticky bottom band below the scrolling body.
|
|
321
322
|
"ds:border-block-start ds:border-[var(--border)]",
|
|
322
323
|
"ds:shadow-[var(--shadow-chrome-up)]",
|
|
323
|
-
|
|
324
|
+
e ?? ""
|
|
324
325
|
].filter(Boolean).join(" "),
|
|
325
326
|
...a
|
|
326
327
|
}
|
|
327
328
|
);
|
|
328
329
|
});
|
|
329
|
-
|
|
330
|
-
const
|
|
330
|
+
Ss.displayName = "SidebarFooter";
|
|
331
|
+
const zs = [
|
|
331
332
|
"ds:group/section-label ds:flex ds:w-full ds:items-center",
|
|
332
333
|
"type-eyebrow",
|
|
333
334
|
"ds:text-[var(--muted-foreground)]",
|
|
@@ -337,32 +338,32 @@ const Ss = [
|
|
|
337
338
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
338
339
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
339
340
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
340
|
-
].join(" "),
|
|
341
|
+
].join(" "), O = [
|
|
341
342
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
342
343
|
"ds:size-4",
|
|
343
344
|
"ds:text-[var(--accent)]",
|
|
344
345
|
"ds:me-[var(--spacing-xs)]"
|
|
345
|
-
].join(" "), J =
|
|
346
|
+
].join(" "), J = g(
|
|
346
347
|
({
|
|
347
|
-
label:
|
|
348
|
+
label: e,
|
|
348
349
|
icon: a,
|
|
349
350
|
collapsible: r = !0,
|
|
350
|
-
defaultOpen:
|
|
351
|
-
open:
|
|
351
|
+
defaultOpen: i = !0,
|
|
352
|
+
open: t,
|
|
352
353
|
onOpenChange: o,
|
|
353
|
-
className:
|
|
354
|
+
className: l,
|
|
354
355
|
children: n,
|
|
355
356
|
...m
|
|
356
|
-
},
|
|
357
|
-
const { mode:
|
|
357
|
+
}, c) => {
|
|
358
|
+
const { mode: v } = w(), y = v === "icon", N = r && !y && !!e, b = [
|
|
358
359
|
"ds:flex ds:flex-col",
|
|
359
360
|
"ds:gap-[var(--spacing-xs)]",
|
|
360
361
|
"ds:mt-[var(--spacing-sm)]",
|
|
361
|
-
|
|
362
|
+
l ?? ""
|
|
362
363
|
].filter(Boolean).join(" ");
|
|
363
|
-
if (!
|
|
364
|
-
return /* @__PURE__ */
|
|
365
|
-
!!
|
|
364
|
+
if (!N)
|
|
365
|
+
return /* @__PURE__ */ u("div", { ref: c, className: b, ...m, children: [
|
|
366
|
+
!!e || !!a ? /* @__PURE__ */ u(
|
|
366
367
|
"span",
|
|
367
368
|
{
|
|
368
369
|
className: [
|
|
@@ -371,42 +372,42 @@ const Ss = [
|
|
|
371
372
|
"ds:text-[var(--muted-foreground)]",
|
|
372
373
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)]",
|
|
373
374
|
"ds:py-[var(--spacing-xs)]",
|
|
374
|
-
|
|
375
|
+
y && !a ? "ds:sr-only" : ""
|
|
375
376
|
].filter(Boolean).join(" "),
|
|
376
377
|
children: [
|
|
377
|
-
a ? /* @__PURE__ */
|
|
378
|
-
|
|
378
|
+
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: O, children: a }) : null,
|
|
379
|
+
e ? /* @__PURE__ */ s("span", { className: y ? "ds:sr-only" : "", children: e }) : null
|
|
379
380
|
]
|
|
380
381
|
}
|
|
381
382
|
) : null,
|
|
382
383
|
n
|
|
383
384
|
] });
|
|
384
385
|
const d = "section";
|
|
385
|
-
return /* @__PURE__ */
|
|
386
|
+
return /* @__PURE__ */ s(
|
|
386
387
|
A.Root,
|
|
387
388
|
{
|
|
388
389
|
type: "single",
|
|
389
390
|
collapsible: !0,
|
|
390
|
-
defaultValue:
|
|
391
|
-
value:
|
|
392
|
-
onValueChange: o ? (
|
|
391
|
+
defaultValue: t === void 0 && i ? d : void 0,
|
|
392
|
+
value: t === void 0 ? void 0 : t ? d : "",
|
|
393
|
+
onValueChange: o ? (S) => o(S === d) : void 0,
|
|
393
394
|
asChild: !0,
|
|
394
|
-
children: /* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
a ? /* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
/* @__PURE__ */
|
|
399
|
-
|
|
395
|
+
children: /* @__PURE__ */ s("div", { ref: c, className: b, ...m, children: /* @__PURE__ */ u(A.Item, { value: d, children: [
|
|
396
|
+
/* @__PURE__ */ s(A.Header, { className: "ds:flex", children: /* @__PURE__ */ u(A.Trigger, { className: zs, children: [
|
|
397
|
+
a ? /* @__PURE__ */ s("span", { "aria-hidden": "true", className: O, children: a }) : null,
|
|
398
|
+
/* @__PURE__ */ s("span", { className: "ds:flex-1 ds:text-start", children: e }),
|
|
399
|
+
/* @__PURE__ */ s(
|
|
400
|
+
P,
|
|
400
401
|
{
|
|
401
402
|
"aria-hidden": "true",
|
|
402
403
|
className: "ds:size-3 ds:transition-transform ds:group-data-[state=open]/section-label:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
403
404
|
}
|
|
404
405
|
)
|
|
405
406
|
] }) }),
|
|
406
|
-
/* @__PURE__ */
|
|
407
|
-
|
|
407
|
+
/* @__PURE__ */ s(
|
|
408
|
+
ns,
|
|
408
409
|
{
|
|
409
|
-
"aria-label":
|
|
410
|
+
"aria-label": e,
|
|
410
411
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:[&>div]:contents",
|
|
411
412
|
children: n
|
|
412
413
|
}
|
|
@@ -428,30 +429,30 @@ const js = [
|
|
|
428
429
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
429
430
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
430
431
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
431
|
-
].join(" "),
|
|
432
|
+
].join(" "), Cs = g(
|
|
432
433
|
({
|
|
433
|
-
label:
|
|
434
|
+
label: e,
|
|
434
435
|
icon: a,
|
|
435
436
|
children: r,
|
|
436
|
-
className:
|
|
437
|
-
defaultOpen:
|
|
437
|
+
className: i,
|
|
438
|
+
defaultOpen: t,
|
|
438
439
|
open: o,
|
|
439
|
-
onOpenChange:
|
|
440
|
+
onOpenChange: l,
|
|
440
441
|
...n
|
|
441
442
|
}, m) => {
|
|
442
|
-
const { mode:
|
|
443
|
-
return /* @__PURE__ */
|
|
444
|
-
|
|
443
|
+
const { mode: c } = w();
|
|
444
|
+
return /* @__PURE__ */ u(
|
|
445
|
+
F.Root,
|
|
445
446
|
{
|
|
446
447
|
ref: m,
|
|
447
|
-
defaultOpen:
|
|
448
|
+
defaultOpen: t,
|
|
448
449
|
open: o,
|
|
449
|
-
onOpenChange:
|
|
450
|
-
className:
|
|
450
|
+
onOpenChange: l,
|
|
451
|
+
className: i,
|
|
451
452
|
...n,
|
|
452
453
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
a ? /* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ u(F.Trigger, { className: js, children: [
|
|
455
|
+
a ? /* @__PURE__ */ s(
|
|
455
456
|
"span",
|
|
456
457
|
{
|
|
457
458
|
"aria-hidden": "true",
|
|
@@ -459,26 +460,26 @@ const js = [
|
|
|
459
460
|
children: a
|
|
460
461
|
}
|
|
461
462
|
) : null,
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ s(
|
|
463
464
|
"span",
|
|
464
465
|
{
|
|
465
466
|
className: [
|
|
466
467
|
"ds:flex-1 ds:text-start",
|
|
467
|
-
|
|
468
|
+
c === "icon" ? "ds:sr-only" : ""
|
|
468
469
|
].join(" "),
|
|
469
|
-
children:
|
|
470
|
+
children: e
|
|
470
471
|
}
|
|
471
472
|
),
|
|
472
|
-
|
|
473
|
-
|
|
473
|
+
c !== "icon" ? /* @__PURE__ */ s(
|
|
474
|
+
P,
|
|
474
475
|
{
|
|
475
476
|
"aria-hidden": "true",
|
|
476
477
|
className: "ds:size-4 ds:transition-transform ds:group-data-[state=open]:rotate-90 ds:rtl:-scale-x-100 ds:motion-reduce:transition-none"
|
|
477
478
|
}
|
|
478
479
|
) : null
|
|
479
480
|
] }),
|
|
480
|
-
/* @__PURE__ */
|
|
481
|
-
|
|
481
|
+
/* @__PURE__ */ s(
|
|
482
|
+
F.Content,
|
|
482
483
|
{
|
|
483
484
|
className: [
|
|
484
485
|
"ds:overflow-hidden",
|
|
@@ -494,8 +495,8 @@ const js = [
|
|
|
494
495
|
);
|
|
495
496
|
}
|
|
496
497
|
);
|
|
497
|
-
|
|
498
|
-
const ks =
|
|
498
|
+
Cs.displayName = "SidebarGroup";
|
|
499
|
+
const ks = k(
|
|
499
500
|
[
|
|
500
501
|
// Every row is a pin-hover parent so inline pin / reorder affordances can
|
|
501
502
|
// fade in on hover of the whole row — keep `group/item` on this selector.
|
|
@@ -556,34 +557,34 @@ const ks = B(
|
|
|
556
557
|
isActive: !1
|
|
557
558
|
}
|
|
558
559
|
}
|
|
559
|
-
), Q =
|
|
560
|
+
), Q = g(
|
|
560
561
|
({
|
|
561
|
-
asChild:
|
|
562
|
+
asChild: e = !1,
|
|
562
563
|
isActive: a = !1,
|
|
563
564
|
isPinned: r = !1,
|
|
564
|
-
onPinChange:
|
|
565
|
-
pinLabel:
|
|
565
|
+
onPinChange: i,
|
|
566
|
+
pinLabel: t,
|
|
566
567
|
className: o,
|
|
567
|
-
children:
|
|
568
|
+
children: l,
|
|
568
569
|
"aria-label": n,
|
|
569
570
|
...m
|
|
570
|
-
},
|
|
571
|
-
const { mode:
|
|
572
|
-
|
|
571
|
+
}, c) => {
|
|
572
|
+
const { mode: v, density: y } = w(), N = e ? ts : "a", b = i !== void 0 && v !== "icon", d = /* @__PURE__ */ s(
|
|
573
|
+
N,
|
|
573
574
|
{
|
|
574
|
-
ref:
|
|
575
|
+
ref: c,
|
|
575
576
|
"aria-current": a ? "page" : void 0,
|
|
576
577
|
"aria-label": n,
|
|
577
578
|
className: ks({
|
|
578
|
-
mode:
|
|
579
|
-
density:
|
|
579
|
+
mode: v,
|
|
580
|
+
density: y,
|
|
580
581
|
isActive: a,
|
|
581
|
-
className:
|
|
582
|
+
className: b ? "ds:flex-1 ds:min-w-0" : o
|
|
582
583
|
}),
|
|
583
584
|
...m,
|
|
584
|
-
children:
|
|
585
|
+
children: l
|
|
585
586
|
}
|
|
586
|
-
),
|
|
587
|
+
), S = b ? /* @__PURE__ */ u(
|
|
587
588
|
"div",
|
|
588
589
|
{
|
|
589
590
|
className: [
|
|
@@ -592,21 +593,21 @@ const ks = B(
|
|
|
592
593
|
].filter(Boolean).join(" "),
|
|
593
594
|
children: [
|
|
594
595
|
d,
|
|
595
|
-
/* @__PURE__ */
|
|
596
|
+
/* @__PURE__ */ s(
|
|
596
597
|
L,
|
|
597
598
|
{
|
|
598
599
|
isPinned: r,
|
|
599
|
-
label:
|
|
600
|
-
onPinChange:
|
|
600
|
+
label: t ?? n ?? "",
|
|
601
|
+
onPinChange: i
|
|
601
602
|
}
|
|
602
603
|
)
|
|
603
604
|
]
|
|
604
605
|
}
|
|
605
606
|
) : d;
|
|
606
|
-
return
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
|
|
607
|
+
return v === "icon" && n ? /* @__PURE__ */ u(x.Root, { children: [
|
|
608
|
+
/* @__PURE__ */ s(x.Trigger, { asChild: !0, children: S }),
|
|
609
|
+
/* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
|
|
610
|
+
x.Content,
|
|
610
611
|
{
|
|
611
612
|
side: "right",
|
|
612
613
|
sideOffset: 6,
|
|
@@ -619,18 +620,18 @@ const ks = B(
|
|
|
619
620
|
].join(" "),
|
|
620
621
|
children: [
|
|
621
622
|
n,
|
|
622
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
623
624
|
]
|
|
624
625
|
}
|
|
625
626
|
) })
|
|
626
|
-
] }) :
|
|
627
|
+
] }) : S;
|
|
627
628
|
}
|
|
628
629
|
);
|
|
629
630
|
Q.displayName = "SidebarItem";
|
|
630
|
-
const
|
|
631
|
+
const Ts = g(({ className: e, children: a, ...r }, i) => /* @__PURE__ */ s(
|
|
631
632
|
"span",
|
|
632
633
|
{
|
|
633
|
-
ref:
|
|
634
|
+
ref: i,
|
|
634
635
|
"aria-hidden": "true",
|
|
635
636
|
className: [
|
|
636
637
|
"ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
@@ -642,38 +643,38 @@ const Cs = b(({ className: s, children: a, ...r }, t) => /* @__PURE__ */ e(
|
|
|
642
643
|
// pill — keeping it readable on the primary background.
|
|
643
644
|
"ds:text-[var(--accent)]",
|
|
644
645
|
"ds:group-aria-[current=page]/item:text-[var(--primary-foreground)]",
|
|
645
|
-
|
|
646
|
+
e ?? ""
|
|
646
647
|
].filter(Boolean).join(" "),
|
|
647
648
|
...r,
|
|
648
649
|
children: a
|
|
649
650
|
}
|
|
650
651
|
));
|
|
651
|
-
|
|
652
|
-
const
|
|
653
|
-
const { mode:
|
|
654
|
-
return /* @__PURE__ */
|
|
652
|
+
Ts.displayName = "SidebarItemIcon";
|
|
653
|
+
const Is = g(({ className: e, children: a, ...r }, i) => {
|
|
654
|
+
const { mode: t } = w();
|
|
655
|
+
return /* @__PURE__ */ s(
|
|
655
656
|
"span",
|
|
656
657
|
{
|
|
657
|
-
ref:
|
|
658
|
+
ref: i,
|
|
658
659
|
className: [
|
|
659
660
|
"ds:flex-1",
|
|
660
661
|
"ds:overflow-hidden ds:text-ellipsis ds:whitespace-nowrap ds:break-normal",
|
|
661
662
|
"ds:text-start",
|
|
662
|
-
|
|
663
|
-
|
|
663
|
+
t === "icon" ? "ds:sr-only" : "",
|
|
664
|
+
e ?? ""
|
|
664
665
|
].filter(Boolean).join(" "),
|
|
665
666
|
...r,
|
|
666
667
|
children: a
|
|
667
668
|
}
|
|
668
669
|
);
|
|
669
670
|
});
|
|
670
|
-
|
|
671
|
-
const Bs =
|
|
672
|
-
const { mode:
|
|
673
|
-
return /* @__PURE__ */
|
|
671
|
+
Is.displayName = "SidebarItemLabel";
|
|
672
|
+
const Bs = g(({ className: e, children: a, ...r }, i) => {
|
|
673
|
+
const { mode: t } = w(), o = t === "icon";
|
|
674
|
+
return /* @__PURE__ */ s(
|
|
674
675
|
"span",
|
|
675
676
|
{
|
|
676
|
-
ref:
|
|
677
|
+
ref: i,
|
|
677
678
|
"aria-hidden": o ? "true" : void 0,
|
|
678
679
|
className: [
|
|
679
680
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
@@ -692,7 +693,7 @@ const Bs = b(({ className: s, children: a, ...r }, t) => {
|
|
|
692
693
|
"ds:text-[length:var(--font-size-xs)]",
|
|
693
694
|
"ds:ps-[var(--spacing-xs)] ds:pe-[var(--spacing-xs)]"
|
|
694
695
|
].join(" "),
|
|
695
|
-
|
|
696
|
+
e ?? ""
|
|
696
697
|
].filter(Boolean).join(" "),
|
|
697
698
|
...r,
|
|
698
699
|
children: a
|
|
@@ -700,7 +701,7 @@ const Bs = b(({ className: s, children: a, ...r }, t) => {
|
|
|
700
701
|
);
|
|
701
702
|
});
|
|
702
703
|
Bs.displayName = "SidebarItemBadge";
|
|
703
|
-
const
|
|
704
|
+
const Ds = k(
|
|
704
705
|
[
|
|
705
706
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
706
707
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -713,29 +714,29 @@ const Is = B(
|
|
|
713
714
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
714
715
|
"ds:no-underline"
|
|
715
716
|
].join(" ")
|
|
716
|
-
),
|
|
717
|
-
const { mode:
|
|
718
|
-
return /* @__PURE__ */
|
|
717
|
+
), As = g(({ logo: e, name: a, showChevron: r = !0, className: i, ...t }, o) => {
|
|
718
|
+
const { mode: l } = w(), n = l !== "icon";
|
|
719
|
+
return /* @__PURE__ */ u(
|
|
719
720
|
"button",
|
|
720
721
|
{
|
|
721
722
|
ref: o,
|
|
722
723
|
type: "button",
|
|
723
724
|
"aria-label": a,
|
|
724
|
-
className: [
|
|
725
|
-
...
|
|
725
|
+
className: [Ds(), i].filter(Boolean).join(" "),
|
|
726
|
+
...t,
|
|
726
727
|
children: [
|
|
727
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ s(
|
|
728
729
|
"span",
|
|
729
730
|
{
|
|
730
731
|
"aria-hidden": "true",
|
|
731
732
|
className: "ds:inline-flex ds:items-center ds:shrink-0",
|
|
732
|
-
children:
|
|
733
|
+
children: e
|
|
733
734
|
}
|
|
734
735
|
),
|
|
735
|
-
n ? /* @__PURE__ */
|
|
736
|
-
/* @__PURE__ */
|
|
737
|
-
r ? /* @__PURE__ */
|
|
738
|
-
|
|
736
|
+
n ? /* @__PURE__ */ u(V, { children: [
|
|
737
|
+
/* @__PURE__ */ s("span", { className: "ds:truncate ds:flex-1 ds:text-start ds:max-w-[var(--header-workspace-max-inline-size)]", children: a }),
|
|
738
|
+
r ? /* @__PURE__ */ s(
|
|
739
|
+
P,
|
|
739
740
|
{
|
|
740
741
|
"aria-hidden": "true",
|
|
741
742
|
className: "ds:size-4 ds:shrink-0 ds:rotate-90"
|
|
@@ -746,8 +747,8 @@ const Is = B(
|
|
|
746
747
|
}
|
|
747
748
|
);
|
|
748
749
|
});
|
|
749
|
-
|
|
750
|
-
const
|
|
750
|
+
As.displayName = "SidebarWorkspaceSwitcher";
|
|
751
|
+
const Rs = k(
|
|
751
752
|
[
|
|
752
753
|
"ds:flex ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)]",
|
|
753
754
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -770,36 +771,36 @@ const As = B(
|
|
|
770
771
|
},
|
|
771
772
|
defaultVariants: { mode: "expanded" }
|
|
772
773
|
}
|
|
773
|
-
),
|
|
774
|
-
const { mode:
|
|
775
|
-
return /* @__PURE__ */
|
|
774
|
+
), Ps = g(({ icon: e, label: a, shortcut: r, className: i, ...t }, o) => {
|
|
775
|
+
const { mode: l } = w(), n = l !== "icon";
|
|
776
|
+
return /* @__PURE__ */ u(
|
|
776
777
|
"button",
|
|
777
778
|
{
|
|
778
779
|
ref: o,
|
|
779
780
|
type: "button",
|
|
780
781
|
"aria-label": a,
|
|
781
782
|
"aria-keyshortcuts": r,
|
|
782
|
-
className: [
|
|
783
|
-
...
|
|
783
|
+
className: [Rs({ mode: l }), i].filter(Boolean).join(" "),
|
|
784
|
+
...t,
|
|
784
785
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ s(
|
|
786
787
|
"span",
|
|
787
788
|
{
|
|
788
789
|
"aria-hidden": "true",
|
|
789
790
|
className: "ds:inline-flex ds:size-4 ds:items-center ds:justify-center",
|
|
790
|
-
children:
|
|
791
|
+
children: e
|
|
791
792
|
}
|
|
792
793
|
),
|
|
793
|
-
n ? /* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
795
|
-
r ? /* @__PURE__ */
|
|
794
|
+
n ? /* @__PURE__ */ u(V, { children: [
|
|
795
|
+
/* @__PURE__ */ s("span", { className: "ds:truncate", children: a }),
|
|
796
|
+
r ? /* @__PURE__ */ s("kbd", { className: "ds:ms-auto ds:text-[length:var(--font-size-xs)] ds:font-[family-name:var(--font-mono)] ds:opacity-80", children: r }) : null
|
|
796
797
|
] }) : null
|
|
797
798
|
]
|
|
798
799
|
}
|
|
799
800
|
);
|
|
800
801
|
});
|
|
801
|
-
|
|
802
|
-
const
|
|
802
|
+
Ps.displayName = "SidebarPrimaryAction";
|
|
803
|
+
const Hs = [
|
|
803
804
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
804
805
|
"ds:size-6 ds:rounded-[var(--radius-sm)]",
|
|
805
806
|
// Pin stars carry the accent tint to match every other icon in the rail.
|
|
@@ -812,29 +813,29 @@ const Ps = [
|
|
|
812
813
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
813
814
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)]",
|
|
814
815
|
"ds:motion-reduce:transition-none"
|
|
815
|
-
].join(" "), L =
|
|
816
|
-
({ isPinned:
|
|
817
|
-
const { t: n } = D(), { mode: m } =
|
|
816
|
+
].join(" "), L = g(
|
|
817
|
+
({ isPinned: e, onPinChange: a, label: r, className: i, onClick: t, ...o }, l) => {
|
|
818
|
+
const { t: n } = D(), { mode: m } = w();
|
|
818
819
|
if (m === "icon") return null;
|
|
819
|
-
const
|
|
820
|
-
return /* @__PURE__ */
|
|
820
|
+
const c = e ? n("navigation.sidebar.unpinItem", "Unpin {{label}}", { label: r }) : n("navigation.sidebar.pinItem", "Pin {{label}}", { label: r });
|
|
821
|
+
return /* @__PURE__ */ s(
|
|
821
822
|
"button",
|
|
822
823
|
{
|
|
823
|
-
ref:
|
|
824
|
+
ref: l,
|
|
824
825
|
type: "button",
|
|
825
|
-
"aria-label":
|
|
826
|
-
"aria-pressed":
|
|
827
|
-
className: [
|
|
828
|
-
onClick: (
|
|
829
|
-
|
|
826
|
+
"aria-label": c,
|
|
827
|
+
"aria-pressed": e,
|
|
828
|
+
className: [Hs, i].filter(Boolean).join(" "),
|
|
829
|
+
onClick: (v) => {
|
|
830
|
+
v.preventDefault(), v.stopPropagation(), a == null || a(!e), t == null || t(v);
|
|
830
831
|
},
|
|
831
832
|
...o,
|
|
832
|
-
children: /* @__PURE__ */
|
|
833
|
+
children: /* @__PURE__ */ s(
|
|
833
834
|
us,
|
|
834
835
|
{
|
|
835
836
|
"aria-hidden": "true",
|
|
836
837
|
className: "ds:size-4",
|
|
837
|
-
fill:
|
|
838
|
+
fill: e ? "currentColor" : "none"
|
|
838
839
|
}
|
|
839
840
|
)
|
|
840
841
|
}
|
|
@@ -842,31 +843,31 @@ const Ps = [
|
|
|
842
843
|
}
|
|
843
844
|
);
|
|
844
845
|
L.displayName = "SidebarPinButton";
|
|
845
|
-
const Z = W(null),
|
|
846
|
-
({ heading:
|
|
847
|
-
const { t: n } = D(), m =
|
|
848
|
-
h.current = !h.current,
|
|
849
|
-
}, []),
|
|
850
|
-
() => ({ onReorder: r, count:
|
|
851
|
-
[r,
|
|
846
|
+
const Z = W(null), Fs = () => q(Z), Es = g(
|
|
847
|
+
({ heading: e, emptyMessage: a, onReorder: r, className: i, children: t, ...o }, l) => {
|
|
848
|
+
const { t: n } = D(), m = e ?? n("navigation.sidebar.favorites", "Favourites"), c = Array.isArray(t) ? t.filter(Boolean) : t ? [t] : [], v = c.length, y = v > 0, [N, b] = R(null), [d, S] = R(""), h = G(!1), f = U((z) => {
|
|
849
|
+
h.current = !h.current, S(h.current ? z : `${z}`);
|
|
850
|
+
}, []), j = $(
|
|
851
|
+
() => ({ onReorder: r, count: v, dragSource: N, setDragSource: b, announce: f }),
|
|
852
|
+
[r, v, N, f]
|
|
852
853
|
);
|
|
853
|
-
return !
|
|
854
|
+
return !y && !a ? null : /* @__PURE__ */ s(Z.Provider, { value: j, children: /* @__PURE__ */ u(
|
|
854
855
|
J,
|
|
855
856
|
{
|
|
856
|
-
ref:
|
|
857
|
+
ref: l,
|
|
857
858
|
label: m,
|
|
858
|
-
className:
|
|
859
|
+
className: i,
|
|
859
860
|
...o,
|
|
860
861
|
children: [
|
|
861
|
-
|
|
862
|
-
/* @__PURE__ */
|
|
862
|
+
y ? c : /* @__PURE__ */ s("p", { className: "ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] type-meta ds:text-[color:var(--muted-foreground)]", children: a }),
|
|
863
|
+
/* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: d })
|
|
863
864
|
]
|
|
864
865
|
}
|
|
865
866
|
) });
|
|
866
867
|
}
|
|
867
868
|
);
|
|
868
|
-
|
|
869
|
-
const
|
|
869
|
+
Es.displayName = "SidebarFavorites";
|
|
870
|
+
const Vs = k(
|
|
870
871
|
[
|
|
871
872
|
"ds:group/item ds:relative ds:flex ds:items-center ds:gap-[var(--spacing-2xs)]",
|
|
872
873
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -899,92 +900,92 @@ const Es = B(
|
|
|
899
900
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
900
901
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
901
902
|
"ds:transition-[color,opacity,background-color] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
902
|
-
].join(" "),
|
|
903
|
+
].join(" "), Ks = g(
|
|
903
904
|
({
|
|
904
|
-
index:
|
|
905
|
+
index: e,
|
|
905
906
|
isActive: a = !1,
|
|
906
907
|
asChild: r = !1,
|
|
907
|
-
reorderLabel:
|
|
908
|
-
isPinned:
|
|
908
|
+
reorderLabel: i,
|
|
909
|
+
isPinned: t = !1,
|
|
909
910
|
onPinChange: o,
|
|
910
|
-
pinLabel:
|
|
911
|
+
pinLabel: l,
|
|
911
912
|
"aria-label": n,
|
|
912
913
|
className: m,
|
|
913
|
-
children:
|
|
914
|
-
...
|
|
915
|
-
},
|
|
916
|
-
const { t:
|
|
914
|
+
children: c,
|
|
915
|
+
...v
|
|
916
|
+
}, y) => {
|
|
917
|
+
const { t: N } = D(), { mode: b } = w(), d = Fs(), [S, h] = R(!1), f = !!(d != null && d.onReorder) && b !== "icon", j = i ?? n ?? "", z = is(), C = (p, I) => {
|
|
917
918
|
if (!(d != null && d.onReorder)) return;
|
|
918
|
-
const
|
|
919
|
-
|
|
920
|
-
|
|
919
|
+
const H = Math.max(0, Math.min(d.count - 1, I));
|
|
920
|
+
H !== p && (d.onReorder(p, H), d.announce(
|
|
921
|
+
N(
|
|
921
922
|
"navigation.sidebar.reorderAnnounce",
|
|
922
923
|
"{{label}} moved to position {{to}} of {{total}}",
|
|
923
|
-
{ label:
|
|
924
|
+
{ label: j, to: H + 1, total: d.count }
|
|
924
925
|
)
|
|
925
926
|
));
|
|
926
|
-
},
|
|
927
|
-
|
|
928
|
-
}, ss = (
|
|
929
|
-
|
|
927
|
+
}, T = (p) => {
|
|
928
|
+
f && (p.altKey && p.key === "ArrowUp" ? (p.preventDefault(), C(e, e - 1)) : p.altKey && p.key === "ArrowDown" ? (p.preventDefault(), C(e, e + 1)) : p.key === "Home" && p.altKey ? (p.preventDefault(), C(e, 0)) : p.key === "End" && p.altKey && (p.preventDefault(), C(e, d.count - 1)));
|
|
929
|
+
}, ss = (p) => {
|
|
930
|
+
f && (d == null || d.setDragSource(e), p.dataTransfer && (p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("ds:text/plain", String(e))));
|
|
930
931
|
}, es = () => {
|
|
931
932
|
d == null || d.setDragSource(null), h(!1);
|
|
932
|
-
}, as = (
|
|
933
|
-
!
|
|
934
|
-
}, rs = () => h(!1), ds = (
|
|
935
|
-
if (!
|
|
936
|
-
|
|
937
|
-
const
|
|
938
|
-
h(!1), !(
|
|
939
|
-
},
|
|
940
|
-
return /* @__PURE__ */
|
|
933
|
+
}, as = (p) => {
|
|
934
|
+
!f || (d == null ? void 0 : d.dragSource) === null || (p.preventDefault(), p.dataTransfer && (p.dataTransfer.dropEffect = "move"), h(!0));
|
|
935
|
+
}, rs = () => h(!1), ds = (p) => {
|
|
936
|
+
if (!f) return;
|
|
937
|
+
p.preventDefault();
|
|
938
|
+
const I = d == null ? void 0 : d.dragSource;
|
|
939
|
+
h(!1), !(I == null || I === e) && C(I, e);
|
|
940
|
+
}, K = (d == null ? void 0 : d.dragSource) === e;
|
|
941
|
+
return /* @__PURE__ */ u(
|
|
941
942
|
"div",
|
|
942
943
|
{
|
|
943
|
-
className:
|
|
944
|
-
dragging:
|
|
945
|
-
dropTarget:
|
|
944
|
+
className: Vs({
|
|
945
|
+
dragging: K,
|
|
946
|
+
dropTarget: S && !K
|
|
946
947
|
}),
|
|
947
|
-
draggable:
|
|
948
|
-
onDragStart:
|
|
949
|
-
onDragEnd:
|
|
948
|
+
draggable: f || void 0,
|
|
949
|
+
onDragStart: f ? ss : void 0,
|
|
950
|
+
onDragEnd: f ? es : void 0,
|
|
950
951
|
onDragOver: as,
|
|
951
952
|
onDragLeave: rs,
|
|
952
953
|
onDrop: ds,
|
|
953
954
|
children: [
|
|
954
|
-
/* @__PURE__ */
|
|
955
|
+
/* @__PURE__ */ s(
|
|
955
956
|
Q,
|
|
956
957
|
{
|
|
957
|
-
ref:
|
|
958
|
+
ref: y,
|
|
958
959
|
isActive: a,
|
|
959
960
|
asChild: r,
|
|
960
961
|
"aria-label": n,
|
|
961
|
-
"aria-describedby":
|
|
962
|
-
draggable:
|
|
963
|
-
className: [
|
|
964
|
-
...
|
|
965
|
-
children:
|
|
962
|
+
"aria-describedby": f ? z : void 0,
|
|
963
|
+
draggable: f ? !1 : void 0,
|
|
964
|
+
className: [f ? "ds:flex-1 ds:min-w-0" : "", m ?? ""].filter(Boolean).join(" "),
|
|
965
|
+
...v,
|
|
966
|
+
children: c
|
|
966
967
|
}
|
|
967
968
|
),
|
|
968
|
-
|
|
969
|
+
f ? /* @__PURE__ */ s(
|
|
969
970
|
"button",
|
|
970
971
|
{
|
|
971
972
|
type: "button",
|
|
972
|
-
id:
|
|
973
|
-
"aria-label":
|
|
973
|
+
id: z,
|
|
974
|
+
"aria-label": N(
|
|
974
975
|
"navigation.sidebar.reorderHandle",
|
|
975
976
|
"Reorder {{label}}. Press Alt + Up or Alt + Down to move.",
|
|
976
|
-
{ label:
|
|
977
|
+
{ label: j }
|
|
977
978
|
),
|
|
978
979
|
className: Ls,
|
|
979
|
-
onKeyDown:
|
|
980
|
-
children: /* @__PURE__ */
|
|
980
|
+
onKeyDown: T,
|
|
981
|
+
children: /* @__PURE__ */ s(cs, { "aria-hidden": "true", className: "ds:size-4" })
|
|
981
982
|
}
|
|
982
983
|
) : null,
|
|
983
|
-
o &&
|
|
984
|
+
o && b !== "icon" ? /* @__PURE__ */ s(
|
|
984
985
|
L,
|
|
985
986
|
{
|
|
986
|
-
isPinned:
|
|
987
|
-
label:
|
|
987
|
+
isPinned: t,
|
|
988
|
+
label: l ?? n ?? "",
|
|
988
989
|
onPinChange: o
|
|
989
990
|
}
|
|
990
991
|
) : null
|
|
@@ -993,8 +994,8 @@ const Es = B(
|
|
|
993
994
|
);
|
|
994
995
|
}
|
|
995
996
|
);
|
|
996
|
-
|
|
997
|
-
const
|
|
997
|
+
Ks.displayName = "SidebarFavoriteItem";
|
|
998
|
+
const Ms = k(
|
|
998
999
|
[
|
|
999
1000
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1000
1001
|
"ds:min-h-[var(--min-target-size)]",
|
|
@@ -1007,35 +1008,35 @@ const Ks = B(
|
|
|
1007
1008
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1008
1009
|
"ds:no-underline"
|
|
1009
1010
|
].join(" ")
|
|
1010
|
-
), _s =
|
|
1011
|
-
const { mode: n } =
|
|
1012
|
-
return /* @__PURE__ */
|
|
1011
|
+
), _s = g(({ avatar: e, name: a, subtitle: r, subtitleLabel: i, className: t, ...o }, l) => {
|
|
1012
|
+
const { mode: n } = w(), m = n !== "icon", c = typeof r == "string" ? r : i;
|
|
1013
|
+
return /* @__PURE__ */ u(
|
|
1013
1014
|
"button",
|
|
1014
1015
|
{
|
|
1015
|
-
ref:
|
|
1016
|
+
ref: l,
|
|
1016
1017
|
type: "button",
|
|
1017
|
-
"aria-label":
|
|
1018
|
-
className: [
|
|
1018
|
+
"aria-label": c ? `${a}, ${c}` : a,
|
|
1019
|
+
className: [Ms(), t].filter(Boolean).join(" "),
|
|
1019
1020
|
...o,
|
|
1020
1021
|
children: [
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
+
/* @__PURE__ */ s(
|
|
1022
1023
|
"span",
|
|
1023
1024
|
{
|
|
1024
1025
|
"aria-hidden": "true",
|
|
1025
1026
|
className: "ds:inline-flex ds:items-center ds:shrink-0",
|
|
1026
|
-
children:
|
|
1027
|
+
children: e
|
|
1027
1028
|
}
|
|
1028
1029
|
),
|
|
1029
|
-
m ? /* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
r ? typeof r == "string" ? /* @__PURE__ */
|
|
1030
|
+
m ? /* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1031
|
+
/* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-label", children: a }),
|
|
1032
|
+
r ? typeof r == "string" ? /* @__PURE__ */ s("span", { className: "ds:block ds:truncate type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : /* @__PURE__ */ s("span", { className: "ds:flex ds:items-center ds:gap-[length:var(--spacing-xs)] ds:min-w-0 type-meta ds:text-[color:var(--muted-foreground)]", children: r }) : null
|
|
1032
1033
|
] }) : null
|
|
1033
1034
|
]
|
|
1034
1035
|
}
|
|
1035
1036
|
);
|
|
1036
1037
|
});
|
|
1037
1038
|
_s.displayName = "SidebarProfilePill";
|
|
1038
|
-
const
|
|
1039
|
+
const Os = [
|
|
1039
1040
|
"ds:inline-flex ds:items-center ds:justify-center ds:shrink-0",
|
|
1040
1041
|
"ds:min-w-[var(--min-target-size)] ds:min-h-[var(--min-target-size)]",
|
|
1041
1042
|
"ds:rounded-[var(--radius-sm)]",
|
|
@@ -1045,29 +1046,29 @@ const Ms = [
|
|
|
1045
1046
|
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1046
1047
|
"ds:forced-colors:focus-visible:outline-[CanvasText]",
|
|
1047
1048
|
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none"
|
|
1048
|
-
].join(" "),
|
|
1049
|
-
const { t: o } = D(), { mode:
|
|
1050
|
-
if (
|
|
1051
|
-
const m =
|
|
1049
|
+
].join(" "), Us = g(({ className: e, "aria-label": a, onClick: r, ...i }, t) => {
|
|
1050
|
+
const { t: o } = D(), { mode: l, transitionTo: n } = w();
|
|
1051
|
+
if (l === "overlay") return null;
|
|
1052
|
+
const m = l === "expanded", c = a ?? (m ? o("navigation.sidebar.collapse", "Collapse sidebar") : o("navigation.sidebar.expand", "Expand sidebar")), v = /* @__PURE__ */ s(
|
|
1052
1053
|
"button",
|
|
1053
1054
|
{
|
|
1054
|
-
ref:
|
|
1055
|
+
ref: t,
|
|
1055
1056
|
type: "button",
|
|
1056
|
-
"aria-label":
|
|
1057
|
+
"aria-label": c,
|
|
1057
1058
|
"aria-expanded": m,
|
|
1058
|
-
onClick: (
|
|
1059
|
-
n == null || n(m ? "icon" : "expanded"), r == null || r(
|
|
1059
|
+
onClick: (y) => {
|
|
1060
|
+
n == null || n(m ? "icon" : "expanded"), r == null || r(y);
|
|
1060
1061
|
},
|
|
1061
|
-
className: [
|
|
1062
|
-
...
|
|
1063
|
-
children: m ? /* @__PURE__ */
|
|
1062
|
+
className: [Os, e].filter(Boolean).join(" "),
|
|
1063
|
+
...i,
|
|
1064
|
+
children: m ? /* @__PURE__ */ s(
|
|
1064
1065
|
vs,
|
|
1065
1066
|
{
|
|
1066
1067
|
"aria-hidden": "true",
|
|
1067
1068
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
1068
1069
|
}
|
|
1069
|
-
) : /* @__PURE__ */
|
|
1070
|
-
|
|
1070
|
+
) : /* @__PURE__ */ s(
|
|
1071
|
+
gs,
|
|
1071
1072
|
{
|
|
1072
1073
|
"aria-hidden": "true",
|
|
1073
1074
|
className: "ds:size-4 ds:rtl:-scale-x-100"
|
|
@@ -1075,12 +1076,12 @@ const Ms = [
|
|
|
1075
1076
|
)
|
|
1076
1077
|
}
|
|
1077
1078
|
);
|
|
1078
|
-
return /* @__PURE__ */
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
/* @__PURE__ */
|
|
1081
|
-
|
|
1079
|
+
return /* @__PURE__ */ u(x.Root, { children: [
|
|
1080
|
+
/* @__PURE__ */ s(x.Trigger, { asChild: !0, children: v }),
|
|
1081
|
+
/* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
|
|
1082
|
+
x.Content,
|
|
1082
1083
|
{
|
|
1083
|
-
side:
|
|
1084
|
+
side: l === "icon" ? "right" : "top",
|
|
1084
1085
|
sideOffset: 6,
|
|
1085
1086
|
className: [
|
|
1086
1087
|
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
@@ -1090,33 +1091,134 @@ const Ms = [
|
|
|
1090
1091
|
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1091
1092
|
].join(" "),
|
|
1092
1093
|
children: [
|
|
1093
|
-
|
|
1094
|
-
/* @__PURE__ */
|
|
1094
|
+
c,
|
|
1095
|
+
/* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
1095
1096
|
]
|
|
1096
1097
|
}
|
|
1097
1098
|
) })
|
|
1098
1099
|
] });
|
|
1099
1100
|
});
|
|
1100
|
-
|
|
1101
|
+
Us.displayName = "SidebarCollapseTrigger";
|
|
1102
|
+
const Gs = k(
|
|
1103
|
+
[
|
|
1104
|
+
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1105
|
+
"ds:rounded-[var(--radius-md)]",
|
|
1106
|
+
"ds:border ds:border-[var(--border)]",
|
|
1107
|
+
"ds:bg-[image:var(--gradient-surface-subtle-accent)]",
|
|
1108
|
+
"ds:no-underline ds:!text-[var(--foreground)]",
|
|
1109
|
+
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
1110
|
+
"ds:focus-visible:outline-[var(--ring)] ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1111
|
+
"ds:forced-colors:focus-visible:outline-[CanvasText]"
|
|
1112
|
+
].join(" "),
|
|
1113
|
+
{
|
|
1114
|
+
variants: {
|
|
1115
|
+
mode: {
|
|
1116
|
+
expanded: [
|
|
1117
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
1118
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]"
|
|
1119
|
+
].join(" "),
|
|
1120
|
+
icon: [
|
|
1121
|
+
"ds:justify-center",
|
|
1122
|
+
"ds:w-[var(--min-target-size)] ds:h-[var(--min-target-size)]",
|
|
1123
|
+
"ds:ms-auto ds:me-auto ds:ps-0 ds:pe-0"
|
|
1124
|
+
].join(" "),
|
|
1125
|
+
overlay: [
|
|
1126
|
+
"ds:min-h-[var(--min-target-size)]",
|
|
1127
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-sm)]"
|
|
1128
|
+
].join(" ")
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
defaultVariants: { mode: "expanded" }
|
|
1132
|
+
}
|
|
1133
|
+
), $s = g(({ title: e, description: a, icon: r, className: i, ...t }, o) => {
|
|
1134
|
+
const { mode: l } = w(), n = l === "icon", m = (
|
|
1135
|
+
// aria-label only in icon mode (where the copy is hidden) — in
|
|
1136
|
+
// expanded mode the accessible name comes from the visible contents
|
|
1137
|
+
// so the description isn't excluded from it.
|
|
1138
|
+
/* @__PURE__ */ u(
|
|
1139
|
+
"a",
|
|
1140
|
+
{
|
|
1141
|
+
ref: o,
|
|
1142
|
+
"aria-label": n ? e : void 0,
|
|
1143
|
+
className: Gs({ mode: l, className: i }),
|
|
1144
|
+
...t,
|
|
1145
|
+
children: [
|
|
1146
|
+
/* @__PURE__ */ s(
|
|
1147
|
+
"span",
|
|
1148
|
+
{
|
|
1149
|
+
"aria-hidden": "true",
|
|
1150
|
+
className: [
|
|
1151
|
+
"ds:inline-flex ds:size-8 ds:shrink-0 ds:items-center ds:justify-center",
|
|
1152
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
1153
|
+
"ds:bg-[var(--accent)] ds:text-[var(--accent-foreground)]"
|
|
1154
|
+
].join(" "),
|
|
1155
|
+
children: r ?? /* @__PURE__ */ s(ms, { className: "ds:size-4" })
|
|
1156
|
+
}
|
|
1157
|
+
),
|
|
1158
|
+
n ? null : /* @__PURE__ */ u(V, { children: [
|
|
1159
|
+
/* @__PURE__ */ u("span", { className: "ds:flex-1 ds:min-w-0 ds:text-start", children: [
|
|
1160
|
+
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-label", children: e }),
|
|
1161
|
+
a ? (
|
|
1162
|
+
// Foreground (not muted) on the tinted surface — the gradient
|
|
1163
|
+
// stops leave muted text short of AA in both colour schemes.
|
|
1164
|
+
/* @__PURE__ */ s("span", { className: "ds:block ds:line-clamp-2 type-meta", children: a })
|
|
1165
|
+
) : null
|
|
1166
|
+
] }),
|
|
1167
|
+
/* @__PURE__ */ s(
|
|
1168
|
+
P,
|
|
1169
|
+
{
|
|
1170
|
+
"aria-hidden": "true",
|
|
1171
|
+
className: "ds:size-4 ds:shrink-0 ds:rtl:-scale-x-100"
|
|
1172
|
+
}
|
|
1173
|
+
)
|
|
1174
|
+
] })
|
|
1175
|
+
]
|
|
1176
|
+
}
|
|
1177
|
+
)
|
|
1178
|
+
);
|
|
1179
|
+
return n ? /* @__PURE__ */ u(x.Root, { children: [
|
|
1180
|
+
/* @__PURE__ */ s(x.Trigger, { asChild: !0, children: m }),
|
|
1181
|
+
/* @__PURE__ */ s(x.Portal, { children: /* @__PURE__ */ u(
|
|
1182
|
+
x.Content,
|
|
1183
|
+
{
|
|
1184
|
+
side: "right",
|
|
1185
|
+
sideOffset: 6,
|
|
1186
|
+
className: [
|
|
1187
|
+
"ds:z-[var(--z-tooltip)] ds:max-w-[16rem]",
|
|
1188
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
1189
|
+
"ds:bg-[var(--foreground)] ds:text-[var(--background)]",
|
|
1190
|
+
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)]",
|
|
1191
|
+
"ds:animate-in ds:fade-in ds:zoom-in-95 ds:motion-reduce:animate-none"
|
|
1192
|
+
].join(" "),
|
|
1193
|
+
children: [
|
|
1194
|
+
e,
|
|
1195
|
+
/* @__PURE__ */ s(x.Arrow, { className: "ds:fill-[var(--foreground)]" })
|
|
1196
|
+
]
|
|
1197
|
+
}
|
|
1198
|
+
) })
|
|
1199
|
+
] }) : m;
|
|
1200
|
+
});
|
|
1201
|
+
$s.displayName = "SidebarUpgradeChip";
|
|
1101
1202
|
export {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1203
|
+
ys as S,
|
|
1204
|
+
Ns as a,
|
|
1205
|
+
Us as b,
|
|
1206
|
+
Ks as c,
|
|
1207
|
+
Es as d,
|
|
1208
|
+
Ss as e,
|
|
1209
|
+
Cs as f,
|
|
1210
|
+
ws as g,
|
|
1110
1211
|
Q as h,
|
|
1111
1212
|
Bs as i,
|
|
1112
|
-
|
|
1113
|
-
|
|
1213
|
+
Ts as j,
|
|
1214
|
+
Is as k,
|
|
1114
1215
|
L as l,
|
|
1115
|
-
|
|
1216
|
+
Ps as m,
|
|
1116
1217
|
_s as n,
|
|
1117
1218
|
J as o,
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1219
|
+
$s as p,
|
|
1220
|
+
As as q,
|
|
1221
|
+
bs as s,
|
|
1222
|
+
w as u
|
|
1121
1223
|
};
|
|
1122
|
-
//# sourceMappingURL=sidebar-
|
|
1224
|
+
//# sourceMappingURL=sidebar-h78cTNLh.js.map
|