@vezham/react 26.0.0-alpha.5 → 26.0.0-alpha.7
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 +55 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- 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 +52 -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/package.json +90 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SectionSort } from './sort-menu';
|
|
3
|
+
import { SectionAction, SectionFilterKey, SectionViewAction, SectionViewMode } from './toolbar';
|
|
4
|
+
type Props = {
|
|
5
|
+
filterAction?: SectionAction;
|
|
6
|
+
filterGroups: readonly {
|
|
7
|
+
label: string;
|
|
8
|
+
options: readonly {
|
|
9
|
+
key: SectionFilterKey;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
}[];
|
|
13
|
+
}[];
|
|
14
|
+
menuActions: SectionAction[];
|
|
15
|
+
mobileToolbar?: ReactNode;
|
|
16
|
+
onSync: () => void;
|
|
17
|
+
onToggleFilter: (filter: SectionFilterKey) => void;
|
|
18
|
+
onViewModeChange: (view: SectionViewMode) => void;
|
|
19
|
+
selectedFilters: SectionFilterKey[];
|
|
20
|
+
sync: boolean;
|
|
21
|
+
sort: boolean;
|
|
22
|
+
sortValue: SectionSort;
|
|
23
|
+
onSortChange?: (value: SectionSort) => void;
|
|
24
|
+
viewModeActions: SectionViewAction[];
|
|
25
|
+
};
|
|
26
|
+
type MobileToolbarPage = {
|
|
27
|
+
key: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
type MobileToolbarNavigation = {
|
|
31
|
+
closeSheet: () => void;
|
|
32
|
+
page: MobileToolbarPage | null;
|
|
33
|
+
openPage: (page: MobileToolbarPage) => void;
|
|
34
|
+
};
|
|
35
|
+
export declare const useMobileToolbarNavigation: () => MobileToolbarNavigation;
|
|
36
|
+
export declare const ToolbarMoreSheet: ({ filterAction, filterGroups, menuActions, mobileToolbar, onSync, onToggleFilter, onViewModeChange, selectedFilters, sync, sort, sortValue, onSortChange, viewModeActions }: Props) => import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=toolbar-more-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar-more-sheet.d.ts","sourceRoot":"","sources":["../../../../src/lib/layouts/section/toolbar-more-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAcd,OAAO,EAAE,KAAK,WAAW,EAA8B,MAAM,aAAa,CAAA;AAC1E,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EAChB,MAAM,WAAW,CAAA;AAElB,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,aAAa,CAAA;IAC5B,YAAY,EAAE,SAAS;QACrB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,SAAS;YAAE,GAAG,EAAE,gBAAgB,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAC3E,EAAE,CAAA;IACH,WAAW,EAAE,aAAa,EAAE,CAAA;IAC5B,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,cAAc,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAClD,gBAAgB,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD,eAAe,EAAE,gBAAgB,EAAE,CAAA;IACnC,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,SAAS,EAAE,WAAW,CAAA;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAA;IAC3C,eAAe,EAAE,iBAAiB,EAAE,CAAA;CACrC,CAAA;AAED,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC5C,CAAA;AAKD,eAAO,MAAM,0BAA0B,+BAOtC,CAAA;AAkOD,eAAO,MAAM,gBAAgB,GAAI,6KAc9B,KAAK,gCAoGP,CAAA"}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { AppIcon } from "../../components/app-icon/index.js";
|
|
2
|
+
import { MenuSheet } from "../../components/menu/sheet.js";
|
|
3
|
+
import { sortDirections, sortFields } from "./sort-menu.js";
|
|
4
|
+
import { createContext, useContext, useMemo, useState } from "react";
|
|
5
|
+
import { Button, Label, Separator } from "@vezham/react-v3";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { AltArrowLeft, AltArrowRight, CheckCircle, MenuDots, SortFromBottomToTop, SortFromTopToBottom } from "@vezham/icons-react";
|
|
8
|
+
//#region src/lib/layouts/section/toolbar-more-sheet.tsx
|
|
9
|
+
var MobileToolbarNavigationContext = createContext(null);
|
|
10
|
+
var useMobileToolbarNavigation = () => {
|
|
11
|
+
const context = useContext(MobileToolbarNavigationContext);
|
|
12
|
+
if (!context) throw new Error("Mobile toolbar navigation requires ToolbarMoreSheet");
|
|
13
|
+
return context;
|
|
14
|
+
};
|
|
15
|
+
var actionClass = "h-auto min-h-11 w-full justify-start gap-3 rounded-lg px-3 py-2 text-start";
|
|
16
|
+
var SheetFilters = ({ filterGroups, selectedFilters, onToggleFilter }) => {
|
|
17
|
+
const selectedFilterKeys = new Set(selectedFilters);
|
|
18
|
+
return filterGroups.map((group, index) => /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "flex flex-col gap-1",
|
|
20
|
+
children: [
|
|
21
|
+
index > 0 && /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Label, {
|
|
23
|
+
className: "text-muted px-3 pt-2",
|
|
24
|
+
children: group.label
|
|
25
|
+
}),
|
|
26
|
+
group.options.map((option) => /* @__PURE__ */ jsxs(Button, {
|
|
27
|
+
variant: "ghost",
|
|
28
|
+
className: actionClass,
|
|
29
|
+
"aria-pressed": selectedFilterKeys.has(option.key),
|
|
30
|
+
onPress: () => onToggleFilter(option.key),
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ jsx(AppIcon, {
|
|
33
|
+
icon: option.icon,
|
|
34
|
+
size: 18,
|
|
35
|
+
"aria-hidden": "true"
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("span", {
|
|
38
|
+
className: "flex-1",
|
|
39
|
+
children: option.label
|
|
40
|
+
}),
|
|
41
|
+
selectedFilterKeys.has(option.key) && /* @__PURE__ */ jsx(CheckCircle, {
|
|
42
|
+
size: 18,
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
weight: "filled"
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
}, option.key))
|
|
48
|
+
]
|
|
49
|
+
}, group.label));
|
|
50
|
+
};
|
|
51
|
+
var SheetSort = ({ sortValue, onSortChange }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
52
|
+
/* @__PURE__ */ jsx(Label, {
|
|
53
|
+
className: "text-muted px-3 pt-2",
|
|
54
|
+
children: "Sort by"
|
|
55
|
+
}),
|
|
56
|
+
sortFields.map((option) => /* @__PURE__ */ jsxs(Button, {
|
|
57
|
+
variant: "ghost",
|
|
58
|
+
className: actionClass,
|
|
59
|
+
"aria-pressed": sortValue.by === option.key,
|
|
60
|
+
onPress: () => onSortChange?.({
|
|
61
|
+
...sortValue,
|
|
62
|
+
by: option.key
|
|
63
|
+
}),
|
|
64
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
65
|
+
className: "flex-1",
|
|
66
|
+
children: option.label
|
|
67
|
+
}), sortValue.by === option.key && /* @__PURE__ */ jsx(CheckCircle, {
|
|
68
|
+
size: 18,
|
|
69
|
+
"aria-hidden": "true",
|
|
70
|
+
weight: "filled"
|
|
71
|
+
})]
|
|
72
|
+
}, option.key)),
|
|
73
|
+
/* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
74
|
+
/* @__PURE__ */ jsx(Label, {
|
|
75
|
+
className: "text-muted px-3 pt-2",
|
|
76
|
+
children: "Direction"
|
|
77
|
+
}),
|
|
78
|
+
sortDirections.map((option) => /* @__PURE__ */ jsxs(Button, {
|
|
79
|
+
variant: "ghost",
|
|
80
|
+
className: actionClass,
|
|
81
|
+
"aria-pressed": sortValue.direction === option.key,
|
|
82
|
+
onPress: () => onSortChange?.({
|
|
83
|
+
...sortValue,
|
|
84
|
+
direction: option.key
|
|
85
|
+
}),
|
|
86
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
87
|
+
className: "flex-1",
|
|
88
|
+
children: option.label
|
|
89
|
+
}), sortValue.direction === option.key && /* @__PURE__ */ jsx(CheckCircle, {
|
|
90
|
+
size: 18,
|
|
91
|
+
"aria-hidden": "true",
|
|
92
|
+
weight: "filled"
|
|
93
|
+
})]
|
|
94
|
+
}, option.key))
|
|
95
|
+
] });
|
|
96
|
+
var getHomeSeparators = ({ sync, filterAction, sort, viewModeActions, menuActions, mobileToolbar }) => ({
|
|
97
|
+
afterMobile: Boolean(mobileToolbar && (sync || filterAction || sort || viewModeActions.length > 0 || menuActions.length > 0)),
|
|
98
|
+
beforeView: Boolean((filterAction || sort) && viewModeActions.length > 0),
|
|
99
|
+
beforeMenu: Boolean(menuActions.length > 0 && (sync || filterAction || sort || viewModeActions.length > 0))
|
|
100
|
+
});
|
|
101
|
+
var SheetHome = ({ sync, onSync, filterAction, sort, sortValue, viewModeActions, onViewModeChange, menuActions, mobileToolbar, setPage, renderActions }) => {
|
|
102
|
+
const separators = getHomeSeparators({
|
|
103
|
+
sync,
|
|
104
|
+
filterAction,
|
|
105
|
+
sort,
|
|
106
|
+
viewModeActions,
|
|
107
|
+
menuActions,
|
|
108
|
+
mobileToolbar
|
|
109
|
+
});
|
|
110
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
111
|
+
mobileToolbar,
|
|
112
|
+
separators.afterMobile && /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
113
|
+
sync && renderActions([{
|
|
114
|
+
key: "sync",
|
|
115
|
+
label: "Sync",
|
|
116
|
+
icon: "vx:refresh",
|
|
117
|
+
onAction: onSync
|
|
118
|
+
}]),
|
|
119
|
+
filterAction && /* @__PURE__ */ jsxs(Button, {
|
|
120
|
+
variant: "ghost",
|
|
121
|
+
className: actionClass,
|
|
122
|
+
onPress: () => setPage("filter"),
|
|
123
|
+
children: [
|
|
124
|
+
/* @__PURE__ */ jsx(AppIcon, {
|
|
125
|
+
icon: filterAction.icon,
|
|
126
|
+
size: 18,
|
|
127
|
+
"aria-hidden": "true"
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx("span", {
|
|
130
|
+
className: "flex-1",
|
|
131
|
+
children: "Filter"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ jsx(AltArrowRight, {
|
|
134
|
+
size: 18,
|
|
135
|
+
"aria-hidden": "true"
|
|
136
|
+
})
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
sort && /* @__PURE__ */ jsxs(Button, {
|
|
140
|
+
variant: "ghost",
|
|
141
|
+
className: actionClass,
|
|
142
|
+
onPress: () => setPage("sort"),
|
|
143
|
+
children: [
|
|
144
|
+
sortValue.direction === "ascending" ? /* @__PURE__ */ jsx(SortFromBottomToTop, {
|
|
145
|
+
size: 18,
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
}) : /* @__PURE__ */ jsx(SortFromTopToBottom, {
|
|
148
|
+
size: 18,
|
|
149
|
+
"aria-hidden": "true"
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ jsx("span", {
|
|
152
|
+
className: "flex-1",
|
|
153
|
+
children: "Sort"
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ jsx(AltArrowRight, {
|
|
156
|
+
size: 18,
|
|
157
|
+
"aria-hidden": "true"
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}),
|
|
161
|
+
separators.beforeView && /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
162
|
+
renderActions(viewModeActions.map((action) => ({
|
|
163
|
+
...action,
|
|
164
|
+
onAction: () => onViewModeChange(action.key)
|
|
165
|
+
}))),
|
|
166
|
+
separators.beforeMenu && /* @__PURE__ */ jsx(Separator, { className: "my-1" }),
|
|
167
|
+
renderActions(menuActions)
|
|
168
|
+
] });
|
|
169
|
+
};
|
|
170
|
+
var SheetActions = ({ actions, path, setPath, run }) => actions.map((action) => /* @__PURE__ */ jsxs(Button, {
|
|
171
|
+
variant: "ghost",
|
|
172
|
+
className: actionClass,
|
|
173
|
+
onPress: () => action.children?.length ? setPath([...path, action]) : run(action.onAction),
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ jsx(AppIcon, {
|
|
176
|
+
icon: action.icon,
|
|
177
|
+
size: 18,
|
|
178
|
+
"aria-hidden": "true"
|
|
179
|
+
}),
|
|
180
|
+
/* @__PURE__ */ jsx("span", {
|
|
181
|
+
className: "flex-1",
|
|
182
|
+
children: action.label
|
|
183
|
+
}),
|
|
184
|
+
Boolean(action.children?.length) && /* @__PURE__ */ jsx(AltArrowRight, {
|
|
185
|
+
size: 18,
|
|
186
|
+
"aria-hidden": "true"
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
}, action.key));
|
|
190
|
+
var getSheetTitle = (mobilePage, page, current) => {
|
|
191
|
+
if (mobilePage) return mobilePage.title;
|
|
192
|
+
if (page === "filter") return "Filter";
|
|
193
|
+
if (page === "sort") return "Sort";
|
|
194
|
+
return current?.label ?? "More";
|
|
195
|
+
};
|
|
196
|
+
var ToolbarMoreSheet = ({ filterAction, filterGroups, menuActions, mobileToolbar, onSync, onToggleFilter, onViewModeChange, selectedFilters, sync, sort, sortValue, onSortChange, viewModeActions }) => {
|
|
197
|
+
const [open, setOpen] = useState(false);
|
|
198
|
+
const [page, setPage] = useState("home");
|
|
199
|
+
const [path, setPath] = useState([]);
|
|
200
|
+
const [mobilePage, setMobilePage] = useState(null);
|
|
201
|
+
const changeOpen = (value) => {
|
|
202
|
+
setOpen(value);
|
|
203
|
+
if (!value) {
|
|
204
|
+
setPage("home");
|
|
205
|
+
setPath([]);
|
|
206
|
+
setMobilePage(null);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const run = (action) => {
|
|
210
|
+
changeOpen(false);
|
|
211
|
+
action?.();
|
|
212
|
+
};
|
|
213
|
+
const current = path[path.length - 1];
|
|
214
|
+
const title = getSheetTitle(mobilePage, page, current);
|
|
215
|
+
const mobileToolbarNavigation = useMemo(() => ({
|
|
216
|
+
closeSheet: () => changeOpen(false),
|
|
217
|
+
page: mobilePage,
|
|
218
|
+
openPage: (nextPage) => {
|
|
219
|
+
setMobilePage(nextPage);
|
|
220
|
+
setPage("home");
|
|
221
|
+
setPath([]);
|
|
222
|
+
}
|
|
223
|
+
}), [mobilePage]);
|
|
224
|
+
const renderActions = (actions) => /* @__PURE__ */ jsx(SheetActions, {
|
|
225
|
+
actions,
|
|
226
|
+
path,
|
|
227
|
+
setPath,
|
|
228
|
+
run
|
|
229
|
+
});
|
|
230
|
+
return /* @__PURE__ */ jsx(MobileToolbarNavigationContext.Provider, {
|
|
231
|
+
value: mobileToolbarNavigation,
|
|
232
|
+
children: /* @__PURE__ */ jsx(MenuSheet, {
|
|
233
|
+
title: "Toolbar actions",
|
|
234
|
+
hideTitle: true,
|
|
235
|
+
isOpen: open,
|
|
236
|
+
onOpenChange: changeOpen,
|
|
237
|
+
trigger: /* @__PURE__ */ jsx(Button, {
|
|
238
|
+
isIconOnly: true,
|
|
239
|
+
variant: "ghost",
|
|
240
|
+
"aria-label": "More",
|
|
241
|
+
className: "h-9 w-9 min-w-9 rounded-full p-0",
|
|
242
|
+
children: /* @__PURE__ */ jsx(MenuDots, {
|
|
243
|
+
className: "rotate-90",
|
|
244
|
+
size: 18,
|
|
245
|
+
"aria-hidden": "true"
|
|
246
|
+
})
|
|
247
|
+
}),
|
|
248
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
249
|
+
className: "flex flex-col gap-1",
|
|
250
|
+
children: [(page !== "home" || current || mobilePage) && /* @__PURE__ */ jsxs(Button, {
|
|
251
|
+
variant: "ghost",
|
|
252
|
+
className: actionClass,
|
|
253
|
+
"aria-label": "Back to toolbar actions",
|
|
254
|
+
onPress: () => {
|
|
255
|
+
if (mobilePage) setMobilePage(null);
|
|
256
|
+
else if (current) setPath(path.slice(0, -1));
|
|
257
|
+
else setPage("home");
|
|
258
|
+
},
|
|
259
|
+
children: [/* @__PURE__ */ jsx(AltArrowLeft, {
|
|
260
|
+
size: 18,
|
|
261
|
+
"aria-hidden": "true"
|
|
262
|
+
}), title]
|
|
263
|
+
}), mobilePage ? mobileToolbar : page === "filter" ? /* @__PURE__ */ jsx(SheetFilters, {
|
|
264
|
+
filterGroups,
|
|
265
|
+
selectedFilters,
|
|
266
|
+
onToggleFilter
|
|
267
|
+
}) : page === "sort" ? /* @__PURE__ */ jsx(SheetSort, {
|
|
268
|
+
sortValue,
|
|
269
|
+
onSortChange
|
|
270
|
+
}) : current ? renderActions(current.children ?? []) : /* @__PURE__ */ jsx(SheetHome, {
|
|
271
|
+
sync,
|
|
272
|
+
onSync,
|
|
273
|
+
filterAction,
|
|
274
|
+
sort,
|
|
275
|
+
sortValue,
|
|
276
|
+
viewModeActions,
|
|
277
|
+
onViewModeChange,
|
|
278
|
+
menuActions,
|
|
279
|
+
mobileToolbar,
|
|
280
|
+
setPage,
|
|
281
|
+
renderActions
|
|
282
|
+
})]
|
|
283
|
+
}, `${page}:${mobilePage?.key ?? ""}:${path.map((action) => action.key).join(":")}`)
|
|
284
|
+
})
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
//#endregion
|
|
288
|
+
export { ToolbarMoreSheet, useMobileToolbarNavigation };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { AppNavigationItem } from '../../navigation';
|
|
3
|
+
import { SectionSort } from './sort-menu';
|
|
4
|
+
export type SectionAction = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
onAction?: () => void;
|
|
9
|
+
children?: SectionAction[];
|
|
10
|
+
};
|
|
11
|
+
export type SectionSearch = {
|
|
12
|
+
value: string;
|
|
13
|
+
onChange: (value: string) => void;
|
|
14
|
+
onSearch?: () => void;
|
|
15
|
+
label?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
};
|
|
18
|
+
export type SectionViewMode = 'grid' | 'list';
|
|
19
|
+
export type SectionFilterKey = 'uploaded' | 'generated' | 'images' | 'documents' | 'spreadsheets' | 'presentations' | 'pdfs';
|
|
20
|
+
export type SectionViewAction = {
|
|
21
|
+
key: SectionViewMode;
|
|
22
|
+
label: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
};
|
|
25
|
+
type ToolbarSearch = SectionSearch & {
|
|
26
|
+
inputRef: RefObject<HTMLInputElement | null>;
|
|
27
|
+
isOpen: boolean;
|
|
28
|
+
onOpenChange: (isOpen: boolean) => void;
|
|
29
|
+
};
|
|
30
|
+
type Props = {
|
|
31
|
+
title: string;
|
|
32
|
+
tabs: AppNavigationItem[];
|
|
33
|
+
navigationControls: ReactNode;
|
|
34
|
+
isNavigationCollapsed?: boolean;
|
|
35
|
+
toolbar?: ReactNode;
|
|
36
|
+
mobileToolbar?: ReactNode;
|
|
37
|
+
search?: ToolbarSearch;
|
|
38
|
+
menuActions: SectionAction[];
|
|
39
|
+
primaryAction?: SectionAction;
|
|
40
|
+
onSync: () => void;
|
|
41
|
+
sync?: boolean;
|
|
42
|
+
filter?: boolean;
|
|
43
|
+
sort?: boolean;
|
|
44
|
+
sortValue?: SectionSort;
|
|
45
|
+
onSortChange?: (value: SectionSort) => void;
|
|
46
|
+
view?: SectionViewAction[];
|
|
47
|
+
selectedFilters: SectionFilterKey[];
|
|
48
|
+
onSelectedFiltersChange: (filters: SectionFilterKey[]) => void;
|
|
49
|
+
viewMode: SectionViewMode;
|
|
50
|
+
onViewModeChange: (viewMode: SectionViewMode) => void;
|
|
51
|
+
isMenuOpen: boolean;
|
|
52
|
+
onMenuOpenChange: (isOpen: boolean) => void;
|
|
53
|
+
};
|
|
54
|
+
declare const SectionActiveFilters: ({ selectedFilters, onSelectedFiltersChange }: {
|
|
55
|
+
selectedFilters: SectionFilterKey[];
|
|
56
|
+
onSelectedFiltersChange: (filters: SectionFilterKey[]) => void;
|
|
57
|
+
}) => import("react").JSX.Element | null;
|
|
58
|
+
declare const SectionToolbar: (props: Props) => import("react").JSX.Element;
|
|
59
|
+
export { SectionActiveFilters, SectionToolbar };
|
|
60
|
+
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../../src/lib/layouts/section/toolbar.tsx"],"names":[],"mappings":"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"}
|