@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,150 @@
|
|
|
1
|
+
import { controlCenterVariants, optionTileVariants } from "./variant.js";
|
|
2
|
+
import { ActionTile } from "./tile.js";
|
|
3
|
+
import { useRootAttribute } from "./document.js";
|
|
4
|
+
import { Button, ColorSwatch, ColorSwatchPicker, parseColor } from "@vezham/react-v3";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Palette } from "@vezham/icons-react";
|
|
7
|
+
//#region src/lib/components/panel/footer/control-center/theme.tsx
|
|
8
|
+
var colors = [
|
|
9
|
+
{
|
|
10
|
+
id: "blue",
|
|
11
|
+
label: "Blue",
|
|
12
|
+
color: "#0067d6",
|
|
13
|
+
foreground: "#ffffff"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: "purple",
|
|
17
|
+
label: "Purple",
|
|
18
|
+
color: "#7d3fc8",
|
|
19
|
+
foreground: "#ffffff"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: "pink",
|
|
23
|
+
label: "Pink",
|
|
24
|
+
color: "#d63384",
|
|
25
|
+
foreground: "#ffffff"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "red",
|
|
29
|
+
label: "Red",
|
|
30
|
+
color: "#c9373c",
|
|
31
|
+
foreground: "#ffffff"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: "orange",
|
|
35
|
+
label: "Orange",
|
|
36
|
+
color: "#b85a00",
|
|
37
|
+
foreground: "#ffffff"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: "yellow",
|
|
41
|
+
label: "Yellow",
|
|
42
|
+
color: "#f0bd27",
|
|
43
|
+
foreground: "#111111"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: "green",
|
|
47
|
+
label: "Green",
|
|
48
|
+
color: "#24823d",
|
|
49
|
+
foreground: "#ffffff"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: "graphite",
|
|
53
|
+
label: "Graphite",
|
|
54
|
+
color: "#62646a",
|
|
55
|
+
foreground: "#ffffff"
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
var properties = [
|
|
59
|
+
"--accent",
|
|
60
|
+
"--accent-foreground",
|
|
61
|
+
"--heroui-primary",
|
|
62
|
+
"--heroui-primary-foreground",
|
|
63
|
+
"--heroui-focus"
|
|
64
|
+
];
|
|
65
|
+
var originalStyles = /* @__PURE__ */ new WeakMap();
|
|
66
|
+
var styles = controlCenterVariants();
|
|
67
|
+
var hslChannels = (color) => {
|
|
68
|
+
const hsl = parseColor(color).toFormat("hsl");
|
|
69
|
+
return `${hsl.getChannelValue("hue")} ${hsl.getChannelValue("saturation")}% ${hsl.getChannelValue("lightness")}%`;
|
|
70
|
+
};
|
|
71
|
+
var applyColor = (id) => {
|
|
72
|
+
const root = document.documentElement;
|
|
73
|
+
const option = colors.find((color) => color.id === id);
|
|
74
|
+
if (option) {
|
|
75
|
+
if (!originalStyles.has(root)) originalStyles.set(root, properties.map((property) => ({
|
|
76
|
+
value: root.style.getPropertyValue(property),
|
|
77
|
+
priority: root.style.getPropertyPriority(property)
|
|
78
|
+
})));
|
|
79
|
+
root.style.setProperty("--accent", option.color);
|
|
80
|
+
root.style.setProperty("--accent-foreground", option.foreground);
|
|
81
|
+
root.style.setProperty("--heroui-primary", hslChannels(option.color));
|
|
82
|
+
root.style.setProperty("--heroui-primary-foreground", hslChannels(option.foreground));
|
|
83
|
+
root.style.setProperty("--heroui-focus", hslChannels(option.color));
|
|
84
|
+
} else {
|
|
85
|
+
originalStyles.get(root)?.forEach((original, index) => {
|
|
86
|
+
root.style.setProperty(properties[index], original.value, original.priority);
|
|
87
|
+
});
|
|
88
|
+
originalStyles.delete(root);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var ThemeTile = ({ onOpen, label = "Theme" }) => {
|
|
92
|
+
const { value } = useRootAttribute("data-vx-theme-color", "default");
|
|
93
|
+
const option = colors.find((color) => color.id === value);
|
|
94
|
+
return /* @__PURE__ */ jsx(ActionTile, {
|
|
95
|
+
label,
|
|
96
|
+
description: option?.label ?? "Default",
|
|
97
|
+
icon: option ? /* @__PURE__ */ jsx(ColorSwatch, {
|
|
98
|
+
"aria-label": option.label,
|
|
99
|
+
color: option.color,
|
|
100
|
+
size: "xs"
|
|
101
|
+
}) : /* @__PURE__ */ jsx(Palette, { size: 18 }),
|
|
102
|
+
onPress: onOpen
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
var ThemeSettings = () => {
|
|
106
|
+
const { value, onChange } = useRootAttribute("data-vx-theme-color", "default");
|
|
107
|
+
const selected = colors.find((color) => color.id === value);
|
|
108
|
+
const changeColor = (id) => {
|
|
109
|
+
applyColor(id);
|
|
110
|
+
onChange(id);
|
|
111
|
+
};
|
|
112
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
113
|
+
className: styles.colorSettings(),
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ jsx("span", {
|
|
116
|
+
className: styles.colorLabel(),
|
|
117
|
+
children: "Accent color"
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ jsx(ColorSwatchPicker, {
|
|
120
|
+
"aria-label": "Accent color",
|
|
121
|
+
className: styles.colorPicker(),
|
|
122
|
+
size: "xl",
|
|
123
|
+
value: selected?.color ?? "#00000000",
|
|
124
|
+
onChange: (color) => {
|
|
125
|
+
const option = colors.find((option) => option.color === color.toString("hex").toLowerCase());
|
|
126
|
+
if (option) changeColor(option.id);
|
|
127
|
+
},
|
|
128
|
+
children: colors.map((option) => /* @__PURE__ */ jsxs(ColorSwatchPicker.Item, {
|
|
129
|
+
color: option.color,
|
|
130
|
+
"aria-label": option.label,
|
|
131
|
+
className: styles.colorOption(),
|
|
132
|
+
children: [/* @__PURE__ */ jsx(ColorSwatchPicker.Swatch, { colorName: option.label }), /* @__PURE__ */ jsx(ColorSwatchPicker.Indicator, {})]
|
|
133
|
+
}, option.id))
|
|
134
|
+
}),
|
|
135
|
+
/* @__PURE__ */ jsx("span", {
|
|
136
|
+
className: styles.colorLabel(),
|
|
137
|
+
children: selected?.label ?? "Default"
|
|
138
|
+
}),
|
|
139
|
+
/* @__PURE__ */ jsx(Button, {
|
|
140
|
+
variant: "ghost",
|
|
141
|
+
"aria-pressed": !selected,
|
|
142
|
+
className: optionTileVariants({ selected: !selected }),
|
|
143
|
+
onPress: () => changeColor("default"),
|
|
144
|
+
children: "Default"
|
|
145
|
+
})
|
|
146
|
+
]
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
export { ThemeSettings, ThemeTile };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const ActionTile: ({ label, description, icon, compact, isSelected, onPress }: {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
compact?: boolean;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
onPress: () => void;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=tile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tile.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/footer/control-center/tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQtC,eAAO,MAAM,UAAU,GAAI,4DAOxB;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,gCAwBA,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { controlCenterTileVariants } from "./variant.js";
|
|
2
|
+
import { Button } from "@vezham/react-v3";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/lib/components/panel/footer/control-center/tile.tsx
|
|
5
|
+
var styles = controlCenterTileVariants();
|
|
6
|
+
var ActionTile = ({ label, description, icon, compact = false, isSelected, onPress }) => /* @__PURE__ */ jsx(Button, {
|
|
7
|
+
"aria-label": label,
|
|
8
|
+
"aria-pressed": isSelected,
|
|
9
|
+
className: styles.button({
|
|
10
|
+
compact,
|
|
11
|
+
selected: isSelected
|
|
12
|
+
}),
|
|
13
|
+
isIconOnly: compact,
|
|
14
|
+
variant: "ghost",
|
|
15
|
+
onPress,
|
|
16
|
+
children: compact ? icon ?? label : /* @__PURE__ */ jsxs("span", {
|
|
17
|
+
className: styles.content(),
|
|
18
|
+
children: [icon && /* @__PURE__ */ jsx("span", {
|
|
19
|
+
className: styles.icon({ selected: isSelected }),
|
|
20
|
+
children: icon
|
|
21
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
22
|
+
className: styles.text(),
|
|
23
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
24
|
+
className: styles.title(),
|
|
25
|
+
children: label
|
|
26
|
+
}), description && /* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: styles.description(),
|
|
28
|
+
children: description
|
|
29
|
+
})]
|
|
30
|
+
})]
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { ActionTile };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ComponentProps, ComponentType, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { Popover } from '@vezham/react-v3';
|
|
3
|
+
export type TileDefinition<Context extends object = object> = {
|
|
4
|
+
id: string;
|
|
5
|
+
span: 'compact' | 'standard' | 'wide' | 'full';
|
|
6
|
+
label?: string;
|
|
7
|
+
editable?: boolean;
|
|
8
|
+
} & ({
|
|
9
|
+
Tile: ComponentType<Context & {
|
|
10
|
+
label?: string;
|
|
11
|
+
onOpen: () => void;
|
|
12
|
+
}>;
|
|
13
|
+
title: string;
|
|
14
|
+
Panel: ComponentType<Context>;
|
|
15
|
+
onAction?: never;
|
|
16
|
+
} | {
|
|
17
|
+
Tile: ComponentType<Context & {
|
|
18
|
+
label?: string;
|
|
19
|
+
}>;
|
|
20
|
+
title?: never;
|
|
21
|
+
Panel?: never;
|
|
22
|
+
onAction?: never;
|
|
23
|
+
} | {
|
|
24
|
+
label: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
icon?: ReactNode;
|
|
27
|
+
onAction: (context: Context) => void;
|
|
28
|
+
Tile?: never;
|
|
29
|
+
title?: never;
|
|
30
|
+
Panel?: never;
|
|
31
|
+
});
|
|
32
|
+
export type ControlCenterProps<Context extends object> = {
|
|
33
|
+
context: Context;
|
|
34
|
+
tiles: readonly TileDefinition<Context>[];
|
|
35
|
+
trigger?: ReactElement;
|
|
36
|
+
placement?: ComponentProps<typeof Popover.Content>['placement'];
|
|
37
|
+
onOpenChange?: (open: boolean) => void;
|
|
38
|
+
appearance?: AppearanceAdapter;
|
|
39
|
+
preview?: boolean;
|
|
40
|
+
editControls?: boolean;
|
|
41
|
+
};
|
|
42
|
+
export type ThemeMode = 'light' | 'dark' | 'auto';
|
|
43
|
+
export type AppearanceAdapter = {
|
|
44
|
+
isDark: boolean;
|
|
45
|
+
setDark: (dark: boolean) => void;
|
|
46
|
+
themeMode?: ThemeMode;
|
|
47
|
+
setThemeMode?: (mode: ThemeMode) => void;
|
|
48
|
+
};
|
|
49
|
+
export type Option = {
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
href?: string;
|
|
53
|
+
};
|
|
54
|
+
export type LanguageAdapter = {
|
|
55
|
+
value: string;
|
|
56
|
+
options: readonly Option[];
|
|
57
|
+
onChange: (value: string) => void;
|
|
58
|
+
};
|
|
59
|
+
export type BuiltinTileType = 'direction-toggle' | 'appearance-toggle' | 'appearance' | 'theme' | 'direction' | 'language' | 'preview-wifi' | 'preview-bluetooth' | 'preview-airdrop' | 'preview-focus' | 'preview-stage-manager' | 'preview-mirroring' | 'preview-media' | 'preview-display' | 'preview-sound';
|
|
60
|
+
export type TileConfig = {
|
|
61
|
+
id: string;
|
|
62
|
+
span: TileDefinition['span'];
|
|
63
|
+
label?: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
editable?: boolean;
|
|
66
|
+
} & ({
|
|
67
|
+
type: BuiltinTileType;
|
|
68
|
+
action?: never;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'custom';
|
|
71
|
+
action: string;
|
|
72
|
+
});
|
|
73
|
+
export type ControlCenterConfig = {
|
|
74
|
+
tiles: readonly TileConfig[];
|
|
75
|
+
editControls?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export type ControlCenterI18n = {
|
|
78
|
+
defaultLanguage: string;
|
|
79
|
+
languages: readonly string[];
|
|
80
|
+
};
|
|
81
|
+
export type ControlCenterContext = {
|
|
82
|
+
language?: LanguageAdapter;
|
|
83
|
+
i18n?: ControlCenterI18n;
|
|
84
|
+
};
|
|
85
|
+
export type TileRegistration<Context extends object> = {
|
|
86
|
+
Tile: ComponentType<Context & {
|
|
87
|
+
label?: string;
|
|
88
|
+
onOpen: () => void;
|
|
89
|
+
onAction: () => void;
|
|
90
|
+
}>;
|
|
91
|
+
Panel?: ComponentType<Context>;
|
|
92
|
+
label?: string;
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/footer/control-center/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export declare const controlCenterVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
active: {
|
|
3
|
+
true: {
|
|
4
|
+
connectionIcon: string;
|
|
5
|
+
};
|
|
6
|
+
false: {};
|
|
7
|
+
};
|
|
8
|
+
span: {
|
|
9
|
+
compact: {
|
|
10
|
+
tileContainer: string;
|
|
11
|
+
};
|
|
12
|
+
standard: {
|
|
13
|
+
tileContainer: string;
|
|
14
|
+
};
|
|
15
|
+
wide: {
|
|
16
|
+
tileContainer: string;
|
|
17
|
+
};
|
|
18
|
+
full: {
|
|
19
|
+
tileContainer: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
presentation: {
|
|
23
|
+
popover: {
|
|
24
|
+
surface: string;
|
|
25
|
+
};
|
|
26
|
+
sheet: {
|
|
27
|
+
surface: string;
|
|
28
|
+
content: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
surface: string;
|
|
33
|
+
triggerIcon: string;
|
|
34
|
+
backdrop: string;
|
|
35
|
+
sheetContent: string;
|
|
36
|
+
sheetHeader: string;
|
|
37
|
+
sheetHeading: string;
|
|
38
|
+
content: string;
|
|
39
|
+
edgeHighlight: string;
|
|
40
|
+
surfaceHighlight: string;
|
|
41
|
+
panelHeader: string;
|
|
42
|
+
panelTitle: string;
|
|
43
|
+
panelBody: string;
|
|
44
|
+
home: string;
|
|
45
|
+
tileContainer: string;
|
|
46
|
+
optionsList: string;
|
|
47
|
+
colorSettings: string;
|
|
48
|
+
colorLabel: string;
|
|
49
|
+
colorPicker: string;
|
|
50
|
+
colorOption: string;
|
|
51
|
+
viewport: string;
|
|
52
|
+
previewNotice: string;
|
|
53
|
+
previewSettings: string;
|
|
54
|
+
previewToggle: string;
|
|
55
|
+
previewHint: string;
|
|
56
|
+
previewTile: string;
|
|
57
|
+
previewHeader: string;
|
|
58
|
+
previewTitle: string;
|
|
59
|
+
mediaControls: string;
|
|
60
|
+
connectionIcon: string;
|
|
61
|
+
}, undefined, {
|
|
62
|
+
active: {
|
|
63
|
+
true: {
|
|
64
|
+
connectionIcon: string;
|
|
65
|
+
};
|
|
66
|
+
false: {};
|
|
67
|
+
};
|
|
68
|
+
span: {
|
|
69
|
+
compact: {
|
|
70
|
+
tileContainer: string;
|
|
71
|
+
};
|
|
72
|
+
standard: {
|
|
73
|
+
tileContainer: string;
|
|
74
|
+
};
|
|
75
|
+
wide: {
|
|
76
|
+
tileContainer: string;
|
|
77
|
+
};
|
|
78
|
+
full: {
|
|
79
|
+
tileContainer: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
presentation: {
|
|
83
|
+
popover: {
|
|
84
|
+
surface: string;
|
|
85
|
+
};
|
|
86
|
+
sheet: {
|
|
87
|
+
surface: string;
|
|
88
|
+
content: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
surface: string;
|
|
93
|
+
triggerIcon: string;
|
|
94
|
+
backdrop: string;
|
|
95
|
+
sheetContent: string;
|
|
96
|
+
sheetHeader: string;
|
|
97
|
+
sheetHeading: string;
|
|
98
|
+
content: string;
|
|
99
|
+
edgeHighlight: string;
|
|
100
|
+
surfaceHighlight: string;
|
|
101
|
+
panelHeader: string;
|
|
102
|
+
panelTitle: string;
|
|
103
|
+
panelBody: string;
|
|
104
|
+
home: string;
|
|
105
|
+
tileContainer: string;
|
|
106
|
+
optionsList: string;
|
|
107
|
+
colorSettings: string;
|
|
108
|
+
colorLabel: string;
|
|
109
|
+
colorPicker: string;
|
|
110
|
+
colorOption: string;
|
|
111
|
+
viewport: string;
|
|
112
|
+
previewNotice: string;
|
|
113
|
+
previewSettings: string;
|
|
114
|
+
previewToggle: string;
|
|
115
|
+
previewHint: string;
|
|
116
|
+
previewTile: string;
|
|
117
|
+
previewHeader: string;
|
|
118
|
+
previewTitle: string;
|
|
119
|
+
mediaControls: string;
|
|
120
|
+
connectionIcon: string;
|
|
121
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
122
|
+
active: {
|
|
123
|
+
true: {
|
|
124
|
+
connectionIcon: string;
|
|
125
|
+
};
|
|
126
|
+
false: {};
|
|
127
|
+
};
|
|
128
|
+
span: {
|
|
129
|
+
compact: {
|
|
130
|
+
tileContainer: string;
|
|
131
|
+
};
|
|
132
|
+
standard: {
|
|
133
|
+
tileContainer: string;
|
|
134
|
+
};
|
|
135
|
+
wide: {
|
|
136
|
+
tileContainer: string;
|
|
137
|
+
};
|
|
138
|
+
full: {
|
|
139
|
+
tileContainer: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
presentation: {
|
|
143
|
+
popover: {
|
|
144
|
+
surface: string;
|
|
145
|
+
};
|
|
146
|
+
sheet: {
|
|
147
|
+
surface: string;
|
|
148
|
+
content: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
surface: string;
|
|
153
|
+
triggerIcon: string;
|
|
154
|
+
backdrop: string;
|
|
155
|
+
sheetContent: string;
|
|
156
|
+
sheetHeader: string;
|
|
157
|
+
sheetHeading: string;
|
|
158
|
+
content: string;
|
|
159
|
+
edgeHighlight: string;
|
|
160
|
+
surfaceHighlight: string;
|
|
161
|
+
panelHeader: string;
|
|
162
|
+
panelTitle: string;
|
|
163
|
+
panelBody: string;
|
|
164
|
+
home: string;
|
|
165
|
+
tileContainer: string;
|
|
166
|
+
optionsList: string;
|
|
167
|
+
colorSettings: string;
|
|
168
|
+
colorLabel: string;
|
|
169
|
+
colorPicker: string;
|
|
170
|
+
colorOption: string;
|
|
171
|
+
viewport: string;
|
|
172
|
+
previewNotice: string;
|
|
173
|
+
previewSettings: string;
|
|
174
|
+
previewToggle: string;
|
|
175
|
+
previewHint: string;
|
|
176
|
+
previewTile: string;
|
|
177
|
+
previewHeader: string;
|
|
178
|
+
previewTitle: string;
|
|
179
|
+
mediaControls: string;
|
|
180
|
+
connectionIcon: string;
|
|
181
|
+
}>>;
|
|
182
|
+
export declare const controlCenterTileVariants: import('tailwind-variants').TVReturnType<{
|
|
183
|
+
selected: {
|
|
184
|
+
true: {
|
|
185
|
+
button: string;
|
|
186
|
+
icon: string;
|
|
187
|
+
};
|
|
188
|
+
false: {};
|
|
189
|
+
};
|
|
190
|
+
compact: {
|
|
191
|
+
true: {
|
|
192
|
+
button: string;
|
|
193
|
+
};
|
|
194
|
+
false: {
|
|
195
|
+
button: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
}, {
|
|
199
|
+
button: string;
|
|
200
|
+
content: string;
|
|
201
|
+
icon: string;
|
|
202
|
+
text: string;
|
|
203
|
+
title: string;
|
|
204
|
+
description: string;
|
|
205
|
+
}, undefined, {
|
|
206
|
+
selected: {
|
|
207
|
+
true: {
|
|
208
|
+
button: string;
|
|
209
|
+
icon: string;
|
|
210
|
+
};
|
|
211
|
+
false: {};
|
|
212
|
+
};
|
|
213
|
+
compact: {
|
|
214
|
+
true: {
|
|
215
|
+
button: string;
|
|
216
|
+
};
|
|
217
|
+
false: {
|
|
218
|
+
button: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
}, {
|
|
222
|
+
button: string;
|
|
223
|
+
content: string;
|
|
224
|
+
icon: string;
|
|
225
|
+
text: string;
|
|
226
|
+
title: string;
|
|
227
|
+
description: string;
|
|
228
|
+
}, import('tailwind-variants').TVReturnTypeLike<{
|
|
229
|
+
selected: {
|
|
230
|
+
true: {
|
|
231
|
+
button: string;
|
|
232
|
+
icon: string;
|
|
233
|
+
};
|
|
234
|
+
false: {};
|
|
235
|
+
};
|
|
236
|
+
compact: {
|
|
237
|
+
true: {
|
|
238
|
+
button: string;
|
|
239
|
+
};
|
|
240
|
+
false: {
|
|
241
|
+
button: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
button: string;
|
|
246
|
+
content: string;
|
|
247
|
+
icon: string;
|
|
248
|
+
text: string;
|
|
249
|
+
title: string;
|
|
250
|
+
description: string;
|
|
251
|
+
}>>;
|
|
252
|
+
export declare const optionTileVariants: import('tailwind-variants').TVReturnType<{
|
|
253
|
+
selected: {
|
|
254
|
+
true: "bg-primary/10 text-primary";
|
|
255
|
+
false: "hover:bg-surface text-muted hover:text-foreground";
|
|
256
|
+
};
|
|
257
|
+
}, undefined, "h-auto w-full justify-start rounded-lg px-3 py-2 text-start text-sm font-normal transition-colors", {
|
|
258
|
+
selected: {
|
|
259
|
+
true: "bg-primary/10 text-primary";
|
|
260
|
+
false: "hover:bg-surface text-muted hover:text-foreground";
|
|
261
|
+
};
|
|
262
|
+
}, undefined, import('tailwind-variants').TVReturnTypeLike<{
|
|
263
|
+
selected: {
|
|
264
|
+
true: "bg-primary/10 text-primary";
|
|
265
|
+
false: "hover:bg-surface text-muted hover:text-foreground";
|
|
266
|
+
};
|
|
267
|
+
}, undefined>>;
|
|
268
|
+
//# sourceMappingURL=variant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/footer/control-center/variant.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DhC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BpC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;cAS7B,CAAA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { tv } from "@vezham/react-v3";
|
|
2
|
+
//#region src/lib/components/panel/footer/control-center/variant.ts
|
|
3
|
+
var controlCenterVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
surface: "border-border/70 dark:border-border/80 relative w-72 overflow-hidden rounded-[1.75rem] border p-2 shadow-2xl ring-1 ring-white/15 backdrop-blur-2xl",
|
|
6
|
+
triggerIcon: "text-muted",
|
|
7
|
+
backdrop: "bg-overlay/10 z-80 backdrop-blur-xs",
|
|
8
|
+
sheetContent: "mx-auto max-h-[85dvh] w-full max-w-72",
|
|
9
|
+
sheetHeader: "px-6 pt-0 pb-2",
|
|
10
|
+
sheetHeading: "text-base font-semibold",
|
|
11
|
+
content: "relative flex max-h-[min(40rem,calc(100dvh-8rem))] min-h-0 flex-col overflow-hidden",
|
|
12
|
+
edgeHighlight: "pointer-events-none absolute inset-x-8 top-0 h-px bg-linear-to-r from-transparent via-white/55 to-transparent dark:via-white/25",
|
|
13
|
+
surfaceHighlight: "pointer-events-none absolute inset-x-0 top-0 h-20 bg-linear-to-b from-white/15 to-transparent dark:from-white/8",
|
|
14
|
+
panelHeader: "flex items-center gap-2 px-1 pt-1 pb-2",
|
|
15
|
+
panelTitle: "text-sm font-semibold capitalize",
|
|
16
|
+
panelBody: "p-1",
|
|
17
|
+
home: "grid grid-cols-4 items-center gap-x-2 gap-y-3",
|
|
18
|
+
tileContainer: "min-w-0",
|
|
19
|
+
optionsList: "flex flex-col gap-1",
|
|
20
|
+
colorSettings: "flex flex-col gap-3",
|
|
21
|
+
colorLabel: "text-muted text-xs",
|
|
22
|
+
colorPicker: "gap-3",
|
|
23
|
+
colorOption: "min-h-11 min-w-11",
|
|
24
|
+
viewport: "min-h-0 flex-1 overflow-y-auto overscroll-contain",
|
|
25
|
+
previewNotice: "text-muted mb-3 px-2 pt-1 text-xs",
|
|
26
|
+
previewSettings: "flex flex-col gap-4",
|
|
27
|
+
previewToggle: "flex w-full items-center justify-between gap-3 text-sm",
|
|
28
|
+
previewHint: "text-muted text-xs",
|
|
29
|
+
previewTile: "bg-default-hover flex flex-col gap-3 rounded-2xl p-3",
|
|
30
|
+
previewHeader: "flex items-center gap-2 [&>button]:ms-auto",
|
|
31
|
+
previewTitle: "text-sm font-medium",
|
|
32
|
+
mediaControls: "flex items-center justify-center gap-2",
|
|
33
|
+
connectionIcon: "text-muted"
|
|
34
|
+
},
|
|
35
|
+
variants: {
|
|
36
|
+
active: {
|
|
37
|
+
true: { connectionIcon: "text-accent" },
|
|
38
|
+
false: {}
|
|
39
|
+
},
|
|
40
|
+
span: {
|
|
41
|
+
compact: { tileContainer: "col-span-1 aspect-square w-full overflow-hidden [&>button]:size-full [&>button>span>span:last-child]:hidden" },
|
|
42
|
+
standard: { tileContainer: "col-span-2 min-w-0 [&>button]:w-full" },
|
|
43
|
+
wide: { tileContainer: "col-span-3 min-w-0 [&>button]:w-full" },
|
|
44
|
+
full: { tileContainer: "col-span-4 min-w-0 [&>button]:w-full" }
|
|
45
|
+
},
|
|
46
|
+
presentation: {
|
|
47
|
+
popover: { surface: "bg-transparent" },
|
|
48
|
+
sheet: {
|
|
49
|
+
surface: "bg-surface/75 dark:bg-surface/65 flex max-h-[85dvh] w-full flex-col rounded-b-none p-0",
|
|
50
|
+
content: "max-h-[min(40rem,calc(85dvh-7rem))] px-6 pt-1 pb-[max(0.75rem,env(safe-area-inset-bottom))]"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
defaultVariants: { presentation: "popover" }
|
|
55
|
+
});
|
|
56
|
+
var controlCenterTileVariants = tv({
|
|
57
|
+
slots: {
|
|
58
|
+
button: "bg-default-hover hover:bg-surface rounded-full",
|
|
59
|
+
content: "flex min-w-0 items-center gap-2",
|
|
60
|
+
icon: "bg-surface flex size-10 shrink-0 items-center justify-center rounded-full border shadow-sm",
|
|
61
|
+
text: "flex min-w-0 flex-col",
|
|
62
|
+
title: "truncate text-sm font-medium",
|
|
63
|
+
description: "text-muted truncate text-xs"
|
|
64
|
+
},
|
|
65
|
+
variants: {
|
|
66
|
+
selected: {
|
|
67
|
+
true: {
|
|
68
|
+
button: "bg-accent/10",
|
|
69
|
+
icon: "bg-accent text-accent-foreground"
|
|
70
|
+
},
|
|
71
|
+
false: {}
|
|
72
|
+
},
|
|
73
|
+
compact: {
|
|
74
|
+
true: { button: "size-14 shrink-0" },
|
|
75
|
+
false: { button: "h-auto min-h-14 items-center justify-between px-3 py-2.5 text-start" }
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: { compact: false }
|
|
79
|
+
});
|
|
80
|
+
var optionTileVariants = tv({
|
|
81
|
+
base: "h-auto w-full justify-start rounded-lg px-3 py-2 text-start text-sm font-normal transition-colors",
|
|
82
|
+
variants: { selected: {
|
|
83
|
+
true: "bg-primary/10 text-primary",
|
|
84
|
+
false: "hover:bg-surface text-muted hover:text-foreground"
|
|
85
|
+
} },
|
|
86
|
+
defaultVariants: { selected: false }
|
|
87
|
+
});
|
|
88
|
+
//#endregion
|
|
89
|
+
export { controlCenterTileVariants, controlCenterVariants, optionTileVariants };
|