efficient-shell 10.15.0 → 10.17.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/README.md +14 -0
- package/dist/{Browser-WR4GMYE7.js → Browser-Q5BYSSW3.js} +14 -14
- package/dist/Calculator-6NJNSIRN.js +29 -0
- package/dist/{CurrencyConverter-HEAAQX23.js → CurrencyConverter-42IHLJVV.js} +9 -9
- package/dist/{Documents-NSPKXCTF.js → Documents-GGEPMWB5.js} +27 -27
- package/dist/Files-OVNXUYOV.js +88 -0
- package/dist/{Notepad-5LSFAYXO.js → Notepad-L2LOWTSE.js} +9 -9
- package/dist/{PdfViewer-LU5JKHSG.js → PdfViewer-Y3SAVADX.js} +1 -1
- package/dist/{PomodoroTimer-5V32QOCZ.js → PomodoroTimer-PD7POYX5.js} +19 -19
- package/dist/{Preview-PDVZZRSK.js → Preview-HM2Z3EJO.js} +30 -30
- package/dist/Sidebar-2HHICMZZ.js +44 -0
- package/dist/{Spreadsheet-K4IAI3A2.js → Spreadsheet-2E4TQ64O.js} +13 -13
- package/dist/{Stock-AOCHAKUF.js → Stock-IABQRSXZ.js} +3 -3
- package/dist/{Weather-F2QHTG32.js → Weather-4QPYOENN.js} +22 -22
- package/dist/{WorldClock-G72577HU.js → WorldClock-3ZVRBLEW.js} +6 -6
- package/dist/ai/index.d.ts +77 -2
- package/dist/ai/index.js +80 -62
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChartTooltip.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/chunk-22RQC4EW.js +20 -0
- package/dist/chunk-26RTJKHD.js +2 -0
- package/dist/{chunk-F2R3UFNQ.js → chunk-2E2SUEEE.js} +1 -1
- package/dist/chunk-2H6YNMBE.js +14 -0
- package/dist/{chunk-N2RHM432.js → chunk-2VGQS6CW.js} +1 -1
- package/dist/{chunk-B25RVAVS.js → chunk-2YSGXZOL.js} +63 -63
- package/dist/{chunk-SQCUN2DX.js → chunk-34URULVW.js} +1 -1
- package/dist/{chunk-5LCDCO46.js → chunk-3ELLBQPS.js} +1 -1
- package/dist/{chunk-M22B3Y5Y.js → chunk-3IUPYCW3.js} +1 -1
- package/dist/{chunk-NZQCDFDG.js → chunk-3NW5LD7D.js} +3 -3
- package/dist/{chunk-POQ4ETLL.js → chunk-3PR5YMWZ.js} +1 -1
- package/dist/{chunk-FGJOGBGZ.js → chunk-3UXXA2CS.js} +8 -8
- package/dist/{chunk-XDBG4HPV.js → chunk-4EZIWLJJ.js} +1 -1
- package/dist/{chunk-EYEB3J77.js → chunk-4HBSQGRI.js} +5 -5
- package/dist/{chunk-V2MIQ4GJ.js → chunk-4UKGVLFP.js} +2 -2
- package/dist/{chunk-EZEYKCI6.js → chunk-4ULRP4Y4.js} +1 -1
- package/dist/{chunk-FRVNDEV2.js → chunk-4WEFGKJL.js} +8 -8
- package/dist/{chunk-FUVVO6YP.js → chunk-54NMFQMW.js} +4 -4
- package/dist/{chunk-KJCTXWF7.js → chunk-5QGBVTGS.js} +2 -2
- package/dist/{chunk-LVBO2OMQ.js → chunk-5SIOCKCK.js} +1 -1
- package/dist/{chunk-OSVY6SUO.js → chunk-5TDQPZDB.js} +11 -11
- package/dist/chunk-5TQLUPZD.js +6 -0
- package/dist/{chunk-7PSIPTOE.js → chunk-5WYRAJ5F.js} +1 -1
- package/dist/chunk-67MQ5S32.js +8 -0
- package/dist/chunk-6JSXIEH2.js +4 -0
- package/dist/{chunk-36R3R3IB.js → chunk-6V4INP7J.js} +10 -10
- package/dist/{chunk-Q3IR5SKD.js → chunk-6XBWM453.js} +1 -1
- package/dist/{chunk-RFEET2LS.js → chunk-77AQNJE2.js} +8 -8
- package/dist/chunk-77MOYIQW.js +15 -0
- package/dist/{chunk-AKM6JBMD.js → chunk-7ELJQL7J.js} +1 -1
- package/dist/chunk-7INZ7O3A.js +5 -0
- package/dist/{chunk-G4JTO5PB.js → chunk-7JGR7WPD.js} +1 -1
- package/dist/{chunk-UPQW4GCT.js → chunk-7TZV6G2F.js} +1 -1
- package/dist/{chunk-A267MPGS.js → chunk-7VBXIIEC.js} +3 -3
- package/dist/{chunk-MCYFUIXH.js → chunk-A42MKJA3.js} +1 -1
- package/dist/{chunk-DKGZPVLL.js → chunk-AFYLVV74.js} +1 -1
- package/dist/{chunk-H4HB5OET.js → chunk-AWKJZSTO.js} +1 -1
- package/dist/{chunk-FFZREKEF.js → chunk-AYDW63LV.js} +7 -7
- package/dist/chunk-B23RG53S.js +14 -0
- package/dist/chunk-B3CN55UI.js +2 -0
- package/dist/{chunk-ZLSUQAD3.js → chunk-C6Y7B73Q.js} +1 -1
- package/dist/{chunk-QP4UPCXQ.js → chunk-C764JODK.js} +1 -1
- package/dist/{chunk-LEDUD23S.js → chunk-CLTRQ7AQ.js} +1 -1
- package/dist/chunk-CUHUZBFH.js +29 -0
- package/dist/chunk-CXYHFGUY.js +9 -0
- package/dist/{chunk-EHGGSUXA.js → chunk-DCRLJMQ6.js} +1 -1
- package/dist/chunk-DESWIPOZ.js +3 -0
- package/dist/{chunk-4XS32UWF.js → chunk-DGZAQXTW.js} +4 -4
- package/dist/{chunk-SP2AUVIU.js → chunk-DHIQ46C5.js} +3 -3
- package/dist/{chunk-IOJNSX4N.js → chunk-DQQKG46I.js} +7 -7
- package/dist/chunk-DYNJ2H6R.js +8 -0
- package/dist/{chunk-INNIWRVU.js → chunk-E6GDAV5R.js} +2 -2
- package/dist/{chunk-ID6WFAXW.js → chunk-ECJKIPWU.js} +1 -1
- package/dist/chunk-EJUNGVK2.js +22 -0
- package/dist/{chunk-3EJ64VKE.js → chunk-EN5NXWT6.js} +1 -1
- package/dist/{chunk-MCDM2G4W.js → chunk-EOWUUOVE.js} +1 -1
- package/dist/{chunk-S52GQQVB.js → chunk-EPY34L26.js} +1 -1
- package/dist/{chunk-AJVUND5A.js → chunk-FACWYKL6.js} +4 -4
- package/dist/{chunk-ZL5OSF26.js → chunk-FKRPQDFX.js} +19 -19
- package/dist/{chunk-4VTJEKHX.js → chunk-FOFZI62F.js} +1 -1
- package/dist/{chunk-IC7BEFE3.js → chunk-FS6EOU4G.js} +1 -1
- package/dist/{chunk-WZ5QSSUM.js → chunk-G4GVLK44.js} +6 -6
- package/dist/chunk-GDQJBQ5B.js +1 -0
- package/dist/{chunk-XJUREXYW.js → chunk-GEP4FROW.js} +1 -1
- package/dist/{chunk-5N5AAYQV.js → chunk-GISDIVFK.js} +1 -1
- package/dist/chunk-HJCUDXLV.js +1 -0
- package/dist/{chunk-ESYYKGN4.js → chunk-HJW67KA7.js} +1 -1
- package/dist/{chunk-NBB2RKDH.js → chunk-HV47GP2C.js} +5 -5
- package/dist/chunk-I33SVQ7P.js +8 -0
- package/dist/chunk-I4VIEGCX.js +2 -0
- package/dist/{chunk-KJ4CBZEQ.js → chunk-IMDGMUE3.js} +1 -1
- package/dist/{chunk-HNBGLF4B.js → chunk-JFV5CQN4.js} +1 -1
- package/dist/{chunk-7MSC3Z5H.js → chunk-JH4ZCPHW.js} +8 -8
- package/dist/chunk-JIGFR7Z3.js +11 -0
- package/dist/chunk-JNQKBN5M.js +7 -0
- package/dist/{chunk-OOLPDASG.js → chunk-JSG2AKCG.js} +1 -1
- package/dist/{chunk-6RX4PVBU.js → chunk-JTMEFXRL.js} +1 -1
- package/dist/{chunk-FQIA5BTN.js → chunk-JYIH2EBG.js} +7 -7
- package/dist/chunk-K4JQ3FQI.js +2 -0
- package/dist/{chunk-ULAGXDOL.js → chunk-LXL2UCUR.js} +1 -1
- package/dist/{chunk-PUBJ5YHQ.js → chunk-LYHJHUQH.js} +1 -1
- package/dist/chunk-MJGK6QTO.js +7 -0
- package/dist/{chunk-B37JVKW5.js → chunk-MNNZGO2E.js} +1 -1
- package/dist/{chunk-XTCXX5LJ.js → chunk-MS5APD3V.js} +1 -1
- package/dist/chunk-MUXGWDEH.js +2 -0
- package/dist/{chunk-S5SRXI4V.js → chunk-MVZRZTQP.js} +1 -1
- package/dist/{chunk-MMQ6ETRD.js → chunk-N67QX3WW.js} +2 -2
- package/dist/{chunk-G7QK7WAK.js → chunk-N6CS2FO2.js} +1 -1
- package/dist/{chunk-4U57ANZF.js → chunk-NFB7PARJ.js} +4 -4
- package/dist/{chunk-HRPXJ4EI.js → chunk-NNZFC4O7.js} +1 -1
- package/dist/{chunk-ZI6SMZJ4.js → chunk-NU5HN3FZ.js} +12 -12
- package/dist/{chunk-66XPG5G3.js → chunk-NVD4AI5Y.js} +1 -1
- package/dist/{chunk-YLGQ6ACR.js → chunk-O47HKK6E.js} +2 -2
- package/dist/{chunk-M5LR7ZZX.js → chunk-O6JJIR4H.js} +1 -1
- package/dist/{chunk-BJXDOM2N.js → chunk-OBJGUJIE.js} +1 -1
- package/dist/{chunk-AUWTGM65.js → chunk-OH5L6HYW.js} +3 -3
- package/dist/{chunk-XPPLCLYK.js → chunk-OORL6BIG.js} +1 -1
- package/dist/{chunk-CHAWFMV4.js → chunk-OP5DOO3K.js} +4 -4
- package/dist/{chunk-ZURB2DCM.js → chunk-OPN4I565.js} +1 -1
- package/dist/{chunk-7SMV6G4Z.js → chunk-ORIXCEKO.js} +1 -1
- package/dist/{chunk-TOVKWNI2.js → chunk-P3RXXWXN.js} +6 -6
- package/dist/{chunk-ON67HF5K.js → chunk-PCTOL2FX.js} +8 -8
- package/dist/chunk-PLK2WHZG.js +27 -0
- package/dist/chunk-PN5FQVMB.js +7 -0
- package/dist/chunk-PUF75SMJ.js +1 -0
- package/dist/{chunk-YFMZKTJC.js → chunk-PW52RXPI.js} +1 -1
- package/dist/chunk-QDKAA3HR.js +2 -0
- package/dist/{chunk-SOGQZVPJ.js → chunk-QHPVAXHR.js} +5 -5
- package/dist/chunk-QO5E33DH.js +8 -0
- package/dist/{chunk-ARCQYF7G.js → chunk-QRYSL6QU.js} +17 -17
- package/dist/{chunk-LPXMHYTM.js → chunk-QVZKRROQ.js} +1 -1
- package/dist/{chunk-EXJXOKUU.js → chunk-QYL26AB4.js} +1 -1
- package/dist/{chunk-5FRFSPQ2.js → chunk-RBBIAIPH.js} +8 -8
- package/dist/{chunk-GKIU55T5.js → chunk-REWKL7MX.js} +2 -2
- package/dist/{chunk-CFAELIKH.js → chunk-RT4WOEVS.js} +6 -6
- package/dist/{chunk-PB3OC4BO.js → chunk-RUGQO7YF.js} +10 -10
- package/dist/{chunk-AJFWBEIG.js → chunk-RVRDDTEG.js} +9 -9
- package/dist/{chunk-5LXT3IUL.js → chunk-RXCGE2AY.js} +1 -1
- package/dist/{chunk-KKOADH55.js → chunk-S74LKSUB.js} +1 -1
- package/dist/{chunk-QYRMFGES.js → chunk-SAP4YI2Y.js} +1 -1
- package/dist/{chunk-NWURIQI3.js → chunk-SDDV3UCN.js} +18 -18
- package/dist/{chunk-KEPJWZJZ.js → chunk-SL77N7VT.js} +3 -3
- package/dist/chunk-SLU45G5J.js +19 -0
- package/dist/{chunk-5RE6R3XC.js → chunk-SXNQHIBY.js} +1 -1
- package/dist/{chunk-GGK27H67.js → chunk-TGGUYAWA.js} +1 -1
- package/dist/chunk-TGXO3CDO.js +2 -0
- package/dist/{chunk-ZMRGHVKS.js → chunk-TKJBZIHT.js} +1 -1
- package/dist/chunk-TLMFVEMC.js +9 -0
- package/dist/{chunk-MQU3PZUS.js → chunk-TMMNCXQT.js} +1 -1
- package/dist/{chunk-EQZZ4V5X.js → chunk-TXDA7TTP.js} +1 -1
- package/dist/{chunk-ZL7O4KGQ.js → chunk-UDKTAG57.js} +1 -1
- package/dist/{chunk-UTWJKSET.js → chunk-UEISJFZH.js} +5 -5
- package/dist/{chunk-HL3DJTIC.js → chunk-UYRMW5MO.js} +7 -7
- package/dist/chunk-V6Y4OC6K.js +9 -0
- package/dist/{chunk-W5CJD54C.js → chunk-VAK5FQXH.js} +1 -1
- package/dist/{chunk-EK5WJQTR.js → chunk-VDUXPMOQ.js} +1 -1
- package/dist/{chunk-O7DW2BKY.js → chunk-VHF3CJVO.js} +28 -28
- package/dist/{chunk-OAT7OEWP.js → chunk-VIQ6OME2.js} +8 -8
- package/dist/{chunk-AJFR35CO.js → chunk-VN4KSRZ5.js} +4 -4
- package/dist/chunk-VQCSHJEF.js +6 -0
- package/dist/chunk-VWIYC2NB.js +13 -0
- package/dist/{chunk-UPCLAEKC.js → chunk-W3OWPBQL.js} +2 -2
- package/dist/chunk-WRQ4A5QY.js +1 -0
- package/dist/{chunk-NZCSLS4O.js → chunk-WTYQF7XJ.js} +3 -3
- package/dist/{chunk-N4REWGMM.js → chunk-WYFMSL4Q.js} +8 -8
- package/dist/{chunk-55W5TTKS.js → chunk-XCHAU2UN.js} +5 -5
- package/dist/chunk-XGJQVIEG.js +2 -0
- package/dist/{chunk-UWIFXNH6.js → chunk-XLWMM53L.js} +3 -3
- package/dist/{chunk-VKKK4WLS.js → chunk-XQZL6JDD.js} +6 -6
- package/dist/{chunk-JEH5EVIG.js → chunk-XSJHN2GD.js} +1 -1
- package/dist/chunk-XYBI57KO.js +12 -0
- package/dist/{chunk-3AH524CN.js → chunk-XYECIBVX.js} +1 -1
- package/dist/{chunk-TXNCDDB4.js → chunk-Y62TTKSY.js} +3 -3
- package/dist/{chunk-6C6TRDNI.js → chunk-YG2TWBDH.js} +1 -1
- package/dist/{chunk-U2WCV56F.js → chunk-YILGAEW3.js} +1 -1
- package/dist/chunk-YJ5IHIAI.js +2 -0
- package/dist/{chunk-LWEWURFT.js → chunk-YJXS7BR5.js} +13 -13
- package/dist/{chunk-NBVHJZVS.js → chunk-YQFGRYEF.js} +12 -12
- package/dist/{chunk-N3YBOXOF.js → chunk-YSDPFDAG.js} +1 -1
- package/dist/{chunk-SSM3EN7G.js → chunk-Z5A4EY2R.js} +1 -1
- package/dist/{chunk-ZW3IDCP2.js → chunk-ZGOHRLXG.js} +1 -1
- package/dist/{chunk-2RAOWHHM.js → chunk-ZHAWOZA7.js} +12 -12
- package/dist/chunk-ZQKA2XKH.js +12 -0
- package/dist/data/DataTable.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.d.ts +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/TimePicker.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +2 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +4 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +2 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +2 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/SeparatorSlashIcon.d.ts +8 -0
- package/dist/icons/glyphs/SeparatorSlashIcon.js +1 -0
- package/dist/icons/glyphs/SeparatorTriangleIcon.d.ts +8 -0
- package/dist/icons/glyphs/SeparatorTriangleIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/SeparatorSlashMiniIcon.d.ts +8 -0
- package/dist/icons/looks/SeparatorSlashMiniIcon.js +1 -0
- package/dist/icons/looks/SeparatorSlashSolidIcon.d.ts +8 -0
- package/dist/icons/looks/SeparatorSlashSolidIcon.js +1 -0
- package/dist/icons/looks/SeparatorTriangleMiniIcon.d.ts +8 -0
- package/dist/icons/looks/SeparatorTriangleMiniIcon.js +1 -0
- package/dist/icons/looks/SeparatorTriangleSolidIcon.d.ts +8 -0
- package/dist/icons/looks/SeparatorTriangleSolidIcon.js +1 -0
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +300 -300
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +4 -4
- package/dist/{names-Bmx_9y41.d.ts → names-CkQuQ47O.d.ts} +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/FloatingBar.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +6 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-MV5JVQBS.js +0 -29
- package/dist/Files-5HAUE2PR.js +0 -88
- package/dist/Sidebar-E3VDFBF6.js +0 -44
- package/dist/chunk-25M7CYCR.js +0 -9
- package/dist/chunk-2JG5JU4M.js +0 -8
- package/dist/chunk-3GHTOSJP.js +0 -14
- package/dist/chunk-4AQ67NP2.js +0 -15
- package/dist/chunk-4PAWQEXM.js +0 -1
- package/dist/chunk-5JU53T3U.js +0 -27
- package/dist/chunk-6BB6A5OB.js +0 -6
- package/dist/chunk-6WSH6D5N.js +0 -29
- package/dist/chunk-7LQGPMRP.js +0 -3
- package/dist/chunk-CDA2VXBN.js +0 -8
- package/dist/chunk-CNLYFW47.js +0 -9
- package/dist/chunk-EFU4Z66K.js +0 -8
- package/dist/chunk-FJYTYW6M.js +0 -7
- package/dist/chunk-FX6DBXXD.js +0 -1
- package/dist/chunk-HXNMRJQ4.js +0 -2
- package/dist/chunk-IFA2EOAF.js +0 -4
- package/dist/chunk-KMEERBZV.js +0 -2
- package/dist/chunk-KORKSPHQ.js +0 -6
- package/dist/chunk-LWWMRL2Y.js +0 -5
- package/dist/chunk-M4K6FLIY.js +0 -1
- package/dist/chunk-NLGMJGD6.js +0 -14
- package/dist/chunk-OET2Q7P6.js +0 -19
- package/dist/chunk-RSS2ALHH.js +0 -9
- package/dist/chunk-SCYL5V5X.js +0 -20
- package/dist/chunk-SM7IDX7Y.js +0 -1
- package/dist/chunk-TIPU74XW.js +0 -22
- package/dist/chunk-UUKTYAWY.js +0 -7
- package/dist/chunk-V6F42DX3.js +0 -11
- package/dist/chunk-VWEG2WM4.js +0 -12
- package/dist/chunk-XIB72X74.js +0 -2
- package/dist/chunk-ZE5TNYWX.js +0 -7
- package/dist/chunk-ZHPHNQKM.js +0 -13
- package/dist/chunk-ZO244TWH.js +0 -8
- package/dist/chunk-ZZTCYEQ4.js +0 -12
- /package/dist/{chunk-6V6ANLHW.js → chunk-Y2AGVGOP.js} +0 -0
package/dist/chunk-TIPU74XW.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{stepPath as t,curvePath as e,areaBetween as a,areaFrom as r}from"./chunk-VFC6QUEN.js";import{ChartDefs as o,MOTION as l,stagger as n,fillFor as i,dashFor as s,maskId as c}from"./chunk-465RRWBY.js";import{ChartSkeleton as d}from"./chunk-M22B3Y5Y.js";import{useHighlight as m,highlightOpacity as h}from"./chunk-CNYAHYE6.js";import{ChartTooltip as u}from"./chunk-WZ5QSSUM.js";import{useDragZoom as f,DragBand as p,ChartZoomSummary as g,tooltipBesideBand as y}from"./chunk-QP4UPCXQ.js";import{pairedAxes as k,niceAxis as x,niceMax as v,linearScale as b,axisGutter as M,bandScale as N,ladderScale as w}from"./chunk-2JWPNR2U.js";import{usePlotWidth as j}from"./chunk-MAFUXCPZ.js";import{ChartBrush as $}from"./chunk-INNIWRVU.js";import{ChartDot as V}from"./chunk-CK2YOGUS.js";import{resolveSeriesColor as W,CHART_INK as z,STATUS_VARS as A}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as S}from"./chunk-TWVUQUUD.js";import{useShellStrings as R,useShellLocale as C}from"./chunk-4PAWQEXM.js";import{formatPercent as E,formatPlain as L}from"./chunk-C3QOHMR6.js";import{useRef as U,useState as D,useId as P,useEffect as I}from"react";import{jsx as T,jsxs as Q}from"react/jsx-runtime";var Y=12,B=16,F=26,O=52,X=t=>"number"==typeof t&&Number.isFinite(t);function Z({series:Z,labels:H,height:K=200,stacked:G=!1,stackMode:J="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const $t=R().charts,Vt=C(),Wt=rt??(t=>L(t,Vt)),zt=ot??Wt,At=jt??$t.noData,St=U(null),Rt=j(St),Ct=Nt??Rt,[Et,Lt]=D(null),[Ut,Dt]=D(null),{highlighted:Pt}=m(),It=P(),Tt=ut??Ut,Qt=f(ht&&Tt?Tt[1]-Tt[0]+1:H.length,pt);if(I(()=>{if(null!==Et)return S(t=>"Escape"===t.key&&(Lt(null),!0))},[Et]),kt)/* @__PURE__ */
|
|
2
|
-
return T("div",{className:wt,ref:St,children:/* @__PURE__ */T(d,{height:K,width:Nt??Rt})});const Yt=H,Bt=ut??Ut??[0,Math.max(0,Yt.length-1)],[Ft,Ot]=Bt,Xt=t=>Qt.slice(ht?t.slice(Ft,Ot+1):t),Zt=lt?Xt(lt):void 0,Ht=Z.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(X)).map(t=>({...t,data:Xt(t.data),pointTones:t.pointTones?Xt(t.pointTones):void 0})),Kt=t=>(ht?Ft:0)+(Qt.view?.[0]??0)+t;if(H=Xt(Yt),0===Ht.length||0===H.length)/* @__PURE__ */
|
|
3
|
-
return T("div",{className:wt,ref:St,children:/* @__PURE__ */T("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:K},children:At})});const Gt=H.map((t,e)=>Ht.reduce((t,a)=>t+(X(a.data[e])?a.data[e]:0),0)),Jt=(t,e)=>Gt[e]>0?t/Gt[e]:null,qt=[];if(G){let t=H.map(()=>0);for(const e of Ht)t=t.map((t,a)=>t+(X(e.data[a])?e.data[a]:0)),qt.push("percent"===J?t.map((t,e)=>Jt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!G&&!_t&&void 0===et&&Ht.some(te)&&Ht.some(t=>!te(t)),ae=gt&&!G?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Ht.filter(t=>!te(t)):Ht).filter(t=>!re(t)),le=ee?Ht.filter(te).flatMap(t=>t.data.filter(X)):[],ne=G?(qt.at(-1)??[]).filter(X):oe.flatMap(t=>t.data.filter(X)),ie=ee?k([Math.min(0,...ne),Math.max(0,...ne)],[Math.min(0,...le),Math.max(0,...le)],{intervals:at+1,integerLeft:ne.every(Number.isInteger),integerRight:le.every(Number.isInteger)}):null,se=ie?ie.left:G&&"percent"===J||_t||void 0!==et?null:x(G?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=G&&"percent"===J?1:se?se.hi:et??v(Math.max(...ne,0)),me=G&&"percent"===J?t=>E(Math.round(100*t),0,Vt):Wt,he=_t?q:se?se.ticks:b([ce,de],{from:0,to:1}).ticks(at+1),ue=M(he.map(me),O),fe=ie?M(ie.right.ticks.map(Wt),B):B,pe={left:ue,right:Math.max(ue+1,Ct-fe),top:Y,bottom:K-F},ge=N(H.length,{from:pe.left,to:pe.right}),ye=_t?w(q,{from:pe.bottom,to:pe.top}):null,ke=b([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Ht.filter(re),Me=Math.max(0,...H.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,X(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?b([ie.right.lo,ie.right.hi],{from:pe.bottom,to:pe.top}):null,je=t=>we&&te(t)?we:ve,$e=ye?ye.levels.map(t=>({value:t,y:ye(t)})):he.map(t=>({value:t,y:ke(t)})),Ve=t=>e=>{e.preventDefault(),Lt(e=>{const a=(e??0)+t;return Math.min(H.length-1,Math.max(0,a))})},We=Math.max(1,Math.ceil(H.length/Math.max(1,Math.floor(Ct/96))));/* @__PURE__ */
|
|
4
|
-
return Q("div",{className:`relative ${wt??""}`,ref:St,children:[
|
|
5
|
-
/* @__PURE__ */Q("svg",{width:"100%",height:K,viewBox:`0 0 ${Ct} ${K}`,role:"img","aria-label":$t.overIntervals(Ht.map(t=>t.label),H.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Lt(null),onBlur:()=>Lt(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==Et&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Kt(Et));"ArrowRight"===t.key&&Ve(1)(t),"ArrowLeft"===t.key&&Ve(-1)(t)},children:[
|
|
6
|
-
/* @__PURE__ */T("defs",{children:/* @__PURE__ */T("clipPath",{id:It,children:/* @__PURE__ */T("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
|
|
7
|
-
/* @__PURE__ */T(o,{id:It,fills:Ht.map((t,e)=>({color:W(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:G?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */T("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:z.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
|
|
8
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:z.axis,strokeWidth:1,shapeRendering:"crispEdges"}),$e.map(t=>/* @__PURE__ */T("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:me(t.value)},`ytick-${t.value}`)),ie&&$e.map((t,e)=>/* @__PURE__ */T("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */T("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:z.label,children:nt}),
|
|
9
|
-
/* @__PURE__ */T("g",{clipPath:`url(#${It})`,mask:xt&&vt?`url(#${c(It)})`:void 0,children:Ht.map((o,c)=>{const d=W(o.slot,o.color,o.tone),m=o.mode??(G?"area":"line"),u=h(o.key,Pt);if("step"===m){const e=H.map((t,e)=>({start:ge(e),end:ge.end(e),value:o.data[e]})).filter(t=>X(t.value)).map(t=>({start:t.start,end:t.end,y:je(o)(t.value)}));/* @__PURE__ */
|
|
10
|
-
return T("path",{d:t(e),fill:"none",stroke:d,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:u??void 0,className:"rosh-viz-mark"},o.key)}const f=H.map((t,e)=>{const a=G?qt[c]?.[e]:o.data[e];return X(a)?[ge.center(e),je(o)(a)]:null}).filter(t=>null!==t);if(0===f.length)return null;if("column"===m){const t=Math.max(1,.62*ge.bandwidth),e="solid"===o.fillVariant,a=je(o);return re(o)?/* @__PURE__ */T("g",{opacity:u??void 0,className:"rosh-viz-mark",children:H.map((a,r)=>{const l=o.data[r];if(!X(l)||l<=0)return null;const n=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Ht[t]?.key)).reduce((t,a)=>t+Math.max(0,X(a.data[e])?a.data[e]:0),0))(c,r),i=Ne(n+l),s=Ne(n)-(n>0?1:0);/* @__PURE__ */
|
|
11
|
-
return T("rect",{x:ge.center(r)-t/2,y:i,width:t,height:Math.max(0,s-i),rx:2,fill:o.pointTones?.[r]?A[o.pointTones[r]]:d,fillOpacity:e?1:.55},r)})},o.key):/* @__PURE__ */T("g",{opacity:u??void 0,className:"rosh-viz-mark",children:H.map((r,i)=>{const s=G?qt[c]?.[i]:o.data[i];if(!X(s))return null;const m=a(s);/* @__PURE__ */
|
|
12
|
-
return T("rect",{x:ge.center(i)-t/2,y:Math.min(m,xe),width:t,height:Math.abs(xe-m),rx:2,fill:d,fillOpacity:e?1:.35,className:xt?l.rise:void 0,style:xt?n(i,26):void 0},i)})},o.key)}const p=e(f,_,tt),g=G&&c>0?H.map((t,e)=>[ge.center(e),ve(qt[c-1]?.[e]??0)-2]):null,y=g?a(p,g):r(p,f,xe);/* @__PURE__ */
|
|
13
|
-
return Q("g",{opacity:u??void 0,className:"rosh-viz-mark",children:[("area"===m||G)&&
|
|
14
|
-
/* @__PURE__ */T("path",{d:y,fill:i(It,c,o.fillVariant??bt,d),stroke:"none"}),
|
|
15
|
-
/* @__PURE__ */T("path",{d:p,fill:"none",stroke:d,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:s(o.stroke??(o.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===o.stroke||o.forecast&&!o.stroke)?l.march:void 0})]},o.key)})}),it?.map((t,e)=>{const a=t.color??A[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
|
|
16
|
-
return Q("g",{children:[
|
|
17
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */T("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Ht.map((t,e)=>{if("column"===t.mode)return null;const a=ct??(st?"last":"none"),r=W(t.slot,t.color,t.tone),o=[...t.data].map(X).lastIndexOf(!0),l="all"===a?H.map((t,e)=>e).filter(a=>X(G?qt[e]?.[a]:t.data[a])):o>=0?[o]:[];/* @__PURE__ */
|
|
18
|
-
return Q("g",{children:[l.map(a=>{const l=G?qt[e]?.[a]:t.data[a];return X(l)?/* @__PURE__ */T(V,{cx:ge.center(a),cy:je(t)(l),color:r,variant:dt,pulse:mt&&a===o,title:`${H[a]}: ${t.label} ${Wt(l)}`},a):null}),st&&o>=0&&X(G?qt[e]?.[o]:t.data[o])&&/* @__PURE__ */T("text",{x:ge.center(o)-10,y:je(t)(G?qt[e]?.[o]:t.data[o])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(G?qt[e]?.[o]:t.data[o])})]},`dots-${t.key}`)}),H.map((t,e)=>e%We===0?/* @__PURE__ */T("text",{x:ge.center(e),y:K-8,textAnchor:"middle",fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Et&&/* @__PURE__ */T("line",{x1:ge.center(Et),y1:pe.top,x2:ge.center(Et),y2:pe.bottom,stroke:z.axis,strokeWidth:1}),ae&&Me>0&&
|
|
19
|
-
/* @__PURE__ */Q("g",{pointerEvents:"none","data-column-strip":"true",children:[
|
|
20
|
-
/* @__PURE__ */T("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:z.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
|
|
21
|
-
/* @__PURE__ */T("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:z.label,style:{fontVariantNumeric:"tabular-nums"},children:Wt(Me)})]}),Qt.drag&&/* @__PURE__ */T(p,{x0:ge(Qt.drag[0]),x1:ge(Qt.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),H.map((t,e)=>/* @__PURE__ */T("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Lt(e),onPointerDown:()=>Qt.press(e),onPointerEnter:()=>Qt.over(e),onPointerUp:Qt.release,onClick:yt?()=>yt(Kt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Qt.view&&/* @__PURE__ */T(g,{from:Zt?.[0]??H[0],to:Zt?.at(-1)??H[H.length-1],count:H.length,total:G&&"percent"!==J?zt(Gt.reduce((t,e)=>t+e,0)):ae?zt(be.reduce((t,e)=>t+e.data.filter(X).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Ht).filter(t=>t.data.some(X)).map(t=>{const e=t.data.filter(X),a=W(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=G||"column"===t.mode?zt(r):$t.zoomLevel(zt(r/e.length),zt(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Qt.clear}),ht&&Yt.length>2&&/* @__PURE__ */T($,{className:"mt-1",labels:Yt,width:Ct,data:Z[0]?.data??[],range:Bt,onRangeChange:t=>{ft?ft(t):Dt(t)}}),null!==Et&&
|
|
22
|
-
/* @__PURE__ */T("div",{className:"pointer-events-none absolute top-2 z-10",style:y(ge.center(Et),ge.bandwidth,Ct),children:/* @__PURE__ */T(u,{title:Zt?.[Et]??H[Et],rows:Ht.map((t,e)=>({key:t.key,label:t.label,color:W(t.slot,t.color,t.tone),value:X(t.data[Et])?G&&"percent"===J?`${E(100*(Jt(t.data[Et],Et)??0),1,Vt)} · ${zt(t.data[Et])}`:zt(t.data[Et]):void 0})),footnote:G&&"percent"===J?$t.inBucket(zt(Gt[Et])):void 0})})]})}export{Z as TimeSeriesChart};
|
package/dist/chunk-UUKTYAWY.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-ZMRGHVKS.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-WZ5QSSUM.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-4PAWQEXM.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:M}){const j=n().charts,w=m(),N=y??(e=>h(e,w)),$=M??j.nothingToBreakDown,S=c(null),A=r(S),C=v??A,[Z,z]=u(null),{highlighted:B}=l(),E=e(p,C,d);if(0===E.length)/* @__PURE__ */
|
|
2
|
-
return s("div",{className:b,ref:S,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const F=k??i(0),G=Math.max(...E.map(e=>e.value),1),H=e=>34+e/G*62,P=e=>`color-mix(in oklab, ${F} ${H(e).toFixed(0)}%, ${o.surface})`,Q=e=>H(e)>=55?o.surface:o.label,R=Z??B,U=Z?E.find(e=>e.key===Z):void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${b??""}`,ref:S,children:[
|
|
4
|
-
/* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${C} ${d}`,role:"img","aria-label":j.treemap(p.length),onMouseLeave:()=>z(null),children:E.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
|
|
5
|
-
return f("g",{opacity:R&&R!==e.key?.55:1,onMouseEnter:()=>z(e.key),children:[
|
|
6
|
-
/* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:P(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:Q(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:Q(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),U&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:U.label,rows:[{key:"value",label:j.value,color:P(U.value),value:N(U.value)}]})}),
|
|
7
|
-
/* @__PURE__ */s(t,{caption:j.treemap(p.length),head:[j.tableItem,j.value],rows:E.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
|
package/dist/chunk-V6F42DX3.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as e}from"./chunk-WZ5QSSUM.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as l,CHART_INK as r}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as n}from"./chunk-TWVUQUUD.js";import{useShellStrings as i,useShellLocale as a}from"./chunk-4PAWQEXM.js";import{formatPlain as o}from"./chunk-C3QOHMR6.js";import{useRef as h,useId as c,useState as s,useEffect as m}from"react";import{jsx as f,jsxs as u}from"react/jsx-runtime";function x({rows:x,columns:d,cells:p,height:M,width:g,color:y,max:v,formatValue:$,label:b,className:k,emptyLabel:w,cellGap:A=2,cellRadius:N=2}){const j=i().charts,U=a(),S=$??(e=>o(e,U)),z=b??j.intensity,C=w??j.noActivity,D=h(null),F=t(D),Q=g??F,R=c(),[E,L]=s(null);if(m(()=>{if(null!==E)return n(e=>"Escape"===e.key&&(L(null),!0))},[E]),0===x.length||0===d.length)/* @__PURE__ */
|
|
2
|
-
return f("div",{className:k,ref:D,children:/* @__PURE__ */f("p",{className:"py-8 text-center text-sm text-gray-500",children:C})});const V=y??l(0),W=v??Math.max(1,...p.flat().filter(Number.isFinite)),Z=96,B=26*x.length,G=M??B+26+26,P=Math.max(2,(Math.max(97,Q)-Z)/d.length),T=e=>{const t=W>0?Math.max(0,Math.min(1,e/W)):0;return`color-mix(in oklab, ${V} ${(8+92*t).toFixed(1)}%, ${r.surface})`};/* @__PURE__ */
|
|
3
|
-
return u("div",{className:`relative ${k??""}`,ref:D,children:[
|
|
4
|
-
/* @__PURE__ */u("svg",{width:"100%",height:G,viewBox:`0 0 ${Q} ${G}`,role:"img","aria-label":j.heatmap(z,x.length,d.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>L(null),onBlur:()=>L(null),onKeyDown:e=>{const t="ArrowDown"===e.key?1:"ArrowUp"===e.key?-1:0,l="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0;0===t&&0===l||(e.preventDefault(),L(e=>({r:Math.min(x.length-1,Math.max(0,(e?.r??0)+t)),c:Math.min(d.length-1,Math.max(0,(e?.c??0)+l))})))},children:[
|
|
5
|
-
/* @__PURE__ */f("defs",{children:/* @__PURE__ */u("linearGradient",{id:R,x1:"0",x2:"1",children:[
|
|
6
|
-
/* @__PURE__ */f("stop",{offset:"0",stopColor:T(0)}),
|
|
7
|
-
/* @__PURE__ */f("stop",{offset:"1",stopColor:T(W)})]})}),x.map((e,t)=>/* @__PURE__ */f("text",{x:86,y:26*t+13+4,textAnchor:"end",fontSize:11,fill:r.label,children:e},`r${t}`)),x.map((e,t)=>d.map((l,r)=>{const n=p[t]?.[r]??0,i=E&&(E.r!==t||E.c!==r);/* @__PURE__ */
|
|
8
|
-
return f("rect",{x:Z+r*P+A/2,y:26*t+A/2,width:Math.max(1,P-A),height:26-A,rx:N,fill:T(n),opacity:i?.55:1,onMouseEnter:()=>L({r:t,c:r}),children:/* @__PURE__ */f("title",{children:`${e} · ${l}: ${S(n)}`})},`${t}-${r}`)})),d.map((e,t)=>t%Math.max(1,Math.ceil(d.length/Math.max(1,Math.floor((Q-Z)/56))))===0?/* @__PURE__ */f("text",{x:Z+t*P+P/2,y:B+15,textAnchor:"middle",fontSize:11,fill:r.label,children:e},`c${t}`):null),
|
|
9
|
-
/* @__PURE__ */f("rect",{x:Z,y:B+26,width:Math.min(180,Math.max(40,Q-Z)),height:8,rx:4,fill:`url(#${R})`}),
|
|
10
|
-
/* @__PURE__ */f("text",{x:Z,y:B+48,fontSize:11,fill:r.label,children:"0"}),
|
|
11
|
-
/* @__PURE__ */f("text",{x:Z+Math.min(180,Math.max(40,Q-Z)),y:B+48,textAnchor:"end",fontSize:11,fill:r.label,style:{fontVariantNumeric:"tabular-nums"},children:S(W)})]}),E&&/* @__PURE__ */f("div",{className:"pointer-events-none absolute top-1 right-1 z-10",children:/* @__PURE__ */f(e,{title:`${x[E.r]} · ${d[E.c]}`,rows:[{key:"v",label:z,color:V,value:null==p[E.r]?.[E.c]?void 0:S(p[E.r][E.c])}]})})]})}export{x as HeatmapChart};
|
package/dist/chunk-VWEG2WM4.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as i}from"./chunk-LJN77RG6.js";import{INPUT_BASE_ON as a,INPUT_BASE as s}from"./chunk-AYZY3YNC.js";import{Button_default as u}from"./chunk-HXNMRJQ4.js";import{Tooltip as c}from"./chunk-Q3IR5SKD.js";import{onOverlayOpen as d}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as p,MENU_MAX_HEIGHT as m}from"./chunk-GLUJS42B.js";import{GLASS_DIVIDER as f,glassStyle as b}from"./chunk-F27JJHNJ.js";import{registerModalEscapeInterceptor as g}from"./chunk-TWVUQUUD.js";import{useBrowserLayoutEffect as v}from"./chunk-D65T4H6J.js";import{LoadingSpinner as y}from"./chunk-R2VKEMZH.js";import{useShellStrings as w}from"./chunk-4PAWQEXM.js";import{useState as x,useId as k,useRef as $,useMemo as N,useEffect as j}from"react";import{createPortal as D}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function R(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}function W({onClear:e,ariaLabel:t}){/* @__PURE__ */
|
|
2
|
-
return S("button",{type:"button","aria-label":t,onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity text-base leading-none",children:"×"})}function L(L){const{options:M,placeholder:E,emptyOptionLabel:F,className:z="",disabled:J,id:T,filter:A=!1,allowFreeText:H=!1,freeTextOption:O,onSearchChange:I,loading:U=!1,error:B,onRetry:Q,rightAdornment:G,renderOption:K,clearable:P=!0,"aria-label":X,"aria-labelledby":Y,"aria-describedby":V}=L,Z=!0===L.multiple,q=L.multiple?L.value:L.value?[L.value]:[],_=L.multiple?"":L.value,ee=e=>{L.multiple?L.onChange(e):L.onChange(e[0]??"")},te=q.length>0,ne=A&&te&&!J,re=Z||A,le=null!=O,oe=H||le,[ie,ae]=x(!1),[se,ue]=x(-1),ce=k(),de=T??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),be=w(),ge=F??be.select.none,ve=e=>{fe(e),ue(-1),I?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ie);$e.current=ie;const Ne=$(!1),je=e=>{$e.current&&($e.current=!1,e&&H&&!le&&Pe&&(Z?q.includes(Pe)||ee([...q,Pe]):Pe!==_&&ee([Pe])),ae(!1),ve(""))},De=(e,t)=>{if(!e.disabled){if(Z)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Xe?ve(""):ue(t));ee([e.value]),je(!1)}},[Ce,Se]=x(null);v(()=>{if(!G||ie)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Fe?32:8)+6:null)});const Re=p(we,ie,re?{popupRef:xe}:{matchTriggerWidth:!0}),We=N(()=>t(M),[M]),Le=q.join("\0"),Me=N(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of We)q.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(oe)for(const n of q)t.has(n)||e.push(n);return e},[We,Le,oe]),Ee=Me.join(", "),Fe=P&&te&&!J,[ze,Je]=x(null),Te=$(null),Ae=$(""),He=$(()=>{});He.current=()=>{const e=we.current,t=Te.current;if(!Z||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Me.join("\0")}`;if(o===Ae.current)return;Ae.current=o;let i=null;r>0&&Me.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,i=R(Me,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Je(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},v(()=>{He.current()}),j(()=>{const e=we.current;if(!Z||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>He.current());return t.observe(e),()=>t.disconnect()},[Z]);const Oe=Me.length,Ie=!Z||!ze||ze.shown>=Oe?Ee:0===ze.shown?be.select.selectedCount(Oe):`${Me.slice(0,ze.shown).join(", ")} +${Oe-ze.shown}`,Ue=Z&&null!==ze&&(ze.shown<Oe||ze.cut),Be=ie&&te&&re;j(()=>{if(!ie)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||je(!0)};document.addEventListener("mousedown",e);const t=d(()=>je(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ie,H,me,Le,L.onChange]),j(()=>{if(ie)return g(e=>!("Escape"!==e.key||!$e.current)&&(je(!1),we.current?.blur(),!0),()=>xe.current)},[ie]);const Qe=N(()=>{const e=/* @__PURE__ */new Set;return n(M,t=>!e.has(t.value)&&(e.add(t.value),!0))},[M]),Ge=N(()=>{if(I)return Qe;const e=me.trim().toLowerCase();return e?n(Qe,t=>r(t,e)):Qe},[Qe,me,I]),Ke=N(()=>t(Ge),[Ge]),Pe=me.trim(),Xe=N(()=>le&&Pe?We.some(e=>e.label===Pe)||q.includes(Pe)?null:{value:Pe,label:Pe}:null,[le,Pe,We,Le]),Ye=N(()=>Xe?[...Ke,Xe]:Ke,[Ke,Xe]);/* @__PURE__ */
|
|
3
|
-
return C("div",{ref:ye,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(ye.current?.contains(t)||xe.current?.contains(t))||Ne.current||document.activeElement!==we.current&&je(!0)},children:[(Ve=/* @__PURE__ */S("input",{id:de,ref:we,type:"text",autoComplete:"off",role:"combobox","aria-expanded":ie,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":ie?he:void 0,"aria-activedescendant":ie&&se>=0&&se<Ye.length?pe(se):void 0,"aria-label":Y?void 0:X,"aria-labelledby":Y,"aria-describedby":V,value:ie?me:Ie,onChange:e=>{ve(e.target.value),ae(!0)},onFocus:()=>{J||(ve(""),ae(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(J)return;if(t.preventDefault(),!ie)return void ae(!0);if(0===Ye.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Ye,t,n))}"Enter"===t.key?(t.preventDefault(),ie&&se>=0&&se<Ye.length?De(Ye[se],se):1!==Ke.length||Ke[0].disabled?H&&!le&&Pe&&(Z?(q.includes(Pe)||ee([...q,Pe]),ve("")):(ee([Pe]),je(!1),we.current?.blur())):De(Ke[0],0)):"Escape"===t.key?(je(!1),we.current?.blur()):"Tab"===t.key&&je(!0)},placeholder:Be?Ie:E||ge,className:`${ne?a:s} ${z} ${Fe?"pr-8":""} ${J?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Be?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:J}),Z?/* @__PURE__ */S(c,{content:!ie&&Ue?Ee:null,className:"block",children:Ve}):Ve),Z&&
|
|
4
|
-
/* @__PURE__ */S("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */S("span",{ref:Te,className:"whitespace-pre"})}),Fe&&/* @__PURE__ */S(W,{ariaLabel:be.select.clear,onClear:()=>{ee([]),je(!1)}}),G&&!ie&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Fe?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:G}),ie&&D(
|
|
5
|
-
/* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{Ne.current=!0,setTimeout(()=>{Ne.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:h.popup,left:Re?.left,right:Re?.right,top:Re?.top,bottom:Re?.bottom,minWidth:Re?.minWidth,width:Re?.width,...re&&{maxWidth:Re?.maxWidth},visibility:Re?void 0:"hidden",...b()},children:[Z&&te&&P&&!J&&
|
|
6
|
-
/* @__PURE__ */S("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ee([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-row-hover border-b ${f}`,children:be.select.clearAll}),U?
|
|
7
|
-
/* @__PURE__ */S(y,{size:"sm",padding:"py-2",label:be.search.searching}):B?/* @__PURE__ */C("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
|
|
8
|
-
/* @__PURE__ */S("span",{className:"min-w-0 flex-1",children:B}),Q&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:Q,className:"shrink-0",children:be.list.retry})]}):null,
|
|
9
|
-
/* @__PURE__ */C("div",{id:he,role:Ye.length?"listbox":void 0,"aria-labelledby":Ye.length?Y??(X?void 0:de):void 0,"aria-label":Ye.length&&!Y?X:void 0,"aria-multiselectable":!(!Ye.length||!Z)||void 0,className:"overflow-y-auto",style:{maxHeight:Re?.maxHeight??m},children:[0===Ye.length?U||B?null:/* @__PURE__ */S("p",{className:"px-3 py-3 text-sm text-ink-faintest text-center",children:be.select.noMatches}):0===Ke.length?null:l(Ge,(e,t)=>{const n=q.includes(e.value);/* @__PURE__ */
|
|
10
|
-
return C("button",{id:pe(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||Z)&&n.preventDefault(),De(e,t)},className:"w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center justify-between gap-2 whitespace-nowrap "+(e.disabled?"cursor-not-allowed text-gray-400":`hover:bg-gray-50 ${n?"text-blue-600 font-medium":"text-gray-700"} ${t===se?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[Z&&/* @__PURE__ */S(o,{selected:n}),
|
|
11
|
-
/* @__PURE__ */S("span",{className:`min-w-0 ${re?"flex-auto":"flex-1"} truncate`,children:K?K(e,{selected:n,active:t===se}):e.label}),e.sublabel&&/* @__PURE__ */S(i,{grows:re,children:e.sublabel})]},e.value)},ce),Xe&&O&&
|
|
12
|
-
/* @__PURE__ */S("button",{id:pe(Ke.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{Z&&e.preventDefault(),De(Xe,Ke.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-ink hover:bg-row-hover ${Ke.length?`border-t ${f}`:""} ${se===Ke.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:O(Xe.value)})},`${ce}-typed`)]})]}),document.body)]});var Ve}export{L as SearchableSelect,R as fitChoice};
|
package/dist/chunk-XIB72X74.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-NWURIQI3.js";import{toDayMs as i,fmtSliderDate as t,DAY_MS as a}from"./chunk-7TC3LJQM.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-4PAWQEXM.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const M=l(Date.now,null),j=[],C=[],x=o().timeline,L=r();for(const e of p){const n=i(e.date??null);null===n?C.push({key:e.key,label:e.label,kind:e.kind}):j.push({...e,ms:n})}j.sort((e,n)=>e.ms-n.ms);const N=i(g??null);let w,D,H=!0;0===j.length?(D=N??M??0,w=D-30*a,H=null!==N||null!==M):(w=j[0].ms,D=N??j[j.length-1].ms,D-w<a&&(D=w+a));const O=j.length>0?Math.max(0,Math.round((D-w)/a)):0,Q=u??(O>0?x.duration(O):void 0),I=[j.length>0?x.started(t(j[0].ms,L)):void 0,Q,C.length>0?x.reached(j.length,p.length):void 0],J=j.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),K={};for(const e of j)e.phase&&(K[e.phase]=K[e.phase]||[]).push(e.ms);const T=Object.entries(K).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),W="rail"===v,A=H&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:W?"spread":"compressed",labels:W?"none":"lanes",items:J,pending:C,phases:T,startMs:w,endMs:D,todayMs:M??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:x.milestones(m)})});/* @__PURE__ */
|
|
2
|
-
return h("div",W?{className:"shrink-0","data-timeline-variant":"rail",children:A}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:I,children:A})})}export{m as MilestoneTimeline};
|
package/dist/chunk-ZE5TNYWX.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-V2MIQ4GJ.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-FRVNDEV2.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{registerModalEscapeInterceptor as p}from"./chunk-TWVUQUUD.js";import{useBrowserLayoutEffect as f}from"./chunk-D65T4H6J.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/,w={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function D({trigger:D,items:L,align:j="end",side:E="bottom","aria-label":A,className:C="",triggerClassName:K,menuClassName:S="",minWidth:W=180,linkAs:N,disabled:$,id:H,"aria-describedby":T,"aria-disabled":U=!1,onOpenChange:I,footer:J,footerLabel:B}){const[G,M]=m(!1),[V,q]=m(-1),R=h(null),z=h(null),P=h(null),Q=h(null),F=h(null),O=null!=J&&!1!==J,Y=h({text:"",at:0}),X=g(),Z=g(),_=H??Z,ee=h(I);ee.current=I;const te=h(G);te.current=G;const re=v(e=>{M(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&z.current?.focus()},[]),ne=(t,r)=>{const n=L.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(L[i]))return i}return-1},oe=()=>P.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!G)return;const e=e=>{const t=e.target;if(R.current?.contains(t)||oe()?.contains(t))return;const r=oe()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||re(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>re(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[G,re]);const ie=v(()=>{const e=oe(),t=z.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:j,side:E});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=j},[j,E]);f(()=>{G&&ie()}),b(()=>{if(G)return u(()=>z.current,ie)},[G,ie]),b(()=>{if(!G)return;const t=P.current,r=e(L[V])?t?.querySelector(`[data-dropdown-index="${V}"]`):null;(r??t)?.focus({preventScroll:!0})},[G,V]),b(()=>{if(G)return p(e=>"Escape"===e.key&&(re(!0),!0),()=>Q.current)},[G,re]),n(Q,G&&O);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{q(le(e)),M(!0),te.current||(te.current=!0,ae.current=e,I?.(!0))};f(()=>{const e=ae.current;if(!G||!e)return;ae.current=null;const t=le(e);t!==V&&q(t)});const de=t(L,X),ce="function"==typeof J?J({close:()=>re(!0)}):J,ue={...k.test(S)?{}:{zIndex:s.popup},minWidth:W};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:R,className:`relative inline-flex ${C}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:z,id:_,type:"button","aria-haspopup":"menu","aria-expanded":G,"aria-controls":G?X:void 0,"aria-label":A,"aria-describedby":T,"aria-disabled":U||void 0,disabled:$,onClick:()=>{U||(G?re(!1):se("first"))},onKeyDown:e=>{U||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:K??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(A?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),G&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:S,style:ue,children:/* @__PURE__ */y("div",{ref:Q,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:P,id:X,role:"menu","aria-orientation":"vertical","aria-label":A,"aria-labelledby":A?void 0:_,"aria-describedby":de,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),q(ne(V+1,1));else if("ArrowUp"===t.key)t.preventDefault(),q(ne(V-1,-1));else if("Home"===t.key)t.preventDefault(),q(ne(0,1));else if("End"===t.key)t.preventDefault(),q(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&F.current?o(F.current)[0]:void 0;e?e.focus({preventScroll:!0}):re(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-Y.current.at<500?Y.current.text+n:n;Y.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?V+1:Math.max(V,0),s=P.current,d=L.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(L[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void q(n)}})(t)},children:r(L,{menuId:X,choose:e=>{e.disabled||(re(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>re(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===V?0:-1,onMouseEnter:()=>{t.disabled||F.current?.contains(document.activeElement)||q(e)}}),linkAs:N})}),O&&/* @__PURE__ */y("div",{ref:F,role:"group","aria-label":B,"data-dropdown-footer":"",onKeyDown:e=>{const t=F.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=P.current?.querySelector(`[data-dropdown-index="${V}"]`);return void(t??P.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),re(!0))},children:[
|
|
6
|
-
/* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
|
|
7
|
-
/* @__PURE__ */x("div",{style:w,children:ce})]})]})})]})}export{D as DropdownMenu};
|
package/dist/chunk-ZHPHNQKM.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as r}from"./chunk-WZ5QSSUM.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{CHART_INK as s,resolveSeriesColor as i}from"./chunk-TZFACUMR.js";import{useShellStrings as h,useShellLocale as c}from"./chunk-4PAWQEXM.js";import{formatPercent as m,formatPlain as u}from"./chunk-C3QOHMR6.js";import{useId as d,useState as f,useRef as y}from"react";import{jsx as p,jsxs as g}from"react/jsx-runtime";function x({segments:x,variant:v="pie",size:M=280,innerRadius:k,padAngle:b=.012,maxSegments:N=6,otherLabel:$,formatValue:j,centerLabel:I,animate:S=!0,labels:P="none",labelMinShare:w=.04,className:A,emptyLabel:F}){const W=h().charts,C=c(),E=j??(e=>u(e,C)),R=$??W.other,z=F??W.nothingToBreakDown,T=d(),[U,_]=f(null),{highlighted:L}=a(),Q=y(null),V=o(Q,Number.POSITIVE_INFINITY),Y=x.map((e,t)=>({...e,slot:t})).filter(e=>e.value>0);if(0===Y.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${A??""}`,children:z});const B=[...Y].sort((e,t)=>t.value-e.value),O=B.slice(0,N),Z=B.slice(N),H=Z.length>0?[...O,{key:"__other__",label:R,value:Z.reduce((e,t)=>e+t.value,0),slot:-1,color:s.muted}]:O,X=e=>i(e.slot,e.color,e.tone),q=H.reduce((e,t)=>e+t.value,0),D=Math.ceil(.62*Math.max(...H.map(e=>String(e.label).length),4)*11)+24,J="outside"===P&&V>=120+2*D,G=J?D:0,K=J?Math.max(120,Math.min(M,V-2*G)):M,ee=K+2*G,te=G+K/2,le=K/2,ae=K/2-12,re=k??("ring"===v?.58*ae:0),ne=n(H.length,b),oe=Math.max(...H.map(e=>e.value)),se=e=>re+(ae-re)*Math.sqrt(Math.max(0,e)/oe);let ie=-Math.PI/2;const he=(()=>{if(!J)return[];let e=-Math.PI/2;const t=H.map((t,l)=>{const a="rose"===v?n(H.length,b).step:t.value/q*Math.PI*2,r="rose"===v?n(H.length,b).center(l):e+a/2;e+=a;const o="rose"===v?se(t.value):ae;return{key:t.key,label:t.label,share:t.value/q,right:Math.cos(r)>=0,anchor:[te+o*Math.cos(r),le+o*Math.sin(r)],y:le+(o+14)*Math.sin(r),index:l}}).filter(e=>e.share>=w),l=Math.max(1,Math.floor((K-11-13)/26)+1),a=/* @__PURE__ */new Set;for(const e of[!0,!1]){const r=t.filter(t=>t.right===e).sort((e,t)=>t.share-e.share).slice(0,l).sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e+=1)r[e].y-r[e-1].y<26&&(r[e].y=r[e-1].y+26);for(let e=r.length-1;e>=0;e-=1){const t=e===r.length-1?K-13:r[e+1].y-26;r[e].y=Math.min(r[e].y,t)}r.forEach((e,t)=>{e.y=Math.max(e.y,0===t?11:r[t-1].y+26),a.add(e.key)})}return t.filter(e=>a.has(e.key))})(),ce=(e,t)=>null!==U?U!==e:null!==L&&L!==t,me=null!==U?H[U]:void 0;/* @__PURE__ */
|
|
2
|
-
return g("div",{className:`relative ${A??""}`,ref:Q,children:[
|
|
3
|
-
/* @__PURE__ */g("svg",{width:"100%",height:K,viewBox:`0 0 ${ee} ${K}`,role:"img","aria-labelledby":T,onMouseLeave:()=>_(null),children:[
|
|
4
|
-
/* @__PURE__ */p("title",{id:T,children:W.breakdown(E(q),H.length)}),H.map((a,r)=>{const n=X(a),o="rose"===v?ne(r):ie,i="rose"===v?ne.step:a.value/q*Math.PI*2-b;"rose"!==v&&(ie+=a.value/q*Math.PI*2);const h=o+Math.max(.001,i),c="rose"===v?se(a.value):ae;/* @__PURE__ */
|
|
5
|
-
return p("path",{d:e(te,le,re,c,o,h),fill:n,fillOpacity:ce(r,a.key)?.4:1,stroke:s.surface,strokeWidth:1,className:S?t.sweep:void 0,style:S?l(r,55):void 0,onMouseEnter:()=>_(r)},a.key)}),he.map(e=>{const t=e.right?ee-6:6,l=e.right?te+ae+14:te-ae-14;/* @__PURE__ */
|
|
6
|
-
return g("g",{children:[
|
|
7
|
-
/* @__PURE__ */p("polyline",{points:`${e.anchor[0].toFixed(1)},${e.anchor[1].toFixed(1)} ${l},${e.y.toFixed(1)} ${t},${e.y.toFixed(1)}`,fill:"none",stroke:s.grid,strokeWidth:1}),
|
|
8
|
-
/* @__PURE__ */p("text",{x:t,y:e.y-2,fontSize:11,fill:s.label,textAnchor:e.right?"end":"start",children:e.label}),
|
|
9
|
-
/* @__PURE__ */p("text",{x:t,y:e.y+10,fontSize:11,fontWeight:600,fill:s.label,textAnchor:e.right?"end":"start",style:{fontVariantNumeric:"tabular-nums"},children:m(100*e.share,1,C)})]},`lbl-${e.key}`)}),I&&re>0&&/* @__PURE__ */p("text",{x:te,y:le+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:s.label,children:I})]}),me&&null!==U&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(r,{title:me.label,rows:[{key:"value",label:W.value,color:X(me),value:E(me.value)},{key:"share",label:W.share,color:s.muted,value:m(me.value/q*100,1,C)}]})}),
|
|
10
|
-
/* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:H.map((e,t)=>/* @__PURE__ */g("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
11
|
-
/* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:X(e)}}),
|
|
12
|
-
/* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
|
|
13
|
-
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:m(e.value/q*100,1,C)})]},e.key))})]})}export{x as PieChart};
|
package/dist/chunk-ZO244TWH.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as t}from"./chunk-ZMRGHVKS.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WZ5QSSUM.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-4PAWQEXM.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:M,className:k,emptyLabel:v}){const $=l().charts,w=i(),N=M??(t=>s(t,w)),j=v??$.noFlows,[y,E]=c(null),{highlighted:F}=o(),C=h(u,f,x,$.other),{labels:A,matrix:Q,otherIndex:z,foldedCount:I}=C,S=(t,e)=>Q[t]?.[e]??0,W=t=>t===z?r.muted:a(t),H=C.totals,L=A.map((t,e)=>e).sort((t,e)=>H[e]-H[t]),O=L.reduce((t,e)=>t+H[e],0);if(O<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const P=p/2,R=p/2,U=p/2-44,V=U-b,Z=g*L.length,T=/* @__PURE__ */new Map;let Y=-Math.PI/2;L.forEach((t,e)=>{const o=H[t]/O*(2*Math.PI-Z);T.set(t,{start:Y,end:Y+o,slot:e}),Y+=o+g});const B=/* @__PURE__ */new Map,G=[];for(const t of L)for(const e of L){const o=S(t,e);if(o<=0)continue;const n=T.get(t),r=o/Math.max(1,H[t])*(n.end-n.start),a=B.get(t)??0;B.set(t,a+r),G.push({from:t,to:e,value:o,a:n.start+a+r/2,b:T.get(e).start+(T.get(e).end-T.get(e).start)/2})}const K=(t,e)=>[P+e*Math.cos(t),R+e*Math.sin(t)],X="arc"===y?.kind?y.index:void 0,q="ribbon"===y?.kind?G[y.index]:void 0;/* @__PURE__ */
|
|
2
|
-
return m("div",{className:`relative ${k??""}`,children:[
|
|
3
|
-
/* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(L.length),onMouseLeave:()=>E(null),children:[G.map((t,e)=>{const[o,n]=K(t.a,V),[r,a]=K(t.b,V),l=W(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==F?A[t.from]===F||A[t.to]===F:null)(t,e);/* @__PURE__ */
|
|
4
|
-
return d("path",{d:`M${o},${n} Q${P},${R} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/O*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>E({kind:"ribbon",index:e})},`${A[t.from]}→${A[t.to]}`)}),L.map(t=>{const o=T.get(t),n=(o.start+o.end)/2,[a,l]=K(n,U+16),i=(t=>y?"arc"===y.kind?y.index===t:G[y.index].from===t||G[y.index].to===t:null!==F?A[t]===F:null)(t);/* @__PURE__ */
|
|
5
|
-
return m("g",{onMouseEnter:()=>E({kind:"arc",index:t}),children:[
|
|
6
|
-
/* @__PURE__ */d("path",{d:e(P,R,V,U,o.start,o.end),fill:W(t),fillOpacity:null===i||i?1:.45}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:A[t]})]},t)})]}),I>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(I)}),void 0!==X&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:A[X],rows:[{key:"total",label:$.totalFlow,color:W(X),value:N(H[X])}]})}),q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${A[q.from]} → ${A[q.to]}`,rows:[{key:"value",label:$.flow,color:W(q.from),value:N(q.value)}]})}),
|
|
8
|
-
/* @__PURE__ */d(t,{caption:$.chord(L.length),head:[$.tableFrom,$.tableTo,$.value],rows:G.map(t=>[A[t.from],A[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
|
package/dist/chunk-ZZTCYEQ4.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as a}from"./chunk-465RRWBY.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as r}from"./chunk-WZ5QSSUM.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-4PAWQEXM.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:M,animate:y=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),E=M??(e=>m(e,w)),P=b??C.nothingToPlot,R=h(),[Q,T]=u(null),{highlighted:U}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:P});const W=v/2,$=v/2,A=v/2-10,Y=x??Math.max(...g.map(e=>e.value),1),z="track"===k?Math.max(6,(A-.16*v)/g.length):0,B=Math.max(1,Math.floor((A-.16*v)/z||1)),F="track"===k?g.slice(0,B):g,H=Math.min(j,Math.max(1,z-2)),I=n(F.length,.03),L=null!==Q?F[Q]:void 0;/* @__PURE__ */
|
|
2
|
-
return d("div",{className:`relative ${N??""}`,children:[
|
|
3
|
-
/* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":R,onMouseLeave:()=>T(null),children:[
|
|
4
|
-
/* @__PURE__ */p("title",{id:R,children:"track"===k?C.radialTrack(F.length):C.radialCycle(F.length)}),F.map((l,r)=>{const n=o(r,l.color,l.tone),s=Math.max(0,Math.min(1,l.value/Y)),c=((e,t)=>null!==Q?Q!==e:null!==U&&U!==t)(r,l.key);if("track"===k){const o=A-r*z,m=o-z+H,h=-Math.PI/2;/* @__PURE__ */
|
|
5
|
-
return d("g",{opacity:c?.4:1,onMouseEnter:()=>T(r),className:y?t.sweep:void 0,style:y?a(r,70):void 0,children:[
|
|
6
|
-
/* @__PURE__ */p("path",{d:e(W,$,m,o,h,h+f),fill:i.grid}),
|
|
7
|
-
/* @__PURE__ */p("path",{d:e(W,$,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
|
|
8
|
-
return p("g",{opacity:c?.4:1,onMouseEnter:()=>T(r),children:/* @__PURE__ */p("path",{d:e(W,$,m,m+(A-m)*s,I(r),I(r)+I.step),fill:n})},l.key)})]}),L&&null!==Q&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(r,{title:L.label,rows:[{key:"value",label:C.value,color:o(Q,L.color,L.tone),value:E(L.value)}]})}),
|
|
9
|
-
/* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))"},children:g.map((e,t)=>/* @__PURE__ */d("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
10
|
-
/* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:o(t,e.color,e.tone)}}),
|
|
11
|
-
/* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
|
|
12
|
-
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:E(e.value)})]},e.key))})]})}export{g as RadialBarChart};
|
|
File without changes
|