efficient-shell 11.10.0 → 11.11.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 +3 -1
- package/dist/{Browser-FIRNNCSC.js → Browser-NRGJ53ST.js} +17 -17
- package/dist/Calculator-YZEGVEQ7.js +29 -0
- package/dist/{CurrencyConverter-LU7QXMOI.js → CurrencyConverter-CJQMDBQW.js} +9 -9
- package/dist/Documents-FIGKS36O.js +84 -0
- package/dist/Files-FPNJ46XY.js +88 -0
- package/dist/{Notepad-HNED2SWM.js → Notepad-2XW63REV.js} +10 -10
- package/dist/PdfViewer-M4RTCNNE.js +1 -0
- package/dist/PomodoroTimer-Y5GQX37J.js +91 -0
- package/dist/{Preview-OGSYTTKC.js → Preview-K7KDM4XK.js} +28 -28
- package/dist/Sidebar-QP5Y7RBV.js +44 -0
- package/dist/{Spreadsheet-4HZR2TUV.js → Spreadsheet-RQE4OCEK.js} +67 -67
- package/dist/{Stock-4BOTUHWE.js → Stock-IHAG62QV.js} +3 -3
- package/dist/{Weather-NDUOK3P3.js → Weather-EQDFEBIH.js} +22 -22
- package/dist/{WorldClock-FH6NFTOM.js → WorldClock-VQG7G2Z2.js} +6 -6
- package/dist/ai/index.js +78 -78
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChartTooltip.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/{chunk-Z32K3LIJ.js → chunk-225LCPO7.js} +1 -1
- package/dist/{chunk-FNMF42DQ.js → chunk-2E3K4FSQ.js} +2 -2
- package/dist/chunk-2EPAXWZZ.js +14 -0
- package/dist/{chunk-YY5TUQS4.js → chunk-2HAJ33HM.js} +3 -3
- package/dist/chunk-2NRNKF46.js +9 -0
- package/dist/{chunk-HTTICQBP.js → chunk-2XOH3NJZ.js} +18 -18
- package/dist/{chunk-4UKPDURO.js → chunk-2XORVHF2.js} +1 -1
- package/dist/{chunk-IDRAW6MT.js → chunk-2ZAFRGRF.js} +2 -2
- package/dist/{chunk-IKKQ4P4R.js → chunk-32EKHIAZ.js} +11 -11
- package/dist/{chunk-DGA4SO27.js → chunk-3JCOD5L2.js} +2 -2
- package/dist/{chunk-AFROFSDW.js → chunk-3OHADZYV.js} +1 -1
- package/dist/{chunk-PC44XTGN.js → chunk-3PZI2C4R.js} +1 -1
- package/dist/chunk-3VR5BOD4.js +8 -0
- package/dist/{chunk-YIFRSPUM.js → chunk-3X2W7R5B.js} +10 -10
- package/dist/{chunk-QVAOSKFO.js → chunk-3ZRYKZGI.js} +9 -9
- package/dist/{chunk-OZEPYQ7E.js → chunk-42TLGG33.js} +1 -1
- package/dist/{chunk-5MGNT7XM.js → chunk-57WQVUBX.js} +2 -2
- package/dist/{chunk-RPTOAKLB.js → chunk-5B4GRLAA.js} +1 -1
- package/dist/{chunk-SZTIP6T7.js → chunk-5KKJAYKT.js} +1 -1
- package/dist/{chunk-PBMAMVSE.js → chunk-5UCRYSQJ.js} +5 -5
- package/dist/{chunk-VNTJ7QO5.js → chunk-5YP7MFPK.js} +1 -1
- package/dist/{chunk-SIA3W7VE.js → chunk-62BDGAML.js} +6 -6
- package/dist/{chunk-276JUQXK.js → chunk-63545Z3N.js} +1 -1
- package/dist/{chunk-ZWLOVJWN.js → chunk-6C6M3QXL.js} +1 -1
- package/dist/{chunk-LLNWE7DR.js → chunk-6CK44QWU.js} +30 -30
- package/dist/{chunk-IAUEISDQ.js → chunk-6DQANKTL.js} +9 -9
- package/dist/chunk-6FIYG7IH.js +28 -0
- package/dist/{chunk-BXTSBORU.js → chunk-6LITLCVV.js} +3 -3
- package/dist/{chunk-RKL47W7I.js → chunk-6LK2BBCC.js} +6 -6
- package/dist/chunk-6R32KKIS.js +22 -0
- package/dist/chunk-7DI3VQCF.js +2 -0
- package/dist/{chunk-GNWK77U7.js → chunk-7HLBVMMQ.js} +1 -1
- package/dist/{chunk-TKE3EF2U.js → chunk-7IVTGOGM.js} +1 -1
- package/dist/{chunk-CFFT5OCV.js → chunk-7R23EKON.js} +1 -1
- package/dist/{chunk-R64OZ6TC.js → chunk-7V32O5NF.js} +6 -4
- package/dist/{chunk-5DZN6ZDE.js → chunk-A4YTWDKD.js} +9 -9
- package/dist/{chunk-OS2KE6QG.js → chunk-AHITTM6W.js} +4 -4
- package/dist/{chunk-WYSNMIZN.js → chunk-ALJS3SYS.js} +1 -1
- package/dist/{chunk-KZ6JVHFI.js → chunk-AQGIK2CV.js} +1 -1
- package/dist/{chunk-PTWKG635.js → chunk-ATKFIHDP.js} +4 -4
- package/dist/{chunk-U6IJL4Q5.js → chunk-AWQ5SOC5.js} +1 -1
- package/dist/{chunk-LVHQJ5TW.js → chunk-B2AYI45X.js} +7 -7
- package/dist/chunk-B2MD232O.js +6 -0
- package/dist/{chunk-2CPYXRR2.js → chunk-B2SLXCMY.js} +6 -6
- package/dist/chunk-BDUXF7BT.js +4 -0
- package/dist/{chunk-NFNDXE5O.js → chunk-C3UY34DC.js} +4 -4
- package/dist/{chunk-IW2QNPDG.js → chunk-CAIKDX2M.js} +2 -2
- package/dist/{chunk-EP5BHBZQ.js → chunk-CDQUOCXO.js} +1 -1
- package/dist/{chunk-ONIL7WXO.js → chunk-CG5X5ZLV.js} +1 -1
- package/dist/{chunk-WGLHB6WE.js → chunk-CJH2BGXY.js} +1 -1
- package/dist/{chunk-NGUXPP5Q.js → chunk-CLAKVFOB.js} +43 -43
- package/dist/{chunk-OUXSI6X4.js → chunk-CSLMWGFS.js} +1 -1
- package/dist/{chunk-YGCVMPIU.js → chunk-CT7AU2TA.js} +1 -1
- package/dist/{chunk-L3RLB37Y.js → chunk-D4RVWSUT.js} +1 -1
- package/dist/{chunk-ZRLWE3JM.js → chunk-DANLBFBD.js} +1 -1
- package/dist/{chunk-7N4P6LGD.js → chunk-DHMOJX2Z.js} +1 -1
- package/dist/chunk-E3EHHR73.js +13 -0
- package/dist/chunk-EC22ACQZ.js +11 -0
- package/dist/chunk-ESWR7YNY.js +19 -0
- package/dist/{chunk-WMS2DCRV.js → chunk-EV7VAXMO.js} +10 -10
- package/dist/{chunk-5PP435FL.js → chunk-EYPKBJYG.js} +1 -1
- package/dist/chunk-F636NDAU.js +12 -0
- package/dist/{chunk-E2LRAOCL.js → chunk-FFNPAJLS.js} +10 -10
- package/dist/chunk-FJBJUFD7.js +4 -0
- package/dist/{chunk-H5YD72OP.js → chunk-FRH2AHPI.js} +1 -1
- package/dist/{chunk-OE77XFOV.js → chunk-FUHURDBL.js} +1 -1
- package/dist/chunk-GO6HU2O3.js +7 -0
- package/dist/{chunk-QIVIQUKB.js → chunk-GRC46C4V.js} +7 -7
- package/dist/chunk-H56TNUV4.js +1 -0
- package/dist/{chunk-4VF66WBB.js → chunk-HDABS36W.js} +16 -16
- package/dist/{chunk-HWFBNYNI.js → chunk-HJBR73GS.js} +1 -1
- package/dist/{chunk-4L4GQW7P.js → chunk-HRG4FYVU.js} +1 -1
- package/dist/{chunk-KPFYXVCO.js → chunk-I5XNADZ3.js} +8 -8
- package/dist/chunk-IEOCUEJK.js +14 -0
- package/dist/chunk-IGQZANYE.js +15 -0
- package/dist/{chunk-JGVKGEIV.js → chunk-IIKPM3F4.js} +1 -1
- package/dist/{chunk-JJHPPTM6.js → chunk-IUG4Z2ND.js} +1 -1
- package/dist/{chunk-37JAU3U7.js → chunk-IUMFOSFJ.js} +3 -3
- package/dist/{chunk-WZMZ3N5B.js → chunk-JG26ICX6.js} +2 -2
- package/dist/{chunk-KMSK6QQB.js → chunk-JJZAYAVL.js} +1 -1
- package/dist/{chunk-FZM3ZPW3.js → chunk-JPNAEN53.js} +1 -1
- package/dist/{chunk-S4FPYCUU.js → chunk-JQBVSPF5.js} +3 -3
- package/dist/{chunk-MFDOGLFO.js → chunk-JRCFOZEU.js} +3 -3
- package/dist/{chunk-AJ6HMM4P.js → chunk-K6D7OSKZ.js} +14 -14
- package/dist/{chunk-DXFG4H4V.js → chunk-K6LW2QLI.js} +1 -1
- package/dist/{chunk-EOYGTVNS.js → chunk-KKJ55GUZ.js} +5 -5
- package/dist/chunk-KU4IWX6F.js +2 -0
- package/dist/{chunk-MWKLLAJT.js → chunk-KVVZLEUG.js} +1 -1
- package/dist/{chunk-JADBOQ7S.js → chunk-KYHDDVTR.js} +5 -5
- package/dist/{chunk-SJQKEIS7.js → chunk-KZEIQO3V.js} +3 -3
- package/dist/chunk-LGTYPLJM.js +5 -0
- package/dist/{chunk-U7T2ONAY.js → chunk-LXOX5FGH.js} +2 -2
- package/dist/{chunk-SXBOODCJ.js → chunk-LXQHTY3A.js} +5 -5
- package/dist/{chunk-RSJLN3EG.js → chunk-M57KX3OM.js} +1 -1
- package/dist/chunk-MQ445O4X.js +6 -0
- package/dist/{chunk-YM4XIO4K.js → chunk-MQE2FBJU.js} +5 -5
- package/dist/{chunk-SDAX6BXF.js → chunk-NMQGAP3H.js} +1 -1
- package/dist/chunk-NMTS2L2B.js +8 -0
- package/dist/{chunk-DWR6RVX5.js → chunk-NTUZT37J.js} +4 -4
- package/dist/{chunk-FOHOSUK3.js → chunk-O6VIHWYU.js} +1 -1
- package/dist/chunk-ODQYWMDF.js +3 -0
- package/dist/{chunk-OQG3XO4Y.js → chunk-OLJUPBY4.js} +1 -1
- package/dist/chunk-OPZXVXX5.js +7 -0
- package/dist/{chunk-RQ6TC6RM.js → chunk-OXCFRH33.js} +1 -1
- package/dist/chunk-OZM6DE7A.js +8 -0
- package/dist/{chunk-VTXCCFJ4.js → chunk-PDFV3YQB.js} +3 -3
- package/dist/{chunk-UZ7TKJRO.js → chunk-PDXOGPWH.js} +1 -1
- package/dist/{chunk-FTGA5IPI.js → chunk-PETBAYS5.js} +14 -14
- package/dist/{chunk-O4OFURPC.js → chunk-PL4HKGYP.js} +1 -1
- package/dist/chunk-PMA6DZ4Q.js +6 -0
- package/dist/{chunk-NSYCJTHE.js → chunk-PMKBWDXO.js} +1 -1
- package/dist/{chunk-LNGLJA6K.js → chunk-PVOTOUJG.js} +1 -1
- package/dist/{chunk-2JTG3U5L.js → chunk-PVVHWLNX.js} +1 -1
- package/dist/{chunk-BAT5B2LE.js → chunk-PZHO4FEN.js} +1 -1
- package/dist/{chunk-QIEAZN6Z.js → chunk-Q7DVGUML.js} +1 -1
- package/dist/{chunk-UIN2LUCZ.js → chunk-QAIMZN7M.js} +13 -13
- package/dist/{chunk-D2BXHFYK.js → chunk-QEDVXD3L.js} +1 -1
- package/dist/{chunk-DH2DKQKS.js → chunk-QOJ2UNS5.js} +1 -1
- package/dist/{chunk-NJN5IKWO.js → chunk-QQ2LDC6C.js} +1 -1
- package/dist/{chunk-ED6HJBCO.js → chunk-R6TDZ7T5.js} +1 -1
- package/dist/{chunk-GV5VNWPG.js → chunk-R72ZKZDP.js} +2 -2
- package/dist/chunk-R7KRBKFH.js +5 -0
- package/dist/{chunk-A65PRSKV.js → chunk-RMSF4UCJ.js} +4 -4
- package/dist/{chunk-P7NO3NGC.js → chunk-RNBC6V2D.js} +8 -8
- package/dist/chunk-RQBQETXQ.js +11 -0
- package/dist/{chunk-N5KO2IHG.js → chunk-RQDVAUXD.js} +4 -4
- package/dist/chunk-S43DAIIB.js +9 -0
- package/dist/{chunk-HBS4HYQM.js → chunk-SAASFWKB.js} +1 -1
- package/dist/chunk-SCZUDGRZ.js +2 -0
- package/dist/{chunk-LZJCULO7.js → chunk-SEP35R2E.js} +1 -1
- package/dist/{chunk-MOL2ND6G.js → chunk-SGBR443F.js} +6 -6
- package/dist/{chunk-PR42NIDL.js → chunk-SKRFI6WB.js} +12 -12
- package/dist/chunk-SUYQ7QYB.js +13 -0
- package/dist/{chunk-V6LPIDZ6.js → chunk-SWJXWDKX.js} +1 -1
- package/dist/{chunk-RDKIYORS.js → chunk-SYZLS2JA.js} +1 -1
- package/dist/{chunk-WTTXLWMK.js → chunk-T74FGTLW.js} +8 -8
- package/dist/{chunk-QL5E3MU3.js → chunk-TA4JGC5C.js} +1 -1
- package/dist/chunk-TXKTITMF.js +8 -0
- package/dist/{chunk-WDZUPDNC.js → chunk-TZXAW32T.js} +1 -1
- package/dist/{chunk-PAC4LK2N.js → chunk-UG42KUCT.js} +5 -5
- package/dist/{chunk-GPCTDEXQ.js → chunk-UTITWGVW.js} +1 -1
- package/dist/{chunk-A2SP4IZV.js → chunk-UVMM7AYO.js} +1 -1
- package/dist/{chunk-MQHUVZWM.js → chunk-UWJNQH2X.js} +1 -1
- package/dist/{chunk-PMKR2BF2.js → chunk-V64CJHMY.js} +19 -19
- package/dist/{chunk-LE5LWALR.js → chunk-VCMHBUKI.js} +1 -1
- package/dist/{chunk-L433UT5E.js → chunk-VEGZVUHE.js} +1 -1
- package/dist/chunk-VEZHFONL.js +9 -0
- package/dist/{chunk-HRXQCHKI.js → chunk-VPEH3THH.js} +3 -3
- package/dist/{chunk-ZM2NOLT6.js → chunk-VU5P4ZM5.js} +12 -12
- package/dist/{chunk-OYTRB237.js → chunk-VVDK7XPH.js} +1 -1
- package/dist/{chunk-TURECNEK.js → chunk-VZ52KKNA.js} +6 -6
- package/dist/{chunk-36VIGB6J.js → chunk-WDQI3FV6.js} +6 -6
- package/dist/{chunk-ZDDYTXPK.js → chunk-WEEQDPU3.js} +6 -6
- package/dist/{chunk-YKEB576T.js → chunk-WOOKUEED.js} +1 -1
- package/dist/{chunk-B4D23ZLJ.js → chunk-X2DUOIJP.js} +1 -1
- package/dist/{chunk-TE6R53YD.js → chunk-XWFLIGDQ.js} +1 -1
- package/dist/{chunk-EMUZJMR3.js → chunk-Y4RHGLXB.js} +1 -1
- package/dist/{chunk-FRNSCVPN.js → chunk-YOXR3VKO.js} +1 -1
- package/dist/{chunk-LPTN55KO.js → chunk-YQLKZ5UQ.js} +1 -1
- package/dist/{chunk-ZGQ6H2PU.js → chunk-YUAF3FDE.js} +4 -4
- package/dist/{chunk-RDTKMSEK.js → chunk-ZKBGUDNB.js} +1 -1
- package/dist/{chunk-T2ZFXPQV.js → chunk-ZOQVYSTB.js} +20 -20
- package/dist/{chunk-HYXDKY2L.js → chunk-ZOQXFS3R.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/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/TimePicker.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +666 -666
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +3 -3
- 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/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/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/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +134 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -6
- package/dist/Calculator-ELI5Z3XW.js +0 -29
- package/dist/Documents-CE7YKNJM.js +0 -52
- package/dist/Files-ARRIIZZ6.js +0 -88
- package/dist/PdfViewer-ZRDIG2L2.js +0 -1
- package/dist/PomodoroTimer-ZJ432VPC.js +0 -91
- package/dist/Sidebar-ETWHTFNP.js +0 -44
- package/dist/chunk-2UTCGWMZ.js +0 -5
- package/dist/chunk-2V3LKX7G.js +0 -6
- package/dist/chunk-4LQRLYB4.js +0 -22
- package/dist/chunk-5CPRZ27M.js +0 -28
- package/dist/chunk-5XVXYBIQ.js +0 -8
- package/dist/chunk-7QRKZOXR.js +0 -12
- package/dist/chunk-A4FCXZSY.js +0 -8
- package/dist/chunk-ABKCC7VB.js +0 -9
- package/dist/chunk-ABKFALDE.js +0 -8
- package/dist/chunk-ALMBY7QO.js +0 -6
- package/dist/chunk-EOVXFXVV.js +0 -2
- package/dist/chunk-FBACFP4U.js +0 -4
- package/dist/chunk-FSRHVB4A.js +0 -9
- package/dist/chunk-G2BZ7NCM.js +0 -19
- package/dist/chunk-HYNUJY6W.js +0 -13
- package/dist/chunk-IEHTZR5M.js +0 -7
- package/dist/chunk-IH2KC3NQ.js +0 -5
- package/dist/chunk-IXSSBGRD.js +0 -13
- package/dist/chunk-LCHU3ZG4.js +0 -9
- package/dist/chunk-MG4IUKVP.js +0 -11
- package/dist/chunk-N3OJ47VK.js +0 -1
- package/dist/chunk-N7645DNN.js +0 -6
- package/dist/chunk-NTKNM25F.js +0 -15
- package/dist/chunk-PEVWAJUR.js +0 -7
- package/dist/chunk-QRZBLNOQ.js +0 -4
- package/dist/chunk-UGOSZLCD.js +0 -14
- package/dist/chunk-WB6E6CSH.js +0 -14
- package/dist/chunk-WQGBYFS3.js +0 -8
- package/dist/chunk-Y2LWUBXX.js +0 -2
- package/dist/chunk-YMBNVMFU.js +0 -11
- package/dist/chunk-ZQJTLJUF.js +0 -2
- package/dist/chunk-ZVEDA462.js +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export{BoxPlotChart as default}from"../chunk-
|
|
1
|
+
export{BoxPlotChart as default}from"../chunk-6LITLCVV.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CandlestickChart as default}from"../chunk-
|
|
1
|
+
export{CandlestickChart as default}from"../chunk-VPEH3THH.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{CartesianPlot as default}from"../chunk-
|
|
2
|
+
export{CartesianPlot as default}from"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChartBrush as default}from"../chunk-
|
|
2
|
+
export{ChartBrush as default}from"../chunk-JRCFOZEU.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ChartFrame as default}from"../chunk-
|
|
1
|
+
export{ChartFrame as default}from"../chunk-NTUZT37J.js";import"../chunk-5KKJAYKT.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChartSkeleton as default}from"../chunk-
|
|
2
|
+
export{ChartSkeleton as default}from"../chunk-5KKJAYKT.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ChartTooltip as default}from"../chunk-
|
|
1
|
+
export{ChartTooltip as default}from"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ChordChart as default,foldChord}from"../chunk-
|
|
2
|
+
export{ChordChart as default,foldChord}from"../chunk-OZM6DE7A.js";import"../chunk-EYPKBJYG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ColumnChart as default}from"../chunk-
|
|
2
|
+
export{ColumnChart as default}from"../chunk-UG42KUCT.js";import"../chunk-465RRWBY.js";import"../chunk-5KKJAYKT.js";import"../chunk-CNYAHYE6.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FunnelChart as default}from"../chunk-
|
|
2
|
+
export{FunnelChart as default}from"../chunk-2EPAXWZZ.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{HeatmapChart as default}from"../chunk-
|
|
2
|
+
export{HeatmapChart as default}from"../chunk-EC22ACQZ.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{HistogramChart as default}from"../chunk-
|
|
1
|
+
export{HistogramChart as default}from"../chunk-SCZUDGRZ.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
package/dist/charts/Meter.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Meter as default}from"../chunk-
|
|
1
|
+
export{Meter as default}from"../chunk-LXQHTY3A.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
package/dist/charts/PieChart.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{PieChart as default}from"../chunk-
|
|
2
|
+
export{PieChart as default}from"../chunk-B2SLXCMY.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-
|
|
2
|
+
export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-IGQZANYE.js";import"../chunk-EYPKBJYG.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{RadialBarChart as default}from"../chunk-
|
|
2
|
+
export{RadialBarChart as default}from"../chunk-F636NDAU.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{RangeChart as default}from"../chunk-
|
|
1
|
+
export{RangeChart as default}from"../chunk-B2MD232O.js";import"../chunk-VFC6QUEN.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{RankedBars as default}from"../chunk-
|
|
1
|
+
export{RankedBars as default}from"../chunk-PDFV3YQB.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SankeyChart as default}from"../chunk-
|
|
2
|
+
export{SankeyChart as default}from"../chunk-VEZHFONL.js";import"../chunk-EYPKBJYG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-
|
|
2
|
+
export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-NMTS2L2B.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
package/dist/charts/SpecChart.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SpecChart as default}from"../chunk-
|
|
1
|
+
export{SpecChart as default}from"../chunk-HRG4FYVU.js";import"../chunk-GEYM4WN3.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-6R32KKIS.js";import"../chunk-JRCFOZEU.js";import"../chunk-CK2YOGUS.js";import"../chunk-NTUZT37J.js";import"../chunk-VFC6QUEN.js";import"../chunk-UG42KUCT.js";import"../chunk-465RRWBY.js";import"../chunk-5KKJAYKT.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
package/dist/charts/StatTile.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{StatTile as default}from"../chunk-
|
|
1
|
+
export{StatTile as default}from"../chunk-RMSF4UCJ.js";import"../chunk-CKCDGSTC.js";import"../chunk-TZFACUMR.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{SunburstChart as default}from"../chunk-
|
|
2
|
+
export{SunburstChart as default}from"../chunk-FJBJUFD7.js";import"../chunk-EYPKBJYG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{TimeSeriesChart as default}from"../chunk-
|
|
2
|
+
export{TimeSeriesChart as default}from"../chunk-6R32KKIS.js";import"../chunk-JRCFOZEU.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-5KKJAYKT.js";import"../chunk-CNYAHYE6.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{TreemapChart as default}from"../chunk-
|
|
2
|
+
export{TreemapChart as default}from"../chunk-OPZXVXX5.js";import"../chunk-46BYGPGD.js";import"../chunk-EYPKBJYG.js";import"../chunk-CNYAHYE6.js";import"../chunk-CJH2BGXY.js";import"../chunk-QQ2LDC6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{WaterfallChart as default}from"../chunk-
|
|
1
|
+
export{WaterfallChart as default}from"../chunk-IUMFOSFJ.js";import"../chunk-3VR5BOD4.js";import"../chunk-Y4RHGLXB.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5YP7MFPK.js";import"../chunk-C3QOHMR6.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useShellStrings as t,useShellLocale as e}from"./chunk-
|
|
1
|
+
import{useShellStrings as t,useShellLocale as e}from"./chunk-5YP7MFPK.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
|
|
2
2
|
return n("nav",{"aria-label":d.label,className:`flex items-center gap-1 ${u}`.trim(),children:[b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.first,disabled:1===l,onClick:()=>p(1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"«"}),
|
|
3
3
|
/* @__PURE__ */r("button",{type:"button","aria-label":d.previous,disabled:1===l,onClick:()=>p(l-1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"‹"}),m.map((t,e)=>"…"===t?/* @__PURE__ */r("span",{className:"px-1 text-gray-400",children:"…"},`gap-${e}`):/* @__PURE__ */r("button",{type:"button","aria-current":t===l?"page":void 0,onClick:()=>p(t),className:`${o} ${t===l?"bg-blue-600 font-medium text-white":"text-gray-700 hover:bg-gray-100"}`,children:a(t,g)},t)),
|
|
4
4
|
/* @__PURE__ */r("button",{type:"button","aria-label":d.next,disabled:l===i,onClick:()=>p(l+1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"›"}),b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.last,disabled:l===i,onClick:()=>p(i),className:`${o} text-gray-600 hover:bg-gray-100`,children:"»"})]})}export{l as Pagination};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{navIcons as e}from"./chunk-4LXCCZDM.js";import{Icon as t}from"./chunk-
|
|
1
|
+
import{navIcons as e}from"./chunk-4LXCCZDM.js";import{Icon as t}from"./chunk-7V32O5NF.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
|
|
2
2
|
return o(t,{name:"folder",look:"solid",className:e})}function u(t,r){return r&&e[r]||(t?e[t]:void 0)}var m=/* @__PURE__ */o("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z"})});function h({entityType:e,isSelected:t,entityId:l,label:h,fileKind:w}){const g="preview-file"===e&&w,y=g?f[w]:null,x=g?c[w]:null;if("folder"===e)/* @__PURE__ */
|
|
3
3
|
return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o(p,{className:"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]"})});if("page"===e){const e=u(l,h),i=a(l||h||"page");/* @__PURE__ */
|
|
4
4
|
return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o("span",{className:`h-11 w-11 rounded-xl bg-gradient-to-br ${i} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`,children:e&&r(e)?n(e,{className:"h-7 w-7 text-white"}):m})})}/* @__PURE__ */
|
|
@@ -10,4 +10,4 @@ return i("div",{className:"w-12 h-12 relative flex items-center justify-center "
|
|
|
10
10
|
/* @__PURE__ */o("span",{className:`absolute inset-0 flex items-center justify-center text-3xs font-bold pt-2 ${y??d[e]??"text-gray-600"}`,children:x??s[e]??e.slice(0,3).toUpperCase()})]})}function w({item:e}){if("folder"===e.entityType)/* @__PURE__ */
|
|
11
11
|
return o(p,{className:"h-4 w-4 shrink-0 text-amber-500"});if("page"===e.entityType){const t=u(e.entityId,e.label);/* @__PURE__ */
|
|
12
12
|
return o("span",{className:`h-4 w-4 rounded bg-gradient-to-br ${a(e.entityId||e.label||"page")} flex items-center justify-center text-white shrink-0`,children:t&&r(t)?n(t,{className:"h-3 w-3 text-white"}):/* @__PURE__ */o("span",{className:"h-1.5 w-1.5 rounded-[2px] border border-white/80"})})}const i=("preview-file"===e.entityType&&e.fileKind?f[e.fileKind]:d[e.entityType])??"text-gray-400";/* @__PURE__ */
|
|
13
|
-
return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function
|
|
13
|
+
return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function I(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function T(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function P(){const e=T();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,P as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,T as peekFilesViewRequest,b as publishDesktopFolders,I as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.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-5YP7MFPK.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(),[F,V]=m(null),{highlighted:W}=e(),w=s(null),C=t(w,560),Z=$??C;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const E=b??a(0),H=p??54*x.length,P=Math.max(...x.map(e=>e.value),1),Y="bars"===v,B=Y?Math.round(Math.min(132,Math.max(80,.24*Z))):Math.round(Math.min(168,Math.max(104,.38*Z))),Q=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},R=e=>{const t=Q(e);return{count:S(x[e].value),drop:null!=t?`−${u(t,1,L)}`:""}},U=Y?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,D=Z-B-U,I=Math.max(Y?2:0,Math.min(M,D)),K=e=>Math.max(I,D*Math.max(0,e/P)),O=e=>K(e)/2,T=B+D/2,X=e=>46+e/Math.max(1,x.length-1)*54,q=e=>`color-mix(in oklab, ${E} ${X(e).toFixed(0)}%, ${n.surface})`,G=e=>X(e)>=55?n.surface:n.label,J=(e,t)=>null!==F?F!==e:null!==W&&W!==t,_=null!==F?x[F]:void 0;/* @__PURE__ */
|
|
2
|
+
return f("div",{className:`relative ${k??""}`,ref:w,children:[
|
|
3
|
+
/* @__PURE__ */f("svg",{width:"100%",height:H,viewBox:`0 0 ${Z} ${H}`,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*H/x.length+g/2,a=(t+1)*H/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(Y){const u=B,h=u+K(e.value),{count:c,drop:m}=R(t);/* @__PURE__ */
|
|
5
|
+
return f("g",{opacity:J(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:B-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:G(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=Q(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
|
|
10
|
+
return f("g",{opacity:J(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:B-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
|
|
13
|
+
/* @__PURE__ */f("text",{x:B-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?G(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==F&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(l,{title:_.label,rows:[{key:"value",label:N.count,color:q(F),value:S(_.value)},{key:"share",label:N.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,L)},...F>0&&x[F-1].value>0?[{key:"drop",label:N.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[F-1].value),1,L)}`}]:[]]})})]})}export{x as FunnelChart};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{useWindowMenuItem as e,Modal as t}from"./chunk-
|
|
2
|
-
return p(t,{open:!0,onClose:()=>
|
|
1
|
+
import{useWindowMenuItem as e,Modal as t}from"./chunk-CLAKVFOB.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as s}from"./chunk-H56TNUV4.js";import{Icon as n}from"./chunk-7V32O5NF.js";import{DEFAULT_SHELL_STRINGS as o,useShellStrings as i,splitAround as a}from"./chunk-5YP7MFPK.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var f=o.aboutApp,u={spreadsheet:{name:"Spreadsheets",version:"2.0.0",route:"/spreadsheet",description:f.spreadsheet},notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:f.notepad},documents:{name:"Documents",version:"2.0.0",route:"/documents",description:f.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:f.preview},files:{name:"Files",version:"1.1.4",route:"/files",description:f.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:f.browser}},x=/* @__PURE__ */p(n,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(n,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:n}){const o=u[n],[f,w]=m(!1),N=c(()=>w(!0),[]),b=i().aboutApp,k=b.title(o.name);if(e(k,N,x),!f)return null;const g=r[o.route],y=l(g)?d(g,{className:"h-9 w-9"}):v,[j,C]=a(b.partOf);/* @__PURE__ */
|
|
2
|
+
return p(t,{open:!0,onClose:()=>w(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */h("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */p("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
|
|
4
4
|
/* @__PURE__ */p("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:o.name}),
|
|
5
5
|
/* @__PURE__ */p("p",{className:"text-2xs font-mono text-ink-faintest",children:b.version(o.version)}),
|
|
6
6
|
/* @__PURE__ */p("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:b[n]}),
|
|
7
7
|
/* @__PURE__ */h("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
|
|
8
8
|
/* @__PURE__ */h("p",{className:"text-2xs text-ink-faint",children:[j,
|
|
9
|
-
/* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),s&&/* @__PURE__ */p("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(s)})]})]})})}export{
|
|
9
|
+
/* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),C]}),s&&/* @__PURE__ */p("p",{className:"mt-0.5 text-2xs font-mono text-ink-faintest",children:b.shellVersion(s)})]})]})})}export{w as AboutApp,u as BUILTIN_APP_INFO};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{useOverlayTarget as e,usePopupAnchor as r,OverlayLayerProvider as t}from"./chunk-3DVNXNTF.js";import{useDiscardGuard as i}from"./chunk-YOXR3VKO.js";import{dialogA11y as o}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as l}from"./chunk-7QSDPSXP.js";import{useFocusTrap as n,useScrollLock as a}from"./chunk-CDAJKLGL.js";import{Icon as s}from"./chunk-7V32O5NF.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{useHydrated as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useShellStrings as h}from"./chunk-5YP7MFPK.js";import{useRef as f,useId as u,useState as p,useEffect as b}from"react";import{createPortal as g}from"react-dom";import{jsxs as x,Fragment as y,jsx as v}from"react/jsx-runtime";var w={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},k={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function N(e,r){const t=window.innerHeight-(r.top+r.height);if("bottom"===e)return{left:r.left,width:r.width,bottom:t};const i={top:r.top,height:r.height};return"left"===e?{...i,left:r.left}:{...i,right:window.innerWidth-(r.left+r.width)}}function j({onClose:e}){const r=h().dialog;/* @__PURE__ */
|
|
2
|
+
return v("button",{type:"button",onClick:e,"aria-label":r.close,className:"rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */v(s,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}function C({open:s,onClose:h,side:C="right",size:W="md",title:D,description:V,footer:F,children:L,blocking:P=!1,dirty:z=!1,initialFocus:H,"aria-label":J,"aria-labelledby":K,"aria-describedby":O,className:T=""}){const U=f(null),X=u(),Y=u(),A=u(),B=e(c()),[G,I]=p(null),Q=i({open:s,dirty:z,onClose:h,title:D,layer:G}),S=f(null),M=r(s&&null!==B,S);if(l(s),n(U,s&&null!==B,H),a(s),b(()=>{if(s)return m(()=>(P||Q(),!0),()=>U.current)},[s,P,Q]),!s||!B)return null;const R="bottom"===C,Z={...R?{maxHeight:"85vh"}:{},...M?N(C,M):{}};/* @__PURE__ */
|
|
3
|
+
return x(y,{children:[/* @__PURE__ */v("span",{ref:S,hidden:!0,"data-popup-anchor":""}),g(
|
|
4
|
+
/* @__PURE__ */v(t,{value:G,children:/* @__PURE__ */x("div",{ref:I,className:"fixed inset-0",style:{zIndex:d.overlay},role:"presentation","data-overlay-layer":"",children:[
|
|
5
|
+
/* @__PURE__ */v("div",{className:"fixed inset-0 bg-black/30",onClick:P?void 0:Q,"aria-hidden":"true"}),
|
|
6
|
+
/* @__PURE__ */x("div",{ref:U,...o({modal:!0,titleId:D?A:void 0,labelledBy:K,label:J}),"aria-describedby":O??(V?Y:L?X:void 0),"data-drawer-side":C,"data-popup-panel":"",style:Z,className:["fixed flex flex-col bg-white shadow-xl",R?"":`w-full max-w-full ${w[W]}`,M?"":k[C],R?"rounded-t-xl":"",T].filter(Boolean).join(" "),children:[D?/* @__PURE__ */x("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
|
|
7
|
+
/* @__PURE__ */x("div",{className:"min-w-0",children:[
|
|
8
|
+
/* @__PURE__ */v("h2",{id:A,className:"text-base font-semibold text-gray-900",children:D}),V&&/* @__PURE__ */v("p",{id:Y,className:"mt-0.5 text-sm text-gray-500",children:V})]}),!P&&/* @__PURE__ */v(j,{onClose:Q})]}):!P&&/* @__PURE__ */v("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */v(j,{onClose:Q})}),
|
|
9
|
+
/* @__PURE__ */x("div",{id:X,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[V&&!D&&/* @__PURE__ */v("p",{id:Y,className:("mb-3 text-sm text-gray-500 "+(P?"":"pr-8")).trim(),children:V}),L]}),F&&/* @__PURE__ */v("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:F})]})]})}),B)]})}export{C as Drawer};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import{Dialog as e}from"./chunk-
|
|
2
|
-
return m(r,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function
|
|
3
|
-
return m(r,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function
|
|
4
|
-
return d(f.Provider,{value:
|
|
5
|
-
/* @__PURE__ */m(e,{open:r,onClose:()=>
|
|
6
|
-
/* @__PURE__ */m("button",{ref
|
|
7
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>
|
|
8
|
-
/* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */m(
|
|
1
|
+
import{Dialog as e}from"./chunk-R7KRBKFH.js";import{buttonClasses as t}from"./chunk-UQYNPYF4.js";import{Icon as r}from"./chunk-7V32O5NF.js";import{useShellStrings as n,splitAround as o}from"./chunk-5YP7MFPK.js";import{createContext as l,useContext as i,useState as s,useRef as a,useCallback as c,useEffect as u}from"react";import{jsxs as d,jsx as m,Fragment as h}from"react/jsx-runtime";var f=l(()=>Promise.resolve(!1)),b=()=>i(f),g=()=>Promise.resolve(!1),p=e=>g(e),v=()=>Promise.resolve(!1),y=e=>v(e),x=()=>Promise.resolve(null),N=e=>x(e),k={danger:{icon:"text-red-600 bg-red-100",button:t({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:t({variant:"warning"})},info:{icon:"text-blue-600 bg-accent-tint-strong",button:t({variant:"primary"})}},w=t({variant:"secondary"}),C=t({variant:"primary"}),P="w-full rounded-md border border-line-strong h-8 px-3 text-sm";function F(){/* @__PURE__ */
|
|
2
|
+
return m(r,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function L(){/* @__PURE__ */
|
|
3
|
+
return m(r,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function j({children:t}){const[r,l]=s(!1),[i,b]=s({message:""}),[p,y]=s(0),N=a(),j=a(null),E=a(0),K=a([]),T=a(null),$=a(null),W=c(e=>{j.current=e.id,N.current=e.resolve,y(e.id),b(e.options),l(!0)},[]),Y=c(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const r={id:++E.current,options:t,resolve:e};null===j.current?W(r):K.current.push(r)})},[W]),[D,R]=s(!1),[V,B]=s({message:""}),[H,M]=s(""),O=a(),Q=c(e=>(B(e),M(""),R(!0),new Promise(e=>{O.current=e})),[]),[U,q]=s(!1),[z,A]=s({}),[G,I]=s(""),J=a(),S=c(e=>{const t="string"==typeof e?{message:e}:e;return A(t),I(t.defaultValue??""),q(!0),new Promise(e=>{J.current=e})},[]);u(()=>{g=Y,v=Q,x=S},[Y,Q,S]);const X=(e,t)=>{if(j.current!==e)return;const r=N.current,n=K.current.shift();n?W(n):(j.current=null,N.current=void 0,l(!1)),r?.(t)},Z=e=>{R(!1),M(""),O.current?.(e)},_=e=>{if(e){const e=G.trim();if(!e&&!z.allowEmpty)return q(!1),void J.current?.(null);q(!1),J.current?.(e)}else q(!1),J.current?.(null)},ee=i.variant||(i.confirmLabel?.toLowerCase().includes("delete")||i.message.toLowerCase().includes("delete")?"danger":"info"),te=k[ee],re=k["warning"===V.variant?"warning":"danger"],ne=V.confirmWord,oe=null==ne||H===ne,le=n().dialog,[ie,se]=o(le.typeToConfirm);/* @__PURE__ */
|
|
4
|
+
return d(f.Provider,{value:Y,children:[t,
|
|
5
|
+
/* @__PURE__ */m(e,{open:r,onClose:()=>X(p,!1),initialFocus:T,footer:/* @__PURE__ */d(h,{children:[
|
|
6
|
+
/* @__PURE__ */m("button",{ref:T,type:"button",onClick:()=>X(p,!1),className:w,children:i.cancelLabel||le.cancel}),
|
|
7
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>X(p,!0),className:te.button,children:i.confirmLabel||le.ok})]}),children:/* @__PURE__ */d("div",{className:"flex gap-4",children:[
|
|
8
|
+
/* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */m(F,{})}),
|
|
9
9
|
/* @__PURE__ */d("div",{className:"flex-1",children:[
|
|
10
10
|
/* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900",children:i.title||le.confirmTitle}),
|
|
11
11
|
/* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:i.message})]})]})}),
|
|
12
|
-
/* @__PURE__ */d(e,{open:D,onClose:()=>
|
|
13
|
-
/* @__PURE__ */m("button",{ref
|
|
14
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>
|
|
15
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>
|
|
12
|
+
/* @__PURE__ */d(e,{open:D,onClose:()=>Z(!1),initialFocus:null!=ne?void 0:$,footer:/* @__PURE__ */d(h,{children:[
|
|
13
|
+
/* @__PURE__ */m("button",{ref:$,type:"button",onClick:()=>Z(!1),className:w,children:V.cancelLabel||le.destructiveCancel}),
|
|
14
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!0),disabled:!oe,className:re.button,children:ne??V.confirmLabel??le.destructiveConfirm})]}),children:[
|
|
15
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>Z(!1),"aria-label":le.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */m(L,{})}),
|
|
16
16
|
/* @__PURE__ */d("div",{className:"flex gap-4",children:[
|
|
17
|
-
/* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${re.icon}`,children:/* @__PURE__ */m(
|
|
17
|
+
/* @__PURE__ */m("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${re.icon}`,children:/* @__PURE__ */m(F,{})}),
|
|
18
18
|
/* @__PURE__ */d("div",{className:"flex-1",children:[
|
|
19
19
|
/* @__PURE__ */m("h2",{className:"text-base font-semibold text-gray-900 pr-6",children:V.title||le.destructiveTitle}),
|
|
20
20
|
/* @__PURE__ */m("p",{className:"mt-2 text-sm text-gray-600",children:V.message}),null!=ne&&/* @__PURE__ */d(h,{children:[
|
|
21
21
|
/* @__PURE__ */d("p",{className:"mt-3 text-sm text-gray-700",children:[ie,
|
|
22
22
|
/* @__PURE__ */m("kbd",{className:"rounded border border-line-strong bg-surface-sunken px-2 py-0.5 text-xs font-bold text-red-600 font-mono",children:ne}),se]}),
|
|
23
|
-
/* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:H,onChange:e=>
|
|
24
|
-
/* @__PURE__ */d(e,{open:U,onClose:()=>_(!1),title:
|
|
25
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:
|
|
26
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!
|
|
27
|
-
/* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:
|
|
23
|
+
/* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:H,onChange:e=>M(e.target.value),onKeyDown:e=>{"Enter"===e.key&&H===ne&&Z(!0)},placeholder:ne,className:`mt-2 ${P} focus:border-red-500`})]})]})]})]}),
|
|
24
|
+
/* @__PURE__ */d(e,{open:U,onClose:()=>_(!1),title:z.title||le.promptTitle,footer:/* @__PURE__ */d(h,{children:[
|
|
25
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>_(!1),className:w,children:z.cancelLabel||le.cancel}),
|
|
26
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>_(!0),disabled:!z.allowEmpty&&!G.trim(),className:C,children:z.confirmLabel||le.ok})]}),children:[z.message&&/* @__PURE__ */m("p",{className:"text-sm text-gray-600",children:z.message}),
|
|
27
|
+
/* @__PURE__ */m("input",{autoFocus:!0,type:"text",value:G,onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"===e.key?_(!0):"Escape"===e.key&&_(!1)},onFocus:e=>e.target.select(),placeholder:z.placeholder,className:`mt-3 ${P} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{j as ConfirmProvider,p as confirm,y as confirmDestructive,N as prompt,b as useConfirm};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-
|
|
1
|
+
import{Icon as e}from"./chunk-7V32O5NF.js";import{DEFAULT_SHELL_STRINGS as t}from"./chunk-5YP7MFPK.js";import{jsx as r}from"react/jsx-runtime";var n=["left","center","right","justify"],a={left:"align-left",center:"align-center",right:"align-right",justify:"align-justify"};function i(t){switch(t){case"left":/* @__PURE__ */
|
|
2
2
|
return r(e,{name:"align-left"});case"center":/* @__PURE__ */
|
|
3
3
|
return r(e,{name:"align-center"});case"right":/* @__PURE__ */
|
|
4
4
|
return r(e,{name:"align-right"});case"justify":/* @__PURE__ */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{inputClasses as e}from"./chunk-AYZY3YNC.js";import{pad2 as t}from"./chunk-LF27WIN2.js";import{useShellLocale as n}from"./chunk-
|
|
2
|
-
return i("input",{ref:d,type:"time",lang:
|
|
1
|
+
import{inputClasses as e}from"./chunk-AYZY3YNC.js";import{pad2 as t}from"./chunk-LF27WIN2.js";import{useShellLocale as n}from"./chunk-5YP7MFPK.js";import{forwardRef as r}from"react";import{jsx as i}from"react/jsx-runtime";var a=/^\d{2}:\d{2}(:\d{2})?$/;function o(e,n){if(null==e||""===e)return"";if(e instanceof Date){if(Number.isNaN(e.getTime()))return"";const r=`${t(e.getHours())}:${t(e.getMinutes())}`;return n?`${r}:${t(e.getSeconds())}`:r}return a.test(e)?e:""}var s=r(function({value:t,onChange:r,min:s,max:u,invalid:m,size:l,className:c="",step:f,...v},d){const p=null!=f&&Number(f)<60,g=n();/* @__PURE__ */
|
|
2
|
+
return i("input",{ref:d,type:"time",lang:g,step:f,"aria-invalid":m||void 0,value:o(t,p),min:o(s,p)||void 0,max:o(u,p)||void 0,onChange:e=>r?.(a.test(e.target.value)?e.target.value:null),className:e({invalid:m,size:l,className:c}),...v})});export{s as TimePicker_default};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{Popover as e}from"./chunk-7JGR7WPD.js";import{InputNumber_default as r}from"./chunk-
|
|
2
|
-
return v("button",{ref:l,type:o,"aria-pressed":a,className:
|
|
3
|
-
return w("div",{id:S,className:`flex w-56 flex-col gap-3 ${
|
|
4
|
-
return v(d,{content:n,children:/* @__PURE__ */v($,{color:r??e.value,size:"sm","aria-label":n,selected:null!==r&&r===oe,disabled:
|
|
5
|
-
/* @__PURE__ */v("div",{role:"slider",tabIndex:
|
|
6
|
-
/* @__PURE__ */v("div",{role:"slider",tabIndex:
|
|
1
|
+
import{Popover as e}from"./chunk-7JGR7WPD.js";import{InputNumber_default as r}from"./chunk-R72ZKZDP.js";import{parseHexColor as a,hexToHsv as n,hsvToHex as o,hexReadout as t,HUE_GRADIENT as l,HEX_MAX_LENGTH as i,svFromPoint as s,hueFromPoint as c}from"./chunk-S6OB6HJB.js";import{inputClasses as u}from"./chunk-AYZY3YNC.js";import{Tooltip as d}from"./chunk-QQ2LDC6C.js";import{useShellStrings as h}from"./chunk-5YP7MFPK.js";import{forwardRef as g,useState as p,useRef as b,useEffect as m,useId as f}from"react";import{jsx as v,jsxs as w}from"react/jsx-runtime";var x={sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10"},y={backgroundImage:"conic-gradient(var(--line-strong) 25%, var(--surface) 0 50%, var(--line-strong) 0 75%, var(--surface) 0)",backgroundSize:"8px 8px"};function k(e){return null==e||Number.isNaN(e)?100:Math.round(Math.min(100,Math.max(0,e)))}function C(e,r){if(!e)return y;const a=k(r);if(a>=100)return{background:e};const n=`color-mix(in srgb, ${e} ${a}%, transparent)`;return{backgroundImage:`linear-gradient(${n}, ${n}), ${y.backgroundImage}`,backgroundSize:`auto, ${y.backgroundSize}`}}function N({size:e="md",selected:r=!1,className:a=""}={}){return["relative inline-flex shrink-0 overflow-hidden rounded-md p-0 transition-shadow","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]","disabled:cursor-not-allowed disabled:opacity-60",r?"border-2 border-blue-500":"border border-gray-300 hover:shadow-sm",x[e],a].filter(Boolean).join(" ")}var $=g(function({color:e,size:r="md",selected:a,className:n,type:o="button",...t},l){/* @__PURE__ */
|
|
2
|
+
return v("button",{ref:l,type:o,"aria-pressed":a,className:N({size:r,selected:a,className:n}),...t,children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:C(e)})})}),z=(e,r,a)=>Math.min(a,Math.max(r,e)),D=e=>"string"==typeof e?{value:e}:e;function P(e,r,a){const n=a?.1:.01,o={ArrowLeft:[-n,0],ArrowRight:[n,0],ArrowDown:[0,-n],ArrowUp:[0,n]}[r];return o?{...e,s:z(e.s+o[0],0,1),v:z(e.v+o[1],0,1)}:null}function A(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,359);case"ArrowRight":case"ArrowUp":return z(e+n,0,359);case"PageDown":return z(e-10,0,359);case"PageUp":return z(e+10,0,359);case"Home":return 0;case"End":return 359;default:return null}}var I={boxShadow:"0 0 0 2px white, 0 0 0 3px color-mix(in srgb, black 35%, transparent)"};function M(e,r,a){const n=a?10:1;switch(r){case"ArrowLeft":case"ArrowDown":return z(e-n,0,100);case"ArrowRight":case"ArrowUp":return z(e+n,0,100);case"PageDown":return z(e-10,0,100);case"PageUp":return z(e+10,0,100);case"Home":return 0;case"End":return 100;default:return null}}function j({value:e,onChange:r,label:i,presets:u,clearable:g=!1,fallback:f,dragWrites:x="live",disabled:N=!1,opacity:z,onOpacityChange:j,onClose:K,id:S,className:R=""}){const L=h().color,O=k(z),U=e=>{const r=k(e);N||r===O||j?.(r)},Y=e=>{const r=e.currentTarget.getBoundingClientRect();return r.width>0?(e.clientX-r.left)/r.width*100:O},E=a(f??""),[H,W]=p(()=>n(e||E||"")),q=b(e);m(()=>{e!==q.current&&(q.current=e,e?W(n(e)):E&&W(n(E)))},[e]);const X=a=>{N||a===e||(q.current=a,r(a))},Z=e=>{const r=a(e);r&&(W(n(r)),X(r))},F=e=>{W(e),X(o(e))},[J,Q]=p(!1),G=b(H);G.current=H;const V=e=>({onPointerDown:r=>{if(N||0!==r.button)return;r.currentTarget.setPointerCapture?.(r.pointerId),r.currentTarget.focus({preventScroll:!0});const a=e(r,G.current);"end"===x?(Q(!0),W(a)):F(a)},onPointerMove:r=>{if(N||!(1&r.buttons))return;const a=e(r,G.current);"end"===x?W(a):F(a)},onPointerUp:r=>{"end"===x&&J&&(Q(!1),F(e(r,G.current)))}}),_=V((e,r)=>({...r,...s(e.clientX,e.clientY,e.currentTarget.getBoundingClientRect())})),ee=V((e,r)=>({...r,h:c(e.clientX,e.currentTarget.getBoundingClientRect())})),re=J?o(H):e,ae=e=>`${Math.round(100*e)}%`,ne=(u??[]).map(D),oe=a(e),te=re||E||"";/* @__PURE__ */
|
|
3
|
+
return w("div",{id:S,className:`flex w-56 flex-col gap-3 ${N?"opacity-60":""} ${R}`.trim(),onKeyDown:e=>{"Escape"===e.key&&K&&(e.preventDefault(),e.stopPropagation(),K())},children:[(ne.length>0||g)&&/* @__PURE__ */w("div",{role:"group","aria-label":L.presets,className:"flex flex-wrap gap-2",children:[g&&/* @__PURE__ */v(d,{content:L.clear,children:/* @__PURE__ */v($,{color:"",size:"sm","aria-label":L.clear,selected:""===e,disabled:N,onClick:()=>{N||""===e||(q.current="",r(""))}})}),ne.map(e=>{const r=a(e.value),n=e.label?`${e.label} · ${t(r??e.value)}`:t(r??e.value);/* @__PURE__ */
|
|
4
|
+
return v(d,{content:n,children:/* @__PURE__ */v($,{color:r??e.value,size:"sm","aria-label":n,selected:null!==r&&r===oe,disabled:N,onClick:()=>Z(e.value)})},`${e.label??""}:${e.value}`)})]}),
|
|
5
|
+
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":L.square,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(100*H.v),"aria-valuetext":L.squareValue(Math.round(100*H.s),Math.round(100*H.v)),"aria-disabled":N||void 0,"data-color-square":"",onKeyDown:e=>{if(N)return;const r=P(H,e.key,e.shiftKey);r&&(e.preventDefault(),F(r))},..._,className:"relative h-36 w-full cursor-crosshair touch-none rounded-md rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundColor:o({h:H.h,s:1,v:1}),backgroundImage:"linear-gradient(to top, black, transparent), linear-gradient(to right, white, transparent)"},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute h-3 w-3 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:ae(H.s),top:ae(1-H.v),...I}})}),
|
|
6
|
+
/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":L.hue,"aria-valuemin":0,"aria-valuemax":359,"aria-valuenow":Math.round(H.h),"aria-orientation":"horizontal","aria-disabled":N||void 0,"data-color-hue":"",onKeyDown:e=>{if(N)return;const r=A(H.h,e.key,e.shiftKey);null!==r&&(e.preventDefault(),F({...H,h:r}))},...ee,className:"relative h-3 w-full cursor-pointer touch-none rounded-full rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundImage:l},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:H.h/360*100+"%",background:o({h:H.h,s:1,v:1}),...I}})}),j&&/* @__PURE__ */v("div",{role:"slider",tabIndex:N?-1:0,"aria-label":L.opacity(i),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":O,"aria-valuetext":`${O}%`,"aria-orientation":"horizontal","aria-disabled":N||void 0,"data-color-opacity":"",onKeyDown:e=>{if(N)return;const r=M(O,e.key,e.shiftKey);null!==r&&(e.preventDefault(),U(r))},onPointerDown:e=>{N||0!==e.button||(e.currentTarget.setPointerCapture?.(e.pointerId),e.currentTarget.focus({preventScroll:!0}),U(Y(e)))},onPointerMove:e=>{!N&&1&e.buttons&&U(Y(e))},className:"relative h-3 w-full cursor-pointer touch-none rounded-full rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",style:{backgroundImage:`linear-gradient(to right, transparent, ${te||"black"}), ${y.backgroundImage}`,backgroundSize:`auto, ${y.backgroundSize}`},children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"pointer-events-none absolute top-1/2 h-3.5 w-3.5 -translate-x-1/2 -translate-y-1/2 rounded-full",style:{left:`${O}%`,...C(te||"black",O),...I}})}),
|
|
7
7
|
/* @__PURE__ */w("div",{className:"flex items-center gap-2",children:[
|
|
8
|
-
/* @__PURE__ */v("span",{"aria-hidden":"true",className:"relative h-8 w-8 shrink-0 overflow-hidden rounded-md border border-line-strong",style:
|
|
9
|
-
/* @__PURE__ */v(
|
|
8
|
+
/* @__PURE__ */v("span",{"aria-hidden":"true",className:"relative h-8 w-8 shrink-0 overflow-hidden rounded-md border border-line-strong",style:C(te,j?O:null)}),
|
|
9
|
+
/* @__PURE__ */v(T,{value:re,placeholder:!e&&E?t(E):void 0,onChange:Z,label:L.hex(i),disabled:N}),j&&/* @__PURE__ */v(B,{value:O,onChange:U,label:L.opacity(i),disabled:N})]})]})}var K={sm:"w-[calc(7ch+1rem+4px)] min-w-[calc(7ch+1rem+4px)]",md:"w-[calc(7ch+1.5rem+4px)] min-w-[calc(7ch+1.5rem+4px)]",lg:"w-[calc(7ch+2rem+4px)] min-w-[calc(7ch+2rem+4px)]"},S={sm:"h-6",md:"h-8",lg:"h-10"},R=["block w-[calc(7ch+0.5rem+4px)] min-w-[calc(7ch+0.5rem+4px)] flex-none rounded-(--radius-control)","border border-transparent bg-transparent px-1 text-2xs font-mono uppercase","text-ink-strong placeholder:text-[color:var(--ink-placeholder)] hover:border-gray-300","focus:border-blue-400 focus:bg-(--surface) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)]","disabled:cursor-not-allowed disabled:opacity-60"].join(" ");function T({value:e,onChange:r,label:n,placeholder:o,disabled:l,id:s,size:c="md",look:d="box",className:h=""}){const[g,b]=p(null),m="text"===d?`${R} ${S[c]} ${h}`.trim():u({size:c,className:`${K[c]} flex-1 font-mono uppercase ${h}`.trim()}).replace(/(^| )w-full( |$)/," ");/* @__PURE__ */
|
|
10
10
|
return v("input",{id:s,type:"text",value:g??(e?t(e):""),"aria-label":n,placeholder:o,maxLength:i,spellCheck:!1,autoComplete:"off",disabled:l,onChange:n=>{b(n.target.value);const o=a(n.target.value);null!==o&&o!==e&&r(o)},onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),b(null))},onBlur:()=>b(null),"data-hex-look":d,className:m})}function B({value:e,onChange:a,label:n,disabled:o,size:t="md"}){/* @__PURE__ */
|
|
11
|
-
return v("div",{"data-color-opacity-box":"",className:"w-20 shrink-0",children:/* @__PURE__ */v(r,{value:e,onChange:e=>{null!==e&&a(e)},min:0,max:100,precision:0,suffix:"%",size:t,"aria-label":n,disabled:o})})}function
|
|
11
|
+
return v("div",{"data-color-opacity-box":"",className:"w-20 shrink-0",children:/* @__PURE__ */v(r,{value:e,onChange:e=>{null!==e&&a(e)},min:0,max:100,precision:0,suffix:"%",size:t,"aria-label":n,disabled:o})})}function L({value:r,onChange:n,label:o,presets:l,clearable:i,fallback:s,dragWrites:c,disabled:u,id:d,showHexInput:g=!1,opacity:p,onOpacityChange:b,size:m="md",align:x="start",open:y,onOpenChange:$,className:z=""}){const D=h().color,P=k(p),A=f(),I=a(s??""),M=r||I||"",K=r?t(r):I?t(I):D.none;
|
|
12
12
|
/* @__PURE__ */
|
|
13
13
|
return w("div",{className:`inline-flex items-center ${b?"flex-wrap justify-end gap-1":g?"gap-1":"gap-2"} ${z}`.trim(),children:[
|
|
14
|
-
/* @__PURE__ */v(e,{id:d,trigger:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:
|
|
15
|
-
/* @__PURE__ */v(
|
|
14
|
+
/* @__PURE__ */v(e,{id:d,trigger:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"absolute inset-0",style:C(M,b?P:null)}),triggerLabel:D.swatch(o,K),triggerClassName:N({size:m}),"aria-label":D.panel(o),align:x,open:y,onOpenChange:$,disabled:u,children:/* @__PURE__ */v(j,{id:A,value:r,onChange:n,label:o,presets:l,clearable:i,fallback:s,dragWrites:c,disabled:u,opacity:p,onOpacityChange:b})}),g&&
|
|
15
|
+
/* @__PURE__ */v(T,{value:r,placeholder:!r&&I?t(I):void 0,onChange:e=>{u||e===r||n(e)},label:D.hex(o),disabled:u,size:m,look:"text"}),b&&/* @__PURE__ */v(B,{value:P,onChange:e=>{u||e===P||b(e)},label:D.opacity(o),disabled:u,size:m})]})}export{L as ColorPicker,j as ColorPickerPanel,$ as ColorSwatch,T as HexInput,y as NO_COLOR_FILL,k as clampOpacity,C as colorFill,N as colorSwatchClasses,A as stepHue,M as stepOpacity,P as stepSquare};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{IconPicker as e}from"./chunk-
|
|
2
|
-
return a("div",{role:"group","aria-label":l,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(i,{children:[O("left",b.sides.left,h.left,
|
|
1
|
+
import{IconPicker as e}from"./chunk-BDUXF7BT.js";import{ColorPicker as t}from"./chunk-32EKHIAZ.js";import{InputNumber_default as r}from"./chunk-R72ZKZDP.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as l}from"./chunk-7V32O5NF.js";import{jsxs as a,Fragment as i,jsx as s}from"react/jsx-runtime";var n=["top","right","bottom","left"];function d(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(n.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function m(e,t){const r=e??{},o=d(t),l=n.some(e=>"number"==typeof r[e]),a=n.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:l?0:o[e]);return!a.every(e=>e===a[0])}var c="h-3.5 w-3.5",h={all:/* @__PURE__ */s(l,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */s(l,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */s(l,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */s(l,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */s(l,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */s(l,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */s(l,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */s(l,{name:"line-dotted","aria-hidden":"true",className:c})};function u({label:l,value:d,onChange:m,each:c,placeholder:u,presets:f,words:b,widths:w=!0,styles:g=!0,min:y=0,max:N=20,step:v=1,readOnly:x}){const j=e=>"number"==typeof d[e]?d[e]:null,k=(e,t)=>{const r={...d};if("number"==typeof d.width)for(const e of n)null===j(e)&&(r[e]=d.width);r[e]=t,delete r.width,m(r)},O=(e,t,o,l,a,i)=>/* @__PURE__ */s("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */s(r,{value:l,onChange:i,min:y,max:N,step:v,precision:0,steppers:"compact",readOnly:x,placeholder:a,prefix:o,suffix:b.unit,"aria-label":t})}),S=n.map(j),C="number"==typeof d.width?d.width:S.every(e=>null!==e&&e===S[0])?S[0]:null,Z=null===C&&S.some(e=>null!==e),B=n.every(e=>u.sides[e]===u.sides.top)?String(u.sides.top):"–",D=e=>j(e)??("number"==typeof d.width?d.width:null),E=d.style??u.style;/* @__PURE__ */
|
|
2
|
+
return a("div",{role:"group","aria-label":l,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[w?c?/* @__PURE__ */a(i,{children:[O("left",b.sides.left,h.left,D("left"),String(u.sides.left),e=>k("left",e)),O("top",b.sides.top,h.top,D("top"),String(u.sides.top),e=>k("top",e)),O("right",b.sides.right,h.right,D("right"),String(u.sides.right),e=>k("right",e)),O("bottom",b.sides.bottom,h.bottom,D("bottom"),String(u.sides.bottom),e=>k("bottom",e))]}):O("all",b.width,h.all,C,Z?"–":B,e=>{const t={...d,width:e};for(const e of n)delete t[e];m(t)}):null,g&&/* @__PURE__ */s("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */s(e,{label:b.style,value:E,disabled:x,onChange:e=>{x||m({...d,style:e})},options:o.map(e=>({value:e,label:b.styles[e],icon:p[e]}))})}),
|
|
3
3
|
/* @__PURE__ */s("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */s(t,{value:d.color??"",onChange:e=>{x||m({...d,color:e})},label:b.color,presets:f,fallback:u.color,showHexInput:!0,size:"md",disabled:x})})]})}export{u as BorderInput,d as borderSides,m as borderStartEach};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{client_default as a}from"./chunk-
|
|
1
|
+
import{client_default as a}from"./chunk-CLAKVFOB.js";var t=()=>a.get("/auth/numbering-configs/").then(a=>a.data?.results??a.data??[]),e="uploaded:wallpaper";function r(a,t){return"string"!=typeof a||!a||"none"===a||a.startsWith("#")?"":a===e?t||"":a}var l=()=>a.get("/auth/me/wallpaper/").then(a=>a.data),n=(t,e)=>{const r=new FormData;r.append("wallpaper",t);const l=e?{onUploadProgress:a=>e(a.total?Math.round(a.loaded/a.total*100):null)}:void 0;return a.post("/auth/me/wallpaper/",r,l).then(a=>a.data)},p=()=>a.delete("/auth/me/wallpaper/").then(a=>a.data);function o(a){const t=a?.response?.status,e=a?.response?.data,r=Array.isArray(e?.wallpaper)?e.wallpaper[0]:void 0;return r||(413===t?"That picture is too large to use as a wallpaper.":415===t?"That file is not a picture this can use as a wallpaper.":"The wallpaper could not be saved. Please try again.")}export{e as WALLPAPER_PREF_TOKEN,p as deleteWallpaper,t as getNumberingConfigs,l as getWallpaper,n as uploadWallpaper,r as wallpaperSrc,o as wallpaperUploadError};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import{useShellStrings as r}from"./chunk-
|
|
1
|
+
import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import{useShellStrings as r}from"./chunk-5YP7MFPK.js";import{jsx as o}from"react/jsx-runtime";function i(){const i=r().loading;/* @__PURE__ */
|
|
2
2
|
return o(n,{size:"sm",padding:"p-8",label:i.label})}export{i as LoadingSpinner};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{DragBand as e,tooltipBesideBand as t}from"./chunk-Y4RHGLXB.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{niceAxis as i,niceMax as n,linearScale as o,axisGutter as l,bandScale as a}from"./chunk-2JWPNR2U.js";import{CHART_INK as h}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as c,useShellLocale as m}from"./chunk-5YP7MFPK.js";import{formatPlain as d}from"./chunk-C3QOHMR6.js";import{useRef as u,useState as f,useId as g,useEffect as p}from"react";import{jsx as x,jsxs as y}from"react/jsx-runtime";function v({labels:v,values:b,height:k=220,width:M,bandPadding:w=.24,min:N,max:A,yTickCount:P=4,formatValue:$,yAxisLabel:j,xTickAnchor:R="center",children:E,overlay:U,tooltip:z,onSelect:D,zoom:L,ariaLabel:C,className:F,emptyLabel:S}){const I=c().charts,T=m(),V=$??(e=>d(e,T)),W=S??I.noData,B=u(null),H=r(B),K=M??H,[Q,X]=f(null),Y=g();if(p(()=>{if(null!==Q)return s(e=>"Escape"===e.key&&(X(null),!0))},[Q]),0===v.length||!b.some(Number.isFinite))/* @__PURE__ */
|
|
2
|
+
return x("div",{className:F,ref:B,children:/* @__PURE__ */x("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:k},children:W})});const Z=b.filter(Number.isFinite),G=Z.every(Number.isInteger),J=void 0===N&&void 0===A?i(Math.min(0,...Z),Math.max(0,...Z),{intervals:P+1,integer:G}):null,O=void 0!==N&&void 0===A?i(N,Math.max(N,...Z),{intervals:P+1,integer:G,zero:!1}):null,q=J?J.lo:N??Math.min(0,...Z),_=J?J.hi:O?O.hi:A??n(Math.max(...Z,0)),ee=J?J.ticks:O?[q,...O.ticks.filter(e=>e>q)]:o([q,_],{from:0,to:1}).ticks(P+1),te={top:12,right:16,bottom:26,left:l(ee.map(V),48)+(j?10:0)},re=te.left,ie=Math.max(re+1,K-te.right),ne=te.top,oe=k-te.bottom,le=o([q,_],{from:oe,to:ne}),ae=a(v.length,{from:re,to:ie},w),he=(ie-re)/Math.max(1,v.length),se=he>=48,ce=se?1:Math.max(1,Math.ceil(v.length/Math.max(1,Math.floor(K/84)))),me=Math.max(2,Math.floor((he-6)/6.6)),de=e=>se&&e.length>me?`${e.slice(0,me-1).trimEnd()}…`:e;/* @__PURE__ */
|
|
3
|
+
return y("div",{className:`relative ${F??""}`,ref:B,children:[
|
|
4
|
+
/* @__PURE__ */y("svg",{width:"100%",height:k,viewBox:`0 0 ${K} ${k}`,role:"img","aria-label":C,tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>X(null),onBlur:()=>X(null),onKeyDown:e=>{if(D&&null!==Q&&("Enter"===e.key||" "===e.key))return e.preventDefault(),void D(Q);if("ArrowRight"!==e.key&&"ArrowLeft"!==e.key)return;e.preventDefault();const t="ArrowRight"===e.key?1:-1;X(e=>Math.min(v.length-1,Math.max(0,(e??0)+t)))},style:L?{userSelect:"none",touchAction:"pan-y"}:void 0,children:[
|
|
5
|
+
/* @__PURE__ */x("defs",{children:/* @__PURE__ */x("clipPath",{id:Y,children:/* @__PURE__ */x("rect",{x:re,y:ne,width:ie-re,height:oe-ne})})}),ee.map(e=>/* @__PURE__ */x("line",{x1:re,y1:le(e),x2:ie,y2:le(e),stroke:h.grid,strokeWidth:1,shapeRendering:"crispEdges"},`g${e}`)),
|
|
6
|
+
/* @__PURE__ */x("line",{x1:re,y1:le(Math.max(q,0)),x2:ie,y2:le(Math.max(q,0)),stroke:h.axis,strokeWidth:1,shapeRendering:"crispEdges"}),ee.map(e=>/* @__PURE__ */x("text",{x:re-8,y:le(e)+4,textAnchor:"end",fontSize:11,fill:h.label,style:{fontVariantNumeric:"tabular-nums"},children:V(e)},`t${e}`)),j&&/* @__PURE__ */x("text",{x:14,y:(ne+oe)/2,transform:`rotate(-90 14 ${(ne+oe)/2})`,textAnchor:"middle",fontSize:11,fill:h.label,children:j}),
|
|
7
|
+
/* @__PURE__ */x("g",{clipPath:`url(#${Y})`,children:E({x:ae,y:le,left:re,right:ie,top:ne,bottom:oe,width:K,height:k,clipId:Y,active:Q})}),U?.({x:ae,y:le,left:re,right:ie,top:ne,bottom:oe,width:K,height:k,clipId:Y,active:Q}),v.map((e,t)=>t%ce===0?/* @__PURE__ */x("text",{x:"start"===R?ae(t):ae.center(t),y:k-8,textAnchor:"middle",fontSize:11,fill:h.label,style:{fontVariantNumeric:"tabular-nums"},children:de(e)},`x${t}`):null),L?.drag&&/* @__PURE__ */x(e,{x0:ae.center(L.drag[0])-(ie-re)/v.length/2,x1:ae.center(L.drag[1])+(ie-re)/v.length/2,top:ne,bottom:oe}),v.map((e,t)=>/* @__PURE__ */x("rect",{x:ae.center(t)-(ie-re)/v.length/2,y:ne,width:(ie-re)/v.length,height:oe-ne,fill:"transparent",onMouseEnter:()=>X(t),onPointerDown:L?()=>L.press(t):void 0,onPointerEnter:L?()=>L.over(t):void 0,onPointerUp:L?.release,onClick:D?()=>D(t):void 0,style:D?{cursor:"pointer"}:void 0},`h${t}`))]}),z&&null!==Q&&
|
|
8
|
+
/* @__PURE__ */x("div",{className:"pointer-events-none absolute top-2 z-10",style:t(ae.center(Q),ae.bandwidth,K),children:z(Q)})]})}export{v as CartesianPlot};
|