@vezham/react 26.0.0-alpha.4 → 26.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/lib/components/actions-header/index.d.ts +26 -0
- package/dist/lib/components/actions-header/index.d.ts.map +1 -0
- package/dist/lib/components/actions-header/index.js +126 -0
- package/dist/lib/components/app-icon/index.d.ts +499 -0
- package/dist/lib/components/app-icon/index.d.ts.map +1 -0
- package/dist/lib/components/app-icon/index.js +513 -0
- package/dist/lib/components/app-menu/index.d.ts +22 -0
- package/dist/lib/components/app-menu/index.d.ts.map +1 -0
- package/dist/lib/components/app-menu/index.js +17 -0
- package/dist/lib/components/command/command-dialog.d.ts +10 -0
- package/dist/lib/components/command/command-dialog.d.ts.map +1 -0
- package/dist/lib/components/command/command-dialog.js +129 -0
- package/dist/lib/components/command/command-provider.d.ts +8 -0
- package/dist/lib/components/command/command-provider.d.ts.map +1 -0
- package/dist/lib/components/command/command-provider.js +44 -0
- package/dist/lib/components/command/index.d.ts +3 -0
- package/dist/lib/components/command/index.d.ts.map +1 -0
- package/dist/lib/components/command/index.js +3 -0
- package/dist/lib/components/menu/drawer.d.ts +4 -0
- package/dist/lib/components/menu/drawer.d.ts.map +1 -0
- package/dist/lib/components/menu/drawer.js +56 -0
- package/dist/lib/components/menu/index.d.ts +5 -0
- package/dist/lib/components/menu/index.d.ts.map +1 -0
- package/dist/lib/components/menu/index.js +138 -0
- package/dist/lib/components/menu/sheet.d.ts +15 -0
- package/dist/lib/components/menu/sheet.d.ts.map +1 -0
- package/dist/lib/components/menu/sheet.js +40 -0
- package/dist/lib/components/menu/types.d.ts +30 -0
- package/dist/lib/components/menu/types.d.ts.map +1 -0
- package/dist/lib/components/menu/types.js +7 -0
- package/dist/lib/components/menu/variant.d.ts +27 -0
- package/dist/lib/components/menu/variant.d.ts.map +1 -0
- package/dist/lib/components/menu/variant.js +28 -0
- package/dist/lib/components/mobile-controls/index.d.ts +11 -0
- package/dist/lib/components/mobile-controls/index.d.ts.map +1 -0
- package/dist/lib/components/mobile-controls/index.js +21 -0
- package/dist/lib/components/pagination/index.d.ts +10 -0
- package/dist/lib/components/pagination/index.d.ts.map +1 -0
- package/dist/lib/components/pagination/index.js +25 -0
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/chat-header.js +63 -0
- package/dist/lib/components/panel/footer/ai/composer.d.ts +7 -0
- package/dist/lib/components/panel/footer/ai/composer.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/composer.js +77 -0
- package/dist/lib/components/panel/footer/ai/content.d.ts +13 -0
- package/dist/lib/components/panel/footer/ai/content.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/content.js +148 -0
- package/dist/lib/components/panel/footer/ai/conversation.d.ts +47 -0
- package/dist/lib/components/panel/footer/ai/conversation.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/conversation.js +222 -0
- package/dist/lib/components/panel/footer/ai/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/ai/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/index.js +41 -0
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts +8 -0
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/message-actions.js +63 -0
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts +6 -0
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/mock-result.js +121 -0
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts +5 -0
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-logo.js +13 -0
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts +2 -0
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-logos.js +10 -0
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts +8 -0
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-picker.js +166 -0
- package/dist/lib/components/panel/footer/ai/models.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/models.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/models.js +72 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts +5 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.js +63 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.js +57 -0
- package/dist/lib/components/panel/footer/control-center/appearance.d.ts +16 -0
- package/dist/lib/components/panel/footer/control-center/appearance.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/appearance.js +100 -0
- package/dist/lib/components/panel/footer/control-center/configured.d.ts +13 -0
- package/dist/lib/components/panel/footer/control-center/configured.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/configured.js +157 -0
- package/dist/lib/components/panel/footer/control-center/control-center.d.ts +8 -0
- package/dist/lib/components/panel/footer/control-center/control-center.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/control-center.js +180 -0
- package/dist/lib/components/panel/footer/control-center/default.d.ts +3 -0
- package/dist/lib/components/panel/footer/control-center/default.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/default.js +37 -0
- package/dist/lib/components/panel/footer/control-center/direction.d.ts +9 -0
- package/dist/lib/components/panel/footer/control-center/direction.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/direction.js +40 -0
- package/dist/lib/components/panel/footer/control-center/document.d.ts +5 -0
- package/dist/lib/components/panel/footer/control-center/document.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/document.js +19 -0
- package/dist/lib/components/panel/footer/control-center/editor.d.ts +25 -0
- package/dist/lib/components/panel/footer/control-center/editor.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/editor.js +72 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.d.ts +6 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.js +5 -0
- package/dist/lib/components/panel/footer/control-center/index.d.ts +15 -0
- package/dist/lib/components/panel/footer/control-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/index.js +11 -0
- package/dist/lib/components/panel/footer/control-center/language.d.ts +19 -0
- package/dist/lib/components/panel/footer/control-center/language.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/language.js +44 -0
- package/dist/lib/components/panel/footer/control-center/options.d.ts +7 -0
- package/dist/lib/components/panel/footer/control-center/options.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/options.js +27 -0
- package/dist/lib/components/panel/footer/control-center/preview.d.ts +34 -0
- package/dist/lib/components/panel/footer/control-center/preview.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/preview.js +366 -0
- package/dist/lib/components/panel/footer/control-center/theme.d.ts +6 -0
- package/dist/lib/components/panel/footer/control-center/theme.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/theme.js +150 -0
- package/dist/lib/components/panel/footer/control-center/tile.d.ts +10 -0
- package/dist/lib/components/panel/footer/control-center/tile.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/tile.js +34 -0
- package/dist/lib/components/panel/footer/control-center/types.d.ts +94 -0
- package/dist/lib/components/panel/footer/control-center/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/variant.d.ts +268 -0
- package/dist/lib/components/panel/footer/control-center/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/variant.js +89 -0
- package/dist/lib/components/panel/footer/data.d.ts +38 -0
- package/dist/lib/components/panel/footer/data.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/data.js +90 -0
- package/dist/lib/components/panel/footer/drawer-accessors.d.ts +46 -0
- package/dist/lib/components/panel/footer/drawer-accessors.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/drawer-accessors.js +21 -0
- package/dist/lib/components/panel/footer/drawer-frame.d.ts +12 -0
- package/dist/lib/components/panel/footer/drawer-frame.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/drawer-frame.js +19 -0
- package/dist/lib/components/panel/footer/index.d.ts +4 -0
- package/dist/lib/components/panel/footer/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/index.js +147 -0
- package/dist/lib/components/panel/footer/notification-center/index.d.ts +4 -0
- package/dist/lib/components/panel/footer/notification-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/index.js +98 -0
- package/dist/lib/components/panel/footer/notification-center/types.d.ts +525 -0
- package/dist/lib/components/panel/footer/notification-center/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/types.js +62 -0
- package/dist/lib/components/panel/footer/notification-center/variant.d.ts +322 -0
- package/dist/lib/components/panel/footer/notification-center/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/variant.js +119 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.d.ts +49 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.js +182 -0
- package/dist/lib/components/panel/footer/preferences/data.d.ts +14 -0
- package/dist/lib/components/panel/footer/preferences/data.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/data.js +304 -0
- package/dist/lib/components/panel/footer/preferences/modal.d.ts +8 -0
- package/dist/lib/components/panel/footer/preferences/modal.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/modal.js +75 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts +9 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.js +105 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.js +16 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.js +16 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.js +101 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.js +24 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.js +103 -0
- package/dist/lib/components/panel/footer/tabs.d.ts +12 -0
- package/dist/lib/components/panel/footer/tabs.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/tabs.js +23 -0
- package/dist/lib/components/panel/footer/types.d.ts +39 -0
- package/dist/lib/components/panel/footer/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/user-menu.d.ts +10 -0
- package/dist/lib/components/panel/footer/user-menu.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/user-menu.js +290 -0
- package/dist/lib/components/panel/header/application-menu-sheet.d.ts +21 -0
- package/dist/lib/components/panel/header/application-menu-sheet.d.ts.map +1 -0
- package/dist/lib/components/panel/header/application-menu-sheet.js +227 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.js +225 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/types.d.ts +13 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.d.ts +28 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.js +249 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.js +147 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/types.d.ts +25 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/data.d.ts +2 -0
- package/dist/lib/components/panel/header/bookmarks/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.d.ts +8 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.js +15 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/data.d.ts +2 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.js +65 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.js +76 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/types.d.ts +12 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.d.ts +211 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.js +77 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.d.ts +7 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.js +221 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/types.d.ts +25 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.d.ts +14 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.js +95 -0
- package/dist/lib/components/panel/header/bookmarks/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/index.js +247 -0
- package/dist/lib/components/panel/header/bookmarks/membership.d.ts +14 -0
- package/dist/lib/components/panel/header/bookmarks/membership.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/membership.js +13 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.js +224 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/types.d.ts +38 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.d.ts +11 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.js +39 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.js +97 -0
- package/dist/lib/components/panel/header/bookmarks/types.d.ts +648 -0
- package/dist/lib/components/panel/header/bookmarks/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/types.js +198 -0
- package/dist/lib/components/panel/header/bookmarks/variant.d.ts +334 -0
- package/dist/lib/components/panel/header/bookmarks/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/variant.js +121 -0
- package/dist/lib/components/panel/header/index.d.ts +4 -0
- package/dist/lib/components/panel/header/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/index.js +366 -0
- package/dist/lib/components/panel/header/storage/archive/index.d.ts +4 -0
- package/dist/lib/components/panel/header/storage/archive/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/index.js +138 -0
- package/dist/lib/components/panel/header/storage/archive/types.d.ts +27 -0
- package/dist/lib/components/panel/header/storage/archive/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/variants.d.ts +6 -0
- package/dist/lib/components/panel/header/storage/archive/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/variants.js +8 -0
- package/dist/lib/components/panel/header/storage/data.d.ts +2 -0
- package/dist/lib/components/panel/header/storage/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-actions.d.ts +16 -0
- package/dist/lib/components/panel/header/storage/history-actions.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-actions.js +18 -0
- package/dist/lib/components/panel/header/storage/history-date-group.d.ts +9 -0
- package/dist/lib/components/panel/header/storage/history-date-group.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-date-group.js +19 -0
- package/dist/lib/components/panel/header/storage/history-item-content.d.ts +11 -0
- package/dist/lib/components/panel/header/storage/history-item-content.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-item-content.js +17 -0
- package/dist/lib/components/panel/header/storage/history-shell.d.ts +8 -0
- package/dist/lib/components/panel/header/storage/history-shell.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-shell.js +19 -0
- package/dist/lib/components/panel/header/storage/history-utils.d.ts +7 -0
- package/dist/lib/components/panel/header/storage/history-utils.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-utils.js +25 -0
- package/dist/lib/components/panel/header/storage/index.d.ts +5 -0
- package/dist/lib/components/panel/header/storage/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/index.js +120 -0
- package/dist/lib/components/panel/header/storage/trash/index.d.ts +4 -0
- package/dist/lib/components/panel/header/storage/trash/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/index.js +126 -0
- package/dist/lib/components/panel/header/storage/trash/types.d.ts +27 -0
- package/dist/lib/components/panel/header/storage/trash/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/variants.d.ts +6 -0
- package/dist/lib/components/panel/header/storage/trash/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/variants.js +12 -0
- package/dist/lib/components/panel/header/storage/types.d.ts +482 -0
- package/dist/lib/components/panel/header/storage/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/types.js +155 -0
- package/dist/lib/components/panel/header/storage/variant.d.ts +289 -0
- package/dist/lib/components/panel/header/storage/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/variant.js +106 -0
- package/dist/lib/components/panel/header/types.d.ts +26 -0
- package/dist/lib/components/panel/header/types.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/container.d.ts +9 -0
- package/dist/lib/components/panel/info-panel/container.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/container.js +90 -0
- package/dist/lib/components/panel/info-panel/container.module.css +48 -0
- package/dist/lib/components/panel/info-panel/container.module.js +8 -0
- package/dist/lib/components/panel/info-panel/index.d.ts +4 -0
- package/dist/lib/components/panel/info-panel/index.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/provider.d.ts +7 -0
- package/dist/lib/components/panel/info-panel/provider.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/provider.js +104 -0
- package/dist/lib/components/panel/info-panel/sheet.d.ts +9 -0
- package/dist/lib/components/panel/info-panel/sheet.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/sheet.js +70 -0
- package/dist/lib/components/panel/info-panel/styles.d.ts +6 -0
- package/dist/lib/components/panel/info-panel/styles.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/styles.js +8 -0
- package/dist/lib/components/panel/info-panel/types.d.ts +21 -0
- package/dist/lib/components/panel/info-panel/types.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/index.d.ts +4 -0
- package/dist/lib/components/panel/menu/index.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/index.js +156 -0
- package/dist/lib/components/panel/menu/types.d.ts +522 -0
- package/dist/lib/components/panel/menu/types.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/types.js +71 -0
- package/dist/lib/components/panel/menu/variant.d.ts +259 -0
- package/dist/lib/components/panel/menu/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/variant.js +131 -0
- package/dist/lib/components/panel/responsive.d.ts +3 -0
- package/dist/lib/components/panel/responsive.d.ts.map +1 -0
- package/dist/lib/components/panel/responsive.js +5 -0
- package/dist/lib/components/responsive-toolbar-action/index.d.ts +11 -0
- package/dist/lib/components/responsive-toolbar-action/index.d.ts.map +1 -0
- package/dist/lib/components/responsive-toolbar-action/index.js +21 -0
- package/dist/lib/components/shortcut-key/index.d.ts +18 -0
- package/dist/lib/components/shortcut-key/index.d.ts.map +1 -0
- package/dist/lib/components/shortcut-key/index.js +44 -0
- package/dist/lib/components/toolbar-actions/index.d.ts +31 -0
- package/dist/lib/components/toolbar-actions/index.d.ts.map +1 -0
- package/dist/lib/components/toolbar-actions/index.js +75 -0
- package/dist/lib/components/workspace-navigation/index.d.ts +24 -0
- package/dist/lib/components/workspace-navigation/index.d.ts.map +1 -0
- package/dist/lib/components/workspace-navigation/index.js +74 -0
- package/dist/lib/layouts/app/frame.d.ts +8 -0
- package/dist/lib/layouts/app/frame.d.ts.map +1 -0
- package/dist/lib/layouts/app/frame.js +20 -0
- package/dist/lib/layouts/app/index.d.ts +27 -0
- package/dist/lib/layouts/app/index.d.ts.map +1 -0
- package/dist/lib/layouts/app/index.js +89 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.d.ts +7 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.js +22 -0
- package/dist/lib/layouts/menu-layout/index-md.d.ts +4 -0
- package/dist/lib/layouts/menu-layout/index-md.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index-md.js +142 -0
- package/dist/lib/layouts/menu-layout/index-sm.d.ts +5 -0
- package/dist/lib/layouts/menu-layout/index-sm.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index-sm.js +124 -0
- package/dist/lib/layouts/menu-layout/index.d.ts +8 -0
- package/dist/lib/layouts/menu-layout/index.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index.js +17 -0
- package/dist/lib/layouts/section/index.d.ts +29 -0
- package/dist/lib/layouts/section/index.d.ts.map +1 -0
- package/dist/lib/layouts/section/index.js +285 -0
- package/dist/lib/layouts/section/preferences.d.ts +10 -0
- package/dist/lib/layouts/section/preferences.d.ts.map +1 -0
- package/dist/lib/layouts/section/preferences.js +41 -0
- package/dist/lib/layouts/section/sidebar-state.d.ts +7 -0
- package/dist/lib/layouts/section/sidebar-state.d.ts.map +1 -0
- package/dist/lib/layouts/section/sidebar-state.js +35 -0
- package/dist/lib/layouts/section/sidebar.d.ts +11 -0
- package/dist/lib/layouts/section/sidebar.d.ts.map +1 -0
- package/dist/lib/layouts/section/sidebar.js +84 -0
- package/dist/lib/layouts/section/sort-menu.d.ts +27 -0
- package/dist/lib/layouts/section/sort-menu.d.ts.map +1 -0
- package/dist/lib/layouts/section/sort-menu.js +72 -0
- package/dist/lib/layouts/section/toolbar-content.d.ts +11 -0
- package/dist/lib/layouts/section/toolbar-content.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar-content.js +31 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.d.ts +38 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.js +288 -0
- package/dist/lib/layouts/section/toolbar.d.ts +60 -0
- package/dist/lib/layouts/section/toolbar.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar.js +518 -0
- package/dist/lib/layouts/settings/index.d.ts +5 -0
- package/dist/lib/layouts/settings/index.d.ts.map +1 -0
- package/dist/lib/layouts/settings/index.js +9 -0
- package/dist/lib/navigation-toolbar.d.ts +32 -0
- package/dist/lib/navigation-toolbar.d.ts.map +1 -0
- package/dist/lib/navigation-toolbar.js +29 -0
- package/dist/lib/navigation.d.ts +21 -0
- package/dist/lib/navigation.d.ts.map +1 -0
- package/dist/lib/navigation.js +39 -0
- package/dist/lib/pages/settings/index.d.ts +17 -0
- package/dist/lib/pages/settings/index.d.ts.map +1 -0
- package/dist/lib/pages/settings/index.js +276 -0
- package/dist/lib/pages/settings/navigation.d.ts +4 -0
- package/dist/lib/pages/settings/navigation.d.ts.map +1 -0
- package/dist/lib/pages/settings/navigation.js +6 -0
- package/dist/lib/pages/settings/settings-content.d.ts +5 -0
- package/dist/lib/pages/settings/settings-content.d.ts.map +1 -0
- package/dist/lib/pages/settings/settings-content.js +213 -0
- package/dist/lib/pages/settings/tile-gallery.d.ts +19 -0
- package/dist/lib/pages/settings/tile-gallery.d.ts.map +1 -0
- package/dist/lib/pages/settings/tile-gallery.js +411 -0
- package/dist/lib/store/useBookmarks/action.d.ts +6 -0
- package/dist/lib/store/useBookmarks/action.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/action.js +7 -0
- package/dist/lib/store/useBookmarks/data.d.ts +4 -0
- package/dist/lib/store/useBookmarks/data.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/data.js +231 -0
- package/dist/lib/store/useBookmarks/index.d.ts +12 -0
- package/dist/lib/store/useBookmarks/index.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/index.js +29 -0
- package/dist/lib/store/useBookmarks/types.d.ts +30 -0
- package/dist/lib/store/useBookmarks/types.d.ts.map +1 -0
- package/dist/lib/store/useStorage/action.d.ts +6 -0
- package/dist/lib/store/useStorage/action.d.ts.map +1 -0
- package/dist/lib/store/useStorage/action.js +7 -0
- package/dist/lib/store/useStorage/data.d.ts +3 -0
- package/dist/lib/store/useStorage/data.d.ts.map +1 -0
- package/dist/lib/store/useStorage/data.js +219 -0
- package/dist/lib/store/useStorage/index.d.ts +7 -0
- package/dist/lib/store/useStorage/index.d.ts.map +1 -0
- package/dist/lib/store/useStorage/index.js +13 -0
- package/dist/lib/store/useStorage/types.d.ts +20 -0
- package/dist/lib/store/useStorage/types.d.ts.map +1 -0
- package/dist/lib/store/users/useUserStore.d.ts +22 -0
- package/dist/lib/store/users/useUserStore.d.ts.map +1 -0
- package/dist/lib/store/users/useUserStore.js +46 -0
- package/dist/lib/utils/date.d.ts +2 -0
- package/dist/lib/utils/date.d.ts.map +1 -0
- package/dist/lib/utils/date.js +8 -0
- package/dist/lib/utils/url.d.ts +4 -0
- package/dist/lib/utils/url.d.ts.map +1 -0
- package/dist/lib/utils/url.js +19 -0
- package/dist/react.css +49 -0
- package/package.json +90 -2
- package/dist/lib/react.d.ts +0 -2
- package/dist/lib/react.d.ts.map +0 -1
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { useAppMenu } from "../../app-menu/index.js";
|
|
2
|
+
import { AppIcon } from "../../app-icon/index.js";
|
|
3
|
+
import { useInfoPanel } from "../info-panel/provider.js";
|
|
4
|
+
import { MenuSheet } from "../../menu/sheet.js";
|
|
5
|
+
import { ShortcutKey } from "../../shortcut-key/index.js";
|
|
6
|
+
import { useState } from "react";
|
|
7
|
+
import { Button, Label, Separator } from "@vezham/react-v3";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { AltArrowLeft, AltArrowRight, Archive, Bookmark, SidebarMinimalistic } from "@vezham/icons-react";
|
|
10
|
+
//#region src/lib/components/panel/header/application-menu-sheet.tsx
|
|
11
|
+
var actionClass = "h-auto min-h-11 w-full justify-start gap-3 rounded-lg px-3 py-2 text-start";
|
|
12
|
+
var ApplicationMenuSheet = ({ isOpen, onOpenChange, trigger, onClose, onSearch, navigationLabel, onToggleNavigation, showHistoryNavigation, showMenuUtilities, showBookamarks, showStorage }) => {
|
|
13
|
+
const appMenu = useAppMenu();
|
|
14
|
+
const { toggleInfoPanel, activeInfoPanel, isOpen: panelOpen } = useInfoPanel();
|
|
15
|
+
const [menuKey, setMenuKey] = useState(null);
|
|
16
|
+
const menu = appMenu?.items.find((item) => item.key === menuKey);
|
|
17
|
+
const close = () => {
|
|
18
|
+
setMenuKey(null);
|
|
19
|
+
onClose();
|
|
20
|
+
};
|
|
21
|
+
const changeOpen = (open) => {
|
|
22
|
+
if (!open) setMenuKey(null);
|
|
23
|
+
onOpenChange(open);
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ jsx(MenuSheet, {
|
|
26
|
+
title: "Application menu",
|
|
27
|
+
hideTitle: true,
|
|
28
|
+
isOpen,
|
|
29
|
+
onOpenChange: changeOpen,
|
|
30
|
+
trigger,
|
|
31
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
32
|
+
className: "flex flex-col gap-1",
|
|
33
|
+
children: menu ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Button, {
|
|
34
|
+
variant: "ghost",
|
|
35
|
+
className: actionClass,
|
|
36
|
+
"aria-label": "Back to application menu",
|
|
37
|
+
onPress: () => setMenuKey(null),
|
|
38
|
+
children: [/* @__PURE__ */ jsx(AltArrowLeft, {
|
|
39
|
+
size: 18,
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
}), menu.label]
|
|
42
|
+
}), menu.groups.map((group, index) => /* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: "flex flex-col gap-1",
|
|
44
|
+
children: [index > 0 && /* @__PURE__ */ jsx(Separator, { className: "my-1" }), group.map((action) => /* @__PURE__ */ jsxs(Button, {
|
|
45
|
+
"aria-label": action.label,
|
|
46
|
+
variant: "ghost",
|
|
47
|
+
className: actionClass,
|
|
48
|
+
onPress: () => {
|
|
49
|
+
close();
|
|
50
|
+
appMenu?.onAction(action);
|
|
51
|
+
},
|
|
52
|
+
children: [
|
|
53
|
+
action.icon && /* @__PURE__ */ jsx(AppIcon, {
|
|
54
|
+
icon: action.icon,
|
|
55
|
+
size: 18,
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
}),
|
|
58
|
+
/* @__PURE__ */ jsx("span", {
|
|
59
|
+
className: "flex-1",
|
|
60
|
+
children: action.label
|
|
61
|
+
}),
|
|
62
|
+
action.shortcut && /* @__PURE__ */ jsx(ShortcutKey, {
|
|
63
|
+
className: "ms-auto",
|
|
64
|
+
shortcut: action.shortcut
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
}, action.key))]
|
|
68
|
+
}, group.map((action) => action.key).join(":")))] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Button, {
|
|
70
|
+
variant: "ghost",
|
|
71
|
+
className: actionClass,
|
|
72
|
+
onPress: close,
|
|
73
|
+
children: "Back to home"
|
|
74
|
+
}),
|
|
75
|
+
showHistoryNavigation && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Button, {
|
|
76
|
+
variant: "ghost",
|
|
77
|
+
className: actionClass,
|
|
78
|
+
"aria-label": "Back",
|
|
79
|
+
"aria-keyshortcuts": "Meta+ArrowLeft",
|
|
80
|
+
onPress: () => {
|
|
81
|
+
close();
|
|
82
|
+
window.history.back();
|
|
83
|
+
},
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ jsx(AltArrowLeft, {
|
|
86
|
+
size: 18,
|
|
87
|
+
"aria-hidden": "true"
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ jsx(Label, {
|
|
90
|
+
className: "flex-1",
|
|
91
|
+
children: "Back"
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "⌘ ←" })
|
|
94
|
+
]
|
|
95
|
+
}), /* @__PURE__ */ jsxs(Button, {
|
|
96
|
+
variant: "ghost",
|
|
97
|
+
className: actionClass,
|
|
98
|
+
"aria-label": "Forward",
|
|
99
|
+
"aria-keyshortcuts": "Meta+ArrowRight",
|
|
100
|
+
onPress: () => {
|
|
101
|
+
close();
|
|
102
|
+
window.history.forward();
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ jsx(AltArrowRight, {
|
|
106
|
+
size: 18,
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx(Label, {
|
|
110
|
+
className: "flex-1",
|
|
111
|
+
children: "Forward"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "⌘ →" })
|
|
114
|
+
]
|
|
115
|
+
})] }),
|
|
116
|
+
showMenuUtilities && onToggleNavigation && /* @__PURE__ */ jsxs(Button, {
|
|
117
|
+
variant: "ghost",
|
|
118
|
+
className: actionClass,
|
|
119
|
+
"aria-label": navigationLabel,
|
|
120
|
+
"aria-keyshortcuts": "Meta+S",
|
|
121
|
+
onPress: () => {
|
|
122
|
+
close();
|
|
123
|
+
onToggleNavigation();
|
|
124
|
+
},
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ jsx(SidebarMinimalistic, {
|
|
127
|
+
size: 18,
|
|
128
|
+
"aria-hidden": "true"
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ jsx("span", {
|
|
131
|
+
className: "flex-1",
|
|
132
|
+
children: navigationLabel
|
|
133
|
+
}),
|
|
134
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "⌘ S" })
|
|
135
|
+
]
|
|
136
|
+
}),
|
|
137
|
+
showMenuUtilities && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Separator, { className: "my-1" }), /* @__PURE__ */ jsxs(Button, {
|
|
138
|
+
variant: "ghost",
|
|
139
|
+
className: actionClass,
|
|
140
|
+
"aria-label": "Open command palette",
|
|
141
|
+
onPress: () => {
|
|
142
|
+
setMenuKey(null);
|
|
143
|
+
onSearch();
|
|
144
|
+
},
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ jsx(AppIcon, {
|
|
147
|
+
icon: "vx:search",
|
|
148
|
+
size: 18,
|
|
149
|
+
"aria-hidden": "true"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsx("span", {
|
|
152
|
+
className: "flex-1",
|
|
153
|
+
children: "Search"
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "Mod K" })
|
|
156
|
+
]
|
|
157
|
+
})] }),
|
|
158
|
+
showBookamarks && /* @__PURE__ */ jsxs(Button, {
|
|
159
|
+
variant: "ghost",
|
|
160
|
+
className: actionClass,
|
|
161
|
+
"aria-label": "Bookmarks",
|
|
162
|
+
"aria-keyshortcuts": "Meta+Shift+B Control+Shift+B",
|
|
163
|
+
onPress: () => {
|
|
164
|
+
close();
|
|
165
|
+
toggleInfoPanel("bookmarks");
|
|
166
|
+
},
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ jsx(Bookmark, {
|
|
169
|
+
size: 18,
|
|
170
|
+
weight: panelOpen && activeInfoPanel === "bookmarks" ? "filled" : "outline",
|
|
171
|
+
"aria-hidden": "true"
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsx("span", {
|
|
174
|
+
className: "flex-1",
|
|
175
|
+
children: "Bookmarks"
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "Mod ⇧ B" })
|
|
178
|
+
]
|
|
179
|
+
}),
|
|
180
|
+
showStorage && /* @__PURE__ */ jsxs(Button, {
|
|
181
|
+
variant: "ghost",
|
|
182
|
+
className: actionClass,
|
|
183
|
+
"aria-label": "Storage",
|
|
184
|
+
"aria-keyshortcuts": "Meta+Shift+S Control+Shift+S",
|
|
185
|
+
onPress: () => {
|
|
186
|
+
close();
|
|
187
|
+
toggleInfoPanel("storage");
|
|
188
|
+
},
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ jsx(Archive, {
|
|
191
|
+
size: 18,
|
|
192
|
+
"aria-hidden": "true"
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ jsx("span", {
|
|
195
|
+
className: "flex-1",
|
|
196
|
+
children: "Storage"
|
|
197
|
+
}),
|
|
198
|
+
/* @__PURE__ */ jsx(ShortcutKey, { shortcut: "Mod ⇧ S" })
|
|
199
|
+
]
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
202
|
+
appMenu?.items.map((item) => /* @__PURE__ */ jsxs(Button, {
|
|
203
|
+
variant: "ghost",
|
|
204
|
+
className: actionClass,
|
|
205
|
+
onPress: () => setMenuKey(item.key),
|
|
206
|
+
children: [
|
|
207
|
+
item.icon && /* @__PURE__ */ jsx(AppIcon, {
|
|
208
|
+
icon: item.icon,
|
|
209
|
+
size: 18,
|
|
210
|
+
"aria-hidden": "true"
|
|
211
|
+
}),
|
|
212
|
+
/* @__PURE__ */ jsx("span", {
|
|
213
|
+
className: "flex-1",
|
|
214
|
+
children: item.label
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ jsx(AltArrowRight, {
|
|
217
|
+
size: 18,
|
|
218
|
+
"aria-hidden": "true"
|
|
219
|
+
})
|
|
220
|
+
]
|
|
221
|
+
}, item.key))
|
|
222
|
+
] })
|
|
223
|
+
}, menuKey ?? "home")
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
//#endregion
|
|
227
|
+
export { ApplicationMenuSheet };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type BookmarkFileTreeProps } from './types';
|
|
3
|
+
declare const BookmarkFileTree: ({ items, defaultExpandedKeys, getFileTreeProps, getBookmarkTreeEmptyStateProps, onBookmarkClick, onBookmarkRemove, onFolderEdit, onFolderDelete, onNewFolder, onBookmarkMove, onTreeChange }: BookmarkFileTreeProps) => React.JSX.Element;
|
|
4
|
+
export { BookmarkFileTree };
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/panel/header/bookmarks/bookmark-file-tree/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAmChD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAUpD,QAAA,MAAM,gBAAgB,GAAI,8LAYvB,qBAAqB,sBAkRvB,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { AppIcon } from "../../../../app-icon/index.js";
|
|
2
|
+
import { panelContextMenuClass } from "../../../info-panel/styles.js";
|
|
3
|
+
import { BookmarkContextMenuItems, BrowserContextMenuItems } from "../context-menu/index.js";
|
|
4
|
+
import { BookmarkSectionEmptyState } from "../empty-state.js";
|
|
5
|
+
import "../folder-modal/variants.js";
|
|
6
|
+
import { FolderVisualPreview } from "../folder-modal/index.js";
|
|
7
|
+
import { collectFolderTargets, moveBookmarkTreeItems } from "./variants.js";
|
|
8
|
+
import { useMemo, useState } from "react";
|
|
9
|
+
import { Avatar, Button } from "@vezham/react-v3";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { CodeFile, Folder, FolderOpen, TrashBinTrash } from "@vezham/icons-react";
|
|
12
|
+
import { ContextMenu, FileTree, useFileTreeDrag } from "@vezham/react-pro-v3";
|
|
13
|
+
import { Collection } from "react-aria-components/Collection";
|
|
14
|
+
import { useTreeData } from "react-aria-components/useTreeData";
|
|
15
|
+
//#region src/lib/components/panel/header/bookmarks/bookmark-file-tree/index.tsx
|
|
16
|
+
var folderIcon = ({ isExpanded }) => isExpanded ? /* @__PURE__ */ jsx(FolderOpen, {
|
|
17
|
+
size: 16,
|
|
18
|
+
"aria-hidden": "true"
|
|
19
|
+
}) : /* @__PURE__ */ jsx(Folder, {
|
|
20
|
+
size: 16,
|
|
21
|
+
"aria-hidden": "true"
|
|
22
|
+
});
|
|
23
|
+
var BookmarkFileTree = ({ items, defaultExpandedKeys, getFileTreeProps, getBookmarkTreeEmptyStateProps, onBookmarkClick, onBookmarkRemove, onFolderEdit, onFolderDelete, onNewFolder, onBookmarkMove, onTreeChange }) => {
|
|
24
|
+
const [expandedKeys, setExpandedKeys] = useState(() => new Set(defaultExpandedKeys));
|
|
25
|
+
const [selectedKeys, setSelectedKeys] = useState(/* @__PURE__ */ new Set());
|
|
26
|
+
const [contextTarget, setContextTarget] = useState({ type: "area" });
|
|
27
|
+
const bookmarkById = useMemo(() => {
|
|
28
|
+
return items.reduce((acc, item) => {
|
|
29
|
+
const collect = (node) => {
|
|
30
|
+
if (node.kind === "bookmark" && node.bookmark) acc.set(node.id, node.bookmark);
|
|
31
|
+
node.children?.forEach(collect);
|
|
32
|
+
};
|
|
33
|
+
collect(item);
|
|
34
|
+
return acc;
|
|
35
|
+
}, /* @__PURE__ */ new Map());
|
|
36
|
+
}, [items]);
|
|
37
|
+
const tree = useTreeData({
|
|
38
|
+
getChildren: (item) => item.children ?? [],
|
|
39
|
+
getKey: (item) => item.id,
|
|
40
|
+
initialItems: items
|
|
41
|
+
});
|
|
42
|
+
const { dragAndDropHooks } = useFileTreeDrag({
|
|
43
|
+
tree,
|
|
44
|
+
onMove: (keys, target) => {
|
|
45
|
+
const result = moveBookmarkTreeItems(items, [...keys].map(String), String(target.key), target.dropPosition);
|
|
46
|
+
const { expandedKey } = result;
|
|
47
|
+
if (expandedKey) setExpandedKeys((currentKeys) => {
|
|
48
|
+
const nextKeys = new Set(currentKeys);
|
|
49
|
+
nextKeys.add(expandedKey);
|
|
50
|
+
return nextKeys;
|
|
51
|
+
});
|
|
52
|
+
onTreeChange(result.items, result.expandedKey);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const folderTargets = useMemo(() => collectFolderTargets(items), [items]);
|
|
56
|
+
const renderBookmarkIcon = (item) => {
|
|
57
|
+
if (item.kind === "folder") {
|
|
58
|
+
if (item.visualType === "emoji" && item.emoji) return /* @__PURE__ */ jsx(FolderVisualPreview, {
|
|
59
|
+
color: item.color ?? "#007aff",
|
|
60
|
+
visualType: "emoji",
|
|
61
|
+
emoji: item.emoji,
|
|
62
|
+
icon: item.icon ?? "vx:list-filled",
|
|
63
|
+
className: "h-4 w-4 text-xs"
|
|
64
|
+
});
|
|
65
|
+
if (item.visualType === "icon" && item.icon && item.icon !== "vx:list-filled") return /* @__PURE__ */ jsx(FolderVisualPreview, {
|
|
66
|
+
color: item.color ?? "#007aff",
|
|
67
|
+
visualType: "icon",
|
|
68
|
+
emoji: item.emoji ?? "😀",
|
|
69
|
+
icon: item.icon,
|
|
70
|
+
className: "h-4 w-4 text-xs"
|
|
71
|
+
});
|
|
72
|
+
return ({ isExpanded }) => /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "text-warning",
|
|
74
|
+
children: folderIcon({ isExpanded })
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (item.bookmark?.icon) return /* @__PURE__ */ jsx(AppIcon, {
|
|
78
|
+
icon: item.bookmark.icon,
|
|
79
|
+
size: "1em",
|
|
80
|
+
"aria-hidden": "true"
|
|
81
|
+
});
|
|
82
|
+
if (item.bookmark?.avatar || item.bookmark?.backgroundImage) return /* @__PURE__ */ jsxs(Avatar, {
|
|
83
|
+
className: "h-4 w-4 shrink-0 rounded-sm",
|
|
84
|
+
children: [/* @__PURE__ */ jsx(Avatar.Image, {
|
|
85
|
+
src: item.bookmark.avatar ?? item.bookmark.backgroundImage,
|
|
86
|
+
alt: item.title
|
|
87
|
+
}), /* @__PURE__ */ jsx(Avatar.Fallback, { children: item.title.charAt(0).toUpperCase() })]
|
|
88
|
+
});
|
|
89
|
+
return /* @__PURE__ */ jsx(CodeFile, {
|
|
90
|
+
size: 16,
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
const handleItemContextMenu = (event, item) => {
|
|
95
|
+
event.stopPropagation();
|
|
96
|
+
setContextTarget({
|
|
97
|
+
type: item.kind,
|
|
98
|
+
item
|
|
99
|
+
});
|
|
100
|
+
setSelectedKeys(new Set([item.id]));
|
|
101
|
+
};
|
|
102
|
+
const handleAreaContextMenu = () => {
|
|
103
|
+
setContextTarget({ type: "area" });
|
|
104
|
+
setSelectedKeys(/* @__PURE__ */ new Set());
|
|
105
|
+
};
|
|
106
|
+
const handleSelectionChange = (keys) => {
|
|
107
|
+
if (keys === "all") {
|
|
108
|
+
setSelectedKeys(new Set(items.map((item) => item.id)));
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
setSelectedKeys(new Set([...keys].map(String)));
|
|
112
|
+
};
|
|
113
|
+
const renderTitle = (item) => /* @__PURE__ */ jsxs("div", {
|
|
114
|
+
className: "relative flex min-h-7 w-full min-w-0 flex-1 items-center gap-2 pe-0 group-hover/bookmark-item:pe-14 group-has-[:focus-visible]/bookmark-item:pe-14 group-data-[focus-visible]/bookmark-item:pe-14 [@media(hover:none)]:pe-14",
|
|
115
|
+
onContextMenu: (event) => handleItemContextMenu(event, item.value),
|
|
116
|
+
children: [item.value.kind === "folder" ? /* @__PURE__ */ jsx("button", {
|
|
117
|
+
type: "button",
|
|
118
|
+
title: item.value.title,
|
|
119
|
+
className: "min-w-0 flex-1 cursor-pointer truncate text-start text-sm leading-5 font-semibold",
|
|
120
|
+
"aria-expanded": expandedKeys.has(String(item.key)),
|
|
121
|
+
onClick: (event) => {
|
|
122
|
+
event.stopPropagation();
|
|
123
|
+
toggleFolder(String(item.key));
|
|
124
|
+
},
|
|
125
|
+
children: item.value.title
|
|
126
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
127
|
+
title: item.value.title,
|
|
128
|
+
className: "min-w-0 flex-1 truncate text-sm leading-5 font-normal",
|
|
129
|
+
children: item.value.title
|
|
130
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
131
|
+
isIconOnly: true,
|
|
132
|
+
"aria-label": `Remove ${item.value.title}`,
|
|
133
|
+
variant: "ghost",
|
|
134
|
+
size: "sm",
|
|
135
|
+
className: "text-muted hover:text-danger absolute end-0 hidden size-7 min-w-0 shrink-0 group-hover/bookmark-item:inline-flex group-has-[:focus-visible]/bookmark-item:inline-flex group-data-[focus-visible]/bookmark-item:inline-flex hover:bg-transparent data-[hovered=true]:bg-transparent [@media(hover:none)]:inline-flex",
|
|
136
|
+
onPress: () => {
|
|
137
|
+
if (item.value.kind === "folder") onFolderDelete(String(item.key));
|
|
138
|
+
else onBookmarkRemove(String(item.key));
|
|
139
|
+
},
|
|
140
|
+
children: /* @__PURE__ */ jsx(TrashBinTrash, {
|
|
141
|
+
size: 16,
|
|
142
|
+
"aria-hidden": "true"
|
|
143
|
+
})
|
|
144
|
+
})]
|
|
145
|
+
});
|
|
146
|
+
const toggleFolder = (key) => {
|
|
147
|
+
setExpandedKeys((currentKeys) => {
|
|
148
|
+
const nextKeys = new Set(currentKeys);
|
|
149
|
+
if (nextKeys.has(key)) nextKeys.delete(key);
|
|
150
|
+
else nextKeys.add(key);
|
|
151
|
+
return nextKeys;
|
|
152
|
+
});
|
|
153
|
+
};
|
|
154
|
+
const renderItem = (item) => {
|
|
155
|
+
const isFolder = item.value.kind === "folder";
|
|
156
|
+
return /* @__PURE__ */ jsx(FileTree.Item, {
|
|
157
|
+
className: "group/bookmark-item min-h-9 rounded-lg px-0 py-1 ring-inset [&_[data-slot=file-tree-item-content]]:min-w-0 [&_[data-slot=file-tree-item-content]]:gap-2 [&_[slot=chevron]]:size-4",
|
|
158
|
+
icon: renderBookmarkIcon(item.value),
|
|
159
|
+
id: item.key,
|
|
160
|
+
onClick: (event) => {
|
|
161
|
+
if (isFolder && !event.target.closest("button")) toggleFolder(String(item.key));
|
|
162
|
+
},
|
|
163
|
+
textValue: item.value.title,
|
|
164
|
+
title: renderTitle(item),
|
|
165
|
+
onContextMenu: (event) => handleItemContextMenu(event, item.value),
|
|
166
|
+
children: isFolder && /* @__PURE__ */ jsx(Collection, {
|
|
167
|
+
items: item.children ?? [],
|
|
168
|
+
children: renderItem
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
return /* @__PURE__ */ jsxs(ContextMenu, { children: [
|
|
173
|
+
/* @__PURE__ */ jsx(ContextMenu.Trigger, {
|
|
174
|
+
className: "block w-full",
|
|
175
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
176
|
+
className: "w-full min-w-0",
|
|
177
|
+
onContextMenu: handleAreaContextMenu,
|
|
178
|
+
children: /* @__PURE__ */ jsx(FileTree, {
|
|
179
|
+
...getFileTreeProps(),
|
|
180
|
+
"aria-label": "Bookmarks file tree",
|
|
181
|
+
dragAndDropHooks,
|
|
182
|
+
expandedKeys,
|
|
183
|
+
items: tree.items,
|
|
184
|
+
renderEmptyState: () => /* @__PURE__ */ jsx(BookmarkSectionEmptyState, {
|
|
185
|
+
title: "No bookmarks yet.",
|
|
186
|
+
description: "Your saved links and folders appear here.",
|
|
187
|
+
...getBookmarkTreeEmptyStateProps()
|
|
188
|
+
}),
|
|
189
|
+
selectedKeys,
|
|
190
|
+
showGuideLines: "hover",
|
|
191
|
+
onAction: (key) => {
|
|
192
|
+
const bookmark = bookmarkById.get(String(key));
|
|
193
|
+
if (bookmark) {
|
|
194
|
+
onBookmarkClick(bookmark);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
onExpandedChange: (keys) => {
|
|
199
|
+
setExpandedKeys(new Set([...keys].map(String)));
|
|
200
|
+
},
|
|
201
|
+
onSelectionChange: handleSelectionChange,
|
|
202
|
+
children: renderItem
|
|
203
|
+
})
|
|
204
|
+
})
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ jsx(ContextMenu.Popover, {
|
|
207
|
+
className: panelContextMenuClass,
|
|
208
|
+
children: /* @__PURE__ */ jsx(ContextMenu.Menu, { children: /* @__PURE__ */ jsx(BookmarkContextMenuItems, {
|
|
209
|
+
contextTarget,
|
|
210
|
+
folderTargets,
|
|
211
|
+
onBookmarkRemove,
|
|
212
|
+
onFolderEdit,
|
|
213
|
+
onFolderDelete,
|
|
214
|
+
onNewFolder,
|
|
215
|
+
onBookmarkMove
|
|
216
|
+
}) })
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ jsx(ContextMenu.Popover, {
|
|
219
|
+
className: panelContextMenuClass,
|
|
220
|
+
children: /* @__PURE__ */ jsx(ContextMenu.Menu, { children: /* @__PURE__ */ jsx(BrowserContextMenuItems, {}) })
|
|
221
|
+
})
|
|
222
|
+
] });
|
|
223
|
+
};
|
|
224
|
+
//#endregion
|
|
225
|
+
export { BookmarkFileTree };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type BookmarkItem, type BookmarkTreeItem, type useProps } from '../types';
|
|
2
|
+
export interface BookmarkFileTreeProps extends Pick<ReturnType<typeof useProps>, 'getFileTreeProps' | 'getBookmarkTreeEmptyStateProps'> {
|
|
3
|
+
items: BookmarkTreeItem[];
|
|
4
|
+
defaultExpandedKeys: string[];
|
|
5
|
+
onBookmarkClick: (item: BookmarkItem) => void;
|
|
6
|
+
onBookmarkRemove: (id: string) => void;
|
|
7
|
+
onFolderEdit: (item: BookmarkTreeItem) => void;
|
|
8
|
+
onFolderDelete: (id: string) => void;
|
|
9
|
+
onNewFolder: (parentId?: string) => void;
|
|
10
|
+
onBookmarkMove: (id: string, targetFolderId?: string) => void;
|
|
11
|
+
onTreeChange: (items: BookmarkTreeItem[], expandedKey?: string) => void;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/panel/header/bookmarks/bookmark-file-tree/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CACjD,UAAU,CAAC,OAAO,QAAQ,CAAC,EAC3B,kBAAkB,GAAG,gCAAgC,CACtD;IACC,KAAK,EAAE,gBAAgB,EAAE,CAAA;IACzB,mBAAmB,EAAE,MAAM,EAAE,CAAA;IAC7B,eAAe,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IAC7C,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC9C,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7D,YAAY,EAAE,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACxE"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type BookmarkTreeItem } from '../types';
|
|
2
|
+
declare const getUniqueTreeId: (baseId: string, counts: Map<string, number>) => string;
|
|
3
|
+
declare const getExpandableBookmarkKeys: (items: BookmarkTreeItem[]) => string[];
|
|
4
|
+
declare const removeTreeItem: (items: BookmarkTreeItem[], itemId: string) => BookmarkTreeItem[];
|
|
5
|
+
declare const updateTreeItem: (items: BookmarkTreeItem[], itemId: string, updater: (item: BookmarkTreeItem) => BookmarkTreeItem) => BookmarkTreeItem[];
|
|
6
|
+
declare const insertFolderItem: (items: BookmarkTreeItem[], folder: BookmarkTreeItem, parentId?: string) => {
|
|
7
|
+
inserted: boolean;
|
|
8
|
+
items: BookmarkTreeItem[];
|
|
9
|
+
};
|
|
10
|
+
declare const createTreeItemId: (prefix: string, existingIds: Set<string>) => string;
|
|
11
|
+
declare const dedupeTreeItems: (items: BookmarkTreeItem[], seen?: Set<string>) => BookmarkTreeItem[];
|
|
12
|
+
declare const collectTreeItemIds: (items: BookmarkTreeItem[], ids?: Set<string>) => Set<string>;
|
|
13
|
+
declare const collectFolderTargets: (items: BookmarkTreeItem[], excludedId?: string, path?: string[]) => {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
depth: number;
|
|
17
|
+
}[];
|
|
18
|
+
declare const moveTreeItemToFolder: (items: BookmarkTreeItem[], movedId: string, targetFolderId?: string) => {
|
|
19
|
+
expandedKey?: string;
|
|
20
|
+
items: BookmarkTreeItem[];
|
|
21
|
+
};
|
|
22
|
+
declare const moveBookmarkTreeItems: (items: BookmarkTreeItem[], movedIds: string[], targetId: string, dropPosition: string) => {
|
|
23
|
+
expandedKey?: string;
|
|
24
|
+
items: BookmarkTreeItem[];
|
|
25
|
+
};
|
|
26
|
+
declare const getBookmarkTreeSignature: (items: BookmarkTreeItem[]) => string;
|
|
27
|
+
export { collectFolderTargets, collectTreeItemIds, createTreeItemId, dedupeTreeItems, getBookmarkTreeSignature, getExpandableBookmarkKeys, getUniqueTreeId, insertFolderItem, moveBookmarkTreeItems, moveTreeItemToFolder, removeTreeItem, updateTreeItem };
|
|
28
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,EAAE,QAAQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,WAKnE,CAAA;AAED,QAAA,MAAM,yBAAyB,GAAI,OAAO,gBAAgB,EAAE,aAc3D,CAAA;AAED,QAAA,MAAM,cAAc,GAClB,OAAO,gBAAgB,EAAE,EACzB,QAAQ,MAAM,KACb,gBAAgB,EAQZ,CAAA;AAEP,QAAA,MAAM,cAAc,GAClB,OAAO,gBAAgB,EAAE,EACzB,QAAQ,MAAM,EACd,SAAS,CAAC,IAAI,EAAE,gBAAgB,KAAK,gBAAgB,KACpD,gBAAgB,EAYf,CAAA;AAEJ,QAAA,MAAM,gBAAgB,GACpB,OAAO,gBAAgB,EAAE,EACzB,QAAQ,gBAAgB,EACxB,WAAW,MAAM,KAChB;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAiChD,CAAA;AAED,QAAA,MAAM,gBAAgB,GAAI,QAAQ,MAAM,EAAE,aAAa,GAAG,CAAC,MAAM,CAAC,WAiBjE,CAAA;AAED,QAAA,MAAM,eAAe,GACnB,OAAO,gBAAgB,EAAE,EACzB,kBAAwB,KACvB,gBAAgB,EAaX,CAAA;AAER,QAAA,MAAM,kBAAkB,GACtB,OAAO,gBAAgB,EAAE,EACzB,iBAAuB,gBAWxB,CAAA;AA+ED,QAAA,MAAM,oBAAoB,GACxB,OAAO,gBAAgB,EAAE,EACzB,aAAa,MAAM,EACnB,OAAM,MAAM,EAAO,KAClB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAevC,CAAA;AAyIR,QAAA,MAAM,oBAAoB,GACxB,OAAO,gBAAgB,EAAE,EACzB,SAAS,MAAM,EACf,iBAAiB,MAAM,KACtB;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAuCnD,CAAA;AAED,QAAA,MAAM,qBAAqB,GACzB,OAAO,gBAAgB,EAAE,EACzB,UAAU,MAAM,EAAE,EAClB,UAAU,MAAM,EAChB,cAAc,MAAM,KACnB;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,gBAAgB,EAAE,CAAA;CA2CnD,CAAA;AAED,QAAA,MAAM,wBAAwB,GAAI,OAAO,gBAAgB,EAAE,KAAG,MAUhD,CAAA;AAEd,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACf,CAAA"}
|