efficient-shell 8.34.0 → 8.35.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 +9 -0
- package/dist/{Browser-QBAMRKYI.js → Browser-ERZNOFN7.js} +14 -14
- package/dist/Calculator-NXIOZMML.js +29 -0
- package/dist/{CurrencyConverter-S7LG5PMX.js → CurrencyConverter-57WUTV4H.js} +12 -12
- package/dist/{Documents-E3GMXALJ.js → Documents-POWS4L44.js} +19 -19
- package/dist/{Files-2DWPYRM5.js → Files-O44UH6ZF.js} +43 -43
- package/dist/{Notepad-VQ66RWLT.js → Notepad-66ZCGUHC.js} +10 -10
- package/dist/PdfViewer-KSLOYXMD.js +1 -0
- package/dist/{PomodoroTimer-2HPCAEI5.js → PomodoroTimer-GLYNCO4H.js} +17 -17
- package/dist/{Preview-VZYFOH2U.js → Preview-WZDFVBNJ.js} +23 -23
- package/dist/Sidebar-QQFJJWE2.js +43 -0
- package/dist/{Spreadsheet-4KXRJSHT.js → Spreadsheet-OYAVNRCT.js} +14 -14
- package/dist/{Stock-VNFYS73L.js → Stock-CIHUZOQS.js} +7 -7
- package/dist/{Weather-DS4YZ6SH.js → Weather-UKLNJ3VF.js} +13 -13
- package/dist/{WorldClock-7S4TITSF.js → WorldClock-OZ3I7D2M.js} +6 -6
- package/dist/ai/index.d.ts +47 -9
- package/dist/ai/index.js +38 -33
- package/dist/ai.css +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/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/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/RadarChart.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-L3NYH4QV.js → chunk-2AHHM4SK.js} +39 -39
- package/dist/{chunk-Z2YGQBLZ.js → chunk-2C6IG7LG.js} +1 -1
- package/dist/{chunk-7CFH6Y4T.js → chunk-2F7ZOMKK.js} +1 -1
- package/dist/chunk-2PWZNFFP.js +19 -0
- package/dist/{chunk-KIBL6M3T.js → chunk-2SHYR3RA.js} +4 -3
- package/dist/{chunk-G433MKIN.js → chunk-2U2GJCSP.js} +5 -5
- package/dist/{chunk-ZN3O2KJ7.js → chunk-2WL3Q7VW.js} +12 -12
- package/dist/{chunk-EYX6KLCZ.js → chunk-37CCKGHU.js} +1 -1
- package/dist/{chunk-XWLWG4HS.js → chunk-4GVH4ZUH.js} +1 -1
- package/dist/{chunk-GIM2422N.js → chunk-4HCRZHIX.js} +1 -1
- package/dist/{chunk-MXHEREC6.js → chunk-4MO375G3.js} +3 -3
- package/dist/{chunk-3BPF6PP3.js → chunk-4RNF6MNW.js} +2 -2
- package/dist/chunk-5FCEBKT2.js +7 -0
- package/dist/{chunk-DGLCMYSQ.js → chunk-5N5DBTTF.js} +11 -11
- package/dist/{chunk-KNVE7CMS.js → chunk-5OX6KXWY.js} +1 -1
- package/dist/{chunk-PNQ4EYYM.js → chunk-5YELPBUT.js} +3 -3
- package/dist/{chunk-QDOTMA3W.js → chunk-64ZHCEZN.js} +1 -1
- package/dist/{chunk-Y2D2YMFY.js → chunk-6ANFVX4M.js} +12 -12
- package/dist/{chunk-T5SEGUCJ.js → chunk-7ACSSYEZ.js} +13 -13
- package/dist/{chunk-GI7FOLDX.js → chunk-ACW3J77L.js} +1 -1
- package/dist/{chunk-ERMZ75FO.js → chunk-AF7R2MV4.js} +1 -1
- package/dist/{chunk-QQK3XS6H.js → chunk-AZU7YOES.js} +8 -8
- package/dist/{chunk-NFR4QZL2.js → chunk-BHMUOWAE.js} +4 -4
- package/dist/{chunk-TFMC2WAS.js → chunk-BKZGI76S.js} +1 -1
- package/dist/{chunk-UB4BTRSB.js → chunk-BYCOB6WT.js} +1 -1
- package/dist/chunk-BZMZTPS6.js +1 -0
- package/dist/chunk-CAMLFCGY.js +29 -0
- package/dist/{chunk-LCM5U6BY.js → chunk-CCPNMYCK.js} +1 -1
- package/dist/{chunk-RAAUW5OZ.js → chunk-DG2WU3BU.js} +2 -2
- package/dist/chunk-DIN3EFOM.js +14 -0
- package/dist/{chunk-WJ3XSJ6B.js → chunk-EBC4XFL2.js} +1 -1
- package/dist/{chunk-37JDUDCO.js → chunk-ECCUEG3J.js} +1 -1
- package/dist/{chunk-4C4SQ4YW.js → chunk-EM6BEHAD.js} +8 -8
- package/dist/{chunk-W5M6P4DZ.js → chunk-ETF7LAYZ.js} +5 -5
- package/dist/{chunk-LEC4SZIV.js → chunk-EVB35JP5.js} +1 -1
- package/dist/{chunk-FL2PUQX7.js → chunk-EW6FRPFJ.js} +1 -1
- package/dist/{chunk-JCMP5KMS.js → chunk-EZY4CO4A.js} +6 -6
- package/dist/{chunk-PJCVNFWM.js → chunk-FKZEGBLK.js} +10 -10
- package/dist/{chunk-DTSCO7VM.js → chunk-FMKTVZAO.js} +1 -1
- package/dist/{chunk-IZCODCSC.js → chunk-FTKKGGOQ.js} +1 -1
- package/dist/{chunk-FFJVCLGH.js → chunk-G2MJTE6X.js} +11 -11
- package/dist/{chunk-EZGY6CFN.js → chunk-GK3QH63P.js} +1 -1
- package/dist/{chunk-3WC6ITJ3.js → chunk-H33Z4ZIY.js} +6 -6
- package/dist/{chunk-CPXHU3Y2.js → chunk-HAIMJAI4.js} +2 -2
- package/dist/chunk-HMHL27AU.js +6 -0
- package/dist/{chunk-RSO67DWS.js → chunk-I4VD5D43.js} +4 -4
- package/dist/{chunk-BIYL7CEI.js → chunk-IFDW5QW6.js} +2 -2
- package/dist/{chunk-4AAGZQX7.js → chunk-IHEEJO5S.js} +1 -1
- package/dist/{chunk-WQNIXV4T.js → chunk-IUCIYWTT.js} +8 -8
- package/dist/chunk-JBQWR4SX.js +8 -0
- package/dist/{chunk-AX7KPMDV.js → chunk-JDKRQG7X.js} +2 -2
- package/dist/{chunk-LBLV64XG.js → chunk-JUGPTBMS.js} +1 -1
- package/dist/{chunk-BUGAWNOC.js → chunk-JVIOAZHW.js} +4 -4
- package/dist/{chunk-B2XDNBR3.js → chunk-L3G3YHVN.js} +1 -1
- package/dist/{chunk-ZEKM6HAA.js → chunk-M2AIC7IK.js} +2 -2
- package/dist/{chunk-KDZUWQEG.js → chunk-M2KV4WKR.js} +1 -1
- package/dist/{chunk-H3BC4KDE.js → chunk-M2LLVSBR.js} +1 -1
- package/dist/{chunk-SAKHGHF5.js → chunk-MC43PRTL.js} +1 -1
- package/dist/{chunk-USYNZGY4.js → chunk-MICWRC72.js} +7 -7
- package/dist/{chunk-WTY3SXO7.js → chunk-MY755PTJ.js} +1 -1
- package/dist/chunk-NKZNPYDB.js +3 -0
- package/dist/{chunk-YSFLXPUS.js → chunk-NUSSZJF2.js} +5 -5
- package/dist/{chunk-RGBX3EVC.js → chunk-O2YAB6WK.js} +8 -8
- package/dist/{chunk-3J5QUHPO.js → chunk-OFKWTOXK.js} +3 -3
- package/dist/{chunk-ZT5Y5JZB.js → chunk-P42YNSKI.js} +4 -4
- package/dist/{chunk-KKSW5IZ7.js → chunk-PCKYNZ5Y.js} +5 -5
- package/dist/{chunk-YW2DH6YQ.js → chunk-QPWD5CCS.js} +5 -5
- package/dist/{chunk-RUQEB2ZC.js → chunk-R4C3GGCS.js} +3 -3
- package/dist/{chunk-3V5Z2BJY.js → chunk-RB2F65YJ.js} +12 -12
- package/dist/{chunk-BZV4K6GR.js → chunk-RPJ2GC3K.js} +20 -20
- package/dist/{chunk-XC55NMXR.js → chunk-S4IW5OL3.js} +1 -1
- package/dist/{chunk-PBMZJXSZ.js → chunk-S4J4B7LY.js} +5 -5
- package/dist/{chunk-HVX37PKU.js → chunk-SEXLHFMR.js} +1 -1
- package/dist/{chunk-BQ2IPQNR.js → chunk-SWHRP52Y.js} +1 -1
- package/dist/{chunk-NWP6IJYK.js → chunk-TANR67XF.js} +2 -2
- package/dist/{chunk-4F3IKYUO.js → chunk-TOVHLONK.js} +6 -6
- package/dist/{chunk-JOIWDQRJ.js → chunk-TRD22FC7.js} +6 -6
- package/dist/{chunk-YGZMD6TZ.js → chunk-TTY62G5D.js} +16 -16
- package/dist/{chunk-YCQVEJOT.js → chunk-TW6WYYBC.js} +2 -2
- package/dist/{chunk-B55IXYDR.js → chunk-TZHWF3P5.js} +2 -2
- package/dist/{chunk-IAQC775L.js → chunk-UZ3CZQA4.js} +1 -1
- package/dist/{chunk-V4KQUOUP.js → chunk-WKRFD4E4.js} +8 -8
- package/dist/{chunk-PDXD6DT7.js → chunk-WME5DFB6.js} +1 -1
- package/dist/{chunk-OSA24YH6.js → chunk-WSPO4N72.js} +14 -14
- package/dist/{chunk-3C67XRVJ.js → chunk-XB2YPUKR.js} +8 -8
- package/dist/{chunk-VB7Z3HXO.js → chunk-XDDTFV32.js} +1 -1
- package/dist/{chunk-UQBPKZUR.js → chunk-XZL3HCWH.js} +1 -1
- package/dist/{chunk-CRYEG7OT.js → chunk-YBB56N6X.js} +1 -1
- package/dist/{chunk-FRPNTDP4.js → chunk-ZNCU3UIW.js} +4 -4
- package/dist/{chunk-ZOSIPTXM.js → chunk-ZNXBKFV7.js} +5 -5
- package/dist/{chunk-RCMP37VO.js → chunk-ZRHQGFO5.js} +3 -3
- package/dist/{chunk-MEFXMUWI.js → chunk-ZXSMSVLU.js} +3 -3
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.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/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +139 -139
- package/dist/map/index.js +6 -6
- 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/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.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/EmptyState.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.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/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/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-4JDJKSA7.js +0 -29
- package/dist/PdfViewer-67VBUIRD.js +0 -1
- package/dist/Sidebar-YB4OVUG5.js +0 -43
- package/dist/chunk-3JJFBUK6.js +0 -3
- package/dist/chunk-57SJKYA4.js +0 -29
- package/dist/chunk-AS4CTEZD.js +0 -8
- package/dist/chunk-HSOREHQB.js +0 -1
- package/dist/chunk-JJXFPGX4.js +0 -6
- package/dist/chunk-LYYR5DSP.js +0 -14
- package/dist/chunk-RERNKFEW.js +0 -19
- package/dist/chunk-W7S56JZ7.js +0 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FormLayoutPage as default}from"../chunk-
|
|
2
|
+
export{FormLayoutPage as default}from"../chunk-EM6BEHAD.js";import"../chunk-VU6VPKM3.js";import"../chunk-NI5FXWK5.js";import"../chunk-2PWZNFFP.js";import"../chunk-EO5RLFRX.js";import"../chunk-XZL3HCWH.js";import"../chunk-MVQBVPWP.js";import"../chunk-L65BESIE.js";import"../chunk-CGZBDI6C.js";import"../chunk-7PCI6AUU.js";import"../chunk-GX2GSDJP.js";import"../chunk-PF3ANJFI.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-4IU5BSVE.js";import"../chunk-K7U4RWXJ.js";import"../chunk-2SHYR3RA.js";import"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-22S6LG6D.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-KJRYEKQP.js";export{EmailTemplate}from"../chunk-GIM2422N.js";export{ErrorBoundary}from"../chunk-BSNWVZHW.js";export{ErrorPage}from"../chunk-IHQX4GYD.js";export{FormLayoutPage}from"../chunk-4C4SQ4YW.js";export{GalleryTemplate}from"../chunk-TW7TA2AB.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-ZT5Y5JZB.js";export{ChatTemplate}from"../chunk-LCM5U6BY.js";export{CheckoutTemplate}from"../chunk-T5SEGUCJ.js";export{DashboardTemplate}from"../chunk-B2XDNBR3.js";export{DataTablePage}from"../chunk-MEFXMUWI.js";export{TopNav}from"../chunk-4AAGZQX7.js";export{Stepper}from"../chunk-GI7FOLDX.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-SXSMIMFY.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-CZ25A5RS.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-KKSW5IZ7.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-PNQ4EYYM.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-4F3IKYUO.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-D2AUUIKG.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-Y2D2YMFY.js";export{ResizeHandle}from"../chunk-KZHPX4FM.js";export{SettingReset}from"../chunk-PDXD6DT7.js";export{SettingRow}from"../chunk-BUGAWNOC.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-LEC4SZIV.js";export{MetricBar}from"../chunk-BI6ZLD4X.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-RYBJ6MMM.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-BOBUSE33.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-DZNG34DC.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-ERMZ75FO.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-K7KQDPLW.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-WQNIXV4T.js";export{IconRail,IconRailButton}from"../chunk-UVUBZL7K.js";import"../chunk-FQEALPZJ.js";export{Divider}from"../chunk-DFOFEBYX.js";export{EditableGrid}from"../chunk-2RBWQVDC.js";export{Avatar,AvatarGroup}from"../chunk-MMFJBWJC.js";export{BudgetBar,budgetState}from"../chunk-MEYYQC43.js";export{Card,StatCard}from"../chunk-VU6VPKM3.js";export{ContainerFillChart}from"../chunk-EZ3BQ6PK.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-QQCHLRKG.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-MXHEREC6.js";export{CountBadge}from"../chunk-MAOJENIB.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-IZCODCSC.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-5DFKPSJQ.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-USYNZGY4.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-YSFLXPUS.js";export{SplitButton_default as SplitButton}from"../chunk-3JJFBUK6.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{TagInput}from"../chunk-AS4CTEZD.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-JJXFPGX4.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-QDOTMA3W.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-2UXAI77F.js";export{PositionInput}from"../chunk-CRYEG7OT.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-VB7Z3HXO.js";export{Slider,SliderGroup}from"../chunk-PBMZJXSZ.js";export{LinkPicker,TextLinkField}from"../chunk-LYYR5DSP.js";export{SearchableSelect}from"../chunk-DGLCMYSQ.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary}from"../chunk-57SJKYA4.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-G433MKIN.js";import"../chunk-3PGK3VFS.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-KDZUWQEG.js";export{ImageLightbox,lightboxKind}from"../chunk-RGBX3EVC.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-YW2DH6YQ.js";export{Breadcrumbs}from"../chunk-WJ3XSJ6B.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-7CFH6Y4T.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-DFDDRKIJ.js";import"../chunk-5PY4H4ZJ.js";export{DropdownMenu}from"../chunk-W7S56JZ7.js";export{NativeSelect,Select_default as Select}from"../chunk-RERNKFEW.js";import"../chunk-EO5RLFRX.js";import"../chunk-UQBPKZUR.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-V4KQUOUP.js";export{MediaUsedInList}from"../chunk-EZGY6CFN.js";export{NumericKeypad}from"../chunk-SBHFEWR6.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ET32NQHX.js";export{FilePicker_default as FilePicker}from"../chunk-NWP6IJYK.js";export{FormErrorSummary}from"../chunk-4VLKDANH.js";export{IconPicker}from"../chunk-RUQEB2ZC.js";export{Input_default as Input}from"../chunk-GX2GSDJP.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-UB4BTRSB.js";export{CornersInput}from"../chunk-RCMP37VO.js";export{DatePicker_default as DatePicker}from"../chunk-3C67XRVJ.js";export{DateRangePicker,toISODate}from"../chunk-BZV4K6GR.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-OFHCDTJM.js";export{DisplayChips}from"../chunk-NFR4QZL2.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-7DKPJUGU.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-3J5QUHPO.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-FFJVCLGH.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-CPXHU3Y2.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-JOIWDQRJ.js";export{MediaUploadField}from"../chunk-JCMP5KMS.js";export{FormField}from"../chunk-MVQBVPWP.js";export{ImageFocusPoint}from"../chunk-GATKJSGL.js";export{mediaFileName}from"../chunk-DTSCO7VM.js";export{TransferProgress}from"../chunk-S7VSXUKS.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-YDYDR72S.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-N6DTTOB6.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-3V5Z2BJY.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-2NMT3Y5H.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-D7FT2PXG.js";export{ListFooter}from"../chunk-Q3OCGLW7.js";export{ListLoadError}from"../chunk-H3BC4KDE.js";export{Pagination}from"../chunk-M5P6A7KS.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-FRPNTDP4.js";export{StatTile}from"../chunk-Y5T257HX.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-JPP7UWQA.js";export{TreemapChart}from"../chunk-6NMDKOQA.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-Z2YGQBLZ.js";export{HistogramChart}from"../chunk-BIYL7CEI.js";export{Meter}from"../chunk-E5ALJIXV.js";export{PieChart}from"../chunk-NID6MGGC.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-DITCVBR7.js";export{RadialBarChart}from"../chunk-4CFOKYVR.js";export{RangeChart}from"../chunk-ZOSIPTXM.js";export{RankedBars}from"../chunk-WYN5KVU4.js";export{SankeyChart}from"../chunk-CRLSG5AY.js";export{ChordChart}from"../chunk-DODH46ZQ.js";import"../chunk-CDRXZBVR.js";export{FunnelChart}from"../chunk-X6PPP6NX.js";export{HeatmapChart}from"../chunk-3WC6ITJ3.js";export{StepChain,StepChainItem}from"../chunk-SAKHGHF5.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-37JDUDCO.js";export{Textarea_default as Textarea}from"../chunk-7PCI6AUU.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-AX7KPMDV.js";export{Banner}from"../chunk-WTY3SXO7.js";import"../chunk-B55IXYDR.js";export{IconButton_default as IconButton}from"../chunk-4CANQ3B3.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-PF3ANJFI.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-TFMC2WAS.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-OSA24YH6.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-BRHIRE4D.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-W5M6P4DZ.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-Y4MI6NRI.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-HVX37PKU.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-ZN3O2KJ7.js";export{Dialog}from"../chunk-YCQVEJOT.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4NXMMWL6.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-XWLWG4HS.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-D323R2FT.js";export{VERSION}from"../chunk-HSOREHQB.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-PJCVNFWM.js";import"../chunk-QR4RM7PO.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-4IU5BSVE.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";import"../chunk-VH6GB73Q.js";export{Icon}from"../chunk-KIBL6M3T.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";export{Tooltip}from"../chunk-22S6LG6D.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{BoxPlotChart}from"../chunk-EYX6KLCZ.js";export{CandlestickChart}from"../chunk-LBLV64XG.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-RSO67DWS.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{ChartBrush}from"../chunk-EYKUKN32.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-KJRYEKQP.js";export{EmailTemplate}from"../chunk-4HCRZHIX.js";export{ErrorBoundary}from"../chunk-BSNWVZHW.js";export{ErrorPage}from"../chunk-IHQX4GYD.js";export{FormLayoutPage}from"../chunk-EM6BEHAD.js";export{GalleryTemplate}from"../chunk-TW7TA2AB.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-P42YNSKI.js";export{ChatTemplate}from"../chunk-CCPNMYCK.js";export{CheckoutTemplate}from"../chunk-7ACSSYEZ.js";export{DashboardTemplate}from"../chunk-L3G3YHVN.js";export{DataTablePage}from"../chunk-ZXSMSVLU.js";export{TopNav}from"../chunk-IHEEJO5S.js";export{Stepper}from"../chunk-ACW3J77L.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-SXSMIMFY.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-CZ25A5RS.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-PCKYNZ5Y.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-5YELPBUT.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-TOVHLONK.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-D2AUUIKG.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-6ANFVX4M.js";export{ResizeHandle}from"../chunk-KZHPX4FM.js";export{SettingReset}from"../chunk-WME5DFB6.js";export{SettingRow}from"../chunk-JVIOAZHW.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-EVB35JP5.js";export{MetricBar}from"../chunk-BI6ZLD4X.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-RYBJ6MMM.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-BOBUSE33.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-DZNG34DC.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-AF7R2MV4.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-K7KQDPLW.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-IUCIYWTT.js";export{IconRail,IconRailButton}from"../chunk-UVUBZL7K.js";import"../chunk-FQEALPZJ.js";export{Divider}from"../chunk-DFOFEBYX.js";export{EditableGrid}from"../chunk-2RBWQVDC.js";export{Avatar,AvatarGroup}from"../chunk-MMFJBWJC.js";export{BudgetBar,budgetState}from"../chunk-MEYYQC43.js";export{Card,StatCard}from"../chunk-VU6VPKM3.js";export{ContainerFillChart}from"../chunk-EZ3BQ6PK.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-QQCHLRKG.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-4MO375G3.js";export{CountBadge}from"../chunk-MAOJENIB.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-FTKKGGOQ.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-5DFKPSJQ.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TagInput}from"../chunk-JBQWR4SX.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-HMHL27AU.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-64ZHCEZN.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-2UXAI77F.js";export{WidthsBar}from"../chunk-MICWRC72.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-XDDTFV32.js";export{Slider,SliderGroup}from"../chunk-S4J4B7LY.js";export{Snippet}from"../chunk-NUSSZJF2.js";export{SplitButton_default as SplitButton}from"../chunk-NKZNPYDB.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{NumericKeypad}from"../chunk-SBHFEWR6.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ET32NQHX.js";export{PositionInput}from"../chunk-YBB56N6X.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-R4C3GGCS.js";export{LinkPicker,TextLinkField}from"../chunk-DIN3EFOM.js";export{SearchableSelect}from"../chunk-5N5DBTTF.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary}from"../chunk-CAMLFCGY.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-2U2GJCSP.js";import"../chunk-3PGK3VFS.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-M2KV4WKR.js";export{ImageLightbox,lightboxKind}from"../chunk-O2YAB6WK.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-QPWD5CCS.js";export{Breadcrumbs}from"../chunk-EBC4XFL2.js";export{mediaLibraryMenu}from"../chunk-2F7ZOMKK.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-DFDDRKIJ.js";import"../chunk-5PY4H4ZJ.js";export{DropdownMenu}from"../chunk-5FCEBKT2.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-WKRFD4E4.js";export{MediaUsedInList}from"../chunk-GK3QH63P.js";export{NativeSelect,Select_default as Select}from"../chunk-2PWZNFFP.js";import"../chunk-EO5RLFRX.js";import"../chunk-XZL3HCWH.js";export{CornersInput}from"../chunk-ZRHQGFO5.js";export{DatePicker_default as DatePicker}from"../chunk-XB2YPUKR.js";export{DateRangePicker,toISODate}from"../chunk-RPJ2GC3K.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-OFHCDTJM.js";export{DisplayChips}from"../chunk-BHMUOWAE.js";export{FilePicker_default as FilePicker}from"../chunk-TANR67XF.js";export{FormErrorSummary}from"../chunk-4VLKDANH.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-OFKWTOXK.js";export{BrandAssetEditor}from"../chunk-TRD22FC7.js";export{MediaUploadField}from"../chunk-EZY4CO4A.js";export{ImageFocusPoint}from"../chunk-GATKJSGL.js";export{FormField}from"../chunk-MVQBVPWP.js";export{Segmented}from"../chunk-N6DTTOB6.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-RB2F65YJ.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-G2MJTE6X.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-HAIMJAI4.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-BYCOB6WT.js";export{mediaFileName}from"../chunk-FMKTVZAO.js";export{TransferProgress}from"../chunk-S7VSXUKS.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-YDYDR72S.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{AlignmentGrid}from"../chunk-7DKPJUGU.js";export{DataTable}from"../chunk-2NMT3Y5H.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-D7FT2PXG.js";export{ListFooter}from"../chunk-Q3OCGLW7.js";export{ListLoadError}from"../chunk-M2LLVSBR.js";export{Pagination}from"../chunk-M5P6A7KS.js";export{WaterfallChart}from"../chunk-2C6IG7LG.js";export{SankeyChart}from"../chunk-CRLSG5AY.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-ZNCU3UIW.js";export{StatTile}from"../chunk-Y5T257HX.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-JPP7UWQA.js";export{TreemapChart}from"../chunk-6NMDKOQA.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-H33Z4ZIY.js";export{HistogramChart}from"../chunk-IFDW5QW6.js";export{Meter}from"../chunk-E5ALJIXV.js";export{PieChart}from"../chunk-NID6MGGC.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-DITCVBR7.js";export{RadialBarChart}from"../chunk-4CFOKYVR.js";export{RangeChart}from"../chunk-ZNXBKFV7.js";export{RankedBars}from"../chunk-WYN5KVU4.js";export{ChordChart}from"../chunk-DODH46ZQ.js";import"../chunk-CDRXZBVR.js";export{FunnelChart}from"../chunk-X6PPP6NX.js";export{StepChain,StepChainItem}from"../chunk-MC43PRTL.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-ECCUEG3J.js";export{Textarea_default as Textarea}from"../chunk-7PCI6AUU.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-JDKRQG7X.js";export{Banner}from"../chunk-MY755PTJ.js";import"../chunk-TZHWF3P5.js";export{Input_default as Input}from"../chunk-GX2GSDJP.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-PF3ANJFI.js";export{IconButton_default as IconButton}from"../chunk-4CANQ3B3.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-BKZGI76S.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-WSPO4N72.js";export{ChartBrush}from"../chunk-EYKUKN32.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-BRHIRE4D.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-ETF7LAYZ.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-Y4MI6NRI.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-SEXLHFMR.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-2WL3Q7VW.js";export{Dialog}from"../chunk-TW6WYYBC.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4NXMMWL6.js";export{ColoredBadge}from"../chunk-4GVH4ZUH.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-D323R2FT.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-BZMZTPS6.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-FKZEGBLK.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";import"../chunk-QR4RM7PO.js";export{Button_default as Button}from"../chunk-4IU5BSVE.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";export{Icon}from"../chunk-2SHYR3RA.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";import"../chunk-VH6GB73Q.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-6KO5VTL7.js";export{Tooltip}from"../chunk-22S6LG6D.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-37CCKGHU.js";export{CandlestickChart}from"../chunk-JUGPTBMS.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-I4VD5D43.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-E6UCGCOC.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-BZMZTPS6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.35.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-KNVE7CMS.js";import{useWidgetSettings as n}from"./chunk-L3NYH4QV.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-HVX37PKU.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-FL2PUQX7.js";import"./chunk-ZN3O2KJ7.js";import"./chunk-YCQVEJOT.js";import"./chunk-KC3EX26K.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-UGTRSRIW.js";import"./chunk-XWLWG4HS.js";import"./chunk-CDAJKLGL.js";import"./chunk-D323R2FT.js";import"./chunk-PJCVNFWM.js";import"./chunk-QR4RM7PO.js";import"./chunk-5QFPTDQF.js";import"./chunk-4IU5BSVE.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VH6GB73Q.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-6KO5VTL7.js";import"./chunk-22S6LG6D.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[N,j]=c(!1),[y,C]=c(""),[x,f]=c([]),[v,$]=c(!1),[W,T]=c(()=>e(h)),[E,w]=c(!1),[J,K]=c(W),L=i(null);n(l(()=>{K({...W}),w(!0)},[W]));const S=l(e=>{C(""),k(t=>N||"0"===t?(j(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[N]),Q=l(()=>{k("0"),d(null),g(null),j(!1)},[]),R=l((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),U=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!N){const e=R(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),j(!0)},[m,p,b,N,R]),V=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=R(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),C(n),k(String(t)),d(null),g(null),j(!0)},[m,p,b,R]),D=l(()=>{k(e=>String(parseFloat(e)/100))},[]),F=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?S(e.key):"."===e.key?S("."):"+"===e.key?U("+"):"-"===e.key?U("-"):"*"===e.key?U("×"):"/"===e.key?(e.preventDefault(),U("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&L.current?.contains(e.target)&&e.preventDefault(),V()):"Escape"===e.key?Q():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&D())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[S,U,V,Q,D]);const G="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",M=`${G} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,O=`${G} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,A=`${G} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,B=`${G} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return s(a,{children:[
|
|
3
|
-
/* @__PURE__ */s("div",{ref:L,className:"flex flex-col h-full",style:{opacity:W.activeOpacity/100,backdropFilter:W.activeBlur>0?`blur(${W.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */s("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${N?"":m}`}),
|
|
6
|
-
/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
|
|
9
|
-
/* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:Q,className:A,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:F,className:A,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:D,className:A,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>U("÷"),className:`${O} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>S("7"),className:M,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>S("8"),className:M,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>S("9"),className:M,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>U("×"),className:`${O} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>S("4"),className:M,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>S("5"),className:M,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>S("6"),className:M,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>U("-"),className:`${O} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>S("1"),className:M,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>S("2"),className:M,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>S("3"),className:M,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>U("+"),className:`${O} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>S("0"),className:`${M} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>S("."),className:M,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:V,className:B,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:E,onClose:()=>w(!1),title:"Calculator Settings",appearance:J,onAppearanceChange:K,onSave:()=>{T(J),localStorage.setItem(h,JSON.stringify(J)),w(!1)}})]})}export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-QQK3XS6H.js";import"./chunk-4NXMMWL6.js";import"./chunk-K7U4RWXJ.js";import"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";
|
package/dist/Sidebar-YB4OVUG5.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-Y65MPP3M.js";import{ResizeHandle as o}from"./chunk-KZHPX4FM.js";import{openGlobalSearch as s}from"./chunk-K7KQDPLW.js";import{partitionNav as c,flyoutGroups as d,visibleSectionItems as m,rowsContainRoute as h,visibleNavChildren as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-4CANQ3B3.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as y,TAB_STRIP_H as x,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as C,navIcons as j,sectionIcons as w}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-PJCVNFWM.js";import"./chunk-QR4RM7PO.js";import"./chunk-5QFPTDQF.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VH6GB73Q.js";import{Icon as M}from"./chunk-KIBL6M3T.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-22S6LG6D.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-E6UCGCOC.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as R,useRef as I,useEffect as K,isValidElement as T,cloneElement as H}from"react";import{jsx as P,jsxs as Q,Fragment as D}from"react/jsx-runtime";var B="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function J(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var O=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),U="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e}){/* @__PURE__ */
|
|
2
|
-
return P(M,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function _({dir:e}){/* @__PURE__ */
|
|
3
|
-
return P(M,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function F({className:e}){/* @__PURE__ */
|
|
4
|
-
return P(M,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var V=e=>.75+1.75*e+"rem";function X({width:X,collapsed:Y,onToggleCollapsed:Z,onResize:E,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=j,sectionIcons:de=w,categories:me=y,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const ye=$().layout,{hasAnyPerm:xe}=e(),ke=A(()=>c(se,me,xe),[se,me,xe]),[ve,Ne]=R(()=>t(a(r))),Ce=e=>Ne(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[je,we]=R(null),[Se,Le]=R(!1),We=I(null);K(()=>{Y||we(null)},[Y]);const ze=(e,t)=>{we(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Me=(e,t)=>{const a=t[e];/* @__PURE__ */
|
|
5
|
-
return P("span",{className:U,"aria-hidden":"true",children:a&&T(a)?H(a,{className:"size-[18px]"}):a})},$e=(e,t)=>{const a=u(e,xe),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=ve.has(n),l=!i&&h(a,te,xe);/* @__PURE__ */
|
|
6
|
-
return Q("div",{children:[
|
|
7
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(n),"aria-expanded":i,className:O(l,!1),style:t>0?{paddingLeft:V(t)}:void 0,children:[0===t&&Me(e.to,ce),
|
|
8
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */P(G,{open:i})]}),i&&/* @__PURE__ */P("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>$e(e,t+1))}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:V(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
|
|
10
|
-
return Q("div",{children:[
|
|
11
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:t=>ze(e,t),onAuxClick:t=>{1===t.button&&ze(e,t)},"aria-current":n?"page":void 0,className:O(n,!1),style:t>0?{paddingLeft:V(t)}:void 0,children:[0===t&&Me(e.to,ce),
|
|
12
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:V(t)},"aria-hidden":"true"})]},e.to)},Ae=(e,t)=>{const a=t?e.items:m(e,xe);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */P("span",{className:U,"aria-hidden":"true",children:e.icon}):Me(e.label,de),n=e.menuLabel??e.label,i=h(a,te,xe),l="dividerAfter"in e&&e.dividerAfter;if(Y)/* @__PURE__ */
|
|
13
|
-
return Q("div",{children:[
|
|
14
|
-
/* @__PURE__ */P("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":je?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();we(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:O(i||je?.label===e.label,!0),children:r}),l&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label);const o=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
15
|
-
return Q("div",{children:[
|
|
16
|
-
/* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:O(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */P(G,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */P("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>$e(e,1))}),l&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label)},Re=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Ie=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Ke=ae?.avatar_url?/* @__PURE__ */P("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */P("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),Te=Se?We.current?.getBoundingClientRect():void 0,He=Y?"":"px-3",Pe=Y?{paddingInline:k}:void 0,Qe=`${Y?ye.expandSidebar:ye.collapseSidebar} (${B?"⌘":"Ctrl"} .)`,De=q?{run:q,label:ye.goHome,title:ye.goHome}:oe?null:{run:Z,label:Y?ye.expandSidebar:ye.collapseSidebar,title:Qe},Be=/* @__PURE__ */Q(D,{children:[ue&&/* @__PURE__ */P(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!Y&&/* @__PURE__ */Q("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */P("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */P("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Je=ke.erpSections.length>0||ke.systemSections.length>0||ke.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return Q("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-gray-200 bg-white text-gray-800",style:{width:X},children:[
|
|
22
|
-
/* @__PURE__ */Q("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Y?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:x},children:[De?/* @__PURE__ */P("button",{type:"button",onClick:De.run,"aria-label":De.label,title:De.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Y?"justify-center p-0.5":"-ml-1 p-1"),children:Be}):/* @__PURE__ */P("span",{className:"flex min-w-0 items-center gap-2",children:Be}),oe?/* @__PURE__ */P(b,{onClick:oe,"aria-label":ye.closeMenu,children:/* @__PURE__ */P(M,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */P("button",{type:"button",onClick:Z,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${B?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */P(_,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */P("div",{className:`shrink-0 pt-3 ${He}`,style:Pe,children:Y?/* @__PURE__ */P("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${B?"⌘K":"Ctrl K"})`,className:O(!1,!0),children:/* @__PURE__ */P(F,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */Q("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-gray-200 bg-white px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
24
|
-
/* @__PURE__ */P(F,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */P("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-500",children:ye.search}),
|
|
26
|
-
/* @__PURE__ */P("kbd",{className:"rounded border border-gray-200 bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-gray-500",children:B?"⌘K":"Ctrl K"})]})}),
|
|
27
|
-
/* @__PURE__ */Q("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${He} ${Y?"space-y-1":"space-y-0.5"}`,style:Pe,children:[Y&&/* @__PURE__ */P("button",{type:"button",onClick:Z,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${B?"⌘":"Ctrl"} .)`,className:`${O(!1,!0)} mb-3`,children:/* @__PURE__ */P(_,{dir:"right"})}),ke.topItems.map(e=>{if(!Y)return $e(e,0);const t=u(e,xe),a=e.to===te||h(t,te,xe),r=e.menuLabel??e.label;/* @__PURE__ */
|
|
28
|
-
return Q("div",{children:[
|
|
29
|
-
/* @__PURE__ */P("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void ze(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:O(a,!0),children:Me(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.to)}),ke.topItems.length>0&&Je&&!ke.topItems[ke.topItems.length-1].dividerAfter&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.erpSections.map(e=>Ae(e,!1)),ke.systemSections.map(e=>Ae(e,!1)),ke.virtualSections.map(e=>Ae(e,!0)),ke.footerSections.length>0&&/* @__PURE__ */P("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.footerSections.map(e=>Ae(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */P("div",{className:`shrink-0 border-t border-gray-200 py-2 ${He}`,style:Pe,children:/* @__PURE__ */Q("button",{ref:We,type:"button",onClick:()=>Le(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":Y?ye.accountMenu(Re):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Y?"justify-center py-2":"px-2 py-2"),children:[Ke,!Y&&/* @__PURE__ */Q("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */P("span",{className:"block truncate text-sm font-semibold text-gray-800",children:Re}),re?.email&&Re!==re.email&&/* @__PURE__ */P("span",{className:"block truncate text-2xs text-gray-500",children:re.email})]})]})}),E&&!Y&&!oe&&/* @__PURE__ */P(o,{side:"left",width:X,onResize:E,min:C,max:N,defaultWidth:v,storageKey:n,label:ye.resizeSidebar}),Se&&Te&&/* @__PURE__ */Q(S,{portal:!0,minWidth:224,onClose:()=>Le(!1),style:J(X,Te,window.innerHeight),children:[Y&&/* @__PURE__ */Q("div",{className:"border-b border-gray-200 px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */P("p",{className:"truncate text-sm font-semibold text-gray-800",children:Re}),re?.email&&/* @__PURE__ */P("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
|
|
33
|
-
/* @__PURE__ */Q(L,{onClick:()=>{Le(!1),ee("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */P(M,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ke.footerItems.map(e=>/* @__PURE__ */Q(L,{onClick:()=>{Le(!1),ze(e)},children:[
|
|
35
|
-
/* @__PURE__ */P("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */Q(L,{onClick:()=>{Le(!1),le()},children:[
|
|
36
|
-
/* @__PURE__ */P(M,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */P(W,{}),ie&&/* @__PURE__ */Q(D,{children:[
|
|
38
|
-
/* @__PURE__ */Q(L,{onClick:()=>{Le(!1),ie()},children:[
|
|
39
|
-
/* @__PURE__ */P(M,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */P(W,{})]}),
|
|
41
|
-
/* @__PURE__ */Q(L,{danger:!0,onClick:()=>{Le(!1),ne()},children:[
|
|
42
|
-
/* @__PURE__ */P(M,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),je&&Y&&/* @__PURE__ */P(S,{portal:!0,minWidth:220,onClose:()=>we(null),style:{left:X+g,top:Math.min(je.top,window.innerHeight-48*Math.min(je.items.length,10)-16)},children:d(je.items,xe).map((e,t)=>/* @__PURE__ */Q("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */P(W,{}),e.heading&&/* @__PURE__ */P(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */Q(L,{onClick:()=>ze(e),children:[Me(e.to,ce),
|
|
43
|
-
/* @__PURE__ */P("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{J as accountMenuPosition,X as default};
|
package/dist/chunk-3JJFBUK6.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{DropdownMenu as e}from"./chunk-W7S56JZ7.js";import{Button_default as i}from"./chunk-4IU5BSVE.js";import{iconButtonClasses as n}from"./chunk-K7U4RWXJ.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import{Tooltip as a}from"./chunk-22S6LG6D.js";import{forwardRef as l,useId as o}from"react";import{jsxs as s,jsx as t}from"react/jsx-runtime";var d="relative focus-visible:z-10",m={secondary:"border-l-0",primary:"border-l border-white/30",warning:"border-l border-white/30"},c=l(function({children:l,onClick:c,type:b="button",items:h,menuLabel:u,variant:f="primary",size:p="md",loading:v=!1,leftIcon:k,disabled:g=!1,disabledReason:N,tooltip:w,menuDisabled:x=!1,menuDisabledReason:j,onMenuOpenChange:y,menuFooter:W,menuFooterLabel:C,align:L="end",side:z="bottom",menuMinWidth:I,linkAs:R,block:B=!1,className:D=""},M){const S=g&&(null!=N&&""!==N&&!1!==N)&&!v,$=x&&null!=j&&""!==j&&!1!==j,A=o(),F=/* @__PURE__ */t(i,{ref:M,type:b,variant:f,size:p,loading:v,leftIcon:k,block:B,disabled:g&&!S,"aria-disabled":!!S||void 0,disabledReason:S?N:void 0,onClick:c,className:`rounded-r-none ${d}`,children:l}),J=B?"relative flex min-w-0 flex-1":"relative inline-flex",K=p.startsWith("touch")?"h-5 w-5":"h-4 w-4";/* @__PURE__ */
|
|
2
|
-
return s("div",{className:[B?"flex w-full":"inline-flex","items-stretch",D].filter(Boolean).join(" "),children:[null==w||""===w||S?F:/* @__PURE__ */t(a,{content:w,className:J,children:F}),
|
|
3
|
-
/* @__PURE__ */t(a,{content:$?j:u,describe:!1,className:"relative inline-flex shrink-0",children:/* @__PURE__ */t(e,{"aria-label":u,"aria-describedby":$?A:void 0,items:h,align:L,side:z,minWidth:I,linkAs:R,disabled:x&&!$,"aria-disabled":$,onOpenChange:y,footer:W,footerLabel:C,triggerClassName:n({variant:f,size:p,className:`rounded-l-none ${m[f]} ${d}`}),trigger:/* @__PURE__ */t(r,{name:"chevron-down",className:K,strokeWidth:2,"aria-hidden":"true"})})}),$&&/* @__PURE__ */t("span",{id:A,className:"sr-only",children:j})]})});export{c as SplitButton_default};
|
package/dist/chunk-57SJKYA4.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{Tree as e,TreeRow as l,TreeGroup as n}from"./chunk-G433MKIN.js";import{MarqueeBox as a}from"./chunk-IC72MGON.js";import{EmptyState as r}from"./chunk-KDZUWQEG.js";import{ImageLightbox as i}from"./chunk-RGBX3EVC.js";import{DescriptionList as t}from"./chunk-SACUSHVN.js";import{Drawer as o}from"./chunk-YW2DH6YQ.js";import{Breadcrumbs as d}from"./chunk-WJ3XSJ6B.js";import{useGridSelection as s}from"./chunk-VLKDWKVR.js";import{useMarquee as c}from"./chunk-OLFYNMTD.js";import{ROOT_KEY as m,mediaLibraryMenu as u}from"./chunk-7CFH6Y4T.js";import{useMediaMoveItems as h}from"./chunk-DFDDRKIJ.js";import{copyToClipboard as p}from"./chunk-5PY4H4ZJ.js";import{DropdownMenu as f}from"./chunk-W7S56JZ7.js";import{NativeSelect as g}from"./chunk-RERNKFEW.js";import{MediaUploadGrid as v}from"./chunk-V4KQUOUP.js";import{MediaUsedInList as y}from"./chunk-EZGY6CFN.js";import{Input_default as k}from"./chunk-GX2GSDJP.js";import{useFileIntake as b,FileIntakeAlert as w}from"./chunk-YDYDR72S.js";import{Segmented as x}from"./chunk-N6DTTOB6.js";import{Checkbox_default as C}from"./chunk-CGZBDI6C.js";import{useContextMenu as N,ContextMenu as I}from"./chunk-AX7KPMDV.js";import{Banner as D}from"./chunk-WTY3SXO7.js";import{IconButton_default as S}from"./chunk-4CANQ3B3.js";import{ColoredBadge as j}from"./chunk-XWLWG4HS.js";import{Button_default as z}from"./chunk-4IU5BSVE.js";import{buttonClasses as F}from"./chunk-K7U4RWXJ.js";import{Icon as T}from"./chunk-KIBL6M3T.js";import{Tooltip as O}from"./chunk-22S6LG6D.js";import{usePlotWidth as E}from"./chunk-MAFUXCPZ.js";import{useShellStrings as P}from"./chunk-E6UCGCOC.js";import{useRef as L,useMemo as M,useCallback as A,useState as K,useEffect as R}from"react";import{jsxs as U,Fragment as B,jsx as G}from"react/jsx-runtime";var W="application/x-efficient-media-files",J="application/x-efficient-media-folder",V={type:"all",use:"any",sort:"newest"},Y={lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-4 w-4"}),folder:/* @__PURE__ */G(T,{name:"folder","aria-hidden":"true",className:"h-4 w-4"}),folderOpen:/* @__PURE__ */G(T,{name:"folder-open","aria-hidden":"true",className:"h-4 w-4"}),folderPlus:/* @__PURE__ */G(T,{name:"folder-plus","aria-hidden":"true",className:"h-4 w-4"}),trash:/* @__PURE__ */G(T,{name:"trash","aria-hidden":"true",className:"h-4 w-4"}),upload:/* @__PURE__ */G(T,{name:"upload","aria-hidden":"true",className:"h-4 w-4"}),search:/* @__PURE__ */G(T,{name:"search","aria-hidden":"true",className:"h-4 w-4"}),grid:/* @__PURE__ */G(T,{name:"grid","aria-hidden":"true",className:"h-4 w-4"}),list:/* @__PURE__ */G(T,{name:"list","aria-hidden":"true",className:"h-4 w-4"}),more:/* @__PURE__ */G(T,{name:"more","aria-hidden":"true",className:"h-4 w-4"}),copy:/* @__PURE__ */G(T,{name:"copy","aria-hidden":"true",className:"h-4 w-4"}),edit:/* @__PURE__ */G(T,{name:"edit","aria-hidden":"true",className:"h-4 w-4"}),swap:/* @__PURE__ */G(T,{name:"swap","aria-hidden":"true",className:"h-4 w-4"}),crop:/* @__PURE__ */G(T,{name:"crop","aria-hidden":"true",className:"h-4 w-4"}),external:/* @__PURE__ */G(T,{name:"external","aria-hidden":"true",className:"h-4 w-4"}),undo:/* @__PURE__ */G(T,{name:"undo","aria-hidden":"true",className:"h-4 w-4"})},H={link:/* @__PURE__ */G(T,{name:"link","aria-hidden":"true",className:"h-3 w-3"}),email:/* @__PURE__ */G(T,{name:"email","aria-hidden":"true",className:"h-3 w-3"}),lock:/* @__PURE__ */G(T,{name:"lock","aria-hidden":"true",className:"h-3 w-3"}),clock:/* @__PURE__ */G(T,{name:"clock","aria-hidden":"true",className:"h-3 w-3"})};function X({value:e,label:l,onDone:n}){const[a,r]=K(e),i=L(!1),t=e=>{i.current||(i.current=!0,n(e))};/* @__PURE__ */
|
|
2
|
-
return G(k,{size:"sm",autoFocus:!0,"aria-label":l,value:a,onChange:e=>r(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:l=>{l.stopPropagation(),"Enter"===l.key?(l.preventDefault(),t(a.trim()||e)):"Escape"===l.key&&(l.preventDefault(),t(null))},onBlur:()=>t(a.trim()||e),onClick:e=>e.stopPropagation()})}function $(T){const{mode:$="manage",layout:Z="auto",location:Q,onLocationChange:q,folders:_,products:ee,allFilesCount:le,trashCount:ne,files:ae,query:re,onQueryChange:ie,filters:te=V,onFiltersChange:oe,extraFilters:de,view:se="grid",onViewChange:ce,selectedIds:me,onSelectionChange:ue,usedIn:he,denied:pe={},accept:fe="image/*,video/*",maxSizeBytes:ge,busy:ve,progress:ye,onUpload:ke,onNewFolder:be,onRename:we,onMove:xe,onTrash:Ce,onDeleteFolder:Ne,onRestore:Ie,onDeleteForever:De,onEmptyTrash:Se,onReplace:je,onCropEdit:ze,onOpenInDesign:Fe,onChoose:Te,onCancel:Oe,pickNote:Ee,className:Pe=""}=T,Le=P().mediaLibrary,Me=P().media,Ae="pick"===$,Ke=!Ae,Re=L(null),Ue=E(Re,"phone"===Z?343:1200),Be="phone"===Z||"auto"===Z&&Ue<640,Ge=M(()=>function(e=[]){const l=/* @__PURE__ */new Map,n=(e,a)=>{for(const r of e){const e=[...a,r];l.set(r.id,{node:r,path:e}),r.children&&n(r.children,e)}};return n(e,[]),l}(ee),[ee]),We=M(()=>new Map(_.map(e=>[e.id,e])),[_]),Je=M(()=>{const e=/* @__PURE__ */new Map;for(const l of _){const n=l.parentId&&We.has(l.parentId)?l.parentId:null;e.set(n,[...e.get(n)??[],l])}return e},[_,We]),Ve=A(e=>{const l=[];for(let n=e?We.get(e):void 0;n&&(l.unshift(n),!(l.length>_.length));n=n.parentId?We.get(n.parentId):void 0);return l},[We,_.length]),Ye=A((e,l)=>Ve(e).some(e=>e.id===l),[Ve]),[He,Xe]=K(()=>/* @__PURE__ */new Set(["@files"])),$e=e=>Xe(l=>{const n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n}),Ze=A(e=>{Xe(l=>e.every(e=>l.has(e))?l:/* @__PURE__ */new Set([...l,...e]))},[]),Qe="files"===(qe=Q).place?`files:${qe.folderId??""}`:"products"===qe.place?`products:${qe.nodeId??""}`:"trash";var qe;R(()=>{if("files"===Q.place)Ze(["@files",...Ve(Q.folderId).slice(0,-1).map(e=>e.id)]);else if("products"===Q.place){const e=Q.nodeId?Ge.get(Q.nodeId)?.path??[]:[];Ze(["@products",...e.slice(0,-1).map(e=>`p:${e.id}`)])}},[Qe]);const _e="products"===Q.place,el="trash"===Q.place,ll="files"===Q.place,nl=ll?Q.folderId:null,al=_e&&Q.nodeId?Ge.get(Q.nodeId)?.path[0]:void 0,rl=e=>e?.sharedFrom?`${Le.readOnly} ${Le.editedAtHq(e.sharedFrom)}`:Le.readOnly,il=M(()=>ae.map(e=>e.id),[ae]),tl=M(()=>new Map(ae.map(e=>[e.id,e])),[ae]),ol=s(il),dl=M(()=>il.filter(e=>ol.selected.has(e)),[il,ol.selected]),sl=1===dl.length?tl.get(dl[0]):void 0,cl=L(!0);R(()=>{cl.current?cl.current=!1:ol.clear()},[Qe]);const ml=me?.join("\0");R(()=>{me&&ol.setSelection(me)},[ml]);const ul=L(ml??""),hl=dl.join("\0");R(()=>{ul.current!==hl&&(ul.current=hl,ue?.(dl))},[hl]);const pl=(e,l={})=>{Ae?ol.select(e):ol.select(e,{ctrl:!(!l.ctrlKey&&!l.metaKey),shift:!!l.shiftKey})},[fl,gl]=K(null),vl=e=>{const l=fl;if(gl(null),!l||null==e)return;e!==("folder"===l.kind?We.get(l.id)?.name:tl.get(l.id)?.name)&&we?.(l,e)},yl=async e=>{if(!be)return;const l=await be(e);Ze(["@files",...e?[e]:[]]),"string"==typeof l&&gl({kind:"folder",id:l})},kl=A(e=>{const l=[],n=l=>{if("files"===e.kind)return l===nl&&ll?Le.alreadyHere:void 0;const n=We.get(e.id);return l===e.id||l&&Ye(l,e.id)?Le.notIntoItself:(n?.parentId??null)===l?Le.folderAlreadyHere:void 0};l.push({key:m,label:Le.allFiles,disabledReason:n(null)});const a=(e,r)=>{for(const i of Je.get(e)??[])l.push({key:i.id,label:i.name,depth:r,disabledReason:n(i.id)}),a(i.id,r+1)};return a(null,1),l},[Je,We,ll,Ye,nl,Le]),bl=A(e=>{const l=new Set(e.map(e=>tl.get(e)?.kind??"image"));return 1===l.size?[...l][0]:"file"},[tl]),[wl,xl]=K(null),Cl={words:Le,media:Me,denied:pe,moveTargets:kl,kindOf:bl,urlOf:e=>tl.get(e)?.url,newSubfolder:be&&Ke?e=>{yl(e)}:void 0,rename:we&&Ke?e=>{"file"!==e.kind||ol.isSelected(e.id)||ol.select(e.id),gl(e)}:void 0,move:xe&&Ke?xe:void 0,trash:Ce&&Ke?Ce:void 0,deleteFolder:Ne&&Ke?Ne:void 0,folderNotEmpty:e=>!!We.get(e)?.notEmpty,replace:je&&Ke?je:void 0,copyUrl:e=>{const l=tl.get(e)?.url;l&&p(Le.urlLabel,l)},openInDesign:Fe,restore:Ie,deleteForever:De},Nl=e=>u(e,Cl),Il=N(),Dl=(e,l)=>{Ae||(ol.isSelected(e)||ol.select(e),Il.open(l,(e=>{const l=ol.isSelected(e)?dl:[e];return _e?{kind:"render",id:e}:el?{kind:"trashed",ids:l}:{kind:"files",ids:l}})(e)))},[Sl,jl]=K(null),[zl,Fl]=K(null),[Tl,Ol]=K(null);R(()=>{if(!zl&&!Sl)return;const e=()=>{Fl(null),jl(null)};return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[zl,Sl]);const El=(e,l)=>Array.from(e.dataTransfer?.types??[]).includes(l),Pl=(e,l)=>!(!xe||pe.move||Ae)&&(!!El(e,W)||!(!El(e,J)||!Tl)&&(l!==Tl&&!(l&&Ye(l,Tl)))),Ll=(e,l)=>({onDragEnter:n=>{Pl(n,l)&&(n.preventDefault(),jl(e))},onDragOver:n=>{Pl(n,l)&&(n.preventDefault(),n.dataTransfer.dropEffect="move",Sl!==e&&jl(e))},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||jl(l=>l===e?null:l)},onDrop:e=>{if(Pl(e,l))if(e.preventDefault(),jl(null),El(e,W)){let n;try{n=JSON.parse(e.dataTransfer.getData(W))}catch{n=null}Array.isArray(n)&&n.length&&xe({kind:"files",ids:n.map(String)},l)}else Tl&&(xe({kind:"folder",id:Tl},l),Ol(null))}}),Ml=e=>{const l=e=>El(e,W)||El(e,J)||El(e,"Files");return{onDragEnter:n=>{l(n)&&Fl(e)},onDragOver:n=>{l(n)&&zl!==e&&Fl(e)},onDragLeave:l=>{const n=l.relatedTarget;n&&l.currentTarget.contains(n)||Fl(l=>l===e?null:l)}}},Al=(e,l,n)=>/* @__PURE__ */G(O,{side:"right",content:zl===e?Le.noDropProducts:rl(n),open:zl===e||!zl&&void 0,children:/* @__PURE__ */G("span",{children:l})}),Kl=e=>({onContextMenu:l=>{Il.open(l,e)}}),Rl=(e,a,r)=>e.map(e=>{const i=`p:${e.id}`,t=r??e,o=He.has(i),d=e.children?.length?e.children:null;/* @__PURE__ */
|
|
3
|
-
return U("div",{role:"none",className:"contents",children:[
|
|
4
|
-
/* @__PURE__ */G(l,{label:Al(i,e.name,t),level:a,icon:d&&o?Y.folderOpen:Y.folder,badge:null!=e.count?e.count:void 0,selected:_e&&Q.nodeId===e.id,expanded:d?o:void 0,onToggle:d?()=>$e(i):void 0,onSelect:()=>q({place:"products",nodeId:e.id}),rowProps:{"data-media-row":i,...Ml(i),...Ke?Kl({kind:"product-node",id:e.id}):{}}}),d&&o&&/* @__PURE__ */G(n,{children:Rl(d,a+1,t)})]},e.id)}),Ul=(e,a)=>(Je.get(e)??[]).map(e=>{const r=Je.get(e.id),i=He.has(e.id),t="folder"===fl?.kind&&fl.id===e.id,o=Nl({kind:"folder",id:e.id});/* @__PURE__ */
|
|
5
|
-
return U("div",{role:"none",className:"contents",children:[
|
|
6
|
-
/* @__PURE__ */G(l,{label:e.name,level:a,icon:r&&i?Y.folderOpen:Y.folder,badge:null!=e.count?e.count:void 0,selected:t||ll&&Q.folderId===e.id,expanded:r?i:void 0,onToggle:r?()=>$e(e.id):void 0,onSelect:()=>q({place:"files",folderId:e.id}),drop:Sl===e.id?"into":void 0,dragging:Tl===e.id,draggable:Ke&&!!xe&&!pe.move,rename:t?/* @__PURE__ */G(X,{value:e.name,label:Le.folderName,onDone:vl}):void 0,actions:Ke&&o.length?/* @__PURE__ */G(f,{align:"end","aria-label":Le.folderActions,trigger:Y.more,items:o}):void 0,rowProps:{"data-media-row":e.id,...Ll(e.id,e.id),...Ke?Kl({kind:"folder",id:e.id}):{},...Ke&&xe&&!pe.move?{draggable:!0,onDragStart:l=>{l.dataTransfer.effectAllowed="move",l.dataTransfer.setData(J,e.id),Ol(e.id)},onDragEnd:()=>{Ol(null),jl(null)}}:{}}}),r&&i&&/* @__PURE__ */G(n,{children:Ul(e.id,a+1)})]},e.id)}),Bl=He.has("@files"),Gl=He.has("@products"),Wl=/* @__PURE__ */U(e,{"aria-label":Le.folders,children:[ee&&/* @__PURE__ */U(B,{children:[
|
|
7
|
-
/* @__PURE__ */G(l,{label:Al("@products",Le.products),level:1,icon:Y.lock,badge:{label:Le.readOnlyBadge,tone:"neutral"},expanded:ee.length?Gl:void 0,onToggle:()=>$e("@products"),selected:_e&&null==Q.nodeId,onSelect:()=>q({place:"products",nodeId:null}),rowProps:{"data-media-row":"@products",...Ml("@products")}}),Gl&&ee.length>0&&/* @__PURE__ */G(n,{children:Rl(ee,2)})]}),
|
|
8
|
-
/* @__PURE__ */G(l,{label:Le.allFiles,level:1,icon:Bl?Y.folderOpen:Y.folder,badge:null!=le?le:void 0,expanded:Je.get(null)?.length?Bl:void 0,onToggle:()=>$e("@files"),selected:ll&&null==Q.folderId,onSelect:()=>q({place:"files",folderId:null}),drop:"@files"===Sl?"into":void 0,rowProps:{"data-media-row":"@files",...Ll("@files",null)}}),Bl&&(Je.get(null)?.length??0)>0&&/* @__PURE__ */G(n,{children:Ul(null,2)}),Ke&&/* @__PURE__ */G(l,{label:Le.trash,level:1,icon:Y.trash,badge:null!=ne?ne:void 0,selected:el,onSelect:()=>q({place:"trash"}),rowProps:{"data-media-row":"@trash"}})]}),Jl=(()=>{if(el)return[{label:Le.trash}];if(_e){const e=Q.nodeId?Ge.get(Q.nodeId)?.path??[]:[];return[{label:Le.products,onClick:e.length?()=>q({place:"products",nodeId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"products",nodeId:l.id}):void 0}))]}const e=Ve(nl);return[{label:Le.allFiles,onClick:e.length?()=>q({place:"files",folderId:null}):void 0},...e.map((l,n)=>({label:l.name,onClick:n<e.length-1?()=>q({place:"files",folderId:l.id}):void 0}))]})(),Vl=_e?Le.readOnly:pe.upload,Yl=!!ke&&!el&&!Vl,Hl=b({accept:fe,maxSizeBytes:ge,multiple:!0,disabled:!Yl,onAccept:e=>ke?.(e,nl)}),Xl=_e?Le.noProductFolder:pe.newFolder,$l=e=>e?{"aria-disabled":!0,disabledReason:e}:{},Zl=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[Ke&&be&&!el&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.folderPlus,onClick:()=>{yl(nl)},...$l(Xl),children:Le.newFolder}),ke&&!el&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:Y.upload,onClick:()=>Hl.open(),...$l(Vl),children:Le.upload}),Ke&&el&&Se&&ae.length>0&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:Se,...$l(pe.deleteForever),children:Le.emptyTrash})]}),Ql=(e,l,n,a,r)=>/* @__PURE__ */G("div",{style:{width:Be?void 0:r,flex:Be?"1 1 120px":"0 0 auto",minWidth:0},children:/* @__PURE__ */G(g,{size:"sm","aria-label":e,value:l,onChange:a,options:n})},e),ql=e=>l=>oe?.({...te,[e]:l}),_l=/* @__PURE__ */U("div",{className:"flex flex-wrap items-center gap-2",children:[ie&&/* @__PURE__ */G("div",{style:{flex:"1 1 200px",minWidth:0},children:/* @__PURE__ */G(k,{size:"sm",type:"search",leftIcon:Y.search,placeholder:_e?Le.searchProducts:Le.search,"aria-label":_e?Le.searchProducts:Le.search,value:re??"",onChange:e=>ie(e.target.value)})}),oe&&Ql(Le.mediaType,te.type,[{value:"all",label:Le.allTypes},{value:"image",label:Le.images},{value:"video",label:Le.videos},{value:"svg",label:"SVG"},{value:"gif",label:"GIF"}],ql("type"),130),oe&&!_e&&!el&&Ql(Le.use,te.use,[{value:"any",label:Le.anyUse},{value:"email",label:Le.emailOnly},{value:"website",label:Le.websiteOnly},{value:"unused",label:Le.notUsed}],ql("use"),130),oe&&Ke&&Ql(Le.sort,te.sort,[{value:"newest",label:Le.newest},{value:"name",label:Le.byName},{value:"size",label:Le.bySize}],ql("sort"),110),de?.map(e=>Ql(e.label,e.value,e.options,e.onChange,120)),ce&&/* @__PURE__ */G(x,{size:"sm",label:Le.view,value:se,onChange:ce,options:[{value:"grid",label:Le.grid,icon:Y.grid},{value:"list",label:Le.list,icon:Y.list}]})]}),en=e=>{const l=[];return null!=e.trashedDaysAgo&&l.push({key:"t",label:Le.daysAgo(e.trashedDaysAgo),count:e.trashedDaysAgo,icon:H.clock,tone:"neutral"}),e.usedCount&&l.push({key:"u",label:Le.used(e.usedCount),count:e.usedCount,icon:H.link,tone:"active"}),e.email&&l.push({key:"e",label:Le.email,icon:H.email,tone:"queued"}),e.private&&l.push({key:"p",label:Le.private,icon:H.lock,tone:"neutral"}),l},ln=e=>en(e).map(e=>/* @__PURE__ */G(j,{tone:e.tone,size:"xs",children:e.label},e.key)),nn=Ke&&ll&&!!xe&&!pe.move,an=ae.map(e=>({id:e.id,url:e.thumbUrl??e.url,name:e.name,kind:e.kind,caption:e.name,badges:en(e),dragData:nn?JSON.stringify(ol.isSelected(e.id)?dl:[e.id]):void 0})),rn=Be?Math.max(72,Math.floor((Ue-24-16-1)/3)):112,tn=L(null),on=c({containerRef:tn,enabled:Ke&&!Be&&ae.length>0,selected:ol.selected,setSelection:e=>ol.setSelection(e),clearSelection:ol.clear}),dn=e=>{if(Ae){const l=tl.get(e);return void(!l||l.private||l.pickDisabledReason||Te?.(l))}const l=il.indexOf(e);l>=0&&xl(l)},sn=ae.length?null:re?/* @__PURE__ */G(r,{variant:"dashed",title:Le.noMatches}):_e?/* @__PURE__ */G(r,{variant:"dashed",title:Le.emptyProducts,description:rl(al)}):el?/* @__PURE__ */G(r,{variant:"dashed",title:Le.trashEmpty}):!Yl||Ae?/* @__PURE__ */G(r,{variant:"dashed",title:Le.emptyFolder}):null,cn="list"===se&&ae.length>0,mn=sn??(cn?/* @__PURE__ */G("ul",{role:"listbox","aria-multiselectable":Ke||void 0,"aria-label":Le.folders,className:"flex flex-col gap-1",children:ae.map(e=>/* @__PURE__ */U("li",{role:"option","aria-selected":ol.isSelected(e.id),tabIndex:0,"data-grid-item":"","data-grid-id":e.id,onClick:l=>pl(e.id,l),onDoubleClick:()=>dn(e.id),onContextMenu:l=>Dl(e.id,l),onKeyDown:l=>{"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),pl(e.id,l))},className:"flex h-12 cursor-pointer items-center gap-3 rounded-md px-2 text-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(ol.isSelected(e.id)?"bg-blue-50 text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
|
|
9
|
-
/* @__PURE__ */G("img",{src:e.thumbUrl??e.url,alt:"",className:"h-10 w-10 shrink-0 rounded bg-gray-100 object-contain"}),
|
|
10
|
-
/* @__PURE__ */G("span",{className:"min-w-0 flex-1 truncate",children:e.name}),
|
|
11
|
-
/* @__PURE__ */G("span",{className:"flex shrink-0 items-center gap-1",children:ln(e)}),e.sizeLabel&&/* @__PURE__ */G("span",{className:"w-16 shrink-0 text-right text-xs text-gray-500",children:e.sizeLabel})]},e.id))}):/* @__PURE__ */G(v,{items:an,readOnly:!Yl||Ae,onFiles:Yl&&!Ae?e=>ke(e,nl):void 0,accept:fe,maxSizeBytes:ge,busy:ve,progress:ye,fit:"contain",thumbSize:rn,dragType:nn?W:void 0,selected:ol.selected,onItemClick:pl,onItemDoubleClick:dn,onItemContextMenu:Ke?Dl:void 0,menuOnMedia:Ke})),un=h({count:dl.length,kind:bl(dl),targets:kl({kind:"files",ids:dl}),onPick:e=>xe?.({kind:"files",ids:dl},e.key===m?null:e.key)}),hn=F({variant:"secondary",size:"sm"}),pn=/* @__PURE__ */G(f,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[Y.folder,Le.moveTo]}),items:un,disabled:!!pe.move}),fn=Ke&&dl.length>1&&!_e?/* @__PURE__ */U("div",{"data-media-bulk":"",className:"flex flex-wrap items-center gap-2 rounded-lg border border-gray-200 px-3 py-2",children:[
|
|
12
|
-
/* @__PURE__ */G(C,{checked:dl.length===ae.length,indeterminate:dl.length<ae.length,onChange:e=>e?ol.selectAll():ol.clear(),label:Le.selected(dl.length)}),/* @__PURE__ */U(B,el?{children:[Ie&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.undo,onClick:()=>Ie(dl),...$l(pe.restore),children:Le.restore}),De&&/* @__PURE__ */G(z,{variant:"secondary-danger",size:"sm",onClick:()=>De(dl),...$l(pe.deleteForever),children:Le.deleteForever})]}:{children:[xe&&pn,we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,disabled:!0,children:Le.rename}),Ce&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.trash,onClick:()=>Ce({kind:"files",ids:dl}),...$l(pe.trash),children:Le.moveFilesToTrash(dl.length)})]}),
|
|
13
|
-
/* @__PURE__ */G(z,{variant:"ghost",size:"sm",onClick:ol.clear,children:Le.clearSelection})]}):null,gn=e=>{const l=[],n=(e,n,a)=>{null!=a&&""!==a&&l.push({key:e,label:n,value:a})},a="file"===fl?.kind&&fl.id===e.id;n("name",Le.name,a?/* @__PURE__ */G(X,{value:e.name,label:Le.fileName,onDone:vl}):e.name),n("type",Le.type,e.typeLabel),n("size",Le.size,e.sizeLabel),n("resolution",Le.resolution,e.resolution),_e?(n("design",Le.design,e.design),n("finish",Le.finish,e.finish),n("angle",Le.angleLug,e.angleLug),n("owner",Le.owner,e.owner)):(n("added",Le.addedBy,e.addedBy),n("folder",Le.folder,e.folderPath)),n("used",Le.usedIn,null!=e.usedCount?Le.places(e.usedCount):void 0);const r=u({kind:"files",ids:[e.id]},Cl).find(e=>"submenu"===e.type);/* @__PURE__ */
|
|
14
|
-
return U("div",{"data-media-details":"",className:"flex flex-col gap-3",children:[
|
|
15
|
-
/* @__PURE__ */G("img",{src:e.url,alt:e.name,className:"aspect-square w-full rounded-lg bg-gray-100 object-contain"}),_e&&/* @__PURE__ */G(D,{tone:"neutral",title:Le.readOnlyBadge,children:rl(al)}),
|
|
16
|
-
/* @__PURE__ */G(t,{size:"sm",columns:1,items:l}),!el&&/* @__PURE__ */U("div",{className:"flex gap-2",children:[
|
|
17
|
-
/* @__PURE__ */G("div",{style:{flex:"1 1 0",minWidth:0},children:/* @__PURE__ */G(k,{size:"sm",readOnly:!0,value:e.url,"aria-label":Le.fileUrl,onFocus:e=>e.currentTarget.select()})}),
|
|
18
|
-
/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.copy,onClick:()=>Cl.copyUrl(e.id),children:Le.copyUrl})]}),ll&&Ke&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[je&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.swap,onClick:()=>je(e.id),...$l(pe.replace),children:Le.replace}),ze&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.crop,onClick:()=>ze(e.id),children:Le.cropEdit}),xe&&"submenu"===r?.type&&/* @__PURE__ */G(f,{align:"start",triggerClassName:hn,trigger:/* @__PURE__ */U(B,{children:[Y.folder,Le.moveTo]}),items:r.items,disabled:!!pe.move}),we&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,onClick:()=>gl({kind:"file",id:e.id}),...$l(pe.rename),children:Le.rename}),Ce&&/* @__PURE__ */G(S,{"aria-label":Le.moveToTrash,size:"sm",onClick:()=>Ce({kind:"files",ids:[e.id]}),disabledReason:pe.trash,"aria-disabled":!!pe.trash||void 0,children:Y.trash})]}),el&&Ke&&/* @__PURE__ */U("div",{className:"flex flex-wrap gap-2",children:[Ie&&/* @__PURE__ */G(z,{variant:"primary",size:"sm",leftIcon:Y.undo,onClick:()=>Ie([e.id]),...$l(pe.restore),children:Le.restore}),De&&/* @__PURE__ */G(z,{variant:"danger",size:"sm",onClick:()=>De([e.id]),...$l(pe.deleteForever),children:Le.deleteForever})]}),_e&&Fe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",leftIcon:Y.external,onClick:()=>Fe({kind:"render",id:e.id}),children:Le.openInDesign}),he&&/* @__PURE__ */G(y,{items:he})]})},vn=sl?sl.private?Le.privateNoPick:sl.pickDisabledReason:void 0,yn=Ae?/* @__PURE__ */U("div",{"data-media-picker-footer":"",className:"flex flex-wrap items-center justify-between gap-2 border-t border-gray-200 px-3 py-2",children:[
|
|
19
|
-
/* @__PURE__ */G("span",{className:"min-w-0 truncate text-sm text-gray-500",children:sl?Le.oneChosen(sl.name):Le.noneChosen}),
|
|
20
|
-
/* @__PURE__ */U("div",{className:"flex gap-2",children:[Oe&&/* @__PURE__ */G(z,{variant:"secondary",size:"sm",onClick:Oe,children:Le.cancel}),
|
|
21
|
-
/* @__PURE__ */G(z,{variant:"primary",size:"sm",disabled:!sl,...$l(vn),onClick:()=>{sl&&!vn&&Te?.(sl)},children:Le.chooseImage})]})]}):null,kn=Ke&&!!sl,bn=/* @__PURE__ */U("div",{className:"flex min-w-0 flex-col gap-3",children:[Ee&&/* @__PURE__ */G(D,{tone:"neutral",children:Ee}),
|
|
22
|
-
/* @__PURE__ */U("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[
|
|
23
|
-
/* @__PURE__ */G(d,{items:Jl}),Zl]}),_l,fn,
|
|
24
|
-
/* @__PURE__ */U("div",{ref:tn,className:"relative",onPointerDown:on.onPointerDown,onKeyDown:e=>{Ke&&(e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase()?(e.preventDefault(),ol.selectAll()):"Escape"===e.key&&ol.size&&ol.clear()},children:[mn,
|
|
25
|
-
/* @__PURE__ */G(a,{rect:on.rect})]}),Yl&&/* @__PURE__ */G("input",{...Hl.inputProps}),
|
|
26
|
-
/* @__PURE__ */G(w,{rejections:Hl.rejections})]});/* @__PURE__ */
|
|
27
|
-
return U("div",{ref:Re,"data-media-library":"","data-layout":Be?"phone":"wide",className:`flex h-full min-h-0 min-w-0 flex-col ${Pe}`.trim(),children:[/* @__PURE__ */U("div",Be?{className:"flex flex-col gap-3 p-3",children:[Wl,bn]}:{className:"flex min-h-0 min-w-0 flex-1",children:[
|
|
28
|
-
/* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-r border-gray-200 p-3",style:{width:280,"--rosh-tree-ground":"var(--surface)"},children:Wl}),
|
|
29
|
-
/* @__PURE__ */G("div",{className:"min-w-0 flex-1 overflow-y-auto p-3",children:bn}),kn&&/* @__PURE__ */G("div",{className:"shrink-0 overflow-y-auto border-l border-gray-200 p-3",style:{width:300},children:gn(sl)})]}),yn,Be&&/* @__PURE__ */G(o,{open:kn,onClose:ol.clear,side:"bottom",title:sl?.name,children:sl&&gn(sl)}),Il.state&&/* @__PURE__ */G(I,{...Il.props,items:Nl(Il.state.data)}),null!=wl&&ae.length>0&&/* @__PURE__ */G(i,{images:ae.map(e=>({url:e.url,caption:e.name})),startIndex:Math.min(wl,ae.length-1),onClose:()=>xl(null)})]})}export{W as MEDIA_FILES_DRAG_TYPE,J as MEDIA_FOLDER_DRAG_TYPE,$ as MediaLibrary};
|
package/dist/chunk-AS4CTEZD.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{optionMatches as e,OptionSublabel as t}from"./chunk-UQBPKZUR.js";import{inputClasses as n}from"./chunk-PF3ANJFI.js";import{GROUP_COLORS as r}from"./chunk-D323R2FT.js";import{Tooltip as o}from"./chunk-22S6LG6D.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as i}from"./chunk-62LW225J.js";import{useDropdownPosition as a,POPUP_MAX_WIDTH as s,MENU_MAX_HEIGHT as c}from"./chunk-GLUJS42B.js";import{glassStyle as u}from"./chunk-DTJRIWFR.js";import{useShellStrings as d}from"./chunk-E6UCGCOC.js";import{useState as m,useRef as h,useMemo as p,useEffect as f}from"react";import{createPortal as g}from"react-dom";import{jsxs as v,jsx as x,Fragment as b}from"react/jsx-runtime";var w={accent:{chip:"inline-flex max-w-full items-center gap-1 rounded bg-blue-50 px-2 py-0.5 text-xs font-medium text-blue-700",remove:"text-blue-400 hover:text-red-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"},danger:{chip:`inline-flex max-w-full items-center gap-1 rounded ${r.danger} px-2 py-0.5 text-xs font-medium`,remove:"text-current opacity-70 hover:opacity-100 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-deep)] rounded leading-none"}};function y({value:r,onChange:y,options:k=[],placeholder:N,allowFreeText:j=!1,invalid:C,disabled:D,id:L,className:E="",tone:F,tooltip:W,split:$}){const[B,G]=m(!1),[I,J]=m(""),M=d(),R=h(null),S=h(null),T=h(null),U=a(R,B),P=e=>k.find(t=>t.value===e)?.label??e,H=p(()=>{const t=new Set(r),n=[],o=I.trim().toLowerCase();for(const r of k)t.has(r.value)||(t.add(r.value),o&&!e(r,o)||n.push(r));return n},[k,r,I]),K=e=>{const t=[...r];for(const n of e){const e=n.trim();if(!e)continue;const r=e.toLowerCase(),o=k.find(t=>t.value===e||t.label.toLowerCase()===r)?.value,l=o??(j?e:null);l&&!t.includes(l)&&t.push(l)}t.length!==r.length&&y(t)},z=e=>{e&&!r.includes(e)?(y([...r,e]),J("")):J("")},A=e=>y(r.filter(t=>t!==e)),O=()=>{const e=I.trim();if($&&e)return K(e.split($)),void J("");j&&e?z(e):J("")},Q=h(()=>{});Q.current=()=>{O(),G(!1)},f(()=>{if(!B)return;const e=e=>{const t=e.target;R.current?.contains(t)||T.current?.contains(t)||(O(),G(!1))};document.addEventListener("mousedown",e);const t=l(()=>Q.current());return()=>{document.removeEventListener("mousedown",e),t()}});const Z=k.length>0;/* @__PURE__ */
|
|
2
|
-
return v("div",{ref:R,className:"relative",children:[
|
|
3
|
-
/* @__PURE__ */v("div",{onMouseDown:e=>{D||e.target.closest("button")||(e.preventDefault(),S.current?.focus())},className:n({invalid:C,multiline:!0,className:`flex flex-wrap items-center gap-1 cursor-text focus-within:border-blue-400 has-focus-visible:ring-2 has-focus-visible:ring-[color:var(--rosh-focus-ring)] ${D?"bg-gray-50 cursor-not-allowed":""} ${E}`}),children:[r.map(e=>{const t=F?.(e),n=w[t??"accent"],r=/* @__PURE__ */v("span",{"data-tone":t,className:n.chip,children:[
|
|
4
|
-
/* @__PURE__ */x("span",{className:"truncate",children:P(e)}),!D&&/* @__PURE__ */x("button",{type:"button","aria-label":M.select.removeItem?.(P(e))??`${M.select.remove} ${P(e)}`,onClick:()=>A(e),className:n.remove,children:"×"})]},e),l=W?.(e);return null==l?r:/* @__PURE__ */x(o,{content:l,className:"relative inline-flex max-w-full",children:r},e)}),
|
|
5
|
-
/* @__PURE__ */x("input",{id:L,ref:S,type:"text",autoComplete:"off",role:"combobox","aria-expanded":B&&Z,"aria-invalid":C||void 0,disabled:D,value:I,placeholder:0===r.length?N:void 0,onChange:e=>{(e=>{if($){const t=e.split($);if(t.length>1)return K(t.slice(0,-1)),void J(t[t.length-1])}J(e)})(e.target.value),G(!0)},onFocus:()=>{!D&&Z&&G(!0)},onKeyDown:t=>{if("Enter"===t.key||","===t.key&&j){t.preventDefault();const n=I.trim(),r=n?H.filter(t=>e(t,n.toLowerCase())):[];1===r.length?z(r[0].value):O()}else"Backspace"===t.key&&""===I&&r.length>0?A(r[r.length-1]):"Escape"===t.key?(G(!1),J(""),S.current?.blur()):"Tab"===t.key&&(O(),G(!1))},className:"min-w-[8ch] flex-1 border-none bg-transparent p-0 text-sm text-gray-800 placeholder:text-[color:var(--ink-placeholder)] rosh-focus-ring focus-visible:ring-0 disabled:cursor-not-allowed"})]}),B&&Z&&g(
|
|
6
|
-
/* @__PURE__ */x("div",{ref:T,className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:i.popup,left:U?.left,right:U?.right,top:U?.top,bottom:U?.bottom,minWidth:U?.minWidth,maxWidth:U?.maxWidth??s,width:"max-content",visibility:U?void 0:"hidden",...u()},children:/* @__PURE__ */x("div",{className:"overflow-y-auto",style:{maxHeight:U?.maxHeight??c},children:0===H.length?/* @__PURE__ */x("p",{className:"px-3 py-3 text-sm text-gray-400 text-center",children:k.length>0&&r.length>=k.length?M.select.allSelected:M.select.noMatches}):H.map(e=>/* @__PURE__ */x("button",{type:"button",onMouseDown:t=>{t.preventDefault(),z(e.value)},className:e.sublabel?"w-full text-left px-3 min-h-(--row-height-menu) py-2 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap flex items-center justify-between gap-3":"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm hover:bg-gray-50 text-gray-700 whitespace-nowrap",children:e.sublabel?/* @__PURE__ */v(b,{children:[
|
|
7
|
-
/* @__PURE__ */x("span",{className:"min-w-0 truncate",children:e.label}),
|
|
8
|
-
/* @__PURE__ */x(t,{grows:!0,children:e.sublabel})]}):e.label},e.value))})}),document.body)]})}export{y as TagInput};
|
package/dist/chunk-HSOREHQB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="8.34.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-JJXFPGX4.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-QDOTMA3W.js";import{IconButton_default as a}from"./chunk-4CANQ3B3.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{Tooltip as n}from"./chunk-22S6LG6D.js";import{useShellStrings as s}from"./chunk-E6UCGCOC.js";import{jsx as i,jsxs as t,Fragment as d}from"react/jsx-runtime";var c=e=>e.preventDefault(),u=e=>null!=e&&!1!==e,h=["bold","italic","underline","strike","link","sup","sub","code"];function p(e,l,r){const a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"first",End:"last"}[e.key];if(void 0===a||0===l.length)return;const o=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=o.findIndex(l=>l===e.target||l.contains(e.target));if(n<0)return;e.preventDefault();const s=o.length,i="first"===a?0:"last"===a?s-1:(n+a+s)%s;o[i].disabled||(r(l[i]),o[i].focus())}function b(e,l){const r=["bold","italic","underline","strike"].filter(l=>e.has(l)).length;return{color:r,link:r+(l?1:0)}}function m({offered:l,color:r,last:a,alignment:o,list:n,letterCase:s}){const i=h.filter(e=>l.has(e)).length+(r?1:0)+(u(a)?1:0),t=(o?e.filter(e=>o.allow.includes(e)).length:0)+(n&&l.has("bullet")?1:0)+(n&&l.has("number")?1:0)+(l.has("quote")?1:0)+(s?3:0);return{words:i>0,paragraph:t>0,oneRow:i>0&&t>0&&i+1+t<=9,flow:i>0&&t>0&&i+1+t>9&&i<=7,cells:{words:i,paragraph:t}}}function w(e,l){/* @__PURE__ */
|
|
2
|
-
return i(n,{content:e,children:l},l.key??void 0)}function g({offered:n,pressed:h,onMark:g,color:f,linkOpen:k=!1,last:v,alignment:N,list:C,letterCase:D,disabled:M=!1,"aria-label":x,windows:y,className:A="",layout:j="grid"}){const B=s().textToolbar,L=m({offered:n,color:f,last:v,alignment:N,list:C,letterCase:D});if(!L.words&&!L.paragraph)return null;const q=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,I=(e,l,r,o)=>n.has(e)?w(l,/* @__PURE__ */i(a,"link"===e?{pressed:k,className:q(k),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":k,"aria-keyshortcuts":o,disabled:M,onMouseDown:c,onClick:()=>g(e),children:r}:{className:q(Boolean(h[e])),"aria-label":l,"aria-pressed":Boolean(h[e]),"aria-keyshortcuts":o,disabled:M,onMouseDown:c,onClick:()=>g(e),children:r},e)):null,S=l(B),T=e.map(e=>[e,S[e],r(e)]),$=N?e.filter(e=>N.allow.includes(e)):[],K=N&&$.includes(N.value)?N.value:$[0],R=[["none",B.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",B.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",B.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],U=/* @__PURE__ */t(d,{children:[I("bold",B.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),I("italic",B.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),I("underline",B.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),I("strike",B.strike,/* @__PURE__ */i(o,{name:"strike"})),f?w(B.color,/* @__PURE__ */i(a,{pressed:f.open,className:q(f.open,"rosh-tb-color"),"aria-label":B.color,"aria-haspopup":"dialog","aria-expanded":f.open,disabled:M,style:f.run?{"--rosh-tb-run":f.run}:void 0,onMouseDown:c,onClick:f.onToggle,children:/* @__PURE__ */i(o,{name:"text-color"})},"color")):null,I("link",B.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),I("sup",B.sup,/* @__PURE__ */i(o,{name:"superscript"})),I("sub",B.sub,/* @__PURE__ */i(o,{name:"subscript"})),I("code",B.code,/* @__PURE__ */i(o,{name:"code"})),u(v)?v:null]}),O=/* @__PURE__ */t(d,{children:[N&&$.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":B.alignment,onKeyDown:e=>p(e,$,e=>N.onChange(e)),children:T.map(([e,l,r])=>N.allow.includes(e)?w(l,/* @__PURE__ */i(a,{role:"radio",pressed:N.value===e,className:q(N.value===e),"aria-checked":N.value===e,"aria-label":l,tabIndex:e===K?0:-1,disabled:M||N.disabled,onMouseDown:c,onClick:()=>N.onChange(e),children:r},e)):null)}):null,C&&n.has("bullet")?w(B.bullet,/* @__PURE__ */i(a,{className:q("bullet"===C.pressed),"aria-label":B.bullet,"aria-pressed":"bullet"===C.pressed,disabled:M,onMouseDown:c,onClick:()=>C.onList("bullet"),children:/* @__PURE__ */i(o,{name:"list"})},"bullet")):null,C&&n.has("number")?w(B.number,/* @__PURE__ */i(a,{className:q("number"===C.pressed),"aria-label":B.number,"aria-pressed":"number"===C.pressed,disabled:M,onMouseDown:c,onClick:()=>C.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,I("quote",B.quote,/* @__PURE__ */i(o,{name:"quote"})),D?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":B.letterCase,onKeyDown:e=>p(e,R.map(([e])=>e),e=>D.onChange(e)),children:R.map(([e,l,r])=>w(l,/* @__PURE__ */i(a,{role:"radio",pressed:D.value===e,className:q(D.value===e),"aria-checked":D.value===e,"aria-label":l,tabIndex:e===(D.value||"none")?0:-1,disabled:M||D.disabled,onMouseDown:c,onClick:()=>D.onChange(D.value===e?"":e),children:r},e)))}):null]}),E="row"===j,G=E?" is-row":L.flow?" is-flow":L.oneRow?" is-one-row":L.words&&void 0===v?" is-eight":"",Q=b(n,Boolean(f)),H={"--rosh-tb-color-col":String(Q.color),"--rosh-tb-link-col":String(Q.link),...E?{"--rosh-tb-cells":String(L.cells.words+L.cells.paragraph),"--rosh-tb-groupgap":L.words&&L.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let W;return W=E?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[L.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:U}):null,L.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:O}):null]}):L.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[U,
|
|
3
|
-
/* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),O]}):L.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
|
|
4
|
-
/* @__PURE__ */i("div",{className:"rosh-tb-words",children:U}),
|
|
5
|
-
/* @__PURE__ */i("div",{className:"rosh-tb-para",children:O})]}):/* @__PURE__ */t(d,{children:[L.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===v?" is-eight":""),children:U}):null,L.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:O}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${G} ${A}`.trim(),style:H,children:[
|
|
6
|
-
/* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":x??B.formatting,children:W}),y]})}export{g as TextToolbar,m as textToolbarRows,b as textToolbarWindowColumns};
|
package/dist/chunk-LYYR5DSP.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{SearchableSelect as e}from"./chunk-DGLCMYSQ.js";import{labelClasses as a}from"./chunk-EQKUFYX6.js";import{Select_default as l}from"./chunk-RERNKFEW.js";import{Input_default as t}from"./chunk-GX2GSDJP.js";import{isSafeLinkHref as r}from"./chunk-PJPK2ADX.js";import{INPUT_SIZES as n}from"./chunk-PF3ANJFI.js";import{Button_default as i}from"./chunk-4IU5BSVE.js";import{Icon as o}from"./chunk-KIBL6M3T.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as u}from"./chunk-E6UCGCOC.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},y=e=>r(e.trim());function k(r){const{value:n,kinds:o,rules:k=x,filtersFor:w,label:C,readOnly:N,placeholder:F,className:j=""}=r,O=void 0!==r.onApply,E=u().link,$=k.isSafe??y,P=d(),z=c(null),D=c(null),[U,A]=p({url:n}),K=O?U.url:n,[S,G]=p(!1),[L,M]=p(null),[R,T]=p(null),W=c(()=>{});W.current=O?r.onCancel:()=>{},m(()=>{if(O)return s(e=>{const a=z.current;return!!("Escape"===e.key&&a&&e.target instanceof Node&&a.contains(e.target))&&(W.current(),!0)},()=>z.current)},[O]),m(()=>{if(!O)return;const e=D.current;e?(e.focus(),e.select()):z.current?.querySelector("button, input")?.focus()},[]);const I=o??[{value:b,label:E.address,target:{type:"text"}}],J=L&&L.against===K?L.kind:k.kindOf(K),Q=I.filter(e=>!e.hideWhenEmpty||h(e.target).length>0||e.value===J),X=Q.find(e=>"text"===e.target.type),B=Q.find(e=>e.value===J)??X??Q[0];if(!B)return null;const V="text"!==B.target.type,Y=V?k.targetOf(K):K,q=h(B.target),H=q.find(e=>e.value===Y),Z=e=>({value:e,label:E.unavailable(e)}),_="select"===B.target.type&&Y&&w?w(Y):null,ee=_?k.readFilter(K):null,ae=ee?_?.find(e=>e.param===ee.param):void 0,le=R&&R.against===K?R.text:K,te=!V&&""!==le.trim()&&!$(le),re=te&&(!O||S),ne=(e,a)=>{O?A({url:e,name:a}):void 0===a?r.onChange(e):r.onChange(e,a)},ie=(e,a)=>{M(a=>a?{...a,against:e}:a),ne(e,a)},oe=e=>{if(!e)return ie("");const a=q.find(a=>a.value===e);ie(e,a?.label)},se=V?K:le.trim(),ue=()=>{if(!O||!se)return;if(!V&&te)return void G(!0);const e=V&&U.url===se?U.name:void 0,a=r.onApply;void 0===e?a(se):a(se,e)},de=(e,a)=>a&&!e.some(e=>e.value===a)?[Z(a),...e]:[...e],ce=(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:N,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:N,onChange:n})};let pe;if("text"===B.target.type)pe=/* @__PURE__ */f(t,{ref:D,id:`${P}-address`,size:"sm",type:"text",invalid:re,"aria-label":E.address,"aria-describedby":re?`${P}-why`:void 0,placeholder:F??E.addressPlaceholder,spellCheck:!1,autoComplete:"off",value:le,readOnly:N,onChange:e=>(e=>{G(!1);const a=e.trim();a?$(e)?(T({text:e,against:a}),ie(a)):T({text:e,against:K}):(T({text:e,against:""}),ie(""))})(e.target.value)});else{const e="groups"===B.target.type?B.target.groups.flatMap(e=>e.options.map(a=>({value:a.value,label:a.label,group:e.label}))):B.target.options.map(e=>({value:e.value,label:e.label})),a=[{value:"",label:B.target.placeholder},...de(e,Y)];pe=ce(B.label,Y,a,oe,e.length>10)}const me=/* @__PURE__ */v(g,{children:[o&&ce(E.linkType,B.value,Q.map(e=>({value:e.value,label:e.label})),e=>{T(null),G(!1);const a=Q.find(a=>a.value===e);if(!a||"text"===a.target.type)return void M({kind:e,against:K});const l=h(a.target)[0];M({kind:e,against:l?l.value:""}),l?ne(l.value,l.label):ne("")},!1),pe,_&&ce(E.filter,ee?.param??"",[{value:"",label:E.noFilter},...ee&&!ae?[Z(ee.param)]:[],..._.map(e=>({value:e.param,label:e.label}))],e=>{if(!e)return ie(Y,H?.label);const a=_?.find(a=>a.param===e),l=a?.values[0];l&&ie(k.withFilter(Y,{param:e,value:l.value}),l.label)},!1),_&&ee&&ce(E.value,ee.value,de((ae?.values??[]).map(e=>({value:e.value,label:e.label})),ee.value),e=>{if(!ee)return;const a=ae?.values.find(a=>a.value===e);ie(k.withFilter(Y,{param:ee.param,value:e}),a?.label)},(ae?.values.length??0)>10),re&&/* @__PURE__ */f("p",{id:`${P}-why`,role:"alert",className:"text-2xs leading-4 text-red-600",children:E.unsafe}),B.hint&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-gray-400",children:B.hint}),_&&/* @__PURE__ */f("p",{className:"text-2xs leading-4 text-gray-400",children:E.filterHint})]});if(!O)/* @__PURE__ */
|
|
4
|
-
return f("div",{ref:z,className:`flex min-w-0 flex-auto flex-col gap-2 ${j}`.trim(),role:C?"group":void 0,"aria-label":C,children:me});const fe=r.onRemove;/* @__PURE__ */
|
|
5
|
-
return v("div",{ref:z,role:"dialog","aria-label":C??E.title,className:`flex min-w-0 flex-col gap-2 rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${j}`.trim(),onKeyDown:e=>{"Enter"!==e.key||e.defaultPrevented||e.target instanceof Element&&e.target.closest("button")||(e.preventDefault(),ue())},children:[V?/* @__PURE__ */f("span",{className:a({inline:!0}),children:E.title}):/* @__PURE__ */f("label",{htmlFor:`${P}-address`,className:a({inline:!0}),children:E.title}),me,
|
|
6
|
-
/* @__PURE__ */v("div",{className:"flex items-center justify-between gap-2",children:[fe?/* @__PURE__ */f(i,{variant:"ghost-danger",size:"sm","data-window-action":"remove",onClick:fe,children:E.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:()=>W.current(),children:E.cancel}),
|
|
9
|
-
/* @__PURE__ */f(i,{variant:"primary",size:"sm","data-window-action":"apply",onClick:ue,disabled:N||""===se,children:E.apply})]})]})]})}function w({label:e,text:a,onTextChange:l,link:r,onLinkChange:i,kinds:s,rules:m,filtersFor:g,textPlaceholder:h,readOnly:b,className:x=""}){const y=u().link,[w,C]=p(!1),N=c(null),F=d(),j=()=>{C(!1),N.current?.focus()};/* @__PURE__ */
|
|
10
|
-
return v("div",{className:`flex min-w-0 flex-auto flex-col ${x}`.trim(),children:[
|
|
11
|
-
/* @__PURE__ */f(t,{size:"sm",type:"text",className:"rounded-b-none","aria-label":y.text(e),placeholder:h,value:a,readOnly:b,onChange:e=>l(e.target.value)}),
|
|
12
|
-
/* @__PURE__ */v("button",{ref:N,type:"button","aria-label":y.linkOf(e,r),"aria-expanded":w,"aria-controls":w?F:void 0,disabled:b,onClick:()=>C(e=>!e),className:`flex w-full min-w-0 items-center gap-2 rounded-b-(--radius-control) border border-t-0 border-gray-300 bg-gray-50 ${n.sm} 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 "+(r?"text-blue-600":"text-gray-400")}),
|
|
14
|
-
/* @__PURE__ */f("span",{className:"min-w-0 truncate "+(r?"text-blue-600":"text-gray-400"),children:r||y.addLink})]}),w&&/* @__PURE__ */f("div",{id:F,className:"mt-2",children:/* @__PURE__ */f(k,{value:r,label:y.linkOf(e,r),kinds:s,rules:m,filtersFor:g,onApply:(e,a)=>{void 0===a?i(e):i(e,a),j()},onRemove:r?()=>{i(""),j()}:void 0,onCancel:j})})]})}export{k as LinkPicker,w as TextLinkField};
|
package/dist/chunk-RERNKFEW.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as i}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as n,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-UQBPKZUR.js";import{useSettingAuto as d}from"./chunk-L65BESIE.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-PF3ANJFI.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-QR4RM7PO.js";import{Icon as m}from"./chunk-KIBL6M3T.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-GLUJS42B.js";import{solidSurfaceStyle as g}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as x}from"./chunk-E6UCGCOC.js";import{forwardRef as w,useId as k,useState as N,useRef as $,useMemo as D,useCallback as j,useEffect as S,useLayoutEffect as E}from"react";import{createPortal as I}from"react-dom";import{jsxs as T,jsx as C,Fragment as O}from"react/jsx-runtime";var H=e=>e.labelStyle?{lineHeight:1.25,...e.labelStyle}:void 0,R=w(function({value:e,onChange:t,options:r,placeholder:i,invalid:n,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},w){const N=t,$=x(),D=d(),j=f??D,S=k(),E=/* @__PURE__ */T("select",{ref:w,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":n||void 0,"aria-describedby":[g,j?S:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:n,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==i&&!b&&/* @__PURE__ */C("option",{value:"",disabled:!0,children:i}),
|
|
2
|
-
/* @__PURE__ */C(z,{items:r})]});return j?/* @__PURE__ */T(O,{children:[E,
|
|
3
|
-
/* @__PURE__ */C("span",{id:S,hidden:!0,children:$.settingView.auto})]}):E});function z({items:e}){const t=e=>/* @__PURE__ */C("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
|
|
4
|
-
return C(O,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */C("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var B=w(function({value:l,onChange:u,options:w,placeholder:R,invalid:B,className:U="",id:K,disabled:A,size:P,touchSize:F,title:L,multiple:V,renderOption:M,renderValue:W,valueText:G,readOnly:J=!1,footer:Q,changed:q=!1,auto:X,"aria-describedby":Y,"aria-label":Z,"aria-labelledby":_,...ee},te){const[re,ie]=N(!1),[ne,ae]=N(-1),le=$(null),oe=$(null),de=$(null),se=$(null),ce=$([]),ue=()=>se.current??de.current,pe=!!Q?.length,me="sm"===P,ve=me?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",he=p(me),[fe,be]=N(null),ge=x(),ye=$(re);ye.current=re;const xe=$({buffer:"",timer:null}),we=k(),ke=`${we}-listbox`,Ne=K??`${we}-trigger`,$e=e=>`${we}-opt-${e}`,De=`${we}-changed`,je=d(),Se=X??je,Ee=`${we}-auto`,Ie=[Y,q?De:void 0,Se?Ee:void 0].filter(Boolean).join(" ")||void 0,Te=D(()=>n(w),[w]),Ce=V?l:[],Oe=u,He=f(oe,re,{matchTriggerWidth:!0,...Q?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Re="undefined"==typeof window?S:E,ze=`${re}|${He?.top}|${He?.bottom}|${He?.maxHeight}|${w.length}`;Re(()=>{be(null)},[ze]),Re(()=>{const e=de.current;if(!re||!e||null!==fe)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const i=e.getBoundingClientRect().top;let n=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-i+e.scrollTop;if(!(r<=e.clientHeight+.5))break;n=r}n>r&&be(Math.floor(n))},[re,fe,ze]);const Be=V?Te.findIndex(e=>Ce.includes(e.value)):Te.findIndex(e=>e.value===l),Ue=V?Te.filter(e=>Ce.includes(e.value)).map(e=>e.label).join(", ")||void 0:Be>=0?Te[Be].label:void 0,Ke=!V&&Be>=0?Te[Be].lang:void 0,Ae=V?Te.filter(e=>Ce.includes(e.value)):Be>=0?[Te[Be]]:[],Pe=W&&Ae.length?W(Ae):void 0,Fe=void 0!==Pe&&G?G(Ae):void 0,Le=j((e=!0)=>{ie(!1),ae(-1),e&&oe.current?.focus()},[]),Ve=j(()=>{A||J||(ae(Be>=0?Be:e(Te)),ie(!0))},[A,J,Te,Be]),Me=j(e=>{const t=Te[e];if(t&&!t.disabled){if(V){const r=l;return Oe(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ae(e)}Oe(t.value),Le()}},[Te,V,l,Oe,Le]);S(()=>{if(!re)return;return y(e=>!("Escape"!==e.key||!ye.current)&&(Le(),!0),ue)},[re,Le]),S(()=>{if(!re)return;const e=e=>{const t=e.target;le.current?.contains(t)||ue()?.contains(t)||Le(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Le(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[re,Le]),S(()=>{!re||ne<0||de.current?.querySelector(`#${CSS.escape($e(ne))}`)?.scrollIntoView({block:"nearest"})},[re,ne]);const We=j(e=>{const r=xe.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const i=re?ne:Be,n=t(Te,r.buffer,i);n<0||(re?ae(n):V?(ae(n),ie(!0)):Me(n))},[re,ne,Be,Te,Me,V]),Ge=re?a(w,(e,t)=>{const r=(i=e.value,V?Ce.includes(i):l===i);var i;const n=t===ne;/* @__PURE__ */
|
|
5
|
-
return T("div",{id:$e(t),role:"option",lang:e.description||e.labelStyle||M?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ae(t)},onClick:()=>Me(t),className:`mx-1 cursor-pointer truncate rounded-lg ${ve}${V?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":n?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[V&&/* @__PURE__ */C(o,{selected:r}),M?/* @__PURE__ */C("span",{className:"block min-w-0 flex-1 truncate",children:M(e,{selected:r,active:n})}):V?/* @__PURE__ */T("span",{className:"block min-w-0 flex-1",children:[
|
|
6
|
-
/* @__PURE__ */C("span",{lang:e.lang,className:"block truncate",style:H(e),children:e.label}),e.description&&/* @__PURE__ */C("span",{className:he,children:e.description})]}):e.description||e.labelStyle?
|
|
7
|
-
/* @__PURE__ */T(O,{children:[
|
|
8
|
-
/* @__PURE__ */C("span",{lang:e.lang,className:"block truncate",style:H(e),children:e.label}),e.description&&/* @__PURE__ */C("span",{className:he,children:e.description})]}):e.label]},e.value)},we,"mx-1"):null,Je=void 0!==Pe?
|
|
9
|
-
/* @__PURE__ */T("span",{className:"relative block min-w-0 truncate",children:[
|
|
10
|
-
/* @__PURE__ */C("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:Pe}),
|
|
11
|
-
/* @__PURE__ */C("span",{lang:void 0===Fe?Ke:void 0,className:"sr-only",children:Fe??Ue})]}):/* @__PURE__ */C("span",{lang:Ke,className:`block truncate ${void 0===Ue?c:""}`,children:Ue??R??" "}),Qe={zIndex:h.popup,left:He?.left,top:He?.top,bottom:He?.bottom,width:He?.width,maxHeight:He?.maxHeight??b,visibility:He?void 0:"hidden",...g()},qe=/* @__PURE__ */C("div",{ref:de,id:ke,role:"listbox","aria-labelledby":_??(Z?void 0:Ne),"aria-label":_?void 0:Z,"aria-multiselectable":V||void 0,className:pe?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:pe?null!==fe?{maxHeight:fe}:void 0:null!==fe?{...Qe,maxHeight:fe}:Qe,children:Ge}),Xe=pe?/* @__PURE__ */T("div",{ref:se,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Qe,children:[qe,
|
|
12
|
-
/* @__PURE__ */C("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:Q.map((e,t)=>/* @__PURE__ */T("button",{ref:e=>{ce.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Le(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(Q?.length??0)-1,i=t=>{e.preventDefault(),ce.current[t]?.focus()},n=()=>{e.preventDefault(),oe.current?.focus()};switch(e.key){case"ArrowDown":return void i(Math.min(t+1,r));case"ArrowUp":return void(0===t?n():i(t-1));case"Home":return void i(0);case"End":return void i(r);case"Tab":return e.shiftKey?void(0===t?n():i(t-1)):t<r?void i(t+1):(e.preventDefault(),void Le());case"Escape":return e.preventDefault(),e.stopPropagation(),void Le()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${ve} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-gray-400":"cursor-pointer text-gray-700 hover:bg-blue-50 hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */C(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
|
|
13
|
-
/* @__PURE__ */C("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):qe;/* @__PURE__ */
|
|
14
|
-
return T("div",{ref:le,className:"relative",children:[
|
|
15
|
-
/* @__PURE__ */C("button",{ref:oe,id:Ne,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":re,"aria-controls":re?ke:void 0,"aria-activedescendant":re&&ne>=0?$e(ne):void 0,"aria-invalid":B||void 0,"aria-describedby":Ie,"aria-label":Z,"aria-labelledby":_,title:L,disabled:A,"aria-readonly":J||void 0,onClick:()=>re?Le():Ve(),onKeyDown:t=>{if(!A&&!J)switch(t.key){case"ArrowDown":return t.preventDefault(),void(re?ae(e=>i(Te,e,1)):Ve());case"ArrowUp":return t.preventDefault(),void(re?ae(e=>i(Te,e,-1)):Ve());case"Home":return void(re&&(t.preventDefault(),ae(e(Te))));case"End":return void(re&&(t.preventDefault(),ae(r(Te))));case"Enter":return void(re&&(t.preventDefault(),Me(ne)));case" ":return t.preventDefault(),void(re?Me(ne):Ve());case"Escape":return void(re&&(t.preventDefault(),t.stopPropagation(),Le()));case"Tab":return re&&pe&&!t.shiftKey?(t.preventDefault(),void ce.current[0]?.focus()):void(re&&Le(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),We(t.key))}},className:s({invalid:B,size:P,readOnly:J,auto:Se,className:`${J?"":"pr-8 "}text-left ${U}`.trim()}),children:q?
|
|
16
|
-
/* @__PURE__ */T("span",{className:"flex min-w-0 items-center gap-1",children:[Je,
|
|
17
|
-
/* @__PURE__ */C("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Je}),q&&/* @__PURE__ */C("span",{id:De,hidden:!0,children:ge.select.changed}),Se&&/* @__PURE__ */C("span",{id:Ee,hidden:!0,children:ge.settingView.auto}),!J&&/* @__PURE__ */C(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
|
|
18
|
-
/* @__PURE__ */T("select",{ref:te,value:l,multiple:V||void 0,onChange:e=>Oe(V?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:A,"aria-hidden":"true",tabIndex:-1,className:"sr-only",...ee,children:[void 0!==R&&!V&&/* @__PURE__ */C("option",{value:"",disabled:!0,children:R}),
|
|
19
|
-
/* @__PURE__ */C(z,{items:w})]}),re&&I(Xe,document.body)]})}),U=w(function({touchSize:e="touch",...t},r){const i=u();return!i||void 0===t.footer&&void 0===t.changed||t.readOnly?i&&!t.readOnly?/* @__PURE__ */C(R,{ref:r,...t,size:e}):/* @__PURE__ */C(B,{ref:r,...t}):/* @__PURE__ */C(B,{ref:r,...t,size:e})});export{R as NativeSelect,U as Select_default};
|
package/dist/chunk-W7S56JZ7.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-B55IXYDR.js";import{useTabLayer as n,focusableIn as o}from"./chunk-CDAJKLGL.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-PJCVNFWM.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/,w={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function D({trigger:D,items:L,align:j="end",side:C="bottom","aria-label":W,className:A="",triggerClassName:E,menuClassName:K="",minWidth:S=180,linkAs:N,disabled:$,id:H,"aria-describedby":T,"aria-disabled":U=!1,onOpenChange:B,footer:I,footerLabel:J}){const[M,q]=m(!1),[G,P]=m(-1),R=h(null),z=h(null),V=h(null),Y=h(null),F=h(null),O=null!=I&&!1!==I,Q=h({text:"",at:0}),X=g(),Z=g(),_=H??Z,ee=h(B);ee.current=B;const te=h(M);te.current=M;const re=v(e=>{q(!1),te.current&&(te.current=!1,ee.current?.(!1)),e&&z.current?.focus()},[]),ne=(t,r)=>{const n=L.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(L[i]))return i}return-1},oe=()=>V.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!M)return;const e=e=>{const t=e.target;if(R.current?.contains(t)||oe()?.contains(t))return;const r=oe()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||re(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>re(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[M,re]);const ie=v(()=>{const e=oe(),t=z.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:j,side:C});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=j},[j,C]);p(()=>{M&&ie()}),b(()=>{if(M)return u(()=>z.current,ie)},[M,ie]),b(()=>{if(!M)return;const t=V.current,r=e(L[G])?t?.querySelector(`[data-dropdown-index="${G}"]`):null;(r??t)?.focus({preventScroll:!0})},[M,G]),b(()=>{if(M)return f(e=>"Escape"===e.key&&(re(!0),!0),()=>Y.current)},[M,re]),n(Y,M&&O);const ae=h(null),le=e=>"first"===e?ne(0,1):ne(L.length-1,-1),se=e=>{P(le(e)),q(!0),te.current||(te.current=!0,ae.current=e,B?.(!0))};p(()=>{const e=ae.current;if(!M||!e)return;ae.current=null;const t=le(e);t!==G&&P(t)});const de=t(L,X),ce="function"==typeof I?I({close:()=>re(!0)}):I,ue={...k.test(K)?{}:{zIndex:s.popup},minWidth:S};/* @__PURE__ */
|
|
2
|
-
return y("div",{ref:R,className:`relative inline-flex ${A}`.trim(),children:[
|
|
3
|
-
/* @__PURE__ */x("button",{ref:z,id:_,type:"button","aria-haspopup":"menu","aria-expanded":M,"aria-controls":M?X:void 0,"aria-label":W,"aria-describedby":T,"aria-disabled":U||void 0,disabled:$,onClick:()=>{U||(M?re(!1):se("first"))},onKeyDown:e=>{U||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),se("first")):"ArrowUp"===e.key&&(e.preventDefault(),se("last")))},className:E??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(W?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:D}),M&&
|
|
4
|
-
/* @__PURE__ */x(i,{portal:!0,className:K,style:ue,children:/* @__PURE__ */y("div",{ref:Y,children:[
|
|
5
|
-
/* @__PURE__ */x("div",{ref:V,id:X,role:"menu","aria-orientation":"vertical","aria-label":W,"aria-labelledby":W?void 0:_,"aria-describedby":de,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),P(ne(G+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(ne(G-1,-1));else if("Home"===t.key)t.preventDefault(),P(ne(0,1));else if("End"===t.key)t.preventDefault(),P(ne(L.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&F.current?o(F.current)[0]:void 0;e?e.focus({preventScroll:!0}):re(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-Q.current.at<500?Q.current.text+n:n;Q.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?G+1:Math.max(G,0),s=V.current,d=L.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(L[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void P(n)}})(t)},children:r(L,{menuId:X,choose:e=>{e.disabled||(re(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>re(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===G?0:-1,onMouseEnter:()=>{t.disabled||F.current?.contains(document.activeElement)||P(e)}}),linkAs:N})}),O&&/* @__PURE__ */y("div",{ref:F,role:"group","aria-label":J,"data-dropdown-footer":"",onKeyDown:e=>{const t=F.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=V.current?.querySelector(`[data-dropdown-index="${G}"]`);return void(t??V.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),re(!0))},children:[
|
|
6
|
-
/* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
|
|
7
|
-
/* @__PURE__ */x("div",{style:w,children:ce})]})]})})]})}export{D as DropdownMenu};
|