efficient-shell 13.15.0 → 13.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/Browser-547OGMQH.js +44 -0
- package/dist/Calculator-4UBMDAJO.js +29 -0
- package/dist/CurrencyConverter-H3HHXXKT.js +21 -0
- package/dist/{Files-EN4DDZYV.js → Files-GPPTZPDS.js} +80 -80
- package/dist/Notepad-GAZ7CZQB.js +24 -0
- package/dist/PdfViewer-EELX35ZI.js +1 -0
- package/dist/PomodoroTimer-JVCYYGRD.js +91 -0
- package/dist/{Preview-OSQHIS3Z.js → Preview-GSD54EUE.js} +33 -33
- package/dist/Sidebar-UCCVJFSY.js +44 -0
- package/dist/{Stock-2P4NWUNB.js → Stock-S266KGAF.js} +4 -4
- package/dist/{Weather-7LIQ4POB.js → Weather-TE4TTTQA.js} +22 -22
- package/dist/{WorldClock-KHBYIJQZ.js → WorldClock-5TPBHBYA.js} +7 -7
- package/dist/ai/index.js +118 -118
- package/dist/apps/ImageAnnotator.js +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.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/CartesianPlot.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FlowChart.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-JNSRDEB6.js → chunk-2J3C2RR4.js} +10 -10
- package/dist/{chunk-D3T3JCUC.js → chunk-34HRPEQD.js} +1 -1
- package/dist/{chunk-PT4GMPUB.js → chunk-3SIRRK3F.js} +3 -3
- package/dist/{chunk-OWAYSIQH.js → chunk-42DF7CDB.js} +5 -5
- package/dist/{chunk-4OBSVO6U.js → chunk-4G7PJ325.js} +1 -1
- package/dist/{chunk-3OUG6QAD.js → chunk-5EHIWKUZ.js} +1 -1
- package/dist/chunk-5URXJCNC.js +2 -0
- package/dist/{chunk-OEPQIIYL.js → chunk-63E4ZZYI.js} +1 -1
- package/dist/{chunk-CKTFXTJL.js → chunk-6OCA7RKQ.js} +1 -1
- package/dist/{chunk-HVHIXX6O.js → chunk-6OGX7V7L.js} +10 -10
- package/dist/{chunk-WP43XYL6.js → chunk-6QH7I2V5.js} +2 -2
- package/dist/{chunk-G53Y6EPJ.js → chunk-7CBWSLCW.js} +13 -13
- package/dist/{chunk-DVVB2CY5.js → chunk-7I5RJPY7.js} +1 -1
- package/dist/{chunk-22N3KA7A.js → chunk-7IXU4YT4.js} +4 -4
- package/dist/{chunk-VYHVIKP6.js → chunk-7SVSHJOO.js} +10 -10
- package/dist/{chunk-XEPA5J6K.js → chunk-A7VNKVZO.js} +4 -4
- package/dist/{chunk-I6JTDAOB.js → chunk-BNPWUCZX.js} +1 -1
- package/dist/{chunk-M5K4AX4E.js → chunk-BUFAJJDZ.js} +1 -1
- package/dist/{chunk-WJ7U6TGK.js → chunk-BVX7LUAW.js} +4 -4
- package/dist/chunk-BWQHABH7.js +4 -0
- package/dist/{chunk-G4D2WM3J.js → chunk-BZRFD4DK.js} +3 -3
- package/dist/{chunk-U6DRRCCG.js → chunk-C5OPAULN.js} +1 -1
- package/dist/{chunk-MEF4JVXP.js → chunk-CCLK2RPQ.js} +14 -14
- package/dist/{chunk-IJNQ2BUY.js → chunk-CILE3ZCC.js} +2 -2
- package/dist/{chunk-KC3EX26K.js → chunk-DPFEQQQU.js} +1 -1
- package/dist/{chunk-ZYU5HAIC.js → chunk-E7BQZL7X.js} +1 -1
- package/dist/{chunk-XHD6Q6JV.js → chunk-EFO72DEI.js} +1 -1
- package/dist/{chunk-YM2Z4LZ2.js → chunk-EFVQQF6F.js} +17 -17
- package/dist/{chunk-GO2TZ35U.js → chunk-EJOKROMB.js} +1 -1
- package/dist/{chunk-4IYHQNKZ.js → chunk-ENDYHUUR.js} +1 -1
- package/dist/{chunk-4F3SUYN5.js → chunk-ETQ45TBW.js} +1 -1
- package/dist/chunk-EX3DARI3.js +7 -0
- package/dist/{chunk-JPCPO4MX.js → chunk-EZYXY67W.js} +8 -8
- package/dist/chunk-F2RAIGCG.js +6 -0
- package/dist/{chunk-ZDMZM7HD.js → chunk-FBZUEZK7.js} +2 -2
- package/dist/{chunk-GURY4WS5.js → chunk-FFRJ6QZK.js} +1 -1
- package/dist/{chunk-F5B5WOQ7.js → chunk-FKMARSJZ.js} +2 -2
- package/dist/chunk-FMLUQCFB.js +2 -0
- package/dist/chunk-FRTDUHQF.js +1 -0
- package/dist/{chunk-AWWNMSDN.js → chunk-FXSGIT53.js} +10 -10
- package/dist/{chunk-YMHCLK3F.js → chunk-FZYUTZEV.js} +10 -10
- package/dist/chunk-G2JPTPRS.js +13 -0
- package/dist/{chunk-YDFDTRZF.js → chunk-G7SILKUY.js} +5 -5
- package/dist/{chunk-DEYVAMJQ.js → chunk-GEITUFYK.js} +13 -13
- package/dist/{chunk-GSLZ46DJ.js → chunk-GMLOMLCS.js} +13 -13
- package/dist/{chunk-6LS6Q77E.js → chunk-GUSENWAH.js} +1 -1
- package/dist/{chunk-YDQBELHJ.js → chunk-H5PSCQJ2.js} +6 -6
- package/dist/{chunk-J6QC45OS.js → chunk-HC5KQZFG.js} +5 -5
- package/dist/{chunk-LXPDURUL.js → chunk-HMOKKMIV.js} +2 -2
- package/dist/{chunk-RFR2K7JO.js → chunk-HPHDLN6E.js} +2 -2
- package/dist/{chunk-I5EVMLPB.js → chunk-IJ4JX6WP.js} +4 -4
- package/dist/{chunk-UGEX7SVM.js → chunk-IUQJGFEO.js} +8 -8
- package/dist/{chunk-5HBAJ2UA.js → chunk-J4CVYOY3.js} +13 -13
- package/dist/{chunk-CUZQVBPC.js → chunk-JDLJ7DHV.js} +1 -1
- package/dist/chunk-JPE4TYRQ.js +14 -0
- package/dist/{chunk-4Q2CZ4US.js → chunk-JPSWWIBW.js} +6 -6
- package/dist/{chunk-XOQGBU25.js → chunk-K2FVP22A.js} +1 -1
- package/dist/{chunk-7RGHV3J5.js → chunk-KGAYYSFE.js} +6 -6
- package/dist/{chunk-KLUCEASW.js → chunk-KQCJWK55.js} +6 -6
- package/dist/{chunk-OLSA36VX.js → chunk-KSK4VZIM.js} +6 -6
- package/dist/{chunk-ZNKZ6J65.js → chunk-L4ZQY4ZG.js} +3 -3
- package/dist/chunk-LADP6AJY.js +9 -0
- package/dist/{chunk-W6NGPSMM.js → chunk-LGGATDPH.js} +17 -17
- package/dist/{chunk-PALWXHBQ.js → chunk-LKAGXURQ.js} +20 -20
- package/dist/chunk-LNCAIY64.js +15 -0
- package/dist/chunk-LQCNIQ3I.js +8 -0
- package/dist/{chunk-QQK7HKNK.js → chunk-LUCO5PS6.js} +1 -1
- package/dist/chunk-M6UKCZHT.js +2 -0
- package/dist/{chunk-QVQO3EFL.js → chunk-MHQW6NAE.js} +11 -11
- package/dist/{chunk-VCR3RADH.js → chunk-MVOYVN3S.js} +1 -1
- package/dist/{chunk-N2FX4O3H.js → chunk-MZ3JADHG.js} +1 -1
- package/dist/{chunk-SV5RRBVA.js → chunk-NWS5G7FE.js} +1 -1
- package/dist/{chunk-UXGNF3OG.js → chunk-OF5X4HKC.js} +1 -1
- package/dist/{chunk-JFRBUVHX.js → chunk-OIEFMLYI.js} +3 -3
- package/dist/{chunk-A4WNUFLT.js → chunk-OOGUQEPT.js} +1 -1
- package/dist/chunk-OUYGLDQN.js +24 -0
- package/dist/chunk-OXWBSZL2.js +23 -0
- package/dist/{chunk-NISLELJF.js → chunk-P4J26R5P.js} +1 -1
- package/dist/{chunk-TTLVTJR6.js → chunk-POQUUMRS.js} +2 -2
- package/dist/{chunk-2YK6ZB7C.js → chunk-PPLPDP6D.js} +1 -1
- package/dist/chunk-PTYB2GGI.js +1 -0
- package/dist/{chunk-QIPO4EVJ.js → chunk-Q4MOT7TY.js} +1 -1
- package/dist/{chunk-7TJZ5AJE.js → chunk-QNXTVDIC.js} +6 -6
- package/dist/{chunk-7JG64RQW.js → chunk-QSJMLHBD.js} +1 -1
- package/dist/{chunk-7NO4IENQ.js → chunk-R5WBDXI2.js} +1 -1
- package/dist/{chunk-NYKOATR5.js → chunk-RDETBXMP.js} +1 -1
- package/dist/{chunk-I6QVXM2M.js → chunk-RDVC32EV.js} +15 -15
- package/dist/chunk-RJVIKGHJ.js +4 -0
- package/dist/{chunk-ZOCE74ED.js → chunk-SF4IIV5Z.js} +2 -2
- package/dist/{chunk-RZ3OQFOD.js → chunk-SHHRC5XK.js} +8 -8
- package/dist/{chunk-OBZZLLMQ.js → chunk-SLEA47VA.js} +1 -1
- package/dist/chunk-SM3N5UJ2.js +69 -0
- package/dist/{chunk-F6UJLCMI.js → chunk-SUSJFGXN.js} +9 -9
- package/dist/{chunk-FTKLODQK.js → chunk-SXHV5OLA.js} +1 -1
- package/dist/{chunk-65FZQ572.js → chunk-SZFULV7I.js} +6 -6
- package/dist/{chunk-HZ7TUMNL.js → chunk-TB2ARUE2.js} +1 -1
- package/dist/{chunk-G67CJAQ2.js → chunk-TD3ZQD5R.js} +1 -1
- package/dist/chunk-THAPVKEJ.js +15 -0
- package/dist/{chunk-GKNF53YM.js → chunk-TKCCJRPE.js} +1 -1
- package/dist/{chunk-HNIIDDLJ.js → chunk-TNALBYLY.js} +1 -1
- package/dist/{chunk-6CDWPEND.js → chunk-TPKNHQIE.js} +8 -8
- package/dist/{chunk-42RCQEEJ.js → chunk-U5RG34NE.js} +11 -11
- package/dist/{chunk-VADWTS7H.js → chunk-UFWBPTCM.js} +5 -5
- package/dist/{chunk-23LK4PLJ.js → chunk-UGEA3C5C.js} +5 -5
- package/dist/{chunk-EVYD6UFQ.js → chunk-UTISUEO4.js} +2 -2
- package/dist/chunk-UTQN5AIO.js +6 -0
- package/dist/chunk-UVHXVSB2.js +1 -0
- package/dist/{chunk-QMBMK6PP.js → chunk-VKZC3NPM.js} +2 -2
- package/dist/chunk-VLX7L2AM.js +1 -0
- package/dist/{chunk-UZFFSZFI.js → chunk-VQBKRBBR.js} +1 -1
- package/dist/{chunk-GLUJS42B.js → chunk-VY3UA6AR.js} +1 -1
- package/dist/chunk-WCCS4VFE.js +1 -0
- package/dist/{chunk-P5C7DI5A.js → chunk-WPGSU4QG.js} +5 -5
- package/dist/{chunk-WLG7BE55.js → chunk-WRV6QKJN.js} +1 -1
- package/dist/{chunk-LHHJHTWP.js → chunk-WZWSFYXJ.js} +1 -1
- package/dist/{chunk-S6YEPA4I.js → chunk-X4E4RPFE.js} +5 -5
- package/dist/{chunk-M7W63T6H.js → chunk-XAT2MKNU.js} +8 -8
- package/dist/chunk-XD3M5ZXM.js +7 -0
- package/dist/{chunk-QOYKBINM.js → chunk-XQVGBVHC.js} +1 -1
- package/dist/{chunk-CGKY4ZRA.js → chunk-XU4I2DMR.js} +2 -2
- package/dist/{chunk-E6FDUFPH.js → chunk-XVMCSUAV.js} +1 -1
- package/dist/chunk-XXTAMF3O.js +28 -0
- package/dist/{chunk-6HYO2W3O.js → chunk-YCXQDUTW.js} +5 -5
- package/dist/{chunk-WU2ZA6J2.js → chunk-YDJ5IZOU.js} +1 -1
- package/dist/{chunk-LLYMOV4S.js → chunk-YQ5JHHLE.js} +1 -1
- package/dist/{chunk-BWLC56GZ.js → chunk-YT5HMLC7.js} +1 -1
- package/dist/{chunk-G4PPHQ23.js → chunk-YWMCW5BN.js} +1 -1
- package/dist/{chunk-WF4A2HSB.js → chunk-ZCN5BU4U.js} +1 -1
- package/dist/{chunk-HY6CBG4M.js → chunk-ZDFMYAQB.js} +1 -1
- package/dist/chunk-ZDXRSY2Y.js +1 -0
- package/dist/chunk-ZI2FDUYJ.js +99 -0
- package/dist/chunk-ZISKHQZY.js +3 -0
- package/dist/{chunk-DVHRL3G6.js → chunk-ZVDYRXNP.js} +6 -6
- package/dist/{chunk-3DWVSQIJ.js → chunk-ZYKY4Z7R.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Gantt.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/data/statusColumn.js +1 -1
- package/dist/data/useColumnConfig.js +1 -1
- package/dist/data/useSort.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/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/Input.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/RenameField.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/UnitMenu.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/dropdownPosition.js +1 -1
- package/dist/hooks/index.d.ts +29 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/useTheme.js +1 -1
- package/dist/icons/brands.node.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/looks/map.js +1 -1
- package/dist/icons/payment.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +4 -40
- package/dist/index.js +335 -335
- package/dist/map/index.js +7 -7
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/FitFrame.d.ts +46 -0
- package/dist/shell/FitFrame.js +2 -0
- 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/Kbd.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/ShellPrefs.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/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/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/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -1
- package/dist/Browser-KHMTFVKZ.js +0 -44
- package/dist/Calculator-OKVS4UOJ.js +0 -29
- package/dist/CurrencyConverter-ZA2NGJWI.js +0 -21
- package/dist/Notepad-PHQNEUKW.js +0 -24
- package/dist/PdfViewer-PFQGQRQX.js +0 -1
- package/dist/PomodoroTimer-PW7BRZUJ.js +0 -91
- package/dist/Sidebar-GYGYAXS2.js +0 -44
- package/dist/chunk-3DSGJIC7.js +0 -7
- package/dist/chunk-3J4SFHC7.js +0 -15
- package/dist/chunk-3QNZ7YGZ.js +0 -99
- package/dist/chunk-47UTEV3P.js +0 -23
- package/dist/chunk-6QKTQOEV.js +0 -69
- package/dist/chunk-7KWYVQMX.js +0 -2
- package/dist/chunk-7QSDPSXP.js +0 -1
- package/dist/chunk-AOLJKOO6.js +0 -28
- package/dist/chunk-ASDYAASN.js +0 -3
- package/dist/chunk-CBUBDXJ2.js +0 -1
- package/dist/chunk-D65T4H6J.js +0 -1
- package/dist/chunk-DQTYV6AC.js +0 -9
- package/dist/chunk-EV5BEEVO.js +0 -1
- package/dist/chunk-FHNQC2MA.js +0 -1
- package/dist/chunk-GOAFMGUI.js +0 -15
- package/dist/chunk-HNPJ3V3I.js +0 -6
- package/dist/chunk-KXPXLUNM.js +0 -4
- package/dist/chunk-MHCNQKEK.js +0 -4
- package/dist/chunk-O2PVZC5D.js +0 -8
- package/dist/chunk-QTVE3OSD.js +0 -7
- package/dist/chunk-RDGXSAOD.js +0 -2
- package/dist/chunk-SOZCWT6I.js +0 -6
- package/dist/chunk-WWCAVO3R.js +0 -14
- package/dist/chunk-XMFJDT6Y.js +0 -13
- package/dist/chunk-YGKLZBWC.js +0 -24
- /package/dist/{chunk-HOHHRNCB.js → chunk-FRCTA5FS.js} +0 -0
- /package/dist/{chunk-VG6BT2UG.js → chunk-YRQ5WGOM.js} +0 -0
package/dist/chunk-HNPJ3V3I.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{useOverlayTarget as e,usePopupAnchor as r,usePanelPosition as l,usePopupLevel as t,usePopupLevelBindings as i,windowScrimStyle as a,OverlayLayerProvider as o,scrimHasCorners as n,CloseButton as s,popupLayerStyle as d,POPUP_GUTTER as c}from"./chunk-ZOCE74ED.js";import{useDiscardGuard as m}from"./chunk-HOHHRNCB.js";import{dialogA11y as p}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as u}from"./chunk-7QSDPSXP.js";import{useFocusTrap as f,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as x,DESCRIPTION_TEXT as v,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as w}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-IUVGHHR3.js";import{useRef as g,useId as N,useState as j,useEffect as k}from"react";import{createPortal as C}from"react-dom";import{jsxs as H,Fragment as D,jsx as W}from"react/jsx-runtime";var B=`calc(100% - ${2*c}px)`,E="grid grid-cols-[minmax(0,1fr)_auto]",T="bg-black/30 backdrop-blur-sm",U={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl",full:"max-w-none"};function Z({open:c,onClose:Z,title:G,description:O,role:V="dialog",children:_,footer:A,headerActions:I,blocking:J=!1,size:P="md",aside:Q=!1,dirty:R=!1,initialFocus:S,"aria-label":Y,"aria-labelledby":z,"aria-describedby":F,className:X=""}){const q=g(null),K=N(),L=N(),M=!J,ee="full"===P,re=ee||null!=I,le=Boolean(G||O),te=N();$().dialog;const ie=e(w()),[ae,oe]=j(null),ne=m({open:c,dirty:R,onClose:Z,title:G,layer:ae}),se=g(null),de=r(c&&null!==ie,se),ce=l(de,q),me=t(c&&null!==ie,se),pe=i(me,ae),ue=a(me),fe=null!==me.host;if(u(c),f(q,c&&null!==ie,S,pe),h(c),k(()=>{if(c)return y(()=>!pe.current?.(document.activeElement)&&(J||ne(),!0),()=>q.current)},[c,J,ne,pe]),!c||!ie)return null;/* @__PURE__ */
|
|
2
|
-
return H(D,{children:[/* @__PURE__ */W("span",{ref:se,hidden:!0,"data-popup-anchor":""}),C(
|
|
3
|
-
/* @__PURE__ */W(o,{value:ae,children:/* @__PURE__ */H("div",{ref:oe,className:"fixed inset-0"+(Q?" pointer-events-none opacity-0":fe?" pointer-events-none":""),style:d(me),role:"presentation","data-overlay-layer":"","data-aside":Q?"":void 0,children:[!fe&&/* @__PURE__ */W("div",{className:`fixed inset-0 ${T}`,"aria-hidden":"true","data-popup-scrim":"system"}),ue&&/* @__PURE__ */W("div",{className:`fixed ${T}${Q?"":" pointer-events-auto"}${n(me)?" rounded-(--radius-window)":""}`,style:ue,onClick:J?void 0:ne,"aria-hidden":"true","data-popup-scrim":"window"}),
|
|
4
|
-
/* @__PURE__ */W("div",{className:de?"fixed inset-0":"fixed inset-0 flex items-center justify-center p-4",onClick:J||fe?void 0:e=>{e.target===e.currentTarget&&ne()},children:/* @__PURE__ */H("div",{ref:q,"data-popup-panel":"",style:de?{left:ce?.left??0,top:ce?.top??0,visibility:ce?void 0:"hidden",width:B,[ee?"height":"maxHeight"]:B}:void 0,...p({role:V,modal:!0,titleId:G?te:void 0,labelledBy:z,label:Y}),"aria-describedby":F??(O?L:_?K:void 0),className:(ee?`${de?"absolute":"relative h-full w-full max-h-full"} ${U[P]} ${E} grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-(--radius-popup) ${b}`:`${de?"absolute":"relative max-h-full w-full"} ${U[P]}${re?` ${E} content-start gap-x-2`:""} overflow-y-auto overscroll-contain rounded-(--radius-card) ${b} p-6`)+`${fe&&!Q?" pointer-events-auto":""} ${X}`.trimEnd(),children:[ee?le&&
|
|
5
|
-
/* @__PURE__ */H("div",{className:"col-start-1 row-start-1 flex min-h-(--row-height-window-bar) flex-col justify-center border-b border-line py-2 pl-6 pr-4",children:[G&&/* @__PURE__ */W("h2",{id:te,className:x,children:G}),O&&/* @__PURE__ */W("p",{id:L,className:`${G?"mt-1 ":""}${v}`,children:O})]}):G&&/* @__PURE__ */W("h2",{id:te,className:`${re?"col-start-1 row-start-1 ":M?"pr-8 ":""}${x}`,children:G}),!ee&&O&&/* @__PURE__ */W("p",{id:L,className:`${re?"col-start-1 ":""}${G?"mt-1":M&&!re?"pr-8":""} ${v}`.trim(),children:O}),_&&/* @__PURE__ */W("div",{id:K,className:ee?"col-span-2 row-start-2 min-h-0 overflow-auto":(re?"col-span-2 ":"")+"mt-2 text-sm text-gray-600",children:_}),A&&/* @__PURE__ */W("div",{className:ee?"col-span-2 row-start-3 flex flex-wrap justify-end gap-3 border-t border-line px-6 py-4":(re?"col-span-2 ":"")+"mt-6 flex flex-wrap justify-end gap-3",children:A}),re?
|
|
6
|
-
/* @__PURE__ */H("div",{className:"col-start-2 row-start-1 flex items-center gap-1 "+(ee?(le?"border-b border-line ":"")+"pr-3":"-mr-3 -mt-3 self-start"),children:[I,M&&/* @__PURE__ */W(s,{onClose:ne})]}):M&&/* @__PURE__ */W(s,{onClose:ne,className:"absolute right-3 top-3"})]})})]})}),ie)]})}export{Z as Dialog};
|
package/dist/chunk-KXPXLUNM.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{useTabLayer as e,focusableIn as t,stopAfter as r}from"./chunk-DWGYC7OD.js";import{DESCRIPTION_TEXT as n}from"./chunk-BWJZTHZ6.js";import{onOverlayOpen as i}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as o}from"./chunk-62LW225J.js";import{popupBounds as a,VIEWPORT_MARGIN as c,placeMenu as s,followAnchor as l}from"./chunk-GLUJS42B.js";import{useHydrated as u,useBrowserLayoutEffect as d}from"./chunk-D65T4H6J.js";import{buttonClasses as m}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as p}from"./chunk-TWVUQUUD.js";import{useState as f,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{createPortal as w}from"react-dom";import{jsxs as x,jsx as y}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/;function C({trigger:C,children:N,title:D,description:j,"aria-label":E,align:T="start",side:O="bottom",open:$,defaultOpen:H=!1,onOpenChange:L,matchTriggerWidth:W=!1,maxHeight:P,initialFocus:S,id:M,triggerLabel:U,"aria-describedby":z,disabled:B,className:J="",triggerClassName:K,panelClassName:Y=""}){const[F,G]=f(H),R=($??F)&&!B,I=u(),Q=h(null),Z=h(null),V=h(null),q=h(null),A=g(),X=M??A,_=g(),ee=g(),te=g(),re=h(null),ne=h(!1),ie=h({openProp:$,onOpenChange:L});ie.current={openProp:$,onOpenChange:L};const oe=v(e=>{void 0===ie.current.openProp&&G(e),ie.current.onOpenChange?.(e)},[]),ae=v((e=!1)=>{ne.current=e,oe(!1)},[oe]),ce=e=>{re.current=e.nativeEvent},se=v(()=>{const e=V.current,t=Z.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=a(t),i=Math.max(0,n.right-n.left-2*c),o=e.style;o.left="0px",o.top="0px",o.maxWidth=`${i}px`,o.maxHeight="none",o.width=W?`${Math.min(r.width,i)}px`:"";const l={width:e.offsetWidth,height:e.offsetHeight},u=P??1/0,d=s({trigger:r,menu:{width:l.width,height:Math.min(l.height,u)},bounds:n,align:T,side:O}),m=Math.min(d.maxHeight,u);o.left=`${d.left}px`,o.top=`${d.top}px`,o.maxHeight=`${m}px`,o.overflowY=l.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=T},[T,O,W,P]);d(()=>{R&&I&&se()}),b(()=>{if(!R||!I)return;const e=l(()=>Z.current,se),t=q.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>se());return r.observe(t),()=>{e(),r.disconnect()}},[R,I,se]),b(()=>{if(!R)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(re.current===e)return!1;const t=e.target;return!(t&&(Q.current?.contains(t)||V.current?.contains(t)))})(e)&&ae(!0))},i=e=>{t=e,r=window.setTimeout(()=>n(e),0)},o=e=>n(e);return document.addEventListener(e,i,!0),window.addEventListener(e,o),()=>{window.clearTimeout(r),document.removeEventListener(e,i,!0),window.removeEventListener(e,o)}},t=e("pointerdown"),r=e("focusin"),n=i(()=>ae()),o=p(e=>"Escape"===e.key&&(ae(),Z.current?.focus(),!0),()=>V.current);return()=>{t(),r(),n(),o()}},[R,ae]),e(V,R&&I),d(()=>{if(!R||!I)return;const e=V.current;return()=>{if(ne.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||Z.current?.focus({preventScroll:!0})}},[R,I]),b(()=>{if(!R||!I)return;const e=V.current;e&&(ne.current=!1,(S?.current??t(e)[0]??e).focus({preventScroll:!0}))},[R,I]);const le="function"==typeof N?N({close:()=>ae()}):N,ue=D?{"aria-labelledby":ee}:E?{"aria-label":E}:{"aria-labelledby":X};/* @__PURE__ */
|
|
2
|
-
return x("div",{ref:Q,className:`relative inline-flex ${J}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */y("button",{ref:Z,id:X,type:"button","aria-haspopup":"dialog","aria-expanded":R,"aria-controls":R&&I?_:void 0,"aria-label":U,"aria-describedby":z,disabled:B,onClick:()=>R?ae():oe(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!R)return;const r=(()=>{const e=V.current;return e?t(e)[0]??e:null})();r&&(e.preventDefault(),r.focus({preventScroll:!0}))},className:K??m({variant:"secondary"}),children:C}),R&&I&&w(
|
|
4
|
-
/* @__PURE__ */y("div",{ref:V,id:_,role:"dialog",...ue,"aria-describedby":j?te:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:ce,onFocusCapture:ce,onKeyDown:e=>{const n=V.current,i=Z.current;if("Tab"!==e.key||!n||!i||!n.contains(e.target))return;const o=t(n),a=document.activeElement;if(e.shiftKey){if(o.length>0&&a!==o[0]&&a!==n)return;return e.preventDefault(),void i.focus({preventScroll:!0})}if(o.length>0&&a!==o[o.length-1])return;e.preventDefault();const c=r(i,n);ae(!!c),(c??i).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${Y}`.trim(),style:k.test(Y)?void 0:{zIndex:o.popup},children:/* @__PURE__ */x("div",{ref:q,children:[D&&/* @__PURE__ */y("h2",{id:ee,className:"text-sm font-semibold text-gray-900",children:D}),j&&/* @__PURE__ */y("p",{id:te,className:`mt-1 ${n}`,children:j}),D||j?/* @__PURE__ */y("div",{className:"mt-3",children:le}):le]})}),document.body)]})}export{C as Popover};
|
package/dist/chunk-MHCNQKEK.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-HY6CBG4M.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-IUVGHHR3.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,$)),N=y??M.nothingToBreakDown,[w,C]=u(null),{highlighted:H}=r(),I=[];if(m(p,-Math.PI/2,2*Math.PI,0,0,"","",I),0===I.length)/* @__PURE__ */return s("p",{className:`text-sm text-gray-500 ${g??""}`,children:N});const E=Math.max(...I.map(e=>e.depth))+1,F=f/2,L=f/2,R=(f/2-8-b)/E,V=I.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),z=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,A=e=>null!==w?e.id===w:null===H||e.branchKey===H,B=w?I.find(e=>e.id===w):void 0,G=e=>c(e.value/V*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(V),E),onMouseLeave:()=>C(null),children:[I.map(e=>/* @__PURE__ */s("path",{d:t(F,L,b+e.depth*R+v/2,b+(e.depth+1)*R-v/2,e.start,e.end),fill:z(e),fillOpacity:A(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>C(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:F,y:L+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:a.label,children:x})]}),B&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(l,{title:B.label,rows:[{key:"value",label:M.value,color:z(B),value:j(B.value)},{key:"share",label:M.share,color:a.muted,value:G(B)}]})}),
|
|
4
|
-
/* @__PURE__ */s(e,{caption:M.sunburst(j(V),E),head:[M.tableLevel,M.tableItem,M.value,M.share],rows:I.map(e=>[e.depth+1,e.label,j(e.value),G(e)])})]})}export{f as SunburstChart};
|
package/dist/chunk-O2PVZC5D.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{useOverlayTarget as e,usePopupAnchor as i,usePopupLevel as t,usePopupLevelBindings as r,windowScrimStyle as o,OverlayLayerProvider as l,scrimHasCorners as n,CloseButton as d,popupLayerStyle as a}from"./chunk-ZOCE74ED.js";import{useDiscardGuard as s}from"./chunk-HOHHRNCB.js";import{dialogA11y as m}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as c}from"./chunk-7QSDPSXP.js";import{useFocusTrap as p,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as u,DESCRIPTION_TEXT as f,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as y}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as v}from"./chunk-TWVUQUUD.js";import{useRef as x,useId as w,useState as g,useEffect as k}from"react";import{createPortal as N}from"react-dom";import{jsxs as j,Fragment as C,jsx as H}from"react/jsx-runtime";var D={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},W={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function $(e,i){const t=window.innerHeight-(i.top+i.height);if("bottom"===e)return{left:i.left,width:i.width,bottom:t};const r={top:i.top,height:i.height};return"left"===e?{...r,left:i.left}:{...r,right:window.innerWidth-(i.left+i.width)}}function B({open:B,onClose:Z,side:E="right",size:O="md",title:T,description:U,footer:z,children:G,blocking:J=!1,dirty:P=!1,initialFocus:Q,"aria-label":S,"aria-labelledby":V,"aria-describedby":Y,className:A=""}){const F=x(null),I=w(),R=w(),X=w(),q=e(y()),[K,L]=g(null),M=s({open:B,dirty:P,onClose:Z,title:T,layer:K}),_=x(null),ee=i(B&&null!==q,_),ie=t(B&&null!==q,_),te=r(ie,K),re=o(ie),oe=null!==ie.host;if(c(B),p(F,B&&null!==q,Q,te),h(B),k(()=>{if(B)return v(()=>!te.current?.(document.activeElement)&&(J||M(),!0),()=>F.current)},[B,J,M,te]),!B||!q)return null;const le="bottom"===E,ne={...le?{maxHeight:"85vh"}:{},...ee?$(E,ee):{}};/* @__PURE__ */
|
|
2
|
-
return j(C,{children:[/* @__PURE__ */H("span",{ref:_,hidden:!0,"data-popup-anchor":""}),N(
|
|
3
|
-
/* @__PURE__ */H(l,{value:K,children:/* @__PURE__ */j("div",{ref:L,className:oe?"fixed inset-0 pointer-events-none":"fixed inset-0",style:a(ie),role:"presentation","data-overlay-layer":"",children:[
|
|
4
|
-
/* @__PURE__ */H("div",{className:"fixed bg-black/30 backdrop-blur-sm "+(oe?"pointer-events-auto"+(n(ie)?" rounded-(--radius-window)":""):"inset-0"),style:re??void 0,hidden:oe&&!re,onClick:J?void 0:M,"aria-hidden":"true","data-popup-scrim":oe?"window":"system"}),
|
|
5
|
-
/* @__PURE__ */j("div",{ref:F,...m({modal:!0,titleId:T?X:void 0,labelledBy:V,label:S}),"aria-describedby":Y??(U?R:G?I:void 0),"data-drawer-side":E,"data-popup-panel":"",style:ne,className:[`fixed flex flex-col ${b}`,oe?"pointer-events-auto":"",le?"":`w-full max-w-full ${D[O]}`,ee?"":W[E],le?"rounded-t-xl":"",A].filter(Boolean).join(" "),children:[T?/* @__PURE__ */j("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
|
|
6
|
-
/* @__PURE__ */j("div",{className:"min-w-0",children:[
|
|
7
|
-
/* @__PURE__ */H("h2",{id:X,className:u,children:T}),U&&/* @__PURE__ */H("p",{id:R,className:`mt-0.5 ${f}`,children:U})]}),!J&&/* @__PURE__ */H(d,{onClose:M})]}):!J&&/* @__PURE__ */H("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */H(d,{onClose:M})}),
|
|
8
|
-
/* @__PURE__ */j("div",{id:I,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[U&&!T&&/* @__PURE__ */H("p",{id:R,className:`mb-3 ${f} ${J?"":"pr-8"}`.trim(),children:U}),G]}),z&&/* @__PURE__ */H("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:z})]})]})}),q)]})}export{B as Drawer};
|
package/dist/chunk-QTVE3OSD.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{usePlotWidth as a}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as r}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-IUVGHHR3.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 M=n().charts,w=m(),N=y??(e=>h(e,w)),$=j??M.nothingToBreakDown,C=c(null),H=a(C),B=v??H,[F,G]=u(null),{highlighted:V}=l(),Y=e(p,B,d);if(0===Y.length)/* @__PURE__ */
|
|
2
|
-
return s("div",{className:b,ref:C,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const z=k??i(0),A=Math.max(...Y.map(e=>e.value),1),D=e=>34+e/A*62,I=e=>`color-mix(in oklab, ${z} ${D(e).toFixed(0)}%, ${o.surface})`,R=e=>D(e)>=55?o.surface:o.label,U=F??V,E=F?Y.find(e=>e.key===F):void 0;/* @__PURE__ */
|
|
3
|
-
return f("div",{className:`relative ${b??""}`,ref:C,children:[
|
|
4
|
-
/* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":M.treemap(p.length),onMouseLeave:()=>G(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:U&&U!==e.key?.55:1,onMouseEnter:()=>G(e.key),children:[
|
|
6
|
-
/* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:I(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:R(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:R(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),E&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(r,{title:E.label,rows:[{key:"value",label:M.value,color:I(E.value),value:N(E.value)}]})}),
|
|
7
|
-
/* @__PURE__ */s(t,{caption:M.treemap(p.length),head:[M.tableItem,M.value],rows:Y.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
|
package/dist/chunk-RDGXSAOD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-PALWXHBQ.js";import{toDayMs as i,fmtSliderDate as t}from"./chunk-5CFERCYW.js";import{DAY_MS as a}from"./chunk-JRQMX4PK.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-IUVGHHR3.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const j=l(Date.now,null),M=[],C=[],x=o().timeline,H=r();for(const e of p){const n=i(e.date??null);null===n?C.push({key:e.key,label:e.label,kind:e.kind}):M.push({...e,ms:n})}M.sort((e,n)=>e.ms-n.ms);const L=i(g??null);let w,D,K=!0;0===M.length?(D=L??j??0,w=D-30*a,K=null!==L||null!==j):(w=M[0].ms,D=L??M[M.length-1].ms,D-w<a&&(D=w+a));const N=M.length>0?Math.max(0,Math.round((D-w)/a)):0,O=u??(N>0?x.duration(N):void 0),R=[M.length>0?x.started(t(M[0].ms,H)):void 0,O,C.length>0?x.reached(M.length,p.length):void 0],J=M.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),P={};for(const e of M)e.phase&&(P[e.phase]=P[e.phase]||[]).push(e.ms);const Q=Object.entries(P).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),W="rail"===v,X=K&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:W?"spread":"compressed",labels:W?"none":"lanes",items:J,pending:C,phases:Q,startMs:w,endMs:D,todayMs:j??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:x.milestones(m)})});/* @__PURE__ */
|
|
2
|
-
return h("div",W?{className:"shrink-0","data-timeline-variant":"rail",children:X}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:R,children:X})})}export{m as MilestoneTimeline};
|
package/dist/chunk-SOZCWT6I.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{onOverlayOpen as t}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as e}from"./chunk-62LW225J.js";import{followAnchor as r,popupBounds as o,VIEWPORT_MARGIN as n,showingBox as i,placeBeside as a,placeArrow as l}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as s,escapeSurfaceAbove as d}from"./chunk-TWVUQUUD.js";import{solidSurfaceStyle as h}from"./chunk-5FYDNH4Y.js";import{createContext as u,useContext as p,useState as m,useRef as f,useId as x,useEffect as w,isValidElement as g,cloneElement as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as y,jsx as k}from"react/jsx-runtime";var j=u(!1),H=()=>p(j),T={top:"bottom-full left-1/2 -translate-x-1/2 mb-3",bottom:"top-full left-1/2 -translate-x-1/2 mt-3",left:"right-full top-1/2 -translate-y-1/2 mr-3",right:"left-full top-1/2 -translate-y-1/2 ml-3"};function W({content:u,side:p="top",delay:H=200,children:W,className:N="relative inline-flex",describe:B=!0,open:M}){const[D,U]=m(!1),z=(M??D)&&!(null==u||!1===u||""===u),[C,E]=m(null),J=f(void 0),L=f(null),P=f(null),$=x(),F=f(!1),G=()=>{window.clearTimeout(J.current),F.current||L.current?.querySelector('[aria-haspopup][aria-expanded="true"]')||(J.current=window.setTimeout(()=>U(!0),H))},R=()=>{window.clearTimeout(J.current),U(!1)},S=t=>{t.currentTarget.contains(t.target)&&(F.current=!0,R())},Y=()=>{F.current=!1,R()};w(()=>()=>window.clearTimeout(J.current),[]),c(()=>{if(!z)return void E(null);const t=()=>{const t=L.current,e=P.current;if(!t||!e)return;const r=o(t),c=Math.max(0,r.right-r.left-2*n),s=Math.max(0,r.bottom-r.top-2*n);e.style.maxWidth=`${c}px`,e.style.maxHeight=`${s}px`;const d=e.getBoundingClientRect();if(d.width<=0||d.height<=0)return;const h=t.getBoundingClientRect();if(!i(t))return void R();const u=a(h,d,p,r,12),m=l(h,u,d,16,6),f={anchor:{left:h.left,top:h.top,width:h.width,height:h.height},left:u.left-h.left,top:u.top-h.top,maxWidth:c,maxHeight:s,side:u.side,arrow:m&&{left:m.x-h.left,top:m.y-h.top}};E(t=>{return t&&(r=f,(e=t).anchor.left===r.anchor.left&&e.anchor.top===r.anchor.top&&e.anchor.width===r.anchor.width&&e.anchor.height===r.anchor.height&&e.left===r.left&&e.top===r.top&&e.maxWidth===r.maxWidth&&e.maxHeight===r.maxHeight&&e.side===r.side&&e.arrow?.left===r.arrow?.left&&e.arrow?.top===r.arrow?.top)?t:f;var e,r})};return t(),r(()=>L.current,t)},[z,p,u]),w(()=>{if(!z)return;const e=s(t=>"Escape"===t.key&&(R(),!d(L.current))),r=t(R);return()=>{e(),r()}},[z]);const q=z&&B?$:void 0,I=g(W)?b(W,{"aria-describedby":[W.props["aria-describedby"],q].filter(Boolean).join(" ")||void 0}):W,Q=z?h():void 0;/* @__PURE__ */
|
|
2
|
-
return y("span",{ref:L,className:N,"aria-describedby":g(W)?void 0:q,onMouseEnter:G,onMouseLeave:Y,onFocus:t=>{if(!t.currentTarget.contains(t.target))return;let e=!0;try{e=t.target.matches(":focus-visible")}catch{}e&&G()},onBlur:Y,onPointerDown:S,onClick:S,children:[
|
|
3
|
-
/* @__PURE__ */k(j.Provider,{value:!0,children:I}),z&&v(
|
|
4
|
-
/* @__PURE__ */y("span",{className:"pointer-events-none fixed left-0 top-0",style:{zIndex:e.hint,...C?.anchor},children:[
|
|
5
|
-
/* @__PURE__ */k("span",{ref:P,id:$,role:"tooltip",className:`pointer-events-none absolute z-(--z-hint) box-border w-max overflow-hidden whitespace-normal break-words text-start rounded-md px-2 py-1 text-xs text-ink-strong ${C?"":T[p]}`,style:{...Q,...C&&{left:C.left,top:C.top,maxWidth:C.maxWidth,maxHeight:C.maxHeight}},children:u}),(!C||C.arrow)&&
|
|
6
|
-
/* @__PURE__ */k("span",{"aria-hidden":"true",className:"rosh-tooltip-arrow","data-side":C?.side??p,style:{background:Q?.background,"--rosh-tooltip-edge":Q?.border,...C?.arrow&&{left:C.arrow.left,top:C.arrow.top}}})]}),document.body)]})}export{W as Tooltip,H as useInsideTooltip};
|
package/dist/chunk-WWCAVO3R.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{SearchableSelect as e}from"./chunk-XMFJDT6Y.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-DEYVAMJQ.js";import{isSafeLinkHref as t}from"./chunk-Z5TE3MEG.js";import{Input_default as r}from"./chunk-PT4GMPUB.js";import{INPUT_SIZES as n}from"./chunk-AYZY3YNC.js";import{Button_default as i}from"./chunk-EVYD6UFQ.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-IUVGHHR3.js";import{useId as d,useRef as c,useState as p,useEffect as m}from"react";import{jsx as f,jsxs as v,Fragment as g}from"react/jsx-runtime";function h(e){return"select"===e.type?e.options:"groups"===e.type?e.groups.flatMap(e=>e.options):[]}var b="address",x={kindOf:()=>b,targetOf:e=>e,readFilter:()=>null,withFilter:e=>e},k=e=>t(e.trim());function y(t){const{value:n,kinds:o,rules:y=x,filtersFor:w,label:N,readOnly:C,placeholder:F,className:j="",tidyAddress:O,addressAddon:E}=t,D=void 0!==t.onApply,T=u().link,$=y.isSafe??k,A=d(),U=c(null),Y=c(null),[z,M]=p({url:n}),P=D?z.url:n,[V,Q]=p(!1),[R,S]=p(null),[B,G]=p(null),[H,K]=p(!1),W=c(null),I=c(()=>{});I.current=D?t.onCancel:()=>{},m(()=>{if(D)return s(e=>{const a=U.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(I.current(),!0)},()=>U.current)},[D]),m(()=>{if(!D)return;const e=Y.current;e?(e.focus(),e.select()):U.current?.querySelector("button, input")?.focus()},[]);const J=o??[{value:b,label:T.address,target:{type:"text"}}],L=R&&R.against===P?R.kind:y.kindOf(P),X=J.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===L),Z=X.find(e=>"text"===e.target.type),q=X.find(e=>e.value===L)??Z??X[0];if(!q)return null;const _="text"!==q.target.type,ee=_?y.targetOf(P):P,ae=h(q.target),le=ae.find(e=>e.value===ee),te=e=>({value:e,label:T.unavailable(e)}),re="select"===q.target.type&&ee&&w?w(ee):null,ne=re?y.readFilter(P):null,ie=ne?re?.find(e=>e.param===ne.param):void 0,oe=B&&B.against===P?B.text:P,se=_?P:O?O(oe.trim()).trim():oe.trim(),ue=D&&O?se:oe,de=!_&&""!==ue.trim()&&!$(ue),ce=de&&(!D||V);_&&H&&K(!1);const pe=(e,a)=>{D?M({url:e,name:a}):void 0===a?t.onChange(e):t.onChange(e,a)},me=(e,a)=>{S(a=>a?{...a,against:e}:a),pe(e,a)},fe=e=>{if(!e)return me("");const a=ae.find(a=>a.value===e);me(e,a?.label)},ve=e=>{Q(!1);const a=e.trim();a?$(e)?(G({text:e,against:a}),me(a)):G({text:e,against:P}):(G({text:e,against:""}),me(""))},ge=e=>{const a=e.relatedTarget;if(a&&(a===Y.current||W.current?.contains(a)))return;if(K(!1),D||!O||C)return;const l=O(oe.trim());l.trim()!==oe.trim()&&ve(l)},he=()=>{if(!D||!se)return;if(!_&&de)return void Q(!0);const e=_&&z.url===se?z.name:void 0,a=t.onApply;void 0===e?a(se):a(se,e)},be=(e,a)=>a&&!e.some(e=>e.value===a)?[te(a),...e]:[...e],xe=(a,t,r,n,i)=>{const o=[];for(const e of r){const a=o[o.length-1],l={value:e.value,label:e.label};e.group?a&&"options"in a&&a.label===e.group?a.options.push(l):o.push({label:e.group,options:[l]}):o.push(l)}if(i){const l=r.some(e=>""===e.value);/* @__PURE__ */
|
|
2
|
-
return f(e,{"aria-label":a,value:t,options:o,disabled:C,clearable:l,placeholder:r.find(e=>""===e.value)?.label,onChange:n})}/* @__PURE__ */
|
|
3
|
-
return f(l,{size:"sm","aria-label":a,value:t,options:o,readOnly:C,onChange:n})};let ke;if("text"===q.target.type)ke=/* @__PURE__ */f(r,{ref:Y,id:`${A}-address`,size:"sm",type:"text",invalid:ce,"aria-label":T.address,"aria-describedby":ce?`${A}-why`:void 0,placeholder:F??T.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:oe,readOnly:C,onChange:e=>ve(e.target.value),onFocus:()=>K(!0),onBlur:ge,onKeyDown:O&&!D?e=>{"Enter"===e.key&&e.currentTarget.blur()}:void 0});else{const e="groups"===q.target.type?q.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):q.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:q.target.placeholder},...be(e,ee)];ke=xe(q.label,ee,a,fe,e.length>10)}const ye=/* @__PURE__ */v(g,{children:[o&&xe(T.linkType,q.value,X.map(e=>({value:e.value,label:e.label})),e=>{G(null),Q(!1);const a=X.find(a=>a.value===e);if(!a||"text"===a.target.type)return void S({kind:e,against:P});const l=h(a.target)[0];S({kind:e,against:l?l.value:""}),l?pe(l.value,l.label):pe("")},!1),ke,E&&H&&!C&&"text"===q.target.type&&/* @__PURE__ */f("div",{ref:W,onBlur:ge,children:E({url:oe,onChange:ve})}),re&&xe(T.filter,ne?.param??"",[{value:"",label:T.noFilter},...ne&&!ie?[te(ne.param)]:[],...re.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return me(ee,le?.label);const a=re?.find(a=>a.param===e),l=a?.values[0];l&&me(y.withFilter(ee,{param:e,value:l.value}),l.label)},!1),re&&ne&&xe(T.value,ne.value,be((ie?.values??[]).map(e=>({value:e.value,label:e.label})),ne.value),e=>{if(!ne)return;const a=ie?.values.find(a=>a.value===e);me(y.withFilter(ee,{param:ne.param,value:e}),a?.label)},(ie?.values.length??0)>10),ce&&/* @__PURE__ */f("p",{id:`${A}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:T.unsafe}),q.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:q.hint}),re&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-ink-faintest",children:T.filterHint})]});if(!D)/* @__PURE__ */
|
|
4
|
-
return f("div",{ref:U,className:`flex min-w-0 flex-auto flex-col gap-2 ${j}`.trim(),role:N?"group":void 0,"aria-label":N,children:ye});const we=t.onRemove;/* @__PURE__ */
|
|
5
|
-
return v("div",{ref:U,role:"dialog","aria-label":N??T.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-line bg-surface p-3 shadow-lg ${j}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),he())},children:[_?/* @__PURE__ */f("span",{className:a({inline:!0}),children:T.title}):/* @__PURE__ */f("label",{htmlFor:`${A}-address`,className:a({inline:!0}),children:T.title}),ye,
|
|
6
|
-
/* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[we?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:we,children:T.remove}):null,
|
|
7
|
-
/* @__PURE__ */v("span",{className:"ml-auto flex gap-1",children:[
|
|
8
|
-
/* @__PURE__ */f(i,{variant:"secondary",size:"sm","data-window-action":"cancel",onClick:()=>I.current(),children:T.cancel}),
|
|
9
|
-
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:he,disabled:C||""===se,children:T.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:t,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const k=u().link,[w,N]=p(!1),C=c(null),F=d(),j=()=>{N(!1),C.current?.focus()};/* @__PURE__ */
|
|
10
|
-
return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
|
|
11
|
-
/* @__PURE__ */f(r,{size:"md",type:"text",className:"rounded-b-none","aria-label":k.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
|
|
12
|
-
/* @__PURE__ */v("button",{ref:C,type:"button","aria-label":k.linkOf(e,t),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>N(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-line-strong bg-surface-sunken ${n.md} text-left hover:bg-gray-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60`,children:[
|
|
13
|
-
/* @__PURE__ */f(o,{name:"link",strokeWidth:1.5,className:"h-4 w-4 shrink-0 "+(t?"text-blue-600":"text-ink-faintest")}),
|
|
14
|
-
/* @__PURE__ */f("span",{className:"min-w-0 truncate "+(t?"text-blue-600":"text-ink-faintest"),children:t||k.addLink})]}),w&&/* @__PURE__ */f("div",{id:F,className:"mt-2",children:/* @__PURE__ */f(y,{value:t,label:k.linkOf(e,t),kinds:s,rules:m,filtersFor:g,onApply:(e,a)=>{void 0===a?i(e):i(e,a),j()},onRemove:t?()=>{i(""),j()}:void 0,onCancel:j})})]})}export{y as LinkPicker,w as TextLinkField};
|
package/dist/chunk-XMFJDT6Y.js
DELETED
|
@@ -1,13 +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-K5YT5PMJ.js";import{END_ACTIONS_PAD as a,InputEndActionSlot as s,InputEndActionButton as c}from"./chunk-PT4GMPUB.js";import{INPUT_BASE_ON as u,INPUT_BASE as d}from"./chunk-AYZY3YNC.js";import{Button_default as h}from"./chunk-EVYD6UFQ.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{LoadingSpinner as m}from"./chunk-R2VKEMZH.js";import{Tooltip as f}from"./chunk-SOZCWT6I.js";import{onOverlayOpen as b}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as g}from"./chunk-62LW225J.js";import{useDropdownPosition as v,MENU_MAX_HEIGHT as w}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as y}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as x}from"./chunk-TWVUQUUD.js";import{GLASS_DIVIDER as k,glassStyle as j}from"./chunk-5FYDNH4Y.js";import{useShellStrings as $}from"./chunk-IUVGHHR3.js";import{useState as D,useId as N,useRef as C,useMemo as S,useEffect as W}from"react";import{createPortal as M}from"react-dom";import{jsxs as R,jsx as T}from"react/jsx-runtime";function E(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}}var F=["right-2","right-8","right-16"],z=[8,32,64];function L(L){const{options:O,placeholder:U,emptyOptionLabel:A,className:H="",disabled:I,id:Y,filter:B=!1,allowFreeText:P=!1,freeTextOption:V,onSearchChange:G,loading:J=!1,error:K,onRetry:Z,rightAdornment:Q,endAction:X,renderOption:q,clearable:_=!0,"aria-label":ee,"aria-labelledby":te,"aria-describedby":ne}=L,re=!0===L.multiple,le=L.multiple?L.value:L.value?[L.value]:[],oe=L.multiple?"":L.value,ie=e=>{L.multiple?L.onChange(e):L.onChange(e[0]??"")},ae=le.length>0,se=B&&ae&&!I,ce=re||B,ue=null!=V,de=P||ue,[he,pe]=D(!1),[me,fe]=D(-1),be=N(),ge=Y??`${be}-input`,ve=`${be}-listbox`,we=e=>`${be}-opt-${e}`,[ye,xe]=D(""),ke=$(),je=A??ke.select.none,$e=e=>{xe(e),fe(-1),G?.(e)},De=C(null),Ne=C(null),Ce=C(null),Se=C(null),We=C(he);We.current=he;const Me=C(!1),Re=e=>{We.current&&(We.current=!1,e&&P&&!ue&&et&&(re?le.includes(et)||ie([...le,et]):et!==oe&&ie([et])),pe(!1),$e(""))},Te=(e,t)=>{if(!e.disabled){if(re)return ie(le.includes(e.value)?le.filter(t=>t!==e.value):[...le,e.value]),void(e===tt?$e(""):fe(t));ie([e.value]),Re(!1)}},[Ee,Fe]=D(null);y(()=>{if(!Q||he)return void Fe(null);const e=Se.current?.offsetWidth??0;Fe(e?e+z[Ie]+6:null)});const ze=v(Ne,he,ce?{popupRef:Ce}:{matchTriggerWidth:!0}),Le=S(()=>t(O),[O]),Oe=le.join("\0"),Ue=S(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Le)le.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(de)for(const n of le)t.has(n)||e.push(n);return e},[Le,Oe,de]),Ae=Ue.join(", "),He=_&&ae&&!I,Ie=(He?1:0)+(X?1:0),[Ye,Be]=D(null),Pe=C(null),Ve=C(""),Ge=C(()=>{});Ge.current=()=>{const e=Ne.current,t=Pe.current;if(!re||!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}|${Ue.join("\0")}`;if(o===Ve.current)return;Ve.current=o;let i=null;r>0&&Ue.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=E(Ue,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),Be(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},y(()=>{Ge.current()}),W(()=>{const e=Ne.current;if(!re||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Ge.current());return t.observe(e),()=>t.disconnect()},[re]);const Je=Ue.length,Ke=!re||!Ye||Ye.shown>=Je?Ae:0===Ye.shown?ke.select.selectedCount(Je):`${Ue.slice(0,Ye.shown).join(", ")} +${Je-Ye.shown}`,Ze=re&&null!==Ye&&(Ye.shown<Je||Ye.cut),Qe=he&&ae&&ce;W(()=>{if(!he)return;const e=e=>{const t=e.target;De.current?.contains(t)||Ce.current?.contains(t)||Re(!0)};document.addEventListener("mousedown",e);const t=b(()=>Re(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[he,P,ye,Oe,L.onChange]),W(()=>{if(he)return x(e=>!("Escape"!==e.key||!We.current)&&(Re(!1),Ne.current?.blur(),!0),()=>Ce.current)},[he]);const Xe=S(()=>{const e=/* @__PURE__ */new Set;return n(O,t=>!e.has(t.value)&&(e.add(t.value),!0))},[O]),qe=S(()=>{if(G)return Xe;const e=ye.trim().toLowerCase();return e?n(Xe,t=>r(t,e)):Xe},[Xe,ye,G]),_e=S(()=>t(qe),[qe]),et=ye.trim(),tt=S(()=>ue&&et?Le.some(e=>e.label===et)||le.includes(et)?null:{value:et,label:et}:null,[ue,et,Le,Oe]),nt=S(()=>tt?[..._e,tt]:_e,[_e,tt]);/* @__PURE__ */
|
|
2
|
-
return R("div",{ref:De,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(De.current?.contains(t)||Ce.current?.contains(t))||Me.current||document.activeElement!==Ne.current&&Re(!0)},children:[(rt=/* @__PURE__ */T("input",{id:ge,ref:Ne,type:"text",autoComplete:"off",role:"combobox","aria-expanded":he,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":he?ve:void 0,"aria-activedescendant":he&&me>=0&&me<nt.length?we(me):void 0,"aria-label":te?void 0:ee,"aria-labelledby":te,"aria-describedby":ne,value:he?ye:Ke,onChange:e=>{$e(e.target.value),pe(!0)},onFocus:()=>{I||($e(""),pe(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(I)return;if(t.preventDefault(),!he)return void pe(!0);if(0===nt.length)return;const n="ArrowDown"===t.key?1:-1;return void fe(t=>e(nt,t,n))}"Enter"===t.key?(t.preventDefault(),he&&me>=0&&me<nt.length?Te(nt[me],me):1!==_e.length||_e[0].disabled?P&&!ue&&et&&(re?(le.includes(et)||ie([...le,et]),$e("")):(ie([et]),Re(!1),Ne.current?.blur())):Te(_e[0],0)):"Escape"===t.key?(Re(!1),Ne.current?.blur()):"Tab"===t.key&&Re(!0)},placeholder:Qe?Ke:U||je,className:`${se?u:d} ${H} ${a[Ie]}${I?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Qe?" rosh-field-shows-choice":""}`,style:Ee?{paddingRight:Ee}:void 0,disabled:I}),re?/* @__PURE__ */T(f,{content:!he&&Ze?Ae:null,className:"block",children:rt}):rt),re&&
|
|
3
|
-
/* @__PURE__ */T("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */T("span",{ref:Pe,className:"whitespace-pre"})}),Ie>0&&
|
|
4
|
-
/* @__PURE__ */R(s,{children:[He&&
|
|
5
|
-
/* @__PURE__ */T("span",{onMouseDown:e=>e.preventDefault(),className:"flex opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:/* @__PURE__ */T(c,{action:{label:ke.select.clear,icon:/* @__PURE__ */T(p,{name:"close"}),onClick:()=>{ie([]),Re(!1)}}})}),X&&/* @__PURE__ */T("span",{onMouseDown:e=>e.preventDefault(),className:"flex",children:/* @__PURE__ */T(c,{action:X})})]}),Q&&!he&&/* @__PURE__ */T("div",{ref:Se,className:`absolute top-1/2 -translate-y-1/2 ${F[Ie]} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:Q}),he&&M(
|
|
6
|
-
/* @__PURE__ */R("div",{ref:Ce,onMouseDownCapture:()=>{Me.current=!0,setTimeout(()=>{Me.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:g.popup,left:ze?.left,right:ze?.right,top:ze?.top,bottom:ze?.bottom,minWidth:ze?.minWidth,width:ze?.width,...ce&&{maxWidth:ze?.maxWidth},visibility:ze?void 0:"hidden",...j()},children:[re&&ae&&_&&!I&&
|
|
7
|
-
/* @__PURE__ */T("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ie([])},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 ${k}`,children:ke.select.clearAll}),J?
|
|
8
|
-
/* @__PURE__ */T(m,{size:"sm",padding:"py-2",label:ke.search.searching}):K?/* @__PURE__ */R("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
|
|
9
|
-
/* @__PURE__ */T("span",{className:"min-w-0 flex-1",children:K}),Z&&/* @__PURE__ */T(h,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:Z,className:"shrink-0",children:ke.list.retry})]}):null,
|
|
10
|
-
/* @__PURE__ */R("div",{id:ve,role:nt.length?"listbox":void 0,"aria-labelledby":nt.length?te??(ee?void 0:ge):void 0,"aria-label":nt.length&&!te?ee:void 0,"aria-multiselectable":!(!nt.length||!re)||void 0,className:"overflow-y-auto",style:{maxHeight:ze?.maxHeight??w},children:[0===nt.length?J||K?null:/* @__PURE__ */T("p",{className:"px-3 py-3 text-sm text-ink-faintest text-center",children:ke.select.noMatches}):0===_e.length?null:l(qe,(e,t)=>{const n=le.includes(e.value);/* @__PURE__ */
|
|
11
|
-
return R("button",{id:we(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||re)&&n.preventDefault(),Te(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===me?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[re&&/* @__PURE__ */T(o,{selected:n}),
|
|
12
|
-
/* @__PURE__ */T("span",{className:`min-w-0 ${ce?"flex-auto":"flex-1"} truncate`,children:q?q(e,{selected:n,active:t===me}):e.label}),e.sublabel&&/* @__PURE__ */T(i,{grows:ce,children:e.sublabel})]},e.value)},be),tt&&V&&
|
|
13
|
-
/* @__PURE__ */T("button",{id:we(_e.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{re&&e.preventDefault(),Te(tt,_e.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 ${_e.length?`border-t ${k}`:""} ${me===_e.length?"bg-gray-100":""}`,children:/* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:V(tt.value)})},`${be}-typed`)]})]}),document.body)]});var rt}export{L as SearchableSelect,E as fitChoice};
|
package/dist/chunk-YGKLZBWC.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-ISVODSRP.js";import{LoadingSpinner as t}from"./chunk-R2VKEMZH.js";import{toast_default as n}from"./chunk-VQ35LXDC.js";import{useShellStrings as r}from"./chunk-IUVGHHR3.js";import{createContext as a,useContext as o,useRef as i,useState as s,useEffect as l}from"react";import*as c from"pdfjs-dist";import{createPortal as d}from"react-dom";import{jsx as u,jsxs as m}from"react/jsx-runtime";function h(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var p=a(null);function f({children:e}){const t=o(p);return t?d(e,t):
|
|
2
|
-
/* @__PURE__ */u("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||c.GlobalWorkerOptions.workerSrc||(c.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${c.version}/build/pdf.worker.min.mjs`);var g={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},w=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=g[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw h(n,t,a);return a}};function y(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:w}}var v=[50,75,100,125,150,200,300,400];function b(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function x({url:a,filename:o,fit:d="width",onDownload:h,onEmail:p,workerSrc:g,wasmUrl:w}){const x=r().pdf,k=i(null),C=i(null),N=i(null),[j,M]=s(null),[E,P]=s(1),[z,D]=s(0),[_,S]=s(1),[L,W]=s(!0),[$,O]=s(!0),T=i(x.loadFailed);T.current=x.loadFailed,l(()=>{let e=!1;return O(!0),P(1),g&&(c.GlobalWorkerOptions.workerSrc=g),c.getDocument({url:a,...y(w)}).promise.then(t=>{e||(M(t),D(t.numPages),O(!1))}).catch(()=>{e||(n.error(T.current),O(!1))}),()=>{e=!0}},[a,g,w]),l(()=>{if(!j||!L||!N.current)return;const e=()=>{const e=N.current;e&&j.getPage(E).then(t=>{if(!N.current)return;const n=t.getViewport({scale:1}),r=b(d,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});S(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(N.current),()=>t.disconnect()},[j,E,L,d]),l(()=>{if(!j||!k.current)return;let e=!1,t=null,n=null;return j.getPage(E).then(r=>{if(e||!k.current)return;const a=r.getViewport({scale:_}),o=k.current;o.width=a.width,o.height=a.height,o.style.width=`${a.width}px`,o.style.height=`${a.height}px`;const i=o.getContext("2d");t=r.render({canvas:o,canvasContext:i,viewport:a}),t.promise.catch(()=>{});const s=C.current;s&&(s.replaceChildren(),s.style.setProperty("--total-scale-factor",String(a.scale)),n=new c.TextLayer({textContentSource:r.streamTextContent(),container:s,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",s.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[j,E,_]),l(()=>{const e=()=>C.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const A="page"===d?x.fitPage:x.fitWidth,H="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
3
|
-
return m("div",{className:"flex flex-col h-full",children:[
|
|
4
|
-
/* @__PURE__ */m(f,{children:[
|
|
5
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.previousPage,onClick:()=>P(e=>Math.max(1,e-1)),disabled:E<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(e,{name:"chevron-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
6
|
-
/* @__PURE__ */u("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:x.pageOf(E,z)}),
|
|
7
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>P(e=>Math.min(z,e+1)),disabled:E>=z,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(e,{name:"chevron-right",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
9
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomOut,title:x.zoomOut,onClick:()=>{W(!1),S(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"−"})}),
|
|
10
|
-
/* @__PURE__ */m("select",{value:L?"fit":v.includes(Math.round(100*_))?Math.round(100*_):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(W(!1),S(Number(t)/100)):W(!0)},className:"bg-transparent hover:bg-gray-200 rounded px-1 py-1 text-gray-600 tabular-nums cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-400","aria-label":x.zoom,title:x.zoom,children:[
|
|
11
|
-
/* @__PURE__ */u("option",{value:"fit",children:A}),!L&&!v.includes(Math.round(100*_))&&/* @__PURE__ */m("option",{value:"custom",children:[Math.round(100*_),"%"]}),v.map(e=>/* @__PURE__ */m("option",{value:e,children:[e,"%"]},e))]}),
|
|
12
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomIn,title:x.zoomIn,onClick:()=>{W(!1),S(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"+"})}),
|
|
13
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>W(!0),"aria-pressed":L,className:H+(L?" bg-gray-200 text-gray-900":""),title:x.fitHint,children:x.fit}),
|
|
14
|
-
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
15
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>{if(!j)return;const e=window.open("","_blank");if(!e)return void n.error(x.allowPopups);const t=[];for(let e=1;e<=z;e++)t.push(j.getPage(e).then(e=>{const t=e.getViewport({scale:2}),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,e.render({canvas:n,canvasContext:n.getContext("2d"),viewport:t}).promise.then(()=>n.toDataURL())}));Promise.all(t).then(t=>{var n;e.document.write(`<html><head><title>${n=o,n.replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""}[e]))}</title><style>@media print{body{margin:0}img{width:100%;page-break-after:always}}</style></head><body>`),e.document.write(t.map(e=>`<img src="${e}"/>`).join("")),e.document.write("</body></html>"),e.document.close(),setTimeout(()=>{e.print(),e.close()},300)})},className:H,children:[
|
|
16
|
-
/* @__PURE__ */u(e,{name:"print",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.print]}),
|
|
17
|
-
/* @__PURE__ */m("button",{type:"button",onClick:h??(()=>{const e=document.createElement("a");e.href=a,e.download=o,e.click()}),className:H,children:[
|
|
18
|
-
/* @__PURE__ */u(e,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:H,children:[
|
|
19
|
-
/* @__PURE__ */u(e,{name:"email",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.email]})]}),
|
|
20
|
-
/* @__PURE__ */u("div",{ref:N,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!j)return;if(e.ctrlKey||e.metaKey)return;const t=N.current;if(!t)return;const n=t.scrollTop<=0,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;e.deltaY>0&&r&&E<z?(e.preventDefault(),P(e=>Math.min(z,e+1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=0)})):e.deltaY<0&&n&&E>1&&(e.preventDefault(),P(e=>Math.max(1,e-1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=N.current.scrollHeight)}))},onKeyDown:e=>{if(!j)return;if(e.defaultPrevented)return;const t=(document.activeElement?.tagName||"").toLowerCase();"input"===t||"textarea"===t||document.activeElement?.isContentEditable||("PageDown"===e.key||"ArrowRight"===e.key?E<z&&(e.preventDefault(),P(e=>Math.min(z,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?E>1&&(e.preventDefault(),P(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),P(1)):"End"===e.key&&(e.preventDefault(),P(z)))},children:$?/* @__PURE__ */u(t,{size:"sm",padding:"",className:"h-full",label:x.loading}):/* @__PURE__ */m("div",{className:"min-h-full flex items-center justify-center p-4",children:[
|
|
21
|
-
/* @__PURE__ */u("style",{children:'\n.preview-pdf-textlayer {\n position: absolute;\n inset: 0;\n overflow: clip;\n line-height: 1;\n text-align: initial;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor, 1) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n.preview-pdf-textlayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n.preview-pdf-textlayer > :not(.markedContent),\n.preview-pdf-textlayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n.preview-pdf-textlayer .markedContent {\n display: contents;\n}\n.preview-pdf-textlayer span[role="img"] {\n user-select: none;\n cursor: default;\n}\n.preview-pdf-textlayer ::selection {\n background: rgba(0, 80, 255, 0.25);\n}\n.preview-pdf-textlayer br::selection {\n background: transparent;\n}\n.preview-pdf-textlayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n user-select: none;\n}\n.preview-pdf-textlayer.selecting .endOfContent {\n top: 0;\n}\n'}),
|
|
22
|
-
/* @__PURE__ */m("div",{className:"relative shadow-lg rounded",children:[
|
|
23
|
-
/* @__PURE__ */u("canvas",{ref:k,className:"block rounded"}),
|
|
24
|
-
/* @__PURE__ */u("div",{ref:C,className:"preview-pdf-textlayer",onPointerDown:e=>e.currentTarget.classList.add("selecting")})]})]})})]})}export{f as PanelActions,x as PdfViewer,p as ToolbarSlotContext,b as fitScale,y as pdfWasmParams};
|
|
File without changes
|
|
File without changes
|