@alfadocs/ui-kit-debug 0.48.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/{ai-consent-banner-DO5ingMq.js → ai-consent-banner-F2md5JD3.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DO5ingMq.js.map → ai-consent-banner-F2md5JD3.js.map} +1 -1
- package/dist/_chunks/{ai-tools-rail-CxYG04cw.js → ai-tools-rail-CYLWrRmm.js} +6 -6
- 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/antenatal-schedule-timeline-Dg0m0yFl.js +412 -0
- package/dist/_chunks/antenatal-schedule-timeline-Dg0m0yFl.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/{booking-WV2GSru5.js → booking-DljH0JkS.js} +5 -5
- package/dist/_chunks/{booking-WV2GSru5.js.map → booking-DljH0JkS.js.map} +1 -1
- 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/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/{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/{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/{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/{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/{nl-D9kHCmp3.js → nl-cBxEX2QU.js} +2 -2
- package/dist/_chunks/{nl-D9kHCmp3.js.map → nl-cBxEX2QU.js.map} +1 -1
- 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/{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/{pdf-viewer-G8SU6Azw.js → pdf-viewer-q1D3Uion.js} +2 -2
- package/dist/_chunks/{pdf-viewer-G8SU6Azw.js.map → pdf-viewer-q1D3Uion.js.map} +1 -1
- 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-BFL_mcDW.js → practice-results-Cq1y8JFD.js} +2 -2
- package/dist/_chunks/{practice-results-BFL_mcDW.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/{sidebar-_vJXI9rB.js → sidebar-h78cTNLh.js} +440 -338
- package/dist/_chunks/sidebar-h78cTNLh.js.map +1 -0
- package/dist/_chunks/{sign-document-DPI2pY9V.js → sign-document-CZkAf28g.js} +2 -2
- package/dist/_chunks/{sign-document-DPI2pY9V.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/warning-stack-CXfoAT-_.js +220 -0
- package/dist/_chunks/warning-stack-CXfoAT-_.js.map +1 -0
- package/dist/_chunks/{workflow-map-ZXw-zsZ8.js → workflow-map-DzX_LI4y.js} +2 -2
- package/dist/_chunks/{workflow-map-ZXw-zsZ8.js.map → workflow-map-DzX_LI4y.js.map} +1 -1
- 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 +44 -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/index.d.ts +3 -0
- package/dist/components/_shared/index.d.ts.map +1 -1
- 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/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/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/audio-recorder/index.js +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/booking/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/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 +4 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- 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/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/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 +210 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +209 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +210 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +209 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +210 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +209 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +210 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +209 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +210 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +209 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +210 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +209 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +210 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +209 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +210 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +209 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +210 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +209 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +210 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +209 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +210 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +209 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +210 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +209 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +210 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +209 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +210 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +209 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +210 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +209 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +210 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +209 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +210 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +209 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +210 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +209 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +658 -631
- package/dist/index.js.map +1 -1
- package/dist/locales/ar.json +211 -2
- package/dist/locales/de.json +211 -2
- package/dist/locales/el.json +211 -2
- package/dist/locales/en.json +211 -2
- package/dist/locales/es.json +211 -2
- package/dist/locales/fr.json +211 -2
- package/dist/locales/hi.json +211 -2
- package/dist/locales/it.json +211 -2
- package/dist/locales/ja.json +211 -2
- package/dist/locales/nl.json +211 -2
- package/dist/locales/pl.json +211 -2
- package/dist/locales/pt.json +211 -2
- package/dist/locales/ro.json +211 -2
- package/dist/locales/ru.json +211 -2
- package/dist/locales/sq.json +211 -2
- package/dist/locales/sv.json +211 -2
- package/dist/locales/tr.json +211 -2
- package/dist/locales/zh.json +211 -2
- 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 +17 -1
- package/dist/_chunks/ai-tools-rail-CxYG04cw.js.map +0 -1
- package/dist/_chunks/alert-ywPR59NE.js.map +0 -1
- package/dist/_chunks/cycle-calculator-DYvGm_m1.js +0 -211
- package/dist/_chunks/cycle-calculator-DYvGm_m1.js.map +0 -1
- package/dist/_chunks/due-date-calculator-BXd3ANj7.js +0 -216
- package/dist/_chunks/due-date-calculator-BXd3ANj7.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-Crj6FgZw.js +0 -203
- package/dist/_chunks/gestational-age-calculator-Crj6FgZw.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-C7dK89jE.js +0 -246
- package/dist/_chunks/pregnancy-weight-gain-C7dK89jE.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
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as F, useRef as w, useMemo as G, useImperativeHandle as J } from "react";
|
|
3
|
+
import { c as b } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as R } from "react-i18next";
|
|
5
|
+
import { E as se } from "./empty-state-BLy7tigq.js";
|
|
6
|
+
import { L as Q } from "./link-DrD_cRUg.js";
|
|
7
|
+
import { S as _ } from "./separator-CYU_bGFn.js";
|
|
8
|
+
import { i as W } from "./is-safe-url-DkETxeHz.js";
|
|
9
|
+
import { u as X } from "./registry-nPAVE19X.js";
|
|
10
|
+
import * as C from "@radix-ui/react-popover";
|
|
11
|
+
import { u as ae } from "./use-controllable-state-BiY4xTzM.js";
|
|
12
|
+
import { I as te } from "./icon-button-CKEOrN37.js";
|
|
13
|
+
import { S as z } from "./skeleton-CZbwyJAA.js";
|
|
14
|
+
import { T as re } from "./timestamp-BV2lC-wV.js";
|
|
15
|
+
import { s as de } from "./safe-image-src-DstKgCo7.js";
|
|
16
|
+
import { c as ne } from "./createLucideIcon-CrFbzy84.js";
|
|
17
|
+
/**
|
|
18
|
+
* @license lucide-react v1.8.0 - ISC
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the ISC license.
|
|
21
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/
|
|
23
|
+
const oe = [
|
|
24
|
+
["path", { d: "M12 7v14", key: "1akyts" }],
|
|
25
|
+
["path", { d: "M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8", key: "1sqzm4" }],
|
|
26
|
+
[
|
|
27
|
+
"path",
|
|
28
|
+
{ d: "M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5", key: "kc0143" }
|
|
29
|
+
],
|
|
30
|
+
["rect", { x: "3", y: "7", width: "18", height: "4", rx: "1", key: "1hberx" }]
|
|
31
|
+
], V = ne("gift", oe), ie = {
|
|
32
|
+
id: "product-hub-tray",
|
|
33
|
+
capabilities: ["open", "close"],
|
|
34
|
+
state: {
|
|
35
|
+
unseenCount: {
|
|
36
|
+
type: "number",
|
|
37
|
+
descriptionKey: "ui.agent.productHubTray.state.unseenCount",
|
|
38
|
+
description: "Number of unseen product releases — the trigger badge count.",
|
|
39
|
+
read: (s) => s.getUnseenCount()
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
actions: {
|
|
43
|
+
open: {
|
|
44
|
+
safety: "read",
|
|
45
|
+
descriptionKey: "ui.agent.productHubTray.actions.open",
|
|
46
|
+
description: "Open the product-updates panel.",
|
|
47
|
+
invoke: (s) => {
|
|
48
|
+
s.open();
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
close: {
|
|
52
|
+
safety: "read",
|
|
53
|
+
descriptionKey: "ui.agent.productHubTray.actions.close",
|
|
54
|
+
description: "Close the product-updates panel.",
|
|
55
|
+
invoke: (s) => {
|
|
56
|
+
s.close();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
domHooks: {
|
|
61
|
+
root: {
|
|
62
|
+
attr: "data-component",
|
|
63
|
+
value: "product-hub-tray",
|
|
64
|
+
description: "Marks the ProductHubTray wrapper."
|
|
65
|
+
},
|
|
66
|
+
instanceId: {
|
|
67
|
+
attr: "data-component-id",
|
|
68
|
+
sourceProp: "id",
|
|
69
|
+
description: "Sourced from the id prop. Required to address a specific tray from the agent."
|
|
70
|
+
},
|
|
71
|
+
item: {
|
|
72
|
+
attr: "data-update-id",
|
|
73
|
+
description: "Stable release id emitted on each rendered release row inside the tray."
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, le = b(
|
|
77
|
+
"ds:relative ds:inline-flex ds:items-center",
|
|
78
|
+
{
|
|
79
|
+
variants: {
|
|
80
|
+
size: {
|
|
81
|
+
sm: "",
|
|
82
|
+
md: ""
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
defaultVariants: {
|
|
86
|
+
size: "md"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
), ce = b(
|
|
90
|
+
[
|
|
91
|
+
"ds:flex ds:flex-col",
|
|
92
|
+
"ds:bg-[var(--popover)] ds:text-[var(--popover-foreground)]",
|
|
93
|
+
"ds:border ds:border-[color:var(--card-border)]",
|
|
94
|
+
"ds:rounded-[var(--radius-md)]",
|
|
95
|
+
"ds:shadow-[var(--shadow-lg)]",
|
|
96
|
+
"ds:z-[var(--z-popover)]",
|
|
97
|
+
// Fluid below the design cap so narrow viewports keep a gutter on
|
|
98
|
+
// both sides of the panel (shadow included).
|
|
99
|
+
"ds:w-[min(24rem,calc(100vw-2*var(--spacing-md)))]",
|
|
100
|
+
// Near-full-screen sheet below `sm`; auto above, where the list's
|
|
101
|
+
// own `--product-hub-tray-max-block-size` cap governs the height.
|
|
102
|
+
"ds:h-[calc(100dvh-6rem)] ds:sm:h-auto",
|
|
103
|
+
"ds:data-[state=open]:animate-in ds:data-[state=closed]:animate-out",
|
|
104
|
+
"ds:data-[state=closed]:fade-out-0 ds:data-[state=open]:fade-in-0",
|
|
105
|
+
"ds:data-[state=closed]:zoom-out-95 ds:data-[state=open]:zoom-in-95",
|
|
106
|
+
"ds:motion-reduce:transition-none ds:motion-reduce:animate-none",
|
|
107
|
+
"ds:focus-visible:outline-none",
|
|
108
|
+
"ds:forced-colors:border-[CanvasText]"
|
|
109
|
+
].join(" "),
|
|
110
|
+
{
|
|
111
|
+
variants: {
|
|
112
|
+
size: {
|
|
113
|
+
sm: "ds:p-[var(--spacing-xs)]",
|
|
114
|
+
md: "ds:p-[var(--spacing-sm)]"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
defaultVariants: {
|
|
118
|
+
size: "md"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
), ue = b(
|
|
122
|
+
[
|
|
123
|
+
// Anchored to the top-end corner of the trigger, nudged outward so
|
|
124
|
+
// the gift glyph isn't covered.
|
|
125
|
+
"ds:absolute ds:-top-[var(--spacing-xs)] ds:-end-[var(--spacing-xs)]",
|
|
126
|
+
"ds:inline-flex ds:items-center ds:justify-center",
|
|
127
|
+
// Circle at 1-2 digits; widens into a pill only for "99+".
|
|
128
|
+
"ds:min-w-[calc(var(--spacing-md)+var(--spacing-xs))] ds:h-[calc(var(--spacing-md)+var(--spacing-xs))] ds:ps-[calc(var(--spacing-xs)/1.5)] ds:pe-[calc(var(--spacing-xs)/1.5)]",
|
|
129
|
+
"ds:rounded-[var(--radius-full)]",
|
|
130
|
+
// One red unseen-count chip across every header tray — matches the
|
|
131
|
+
// platform header and the NotificationTray badge convention.
|
|
132
|
+
"ds:bg-[color:var(--destructive)] ds:text-[color:var(--destructive-foreground)]",
|
|
133
|
+
"ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:leading-none",
|
|
134
|
+
"ds:pointer-events-none ds:select-none",
|
|
135
|
+
"ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText]"
|
|
136
|
+
].join(" ")
|
|
137
|
+
), pe = b(
|
|
138
|
+
[
|
|
139
|
+
"ds:relative ds:flex ds:items-start",
|
|
140
|
+
"ds:rounded-[var(--radius-sm)]",
|
|
141
|
+
"ds:text-start",
|
|
142
|
+
"ds:transition-colors ds:motion-reduce:transition-none"
|
|
143
|
+
].join(" "),
|
|
144
|
+
{
|
|
145
|
+
variants: {
|
|
146
|
+
density: {
|
|
147
|
+
tray: "ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]",
|
|
148
|
+
panel: "ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]"
|
|
149
|
+
},
|
|
150
|
+
unseen: {
|
|
151
|
+
true: "ds:bg-[color:var(--accent)]/5 ds:hover:bg-[color:var(--accent)]/10",
|
|
152
|
+
false: "ds:hover:bg-[color:var(--muted)]/40"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
defaultVariants: {
|
|
156
|
+
density: "tray",
|
|
157
|
+
unseen: !1
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
), $ = b(
|
|
161
|
+
[
|
|
162
|
+
"ds:shrink-0 ds:rounded-[var(--radius-sm)] ds:object-cover",
|
|
163
|
+
// Tile backdrop so transparent / still-loading thumbnails keep a
|
|
164
|
+
// visible square instead of collapsing into whitespace.
|
|
165
|
+
"ds:bg-[color:var(--muted)]",
|
|
166
|
+
"ds:forced-colors:border ds:forced-colors:border-[CanvasText]"
|
|
167
|
+
].join(" "),
|
|
168
|
+
{
|
|
169
|
+
variants: {
|
|
170
|
+
density: {
|
|
171
|
+
tray: "ds:size-10",
|
|
172
|
+
panel: "ds:size-12"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
defaultVariants: {
|
|
176
|
+
density: "tray"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
), me = [
|
|
180
|
+
"ds:focus-visible:outline-none",
|
|
181
|
+
"ds:after:content-[''] ds:after:absolute ds:after:inset-0 ds:after:rounded-[var(--radius-sm)]",
|
|
182
|
+
"ds:after:pointer-events-auto",
|
|
183
|
+
"ds:focus-visible:after:outline-[length:var(--focus-ring-width)]",
|
|
184
|
+
"ds:focus-visible:after:outline-solid",
|
|
185
|
+
"ds:focus-visible:after:outline-[color:var(--ring)]",
|
|
186
|
+
"ds:focus-visible:after:outline-offset-[length:var(--focus-ring-offset)]",
|
|
187
|
+
"ds:forced-colors:focus-visible:after:outline-[CanvasText]"
|
|
188
|
+
].join(" ");
|
|
189
|
+
function Y({
|
|
190
|
+
item: s,
|
|
191
|
+
density: a = "tray",
|
|
192
|
+
locale: o,
|
|
193
|
+
onActivate: i,
|
|
194
|
+
className: l,
|
|
195
|
+
...u
|
|
196
|
+
}) {
|
|
197
|
+
const { t: p } = R(), m = de(s.imageUrl), x = !!s.url && W(s.url), d = !!s.unseen, f = d ? /* @__PURE__ */ e("span", { className: "ds:sr-only", children: p("productHubTray.unseenLabel", ", new") }) : null;
|
|
198
|
+
return /* @__PURE__ */ r(
|
|
199
|
+
"div",
|
|
200
|
+
{
|
|
201
|
+
role: "listitem",
|
|
202
|
+
"data-component": "product-hub-update",
|
|
203
|
+
"data-update-id": s.id,
|
|
204
|
+
"data-unseen": d ? "true" : "false",
|
|
205
|
+
className: pe({ density: a, unseen: d, className: l }),
|
|
206
|
+
...u,
|
|
207
|
+
children: [
|
|
208
|
+
m ? /* @__PURE__ */ e(
|
|
209
|
+
"img",
|
|
210
|
+
{
|
|
211
|
+
src: m,
|
|
212
|
+
alt: "",
|
|
213
|
+
"aria-hidden": "true",
|
|
214
|
+
referrerPolicy: "no-referrer",
|
|
215
|
+
loading: "lazy",
|
|
216
|
+
className: $({ density: a })
|
|
217
|
+
}
|
|
218
|
+
) : /* @__PURE__ */ e(
|
|
219
|
+
"span",
|
|
220
|
+
{
|
|
221
|
+
"aria-hidden": "true",
|
|
222
|
+
className: `${$({ density: a })} ds:inline-flex ds:items-center ds:justify-center ds:text-[color:var(--muted-foreground)] ds:[&>svg]:size-5`,
|
|
223
|
+
children: /* @__PURE__ */ e(V, {})
|
|
224
|
+
}
|
|
225
|
+
),
|
|
226
|
+
/* @__PURE__ */ r("div", { className: "ds:min-w-0 ds:flex-1 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
227
|
+
/* @__PURE__ */ r("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] type-title-item ds:text-[color:var(--foreground)]", children: [
|
|
228
|
+
d ? /* @__PURE__ */ e(
|
|
229
|
+
"span",
|
|
230
|
+
{
|
|
231
|
+
"aria-hidden": "true",
|
|
232
|
+
"data-testid": "product-hub-unseen-dot",
|
|
233
|
+
className: "ds:inline-block ds:size-1.5 ds:shrink-0 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--primary)] ds:forced-colors:bg-[Highlight]"
|
|
234
|
+
}
|
|
235
|
+
) : null,
|
|
236
|
+
x ? (
|
|
237
|
+
// A real (non-display:contents) anchor so the row is reliably
|
|
238
|
+
// keyboard-focusable; the ::after stretch keeps the whole row
|
|
239
|
+
// clickable and carries the focus ring.
|
|
240
|
+
/* @__PURE__ */ r(
|
|
241
|
+
"a",
|
|
242
|
+
{
|
|
243
|
+
href: s.url,
|
|
244
|
+
target: "_blank",
|
|
245
|
+
rel: "noopener noreferrer",
|
|
246
|
+
className: `${me} ds:min-w-0 ds:flex-1 ds:no-underline ds:text-[color:var(--foreground)]`,
|
|
247
|
+
onClick: () => i == null ? void 0 : i(s),
|
|
248
|
+
children: [
|
|
249
|
+
/* @__PURE__ */ e("span", { className: "ds:block ds:truncate ds:font-semibold", children: s.title }),
|
|
250
|
+
f,
|
|
251
|
+
/* @__PURE__ */ e("span", { className: "ds:sr-only", children: p("productHubTray.opensInNewTab", "(opens in a new tab)") })
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
) : /* @__PURE__ */ r(S, { children: [
|
|
256
|
+
/* @__PURE__ */ e("span", { className: "ds:min-w-0 ds:flex-1 ds:truncate ds:font-semibold", children: s.title }),
|
|
257
|
+
f
|
|
258
|
+
] })
|
|
259
|
+
] }),
|
|
260
|
+
s.summary ? /* @__PURE__ */ e("p", { className: "ds:m-0 type-body-sm ds:text-[color:var(--muted-foreground)] ds:[overflow:hidden] ds:[display:-webkit-box] ds:[-webkit-box-orient:vertical] ds:[-webkit-line-clamp:2] ds:break-words", children: s.summary }) : null,
|
|
261
|
+
s.dateIso ? /* @__PURE__ */ e(
|
|
262
|
+
re,
|
|
263
|
+
{
|
|
264
|
+
value: s.dateIso,
|
|
265
|
+
format: "absolute",
|
|
266
|
+
locale: o,
|
|
267
|
+
className: "ds:italic ds:text-[color:var(--muted-foreground)]"
|
|
268
|
+
}
|
|
269
|
+
) : null
|
|
270
|
+
] })
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
}
|
|
275
|
+
function j({
|
|
276
|
+
density: s = "tray"
|
|
277
|
+
}) {
|
|
278
|
+
return /* @__PURE__ */ r(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
"aria-hidden": "true",
|
|
282
|
+
className: s === "panel" ? "ds:flex ds:items-start ds:gap-[var(--spacing-md)] ds:p-[var(--spacing-md)]" : "ds:flex ds:items-start ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)]",
|
|
283
|
+
children: [
|
|
284
|
+
/* @__PURE__ */ e(
|
|
285
|
+
z,
|
|
286
|
+
{
|
|
287
|
+
variant: "rounded",
|
|
288
|
+
width: s === "panel" ? "3rem" : "2.5rem",
|
|
289
|
+
height: s === "panel" ? "3rem" : "2.5rem"
|
|
290
|
+
}
|
|
291
|
+
),
|
|
292
|
+
/* @__PURE__ */ r("div", { className: "ds:flex-1 ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
293
|
+
/* @__PURE__ */ e(z, { variant: "text", size: "md", width: "60%" }),
|
|
294
|
+
/* @__PURE__ */ e(z, { variant: "text", size: "sm", width: "90%" }),
|
|
295
|
+
/* @__PURE__ */ e(z, { variant: "text", size: "sm", width: "30%" })
|
|
296
|
+
] })
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
function Z({ children: s }) {
|
|
302
|
+
return /* @__PURE__ */ e(
|
|
303
|
+
"div",
|
|
304
|
+
{
|
|
305
|
+
role: "status",
|
|
306
|
+
"aria-live": "polite",
|
|
307
|
+
className: "ds:flex ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-lg)] ds:text-center type-body-sm ds:text-[color:var(--muted-foreground)]",
|
|
308
|
+
children: s
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
}
|
|
312
|
+
function fe(s, a) {
|
|
313
|
+
return s > 99 ? a : String(s);
|
|
314
|
+
}
|
|
315
|
+
function ve() {
|
|
316
|
+
const { t: s } = R();
|
|
317
|
+
return /* @__PURE__ */ r(
|
|
318
|
+
"div",
|
|
319
|
+
{
|
|
320
|
+
role: "status",
|
|
321
|
+
"aria-live": "polite",
|
|
322
|
+
className: "ds:flex ds:flex-col ds:items-center ds:justify-center ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-lg)] ds:text-center",
|
|
323
|
+
children: [
|
|
324
|
+
/* @__PURE__ */ e(
|
|
325
|
+
"span",
|
|
326
|
+
{
|
|
327
|
+
"aria-hidden": "true",
|
|
328
|
+
className: "ds:inline-flex ds:items-center ds:justify-center ds:size-10 ds:rounded-[var(--radius-full)] ds:bg-[color:var(--muted)] ds:text-[color:var(--muted-foreground)] ds:[&>svg]:size-5",
|
|
329
|
+
children: /* @__PURE__ */ e(V, {})
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
/* @__PURE__ */ e("p", { className: "type-title-item ds:text-[color:var(--foreground)]", children: s("productHubTray.emptyTitle", "No product updates yet") }),
|
|
333
|
+
/* @__PURE__ */ e("p", { className: "type-meta ds:text-[color:var(--muted-foreground)]", children: s(
|
|
334
|
+
"productHubTray.emptyDescription",
|
|
335
|
+
"New releases and improvements will appear here."
|
|
336
|
+
) })
|
|
337
|
+
]
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
const ge = F(
|
|
342
|
+
({
|
|
343
|
+
id: s,
|
|
344
|
+
items: a,
|
|
345
|
+
hubUrl: o,
|
|
346
|
+
loading: i = !1,
|
|
347
|
+
error: l,
|
|
348
|
+
unseenCount: u,
|
|
349
|
+
onOpenChange: p,
|
|
350
|
+
onItemActivate: m,
|
|
351
|
+
triggerLabel: x,
|
|
352
|
+
maxVisible: d = 10,
|
|
353
|
+
emptyState: f,
|
|
354
|
+
defaultOpen: I = !1,
|
|
355
|
+
locale: L,
|
|
356
|
+
align: O = "end",
|
|
357
|
+
side: M = "bottom",
|
|
358
|
+
size: c = "md",
|
|
359
|
+
className: N,
|
|
360
|
+
...H
|
|
361
|
+
}, T) => {
|
|
362
|
+
const { t: n } = R(), [v, g] = ae({
|
|
363
|
+
defaultValue: I,
|
|
364
|
+
onChange: p
|
|
365
|
+
}), k = v ?? !1, t = u ?? a.filter((h) => h.unseen).length, P = x ?? (t > 0 ? n("productHubTray.triggerLabel", {
|
|
366
|
+
count: t,
|
|
367
|
+
defaultValue: "What's new, {{count}} unseen updates"
|
|
368
|
+
}) : n("productHubTray.triggerLabelNone", "What's new")), U = fe(
|
|
369
|
+
t,
|
|
370
|
+
n("productHubTray.badgeCountOverflow", "99+")
|
|
371
|
+
), K = a.slice(0, Math.max(0, d)), A = !l && !i && K.length > 0, E = o && W(o) ? o : void 0, q = w(a);
|
|
372
|
+
q.current = a;
|
|
373
|
+
const B = w(u);
|
|
374
|
+
B.current = u;
|
|
375
|
+
const ee = G(
|
|
376
|
+
() => ({
|
|
377
|
+
open: () => g(!0),
|
|
378
|
+
close: () => g(!1),
|
|
379
|
+
getUnseenCount: () => B.current ?? q.current.filter((h) => h.unseen).length
|
|
380
|
+
}),
|
|
381
|
+
[g]
|
|
382
|
+
), D = w(null);
|
|
383
|
+
J(T, () => D.current, []), X(ie, ee, s);
|
|
384
|
+
let y;
|
|
385
|
+
return l ? y = /* @__PURE__ */ e(Z, { children: l }) : i ? y = /* @__PURE__ */ r(S, { children: [
|
|
386
|
+
/* @__PURE__ */ e(j, {}),
|
|
387
|
+
/* @__PURE__ */ e(j, {}),
|
|
388
|
+
/* @__PURE__ */ e(j, {})
|
|
389
|
+
] }) : K.length === 0 ? y = f ?? /* @__PURE__ */ e(ve, {}) : y = K.map((h) => /* @__PURE__ */ e(
|
|
390
|
+
Y,
|
|
391
|
+
{
|
|
392
|
+
item: h,
|
|
393
|
+
density: "tray",
|
|
394
|
+
locale: L,
|
|
395
|
+
onActivate: m
|
|
396
|
+
},
|
|
397
|
+
h.id
|
|
398
|
+
)), /* @__PURE__ */ e(
|
|
399
|
+
"div",
|
|
400
|
+
{
|
|
401
|
+
ref: D,
|
|
402
|
+
"data-component": "product-hub-tray",
|
|
403
|
+
"data-component-id": s,
|
|
404
|
+
className: [le({ size: c }), N].filter(Boolean).join(" "),
|
|
405
|
+
...H,
|
|
406
|
+
children: /* @__PURE__ */ r(C.Root, { open: k, onOpenChange: g, children: [
|
|
407
|
+
/* @__PURE__ */ e(C.Trigger, { asChild: !0, children: /* @__PURE__ */ e(
|
|
408
|
+
te,
|
|
409
|
+
{
|
|
410
|
+
icon: /* @__PURE__ */ e(V, {}),
|
|
411
|
+
intent: "outline",
|
|
412
|
+
size: c === "sm" ? "sm" : "md",
|
|
413
|
+
"aria-label": P,
|
|
414
|
+
"aria-haspopup": "dialog"
|
|
415
|
+
}
|
|
416
|
+
) }),
|
|
417
|
+
t > 0 ? /* @__PURE__ */ e(
|
|
418
|
+
"span",
|
|
419
|
+
{
|
|
420
|
+
"aria-hidden": "true",
|
|
421
|
+
"data-testid": "product-hub-tray-badge",
|
|
422
|
+
className: ue(),
|
|
423
|
+
children: U
|
|
424
|
+
}
|
|
425
|
+
) : null,
|
|
426
|
+
/* @__PURE__ */ e(C.Portal, { children: /* @__PURE__ */ r(
|
|
427
|
+
C.Content,
|
|
428
|
+
{
|
|
429
|
+
role: "dialog",
|
|
430
|
+
"aria-label": n("productHubTray.panelTitle", "What's new"),
|
|
431
|
+
side: M,
|
|
432
|
+
align: O,
|
|
433
|
+
sideOffset: 8,
|
|
434
|
+
collisionPadding: 16,
|
|
435
|
+
className: ce({ size: c }),
|
|
436
|
+
children: [
|
|
437
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)] ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: /* @__PURE__ */ e("h3", { className: "ds:m-0 type-title-card ds:text-[color:var(--foreground)]", children: n("productHubTray.panelTitle", "What's new") }) }),
|
|
438
|
+
/* @__PURE__ */ e(_, {}),
|
|
439
|
+
/* @__PURE__ */ e(
|
|
440
|
+
"div",
|
|
441
|
+
{
|
|
442
|
+
role: A ? "list" : void 0,
|
|
443
|
+
"data-max-visible": d,
|
|
444
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto ds:pt-[var(--spacing-xs)] ds:flex-1 ds:sm:flex-none ds:sm:[max-block-size:var(--product-hub-tray-max-block-size,24rem)]",
|
|
445
|
+
children: y
|
|
446
|
+
}
|
|
447
|
+
),
|
|
448
|
+
E ? /* @__PURE__ */ r(S, { children: [
|
|
449
|
+
/* @__PURE__ */ e(_, {}),
|
|
450
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:justify-center ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)]", children: /* @__PURE__ */ e(Q, { href: E, external: !0, children: n("productHubTray.openHub", "Open in Product Hub") }) })
|
|
451
|
+
] }) : null
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
) })
|
|
455
|
+
] })
|
|
456
|
+
}
|
|
457
|
+
);
|
|
458
|
+
}
|
|
459
|
+
);
|
|
460
|
+
ge.displayName = "ProductHubTray";
|
|
461
|
+
const he = {
|
|
462
|
+
id: "product-hub-panel",
|
|
463
|
+
capabilities: ["select_single"],
|
|
464
|
+
state: {
|
|
465
|
+
items: {
|
|
466
|
+
type: "Array<{ id: string; unseen: boolean }>",
|
|
467
|
+
descriptionKey: "ui.agent.productHubPanel.state.items",
|
|
468
|
+
description: "Currently-displayed releases. Ids + unseen flag only — no content.",
|
|
469
|
+
read: (s) => s.getItems()
|
|
470
|
+
},
|
|
471
|
+
unseenCount: {
|
|
472
|
+
type: "number",
|
|
473
|
+
descriptionKey: "ui.agent.productHubPanel.state.unseenCount",
|
|
474
|
+
description: "Number of displayed releases still marked unseen.",
|
|
475
|
+
read: (s) => s.getUnseenCount()
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
actions: {
|
|
479
|
+
select_item: {
|
|
480
|
+
safety: "read",
|
|
481
|
+
argsType: "{ id: string }",
|
|
482
|
+
descriptionKey: "ui.agent.productHubPanel.actions.selectItem",
|
|
483
|
+
description: "Activate the release with the given id (fires the host analytics hook).",
|
|
484
|
+
invoke: (s, a) => {
|
|
485
|
+
s.selectItem(a.id);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
domHooks: {
|
|
490
|
+
root: {
|
|
491
|
+
attr: "data-component",
|
|
492
|
+
value: "product-hub-panel",
|
|
493
|
+
description: "Marks the ProductHubPanel section."
|
|
494
|
+
},
|
|
495
|
+
instanceId: {
|
|
496
|
+
attr: "data-component-id",
|
|
497
|
+
sourceProp: "id",
|
|
498
|
+
description: "Sourced from the id prop. Required to address a specific panel from the agent."
|
|
499
|
+
},
|
|
500
|
+
item: {
|
|
501
|
+
attr: "data-update-id",
|
|
502
|
+
description: "Stable release id emitted on each rendered release row inside the panel."
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}, be = b(
|
|
506
|
+
[
|
|
507
|
+
"ds:flex ds:flex-col",
|
|
508
|
+
"ds:rounded-[var(--radius-md)]",
|
|
509
|
+
"ds:border ds:border-[color:var(--card-border)] ds:[.theme-accessible_&]:border-2",
|
|
510
|
+
"ds:bg-[color:var(--card)] ds:text-[color:var(--card-foreground)]",
|
|
511
|
+
"ds:overflow-hidden",
|
|
512
|
+
"ds:forced-colors:border-[CanvasText]"
|
|
513
|
+
].join(" "),
|
|
514
|
+
{
|
|
515
|
+
variants: {
|
|
516
|
+
surface: {
|
|
517
|
+
flat: "",
|
|
518
|
+
elevated: "ds:shadow-[var(--shadow-card)]"
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
defaultVariants: {
|
|
522
|
+
surface: "elevated"
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
), xe = F(
|
|
526
|
+
({
|
|
527
|
+
id: s,
|
|
528
|
+
items: a,
|
|
529
|
+
hubUrl: o,
|
|
530
|
+
loading: i = !1,
|
|
531
|
+
error: l,
|
|
532
|
+
title: u,
|
|
533
|
+
description: p,
|
|
534
|
+
maxVisible: m = 5,
|
|
535
|
+
emptyState: x,
|
|
536
|
+
onItemActivate: d,
|
|
537
|
+
locale: f,
|
|
538
|
+
surface: I = "elevated",
|
|
539
|
+
className: L,
|
|
540
|
+
...O
|
|
541
|
+
}, M) => {
|
|
542
|
+
const { t: c } = R(), N = u ?? c("productHubPanel.title", "What's new"), H = a.slice(0, Math.max(0, m)), T = o && W(o) ? o : void 0;
|
|
543
|
+
let n;
|
|
544
|
+
l ? n = /* @__PURE__ */ e(Z, { children: l }) : i ? n = /* @__PURE__ */ e("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-sm)] ds:pt-0", children: [0, 1, 2].map((t) => /* @__PURE__ */ e(j, { density: "panel" }, t)) }) : H.length === 0 ? n = x ?? /* @__PURE__ */ e("div", { className: "ds:p-[var(--spacing-md)]", children: /* @__PURE__ */ e(
|
|
545
|
+
se,
|
|
546
|
+
{
|
|
547
|
+
variant: "first-use",
|
|
548
|
+
size: "sm",
|
|
549
|
+
title: c("productHubPanel.emptyTitle", "No product updates yet"),
|
|
550
|
+
description: c(
|
|
551
|
+
"productHubPanel.emptyDescription",
|
|
552
|
+
"New releases and improvements will appear here."
|
|
553
|
+
)
|
|
554
|
+
}
|
|
555
|
+
) }) : n = /* @__PURE__ */ e(
|
|
556
|
+
"div",
|
|
557
|
+
{
|
|
558
|
+
role: "list",
|
|
559
|
+
"data-max-visible": m,
|
|
560
|
+
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:p-[var(--spacing-sm)] ds:pt-0",
|
|
561
|
+
children: H.map((t) => /* @__PURE__ */ e(
|
|
562
|
+
Y,
|
|
563
|
+
{
|
|
564
|
+
item: t,
|
|
565
|
+
density: "panel",
|
|
566
|
+
locale: f,
|
|
567
|
+
onActivate: d
|
|
568
|
+
},
|
|
569
|
+
t.id
|
|
570
|
+
))
|
|
571
|
+
}
|
|
572
|
+
);
|
|
573
|
+
const v = w(a);
|
|
574
|
+
v.current = a;
|
|
575
|
+
const g = G(
|
|
576
|
+
() => ({
|
|
577
|
+
getItems: () => v.current.map((t) => ({ id: t.id, unseen: !!t.unseen })),
|
|
578
|
+
getUnseenCount: () => v.current.filter((t) => t.unseen).length,
|
|
579
|
+
selectItem: (t) => {
|
|
580
|
+
const P = v.current.find((U) => U.id === t);
|
|
581
|
+
P && (d == null || d(P));
|
|
582
|
+
}
|
|
583
|
+
}),
|
|
584
|
+
[d]
|
|
585
|
+
), k = w(null);
|
|
586
|
+
return J(M, () => k.current, []), X(he, g, s), /* @__PURE__ */ r(
|
|
587
|
+
"section",
|
|
588
|
+
{
|
|
589
|
+
ref: k,
|
|
590
|
+
"aria-label": N,
|
|
591
|
+
"data-component": "product-hub-panel",
|
|
592
|
+
"data-component-id": s,
|
|
593
|
+
className: be({ surface: I, className: L }),
|
|
594
|
+
...O,
|
|
595
|
+
children: [
|
|
596
|
+
/* @__PURE__ */ r("header", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-2xs)] ds:p-[var(--spacing-md)] ds:pb-[var(--spacing-sm)]", children: [
|
|
597
|
+
/* @__PURE__ */ r("h2", { className: "ds:m-0 ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:text-start type-title-section ds:text-[color:var(--foreground)]", children: [
|
|
598
|
+
/* @__PURE__ */ e(V, { "aria-hidden": "true", className: "ds:size-5 ds:shrink-0" }),
|
|
599
|
+
N
|
|
600
|
+
] }),
|
|
601
|
+
p ? /* @__PURE__ */ e("p", { className: "ds:m-0 ds:text-start type-body-sm ds:text-[color:var(--muted-foreground)]", children: p }) : null
|
|
602
|
+
] }),
|
|
603
|
+
n,
|
|
604
|
+
T ? /* @__PURE__ */ r(S, { children: [
|
|
605
|
+
/* @__PURE__ */ e(_, {}),
|
|
606
|
+
/* @__PURE__ */ e("div", { className: "ds:flex ds:justify-center ds:p-[var(--spacing-sm)]", children: /* @__PURE__ */ e(Q, { href: T, external: !0, children: c("productHubPanel.openHub", "Open in Product Hub") }) })
|
|
607
|
+
] }) : null
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
);
|
|
613
|
+
xe.displayName = "ProductHubPanel";
|
|
614
|
+
export {
|
|
615
|
+
xe as P,
|
|
616
|
+
ge as a,
|
|
617
|
+
ie as b,
|
|
618
|
+
he as p
|
|
619
|
+
};
|
|
620
|
+
//# sourceMappingURL=product-hub-panel-CkfZBA3t.js.map
|