efficient-shell 10.22.0 → 10.23.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 +2 -1
- package/dist/{Browser-XQ5GO3LJ.js → Browser-GTQKXJQ6.js} +14 -14
- package/dist/Calculator-PM4TYWTE.js +29 -0
- package/dist/{CurrencyConverter-PSOBQ6K2.js → CurrencyConverter-4I2ENTSX.js} +6 -6
- package/dist/{Documents-7GOEAIJ6.js → Documents-MTCJXTXY.js} +7 -7
- package/dist/{Files-MMVUWO5F.js → Files-XMZ3XBP4.js} +43 -43
- package/dist/{Notepad-FAQBAF36.js → Notepad-QIJN7VDZ.js} +10 -10
- package/dist/{PomodoroTimer-ZLS6XCTN.js → PomodoroTimer-5ELVNJEU.js} +68 -68
- package/dist/{Preview-DEK7WTAU.js → Preview-QCA6XUDU.js} +44 -44
- package/dist/Sidebar-7LN3ZEF4.js +44 -0
- package/dist/{Spreadsheet-6C7Q6OQA.js → Spreadsheet-EKYP6XIX.js} +11 -11
- package/dist/{Stock-XHMTFEOL.js → Stock-TRG6CAZJ.js} +4 -4
- package/dist/{Weather-X5WAHYQ3.js → Weather-YGTT7UWR.js} +22 -22
- package/dist/{WorldClock-ARU7PMVZ.js → WorldClock-UCX5LCJB.js} +6 -6
- package/dist/ai/index.js +91 -91
- 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/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.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/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/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.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-3PO4D32J.js → chunk-36PJGT4W.js} +1 -1
- package/dist/{chunk-AGPPZHAH.js → chunk-36VIGB6J.js} +1 -1
- package/dist/{chunk-C4CAPG3D.js → chunk-3BFZVVAT.js} +1 -1
- package/dist/chunk-4BCFBF3C.js +9 -0
- package/dist/chunk-4EBJO7ER.js +15 -0
- package/dist/{chunk-YICFH5KO.js → chunk-4P3324KU.js} +1 -1
- package/dist/chunk-4P57TIFK.js +2 -0
- package/dist/{chunk-QDJQ43N4.js → chunk-4RGMRXYH.js} +1 -1
- package/dist/{chunk-6V4INP7J.js → chunk-4TYIYL56.js} +4 -4
- package/dist/{chunk-P22NWAFW.js → chunk-55AEZX6K.js} +1 -1
- package/dist/{chunk-BB6A5MGA.js → chunk-5FYDNH4Y.js} +1 -1
- package/dist/{chunk-KABWJIY4.js → chunk-5PP435FL.js} +1 -1
- package/dist/{chunk-D6ZXMKW2.js → chunk-5RQJRD2E.js} +1 -1
- package/dist/{chunk-OBNA7GF5.js → chunk-6M5O2P64.js} +9 -9
- package/dist/{chunk-BWTK3NUD.js → chunk-75UD5ZMP.js} +4 -4
- package/dist/chunk-7IY47EKR.js +1 -0
- package/dist/{chunk-SRYX6AQ6.js → chunk-7JVGF555.js} +1 -1
- package/dist/{chunk-ARSOETMP.js → chunk-7KWYVQMX.js} +1 -1
- package/dist/chunk-7LU3H72S.js +7 -0
- package/dist/chunk-7RP7QTRF.js +12 -0
- package/dist/{chunk-AKBGUMLI.js → chunk-A6FR2D46.js} +5 -5
- package/dist/{chunk-RAMJFT3D.js → chunk-AFG34RBV.js} +5 -5
- package/dist/{chunk-PWUPLXSS.js → chunk-BBXFIBXB.js} +1 -1
- package/dist/{chunk-EE56C2JH.js → chunk-BMXTPJ7T.js} +5 -5
- package/dist/{chunk-LJHVEISA.js → chunk-CH3JQUDW.js} +6 -6
- package/dist/{chunk-DLOJSJWL.js → chunk-CIHR5ZKF.js} +1 -1
- package/dist/{chunk-E5H5OU3A.js → chunk-COF33H6J.js} +5 -5
- package/dist/{chunk-GGRD2JLB.js → chunk-CQEVJG43.js} +1 -1
- package/dist/{chunk-WHISJI5L.js → chunk-CX4XR4HO.js} +1 -1
- package/dist/{chunk-AFBBNGVO.js → chunk-DBL7MFCB.js} +8 -8
- package/dist/{chunk-XDCHB6JA.js → chunk-DGWS4GTI.js} +1 -1
- package/dist/{chunk-RXO2LNIB.js → chunk-DIEH76MB.js} +1 -1
- package/dist/{chunk-CGP2QCIA.js → chunk-DRUQH4ZE.js} +2 -2
- package/dist/{chunk-KGVNRLWT.js → chunk-DVYIBJ3S.js} +2 -2
- package/dist/{chunk-5DIBDRB6.js → chunk-DWAA4YZV.js} +3 -3
- package/dist/{chunk-4BPIGS2D.js → chunk-DZOJQURG.js} +6 -6
- package/dist/{chunk-7SMDYBQX.js → chunk-E3EJWNNK.js} +8 -8
- package/dist/{chunk-ET4726WV.js → chunk-E6LQY6TB.js} +1 -1
- package/dist/chunk-EOVXFXVV.js +2 -0
- package/dist/chunk-EXLHFM3V.js +6 -0
- package/dist/{chunk-L67WTASI.js → chunk-FUDUQ44A.js} +1 -1
- package/dist/{chunk-N2RIQ2OU.js → chunk-FZM3ZPW3.js} +1 -1
- package/dist/{chunk-VQIG5N6D.js → chunk-G66SG6JN.js} +9 -9
- package/dist/{chunk-GEDS6QO7.js → chunk-G7BBSHDF.js} +2 -2
- package/dist/{chunk-GCC2OZDG.js → chunk-GC3DA6D6.js} +1 -1
- package/dist/{chunk-UXPKCDEF.js → chunk-GCZU4XFA.js} +1 -1
- package/dist/{chunk-QA3EAJ5H.js → chunk-GOXQJCXG.js} +17 -17
- package/dist/{chunk-XAPHUSOR.js → chunk-H475WZPF.js} +16 -16
- package/dist/{chunk-53DO72B2.js → chunk-H5NIW2KS.js} +1 -1
- package/dist/{chunk-ZT45XXIB.js → chunk-I3XM2PSQ.js} +56 -56
- package/dist/{chunk-CIXGYZCF.js → chunk-I4DLYOPO.js} +4 -4
- package/dist/{chunk-QZMGWRZ4.js → chunk-IPO4LHSB.js} +6 -6
- package/dist/{chunk-PJBZ5B54.js → chunk-JET2TKEQ.js} +3 -3
- package/dist/chunk-JPOYR5AO.js +7 -0
- package/dist/{chunk-BJRJODRZ.js → chunk-LCSMBVMU.js} +1 -1
- package/dist/{chunk-WVCX2Y3S.js → chunk-LE5LWALR.js} +1 -1
- package/dist/chunk-LNXBTK7Q.js +1 -0
- package/dist/{chunk-HC2AM2DT.js → chunk-MCAPJSB6.js} +1 -1
- package/dist/{chunk-REWKL7MX.js → chunk-MDYJVXWD.js} +2 -2
- package/dist/chunk-MHPFBVDD.js +8 -0
- package/dist/{chunk-NS2HY4NL.js → chunk-N5KO2IHG.js} +4 -4
- package/dist/{chunk-22LRMKLV.js → chunk-NJN5IKWO.js} +6 -6
- package/dist/{chunk-HWKAFISI.js → chunk-NRALUW6P.js} +7 -7
- package/dist/{chunk-SETRKP7W.js → chunk-NWC6YCIJ.js} +10 -10
- package/dist/{chunk-WE3HINW3.js → chunk-NZ34BQKH.js} +1 -1
- package/dist/{chunk-H2C5SZKO.js → chunk-O52BQ5DP.js} +1 -1
- package/dist/{chunk-6XYGA252.js → chunk-O7RR2ZZ2.js} +6 -6
- package/dist/chunk-OFCHJWM2.js +1 -0
- package/dist/{chunk-GCP3LGRG.js → chunk-OGU5JE52.js} +14 -14
- package/dist/{chunk-SAGI7AWC.js → chunk-OKHKY3ZZ.js} +1 -1
- package/dist/{chunk-KLAKLVKE.js → chunk-OTITQ3IH.js} +12 -12
- package/dist/{chunk-WSMRVWWK.js → chunk-P7H2DXJB.js} +10 -10
- package/dist/chunk-PSR6SXCC.js +14 -0
- package/dist/{chunk-Q5WPHBDB.js → chunk-QGWKM7C3.js} +5 -5
- package/dist/{chunk-A46WK67X.js → chunk-QWCEKHAP.js} +4 -4
- package/dist/{chunk-DOWE3ZQR.js → chunk-RDKIYORS.js} +1 -1
- package/dist/{chunk-5JCHYQYI.js → chunk-RV2FGSGH.js} +3 -3
- package/dist/{chunk-F3ZH6UCW.js → chunk-RZQGPWSN.js} +1 -1
- package/dist/{chunk-NWUAATIX.js → chunk-S4FPYCUU.js} +3 -3
- package/dist/{chunk-OAVU46YG.js → chunk-TDAI4J27.js} +4 -4
- package/dist/{chunk-WJ6ZJVAX.js → chunk-TE6R53YD.js} +1 -1
- package/dist/{chunk-GIK62TW6.js → chunk-TFSLPAGB.js} +3 -3
- package/dist/chunk-TNJ2VCH4.js +8 -0
- package/dist/{chunk-7XNDWW3Y.js → chunk-U44DVPGB.js} +1 -1
- package/dist/{chunk-CIYMGVZC.js → chunk-UNQ54QOF.js} +1 -1
- package/dist/chunk-UPXDDO3U.js +1 -0
- package/dist/{chunk-C2ZUYCIM.js → chunk-USVL5SLG.js} +1 -1
- package/dist/chunk-USWA6YNZ.js +3 -0
- package/dist/chunk-VCCGS6Q2.js +29 -0
- package/dist/chunk-VX4COEWP.js +4 -0
- package/dist/{chunk-VXQQQDJ3.js → chunk-VX6TKEEK.js} +1 -1
- package/dist/{chunk-NTVOQHRS.js → chunk-WDQEUNGE.js} +1 -1
- package/dist/{chunk-GLE4F5FT.js → chunk-WGLHB6WE.js} +1 -1
- package/dist/{chunk-MW3FT4WI.js → chunk-WL4U4MTQ.js} +3 -3
- package/dist/{chunk-FHYETY4V.js → chunk-XBHXGBJR.js} +1 -1
- package/dist/{chunk-VKP2WRJJ.js → chunk-XCAUDTCC.js} +8 -8
- package/dist/chunk-XFH64VIG.js +19 -0
- package/dist/{chunk-O64PY7ZJ.js → chunk-XJPKDTQN.js} +12 -12
- package/dist/chunk-XXL5RLNM.js +22 -0
- package/dist/{chunk-P3LKCOB4.js → chunk-YOZGW2RB.js} +2 -2
- package/dist/{chunk-6CICYVCK.js → chunk-YQOVUH5W.js} +8 -8
- package/dist/{chunk-WUMPTKOG.js → chunk-Z3SLQKE6.js} +1 -1
- package/dist/{chunk-4UHAQMOT.js → chunk-Z44JWU75.js} +2 -2
- package/dist/{chunk-NPGFCIHB.js → chunk-Z46MSUTP.js} +1 -1
- package/dist/{chunk-TBQLPMW5.js → chunk-ZRLWE3JM.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.d.ts +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/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.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.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.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/hooks/useRootIsDark.d.ts +3 -0
- package/dist/hooks/useRootIsDark.js +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/payment.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.js +157 -157
- package/dist/map/index.js +3 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.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.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ResizeHandle.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/StatusBadge.js +1 -1
- package/dist/shell/Tabs.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/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/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +2 -0
- package/dist/ui/index.js +1 -1
- package/dist/utils/glass.js +1 -1
- package/dist/utils/rootTheme.d.ts +13 -1
- package/dist/utils/rootTheme.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -1
- package/dist/Calculator-X62IAKQY.js +0 -29
- package/dist/Sidebar-JF2KEJT2.js +0 -44
- package/dist/chunk-4DO47TT5.js +0 -1
- package/dist/chunk-5532S4RN.js +0 -4
- package/dist/chunk-5R4X7MFQ.js +0 -1
- package/dist/chunk-5XKCOKYJ.js +0 -1
- package/dist/chunk-F7U5MVNH.js +0 -2
- package/dist/chunk-FX4KK5GE.js +0 -3
- package/dist/chunk-GCMCXRIN.js +0 -19
- package/dist/chunk-H43BVPNN.js +0 -7
- package/dist/chunk-IWOVB4WI.js +0 -9
- package/dist/chunk-LIULEXWE.js +0 -14
- package/dist/chunk-LQVW3SW4.js +0 -6
- package/dist/chunk-NGRTW6Y7.js +0 -2
- package/dist/chunk-PBFFKRQF.js +0 -12
- package/dist/chunk-QFJIMX4A.js +0 -15
- package/dist/chunk-QIMFBARF.js +0 -8
- package/dist/chunk-RRGMXY46.js +0 -29
- package/dist/chunk-TLJWBRLI.js +0 -8
- package/dist/chunk-URQWWOHM.js +0 -7
- package/dist/chunk-WBJ6KNUF.js +0 -1
- package/dist/chunk-WEPQU5W6.js +0 -22
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-CSA6CGXS.js";export{GalleryTemplate}from"../chunk-7XNDWW3Y.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{ChatTemplate}from"../chunk-GGRD2JLB.js";export{CheckoutTemplate}from"../chunk-WHISJI5L.js";export{DashboardTemplate}from"../chunk-L67WTASI.js";export{DataTablePage}from"../chunk-C2ZUYCIM.js";export{EmailTemplate}from"../chunk-VXQQQDJ3.js";export{ErrorBoundary}from"../chunk-QDJQ43N4.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{FormLayoutPage}from"../chunk-WUMPTKOG.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-XDCHB6JA.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-GCC2OZDG.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-NS2HY4NL.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{SettingReset}from"../chunk-GIK62TW6.js";export{SettingRow}from"../chunk-6V4INP7J.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-RAMJFT3D.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-5DIBDRB6.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-QZMGWRZ4.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-4UHAQMOT.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-C4CAPG3D.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{EditableGrid}from"../chunk-OBNA7GF5.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-ARSOETMP.js";export{GlobalSearch,openGlobalSearch}from"../chunk-4BPIGS2D.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-A46WK67X.js";export{IconRail,IconRailButton}from"../chunk-YICFH5KO.js";import"../chunk-FQEALPZJ.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-RXO2LNIB.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-5XKCOKYJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-PJBZ5B54.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-E5H5OU3A.js";export{SplitButton_default as SplitButton}from"../chunk-FX4KK5GE.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-LJHVEISA.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-LQVW3SW4.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{PositionInput}from"../chunk-NPGFCIHB.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-P3LKCOB4.js";export{Slider,SliderGroup}from"../chunk-CIXGYZCF.js";export{LinkPicker,TextLinkField}from"../chunk-AFBBNGVO.js";export{SearchableSelect}from"../chunk-PBFFKRQF.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-RRGMXY46.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-HWKAFISI.js";import"../chunk-SRYX6AQ6.js";export{ImageLightbox,lightboxKind}from"../chunk-WSMRVWWK.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";import"../chunk-TMMNCXQT.js";export{DropdownMenu}from"../chunk-URQWWOHM.js";export{NativeSelect,Select_default as Select}from"../chunk-GCMCXRIN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-7SMDYBQX.js";export{MediaUsedInList}from"../chunk-WE3HINW3.js";export{NumericKeypad}from"../chunk-NTVOQHRS.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-TBQLPMW5.js";export{FilePicker_default as FilePicker}from"../chunk-FHYETY4V.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{IconPicker}from"../chunk-MW3FT4WI.js";export{CornersInput}from"../chunk-BWTK3NUD.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-XAPHUSOR.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-PWUPLXSS.js";export{slugify}from"../chunk-24AL3CDS.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,PAGE_MOTION_DURATIONS,PAGE_MOTION_EASING,PAGE_MOTION_STEPS,TYPE_SCALE,pageMotionMs}from"../chunk-DHKRXHJN.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-DOWE3ZQR.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-5JCHYQYI.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-O64PY7ZJ.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-GEDS6QO7.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-6XYGA252.js";export{MediaUploadField}from"../chunk-Q5WPHBDB.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-NWUAATIX.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{DataTable}from"../chunk-GCP3LGRG.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-CIYMGVZC.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{WaterfallChart}from"../chunk-BJRJODRZ.js";export{SankeyChart}from"../chunk-IWOVB4WI.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-QIMFBARF.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-5532S4RN.js";export{TreemapChart}from"../chunk-H43BVPNN.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-SETRKP7W.js";export{HistogramChart}from"../chunk-F7U5MVNH.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-VQIG5N6D.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-QFJIMX4A.js";export{RadialBarChart}from"../chunk-6CICYVCK.js";export{RangeChart}from"../chunk-AKBGUMLI.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{ChordChart}from"../chunk-TLJWBRLI.js";import"../chunk-KABWJIY4.js";export{FunnelChart}from"../chunk-LIULEXWE.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-F3ZH6UCW.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-CGP2QCIA.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-DLOJSJWL.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-VKP2WRJJ.js";export{IconButton_default as IconButton}from"../chunk-WVCX2Y3S.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-53DO72B2.js";export{TransferProgress}from"../chunk-OAVU46YG.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-HC2AM2DT.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-WEPQU5W6.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-EE56C2JH.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-P22NWAFW.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-SAGI7AWC.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-4DO47TT5.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-KLAKLVKE.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-N2RIQ2OU.js";export{Button_default as Button}from"../chunk-NGRTW6Y7.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-WJ6ZJVAX.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GLE4F5FT.js";export{Tooltip}from"../chunk-22LRMKLV.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-3PO4D32J.js";export{CandlestickChart}from"../chunk-KGVNRLWT.js";export{ChartTooltip}from"../chunk-AGPPZHAH.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-BB6A5MGA.js";import"../chunk-5R4X7MFQ.js";export{CartesianPlot}from"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-CSA6CGXS.js";export{GalleryTemplate}from"../chunk-U44DVPGB.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{ChatTemplate}from"../chunk-CQEVJG43.js";export{CheckoutTemplate}from"../chunk-CX4XR4HO.js";export{DashboardTemplate}from"../chunk-FUDUQ44A.js";export{DataTablePage}from"../chunk-USVL5SLG.js";export{EmailTemplate}from"../chunk-VX6TKEEK.js";export{ErrorBoundary}from"../chunk-4RGMRXYH.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{FormLayoutPage}from"../chunk-Z3SLQKE6.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-DGWS4GTI.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-GC3DA6D6.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{SettingReset}from"../chunk-TFSLPAGB.js";export{SettingRow}from"../chunk-4TYIYL56.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-AFG34RBV.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-DWAA4YZV.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-IPO4LHSB.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-Z44JWU75.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-3BFZVVAT.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{EditableGrid}from"../chunk-6M5O2P64.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-DZOJQURG.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-QWCEKHAP.js";export{IconRail,IconRailButton}from"../chunk-4P3324KU.js";import"../chunk-FQEALPZJ.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-DIEH76MB.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-CH3JQUDW.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-EXLHFM3V.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{WidthsBar}from"../chunk-JET2TKEQ.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-YOZGW2RB.js";export{Slider,SliderGroup}from"../chunk-I4DLYOPO.js";export{Snippet}from"../chunk-COF33H6J.js";export{SplitButton_default as SplitButton}from"../chunk-USWA6YNZ.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-VCCGS6Q2.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-NRALUW6P.js";import"../chunk-7JVGF555.js";export{ImageLightbox,lightboxKind}from"../chunk-P7H2DXJB.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";import"../chunk-TMMNCXQT.js";export{DropdownMenu}from"../chunk-JPOYR5AO.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-E3EJWNNK.js";export{MediaUsedInList}from"../chunk-NZ34BQKH.js";export{NumericKeypad}from"../chunk-WDQEUNGE.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-Z46MSUTP.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-WL4U4MTQ.js";export{LinkPicker,TextLinkField}from"../chunk-DBL7MFCB.js";export{SearchableSelect}from"../chunk-7RP7QTRF.js";export{NativeSelect,Select_default as Select}from"../chunk-XFH64VIG.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-75UD5ZMP.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-H475WZPF.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-BBXFIBXB.js";export{FilePicker_default as FilePicker}from"../chunk-XBHXGBJR.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-RV2FGSGH.js";export{BrandAssetEditor}from"../chunk-O7RR2ZZ2.js";export{MediaUploadField}from"../chunk-QGWKM7C3.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FormField}from"../chunk-6KBDNYRW.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-XJPKDTQN.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-G7BBSHDF.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{slugify}from"../chunk-24AL3CDS.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,PAGE_MOTION_DURATIONS,PAGE_MOTION_EASING,PAGE_MOTION_STEPS,TYPE_SCALE,pageMotionMs}from"../chunk-DHKRXHJN.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-OGU5JE52.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-UNQ54QOF.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{WaterfallChart}from"../chunk-LCSMBVMU.js";export{SankeyChart}from"../chunk-4BCFBF3C.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-MHPFBVDD.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-VX4COEWP.js";export{TreemapChart}from"../chunk-7LU3H72S.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-NWC6YCIJ.js";export{HistogramChart}from"../chunk-4P57TIFK.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-G66SG6JN.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-4EBJO7ER.js";export{RadialBarChart}from"../chunk-YQOVUH5W.js";export{RangeChart}from"../chunk-A6FR2D46.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{ChordChart}from"../chunk-TNJ2VCH4.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-PSR6SXCC.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-RZQGPWSN.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-DRUQH4ZE.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-CIHR5ZKF.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-XCAUDTCC.js";export{mediaFileName}from"../chunk-H5NIW2KS.js";export{TransferProgress}from"../chunk-TDAI4J27.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-MCAPJSB6.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-XXL5RLNM.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-BMXTPJ7T.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ItemCount}from"../chunk-55AEZX6K.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";export{ColoredBadge}from"../chunk-OKHKY3ZZ.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-OFCHJWM2.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-OTITQ3IH.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-36PJGT4W.js";export{CandlestickChart}from"../chunk-DVYIBJ3S.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{CartesianPlot}from"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
|
package/dist/utils/glass.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-
|
|
2
|
+
export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -35,5 +35,17 @@ interface RootThemeOptions {
|
|
|
35
35
|
declare function rootIsDark(options?: RootThemeOptions): boolean;
|
|
36
36
|
/** The `<html>` attributes a theme change can arrive on — for a MutationObserver's `attributeFilter`. */
|
|
37
37
|
declare const ROOT_THEME_ATTRIBUTES: string[];
|
|
38
|
+
/**
|
|
39
|
+
* Calls `onChange` whenever `<html>` changes an attribute a theme can arrive
|
|
40
|
+
* on (`ROOT_THEME_ATTRIBUTES`), and returns the function that stops it. The
|
|
41
|
+
* callback is told nothing: it asks `rootIsDark` for the answer it needs.
|
|
42
|
+
*
|
|
43
|
+
* The one watcher — `useRootIsDark` subscribes through it, and a published
|
|
44
|
+
* page that keeps its own state (a map's tile style, a canvas) calls it
|
|
45
|
+
* directly. `{ doc }` watches another document's `<html>`, as `rootIsDark`
|
|
46
|
+
* reads one. Where there is no document (a server render) it watches nothing
|
|
47
|
+
* and returns a stop that does nothing.
|
|
48
|
+
*/
|
|
49
|
+
declare function watchRootTheme(onChange: () => void, options?: Pick<RootThemeOptions, 'doc'>): () => void;
|
|
38
50
|
|
|
39
|
-
export { ROOT_THEME_ATTRIBUTES, type RootThemeOptions, rootIsDark };
|
|
51
|
+
export { ROOT_THEME_ATTRIBUTES, type RootThemeOptions, rootIsDark, watchRootTheme };
|
package/dist/utils/rootTheme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ROOT_THEME_ATTRIBUTES,rootIsDark}from"../chunk-
|
|
1
|
+
export{ROOT_THEME_ATTRIBUTES,rootIsDark,watchRootTheme}from"../chunk-LNXBTK7Q.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-OFCHJWM2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.23.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -78,6 +78,11 @@
|
|
|
78
78
|
"types": "./dist/markdown/index.d.ts",
|
|
79
79
|
"import": "./dist/markdown/index.js"
|
|
80
80
|
},
|
|
81
|
+
"./theme": {
|
|
82
|
+
"types": "./dist/theme/index.d.ts",
|
|
83
|
+
"import": "./dist/theme/index.js",
|
|
84
|
+
"default": "./dist/theme/index.js"
|
|
85
|
+
},
|
|
81
86
|
"./ui": {
|
|
82
87
|
"types": "./dist/ui/index.d.ts",
|
|
83
88
|
"import": "./dist/ui/index.js",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-D6ZXMKW2.js";import{useWidgetSettings as n}from"./chunk-ZT45XXIB.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-KC3EX26K.js";import"./chunk-P22NWAFW.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-SAGI7AWC.js";import"./chunk-CDAJKLGL.js";import"./chunk-KLAKLVKE.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-N2RIQ2OU.js";import"./chunk-NGRTW6Y7.js";import"./chunk-UQYNPYF4.js";import"./chunk-WJ6ZJVAX.js";import{Icon as r}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-GLE4F5FT.js";import"./chunk-22LRMKLV.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-BB6A5MGA.js";import"./chunk-5R4X7MFQ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[N,j]=c(!1),[y,x]=c(""),[f,v]=c([]),[C,$]=c(!1),[W,E]=c(()=>e(h)),[A,T]=c(!1),[w,D]=c(W),G=i(null);n(l(()=>{D({...W}),T(!0)},[W]));const L=l(e=>{x(""),k(t=>N||"0"===t?(j(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[N]),S=l(()=>{k("0"),d(null),g(null),j(!1)},[]),U=l((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),B=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!N){const e=U(p,t,b);k(String(e)),d(e),v(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),j(!0)},[m,p,b,N,U]),F=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=U(p,e,b),n=`${p} ${b} ${e} =`;v(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),j(!0)},[m,p,b,U]),J=l(()=>{k(e=>String(parseFloat(e)/100))},[]),K=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?L(e.key):"."===e.key?L("."):"+"===e.key?B("+"):"-"===e.key?B("-"):"*"===e.key?B("×"):"/"===e.key?(e.preventDefault(),B("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&G.current?.contains(e.target)&&e.preventDefault(),F()):"Escape"===e.key?S():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&J())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[L,B,F,S,J]);const M="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",X=`${M} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,Q=`${M} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,R=`${M} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,Z=`${M} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return s(a,{children:[
|
|
3
|
-
/* @__PURE__ */s("div",{ref:G,className:"flex flex-col h-full",style:{opacity:W.activeOpacity/100,backdropFilter:W.activeBlur>0?`blur(${W.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */s("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:f.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${N?"":m}`}),
|
|
6
|
-
/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,C?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
|
|
9
|
-
/* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:S,className:R,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:K,className:R,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:J,className:R,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>B("÷"),className:`${Q} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>L("7"),className:X,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>L("8"),className:X,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>L("9"),className:X,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>B("×"),className:`${Q} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>L("4"),className:X,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>L("5"),className:X,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>L("6"),className:X,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>B("-"),className:`${Q} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>L("1"),className:X,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>L("2"),className:X,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>L("3"),className:X,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>B("+"),className:`${Q} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>L("0"),className:`${X} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>L("."),className:X,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:F,className:Z,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:A,onClose:()=>T(!1),title:"Calculator Settings",appearance:w,onAppearanceChange:D,onSave:()=>{E(w),localStorage.setItem(h,JSON.stringify(w)),T(!1)}})]})}export{m as default};
|
package/dist/Sidebar-JF2KEJT2.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-ZTV2BA3P.js";import{ResizeHandle as o}from"./chunk-4UHAQMOT.js";import{openGlobalSearch as s}from"./chunk-4BPIGS2D.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-WVCX2Y3S.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as w,sectionIcons as C}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as A,PopupMenuLabel as z}from"./chunk-KLAKLVKE.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-WJ6ZJVAX.js";import{Icon as W}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-22LRMKLV.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-BB6A5MGA.js";import"./chunk-5R4X7MFQ.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useMemo as M,useState as I,useRef as R,useEffect as B,isValidElement as H,cloneElement as T}from"react";import{jsx as K,jsxs as Q,Fragment as D}from"react/jsx-runtime";var J="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function P(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var U=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),V="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function X({open:e,children:t}){const r=R(null);return B(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */K("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */K("div",{className:"min-h-0 overflow-hidden",children:t})})}function G({open:e}){/* @__PURE__ */
|
|
2
|
-
return K(W,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function O({dir:e}){/* @__PURE__ */
|
|
3
|
-
return K(W,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function _({className:e}){/* @__PURE__ */
|
|
4
|
-
return K(W,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var Y=e=>.75+1.75*e+"rem";function Z({width:Z,collapsed:F,onToggleCollapsed:E,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=w,sectionIcons:me=C,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ke=$().layout,{hasAnyPerm:ye}=e(),ve=M(()=>c(ce,he,ye),[ce,he,ye]),[Ne,je]=I(()=>t(r(n))),we=M(()=>[...ve.topItems.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ye]),Ce=(e,t=we)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=I(null),[Ae,ze]=I(!1),We=R(null);B(()=>{F||Le(null)},[F]);const $e=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Me=(e,t)=>{const r=t[e];/* @__PURE__ */
|
|
5
|
-
return K("span",{className:V,"aria-hidden":"true",children:r&&H(r)?T(r,{className:"size-[18px]"}):r})},Ie=e=>e.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),Re=(e,t,r=we)=>{const n=d(e,ye),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ye);/* @__PURE__ */
|
|
6
|
-
return Q("div",{children:[
|
|
7
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(i,r),"aria-expanded":l,className:U(o,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Me(e.to,de),
|
|
8
|
-
/* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
9
|
-
/* @__PURE__ */K(G,{open:l})]}),
|
|
10
|
-
/* @__PURE__ */K(X,{open:l,children:/* @__PURE__ */K("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Re(e,t+1,Ie(n)))})}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
|
|
11
|
-
return Q("div",{children:[
|
|
12
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:t=>$e(e,t),onAuxClick:t=>{1===t.button&&$e(e,t)},"aria-current":i?"page":void 0,className:U(i,!1),style:t>0?{paddingLeft:Y(t)}:void 0,children:[0===t&&Me(e.to,de),
|
|
13
|
-
/* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:Y(t)},"aria-hidden":"true"})]},e.to)},Be=(e,t)=>{const r=t?e.items:h(e,ye);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */K("span",{className:V,"aria-hidden":"true",children:e.icon}):Me(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ye),l="dividerAfter"in e&&e.dividerAfter;if(F)/* @__PURE__ */
|
|
14
|
-
return Q("div",{children:[
|
|
15
|
-
/* @__PURE__ */K("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:U(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
16
|
-
return Q("div",{children:[
|
|
17
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:U(!o&&i,!1),children:[n,
|
|
18
|
-
/* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
19
|
-
/* @__PURE__ */K(G,{open:o})]}),
|
|
20
|
-
/* @__PURE__ */K(X,{open:o,children:/* @__PURE__ */K("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>Re(e,1,Ie(r)))})}),l&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},He=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Te=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Ke=ne?.avatar_url?/* @__PURE__ */K("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */K("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Te}),Qe=Ae?We.current?.getBoundingClientRect():void 0,De=F?"":"px-3",Je=F?{paddingInline:y}:void 0,Pe=`${F?ke.expandSidebar:ke.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,Ue=ee?{run:ee,label:ke.goHome,title:ke.goHome}:se?null:{run:E,label:F?ke.expandSidebar:ke.collapseSidebar,title:Pe},Ve=/* @__PURE__ */Q(D,{children:[pe&&/* @__PURE__ */K(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!F&&/* @__PURE__ */Q("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
21
|
-
/* @__PURE__ */K("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */K("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Xe=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
|
|
22
|
-
return Q("aside",{"aria-label":ke.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:Z},children:[
|
|
23
|
-
/* @__PURE__ */Q("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(F?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Ue?/* @__PURE__ */K("button",{type:"button",onClick:Ue.run,"aria-label":Ue.label,title:Ue.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(F?"justify-center p-0.5":"-ml-1 p-1"),children:Ve}):/* @__PURE__ */K("span",{className:"flex min-w-0 items-center gap-2",children:Ve}),se?/* @__PURE__ */K(b,{onClick:se,"aria-label":ke.closeMenu,children:/* @__PURE__ */K(W,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!F&&/* @__PURE__ */K("button",{type:"button",onClick:E,"aria-label":ke.collapseSidebar,title:`${ke.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */K(O,{dir:"left"})})]}),
|
|
24
|
-
/* @__PURE__ */K("div",{className:`shrink-0 pt-3 ${De}`,style:Je,children:F?/* @__PURE__ */K("button",{type:"button",onClick:s,"aria-label":ke.search,title:`${ke.search} (${J?"⌘K":"Ctrl K"})`,className:U(!1,!0),children:/* @__PURE__ */K(_,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */Q("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
25
|
-
/* @__PURE__ */K(_,{className:"size-3.5 text-gray-500"}),
|
|
26
|
-
/* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ke.search}),
|
|
27
|
-
/* @__PURE__ */K("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:J?"⌘K":"Ctrl K"})]})}),
|
|
28
|
-
/* @__PURE__ */Q("nav",{"aria-label":ke.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${De} ${F?"space-y-1":"space-y-0.5"}`,style:Je,children:[F&&/* @__PURE__ */K("button",{type:"button",onClick:E,"aria-label":ke.expandSidebar,title:`${ke.expandSidebar} (${J?"⌘":"Ctrl"} .)`,className:`${U(!1,!0)} mb-3`,children:/* @__PURE__ */K(O,{dir:"right"})}),ve.topItems.map(e=>{if(!F)return Re(e,0);const t=d(e,ye),r=e.to===re||u(t,re,ye),n=e.menuLabel??e.label;/* @__PURE__ */
|
|
29
|
-
return Q("div",{children:[
|
|
30
|
-
/* @__PURE__ */K("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void $e(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:U(r,!0),children:Me(e.to,de)}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Xe&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Be(e,!1)),ve.systemSections.map(e=>Be(e,!1)),ve.virtualSections.map(e=>Be(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Be(e,!1))]}),
|
|
31
|
-
/* @__PURE__ */K("div",{className:`shrink-0 border-t border-gray-200 py-2 ${De}`,style:Je,children:/* @__PURE__ */Q("button",{ref:We,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":Ae,"aria-label":F?ke.accountMenu(He):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(F?"justify-center py-2":"px-2 py-2"),children:[Ke,!F&&/* @__PURE__ */Q("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
32
|
-
/* @__PURE__ */K("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:He}),ae?.email&&He!==ae.email&&/* @__PURE__ */K("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!F&&!se&&/* @__PURE__ */K(o,{side:"left",width:Z,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ke.resizeSidebar}),Ae&&Qe&&/* @__PURE__ */Q(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:P(Z,Qe,window.innerHeight),children:[F&&/* @__PURE__ */Q("div",{className:"border-b border-line px-3 py-3",children:[
|
|
33
|
-
/* @__PURE__ */K("p",{className:"truncate text-sm font-semibold text-gray-800",children:He}),ae?.email&&/* @__PURE__ */K("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
|
|
34
|
-
/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),te("/profile",!1)},children:[
|
|
35
|
-
/* @__PURE__ */K(W,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.profile]}),ve.footerItems.map(e=>/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),$e(e)},children:[
|
|
36
|
-
/* @__PURE__ */K("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),oe()},children:[
|
|
37
|
-
/* @__PURE__ */K(W,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.reportIssue]}),
|
|
38
|
-
/* @__PURE__ */K(A,{}),le&&/* @__PURE__ */Q(D,{children:[
|
|
39
|
-
/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),le()},children:[
|
|
40
|
-
/* @__PURE__ */K(W,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.switchToDesktop]}),
|
|
41
|
-
/* @__PURE__ */K(A,{})]}),
|
|
42
|
-
/* @__PURE__ */Q(L,{danger:!0,onClick:()=>{ze(!1),ie()},children:[
|
|
43
|
-
/* @__PURE__ */K(W,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.signOut]})]}),Se&&F&&/* @__PURE__ */K(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:Z+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ye).map((e,t)=>/* @__PURE__ */Q("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */K(A,{}),e.heading&&/* @__PURE__ */K(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */Q(L,{onClick:()=>$e(e),children:[Me(e.to,de),
|
|
44
|
-
/* @__PURE__ */K("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{P as accountMenuPosition,Z as default};
|
package/dist/chunk-4DO47TT5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="10.22.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-5532S4RN.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-KABWJIY4.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-AGPPZHAH.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-GDQJBQ5B.js";import{formatPlain as h,formatPercent as c}from"./chunk-C3QOHMR6.js";import{useState as u}from"react";import{jsx as s,jsxs as d}from"react/jsx-runtime";function m(e,t,r,l,a,n,i,o){if(l>=8)return;const h=e.reduce((e,t)=>e+p(t,8-l),0);if(h<=0)return;let c=t;e.forEach((e,t)=>{const u=p(e,8-l),s=u/h*r,d=`${i}/${e.key}`,f=0===l?t:a,b=0===l?e.key:n;o.push({id:d,label:e.label,value:u,depth:l,start:c,end:c+s,branch:f,branchKey:b}),e.children?.length&&m(e.children,c,s,l+1,f,b,d,o),c+=s})}function p(e,t){return t>0&&e.children?.length?e.children.reduce((e,r)=>e+p(r,t-1),0):Math.max(0,e.value??0)}function f({nodes:p,size:f=320,innerRadius:b=44,ringGap:v=2,formatValue:k,centerLabel:x,className:g,emptyLabel:y}){const M=i().charts,$=o(),j=k??(e=>h(e,$)),A=y??M.nothingToBreakDown,[N,w]=u(null),{highlighted:B}=r(),C=[];if(m(p,-Math.PI/2,2*Math.PI,0,0,"","",C),0===C.length)/* @__PURE__ */return s("p",{className:`text-sm text-gray-500 ${g??""}`,children:A});const E=Math.max(...C.map(e=>e.depth))+1,H=f/2,I=f/2,L=(f/2-8-b)/E,P=C.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),Q=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,z=e=>null!==N?e.id===N:null===B||e.branchKey===B,F=N?C.find(e=>e.id===N):void 0,G=e=>c(e.value/P*100,1,$);/* @__PURE__ */
|
|
2
|
-
return d("div",{className:`relative ${g??""}`,children:[
|
|
3
|
-
/* @__PURE__ */d("svg",{width:"100%",height:f,viewBox:`0 0 ${f} ${f}`,role:"img","aria-label":M.sunburst(j(P),E),onMouseLeave:()=>w(null),children:[C.map(e=>/* @__PURE__ */s("path",{d:t(H,I,b+e.depth*L+v/2,b+(e.depth+1)*L-v/2,e.start,e.end),fill:Q(e),fillOpacity:z(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>w(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:H,y:I+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:a.label,children:x})]}),F&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(l,{title:F.label,rows:[{key:"value",label:M.value,color:Q(F),value:j(F.value)},{key:"share",label:M.share,color:a.muted,value:G(F)}]})}),
|
|
4
|
-
/* @__PURE__ */s(e,{caption:M.sunburst(j(P),E),head:[M.tableLevel,M.tableItem,M.value,M.share],rows:C.map(e=>[e.depth+1,e.label,j(e.value),G(e)])})]})}export{f as SunburstChart};
|
package/dist/chunk-5R4X7MFQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t={}){const e=t.whenUnset??!1;try{const n=(t.doc??document).documentElement,a=n.getAttribute("data-theme");return!("dark"!==a&&!n.classList.contains("dark"))||"light"!==a&&e}catch{return e}}var e=["data-theme","class"];export{e as ROOT_THEME_ATTRIBUTES,t as rootIsDark};
|
package/dist/chunk-5XKCOKYJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ROOT_THEME_ATTRIBUTES as t,rootIsDark as e}from"./chunk-5R4X7MFQ.js";import{useCallback as n,useSyncExternalStore as r}from"react";function o(o={}){const c=o.doc??null,u=o.whenUnset??!1,s=n(e=>{const n=(c??document).documentElement,r=new MutationObserver(e);return r.observe(n,{attributes:!0,attributeFilter:t}),()=>r.disconnect()},[c]),i=n(()=>e({doc:c,whenUnset:u}),[c,u]),m=n(()=>u,[u]);return r(s,i,m)}export{o as useRootIsDark};
|
package/dist/chunk-F7U5MVNH.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as t}from"./chunk-AGPPZHAH.js";import{CartesianPlot as o}from"./chunk-QO5E33DH.js";import{binValues as r}from"./chunk-2JWPNR2U.js";import{resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as e,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPlain as m,formatFixed as n}from"./chunk-C3QOHMR6.js";import{jsx as l}from"react/jsx-runtime";function c({values:c,bins:s=10,precomputed:h,height:u=220,width:p,color:b,tone:f,formatBound:d,formatCount:x,yAxisLabel:g,label:k,className:y,emptyLabel:j}){const A=e().charts,v=i(),w=d??(t=>Number.isInteger(t)?m(t,v):n(t,1,v)),L=x??(t=>m(t,v)),H=g??A.countAxis,M=k??A.distribution,N=h??r(c??[],s),P=a(0,b,f),Q=N.map(t=>w(t.from)),B=N.map(t=>t.count);/* @__PURE__ */
|
|
2
|
-
return l(o,{labels:Q,values:B,height:u,width:p,bandPadding:0,xTickAnchor:"start",formatValue:L,yAxisLabel:H,className:y,emptyLabel:j,ariaLabel:A.histogram(M,N.length,(c??[]).length),tooltip:o=>/* @__PURE__ */l(t,{title:`${w(N[o].from)} – ${w(N[o].to)}`,rows:[{key:"count",label:A.observations,color:P,value:L(N[o].count)}]}),children:({x:t,y:o,bottom:r,active:a})=>/* @__PURE__ */l("g",{children:N.map((e,i)=>/* @__PURE__ */l("rect",{x:t(i)+.5,y:o(e.count),width:Math.max(1,t.bandwidth-1),height:Math.max(0,r-o(e.count)),fill:P,fillOpacity:null===a||a===i?.85:.42},i))})})}export{c as HistogramChart};
|
package/dist/chunk-FX4KK5GE.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{DropdownMenu as e}from"./chunk-URQWWOHM.js";import{Button_default as i}from"./chunk-NGRTW6Y7.js";import{iconButtonClasses as n}from"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-2UO47XB4.js";import{Tooltip as a}from"./chunk-22LRMKLV.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:g=!1,disabledReason:N,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:W,menuFooterLabel:R,align:C="end",side:L="bottom",menuMinWidth:z,linkAs:M,block:O=!1,className:F=""},U){const Y=g&&(null!=N&&""!==N&&!1!==N)&&!v,$=x&&null!=j&&""!==j&&!1!==j,A=o(),B=/* @__PURE__ */t(i,{ref:U,type:b,variant:f,size:p,loading:v,leftIcon:k,block:O,disabled:g&&!Y,"aria-disabled":!!Y||void 0,disabledReason:Y?N:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),D=O?"relative flex min-w-0 flex-1":"relative inline-flex",I=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
-
return s("div",{className:[O?"flex w-full":"inline-flex","items-stretch",F].filter(Boolean).join(" "),children:[null==w||""===w||Y?B:/* @__PURE__ */t(a,{content:w,className:D,children:B}),
|
|
3
|
-
/* @__PURE__ */t(a,{content:$?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":$?A:void 0,items:h,align:C,side:L,minWidth:z,linkAs:M,disabled:x&&!$,"aria-disabled":$,onOpenChange:y,footer:W,footerLabel:R,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:I,strokeWidth:2,"aria-hidden":"true"})})}),$&&/* @__PURE__ */t("span",{id:A,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
package/dist/chunk-GCMCXRIN.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as i}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as n,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-LJN77RG6.js";import{useSettingAuto as d}from"./chunk-2NMW66P5.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-AYZY3YNC.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-URHGHXDN.js";import{Icon as m}from"./chunk-2UO47XB4.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as g}from"./chunk-D65T4H6J.js";import{solidSurfaceStyle as y}from"./chunk-BB6A5MGA.js";import{registerModalEscapeInterceptor as x}from"./chunk-TWVUQUUD.js";import{useShellStrings as k}from"./chunk-GDQJBQ5B.js";import{forwardRef as N,useId as w,useState as $,useRef as D,useMemo as j,useCallback as S,useEffect as H}from"react";import{createPortal as T}from"react-dom";import{jsxs as B,jsx as C,Fragment as E}from"react/jsx-runtime";var O=e=>e.labelStyle?{lineHeight:1.25,...e.labelStyle}:void 0,I=N(function({value:e,onChange:t,options:r,placeholder:i,invalid:n,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},x){const N=t,$=k(),D=d(),j=f??D,S=w(),H=/* @__PURE__ */B("select",{ref:x,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":n||void 0,"aria-describedby":[g,j?S:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:n,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==i&&!b&&/* @__PURE__ */C("option",{value:"",disabled:!0,children:i}),
|
|
2
|
-
/* @__PURE__ */C(z,{items:r})]});return j?/* @__PURE__ */B(E,{children:[H,
|
|
3
|
-
/* @__PURE__ */C("span",{id:S,hidden:!0,children:$.settingView.auto})]}):H});function z({items:e}){const t=e=>/* @__PURE__ */C("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
|
|
4
|
-
return C(E,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */C("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var A=N(function({value:l,onChange:u,options:N,placeholder:I,invalid:A,className:U="",id:R,disabled:G,size:K,touchSize:V,title:L,multiple:M,renderOption:P,renderValue:W,valueText:J,readOnly:F=!1,footer:Y,changed:Q=!1,auto:X,"aria-describedby":q,"aria-label":Z,"aria-labelledby":_,...ee},te){const[re,ie]=$(!1),[ne,ae]=$(-1),le=D(null),oe=D(null),de=D(null),se=D(null),ce=D([]),ue=()=>se.current??de.current,pe=!!Y?.length,me="sm"===K,ve=me?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",he=p(me),[fe,be]=$(null),ge=k(),ye=D(re);ye.current=re;const xe=D({buffer:"",timer:null}),ke=w(),Ne=`${ke}-listbox`,we=R??`${ke}-trigger`,$e=e=>`${ke}-opt-${e}`,De=`${ke}-changed`,je=d(),Se=X??je,He=`${ke}-auto`,Te=[q,Q?De:void 0,Se?He:void 0].filter(Boolean).join(" ")||void 0,Be=j(()=>n(N),[N]),Ce=M?l:[],Ee=u,Oe=f(oe,re,{matchTriggerWidth:!0,...Y?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Ie=`${re}|${Oe?.top}|${Oe?.bottom}|${Oe?.maxHeight}|${N.length}`;g(()=>{be(null)},[Ie]),g(()=>{const e=de.current;if(!re||!e||null!==fe)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const i=e.getBoundingClientRect().top;let n=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-i+e.scrollTop;if(!(r<=e.clientHeight+.5))break;n=r}n>r&&be(Math.floor(n))},[re,fe,Ie]);const ze=M?Be.findIndex(e=>Ce.includes(e.value)):Be.findIndex(e=>e.value===l),Ae=M?Be.filter(e=>Ce.includes(e.value)).map(e=>e.label).join(", ")||void 0:ze>=0?Be[ze].label:void 0,Ue=!M&&ze>=0?Be[ze].lang:void 0,Re=M?Be.filter(e=>Ce.includes(e.value)):ze>=0?[Be[ze]]:[],Ge=W&&Re.length?W(Re):void 0,Ke=void 0!==Ge&&J?J(Re):void 0,Ve=S((e=!0)=>{ie(!1),ae(-1),e&&oe.current?.focus()},[]),Le=S(()=>{G||F||(ae(ze>=0?ze:e(Be)),ie(!0))},[G,F,Be,ze]),Me=S(e=>{const t=Be[e];if(t&&!t.disabled){if(M){const r=l;return Ee(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ae(e)}Ee(t.value),Ve()}},[Be,M,l,Ee,Ve]);H(()=>{if(!re)return;return x(e=>!("Escape"!==e.key||!ye.current)&&(Ve(),!0),ue)},[re,Ve]),H(()=>{if(!re)return;const e=e=>{const t=e.target;le.current?.contains(t)||ue()?.contains(t)||Ve(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Ve(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[re,Ve]),H(()=>{!re||ne<0||de.current?.querySelector(`#${CSS.escape($e(ne))}`)?.scrollIntoView({block:"nearest"})},[re,ne]);const Pe=S(e=>{const r=xe.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const i=re?ne:ze,n=t(Be,r.buffer,i);n<0||(re?ae(n):M?(ae(n),ie(!0)):Me(n))},[re,ne,ze,Be,Me,M]),We=re?a(N,(e,t)=>{const r=(i=e.value,M?Ce.includes(i):l===i);var i;const n=t===ne;/* @__PURE__ */
|
|
5
|
-
return B("div",{id:$e(t),role:"option",lang:e.description||e.labelStyle||P?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ae(t)},onClick:()=>Me(t),className:`mx-1 cursor-pointer truncate rounded-lg ${ve}${M?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":n?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[M&&/* @__PURE__ */C(o,{selected:r}),P?/* @__PURE__ */C("span",{className:"block min-w-0 flex-1 truncate",children:P(e,{selected:r,active:n})}):M?/* @__PURE__ */B("span",{className:"block min-w-0 flex-1",children:[
|
|
6
|
-
/* @__PURE__ */C("span",{lang:e.lang,className:"block truncate",style:O(e),children:e.label}),e.description&&/* @__PURE__ */C("span",{className:he,children:e.description})]}):e.description||e.labelStyle?
|
|
7
|
-
/* @__PURE__ */B(E,{children:[
|
|
8
|
-
/* @__PURE__ */C("span",{lang:e.lang,className:"block truncate",style:O(e),children:e.label}),e.description&&/* @__PURE__ */C("span",{className:he,children:e.description})]}):e.label]},e.value)},ke,"mx-1"):null,Je=void 0!==Ge?
|
|
9
|
-
/* @__PURE__ */B("span",{className:"relative block min-w-0 truncate",children:[
|
|
10
|
-
/* @__PURE__ */C("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:Ge}),
|
|
11
|
-
/* @__PURE__ */C("span",{lang:void 0===Ke?Ue:void 0,className:"sr-only",children:Ke??Ae})]}):/* @__PURE__ */C("span",{lang:Ue,className:`block truncate ${void 0===Ae?c:""}`,children:Ae??I??" "}),Fe={zIndex:h.popup,left:Oe?.left,top:Oe?.top,bottom:Oe?.bottom,width:Oe?.width,maxHeight:Oe?.maxHeight??b,visibility:Oe?void 0:"hidden",...y()},Ye=/* @__PURE__ */C("div",{ref:de,id:Ne,role:"listbox","aria-labelledby":_??(Z?void 0:we),"aria-label":_?void 0:Z,"aria-multiselectable":M||void 0,className:pe?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:pe?null!==fe?{maxHeight:fe}:void 0:null!==fe?{...Fe,maxHeight:fe}:Fe,children:We}),Qe=pe?/* @__PURE__ */B("div",{ref:se,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Fe,children:[Ye,
|
|
12
|
-
/* @__PURE__ */C("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:Y.map((e,t)=>/* @__PURE__ */B("button",{ref:e=>{ce.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Ve(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(Y?.length??0)-1,i=t=>{e.preventDefault(),ce.current[t]?.focus()},n=()=>{e.preventDefault(),oe.current?.focus()};switch(e.key){case"ArrowDown":return void i(Math.min(t+1,r));case"ArrowUp":return void(0===t?n():i(t-1));case"Home":return void i(0);case"End":return void i(r);case"Tab":return e.shiftKey?void(0===t?n():i(t-1)):t<r?void i(t+1):(e.preventDefault(),void Ve());case"Escape":return e.preventDefault(),e.stopPropagation(),void Ve()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${ve} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-ink-faintest":"cursor-pointer text-ink hover:bg-accent-tint hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */C(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
|
|
13
|
-
/* @__PURE__ */C("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):Ye;/* @__PURE__ */
|
|
14
|
-
return B("div",{ref:le,className:"relative",children:[
|
|
15
|
-
/* @__PURE__ */C("button",{ref:oe,id:we,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":re,"aria-controls":re?Ne:void 0,"aria-activedescendant":re&&ne>=0?$e(ne):void 0,"aria-invalid":A||void 0,"aria-describedby":Te,"aria-label":Z,"aria-labelledby":_,title:L,disabled:G,"aria-readonly":F||void 0,onClick:()=>re?Ve():Le(),onKeyDown:t=>{if(!G&&!F)switch(t.key){case"ArrowDown":return t.preventDefault(),void(re?ae(e=>i(Be,e,1)):Le());case"ArrowUp":return t.preventDefault(),void(re?ae(e=>i(Be,e,-1)):Le());case"Home":return void(re&&(t.preventDefault(),ae(e(Be))));case"End":return void(re&&(t.preventDefault(),ae(r(Be))));case"Enter":return void(re&&(t.preventDefault(),Me(ne)));case" ":return t.preventDefault(),void(re?Me(ne):Le());case"Escape":return void(re&&(t.preventDefault(),t.stopPropagation(),Ve()));case"Tab":return re&&pe&&!t.shiftKey?(t.preventDefault(),void ce.current[0]?.focus()):void(re&&Ve(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Pe(t.key))}},className:s({invalid:A,size:K,readOnly:F,auto:Se,className:`${F?"":"pr-8 "}text-left ${U}`.trim()}),children:Q?
|
|
16
|
-
/* @__PURE__ */B("span",{className:"flex min-w-0 items-center gap-1",children:[Je,
|
|
17
|
-
/* @__PURE__ */C("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Je}),Q&&/* @__PURE__ */C("span",{id:De,hidden:!0,children:ge.select.changed}),Se&&/* @__PURE__ */C("span",{id:He,hidden:!0,children:ge.settingView.auto}),!F&&/* @__PURE__ */C(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
|
|
18
|
-
/* @__PURE__ */B("select",{ref:te,value:l,multiple:M||void 0,onChange:e=>Ee(M?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:G,"aria-hidden":"true",tabIndex:-1,className:"sr-only",...ee,children:[void 0!==I&&!M&&/* @__PURE__ */C("option",{value:"",disabled:!0,children:I}),
|
|
19
|
-
/* @__PURE__ */C(z,{items:N})]}),re&&T(Qe,document.body)]})}),U=N(function({touchSize:e,...t},r){const i=u(),n=e??"touch";return!i||void 0===t.footer&&void 0===t.changed||t.readOnly?i&&!t.readOnly?/* @__PURE__ */C(I,{ref:r,...t,size:n}):/* @__PURE__ */C(A,{ref:r,...t}):/* @__PURE__ */C(A,{ref:r,...t,size:n})});export{I as NativeSelect,U as Select_default};
|
package/dist/chunk-H43BVPNN.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-KABWJIY4.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-AGPPZHAH.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-GDQJBQ5B.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:j}){const w=n().charts,M=m(),N=y??(e=>h(e,M)),A=j??w.nothingToBreakDown,B=c(null),$=r(B),C=v??$,[G,H]=u(null),{highlighted:P}=l(),Y=e(p,C,d);if(0===Y.length)/* @__PURE__ */
|
|
2
|
-
return s("div",{className:b,ref:B,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:A})});const z=k??i(0),D=Math.max(...Y.map(e=>e.value),1),F=e=>34+e/D*62,Q=e=>`color-mix(in oklab, ${z} ${F(e).toFixed(0)}%, ${o.surface})`,Z=e=>F(e)>=55?o.surface:o.label,E=G??P,I=G?Y.find(e=>e.key===G):void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${b??""}`,ref:B,children:[
|
|
4
|
-
/* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${C} ${d}`,role:"img","aria-label":w.treemap(p.length),onMouseLeave:()=>H(null),children:Y.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:E&&E!==e.key?.55:1,onMouseEnter:()=>H(e.key),children:[
|
|
6
|
-
/* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:Q(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:Z(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:Z(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),I&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:I.label,rows:[{key:"value",label:w.value,color:Q(I.value),value:N(I.value)}]})}),
|
|
7
|
-
/* @__PURE__ */s(t,{caption:w.treemap(p.length),head:[w.tableItem,w.value],rows:Y.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
|
package/dist/chunk-IWOVB4WI.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-KABWJIY4.js";import{bumpPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as n}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-AGPPZHAH.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as s}from"./chunk-GDQJBQ5B.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as m}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function f({nodes:f,links:k,height:p=320,width:x,nodeWidth:g=14,nodePadding:y=12,formatValue:v,className:M,emptyLabel:w}){const b=i().charts,j=s(),$=v??(e=>h(e,j)),N=w??b.noFlows,A=c(null),C=l(A),E=x??C,[F,B]=m(null),{highlighted:H}=n();if(0===f.length||0===k.length)/* @__PURE__ */
|
|
2
|
-
return d("div",{className:M,ref:A,children:/* @__PURE__ */d("p",{className:"py-8 text-center text-sm text-gray-500",children:N})});const P=[...new Set(f.map(e=>e.depth))].sort((e,t)=>e-t),Q=e=>P.length<=1?0:P.indexOf(e)/(P.length-1)*(E-g-140)+70,z=new Map(f.map(e=>{const t=k.filter(t=>t.from===e.key).reduce((e,t)=>e+t.value,0),n=k.filter(t=>t.to===e.key).reduce((e,t)=>e+t.value,0);return[e.key,Math.max(t,n,e.value??0)]})),O=/* @__PURE__ */new Map;for(const e of f)O.set(e.depth,[...O.get(e.depth)??[],e]);const U=Math.max(...[...O.values()].map(e=>e.reduce((e,t)=>e+(z.get(t.key)??0),0))),W=p-20,Y=U>0?(W-y*(Math.max(...[...O.values()].map(e=>e.length))-1))/U:0,Z=/* @__PURE__ */new Map;for(const[e,t]of O){const n=t.map(e=>Math.max(2,(z.get(e.key)??0)*Y)),o=n.reduce((e,t)=>e+t,0)+y*(t.length-1),l=n.reduce((e,t)=>e+Math.max(0,t-2),0),r=o>W&&l>0?Math.max(0,1-(o-W)/l):1;let a=10;t.forEach((t,o)=>{const l=2+Math.max(0,n[o]-2)*r;Z.set(t.key,{x:Q(e),y:a,h:l,index:o}),a+=l+y})}const G=/* @__PURE__ */new Map,J=/* @__PURE__ */new Map,L=/* @__PURE__ */new Map,R=(e,t)=>e.from===t||e.to===t,S="link"===F?.kind?k[F.index]:void 0,T="node"===F?.kind?f.find(e=>e.key===F.key):void 0;/* @__PURE__ */
|
|
3
|
-
return u("div",{className:`relative ${M??""}`,ref:A,children:[
|
|
4
|
-
/* @__PURE__ */u("svg",{width:"100%",height:p,viewBox:`0 0 ${E} ${p}`,role:"img","aria-label":b.sankey(f.length,k.length),onMouseLeave:()=>B(null),children:[k.map((e,n)=>{const o=Z.get(e.from),l=Z.get(e.to);if(!o||!l)return null;const a=Math.max(1,e.value*Y),i=o.y+(G.get(e.from)??0)+a/2,s=l.y+(J.get(e.to)??0)+a/2;G.set(e.from,(G.get(e.from)??0)+a),J.set(e.to,(J.get(e.to)??0)+a);const h=o.x+g,c=l.x,m=r(o.index,e.color),u=`${e.from}→${e.to}`,f=L.get(u)??0;L.set(u,f+1);const k=((e,t)=>F?"link"===F.kind?F.index===t:R(e,F.key):null!==H?R(e,H):null)(e,n);/* @__PURE__ */
|
|
5
|
-
return d("path",{d:t([[h,i],[c,s]]),fill:"none",stroke:m,strokeWidth:a,strokeOpacity:null===k||k?.42:.12,onMouseEnter:()=>B({kind:"link",index:n})},f?`${u}#${f}`:u)}),f.map(e=>{const t=Z.get(e.key);if(!t)return null;const n=t.x>E/2,o=(l=e.key,F?"node"===F.kind?F.key===l:R(k[F.index],l):null!==H?H===l:null);var l;/* @__PURE__ */
|
|
6
|
-
return u("g",{opacity:null===o||o?1:.45,onMouseEnter:()=>B({kind:"node",key:e.key}),children:[
|
|
7
|
-
/* @__PURE__ */d("rect",{x:t.x,y:t.y,width:g,height:t.h,rx:2,fill:r(t.index,e.color,e.tone)}),
|
|
8
|
-
/* @__PURE__ */d("text",{x:n?t.x-8:t.x+g+8,y:t.y+t.h/2+4,textAnchor:n?"end":"start",fontSize:11,fill:a.label,children:e.label})]},e.key)})]}),S&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:`${S.from} → ${S.to}`,rows:[{key:"value",label:b.flow,color:r(Z.get(S.from)?.index??0,S.color),value:$(S.value)}]})}),T&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:T.label,rows:[{key:"value",label:b.throughput,color:r(Z.get(T.key)?.index??0,T.color,T.tone),value:$(z.get(T.key)??0)}]})}),
|
|
9
|
-
/* @__PURE__ */d(e,{caption:b.sankey(f.length,k.length),head:[b.tableFrom,b.tableTo,b.value],rows:k.map(e=>[e.from,e.to,$(e.value)])})]})}export{f as SankeyChart};
|
package/dist/chunk-LIULEXWE.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{ChartTooltip as t}from"./chunk-AGPPZHAH.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:A}){const N=o().charts,L=i(),S=y??(e=>h(e,L)),j=A??N.noStages,z=c(),[H,V]=m(null),{highlighted:Z}=e(),w=s(null),B=l(w,560),C=$??B;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const F=b??a(0),W=p??54*x.length,E=Math.max(...x.map(e=>e.value),1),P="bars"===v,Q=P?Math.round(Math.min(132,Math.max(80,.24*C))):Math.round(Math.min(168,Math.max(104,.38*C))),G=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},R=e=>{const t=G(e);return{count:S(x[e].value),drop:null!=t?`−${u(t,1,L)}`:""}},U=P?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=R(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,Y=C-Q-U,D=Math.max(P?2:0,Math.min(M,Y)),J=e=>Math.max(D,Y*Math.max(0,e/E)),O=e=>J(e)/2,T=Q+Y/2,X=e=>46+e/Math.max(1,x.length-1)*54,q=e=>`color-mix(in oklab, ${F} ${X(e).toFixed(0)}%, ${n.surface})`,I=e=>X(e)>=55?n.surface:n.label,K=(e,t)=>null!==H?H!==e:null!==Z&&Z!==t,_=null!==H?x[H]:void 0;/* @__PURE__ */
|
|
2
|
-
return f("div",{className:`relative ${k??""}`,ref:w,children:[
|
|
3
|
-
/* @__PURE__ */f("svg",{width:"100%",height:W,viewBox:`0 0 ${C} ${W}`,role:"img","aria-labelledby":z,onMouseLeave:()=>V(null),children:[
|
|
4
|
-
/* @__PURE__ */d("title",{id:z,children:N.funnel(x.length,S(x[0].value),S(x[x.length-1].value))}),x.map((e,t)=>{const l=t*W/x.length+g/2,a=(t+1)*W/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,L),i=.62*o.length*12+12;if(P){const u=Q,h=u+J(e.value),{count:c,drop:m}=R(t);/* @__PURE__ */
|
|
5
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
6
|
-
/* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:q(t)}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:Q-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:I(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
|
|
8
|
-
/* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
|
|
9
|
-
/* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=O(e.value),c="cone"===v?O(x[t+1]?.value??e.value):h,m=G(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
|
|
10
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>V(t),children:[
|
|
11
|
-
/* @__PURE__ */d("path",{d:`M${T-h},${l} L${T+h},${l} L${T+c},${a} L${T-c},${a} Z`,fill:q(t)}),
|
|
12
|
-
/* @__PURE__ */d("text",{x:Q-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
|
|
13
|
-
/* @__PURE__ */f("text",{x:Q-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[S(e.value),null!=m?` · −${u(m,1,L)}`:""]}),
|
|
14
|
-
/* @__PURE__ */d("text",{x:s?T:T+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?I(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==H&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(t,{title:_.label,rows:[{key:"value",label:N.count,color:q(H),value:S(_.value)},{key:"share",label:N.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,L)},...H>0&&x[H-1].value>0?[{key:"drop",label:N.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[H-1].value),1,L)}`}]:[]]})})]})}export{x as FunnelChart};
|
package/dist/chunk-LQVW3SW4.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-4EZIWLJJ.js";import{IconButton_default as a}from"./chunk-WVCX2Y3S.js";import{Icon as o}from"./chunk-2UO47XB4.js";import{Tooltip as n}from"./chunk-22LRMKLV.js";import{useShellStrings as s}from"./chunk-GDQJBQ5B.js";import{jsx as i,jsxs as t,Fragment as d}from"react/jsx-runtime";var c=e=>e.preventDefault(),u=e=>null!=e&&!1!==e,h=["bold","italic","underline","strike","link","sup","sub","code"];function p(e,l,r){const a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"first",End:"last"}[e.key];if(void 0===a||0===l.length)return;const o=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=o.findIndex(l=>l===e.target||l.contains(e.target));if(n<0)return;e.preventDefault();const s=o.length,i="first"===a?0:"last"===a?s-1:(n+a+s)%s;o[i].disabled||(r(l[i]),o[i].focus())}function b(e,l){const r=["bold","italic","underline","strike"].filter(l=>e.has(l)).length;return{color:r,link:r+(l?1:0)}}function m(e,l,r,a){const o=h.filter(l=>"link"!==l&&e.has(l)).length+(l?1:0);return r&&0!==o?a>0?"paragraph":"words":null}function w({offered:l,color:r,last:a,alignment:o,list:n,letterCase:s,clear:i}){let t=h.filter(e=>l.has(e)).length+(r?1:0)+(u(a)?1:0),d=(o?e.filter(e=>o.allow.includes(e)).length:0)+(n&&l.has("bullet")?1:0)+(n&&l.has("number")?1:0)+(l.has("quote")?1:0)+(s?3:0);const c=m(l,r,i,d);return"paragraph"===c&&(d+=1),"words"===c&&(t+=1),{words:t>0,paragraph:d>0,oneRow:t>0&&d>0&&t+1+d<=9,flow:t>0&&d>0&&t+1+d>9&&t<=7,cells:{words:t,paragraph:d}}}function g(e,l){/* @__PURE__ */
|
|
2
|
-
return i(n,{content:e,children:l},l.key??void 0)}function f({offered:n,pressed:h,onMark:f,color:k,linkOpen:v=!1,last:N,alignment:C,list:D,letterCase:M,clear:x,disabled:y=!1,"aria-label":B,windows:L,className:j="",layout:q="grid"}){const A=s().textToolbar,I=w({offered:n,color:k,last:N,alignment:C,list:D,letterCase:M,clear:x});if(!I.words&&!I.paragraph)return null;const R=m(n,k,x,I.cells.paragraph),S=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,$=(e,l,r,o)=>n.has(e)?g(l,/* @__PURE__ */i(a,"link"===e?{pressed:v,className:S(v),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":v,"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r}:{className:S(Boolean(h[e])),"aria-label":l,"aria-pressed":Boolean(h[e]),"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r},e)):null,K=l(A),U=e.map(e=>[e,K[e],r(e)]),J=C?e.filter(e=>C.allow.includes(e)):[],T=C&&J.includes(C.value)?C.value:J[0],E=[["none",A.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",A.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",A.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],O=x&&R?g(A.clear,/* @__PURE__ */i(a,{className:S(!1),"aria-label":A.clear,disabled:y,onMouseDown:c,onClick:x.onClear,children:/* @__PURE__ */i(o,{name:"revert"})},"clear")):null,Q=/* @__PURE__ */t(d,{children:[$("bold",A.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),$("italic",A.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),$("underline",A.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),$("strike",A.strike,/* @__PURE__ */i(o,{name:"strike"})),k?g(A.color,/* @__PURE__ */i(a,{pressed:k.open,className:S(k.open,"rosh-tb-color"),"aria-label":A.color,"aria-haspopup":"dialog","aria-expanded":k.open,disabled:y,style:k.run?{"--rosh-tb-run":k.run}:void 0,onMouseDown:c,onClick:k.onToggle,children:/* @__PURE__ */i(o,{name:"text-color"})},"color")):null,$("link",A.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),$("sup",A.sup,/* @__PURE__ */i(o,{name:"superscript"})),$("sub",A.sub,/* @__PURE__ */i(o,{name:"subscript"})),$("code",A.code,/* @__PURE__ */i(o,{name:"code"})),u(N)?N:null,"words"===R?O:null]}),V=/* @__PURE__ */t(d,{children:[C&&J.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":A.alignment,onKeyDown:e=>p(e,J,e=>C.onChange(e)),children:U.map(([e,l,r])=>C.allow.includes(e)?g(l,/* @__PURE__ */i(a,{role:"radio",pressed:C.value===e,className:S(C.value===e),"aria-checked":C.value===e,"aria-label":l,tabIndex:e===T?0:-1,disabled:y||C.disabled,onMouseDown:c,onClick:()=>C.onChange(e),children:r},e)):null)}):null,D&&n.has("bullet")?g(A.bullet,/* @__PURE__ */i(a,{className:S("bullet"===D.pressed),"aria-label":A.bullet,"aria-pressed":"bullet"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("bullet"),children:/* @__PURE__ */i(o,{name:"list"})},"bullet")):null,D&&n.has("number")?g(A.number,/* @__PURE__ */i(a,{className:S("number"===D.pressed),"aria-label":A.number,"aria-pressed":"number"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,$("quote",A.quote,/* @__PURE__ */i(o,{name:"quote"})),M?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":A.letterCase,onKeyDown:e=>p(e,E.map(([e])=>e),e=>M.onChange(e)),children:E.map(([e,l,r])=>g(l,/* @__PURE__ */i(a,{role:"radio",pressed:M.value===e,className:S(M.value===e),"aria-checked":M.value===e,"aria-label":l,tabIndex:e===(M.value||"none")?0:-1,disabled:y||M.disabled,onMouseDown:c,onClick:()=>M.onChange(M.value===e?"":e),children:r},e)))}):null,"paragraph"===R?O:null]}),W="row"===q,X=W?" is-row":I.flow?" is-flow":I.oneRow?" is-one-row":I.words&&void 0===N&&"words"!==R?" is-eight":"",G=b(n,Boolean(k)),H={"--rosh-tb-color-col":String(G.color),"--rosh-tb-link-col":String(G.link),...W?{"--rosh-tb-cells":String(I.cells.words+I.cells.paragraph),"--rosh-tb-groupgap":I.words&&I.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let Y;return Y=W?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[I.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:Q}):null,I.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:V}):null]}):I.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[Q,
|
|
3
|
-
/* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),V]}):I.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
|
|
4
|
-
/* @__PURE__ */i("div",{className:"rosh-tb-words",children:Q}),
|
|
5
|
-
/* @__PURE__ */i("div",{className:"rosh-tb-para",children:V})]}):/* @__PURE__ */t(d,{children:[I.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===N&&"words"!==R?" is-eight":""),children:Q}):null,I.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:V}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${X} ${j}`.trim(),style:H,children:[
|
|
6
|
-
/* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":B??A.formatting,children:Y}),L]})}export{f as TextToolbar,w as textToolbarRows,b as textToolbarWindowColumns};
|
package/dist/chunk-NGRTW6Y7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{buttonClasses as e}from"./chunk-UQYNPYF4.js";import{isAriaDisabled as a,swallowPress as r,describedByWith as i,OffWithReason as s}from"./chunk-WJ6ZJVAX.js";import{SpinnerRing as l}from"./chunk-R2VKEMZH.js";import{forwardRef as d,useId as n}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var o=d(function({variant:d="primary",size:o="md",loading:m=!1,leftIcon:p,rightIcon:b,block:f=!1,disabled:u,type:h="button",children:k,className:x="",disabledReason:N,onClick:y,pressed:v,"aria-disabled":g,"aria-describedby":j,...w},z){const C=n(),I=u||m,J=null!=N&&""!==N,R=I&&J,V=!I&&a(g),Y=V&&J,Z=R||Y?C:void 0,A=/* @__PURE__ */t("button",{ref:z,type:h,disabled:I,"aria-busy":m||void 0,"aria-disabled":!!V||g,"aria-describedby":i(j,Z),onClick:V?r:y,className:e({variant:d,size:o,block:f,pressed:v??(!0===w["aria-pressed"]||"true"===w["aria-pressed"]),className:x}),...w,children:[m?/* @__PURE__ */c(l,{className:"h-3.5 w-3.5",ink:""}):p,k,!m&&b]});return Y?/* @__PURE__ */c(s,{reason:N,id:C,block:f,children:A}):R?/* @__PURE__ */t("span",{className:f?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[A,
|
|
2
|
-
/* @__PURE__ */c("span",{id:Z,className:"text-xs text-red-600",children:N})]}):A});export{o as Button_default};
|
package/dist/chunk-PBFFKRQF.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-NGRTW6Y7.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import{Tooltip as d}from"./chunk-22LRMKLV.js";import{onOverlayOpen as h}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as p}from"./chunk-62LW225J.js";import{useDropdownPosition as m,MENU_MAX_HEIGHT as f}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as b}from"./chunk-D65T4H6J.js";import{GLASS_DIVIDER as g,glassStyle as v}from"./chunk-BB6A5MGA.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as w}from"./chunk-GDQJBQ5B.js";import{useState as x,useId as k,useRef as $,useMemo as j,useEffect as N}from"react";import{createPortal as D}from"react-dom";import{jsxs as C,jsx as S}from"react/jsx-runtime";function L(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 R({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 W(W){const{options:M,placeholder:E,emptyOptionLabel:T,className:z="",disabled:A,id:B,filter:F=!1,allowFreeText:G=!1,freeTextOption:O,onSearchChange:J,loading:U=!1,error:H,onRetry:I,rightAdornment:Y,renderOption:K,clearable:Q=!0,"aria-label":V,"aria-labelledby":P,"aria-describedby":Z}=W,X=!0===W.multiple,q=W.multiple?W.value:W.value?[W.value]:[],_=W.multiple?"":W.value,ee=e=>{W.multiple?W.onChange(e):W.onChange(e[0]??"")},te=q.length>0,ne=F&&te&&!A,re=X||F,le=null!=O,oe=G||le,[ie,ae]=x(!1),[se,ue]=x(-1),ce=k(),de=B??`${ce}-input`,he=`${ce}-listbox`,pe=e=>`${ce}-opt-${e}`,[me,fe]=x(""),be=w(),ge=T??be.select.none,ve=e=>{fe(e),ue(-1),J?.(e)},ye=$(null),we=$(null),xe=$(null),ke=$(null),$e=$(ie);$e.current=ie;const je=$(!1),Ne=e=>{$e.current&&($e.current=!1,e&&G&&!le&&Qe&&(X?q.includes(Qe)||ee([...q,Qe]):Qe!==_&&ee([Qe])),ae(!1),ve(""))},De=(e,t)=>{if(!e.disabled){if(X)return ee(q.includes(e.value)?q.filter(t=>t!==e.value):[...q,e.value]),void(e===Ve?ve(""):ue(t));ee([e.value]),Ne(!1)}},[Ce,Se]=x(null);b(()=>{if(!Y||ie)return void Se(null);const e=ke.current?.offsetWidth??0;Se(e?e+(Te?32:8)+6:null)});const Le=m(we,ie,re?{popupRef:xe}:{matchTriggerWidth:!0}),Re=j(()=>t(M),[M]),We=q.join("\0"),Me=j(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Re)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},[Re,We,oe]),Ee=Me.join(", "),Te=Q&&te&&!A,[ze,Ae]=x(null),Be=$(null),Fe=$(""),Ge=$(()=>{});Ge.current=()=>{const e=we.current,t=Be.current;if(!X||!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===Fe.current)return;Fe.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=L(Me,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Ae(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},b(()=>{Ge.current()}),N(()=>{const e=we.current;if(!X||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Ge.current());return t.observe(e),()=>t.disconnect()},[X]);const Oe=Me.length,Je=!X||!ze||ze.shown>=Oe?Ee:0===ze.shown?be.select.selectedCount(Oe):`${Me.slice(0,ze.shown).join(", ")} +${Oe-ze.shown}`,Ue=X&&null!==ze&&(ze.shown<Oe||ze.cut),He=ie&&te&&re;N(()=>{if(!ie)return;const e=e=>{const t=e.target;ye.current?.contains(t)||xe.current?.contains(t)||Ne(!0)};document.addEventListener("mousedown",e);const t=h(()=>Ne(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[ie,G,me,We,W.onChange]),N(()=>{if(ie)return y(e=>!("Escape"!==e.key||!$e.current)&&(Ne(!1),we.current?.blur(),!0),()=>xe.current)},[ie]);const Ie=j(()=>{const e=/* @__PURE__ */new Set;return n(M,t=>!e.has(t.value)&&(e.add(t.value),!0))},[M]),Ye=j(()=>{if(J)return Ie;const e=me.trim().toLowerCase();return e?n(Ie,t=>r(t,e)):Ie},[Ie,me,J]),Ke=j(()=>t(Ye),[Ye]),Qe=me.trim(),Ve=j(()=>le&&Qe?Re.some(e=>e.label===Qe)||q.includes(Qe)?null:{value:Qe,label:Qe}:null,[le,Qe,Re,We]),Pe=j(()=>Ve?[...Ke,Ve]:Ke,[Ke,Ve]);/* @__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))||je.current||document.activeElement!==we.current&&Ne(!0)},children:[(Ze=/* @__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<Pe.length?pe(se):void 0,"aria-label":P?void 0:V,"aria-labelledby":P,"aria-describedby":Z,value:ie?me:Je,onChange:e=>{ve(e.target.value),ae(!0)},onFocus:()=>{A||(ve(""),ae(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(A)return;if(t.preventDefault(),!ie)return void ae(!0);if(0===Pe.length)return;const n="ArrowDown"===t.key?1:-1;return void ue(t=>e(Pe,t,n))}"Enter"===t.key?(t.preventDefault(),ie&&se>=0&&se<Pe.length?De(Pe[se],se):1!==Ke.length||Ke[0].disabled?G&&!le&&Qe&&(X?(q.includes(Qe)||ee([...q,Qe]),ve("")):(ee([Qe]),Ne(!1),we.current?.blur())):De(Ke[0],0)):"Escape"===t.key?(Ne(!1),we.current?.blur()):"Tab"===t.key&&Ne(!0)},placeholder:He?Je:E||ge,className:`${ne?a:s} ${z} ${Te?"pr-8":""} ${A?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${He?" rosh-field-shows-choice":""}`,style:Ce?{paddingRight:Ce}:void 0,disabled:A}),X?/* @__PURE__ */S(d,{content:!ie&&Ue?Ee:null,className:"block",children:Ze}):Ze),X&&
|
|
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:Be,className:"whitespace-pre"})}),Te&&/* @__PURE__ */S(R,{ariaLabel:be.select.clear,onClear:()=>{ee([]),Ne(!1)}}),Y&&!ie&&/* @__PURE__ */S("div",{ref:ke,className:`absolute top-1/2 -translate-y-1/2 ${Te?"right-8":"right-2"} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:Y}),ie&&D(
|
|
5
|
-
/* @__PURE__ */C("div",{ref:xe,onMouseDownCapture:()=>{je.current=!0,setTimeout(()=>{je.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:p.popup,left:Le?.left,right:Le?.right,top:Le?.top,bottom:Le?.bottom,minWidth:Le?.minWidth,width:Le?.width,...re&&{maxWidth:Le?.maxWidth},visibility:Le?void 0:"hidden",...v()},children:[X&&te&&Q&&!A&&
|
|
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 ${g}`,children:be.select.clearAll}),U?
|
|
7
|
-
/* @__PURE__ */S(c,{size:"sm",padding:"py-2",label:be.search.searching}):H?/* @__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:H}),I&&/* @__PURE__ */S(u,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:I,className:"shrink-0",children:be.list.retry})]}):null,
|
|
9
|
-
/* @__PURE__ */C("div",{id:he,role:Pe.length?"listbox":void 0,"aria-labelledby":Pe.length?P??(V?void 0:de):void 0,"aria-label":Pe.length&&!P?V:void 0,"aria-multiselectable":!(!Pe.length||!X)||void 0,className:"overflow-y-auto",style:{maxHeight:Le?.maxHeight??f},children:[0===Pe.length?U||H?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(Ye,(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||X)&&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:[X&&/* @__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),Ve&&O&&
|
|
12
|
-
/* @__PURE__ */S("button",{id:pe(Ke.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{X&&e.preventDefault(),De(Ve,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 ${g}`:""} ${se===Ke.length?"bg-gray-100":""}`,children:/* @__PURE__ */S("span",{className:"min-w-0 flex-1 truncate",children:O(Ve.value)})},`${ce}-typed`)]})]}),document.body)]});var Ze}export{W as SearchableSelect,L as fitChoice};
|
package/dist/chunk-QFJIMX4A.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-KABWJIY4.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-AGPPZHAH.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-GDQJBQ5B.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:W}){const A=m().charts,C=c(),F=N??(e=>h(e,C)),w=W??A.nothingToCompare,B=p(),[R,H]=u(null),{highlighted:L}=a(),Q=x;if(k.length<3||0===Q.length)/* @__PURE__ */
|
|
2
|
-
return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:w});const Y=y/2,z=y/2,E=y/2-46,J=n(k.length),P=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...Q.map(e=>e.values[t]??0).filter(Number.isFinite))),T=(e,t)=>{const r=Math.max(0,Math.min(1,t/P[e])),l=J.center(e)-J.step/2;return[Y+E*r*Math.cos(l),z+E*r*Math.sin(l)]},U=(e,t)=>null!==R?R!==e:null!==L&&L!==t,Z=null!==R?Q[R]:void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${$??""}`,children:[
|
|
4
|
-
/* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":B,onMouseLeave:()=>H(null),children:[
|
|
5
|
-
/* @__PURE__ */d("title",{id:B,children:A.acrossMeasures(Q.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=E*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:Y,cy:z,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(Y,z,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=T(t,P[t]);/* @__PURE__ */
|
|
6
|
-
return f("g",{children:[
|
|
7
|
-
/* @__PURE__ */d("line",{x1:Y,y1:z,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
|
|
8
|
-
/* @__PURE__ */d("text",{x:Y+(E+18)*Math.cos(J.center(t)-J.step/2),y:z+(E+18)*Math.sin(J.center(t)-J.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
|
|
9
|
-
/* @__PURE__ */d(r,{id:B,reveal:!!j&&"center-out"}),Q.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>T(r,e.values[r]??0));/* @__PURE__ */
|
|
10
|
-
return f("g",{opacity:U(t,e.key)?.3:1,onMouseEnter:()=>H(t),mask:j?`url(#${l(B)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
|
|
11
|
-
/* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),Z&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Z.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(R,3,Z.color,Z.tone),value:F(Z.values[t]??0)}))})}),
|
|
12
|
-
/* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:Q.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
13
|
-
/* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
|
|
14
|
-
/* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
|
|
15
|
-
/* @__PURE__ */d(e,{caption:A.acrossMeasures(Q.map(e=>e.label),k.length),head:[A.tableSeries,...k.map(e=>e.label)],rows:Q.map(e=>[e.label,...k.map((t,r)=>F(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};
|
package/dist/chunk-QIMFBARF.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{ChartTooltip as e}from"./chunk-AGPPZHAH.js";import{axisGutter as t,radiusScale as i,niceMax as l,logScale as r,linearScale as o}from"./chunk-2JWPNR2U.js";import{usePlotWidth as n}from"./chunk-MAFUXCPZ.js";import{CHART_INK as a,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as h}from"./chunk-GDQJBQ5B.js";import{formatPlain as f}from"./chunk-C3QOHMR6.js";import{useRef as u,useId as p,useState as d,useEffect as x}from"react";import{jsx as y,jsxs as g}from"react/jsx-runtime";var b=3;function k({series:b,height:k=260,width:v,xLabel:M,yLabel:A,formatX:z,formatY:$,xDomain:j,yDomain:w,xScale:N="linear",yScale:R="linear",radiusRange:D=[4,22],className:P,emptyLabel:S}){const U=m().charts,L=h(),B=z??(e=>f(e,L)),Q=$??(e=>f(e,L)),W=S??U.noObservations,C=u(null),E=n(C),H=v??E,O=p(),[V,Z]=d(null);x(()=>{if(null!==V)return c(e=>"Escape"===e.key&&(Z(null),!0))},[V]);const F=(e,t)=>!t||e>=Math.min(t[0],t[1])&&e<=Math.max(t[0],t[1]),G=b.map((e,t)=>({...e,slot:t})).filter(e=>e.points.length>0),I=j||w?G.map(e=>({...e,points:e.points.filter(e=>F(e.x,j)&&F(e.y,w))})).filter(e=>e.points.length>0):G,J=G.reduce((e,t)=>e+t.points.length,0)-I.reduce((e,t)=>e+t.points.length,0);if(0===I.length)/* @__PURE__ */
|
|
2
|
-
return y("div",{className:P,ref:C,children:/* @__PURE__ */y("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:k},children:W})});const T=I.flatMap(e=>e.points),X=T.some(e=>null!=e.size),K=14,Y=20,q=34,_=52,ee=(e,t,i,n)=>{const a=e.filter(e=>e>0),s="log"===i?a.length>0?Math.min(...a):0:Math.min(0,...e),c=t??[s,l(Math.max(...e))];return"log"===i?r(c,n):o(c,n)},te=ee(T.map(e=>e.y),w,R,{from:k-q,to:K}),ie=t(te.ticks(5).map(Q),_),le=Math.max(ie+1,H-Y),re=ee(T.map(e=>e.x),j,N,{from:ie,to:le}),oe=i([0,Math.max(...T.map(e=>e.size??1))],{from:D[0],to:D[1]}),ne=V?I[V.s]:void 0,ae=V&&ne?ne.points[V.i]:void 0,se=I.flatMap((e,t)=>e.points.map((e,i)=>({s:t,i:i})));/* @__PURE__ */
|
|
3
|
-
return g("div",{className:`relative ${P??""}`,ref:C,children:[
|
|
4
|
-
/* @__PURE__ */g("svg",{width:"100%",height:k,viewBox:`0 0 ${H} ${k}`,role:"img","aria-label":U.scatter(I.map(e=>e.label),A??U.yAxis,M??U.xAxis)+(J>0?`. ${U.outsideRange(J)}`:""),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Z(null),onBlur:()=>Z(null),onKeyDown:e=>{if("ArrowRight"!==e.key&&"ArrowLeft"!==e.key)return;e.preventDefault();const t="ArrowRight"===e.key?1:-1,i=V?se.findIndex(e=>e.s===V.s&&e.i===V.i):0;Z(se[Math.min(se.length-1,Math.max(0,i+t))])},children:[
|
|
5
|
-
/* @__PURE__ */y("defs",{children:/* @__PURE__ */y("clipPath",{id:O,children:/* @__PURE__ */y("rect",{x:ie-D[1],y:K-D[1],width:le-ie+2*D[1],height:k-q-K+2*D[1]})})}),te.ticks(5).map(e=>/* @__PURE__ */g("g",{children:[
|
|
6
|
-
/* @__PURE__ */y("line",{x1:ie,y1:te(e),x2:le,y2:te(e),stroke:a.grid,strokeWidth:1,shapeRendering:"crispEdges"}),
|
|
7
|
-
/* @__PURE__ */y("text",{x:ie-8,y:te(e)+4,textAnchor:"end",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:Q(e)})]},`y${e}`)),re.ticks(5).map(e=>/* @__PURE__ */y("text",{x:re(e),y:k-12,textAnchor:"middle",fontSize:11,fill:a.label,style:{fontVariantNumeric:"tabular-nums"},children:B(e)},`x${e}`)),M&&/* @__PURE__ */y("text",{x:(ie+le)/2,y:k-.5,textAnchor:"middle",fontSize:11,fill:a.label,children:M}),A&&/* @__PURE__ */y("text",{x:12,y:k/2,transform:`rotate(-90 12 ${k/2})`,textAnchor:"middle",fontSize:11,fill:a.label,children:A}),
|
|
8
|
-
/* @__PURE__ */y("g",{clipPath:`url(#${O})`,children:I.map((e,t)=>{const i=s(e.slot,3,e.color,e.tone);return e.points.map((l,r)=>/* @__PURE__ */y("circle",{cx:re(l.x),cy:te(l.y),r:X?oe(l.size??0):D[0]+1,fill:i,fillOpacity:V&&V.s!==t?.25:.62,stroke:a.surface,strokeWidth:2,onMouseEnter:()=>Z({s:t,i:r})},`${e.key}-${r}`))})})]}),V&&ne&&ae&&/* @__PURE__ */y("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */y(e,{title:ae.label??ne.label,rows:[{key:"x",label:M??U.xAxis,color:s(ne.slot,3,ne.color,ne.tone),value:B(ae.x)},{key:"y",label:A??U.yAxis,color:s(ne.slot,3,ne.color,ne.tone),value:Q(ae.y)},...null!=ae.size?[{key:"size",label:U.size,color:a.muted,value:f(ae.size,L)}]:[]],footnote:ae.label?ne.label:void 0})})]})}export{b as SCATTER_SERIES_CAP,k as ScatterChart};
|