@anymux/ui-kit 0.1.0 → 0.2.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.
Files changed (94) hide show
  1. package/dist/{calendar-DSlrbHoj.js → calendar-DQKfYSQS.js} +48 -45
  2. package/dist/calendar-DQKfYSQS.js.map +1 -0
  3. package/dist/calendar.d.ts +1 -1
  4. package/dist/calendar.js +1 -1
  5. package/dist/{contacts-DQXTZzHc.js → contacts-By9Wg3kn.js} +35 -33
  6. package/dist/contacts-By9Wg3kn.js.map +1 -0
  7. package/dist/contacts.d.ts +1 -1
  8. package/dist/contacts.js +1 -1
  9. package/dist/{file-browser-m5atC3kF.js → file-browser-CkhNwADU.js} +61 -133
  10. package/dist/file-browser-CkhNwADU.js.map +1 -0
  11. package/dist/file-browser.d.ts +6 -6
  12. package/dist/file-browser.js +4 -4
  13. package/dist/{git-B55e6LL-.js → git-m4lboTfx.js} +29 -29
  14. package/dist/git-m4lboTfx.js.map +1 -0
  15. package/dist/git.js +1 -1
  16. package/dist/{iconMap-V4B8P-Uh.js → iconMap-DDpe35ek.js} +5 -5
  17. package/dist/iconMap-DDpe35ek.js.map +1 -0
  18. package/dist/icons.js +1 -1
  19. package/dist/{index-Bryv_GCG.d.ts → index-BP4IYXiF.d.ts} +46 -53
  20. package/dist/index-BP4IYXiF.d.ts.map +1 -0
  21. package/dist/{index-kHr9udZD.d.ts → index-BkIh8oov.d.ts} +17 -17
  22. package/dist/{index-kHr9udZD.d.ts.map → index-BkIh8oov.d.ts.map} +1 -1
  23. package/dist/{index-DSu19mq0.d.ts → index-D3Ob3aXg.d.ts} +9 -9
  24. package/dist/{index-DSu19mq0.d.ts.map → index-D3Ob3aXg.d.ts.map} +1 -1
  25. package/dist/{index-Ml_SgiKa.d.ts → index-DGoLQBX6.d.ts} +18 -42
  26. package/dist/index-DGoLQBX6.d.ts.map +1 -0
  27. package/dist/index-DnJaZr08.d.ts +67 -0
  28. package/dist/index-DnJaZr08.d.ts.map +1 -0
  29. package/dist/{index-DmsyeHFr.d.ts → index-Pty-N7-g.d.ts} +5 -5
  30. package/dist/{index-DmsyeHFr.d.ts.map → index-Pty-N7-g.d.ts.map} +1 -1
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.js +10 -10
  33. package/dist/layout-BYsc16hD.js +183 -0
  34. package/dist/layout-BYsc16hD.js.map +1 -0
  35. package/dist/layout.d.ts +2 -2
  36. package/dist/layout.js +2 -2
  37. package/dist/{list-CxfT6hix.js → list-DAq-b6RR.js} +49 -63
  38. package/dist/list-DAq-b6RR.js.map +1 -0
  39. package/dist/list.d.ts +2 -2
  40. package/dist/list.js +4 -3
  41. package/dist/{media-DZ292aKK.js → media-DuczOGsk.js} +32 -31
  42. package/dist/media-DuczOGsk.js.map +1 -0
  43. package/dist/media.js +1 -1
  44. package/dist/{tree-Dd9Z0Aso.js → tree-B9VQcKBp.js} +2 -2
  45. package/dist/{tree-Dd9Z0Aso.js.map → tree-B9VQcKBp.js.map} +1 -1
  46. package/dist/tree.d.ts +1 -1
  47. package/dist/tree.js +2 -2
  48. package/package.json +2 -2
  49. package/src/calendar/AgendaView.tsx +2 -2
  50. package/src/calendar/CalendarBrowser.tsx +11 -11
  51. package/src/calendar/CalendarSidebar.tsx +10 -10
  52. package/src/calendar/DayView.tsx +5 -5
  53. package/src/calendar/EventCard.tsx +3 -3
  54. package/src/calendar/MonthView.tsx +6 -6
  55. package/src/calendar/WeekView.tsx +10 -10
  56. package/src/contacts/ContactBrowser.tsx +8 -8
  57. package/src/contacts/ContactCard.tsx +4 -4
  58. package/src/contacts/ContactDetail.tsx +10 -10
  59. package/src/contacts/ContactGroupSidebar.tsx +6 -6
  60. package/src/contacts/ContactList.tsx +3 -3
  61. package/src/file-browser/components/FileBrowser.tsx +3 -2
  62. package/src/file-browser/components/FileBrowserContent.tsx +1 -1
  63. package/src/file-browser/examples/BasicUsage.tsx +2 -2
  64. package/src/file-browser/index.ts +1 -1
  65. package/src/file-browser/providers/FileSystemProvider.ts +1 -1
  66. package/src/git/BranchList.tsx +12 -12
  67. package/src/git/CommitList.tsx +11 -11
  68. package/src/git/DiffViewer.tsx +11 -11
  69. package/src/icons/iconMap.ts +4 -4
  70. package/src/layout/index.ts +6 -2
  71. package/src/layout/models/ResponsiveLayoutModel.ts +116 -0
  72. package/src/list/components/ListItem.tsx +1 -1
  73. package/src/list/index.ts +1 -1
  74. package/src/media/AlbumSidebar.tsx +4 -4
  75. package/src/media/MediaBrowser.tsx +11 -11
  76. package/src/media/MediaGrid.tsx +3 -3
  77. package/src/media/MediaList.tsx +6 -6
  78. package/src/media/MediaPreview.tsx +2 -2
  79. package/src/media/MediaTimeline.tsx +3 -3
  80. package/src/{file-browser/components/shared → shared}/ErrorBoundary.tsx +3 -3
  81. package/dist/calendar-DSlrbHoj.js.map +0 -1
  82. package/dist/contacts-DQXTZzHc.js.map +0 -1
  83. package/dist/file-browser-m5atC3kF.js.map +0 -1
  84. package/dist/git-B55e6LL-.js.map +0 -1
  85. package/dist/iconMap-V4B8P-Uh.js.map +0 -1
  86. package/dist/index-Bryv_GCG.d.ts.map +0 -1
  87. package/dist/index-DzfY1Tok.d.ts +0 -32
  88. package/dist/index-DzfY1Tok.d.ts.map +0 -1
  89. package/dist/index-Ml_SgiKa.d.ts.map +0 -1
  90. package/dist/layout-Ca_4r8ka.js +0 -89
  91. package/dist/layout-Ca_4r8ka.js.map +0 -1
  92. package/dist/list-CxfT6hix.js.map +0 -1
  93. package/dist/media-DZ292aKK.js.map +0 -1
  94. package/src/list/components/shared/ErrorBoundary.tsx +0 -123
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { IObjectProvider, ObjectMetadata, ObjectType } from "./types-common-CB3kRek8.js";
2
- import { AgendaView$1 as AgendaView, AgendaViewProps, CalendarBrowser$1 as CalendarBrowser, CalendarBrowserProps, CalendarEvent, CalendarInfo, CalendarModel$1 as CalendarModel, CalendarSidebar$1 as CalendarSidebar, CalendarSidebarProps, CalendarViewMode, DayView$1 as DayView, DayViewProps, EventCard$1 as EventCard, EventCardProps, ICalendarProvider, MockCalendarProvider$1 as MockCalendarProvider, MonthView$1 as MonthView, MonthViewProps, WeekView$1 as WeekView, WeekViewProps } from "./index-DSu19mq0.js";
3
- import { ContactAvatar$1 as ContactAvatar, ContactAvatarProps, ContactBrowser$1 as ContactBrowser, ContactBrowserProps, ContactCard$1 as ContactCard, ContactCardProps, ContactDetail$1 as ContactDetail, ContactDetailProps, ContactGroup, ContactGroupSidebar$1 as ContactGroupSidebar, ContactGroupSidebarProps, ContactItem, ContactList$1 as ContactList, ContactListModel$1 as ContactListModel, ContactListProps, ContactSortBy, IContactProvider, MockContactProvider$1 as MockContactProvider } from "./index-DmsyeHFr.js";
4
- import { ActionContext, ActionResult, BreadcrumbProps, ColumnDefinition, ContextAction, ErrorBoundary$1 as ErrorBoundary, ErrorBoundaryProps, ErrorState, FileBrowser$1 as FileBrowser, FileBrowserContent, FileBrowserContentProps, FileBrowserEventHandlers, FileBrowserHeader, FileBrowserHeaderProps, FileBrowserItem, FileBrowserItemComponent, FileBrowserItemDetails, FileBrowserModel$1 as FileBrowserModel, FileBrowserProps, FileIcon, FileIconProps, FileMatchContext, FileSystemBridge$1 as FileSystemBridge, FileSystemListProvider$1 as FileSystemListProvider, FileSystemProvider$1 as FileSystemProvider, FileSystemTreeProvider$1 as FileSystemTreeProvider, FileViewerPlugin, FilterCriteria, FilterDefinition, GitProvider$1 as GitProvider, GitRepositoryProvider$1 as GitRepositoryProvider, IFileBrowserProvider, IconDefinition, ItemChange, KeyboardShortcut, ListView, ListViewProps, ListViewSettings, ListViewUIModel$1 as ListViewUIModel, LoadingState, NavigationButtons, NavigationButtonsProps, NavigationManagerModel$1 as NavigationManagerModel, NavigationState, PreviewData, ProviderCapabilities, ProviderConfiguration, ResolvedViewer, SelectionManagerModel$1 as SelectionManagerModel, SelectionState, SortCriteria, SortFieldDefinition, ThumbnailViewSettings, ThumbnailViewUIModel$1 as ThumbnailViewUIModel, ToolbarAction, ToolbarActionConfig, ToolbarManagerModel$1 as ToolbarManagerModel, TreeView, TreeViewProps, TreeViewSettings, TreeViewUIModel$1 as TreeViewUIModel, UIComponentProps, UploadFileEntry, UploadModel$1 as UploadModel, ViewModeCapabilities, ViewModeDefinition, ViewModeManagerModel$1 as ViewModeManagerModel, ViewModeSettings, ViewModeToggle, ViewModeToggleProps, ViewerConfig, ViewerHost$1 as ViewerHost, ViewerHostModel$1 as ViewerHostModel, ViewerHostProps, ViewerProps, ViewerRegistry$1 as ViewerRegistry, cn, globalViewerRegistry$1 as globalViewerRegistry, viewerConfigToPlugin$1 as viewerConfigToPlugin } from "./index-Ml_SgiKa.js";
5
- import { CheckboxState, DEFAULT_SELECTION_THEME$1 as DEFAULT_SELECTION_THEME, FocusIndicatorStyle, SelectionColorScheme, SelectionIntensity, SimpleTreeProvider$1 as SimpleTreeProvider, TestTreeProvider$1 as TestTreeProvider, Tree$1 as Tree, TreeCheckbox$1 as TreeCheckbox, TreeContextMenu$1 as TreeContextMenu, TreeContextMenuEvent, TreeContextMenuItem, TreeContextMenuProps, TreeDragDropInfo, TreeLoadOptions, TreeLoadResult, TreeModel$1 as TreeModel, TreeNodeData, TreeNodeList$1 as TreeNodeList, TreeNodeListProps, TreeNodeRenderer, TreeProps, TreeProvider, TreeSelectionInfo, TreeSelectionTheme, TreeTable$1 as TreeTable, TreeTableColumn, TreeTableExportOptions, TreeTableProps, TreeTableSort, getCustomColorVariables$1 as getCustomColorVariables, getSelectionClasses$1 as getSelectionClasses, logger$1 as logger } from "./index-kHr9udZD.js";
6
- import { AccessibilityConfig, BenchmarkReport, BenchmarkResult, CalculatedGridView$1 as CalculatedGridView, DETAILS_VIEW_TYPE$1 as DETAILS_VIEW_TYPE, EmptyState$1 as EmptyState, ErrorDisplay$1 as ErrorDisplay, FocusManager$1 as FocusManager, GRID_PRESETS$1 as GRID_PRESETS, GRID_VIEW_TYPE$1 as GRID_VIEW_TYPE, GridItemLayout, GridLayoutCalculator$1 as GridLayoutCalculator, GridLayoutConfig, GridLayoutResult, InlineLoading$1 as InlineLoading, ItemAccessibilityConfig, KeyboardNavigationConfig, KeyboardNavigationOptions, LIST_VIEW_TYPE$1 as LIST_VIEW_TYPE, ListContextMenu$1 as ListContextMenu, ListContextMenuItem, ListDragDropInfo, ListError, ListErrorBoundary$1 as ListErrorBoundary, ListItem$1 as ListItem, ListItemData, ListItemProps, ListItemRenderer, ListItems$1 as ListItems, ListItemsModel$1 as ListItemsModel, ListItemsProps, ListItemsProvider, ListKeyboardHandler$1 as ListKeyboardHandler, ListLoadOptions, ListLoadResult, ListLoader$1 as ListLoader, ListSelectionInfo, ListViewType, LoadError$1 as LoadError, LoadingIndicator$1 as LoadingIndicator, LoadingProgress$1 as LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE$1 as MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS$1 as MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE$1 as MASONRY_VERTICAL_VIEW_TYPE, MasonryItemData, MasonryItemLayout, MasonryLayoutCalculator$1 as MasonryLayoutCalculator, MasonryLayoutConfig, MasonryLayoutResult, MasonryView$1 as MasonryView, NetworkError$1 as NetworkError, NoItems$1 as NoItems, NoSearchResults$1 as NoSearchResults, NoSelection$1 as NoSelection, SearchFilter$1 as SearchFilter, TREEMAP_VIEW_TYPE$1 as TREEMAP_VIEW_TYPE, TestListProvider$1 as TestListProvider, ThumbnailSize, TreemapModel$1 as TreemapModel, TreemapNodeData, TreemapScanProgress, TreemapView$1 as TreemapView, ViewSizeControls$1 as ViewSizeControls, ViewTypeSelector$1 as ViewTypeSelector, ViewTypeSelectorProps, VirtualizationConfig, VirtualizedGrid$1 as VirtualizedGrid, VirtualizedGridProps, VirtualizedList$1 as VirtualizedList, VirtualizedListProps, announceToScreenReader$1 as announceToScreenReader, benchmark$1 as benchmark, benchmarkLogger$1 as benchmarkLogger, createGridCalculator$1 as createGridCalculator, createLiveRegionAnnouncement$1 as createLiveRegionAnnouncement, createMasonryCalculator$1 as createMasonryCalculator, getItemAccessibilityProps$1 as getItemAccessibilityProps, getListAccessibilityProps$1 as getListAccessibilityProps, getNextFocusIndex$1 as getNextFocusIndex, useListKeyboard$1 as useListKeyboard } from "./index-Bryv_GCG.js";
2
+ import { AgendaView$1 as AgendaView, AgendaViewProps, CalendarBrowser$1 as CalendarBrowser, CalendarBrowserProps, CalendarEvent, CalendarInfo, CalendarModel$1 as CalendarModel, CalendarSidebar$1 as CalendarSidebar, CalendarSidebarProps, CalendarViewMode, DayView$1 as DayView, DayViewProps, EventCard$1 as EventCard, EventCardProps, ICalendarProvider, MockCalendarProvider$1 as MockCalendarProvider, MonthView$1 as MonthView, MonthViewProps, WeekView$1 as WeekView, WeekViewProps } from "./index-D3Ob3aXg.js";
3
+ import { ContactAvatar$1 as ContactAvatar, ContactAvatarProps, ContactBrowser$1 as ContactBrowser, ContactBrowserProps, ContactCard$1 as ContactCard, ContactCardProps, ContactDetail$1 as ContactDetail, ContactDetailProps, ContactGroup, ContactGroupSidebar$1 as ContactGroupSidebar, ContactGroupSidebarProps, ContactItem, ContactList$1 as ContactList, ContactListModel$1 as ContactListModel, ContactListProps, ContactSortBy, IContactProvider, MockContactProvider$1 as MockContactProvider } from "./index-Pty-N7-g.js";
4
+ import { ActionContext, ActionResult, BreadcrumbProps, ColumnDefinition, ContextAction, ErrorState, FileBrowser$1 as FileBrowser, FileBrowserContent, FileBrowserContentProps, FileBrowserEventHandlers, FileBrowserHeader, FileBrowserHeaderProps, FileBrowserItem, FileBrowserItemComponent, FileBrowserItemDetails, FileBrowserModel$1 as FileBrowserModel, FileBrowserProps, FileIcon, FileIconProps, FileMatchContext, FileSystemBridge$1 as FileSystemBridge, FileSystemListProvider$1 as FileSystemListProvider, FileSystemProvider$1 as FileSystemProvider, FileSystemTreeProvider$1 as FileSystemTreeProvider, FileViewerPlugin, FilterCriteria, FilterDefinition, GitProvider$1 as GitProvider, GitRepositoryProvider$1 as GitRepositoryProvider, IFileBrowserProvider, IconDefinition, ItemChange, KeyboardShortcut, ListView, ListViewProps, ListViewSettings, ListViewUIModel$1 as ListViewUIModel, LoadingState, NavigationButtons, NavigationButtonsProps, NavigationManagerModel$1 as NavigationManagerModel, NavigationState, PreviewData, ProviderCapabilities, ProviderConfiguration, ResolvedViewer, SelectionManagerModel$1 as SelectionManagerModel, SelectionState, SortCriteria, SortFieldDefinition, ThumbnailViewSettings, ThumbnailViewUIModel$1 as ThumbnailViewUIModel, ToolbarAction, ToolbarActionConfig, ToolbarManagerModel$1 as ToolbarManagerModel, TreeView, TreeViewProps, TreeViewSettings, TreeViewUIModel$1 as TreeViewUIModel, UIComponentProps, UploadFileEntry, UploadModel$1 as UploadModel, ViewModeCapabilities, ViewModeDefinition, ViewModeManagerModel$1 as ViewModeManagerModel, ViewModeSettings, ViewModeToggle, ViewModeToggleProps, ViewerConfig, ViewerHost$1 as ViewerHost, ViewerHostModel$1 as ViewerHostModel, ViewerHostProps, ViewerProps, ViewerRegistry$1 as ViewerRegistry, cn, globalViewerRegistry$1 as globalViewerRegistry, viewerConfigToPlugin$1 as viewerConfigToPlugin } from "./index-DGoLQBX6.js";
5
+ import { AccessibilityConfig, BenchmarkReport, BenchmarkResult, CalculatedGridView$1 as CalculatedGridView, DETAILS_VIEW_TYPE$1 as DETAILS_VIEW_TYPE, EmptyState$1 as EmptyState, ErrorBoundary$1 as ErrorBoundary, ErrorBoundaryProps, ErrorDisplay$1 as ErrorDisplay, FocusManager$1 as FocusManager, GRID_PRESETS$1 as GRID_PRESETS, GRID_VIEW_TYPE$1 as GRID_VIEW_TYPE, GridItemLayout, GridLayoutCalculator$1 as GridLayoutCalculator, GridLayoutConfig, GridLayoutResult, InlineLoading$1 as InlineLoading, ItemAccessibilityConfig, KeyboardNavigationConfig, KeyboardNavigationOptions, LIST_VIEW_TYPE$1 as LIST_VIEW_TYPE, ListContextMenu$1 as ListContextMenu, ListContextMenuItem, ListDragDropInfo, ListError, ListItem$1 as ListItem, ListItemData, ListItemProps, ListItemRenderer, ListItems$1 as ListItems, ListItemsModel$1 as ListItemsModel, ListItemsProps, ListItemsProvider, ListKeyboardHandler$1 as ListKeyboardHandler, ListLoadOptions, ListLoadResult, ListLoader$1 as ListLoader, ListSelectionInfo, ListViewType, LoadError$1 as LoadError, LoadingIndicator$1 as LoadingIndicator, LoadingProgress$1 as LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE$1 as MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS$1 as MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE$1 as MASONRY_VERTICAL_VIEW_TYPE, MasonryItemData, MasonryItemLayout, MasonryLayoutCalculator$1 as MasonryLayoutCalculator, MasonryLayoutConfig, MasonryLayoutResult, MasonryView$1 as MasonryView, NetworkError$1 as NetworkError, NoItems$1 as NoItems, NoSearchResults$1 as NoSearchResults, NoSelection$1 as NoSelection, SearchFilter$1 as SearchFilter, TREEMAP_VIEW_TYPE$1 as TREEMAP_VIEW_TYPE, TestListProvider$1 as TestListProvider, ThumbnailSize, TreemapModel$1 as TreemapModel, TreemapNodeData, TreemapScanProgress, TreemapView$1 as TreemapView, ViewSizeControls$1 as ViewSizeControls, ViewTypeSelector$1 as ViewTypeSelector, ViewTypeSelectorProps, VirtualizationConfig, VirtualizedGrid$1 as VirtualizedGrid, VirtualizedGridProps, VirtualizedList$1 as VirtualizedList, VirtualizedListProps, announceToScreenReader$1 as announceToScreenReader, benchmark$1 as benchmark, benchmarkLogger$1 as benchmarkLogger, createGridCalculator$1 as createGridCalculator, createLiveRegionAnnouncement$1 as createLiveRegionAnnouncement, createMasonryCalculator$1 as createMasonryCalculator, getItemAccessibilityProps$1 as getItemAccessibilityProps, getListAccessibilityProps$1 as getListAccessibilityProps, getNextFocusIndex$1 as getNextFocusIndex, useListKeyboard$1 as useListKeyboard } from "./index-BP4IYXiF.js";
6
+ import { CheckboxState, DEFAULT_SELECTION_THEME$1 as DEFAULT_SELECTION_THEME, FocusIndicatorStyle, SelectionColorScheme, SelectionIntensity, SimpleTreeProvider$1 as SimpleTreeProvider, TestTreeProvider$1 as TestTreeProvider, Tree$1 as Tree, TreeCheckbox$1 as TreeCheckbox, TreeContextMenu$1 as TreeContextMenu, TreeContextMenuEvent, TreeContextMenuItem, TreeContextMenuProps, TreeDragDropInfo, TreeLoadOptions, TreeLoadResult, TreeModel$1 as TreeModel, TreeNodeData, TreeNodeList$1 as TreeNodeList, TreeNodeListProps, TreeNodeRenderer, TreeProps, TreeProvider, TreeSelectionInfo, TreeSelectionTheme, TreeTable$1 as TreeTable, TreeTableColumn, TreeTableExportOptions, TreeTableProps, TreeTableSort, getCustomColorVariables$1 as getCustomColorVariables, getSelectionClasses$1 as getSelectionClasses, logger$1 as logger } from "./index-BkIh8oov.js";
7
7
  import { BranchList$1 as BranchList, BranchListProps, CommitGraph$1 as CommitGraph, CommitList$1 as CommitList, CommitListProps, DiffViewer$1 as DiffViewer, DiffViewerProps, GraphConnection, GraphNode, computeGraphLayout$1 as computeGraphLayout, graphWidth$1 as graphWidth } from "./index-BNmNIWBL.js";
8
- import { ExplorerLayout, ExplorerLayoutProps, ExplorerSections, SimpleExample$1 as SimpleExample } from "./index-DzfY1Tok.js";
8
+ import { Breakpoint, ExplorerLayout, ExplorerLayoutProps, ExplorerSections, ResponsiveLayoutModel$1 as ResponsiveLayoutModel, SimpleExample$1 as SimpleExample, getResponsiveLayout$1 as getResponsiveLayout } from "./index-DnJaZr08.js";
9
9
  import { AlbumSidebar$1 as AlbumSidebar, AlbumSidebarProps, IMediaProvider, MediaBrowser$1 as MediaBrowser, MediaBrowserModel$1 as MediaBrowserModel, MediaBrowserProps, MediaGrid$1 as MediaGrid, MediaGridProps, MediaItem, MediaList$1 as MediaList, MediaListProps, MediaPreview$1 as MediaPreview, MediaPreviewProps, MediaSortBy, MediaTimeline$1 as MediaTimeline, MediaTimelineProps, MediaType, MediaViewMode, MockMediaProvider$1 as MockMediaProvider } from "./index-CuQIjSXs.js";
10
10
  import { contextMenuIconMap, fileExtensionIconMap, getIconForExtension, getIconForFile, iconColorMap, lucideIconMap, resolveIcon } from "./index-DxnJ8FYM.js";
11
- export { AccessibilityConfig, ActionContext, ActionResult, AgendaView, AgendaViewProps, AlbumSidebar, AlbumSidebarProps, BenchmarkReport, BenchmarkResult, BranchList, BranchListProps, BreadcrumbProps, CalculatedGridView, CalendarBrowser, CalendarBrowserProps, CalendarEvent, CalendarInfo, CalendarModel, CalendarSidebar, CalendarSidebarProps, CalendarViewMode, CheckboxState, ColumnDefinition, CommitGraph, CommitList, CommitListProps, ContactAvatar, ContactAvatarProps, ContactBrowser, ContactBrowserProps, ContactCard, ContactCardProps, ContactDetail, ContactDetailProps, ContactGroup, ContactGroupSidebar, ContactGroupSidebarProps, ContactItem, ContactList, ContactListModel, ContactListProps, ContactSortBy, ContextAction, DEFAULT_SELECTION_THEME, DETAILS_VIEW_TYPE, DayView, DayViewProps, DiffViewer, DiffViewerProps, EmptyState, ErrorBoundary, ErrorBoundaryProps, ErrorDisplay, ErrorState, EventCard, EventCardProps, ExplorerLayout, ExplorerLayoutProps, SimpleExample as ExplorerLayoutSimpleExample, ExplorerSections, FileBrowser, FileBrowserContent, FileBrowserContentProps, FileBrowserEventHandlers, FileBrowserHeader, FileBrowserHeaderProps, FileBrowserItem, FileBrowserItemComponent, FileBrowserItemDetails, FileBrowserModel, FileBrowserProps, TreeView as FileBrowserTreeView, TreeViewProps as FileBrowserTreeViewProps, FileIcon, FileIconProps as FileIconUIProps, FileMatchContext, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, FileViewerPlugin, FilterCriteria, FilterDefinition, FocusIndicatorStyle, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GitProvider, GitRepositoryProvider, GraphConnection, GraphNode, GridItemLayout, GridLayoutCalculator, GridLayoutConfig, GridLayoutResult, ICalendarProvider, IContactProvider, IFileBrowserProvider, IMediaProvider, IObjectProvider, IconDefinition, InlineLoading, ItemAccessibilityConfig, ItemChange, KeyboardNavigationConfig, KeyboardNavigationOptions, KeyboardShortcut, LIST_VIEW_TYPE, ListContextMenu, ListContextMenuItem, ListDragDropInfo, ListError, ListErrorBoundary, ListItem, ListItemData, ListItemProps, ListItemRenderer, ListItems, ListItemsModel, ListItemsProps, ListItemsProvider, ListKeyboardHandler, ListLoadOptions, ListLoadResult, ListLoader, ListSelectionInfo, ListView, ListViewProps, ListViewSettings, ListViewType, ListViewUIModel, LoadError, LoadingIndicator, LoadingProgress, LoadingState, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryItemData, MasonryItemLayout, MasonryLayoutCalculator, MasonryLayoutConfig, MasonryLayoutResult, MasonryView, MediaBrowser, MediaBrowserModel, MediaBrowserProps, MediaGrid, MediaGridProps, MediaItem, MediaList, MediaListProps, MediaPreview, MediaPreviewProps, MediaSortBy, MediaTimeline, MediaTimelineProps, MediaType, MediaViewMode, MockCalendarProvider, MockContactProvider, MockMediaProvider, MonthView, MonthViewProps, NavigationButtons, NavigationButtonsProps, NavigationManagerModel, NavigationState, NetworkError, NoItems, NoSearchResults, NoSelection, ObjectMetadata, ObjectType, PreviewData, ProviderCapabilities, ProviderConfiguration, ResolvedViewer, SearchFilter, SelectionColorScheme, SelectionIntensity, SelectionManagerModel, SelectionState, SimpleTreeProvider, SortCriteria, SortFieldDefinition, TREEMAP_VIEW_TYPE, TestListProvider, TestTreeProvider, ThumbnailSize, ThumbnailViewSettings, ThumbnailViewUIModel, ToolbarAction, ToolbarActionConfig, ToolbarManagerModel, Tree, TreeCheckbox, Tree as TreeComponent, TreeProps as TreeComponentProps, TreeContextMenu, TreeContextMenuEvent, TreeContextMenuItem, TreeContextMenuProps, TreeDragDropInfo, TreeLoadOptions, TreeLoadResult, TreeModel, TreeNodeData, TreeNodeList, TreeNodeListProps, TreeNodeRenderer, TreeProps, TreeProvider, TreeSelectionInfo, TreeSelectionTheme, TreeTable, TreeTableColumn, TreeTableExportOptions, TreeTableProps, TreeTableSort, TreeViewSettings, TreeViewUIModel, TreemapModel, TreemapNodeData, TreemapScanProgress, TreemapView, UIComponentProps, UploadFileEntry, UploadModel, ViewModeCapabilities, ViewModeDefinition, ViewModeManagerModel, ViewModeSettings, ViewModeToggle, ViewModeToggleProps, ViewSizeControls, ViewTypeSelector, ViewTypeSelectorProps, ViewerConfig, ViewerHost, ViewerHostModel, ViewerHostProps, ViewerProps, ViewerRegistry, VirtualizationConfig, VirtualizedGrid, VirtualizedGridProps, VirtualizedList, VirtualizedListProps, WeekView, WeekViewProps, announceToScreenReader, benchmark, benchmarkLogger, cn, computeGraphLayout, contextMenuIconMap, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, fileExtensionIconMap, getCustomColorVariables, getIconForExtension, getIconForFile, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, getSelectionClasses, globalViewerRegistry, graphWidth, iconColorMap, logger, lucideIconMap, resolveIcon, useListKeyboard, viewerConfigToPlugin };
11
+ export { AccessibilityConfig, ActionContext, ActionResult, AgendaView, AgendaViewProps, AlbumSidebar, AlbumSidebarProps, BenchmarkReport, BenchmarkResult, BranchList, BranchListProps, BreadcrumbProps, Breakpoint, CalculatedGridView, CalendarBrowser, CalendarBrowserProps, CalendarEvent, CalendarInfo, CalendarModel, CalendarSidebar, CalendarSidebarProps, CalendarViewMode, CheckboxState, ColumnDefinition, CommitGraph, CommitList, CommitListProps, ContactAvatar, ContactAvatarProps, ContactBrowser, ContactBrowserProps, ContactCard, ContactCardProps, ContactDetail, ContactDetailProps, ContactGroup, ContactGroupSidebar, ContactGroupSidebarProps, ContactItem, ContactList, ContactListModel, ContactListProps, ContactSortBy, ContextAction, DEFAULT_SELECTION_THEME, DETAILS_VIEW_TYPE, DayView, DayViewProps, DiffViewer, DiffViewerProps, EmptyState, ErrorBoundary, ErrorBoundaryProps, ErrorDisplay, ErrorState, EventCard, EventCardProps, ExplorerLayout, ExplorerLayoutProps, SimpleExample as ExplorerLayoutSimpleExample, ExplorerSections, FileBrowser, FileBrowserContent, FileBrowserContentProps, FileBrowserEventHandlers, FileBrowserHeader, FileBrowserHeaderProps, FileBrowserItem, FileBrowserItemComponent, FileBrowserItemDetails, FileBrowserModel, FileBrowserProps, TreeView as FileBrowserTreeView, TreeViewProps as FileBrowserTreeViewProps, FileIcon, FileIconProps as FileIconUIProps, FileMatchContext, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, FileViewerPlugin, FilterCriteria, FilterDefinition, FocusIndicatorStyle, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GitProvider, GitRepositoryProvider, GraphConnection, GraphNode, GridItemLayout, GridLayoutCalculator, GridLayoutConfig, GridLayoutResult, ICalendarProvider, IContactProvider, IFileBrowserProvider, IMediaProvider, IObjectProvider, IconDefinition, InlineLoading, ItemAccessibilityConfig, ItemChange, KeyboardNavigationConfig, KeyboardNavigationOptions, KeyboardShortcut, LIST_VIEW_TYPE, ListContextMenu, ListContextMenuItem, ListDragDropInfo, ListError, ErrorBoundary as ListErrorBoundary, ListItem, ListItemData, ListItemProps, ListItemRenderer, ListItems, ListItemsModel, ListItemsProps, ListItemsProvider, ListKeyboardHandler, ListLoadOptions, ListLoadResult, ListLoader, ListSelectionInfo, ListView, ListViewProps, ListViewSettings, ListViewType, ListViewUIModel, LoadError, LoadingIndicator, LoadingProgress, LoadingState, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryItemData, MasonryItemLayout, MasonryLayoutCalculator, MasonryLayoutConfig, MasonryLayoutResult, MasonryView, MediaBrowser, MediaBrowserModel, MediaBrowserProps, MediaGrid, MediaGridProps, MediaItem, MediaList, MediaListProps, MediaPreview, MediaPreviewProps, MediaSortBy, MediaTimeline, MediaTimelineProps, MediaType, MediaViewMode, MockCalendarProvider, MockContactProvider, MockMediaProvider, MonthView, MonthViewProps, NavigationButtons, NavigationButtonsProps, NavigationManagerModel, NavigationState, NetworkError, NoItems, NoSearchResults, NoSelection, ObjectMetadata, ObjectType, PreviewData, ProviderCapabilities, ProviderConfiguration, ResolvedViewer, ResponsiveLayoutModel, SearchFilter, SelectionColorScheme, SelectionIntensity, SelectionManagerModel, SelectionState, SimpleTreeProvider, SortCriteria, SortFieldDefinition, TREEMAP_VIEW_TYPE, TestListProvider, TestTreeProvider, ThumbnailSize, ThumbnailViewSettings, ThumbnailViewUIModel, ToolbarAction, ToolbarActionConfig, ToolbarManagerModel, Tree, TreeCheckbox, Tree as TreeComponent, TreeProps as TreeComponentProps, TreeContextMenu, TreeContextMenuEvent, TreeContextMenuItem, TreeContextMenuProps, TreeDragDropInfo, TreeLoadOptions, TreeLoadResult, TreeModel, TreeNodeData, TreeNodeList, TreeNodeListProps, TreeNodeRenderer, TreeProps, TreeProvider, TreeSelectionInfo, TreeSelectionTheme, TreeTable, TreeTableColumn, TreeTableExportOptions, TreeTableProps, TreeTableSort, TreeViewSettings, TreeViewUIModel, TreemapModel, TreemapNodeData, TreemapScanProgress, TreemapView, UIComponentProps, UploadFileEntry, UploadModel, ViewModeCapabilities, ViewModeDefinition, ViewModeManagerModel, ViewModeSettings, ViewModeToggle, ViewModeToggleProps, ViewSizeControls, ViewTypeSelector, ViewTypeSelectorProps, ViewerConfig, ViewerHost, ViewerHostModel, ViewerHostProps, ViewerProps, ViewerRegistry, VirtualizationConfig, VirtualizedGrid, VirtualizedGridProps, VirtualizedList, VirtualizedListProps, WeekView, WeekViewProps, announceToScreenReader, benchmark, benchmarkLogger, cn, computeGraphLayout, contextMenuIconMap, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, fileExtensionIconMap, getCustomColorVariables, getIconForExtension, getIconForFile, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, getResponsiveLayout, getSelectionClasses, globalViewerRegistry, graphWidth, iconColorMap, logger, lucideIconMap, resolveIcon, useListKeyboard, viewerConfigToPlugin };
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { cn$1 as cn } from "./utils-B4fdKKsy.js";
2
- import { DEFAULT_SELECTION_THEME, SimpleTreeProvider, TestTreeProvider, Tree, TreeCheckbox, TreeContextMenu, TreeModel, TreeNodeList, TreeTable, getCustomColorVariables, getSelectionClasses, logger } from "./tree-Dd9Z0Aso.js";
3
- import { contextMenuIconMap$1 as contextMenuIconMap, fileExtensionIconMap$1 as fileExtensionIconMap, getIconForExtension$1 as getIconForExtension, getIconForFile$1 as getIconForFile, iconColorMap$1 as iconColorMap, lucideIconMap$1 as lucideIconMap, resolveIcon$1 as resolveIcon } from "./iconMap-V4B8P-Uh.js";
2
+ import { DEFAULT_SELECTION_THEME, SimpleTreeProvider, TestTreeProvider, Tree, TreeCheckbox, TreeContextMenu, TreeModel, TreeNodeList, TreeTable, getCustomColorVariables, getSelectionClasses, logger } from "./tree-B9VQcKBp.js";
3
+ import { contextMenuIconMap$1 as contextMenuIconMap, fileExtensionIconMap$1 as fileExtensionIconMap, getIconForExtension$1 as getIconForExtension, getIconForFile$1 as getIconForFile, iconColorMap$1 as iconColorMap, lucideIconMap$1 as lucideIconMap, resolveIcon$1 as resolveIcon } from "./iconMap-DDpe35ek.js";
4
4
  import "./FileBrowserContext-B6jixa2j.js";
5
- import { CalculatedGridView, DETAILS_VIEW_TYPE, EmptyState, ErrorDisplay, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ListErrorBoundary, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, NetworkError, NoItems, NoSearchResults, NoSelection, SearchFilter, TREEMAP_VIEW_TYPE, TestListProvider, TreemapModel, TreemapView, ViewSizeControls, ViewTypeSelector, VirtualizedGrid, VirtualizedList, announceToScreenReader, benchmark, benchmarkLogger, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, useListKeyboard } from "./list-CxfT6hix.js";
5
+ import { CalculatedGridView, DETAILS_VIEW_TYPE, EmptyState, ErrorBoundary, ErrorDisplay, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, NetworkError, NoItems, NoSearchResults, NoSelection, SearchFilter, TREEMAP_VIEW_TYPE, TestListProvider, TreemapModel, TreemapView, ViewSizeControls, ViewTypeSelector, VirtualizedGrid, VirtualizedList, announceToScreenReader, benchmark, benchmarkLogger, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, useListKeyboard } from "./list-DAq-b6RR.js";
6
6
  import { ExplorerLayout$1 as ExplorerLayout } from "./ExplorerLayout-CSIJd7N4.js";
7
- import { ErrorBoundary, FileBrowser, FileBrowserContent_default, FileBrowserHeader_default, FileBrowserItem_default, FileBrowserModel, FileIcon_default, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, GitProvider, GitRepositoryProvider, ListViewUIModel, ListView_default, NavigationButtons_default, NavigationManagerModel, SelectionManagerModel, ThumbnailViewUIModel, ToolbarManagerModel, TreeViewUIModel, TreeView_default, UploadModel, ViewModeManagerModel, ViewModeToggle_default, ViewerHost, ViewerHostModel, ViewerRegistry, globalViewerRegistry, viewerConfigToPlugin } from "./file-browser-m5atC3kF.js";
8
- import { BranchList, CommitGraph, CommitList, DiffViewer, computeGraphLayout, graphWidth } from "./git-B55e6LL-.js";
9
- import { SimpleExample } from "./layout-Ca_4r8ka.js";
10
- import { AlbumSidebar, MediaBrowser, MediaBrowserModel, MediaGrid, MediaList, MediaPreview, MediaTimeline, MockMediaProvider } from "./media-DZ292aKK.js";
11
- import { AgendaView, CalendarBrowser, CalendarModel, CalendarSidebar, DayView, EventCard, MockCalendarProvider, MonthView, WeekView } from "./calendar-DSlrbHoj.js";
12
- import { ContactAvatar, ContactBrowser, ContactCard, ContactDetail, ContactGroupSidebar, ContactList, ContactListModel, MockContactProvider } from "./contacts-DQXTZzHc.js";
7
+ import { FileBrowser, FileBrowserContent_default, FileBrowserHeader_default, FileBrowserItem_default, FileBrowserModel, FileIcon_default, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, GitProvider, GitRepositoryProvider, ListViewUIModel, ListView_default, NavigationButtons_default, NavigationManagerModel, SelectionManagerModel, ThumbnailViewUIModel, ToolbarManagerModel, TreeViewUIModel, TreeView_default, UploadModel, ViewModeManagerModel, ViewModeToggle_default, ViewerHost, ViewerHostModel, ViewerRegistry, globalViewerRegistry, viewerConfigToPlugin } from "./file-browser-CkhNwADU.js";
8
+ import { BranchList, CommitGraph, CommitList, DiffViewer, computeGraphLayout, graphWidth } from "./git-m4lboTfx.js";
9
+ import { ResponsiveLayoutModel, SimpleExample, getResponsiveLayout } from "./layout-BYsc16hD.js";
10
+ import { AlbumSidebar, MediaBrowser, MediaBrowserModel, MediaGrid, MediaList, MediaPreview, MediaTimeline, MockMediaProvider } from "./media-DuczOGsk.js";
11
+ import { AgendaView, CalendarBrowser, CalendarModel, CalendarSidebar, DayView, EventCard, MockCalendarProvider, MonthView, WeekView } from "./calendar-DQKfYSQS.js";
12
+ import { ContactAvatar, ContactBrowser, ContactCard, ContactDetail, ContactGroupSidebar, ContactList, ContactListModel, MockContactProvider } from "./contacts-By9Wg3kn.js";
13
13
  import "./icons-CIsIOZXR.js";
14
14
 
15
- export { AgendaView, AlbumSidebar, BranchList, CalculatedGridView, CalendarBrowser, CalendarModel, CalendarSidebar, CommitGraph, CommitList, ContactAvatar, ContactBrowser, ContactCard, ContactDetail, ContactGroupSidebar, ContactList, ContactListModel, DEFAULT_SELECTION_THEME, DETAILS_VIEW_TYPE, DayView, DiffViewer, EmptyState, ErrorBoundary, ErrorDisplay, EventCard, ExplorerLayout, SimpleExample as ExplorerLayoutSimpleExample, FileBrowser, FileBrowserContent_default as FileBrowserContent, FileBrowserHeader_default as FileBrowserHeader, FileBrowserItem_default as FileBrowserItemComponent, FileBrowserModel, TreeView_default as FileBrowserTreeView, FileIcon_default as FileIcon, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GitProvider, GitRepositoryProvider, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ListErrorBoundary, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, ListView_default as ListView, ListViewUIModel, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, MediaBrowser, MediaBrowserModel, MediaGrid, MediaList, MediaPreview, MediaTimeline, MockCalendarProvider, MockContactProvider, MockMediaProvider, MonthView, NavigationButtons_default as NavigationButtons, NavigationManagerModel, NetworkError, NoItems, NoSearchResults, NoSelection, SearchFilter, SelectionManagerModel, SimpleTreeProvider, TREEMAP_VIEW_TYPE, TestListProvider, TestTreeProvider, ThumbnailViewUIModel, ToolbarManagerModel, Tree, TreeCheckbox, Tree as TreeComponent, TreeContextMenu, TreeModel, TreeNodeList, TreeTable, TreeViewUIModel, TreemapModel, TreemapView, UploadModel, ViewModeManagerModel, ViewModeToggle_default as ViewModeToggle, ViewSizeControls, ViewTypeSelector, ViewerHost, ViewerHostModel, ViewerRegistry, VirtualizedGrid, VirtualizedList, WeekView, announceToScreenReader, benchmark, benchmarkLogger, cn, computeGraphLayout, contextMenuIconMap, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, fileExtensionIconMap, getCustomColorVariables, getIconForExtension, getIconForFile, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, getSelectionClasses, globalViewerRegistry, graphWidth, iconColorMap, logger, lucideIconMap, resolveIcon, useListKeyboard, viewerConfigToPlugin };
15
+ export { AgendaView, AlbumSidebar, BranchList, CalculatedGridView, CalendarBrowser, CalendarModel, CalendarSidebar, CommitGraph, CommitList, ContactAvatar, ContactBrowser, ContactCard, ContactDetail, ContactGroupSidebar, ContactList, ContactListModel, DEFAULT_SELECTION_THEME, DETAILS_VIEW_TYPE, DayView, DiffViewer, EmptyState, ErrorBoundary, ErrorDisplay, EventCard, ExplorerLayout, SimpleExample as ExplorerLayoutSimpleExample, FileBrowser, FileBrowserContent_default as FileBrowserContent, FileBrowserHeader_default as FileBrowserHeader, FileBrowserItem_default as FileBrowserItemComponent, FileBrowserModel, TreeView_default as FileBrowserTreeView, FileIcon_default as FileIcon, FileSystemBridge, FileSystemListProvider, FileSystemProvider, FileSystemTreeProvider, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GitProvider, GitRepositoryProvider, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ErrorBoundary as ListErrorBoundary, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, ListView_default as ListView, ListViewUIModel, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, MediaBrowser, MediaBrowserModel, MediaGrid, MediaList, MediaPreview, MediaTimeline, MockCalendarProvider, MockContactProvider, MockMediaProvider, MonthView, NavigationButtons_default as NavigationButtons, NavigationManagerModel, NetworkError, NoItems, NoSearchResults, NoSelection, ResponsiveLayoutModel, SearchFilter, SelectionManagerModel, SimpleTreeProvider, TREEMAP_VIEW_TYPE, TestListProvider, TestTreeProvider, ThumbnailViewUIModel, ToolbarManagerModel, Tree, TreeCheckbox, Tree as TreeComponent, TreeContextMenu, TreeModel, TreeNodeList, TreeTable, TreeViewUIModel, TreemapModel, TreemapView, UploadModel, ViewModeManagerModel, ViewModeToggle_default as ViewModeToggle, ViewSizeControls, ViewTypeSelector, ViewerHost, ViewerHostModel, ViewerRegistry, VirtualizedGrid, VirtualizedList, WeekView, announceToScreenReader, benchmark, benchmarkLogger, cn, computeGraphLayout, contextMenuIconMap, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, fileExtensionIconMap, getCustomColorVariables, getIconForExtension, getIconForFile, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, getResponsiveLayout, getSelectionClasses, globalViewerRegistry, graphWidth, iconColorMap, logger, lucideIconMap, resolveIcon, useListKeyboard, viewerConfigToPlugin };
@@ -0,0 +1,183 @@
1
+ import { ExplorerLayout$1 as ExplorerLayout } from "./ExplorerLayout-CSIJd7N4.js";
2
+ import React from "react";
3
+ import { Button } from "@anymux/ui/components/button";
4
+ import { action, makeAutoObservable } from "mobx";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+
7
+ //#region src/layout/models/ResponsiveLayoutModel.ts
8
+ const BREAKPOINTS = {
9
+ xs: 0,
10
+ sm: 640,
11
+ md: 768,
12
+ lg: 1024,
13
+ xl: 1280,
14
+ "2xl": 1536
15
+ };
16
+ /**
17
+ * MobX model that tracks viewport breakpoints via matchMedia.
18
+ * Shared across all ui-kit components for consistent responsive behavior.
19
+ *
20
+ * Usage:
21
+ * const responsive = new ResponsiveLayoutModel();
22
+ * responsive.attach(); // start listening
23
+ * // ... use responsive.isMobile, responsive.breakpoint, etc.
24
+ * responsive.detach(); // stop listening
25
+ */
26
+ var ResponsiveLayoutModel = class {
27
+ constructor() {
28
+ this.breakpoint = "lg";
29
+ this.width = typeof window !== "undefined" ? window.innerWidth : 1024;
30
+ this.queries = new Map();
31
+ this.cleanups = [];
32
+ makeAutoObservable(this, {
33
+ attach: false,
34
+ detach: false
35
+ });
36
+ }
37
+ get isMobile() {
38
+ return this.width < BREAKPOINTS.md;
39
+ }
40
+ get isTablet() {
41
+ return this.width >= BREAKPOINTS.md && this.width < BREAKPOINTS.lg;
42
+ }
43
+ get isDesktop() {
44
+ return this.width >= BREAKPOINTS.lg;
45
+ }
46
+ /** True if viewport is at or above the given breakpoint */
47
+ isAtLeast(bp) {
48
+ return this.width >= BREAKPOINTS[bp];
49
+ }
50
+ /** Suggested column count for grid layouts */
51
+ get gridColumns() {
52
+ if (this.width < BREAKPOINTS.sm) return 1;
53
+ if (this.width < BREAKPOINTS.md) return 2;
54
+ if (this.width < BREAKPOINTS.lg) return 4;
55
+ if (this.width < BREAKPOINTS.xl) return 6;
56
+ return 8;
57
+ }
58
+ /** Start listening for viewport changes */
59
+ attach() {
60
+ if (typeof window === "undefined") return;
61
+ const entries = Object.entries(BREAKPOINTS);
62
+ entries.sort((a, b) => b[1] - a[1]);
63
+ for (const [bp, minWidth] of entries) {
64
+ const mql = window.matchMedia(`(min-width: ${minWidth}px)`);
65
+ this.queries.set(bp, mql);
66
+ const handler = action(() => {
67
+ this.width = window.innerWidth;
68
+ this.breakpoint = this.computeBreakpoint();
69
+ });
70
+ mql.addEventListener("change", handler);
71
+ this.cleanups.push(() => mql.removeEventListener("change", handler));
72
+ }
73
+ this.width = window.innerWidth;
74
+ this.breakpoint = this.computeBreakpoint();
75
+ }
76
+ /** Stop listening */
77
+ detach() {
78
+ this.cleanups.forEach((fn) => fn());
79
+ this.cleanups = [];
80
+ this.queries.clear();
81
+ }
82
+ computeBreakpoint() {
83
+ const entries = Object.entries(BREAKPOINTS);
84
+ entries.sort((a, b) => b[1] - a[1]);
85
+ for (const [bp, minWidth] of entries) if (this.width >= minWidth) return bp;
86
+ return "xs";
87
+ }
88
+ };
89
+ /** Singleton for app-wide responsive state */
90
+ let _instance = null;
91
+ function getResponsiveLayout() {
92
+ if (!_instance) {
93
+ _instance = new ResponsiveLayoutModel();
94
+ _instance.attach();
95
+ }
96
+ return _instance;
97
+ }
98
+
99
+ //#endregion
100
+ //#region src/layout/examples/SimpleExample.tsx
101
+ const SimpleExample = () => {
102
+ const sections = {
103
+ header: /* @__PURE__ */ jsxs("div", {
104
+ className: "p-4 flex items-center justify-between border-b",
105
+ children: [/* @__PURE__ */ jsx("h1", {
106
+ className: "text-lg font-semibold",
107
+ children: "My App"
108
+ }), /* @__PURE__ */ jsx(Button, {
109
+ variant: "outline",
110
+ size: "sm",
111
+ children: "Settings"
112
+ })]
113
+ }),
114
+ sidebar: {
115
+ content: /* @__PURE__ */ jsxs("div", {
116
+ className: "p-4",
117
+ children: [/* @__PURE__ */ jsx("h3", {
118
+ className: "font-medium mb-2",
119
+ children: "Navigation"
120
+ }), /* @__PURE__ */ jsxs("div", {
121
+ className: "space-y-1",
122
+ children: [
123
+ /* @__PURE__ */ jsx("div", {
124
+ className: "p-2 rounded hover:bg-muted cursor-pointer",
125
+ children: "📁 Files"
126
+ }),
127
+ /* @__PURE__ */ jsx("div", {
128
+ className: "p-2 rounded hover:bg-muted cursor-pointer",
129
+ children: "🔍 Search"
130
+ }),
131
+ /* @__PURE__ */ jsx("div", {
132
+ className: "p-2 rounded hover:bg-muted cursor-pointer",
133
+ children: "⚙️ Settings"
134
+ })
135
+ ]
136
+ })]
137
+ }),
138
+ toolbar: /* @__PURE__ */ jsx("div", {
139
+ className: "p-2 border-b",
140
+ children: /* @__PURE__ */ jsx("span", {
141
+ className: "text-sm font-medium",
142
+ children: "Explorer"
143
+ })
144
+ }),
145
+ width: 240
146
+ },
147
+ main: {
148
+ content: /* @__PURE__ */ jsxs("div", {
149
+ className: "p-8 text-center",
150
+ children: [/* @__PURE__ */ jsx("h2", {
151
+ className: "text-xl font-semibold mb-4",
152
+ children: "Welcome to ExplorerLayout"
153
+ }), /* @__PURE__ */ jsx("p", {
154
+ className: "text-muted-foreground",
155
+ children: "This is the main content area. It automatically adapts to different screen sizes."
156
+ })]
157
+ }),
158
+ toolbar: /* @__PURE__ */ jsxs("div", {
159
+ className: "p-2 border-b flex items-center justify-between",
160
+ children: [/* @__PURE__ */ jsx("span", {
161
+ className: "text-sm font-medium",
162
+ children: "Main Content"
163
+ }), /* @__PURE__ */ jsx(Button, {
164
+ variant: "ghost",
165
+ size: "sm",
166
+ children: "Action"
167
+ })]
168
+ })
169
+ },
170
+ footer: /* @__PURE__ */ jsx("div", {
171
+ className: "p-2 border-t text-center text-sm text-muted-foreground",
172
+ children: "Ready"
173
+ })
174
+ };
175
+ return /* @__PURE__ */ jsx("div", {
176
+ className: "h-screen w-screen",
177
+ children: /* @__PURE__ */ jsx(ExplorerLayout, { sections })
178
+ });
179
+ };
180
+
181
+ //#endregion
182
+ export { ResponsiveLayoutModel, SimpleExample, getResponsiveLayout };
183
+ //# sourceMappingURL=layout-BYsc16hD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout-BYsc16hD.js","names":["BREAKPOINTS: Record<Breakpoint, number>","bp: Breakpoint","_instance: ResponsiveLayoutModel | null","SimpleExample: React.FC","sections: ExplorerSections"],"sources":["../src/layout/models/ResponsiveLayoutModel.ts","../src/layout/examples/SimpleExample.tsx"],"sourcesContent":["import { makeAutoObservable, action } from 'mobx';\n\nexport type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\nconst BREAKPOINTS: Record<Breakpoint, number> = {\n xs: 0,\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n};\n\n/**\n * MobX model that tracks viewport breakpoints via matchMedia.\n * Shared across all ui-kit components for consistent responsive behavior.\n *\n * Usage:\n * const responsive = new ResponsiveLayoutModel();\n * responsive.attach(); // start listening\n * // ... use responsive.isMobile, responsive.breakpoint, etc.\n * responsive.detach(); // stop listening\n */\nexport class ResponsiveLayoutModel {\n breakpoint: Breakpoint = 'lg';\n width = typeof window !== 'undefined' ? window.innerWidth : 1024;\n\n private queries = new Map<string, MediaQueryList>();\n private cleanups: Array<() => void> = [];\n\n constructor() {\n makeAutoObservable(this, {\n attach: false,\n detach: false,\n });\n }\n\n get isMobile(): boolean {\n return this.width < BREAKPOINTS.md;\n }\n\n get isTablet(): boolean {\n return this.width >= BREAKPOINTS.md && this.width < BREAKPOINTS.lg;\n }\n\n get isDesktop(): boolean {\n return this.width >= BREAKPOINTS.lg;\n }\n\n /** True if viewport is at or above the given breakpoint */\n isAtLeast(bp: Breakpoint): boolean {\n return this.width >= BREAKPOINTS[bp];\n }\n\n /** Suggested column count for grid layouts */\n get gridColumns(): number {\n if (this.width < BREAKPOINTS.sm) return 1;\n if (this.width < BREAKPOINTS.md) return 2;\n if (this.width < BREAKPOINTS.lg) return 4;\n if (this.width < BREAKPOINTS.xl) return 6;\n return 8;\n }\n\n /** Start listening for viewport changes */\n attach(): void {\n if (typeof window === 'undefined') return;\n\n const entries = Object.entries(BREAKPOINTS) as Array<[Breakpoint, number]>;\n // Sort descending so we match the largest breakpoint first\n entries.sort((a, b) => b[1] - a[1]);\n\n for (const [bp, minWidth] of entries) {\n const mql = window.matchMedia(`(min-width: ${minWidth}px)`);\n this.queries.set(bp, mql);\n\n const handler = action(() => {\n this.width = window.innerWidth;\n this.breakpoint = this.computeBreakpoint();\n });\n\n mql.addEventListener('change', handler);\n this.cleanups.push(() => mql.removeEventListener('change', handler));\n }\n\n // Set initial values\n this.width = window.innerWidth;\n this.breakpoint = this.computeBreakpoint();\n }\n\n /** Stop listening */\n detach(): void {\n this.cleanups.forEach((fn) => fn());\n this.cleanups = [];\n this.queries.clear();\n }\n\n private computeBreakpoint(): Breakpoint {\n const entries = Object.entries(BREAKPOINTS) as Array<[Breakpoint, number]>;\n entries.sort((a, b) => b[1] - a[1]);\n for (const [bp, minWidth] of entries) {\n if (this.width >= minWidth) return bp;\n }\n return 'xs';\n }\n}\n\n/** Singleton for app-wide responsive state */\nlet _instance: ResponsiveLayoutModel | null = null;\n\nexport function getResponsiveLayout(): ResponsiveLayoutModel {\n if (!_instance) {\n _instance = new ResponsiveLayoutModel();\n _instance.attach();\n }\n return _instance;\n}\n","import React from 'react';\nimport { ExplorerLayout, type ExplorerSections } from '../';\nimport { Button } from '@anymux/ui/components/button';\n\n// AICODE-NOTE: Minimal example showing ExplorerLayout basic usage\nexport const SimpleExample: React.FC = () => {\n const sections: ExplorerSections = {\n header: (\n <div className=\"p-4 flex items-center justify-between border-b\">\n <h1 className=\"text-lg font-semibold\">My App</h1>\n <Button variant=\"outline\" size=\"sm\">Settings</Button>\n </div>\n ),\n sidebar: {\n content: (\n <div className=\"p-4\">\n <h3 className=\"font-medium mb-2\">Navigation</h3>\n <div className=\"space-y-1\">\n <div className=\"p-2 rounded hover:bg-muted cursor-pointer\">📁 Files</div>\n <div className=\"p-2 rounded hover:bg-muted cursor-pointer\">🔍 Search</div>\n <div className=\"p-2 rounded hover:bg-muted cursor-pointer\">⚙️ Settings</div>\n </div>\n </div>\n ),\n toolbar: (\n <div className=\"p-2 border-b\">\n <span className=\"text-sm font-medium\">Explorer</span>\n </div>\n ),\n width: 240,\n },\n main: {\n content: (\n <div className=\"p-8 text-center\">\n <h2 className=\"text-xl font-semibold mb-4\">Welcome to ExplorerLayout</h2>\n <p className=\"text-muted-foreground\">\n This is the main content area. It automatically adapts to different screen sizes.\n </p>\n </div>\n ),\n toolbar: (\n <div className=\"p-2 border-b flex items-center justify-between\">\n <span className=\"text-sm font-medium\">Main Content</span>\n <Button variant=\"ghost\" size=\"sm\">Action</Button>\n </div>\n ),\n },\n footer: (\n <div className=\"p-2 border-t text-center text-sm text-muted-foreground\">\n Ready\n </div>\n ),\n };\n\n return (\n <div className=\"h-screen w-screen\">\n <ExplorerLayout sections={sections} />\n </div>\n );\n}; "],"mappings":";;;;;;;AAIA,MAAMA,cAA0C;CAC9C,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,OAAO;AACR;;;;;;;;;;;AAYD,IAAa,wBAAb,MAAmC;CAOjC,cAAc;OANd,aAAyB;OACzB,eAAe,WAAW,cAAc,OAAO,aAAa;OAEpD,UAAU,IAAI;OACd,WAA8B,CAAE;AAGtC,qBAAmB,MAAM;GACvB,QAAQ;GACR,QAAQ;EACT,EAAC;CACH;CAED,IAAI,WAAoB;AACtB,SAAO,KAAK,QAAQ,YAAY;CACjC;CAED,IAAI,WAAoB;AACtB,SAAO,KAAK,SAAS,YAAY,MAAM,KAAK,QAAQ,YAAY;CACjE;CAED,IAAI,YAAqB;AACvB,SAAO,KAAK,SAAS,YAAY;CAClC;;CAGD,UAAUC,IAAyB;AACjC,SAAO,KAAK,SAAS,YAAY;CAClC;;CAGD,IAAI,cAAsB;AACxB,MAAI,KAAK,QAAQ,YAAY,GAAI,QAAO;AACxC,MAAI,KAAK,QAAQ,YAAY,GAAI,QAAO;AACxC,MAAI,KAAK,QAAQ,YAAY,GAAI,QAAO;AACxC,MAAI,KAAK,QAAQ,YAAY,GAAI,QAAO;AACxC,SAAO;CACR;;CAGD,SAAe;AACb,aAAW,WAAW,YAAa;EAEnC,MAAM,UAAU,OAAO,QAAQ,YAAY;AAE3C,UAAQ,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG;AAEnC,OAAK,MAAM,CAAC,IAAI,SAAS,IAAI,SAAS;GACpC,MAAM,MAAM,OAAO,YAAY,cAAc,SAAS,KAAK;AAC3D,QAAK,QAAQ,IAAI,IAAI,IAAI;GAEzB,MAAM,UAAU,OAAO,MAAM;AAC3B,SAAK,QAAQ,OAAO;AACpB,SAAK,aAAa,KAAK,mBAAmB;GAC3C,EAAC;AAEF,OAAI,iBAAiB,UAAU,QAAQ;AACvC,QAAK,SAAS,KAAK,MAAM,IAAI,oBAAoB,UAAU,QAAQ,CAAC;EACrE;AAGD,OAAK,QAAQ,OAAO;AACpB,OAAK,aAAa,KAAK,mBAAmB;CAC3C;;CAGD,SAAe;AACb,OAAK,SAAS,QAAQ,CAAC,OAAO,IAAI,CAAC;AACnC,OAAK,WAAW,CAAE;AAClB,OAAK,QAAQ,OAAO;CACrB;CAED,oBAAwC;EACtC,MAAM,UAAU,OAAO,QAAQ,YAAY;AAC3C,UAAQ,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,GAAG;AACnC,OAAK,MAAM,CAAC,IAAI,SAAS,IAAI,QAC3B,KAAI,KAAK,SAAS,SAAU,QAAO;AAErC,SAAO;CACR;AACF;;AAGD,IAAIC,YAA0C;AAE9C,SAAgB,sBAA6C;AAC3D,MAAK,WAAW;AACd,cAAY,IAAI;AAChB,YAAU,QAAQ;CACnB;AACD,QAAO;AACR;;;;AC9GD,MAAaC,gBAA0B,MAAM;CAC3C,MAAMC,WAA6B;EACjC,wBACE,KAAC,OAAA;GAAI,WAAU;8BACb,IAAC,MAAA;IAAG,WAAU;cAAwB;KAAW,kBACjD,IAAC,QAAA;IAAO,SAAQ;IAAU,MAAK;cAAK;KAAiB;IACjD;EAER,SAAS;GACP,yBACE,KAAC,OAAA;IAAI,WAAU;+BACb,IAAC,MAAA;KAAG,WAAU;eAAmB;MAAe,kBAChD,KAAC,OAAA;KAAI,WAAU;;sBACb,IAAC,OAAA;OAAI,WAAU;iBAA4C;QAAc;sBACzE,IAAC,OAAA;OAAI,WAAU;iBAA4C;QAAe;sBAC1E,IAAC,OAAA;OAAI,WAAU;iBAA4C;QAAiB;;MACxE;KACF;GAER,yBACE,IAAC,OAAA;IAAI,WAAU;8BACb,IAAC,QAAA;KAAK,WAAU;eAAsB;MAAe;KACjD;GAER,OAAO;EACR;EACD,MAAM;GACJ,yBACE,KAAC,OAAA;IAAI,WAAU;+BACb,IAAC,MAAA;KAAG,WAAU;eAA6B;MAA8B,kBACzE,IAAC,KAAA;KAAE,WAAU;eAAwB;MAEjC;KACA;GAER,yBACE,KAAC,OAAA;IAAI,WAAU;+BACb,IAAC,QAAA;KAAK,WAAU;eAAsB;MAAmB,kBACzD,IAAC,QAAA;KAAO,SAAQ;KAAQ,MAAK;eAAK;MAAe;KAC7C;EAET;EACD,wBACE,IAAC,OAAA;GAAI,WAAU;aAAyD;IAElE;CAET;AAED,wBACE,IAAC,OAAA;EAAI,WAAU;4BACb,IAAC,gBAAA,EAAyB,SAAA,EAAY;GAClC;AAET"}
package/dist/layout.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ExplorerLayout, ExplorerLayoutProps, ExplorerSections, SimpleExample$1 as SimpleExample } from "./index-DzfY1Tok.js";
2
- export { ExplorerLayout, ExplorerLayoutProps, SimpleExample as ExplorerLayoutSimpleExample, ExplorerSections };
1
+ import { Breakpoint, ExplorerLayout, ExplorerLayoutProps, ExplorerSections, ResponsiveLayoutModel$1 as ResponsiveLayoutModel, SimpleExample$1 as SimpleExample, getResponsiveLayout$1 as getResponsiveLayout } from "./index-DnJaZr08.js";
2
+ export { Breakpoint, ExplorerLayout, ExplorerLayoutProps, SimpleExample as ExplorerLayoutSimpleExample, ExplorerSections, ResponsiveLayoutModel, getResponsiveLayout };
package/dist/layout.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./utils-B4fdKKsy.js";
2
2
  import { ExplorerLayout$1 as ExplorerLayout } from "./ExplorerLayout-CSIJd7N4.js";
3
- import { SimpleExample } from "./layout-Ca_4r8ka.js";
3
+ import { ResponsiveLayoutModel, SimpleExample, getResponsiveLayout } from "./layout-BYsc16hD.js";
4
4
 
5
- export { ExplorerLayout, SimpleExample as ExplorerLayoutSimpleExample };
5
+ export { ExplorerLayout, SimpleExample as ExplorerLayoutSimpleExample, ResponsiveLayoutModel, getResponsiveLayout };
@@ -1,8 +1,9 @@
1
- import { contextMenuIconMap$1 as contextMenuIconMap, iconColorMap$1 as iconColorMap, lucideIconMap$1 as lucideIconMap } from "./iconMap-V4B8P-Uh.js";
1
+ import { cn$1 as cn } from "./utils-B4fdKKsy.js";
2
+ import { contextMenuIconMap$1 as contextMenuIconMap, iconColorMap$1 as iconColorMap, lucideIconMap$1 as lucideIconMap } from "./iconMap-DDpe35ek.js";
2
3
  import { useFileBrowserContext } from "./FileBrowserContext-B6jixa2j.js";
3
4
  import React, { Component, useCallback, useEffect, useMemo, useRef, useState } from "react";
4
5
  import { observer } from "mobx-react-lite";
5
- import { Archive, BookOpen, Braces, ChevronDown, Code, Columns, Columns3, Database, File, FileText, Folder, GitBranch, Globe, Grid, Image, Key, LayoutList, List, MoreHorizontal, Music, Package, Palette, Play, Search, SearchX, Settings, SquareStack, Table, X, Zap } from "lucide-react";
6
+ import { AlertTriangle, Archive, BookOpen, Braces, ChevronDown, Code, Columns, Columns3, Database, File, FileText, Folder, GitBranch, Globe, Grid, Image, Key, LayoutList, List, MoreHorizontal, Music, Package, Palette, Play, Search, SearchX, Settings, SquareStack, Table, X, Zap } from "lucide-react";
6
7
  import { flow, makeAutoObservable, observable } from "mobx";
7
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
9
  import { FixedSizeGrid, FixedSizeList } from "react-window";
@@ -72,8 +73,8 @@ function getItemAccessibilityProps(config) {
72
73
  };
73
74
  }
74
75
  function createLiveRegionAnnouncement(config) {
75
- const { action, itemName, itemCount, selectedCount, totalCount, errorMessage } = config;
76
- switch (action) {
76
+ const { action: action$1, itemName, itemCount, selectedCount, totalCount, errorMessage } = config;
77
+ switch (action$1) {
77
78
  case "select":
78
79
  if (itemName && selectedCount !== void 0) return `${itemName} selected. ${selectedCount} of ${totalCount} items selected.`;
79
80
  return "Item selected";
@@ -332,7 +333,7 @@ const ListItemComponent = observer(({ item, index, totalItems, viewType, provide
332
333
  const resolveItemIcon = (iconName, sizeClass = "w-4 h-4") => {
333
334
  const name = iconName || "file";
334
335
  const MappedIcon = lucideIconMap[name] || File;
335
- const colorClass = iconColorMap[name] || "text-gray-400";
336
+ const colorClass = iconColorMap[name] || "text-muted-foreground";
336
337
  return /* @__PURE__ */ jsx(MappedIcon, { className: `${sizeClass} ${colorClass}` });
337
338
  };
338
339
  const renderIcon = (sizeClass = "w-4 h-4") => {
@@ -4797,11 +4798,11 @@ const InlineLoading = observer(InlineLoadingComponent);
4797
4798
  const LoadingProgress = observer(LoadingProgressComponent);
4798
4799
 
4799
4800
  //#endregion
4800
- //#region src/list/components/shared/ErrorBoundary.tsx
4801
- var ListErrorBoundary = class extends Component {
4801
+ //#region src/shared/ErrorBoundary.tsx
4802
+ var ErrorBoundary = class extends Component {
4802
4803
  constructor(props) {
4803
4804
  super(props);
4804
- this.handleRetry = () => {
4805
+ this.handleReset = () => {
4805
4806
  this.setState({
4806
4807
  hasError: false,
4807
4808
  error: null,
@@ -4821,62 +4822,47 @@ var ListErrorBoundary = class extends Component {
4821
4822
  };
4822
4823
  }
4823
4824
  componentDidCatch(error, errorInfo) {
4824
- this.setState({
4825
- error,
4826
- errorInfo
4827
- });
4828
- if (this.props.onError) this.props.onError(error, errorInfo);
4829
- console.error("ListItemsComponent Error:", error, errorInfo);
4825
+ const errorInfoString = errorInfo.componentStack || "";
4826
+ this.setState({ errorInfo: errorInfoString });
4827
+ this.props.onError?.(error, errorInfoString);
4828
+ console.error("ErrorBoundary caught an error:", error);
4829
+ console.error("Error Info:", errorInfo);
4830
4830
  }
4831
4831
  render() {
4832
4832
  if (this.state.hasError) {
4833
- if (this.props.fallback && this.state.error && this.state.errorInfo) return this.props.fallback(this.state.error, this.state.errorInfo);
4834
- return /* @__PURE__ */ jsx("div", {
4835
- className: `flex items-center justify-center p-8 ${this.props.className || ""}`,
4836
- children: /* @__PURE__ */ jsxs("div", {
4837
- className: "text-center space-y-4 max-w-md",
4838
- children: [
4839
- /* @__PURE__ */ jsx("div", {
4840
- className: "text-destructive",
4841
- children: /* @__PURE__ */ jsx("svg", {
4842
- className: "w-12 h-12 mx-auto mb-4",
4843
- fill: "none",
4844
- stroke: "currentColor",
4845
- viewBox: "0 0 24 24",
4846
- children: /* @__PURE__ */ jsx("path", {
4847
- strokeLinecap: "round",
4848
- strokeLinejoin: "round",
4849
- strokeWidth: 2,
4850
- d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"
4851
- })
4852
- })
4853
- }),
4854
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
4855
- className: "text-lg font-semibold text-foreground mb-2",
4856
- children: "Something went wrong"
4857
- }), /* @__PURE__ */ jsx("p", {
4858
- className: "text-sm text-muted-foreground mb-4",
4859
- children: "An error occurred while displaying the list items."
4860
- })] }),
4861
- /* @__PURE__ */ jsxs("div", {
4862
- className: "space-y-2",
4863
- children: [/* @__PURE__ */ jsx("button", {
4864
- onClick: this.handleRetry,
4865
- className: "px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 transition-colors",
4866
- children: "Try Again"
4867
- }), typeof window !== "undefined" && this.state.error && /* @__PURE__ */ jsxs("details", {
4868
- className: "text-left",
4869
- children: [/* @__PURE__ */ jsx("summary", {
4870
- className: "text-xs text-muted-foreground cursor-pointer hover:text-foreground",
4871
- children: "Show Error Details"
4872
- }), /* @__PURE__ */ jsxs("pre", {
4873
- className: "text-xs text-destructive mt-2 p-2 bg-muted rounded overflow-auto max-h-32",
4874
- children: [this.state.error.toString(), this.state.errorInfo?.componentStack]
4875
- })]
4876
- })]
4877
- })
4878
- ]
4879
- })
4833
+ const { fallback, className } = this.props;
4834
+ const { error, errorInfo } = this.state;
4835
+ if (fallback && error) return fallback(error, errorInfo || "", this.handleReset);
4836
+ return /* @__PURE__ */ jsxs("div", {
4837
+ className: cn("flex flex-col items-center justify-center p-8 text-center border border-destructive/20 rounded-lg bg-destructive/5", className),
4838
+ role: "alert",
4839
+ "aria-live": "assertive",
4840
+ children: [
4841
+ /* @__PURE__ */ jsx(AlertTriangle, {
4842
+ className: "w-12 h-12 text-destructive mb-4",
4843
+ "aria-hidden": "true"
4844
+ }),
4845
+ /* @__PURE__ */ jsx("h2", {
4846
+ className: "text-lg font-semibold text-destructive mb-2",
4847
+ children: "Something went wrong"
4848
+ }),
4849
+ /* @__PURE__ */ jsx("p", {
4850
+ className: "text-sm text-muted-foreground mb-4 max-w-md",
4851
+ children: error?.message || "An unexpected error occurred."
4852
+ }),
4853
+ /* @__PURE__ */ jsxs("div", {
4854
+ className: "flex gap-2",
4855
+ children: [/* @__PURE__ */ jsx("button", {
4856
+ onClick: this.handleReset,
4857
+ className: "px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 transition-colors",
4858
+ children: "Try Again"
4859
+ }), /* @__PURE__ */ jsx("button", {
4860
+ onClick: () => window.location.reload(),
4861
+ className: "px-4 py-2 bg-secondary text-secondary-foreground rounded-md hover:bg-secondary/90 focus:outline-none focus:ring-2 focus:ring-secondary focus:ring-offset-2 transition-colors",
4862
+ children: "Reload Page"
4863
+ })]
4864
+ })
4865
+ ]
4880
4866
  });
4881
4867
  }
4882
4868
  return this.props.children;
@@ -6827,5 +6813,5 @@ const MASONRY_PRESETS = {
6827
6813
  };
6828
6814
 
6829
6815
  //#endregion
6830
- export { CalculatedGridView, DETAILS_VIEW_TYPE, EmptyState$1 as EmptyState, ErrorDisplay$1 as ErrorDisplay, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ListErrorBoundary, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, NetworkError, NoItems, NoSearchResults, NoSelection, SearchFilter, TREEMAP_VIEW_TYPE, TestListProvider, TreemapModel, TreemapView, ViewSizeControls, ViewTypeSelector, VirtualizedGrid, VirtualizedList, announceToScreenReader, benchmark, benchmarkLogger, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, useListKeyboard };
6831
- //# sourceMappingURL=list-CxfT6hix.js.map
6816
+ export { CalculatedGridView, DETAILS_VIEW_TYPE, EmptyState$1 as EmptyState, ErrorBoundary, ErrorDisplay$1 as ErrorDisplay, FocusManager, GRID_PRESETS, GRID_VIEW_TYPE, GridLayoutCalculator, InlineLoading, LIST_VIEW_TYPE, ListContextMenu, ListItem, ListItems, ListItemsModel, ListKeyboardHandler, ListLoader, LoadError, LoadingIndicator, LoadingProgress, MASONRY_HORIZONTAL_VIEW_TYPE, MASONRY_PRESETS, MASONRY_VERTICAL_VIEW_TYPE, MasonryLayoutCalculator, MasonryView, NetworkError, NoItems, NoSearchResults, NoSelection, SearchFilter, TREEMAP_VIEW_TYPE, TestListProvider, TreemapModel, TreemapView, ViewSizeControls, ViewTypeSelector, VirtualizedGrid, VirtualizedList, announceToScreenReader, benchmark, benchmarkLogger, createGridCalculator, createLiveRegionAnnouncement, createMasonryCalculator, getItemAccessibilityProps, getListAccessibilityProps, getNextFocusIndex, useListKeyboard };
6817
+ //# sourceMappingURL=list-DAq-b6RR.js.map