@vezham/react 26.0.0-alpha.5 → 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 -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 +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
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { AccountSettings } from "./user-settings/account/index.js";
|
|
2
|
+
import { ContentSocialSettings } from "./user-settings/content-social/index.js";
|
|
3
|
+
import { PrivacySettings } from "./user-settings/data-privacy/index.js";
|
|
4
|
+
import { FamilyCenterSettings } from "./user-settings/family-center/index.js";
|
|
5
|
+
import { ProfileSettings } from "./user-settings/profiles/index.js";
|
|
6
|
+
//#region src/lib/components/panel/footer/preferences/data.ts
|
|
7
|
+
var settingsSidebar = [
|
|
8
|
+
{
|
|
9
|
+
title: "",
|
|
10
|
+
items: [{
|
|
11
|
+
id: "profiles",
|
|
12
|
+
label: "Arya Chan",
|
|
13
|
+
component: ProfileSettings
|
|
14
|
+
}]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
title: "USER SETTINGS",
|
|
18
|
+
items: [
|
|
19
|
+
{
|
|
20
|
+
id: "account",
|
|
21
|
+
label: "My Account",
|
|
22
|
+
icon: "vx:user",
|
|
23
|
+
component: AccountSettings
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "content-social",
|
|
27
|
+
label: "Content & Social",
|
|
28
|
+
icon: "vx:share",
|
|
29
|
+
component: ContentSocialSettings
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "privacy",
|
|
33
|
+
label: "Data & Privacy",
|
|
34
|
+
icon: "vx:shield-check",
|
|
35
|
+
component: PrivacySettings,
|
|
36
|
+
children: [{
|
|
37
|
+
id: "privacy-data",
|
|
38
|
+
label: "How Discord Uses Your Data"
|
|
39
|
+
}, {
|
|
40
|
+
id: "privacy-request",
|
|
41
|
+
label: "Request your Data"
|
|
42
|
+
}]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "family-center",
|
|
46
|
+
label: "Family Center",
|
|
47
|
+
icon: "vx:devices",
|
|
48
|
+
component: FamilyCenterSettings
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: "authorized-apps",
|
|
52
|
+
label: "Authorized Apps",
|
|
53
|
+
icon: "vx:devices"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "devices",
|
|
57
|
+
label: "Devices",
|
|
58
|
+
icon: "vx:devices"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "connections",
|
|
62
|
+
label: "Connections",
|
|
63
|
+
icon: "vx:devices"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "notifications",
|
|
67
|
+
label: "Notifications",
|
|
68
|
+
icon: "vx:devices",
|
|
69
|
+
children: [
|
|
70
|
+
{
|
|
71
|
+
id: "notifications-overview",
|
|
72
|
+
label: "Overview"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "notifications-sounds",
|
|
76
|
+
label: "Sounds"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: "notifications-badges",
|
|
80
|
+
label: "Badges"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: "notifications-email",
|
|
84
|
+
label: "Email"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "notifications-advanced",
|
|
88
|
+
label: "Advanced"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: "BILLING SETTINGS",
|
|
96
|
+
items: [
|
|
97
|
+
{
|
|
98
|
+
id: "nitro",
|
|
99
|
+
label: "Nitro",
|
|
100
|
+
icon: "vx:star"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: "server-boost",
|
|
104
|
+
label: "Server Boost",
|
|
105
|
+
icon: "vx:card"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "subscriptions",
|
|
109
|
+
label: "Subscriptions",
|
|
110
|
+
icon: "vx:card"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "gift-inventory",
|
|
114
|
+
label: "Gift Inventory",
|
|
115
|
+
icon: "vx:card"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "billing",
|
|
119
|
+
label: "Billing",
|
|
120
|
+
icon: "vx:wallet",
|
|
121
|
+
children: [{
|
|
122
|
+
id: "billing-payment-methods",
|
|
123
|
+
label: "Payment Methods"
|
|
124
|
+
}, {
|
|
125
|
+
id: "billing-transaction-history",
|
|
126
|
+
label: "Transaction History"
|
|
127
|
+
}]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
title: "APP SETTINGS",
|
|
133
|
+
items: [
|
|
134
|
+
{
|
|
135
|
+
id: "appearance",
|
|
136
|
+
label: "Appearance",
|
|
137
|
+
icon: "vx:palette",
|
|
138
|
+
children: [
|
|
139
|
+
{
|
|
140
|
+
id: "appearance-theme",
|
|
141
|
+
label: "Theme"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "appearance-in-appicon",
|
|
145
|
+
label: "In-app Icon"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: "appearance-ui-density",
|
|
149
|
+
label: "UI Density"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "appearance-message-spacing",
|
|
153
|
+
label: "Message Spacing"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: "appearance-scaling",
|
|
157
|
+
label: "Scaling"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "accessibility",
|
|
163
|
+
label: "Accessibility",
|
|
164
|
+
icon: "vx:videocamera",
|
|
165
|
+
children: [
|
|
166
|
+
{
|
|
167
|
+
id: "accessibility-colors",
|
|
168
|
+
label: "Colors & Saturation"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "accessibility-profile",
|
|
172
|
+
label: "Profile Colors"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "accessibility-contrast",
|
|
176
|
+
label: "Contrast"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "accessibility-reducedmotion",
|
|
180
|
+
label: "Reduced Motion"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "accessibility-chatinput",
|
|
184
|
+
label: "Chat Input"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
id: "accessbility-textspeech",
|
|
188
|
+
label: "Text Speech"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
id: "voice-video",
|
|
194
|
+
label: "Voice & Video",
|
|
195
|
+
icon: "vx:videocamera",
|
|
196
|
+
children: [
|
|
197
|
+
{
|
|
198
|
+
id: "voicevideo-camera",
|
|
199
|
+
label: "Camera"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "voicevideo-streaming",
|
|
203
|
+
label: "Streaming"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: "voicevideo-sounds",
|
|
207
|
+
label: "Sounds"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: "voicevideo-soundboard",
|
|
211
|
+
label: "Soundboard"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: "voicevideo-advanced",
|
|
215
|
+
label: "Advanced"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
id: "chat",
|
|
221
|
+
label: "Chat",
|
|
222
|
+
icon: "vx:chat-round-dots",
|
|
223
|
+
children: [
|
|
224
|
+
{
|
|
225
|
+
id: "chat-media",
|
|
226
|
+
label: "Media"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "chat-embeds",
|
|
230
|
+
label: "Embeds and Link Previews"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "chat-emoji",
|
|
234
|
+
label: "Emoji"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: "chat-stickers",
|
|
238
|
+
label: "Stickers"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "chat-textbox",
|
|
242
|
+
label: "Text box"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: "chat-threads",
|
|
246
|
+
label: "Threads"
|
|
247
|
+
}
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "keybinds",
|
|
252
|
+
label: "Keybinds",
|
|
253
|
+
icon: "vx:settings"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
id: "language-time",
|
|
257
|
+
label: "Language & Time",
|
|
258
|
+
icon: "vx:settings"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
id: "streamer-mode",
|
|
262
|
+
label: "Streamer Mode",
|
|
263
|
+
icon: "vx:settings"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: "advanced",
|
|
267
|
+
label: "... Advanced",
|
|
268
|
+
icon: "vx:settings"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: "ACTIVITY SETTINGS",
|
|
274
|
+
items: [{
|
|
275
|
+
id: "activity",
|
|
276
|
+
label: "Activity Privacy",
|
|
277
|
+
icon: "vx:palette",
|
|
278
|
+
children: [
|
|
279
|
+
{
|
|
280
|
+
id: "activity-sharing",
|
|
281
|
+
label: "Activity Sharing"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: "activity-servers",
|
|
285
|
+
label: "Servers I Share With"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
id: "activity-games",
|
|
289
|
+
label: "Who Can Join My Games"
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
}]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
title: "",
|
|
296
|
+
items: [{
|
|
297
|
+
id: "logout",
|
|
298
|
+
label: "Log Out",
|
|
299
|
+
icon: "vx:palette"
|
|
300
|
+
}]
|
|
301
|
+
}
|
|
302
|
+
];
|
|
303
|
+
//#endregion
|
|
304
|
+
export { settingsSidebar };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
defaultActiveTab?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const UserInfoModal: ({ open, onClose, defaultActiveTab }: Props) => import("react").JSX.Element | null;
|
|
7
|
+
export { UserInfoModal };
|
|
8
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/footer/preferences/modal.tsx"],"names":[],"mappings":"AAOA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,aAAa,GAAI,qCAIpB,KAAK,uCASP,CAAA;AAsED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { SettingsSidebar, findItemById } from "./sidebar.js";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { Button, Surface } from "@vezham/react-v3";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { CloseCircle } from "@vezham/icons-react";
|
|
6
|
+
//#region src/lib/components/panel/footer/preferences/modal.tsx
|
|
7
|
+
var UserInfoModal = ({ open, onClose, defaultActiveTab = "account" }) => {
|
|
8
|
+
if (!open) return null;
|
|
9
|
+
return /* @__PURE__ */ jsx(UserInfoModalContent, {
|
|
10
|
+
defaultActiveTab,
|
|
11
|
+
onClose
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var UserInfoModalContent = ({ defaultActiveTab, onClose }) => {
|
|
15
|
+
const [active, setActive] = useState(defaultActiveTab);
|
|
16
|
+
const contentRef = useRef(null);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
const container = contentRef.current;
|
|
19
|
+
if (!container) return;
|
|
20
|
+
const sections = Array.from(container.querySelectorAll("[id]"));
|
|
21
|
+
const observer = new IntersectionObserver((entries) => {
|
|
22
|
+
const visible = entries.filter((entry) => entry.isIntersecting).sort((a, b) => b.intersectionRatio - a.intersectionRatio);
|
|
23
|
+
if (visible.length > 0) {
|
|
24
|
+
const id = visible[0].target.id;
|
|
25
|
+
setActive(id);
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
root: container,
|
|
29
|
+
threshold: [
|
|
30
|
+
.25,
|
|
31
|
+
.5,
|
|
32
|
+
.75
|
|
33
|
+
],
|
|
34
|
+
rootMargin: "-20% 0px -60% 0px"
|
|
35
|
+
});
|
|
36
|
+
sections.forEach((section) => observer.observe(section));
|
|
37
|
+
return () => observer.disconnect();
|
|
38
|
+
}, []);
|
|
39
|
+
const Component = findItemById(active)?.component;
|
|
40
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
41
|
+
className: "fixed inset-0 z-[100] flex items-center justify-center",
|
|
42
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
43
|
+
type: "button",
|
|
44
|
+
"aria-label": "Close preferences",
|
|
45
|
+
className: "absolute inset-0 bg-black/60 backdrop-blur-sm",
|
|
46
|
+
onClick: onClose
|
|
47
|
+
}), /* @__PURE__ */ jsxs(Surface, {
|
|
48
|
+
className: "relative z-10 flex h-[500px] w-[700px] rounded-2xl p-6",
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Button, {
|
|
51
|
+
"aria-label": "Close preferences",
|
|
52
|
+
isIconOnly: true,
|
|
53
|
+
variant: "ghost",
|
|
54
|
+
className: "absolute top-4 right-4",
|
|
55
|
+
onPress: onClose,
|
|
56
|
+
children: /* @__PURE__ */ jsx(CloseCircle, {
|
|
57
|
+
size: 22,
|
|
58
|
+
"aria-hidden": "true"
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ jsx(SettingsSidebar, {
|
|
62
|
+
active,
|
|
63
|
+
onSelect: setActive
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ jsx("div", {
|
|
66
|
+
ref: contentRef,
|
|
67
|
+
className: "flex-1 overflow-auto p-6",
|
|
68
|
+
children: Component ? /* @__PURE__ */ jsx(Component, {}) : /* @__PURE__ */ jsx("div", { children: "Select a setting" })
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { UserInfoModal };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SidebarItem } from './data';
|
|
2
|
+
type Props = {
|
|
3
|
+
active: string;
|
|
4
|
+
onSelect: (id: string) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const SettingsSidebar: ({ active, onSelect }: Props) => import("react").JSX.Element;
|
|
7
|
+
declare const findItemById: (id: string) => SidebarItem | undefined;
|
|
8
|
+
export { SettingsSidebar, findItemById };
|
|
9
|
+
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/footer/preferences/sidebar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAmB,MAAM,QAAQ,CAAA;AAErD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B,CAAA;AAED,QAAA,MAAM,eAAe,GAAI,sBAAsB,KAAK,gCAuInD,CAAA;AAED,QAAA,MAAM,YAAY,GAAI,IAAI,MAAM,4BAY/B,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { AppIcon } from "../../../app-icon/index.js";
|
|
3
|
+
import { useUser } from "../../../../store/users/useUserStore.js";
|
|
4
|
+
import { settingsSidebar } from "./data.js";
|
|
5
|
+
import { useState } from "react";
|
|
6
|
+
import { Button, ScrollShadow } from "@vezham/react-v3";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/lib/components/panel/footer/preferences/sidebar.tsx
|
|
9
|
+
var SettingsSidebar = ({ active, onSelect }) => {
|
|
10
|
+
const [openGroups, setOpenGroups] = useState([]);
|
|
11
|
+
const { user } = useUser();
|
|
12
|
+
const names = user ? `${user.firstName} ${user.lastName}` : "Guest";
|
|
13
|
+
const avatar = user?.avatar;
|
|
14
|
+
const toggleGroup = (id) => {
|
|
15
|
+
setOpenGroups((prev) => prev.includes(id) ? prev.filter((i) => i !== id) : [...prev, id]);
|
|
16
|
+
};
|
|
17
|
+
const renderItem = (item, level = 0) => {
|
|
18
|
+
const hasChildren = item.children?.length;
|
|
19
|
+
const isOpen = openGroups.includes(item.id) || Boolean(item.children?.some((child) => child.id === active));
|
|
20
|
+
const isChildActive = item.children?.some((c) => c.id === active) || active.startsWith(item.id);
|
|
21
|
+
if (item.id === "profiles") {
|
|
22
|
+
const initials = names.split(" ").map((n) => n[0]).join("").slice(0, 2).toUpperCase();
|
|
23
|
+
return /* @__PURE__ */ jsx("div", {
|
|
24
|
+
className: "px-2",
|
|
25
|
+
children: /* @__PURE__ */ jsxs("button", {
|
|
26
|
+
type: "button",
|
|
27
|
+
onClick: () => onSelect(item.id),
|
|
28
|
+
className: `flex w-full items-center gap-4 rounded-xl p-2 px-2 ${active === item.id ? "bg-default-100" : "hover:bg-default-50"}`,
|
|
29
|
+
children: [avatar ? /* @__PURE__ */ jsx("img", {
|
|
30
|
+
alt: names,
|
|
31
|
+
src: avatar,
|
|
32
|
+
className: "h-10 w-10 rounded-full object-cover"
|
|
33
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
34
|
+
className: "flex h-10 w-10 items-center justify-center rounded-full bg-red-500 font-bold text-white",
|
|
35
|
+
children: initials
|
|
36
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
37
|
+
className: "flex flex-col items-start",
|
|
38
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
39
|
+
className: "text-sm font-medium",
|
|
40
|
+
children: names
|
|
41
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
42
|
+
className: "text-default-500 text-xs",
|
|
43
|
+
children: "Edit Profile"
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
}, item.id);
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs(Button, {
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
onPress: () => {
|
|
52
|
+
if (hasChildren) toggleGroup(item.id);
|
|
53
|
+
onSelect(item.id);
|
|
54
|
+
document.getElementById(item.id)?.scrollIntoView({
|
|
55
|
+
behavior: "smooth",
|
|
56
|
+
block: "start"
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
className: `flex w-full items-center justify-between rounded-lg px-3 py-2 text-sm ${active === item.id || isChildActive ? "bg-default-100 font-medium" : "hover:bg-default-50"}`,
|
|
60
|
+
style: { paddingLeft: 12 + level * 16 },
|
|
61
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
62
|
+
className: "flex items-center gap-2",
|
|
63
|
+
children: [item.icon && /* @__PURE__ */ jsx(AppIcon, {
|
|
64
|
+
icon: item.icon,
|
|
65
|
+
size: 18,
|
|
66
|
+
"aria-hidden": "true"
|
|
67
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
68
|
+
className: `${active === item.id ? "text-foreground font-medium" : isChildActive ? "text-foreground" : level > 0 ? "text-default-400" : "text-default-600"}`,
|
|
69
|
+
children: item.label
|
|
70
|
+
})]
|
|
71
|
+
}), hasChildren && /* @__PURE__ */ jsx(AppIcon, {
|
|
72
|
+
icon: isOpen ? "vx:chevron-down" : "vx:chevron-right",
|
|
73
|
+
size: 16,
|
|
74
|
+
"aria-hidden": "true"
|
|
75
|
+
})]
|
|
76
|
+
}), hasChildren && isOpen && /* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: "mt-1 space-y-1",
|
|
78
|
+
children: item.children?.map((child) => renderItem(child, level + 1))
|
|
79
|
+
})] }, item.id);
|
|
80
|
+
};
|
|
81
|
+
return /* @__PURE__ */ jsx(ScrollShadow, {
|
|
82
|
+
className: "w-[240px] pr-2",
|
|
83
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
84
|
+
className: "space-y-6",
|
|
85
|
+
children: settingsSidebar.map((section) => /* @__PURE__ */ jsxs("div", { children: [section.title && /* @__PURE__ */ jsx("p", {
|
|
86
|
+
className: "text-default-500 mb-2 px-3 text-xs font-semibold",
|
|
87
|
+
children: section.title
|
|
88
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
89
|
+
className: "space-y-1",
|
|
90
|
+
children: section.items.map((item) => renderItem(item))
|
|
91
|
+
})] }, section.title))
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
var findItemById = (id) => {
|
|
96
|
+
for (const section of settingsSidebar) for (const item of section.items) {
|
|
97
|
+
if (item.id === id) return item;
|
|
98
|
+
if (item.children) {
|
|
99
|
+
const found = item.children.find((c) => c.id === id);
|
|
100
|
+
if (found) return found;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
//#endregion
|
|
105
|
+
export { SettingsSidebar, findItemById };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/components/panel/footer/preferences/user-settings/account/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,mCAkBpB,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomTabs } from "../../../tabs.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/lib/components/panel/footer/preferences/user-settings/account/index.tsx
|
|
4
|
+
var AccountSettings = () => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CustomTabs, { tabs: [{
|
|
6
|
+
id: "security",
|
|
7
|
+
label: "Security",
|
|
8
|
+
content: /* @__PURE__ */ jsx("p", { children: "View your project overview and recent activity." })
|
|
9
|
+
}, {
|
|
10
|
+
id: "standing",
|
|
11
|
+
label: "Standing",
|
|
12
|
+
content: /* @__PURE__ */ jsx("p", { children: "Track your metrics and analyze performance data." })
|
|
13
|
+
}] }) });
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AccountSettings };
|
package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/components/panel/footer/preferences/user-settings/content-social/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,qBAAqB,mCAmB1B,CAAA;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomTabs } from "../../../tabs.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/lib/components/panel/footer/preferences/user-settings/content-social/index.tsx
|
|
4
|
+
var ContentSocialSettings = () => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CustomTabs, { tabs: [{
|
|
6
|
+
id: "discord",
|
|
7
|
+
label: "Discord",
|
|
8
|
+
content: /* @__PURE__ */ jsx("p", { children: "View your project overview and recent activity." })
|
|
9
|
+
}, {
|
|
10
|
+
id: "games",
|
|
11
|
+
label: "Connected Games",
|
|
12
|
+
content: /* @__PURE__ */ jsx("p", { children: "Track your metrics and analyze performance data." })
|
|
13
|
+
}] }) });
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ContentSocialSettings };
|
package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/components/panel/footer/preferences/user-settings/data-privacy/index.tsx"],"names":[],"mappings":"AA+BA,QAAA,MAAM,eAAe,mCAqDpB,CAAA;AAED,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Switch } from "@vezham/react-v3";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/lib/components/panel/footer/preferences/user-settings/data-privacy/index.tsx
|
|
5
|
+
var items = [
|
|
6
|
+
{
|
|
7
|
+
title: "Use data to improve Discord",
|
|
8
|
+
desc: "Allows us to use and process your information to understand and improve our services."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: "Use my Discord activity to personalize Sponsored Content",
|
|
12
|
+
desc: "Allows us to personalize Sponsored Content like Quests using your activity."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: "Use third-party data to personalize Sponsored Content",
|
|
16
|
+
desc: "Allows us to personalize Sponsored Content using third-party data."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: "Use data to personalize my Discord experience",
|
|
20
|
+
desc: "Allows us to use info like who you talk to and what you play."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: "Allow my voice to be recorded in Clips",
|
|
24
|
+
desc: "Your voice may be included when someone uses Clips."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: "Use data to make Discord work",
|
|
28
|
+
desc: "We need to process some data to provide core features."
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
var PrivacySettings = () => {
|
|
32
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
33
|
+
id: "privacy",
|
|
34
|
+
className: "space-y-10",
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("div", {
|
|
37
|
+
id: "privacy-data",
|
|
38
|
+
className: "space-y-6",
|
|
39
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
40
|
+
className: "text-2xl font-semibold",
|
|
41
|
+
children: "How Discord Uses Your Data"
|
|
42
|
+
}), items.map((item) => /* @__PURE__ */ jsxs("div", {
|
|
43
|
+
className: "flex items-start justify-between gap-6",
|
|
44
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
45
|
+
className: "font-medium",
|
|
46
|
+
children: item.title
|
|
47
|
+
}), /* @__PURE__ */ jsxs("p", {
|
|
48
|
+
className: "text-default-500 mt-1 text-sm",
|
|
49
|
+
children: [
|
|
50
|
+
item.desc,
|
|
51
|
+
" ",
|
|
52
|
+
/* @__PURE__ */ jsx("span", {
|
|
53
|
+
className: "text-primary cursor-pointer",
|
|
54
|
+
children: "Learn more"
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})] }), /* @__PURE__ */ jsx(Switch, {
|
|
58
|
+
defaultSelected: true,
|
|
59
|
+
"aria-label": item.title,
|
|
60
|
+
children: /* @__PURE__ */ jsx(Switch.Content, { children: /* @__PURE__ */ jsx(Switch.Control, { children: /* @__PURE__ */ jsx(Switch.Thumb, {}) }) })
|
|
61
|
+
})]
|
|
62
|
+
}, item.title))]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "border-default-100 border-t" }),
|
|
65
|
+
/* @__PURE__ */ jsxs("div", {
|
|
66
|
+
id: "privacy-request",
|
|
67
|
+
className: "space-y-6",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ jsx("h1", {
|
|
70
|
+
className: "text-2xl font-semibold",
|
|
71
|
+
children: "Request Your Data"
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
74
|
+
className: "font-medium",
|
|
75
|
+
children: "Request all of my data"
|
|
76
|
+
}), /* @__PURE__ */ jsxs("p", {
|
|
77
|
+
className: "text-default-500 text-sm",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: "text-primary cursor-pointer",
|
|
81
|
+
children: "Learn more"
|
|
82
|
+
}),
|
|
83
|
+
" ",
|
|
84
|
+
"about how getting a copy of your personal data works"
|
|
85
|
+
]
|
|
86
|
+
})] }),
|
|
87
|
+
/* @__PURE__ */ jsx("div", {
|
|
88
|
+
className: "border-default-200 text-default-500 rounded-xl border p-4 text-sm",
|
|
89
|
+
children: "Your account must be verified with an email address to request data. You can verify your account in the My Account section"
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx("button", {
|
|
92
|
+
className: "bg-primary rounded-lg px-4 py-2 text-white",
|
|
93
|
+
children: "Request Data"
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { PrivacySettings };
|
package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/components/panel/footer/preferences/user-settings/family-center/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,oBAAoB,mCAwBzB,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|