@vezham/react 26.0.0-alpha.4 → 26.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/lib/components/actions-header/index.d.ts +26 -0
- package/dist/lib/components/actions-header/index.d.ts.map +1 -0
- package/dist/lib/components/actions-header/index.js +126 -0
- package/dist/lib/components/app-icon/index.d.ts +499 -0
- package/dist/lib/components/app-icon/index.d.ts.map +1 -0
- package/dist/lib/components/app-icon/index.js +513 -0
- package/dist/lib/components/app-menu/index.d.ts +22 -0
- package/dist/lib/components/app-menu/index.d.ts.map +1 -0
- package/dist/lib/components/app-menu/index.js +17 -0
- package/dist/lib/components/command/command-dialog.d.ts +10 -0
- package/dist/lib/components/command/command-dialog.d.ts.map +1 -0
- package/dist/lib/components/command/command-dialog.js +129 -0
- package/dist/lib/components/command/command-provider.d.ts +8 -0
- package/dist/lib/components/command/command-provider.d.ts.map +1 -0
- package/dist/lib/components/command/command-provider.js +44 -0
- package/dist/lib/components/command/index.d.ts +3 -0
- package/dist/lib/components/command/index.d.ts.map +1 -0
- package/dist/lib/components/command/index.js +3 -0
- package/dist/lib/components/menu/drawer.d.ts +4 -0
- package/dist/lib/components/menu/drawer.d.ts.map +1 -0
- package/dist/lib/components/menu/drawer.js +56 -0
- package/dist/lib/components/menu/index.d.ts +5 -0
- package/dist/lib/components/menu/index.d.ts.map +1 -0
- package/dist/lib/components/menu/index.js +138 -0
- package/dist/lib/components/menu/sheet.d.ts +15 -0
- package/dist/lib/components/menu/sheet.d.ts.map +1 -0
- package/dist/lib/components/menu/sheet.js +40 -0
- package/dist/lib/components/menu/types.d.ts +30 -0
- package/dist/lib/components/menu/types.d.ts.map +1 -0
- package/dist/lib/components/menu/types.js +7 -0
- package/dist/lib/components/menu/variant.d.ts +27 -0
- package/dist/lib/components/menu/variant.d.ts.map +1 -0
- package/dist/lib/components/menu/variant.js +28 -0
- package/dist/lib/components/mobile-controls/index.d.ts +11 -0
- package/dist/lib/components/mobile-controls/index.d.ts.map +1 -0
- package/dist/lib/components/mobile-controls/index.js +21 -0
- package/dist/lib/components/pagination/index.d.ts +10 -0
- package/dist/lib/components/pagination/index.d.ts.map +1 -0
- package/dist/lib/components/pagination/index.js +25 -0
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/chat-header.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/chat-header.js +63 -0
- package/dist/lib/components/panel/footer/ai/composer.d.ts +7 -0
- package/dist/lib/components/panel/footer/ai/composer.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/composer.js +77 -0
- package/dist/lib/components/panel/footer/ai/content.d.ts +13 -0
- package/dist/lib/components/panel/footer/ai/content.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/content.js +148 -0
- package/dist/lib/components/panel/footer/ai/conversation.d.ts +47 -0
- package/dist/lib/components/panel/footer/ai/conversation.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/conversation.js +222 -0
- package/dist/lib/components/panel/footer/ai/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/ai/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/index.js +41 -0
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts +8 -0
- package/dist/lib/components/panel/footer/ai/message-actions.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/message-actions.js +63 -0
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts +6 -0
- package/dist/lib/components/panel/footer/ai/mock-result.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/mock-result.js +121 -0
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts +5 -0
- package/dist/lib/components/panel/footer/ai/model-logo.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-logo.js +13 -0
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts +2 -0
- package/dist/lib/components/panel/footer/ai/model-logos.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-logos.js +10 -0
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts +8 -0
- package/dist/lib/components/panel/footer/ai/model-picker.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/model-picker.js +166 -0
- package/dist/lib/components/panel/footer/ai/models.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/models.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/models.js +72 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts +5 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/permission-picker.js +63 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts +9 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/ai/use-chat-scroll.js +57 -0
- package/dist/lib/components/panel/footer/control-center/appearance.d.ts +16 -0
- package/dist/lib/components/panel/footer/control-center/appearance.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/appearance.js +100 -0
- package/dist/lib/components/panel/footer/control-center/configured.d.ts +13 -0
- package/dist/lib/components/panel/footer/control-center/configured.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/configured.js +157 -0
- package/dist/lib/components/panel/footer/control-center/control-center.d.ts +8 -0
- package/dist/lib/components/panel/footer/control-center/control-center.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/control-center.js +180 -0
- package/dist/lib/components/panel/footer/control-center/default.d.ts +3 -0
- package/dist/lib/components/panel/footer/control-center/default.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/default.js +37 -0
- package/dist/lib/components/panel/footer/control-center/direction.d.ts +9 -0
- package/dist/lib/components/panel/footer/control-center/direction.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/direction.js +40 -0
- package/dist/lib/components/panel/footer/control-center/document.d.ts +5 -0
- package/dist/lib/components/panel/footer/control-center/document.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/document.js +19 -0
- package/dist/lib/components/panel/footer/control-center/editor.d.ts +25 -0
- package/dist/lib/components/panel/footer/control-center/editor.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/editor.js +72 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.d.ts +6 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/footer-context.js +5 -0
- package/dist/lib/components/panel/footer/control-center/index.d.ts +15 -0
- package/dist/lib/components/panel/footer/control-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/index.js +11 -0
- package/dist/lib/components/panel/footer/control-center/language.d.ts +19 -0
- package/dist/lib/components/panel/footer/control-center/language.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/language.js +44 -0
- package/dist/lib/components/panel/footer/control-center/options.d.ts +7 -0
- package/dist/lib/components/panel/footer/control-center/options.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/options.js +27 -0
- package/dist/lib/components/panel/footer/control-center/preview.d.ts +34 -0
- package/dist/lib/components/panel/footer/control-center/preview.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/preview.js +366 -0
- package/dist/lib/components/panel/footer/control-center/theme.d.ts +6 -0
- package/dist/lib/components/panel/footer/control-center/theme.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/theme.js +150 -0
- package/dist/lib/components/panel/footer/control-center/tile.d.ts +10 -0
- package/dist/lib/components/panel/footer/control-center/tile.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/tile.js +34 -0
- package/dist/lib/components/panel/footer/control-center/types.d.ts +94 -0
- package/dist/lib/components/panel/footer/control-center/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/variant.d.ts +268 -0
- package/dist/lib/components/panel/footer/control-center/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/control-center/variant.js +89 -0
- package/dist/lib/components/panel/footer/data.d.ts +38 -0
- package/dist/lib/components/panel/footer/data.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/data.js +90 -0
- package/dist/lib/components/panel/footer/drawer-accessors.d.ts +46 -0
- package/dist/lib/components/panel/footer/drawer-accessors.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/drawer-accessors.js +21 -0
- package/dist/lib/components/panel/footer/drawer-frame.d.ts +12 -0
- package/dist/lib/components/panel/footer/drawer-frame.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/drawer-frame.js +19 -0
- package/dist/lib/components/panel/footer/index.d.ts +4 -0
- package/dist/lib/components/panel/footer/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/index.js +147 -0
- package/dist/lib/components/panel/footer/notification-center/index.d.ts +4 -0
- package/dist/lib/components/panel/footer/notification-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/index.js +98 -0
- package/dist/lib/components/panel/footer/notification-center/types.d.ts +525 -0
- package/dist/lib/components/panel/footer/notification-center/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/types.js +62 -0
- package/dist/lib/components/panel/footer/notification-center/variant.d.ts +322 -0
- package/dist/lib/components/panel/footer/notification-center/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/variant.js +119 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.d.ts +49 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/notification-center/widget-tiles.js +182 -0
- package/dist/lib/components/panel/footer/preferences/data.d.ts +14 -0
- package/dist/lib/components/panel/footer/preferences/data.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/data.js +304 -0
- package/dist/lib/components/panel/footer/preferences/modal.d.ts +8 -0
- package/dist/lib/components/panel/footer/preferences/modal.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/modal.js +75 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts +9 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/sidebar.js +105 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/account/index.js +16 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/content-social/index.js +16 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/data-privacy/index.js +101 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/family-center/index.js +24 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts +3 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/preferences/user-settings/profiles/index.js +103 -0
- package/dist/lib/components/panel/footer/tabs.d.ts +12 -0
- package/dist/lib/components/panel/footer/tabs.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/tabs.js +23 -0
- package/dist/lib/components/panel/footer/types.d.ts +39 -0
- package/dist/lib/components/panel/footer/types.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/user-menu.d.ts +10 -0
- package/dist/lib/components/panel/footer/user-menu.d.ts.map +1 -0
- package/dist/lib/components/panel/footer/user-menu.js +290 -0
- package/dist/lib/components/panel/header/application-menu-sheet.d.ts +21 -0
- package/dist/lib/components/panel/header/application-menu-sheet.d.ts.map +1 -0
- package/dist/lib/components/panel/header/application-menu-sheet.js +227 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/index.js +225 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/types.d.ts +13 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.d.ts +28 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/bookmark-file-tree/variants.js +249 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/index.js +147 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/types.d.ts +25 -0
- package/dist/lib/components/panel/header/bookmarks/context-menu/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/data.d.ts +2 -0
- package/dist/lib/components/panel/header/bookmarks/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.d.ts +8 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/empty-state.js +15 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/data.d.ts +2 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/grid-list.js +65 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/index.js +76 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/types.d.ts +12 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.d.ts +211 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/favorites/variant.js +77 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.d.ts +7 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/index.js +221 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/types.d.ts +25 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.d.ts +14 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/folder-modal/variants.js +95 -0
- package/dist/lib/components/panel/header/bookmarks/index.d.ts +5 -0
- package/dist/lib/components/panel/header/bookmarks/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/index.js +247 -0
- package/dist/lib/components/panel/header/bookmarks/membership.d.ts +14 -0
- package/dist/lib/components/panel/header/bookmarks/membership.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/membership.js +13 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/index.js +224 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/types.d.ts +38 -0
- package/dist/lib/components/panel/header/bookmarks/quick-access/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.d.ts +11 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/shortcut-context-menu.js +39 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.d.ts +4 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/tree-data.js +97 -0
- package/dist/lib/components/panel/header/bookmarks/types.d.ts +648 -0
- package/dist/lib/components/panel/header/bookmarks/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/types.js +198 -0
- package/dist/lib/components/panel/header/bookmarks/variant.d.ts +334 -0
- package/dist/lib/components/panel/header/bookmarks/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/bookmarks/variant.js +121 -0
- package/dist/lib/components/panel/header/index.d.ts +4 -0
- package/dist/lib/components/panel/header/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/index.js +366 -0
- package/dist/lib/components/panel/header/storage/archive/index.d.ts +4 -0
- package/dist/lib/components/panel/header/storage/archive/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/index.js +138 -0
- package/dist/lib/components/panel/header/storage/archive/types.d.ts +27 -0
- package/dist/lib/components/panel/header/storage/archive/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/variants.d.ts +6 -0
- package/dist/lib/components/panel/header/storage/archive/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/archive/variants.js +8 -0
- package/dist/lib/components/panel/header/storage/data.d.ts +2 -0
- package/dist/lib/components/panel/header/storage/data.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-actions.d.ts +16 -0
- package/dist/lib/components/panel/header/storage/history-actions.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-actions.js +18 -0
- package/dist/lib/components/panel/header/storage/history-date-group.d.ts +9 -0
- package/dist/lib/components/panel/header/storage/history-date-group.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-date-group.js +19 -0
- package/dist/lib/components/panel/header/storage/history-item-content.d.ts +11 -0
- package/dist/lib/components/panel/header/storage/history-item-content.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-item-content.js +17 -0
- package/dist/lib/components/panel/header/storage/history-shell.d.ts +8 -0
- package/dist/lib/components/panel/header/storage/history-shell.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-shell.js +19 -0
- package/dist/lib/components/panel/header/storage/history-utils.d.ts +7 -0
- package/dist/lib/components/panel/header/storage/history-utils.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/history-utils.js +25 -0
- package/dist/lib/components/panel/header/storage/index.d.ts +5 -0
- package/dist/lib/components/panel/header/storage/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/index.js +120 -0
- package/dist/lib/components/panel/header/storage/trash/index.d.ts +4 -0
- package/dist/lib/components/panel/header/storage/trash/index.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/index.js +126 -0
- package/dist/lib/components/panel/header/storage/trash/types.d.ts +27 -0
- package/dist/lib/components/panel/header/storage/trash/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/variants.d.ts +6 -0
- package/dist/lib/components/panel/header/storage/trash/variants.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/trash/variants.js +12 -0
- package/dist/lib/components/panel/header/storage/types.d.ts +482 -0
- package/dist/lib/components/panel/header/storage/types.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/types.js +155 -0
- package/dist/lib/components/panel/header/storage/variant.d.ts +289 -0
- package/dist/lib/components/panel/header/storage/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/header/storage/variant.js +106 -0
- package/dist/lib/components/panel/header/types.d.ts +26 -0
- package/dist/lib/components/panel/header/types.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/container.d.ts +9 -0
- package/dist/lib/components/panel/info-panel/container.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/container.js +90 -0
- package/dist/lib/components/panel/info-panel/container.module.css +48 -0
- package/dist/lib/components/panel/info-panel/container.module.js +8 -0
- package/dist/lib/components/panel/info-panel/index.d.ts +4 -0
- package/dist/lib/components/panel/info-panel/index.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/provider.d.ts +7 -0
- package/dist/lib/components/panel/info-panel/provider.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/provider.js +104 -0
- package/dist/lib/components/panel/info-panel/sheet.d.ts +9 -0
- package/dist/lib/components/panel/info-panel/sheet.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/sheet.js +70 -0
- package/dist/lib/components/panel/info-panel/styles.d.ts +6 -0
- package/dist/lib/components/panel/info-panel/styles.d.ts.map +1 -0
- package/dist/lib/components/panel/info-panel/styles.js +8 -0
- package/dist/lib/components/panel/info-panel/types.d.ts +21 -0
- package/dist/lib/components/panel/info-panel/types.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/index.d.ts +4 -0
- package/dist/lib/components/panel/menu/index.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/index.js +156 -0
- package/dist/lib/components/panel/menu/types.d.ts +522 -0
- package/dist/lib/components/panel/menu/types.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/types.js +71 -0
- package/dist/lib/components/panel/menu/variant.d.ts +259 -0
- package/dist/lib/components/panel/menu/variant.d.ts.map +1 -0
- package/dist/lib/components/panel/menu/variant.js +131 -0
- package/dist/lib/components/panel/responsive.d.ts +3 -0
- package/dist/lib/components/panel/responsive.d.ts.map +1 -0
- package/dist/lib/components/panel/responsive.js +5 -0
- package/dist/lib/components/responsive-toolbar-action/index.d.ts +11 -0
- package/dist/lib/components/responsive-toolbar-action/index.d.ts.map +1 -0
- package/dist/lib/components/responsive-toolbar-action/index.js +21 -0
- package/dist/lib/components/shortcut-key/index.d.ts +18 -0
- package/dist/lib/components/shortcut-key/index.d.ts.map +1 -0
- package/dist/lib/components/shortcut-key/index.js +44 -0
- package/dist/lib/components/toolbar-actions/index.d.ts +31 -0
- package/dist/lib/components/toolbar-actions/index.d.ts.map +1 -0
- package/dist/lib/components/toolbar-actions/index.js +75 -0
- package/dist/lib/components/workspace-navigation/index.d.ts +24 -0
- package/dist/lib/components/workspace-navigation/index.d.ts.map +1 -0
- package/dist/lib/components/workspace-navigation/index.js +74 -0
- package/dist/lib/layouts/app/frame.d.ts +8 -0
- package/dist/lib/layouts/app/frame.d.ts.map +1 -0
- package/dist/lib/layouts/app/frame.js +20 -0
- package/dist/lib/layouts/app/index.d.ts +27 -0
- package/dist/lib/layouts/app/index.d.ts.map +1 -0
- package/dist/lib/layouts/app/index.js +89 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.d.ts +7 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/home-navigation-bubble.js +22 -0
- package/dist/lib/layouts/menu-layout/index-md.d.ts +4 -0
- package/dist/lib/layouts/menu-layout/index-md.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index-md.js +142 -0
- package/dist/lib/layouts/menu-layout/index-sm.d.ts +5 -0
- package/dist/lib/layouts/menu-layout/index-sm.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index-sm.js +124 -0
- package/dist/lib/layouts/menu-layout/index.d.ts +8 -0
- package/dist/lib/layouts/menu-layout/index.d.ts.map +1 -0
- package/dist/lib/layouts/menu-layout/index.js +17 -0
- package/dist/lib/layouts/section/index.d.ts +29 -0
- package/dist/lib/layouts/section/index.d.ts.map +1 -0
- package/dist/lib/layouts/section/index.js +285 -0
- package/dist/lib/layouts/section/preferences.d.ts +10 -0
- package/dist/lib/layouts/section/preferences.d.ts.map +1 -0
- package/dist/lib/layouts/section/preferences.js +41 -0
- package/dist/lib/layouts/section/sidebar-state.d.ts +7 -0
- package/dist/lib/layouts/section/sidebar-state.d.ts.map +1 -0
- package/dist/lib/layouts/section/sidebar-state.js +35 -0
- package/dist/lib/layouts/section/sidebar.d.ts +11 -0
- package/dist/lib/layouts/section/sidebar.d.ts.map +1 -0
- package/dist/lib/layouts/section/sidebar.js +84 -0
- package/dist/lib/layouts/section/sort-menu.d.ts +27 -0
- package/dist/lib/layouts/section/sort-menu.d.ts.map +1 -0
- package/dist/lib/layouts/section/sort-menu.js +72 -0
- package/dist/lib/layouts/section/toolbar-content.d.ts +11 -0
- package/dist/lib/layouts/section/toolbar-content.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar-content.js +31 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.d.ts +38 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar-more-sheet.js +288 -0
- package/dist/lib/layouts/section/toolbar.d.ts +60 -0
- package/dist/lib/layouts/section/toolbar.d.ts.map +1 -0
- package/dist/lib/layouts/section/toolbar.js +518 -0
- package/dist/lib/layouts/settings/index.d.ts +5 -0
- package/dist/lib/layouts/settings/index.d.ts.map +1 -0
- package/dist/lib/layouts/settings/index.js +9 -0
- package/dist/lib/navigation-toolbar.d.ts +32 -0
- package/dist/lib/navigation-toolbar.d.ts.map +1 -0
- package/dist/lib/navigation-toolbar.js +29 -0
- package/dist/lib/navigation.d.ts +21 -0
- package/dist/lib/navigation.d.ts.map +1 -0
- package/dist/lib/navigation.js +39 -0
- package/dist/lib/pages/settings/index.d.ts +17 -0
- package/dist/lib/pages/settings/index.d.ts.map +1 -0
- package/dist/lib/pages/settings/index.js +276 -0
- package/dist/lib/pages/settings/navigation.d.ts +4 -0
- package/dist/lib/pages/settings/navigation.d.ts.map +1 -0
- package/dist/lib/pages/settings/navigation.js +6 -0
- package/dist/lib/pages/settings/settings-content.d.ts +5 -0
- package/dist/lib/pages/settings/settings-content.d.ts.map +1 -0
- package/dist/lib/pages/settings/settings-content.js +213 -0
- package/dist/lib/pages/settings/tile-gallery.d.ts +19 -0
- package/dist/lib/pages/settings/tile-gallery.d.ts.map +1 -0
- package/dist/lib/pages/settings/tile-gallery.js +411 -0
- package/dist/lib/store/useBookmarks/action.d.ts +6 -0
- package/dist/lib/store/useBookmarks/action.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/action.js +7 -0
- package/dist/lib/store/useBookmarks/data.d.ts +4 -0
- package/dist/lib/store/useBookmarks/data.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/data.js +231 -0
- package/dist/lib/store/useBookmarks/index.d.ts +12 -0
- package/dist/lib/store/useBookmarks/index.d.ts.map +1 -0
- package/dist/lib/store/useBookmarks/index.js +29 -0
- package/dist/lib/store/useBookmarks/types.d.ts +30 -0
- package/dist/lib/store/useBookmarks/types.d.ts.map +1 -0
- package/dist/lib/store/useStorage/action.d.ts +6 -0
- package/dist/lib/store/useStorage/action.d.ts.map +1 -0
- package/dist/lib/store/useStorage/action.js +7 -0
- package/dist/lib/store/useStorage/data.d.ts +3 -0
- package/dist/lib/store/useStorage/data.d.ts.map +1 -0
- package/dist/lib/store/useStorage/data.js +219 -0
- package/dist/lib/store/useStorage/index.d.ts +7 -0
- package/dist/lib/store/useStorage/index.d.ts.map +1 -0
- package/dist/lib/store/useStorage/index.js +13 -0
- package/dist/lib/store/useStorage/types.d.ts +20 -0
- package/dist/lib/store/useStorage/types.d.ts.map +1 -0
- package/dist/lib/store/users/useUserStore.d.ts +22 -0
- package/dist/lib/store/users/useUserStore.d.ts.map +1 -0
- package/dist/lib/store/users/useUserStore.js +46 -0
- package/dist/lib/utils/date.d.ts +2 -0
- package/dist/lib/utils/date.d.ts.map +1 -0
- package/dist/lib/utils/date.js +8 -0
- package/dist/lib/utils/url.d.ts +4 -0
- package/dist/lib/utils/url.d.ts.map +1 -0
- package/dist/lib/utils/url.js +19 -0
- package/dist/react.css +49 -0
- package/package.json +90 -2
- package/dist/lib/react.d.ts +0 -2
- package/dist/lib/react.d.ts.map +0 -1
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { useId, useState } from "react";
|
|
2
|
+
import { Button, Drawer, SearchField, Surface, Tooltip } from "@vezham/react-v3";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Add, AltArrowLeft, Minus, Settings, Sidebar } from "@vezham/icons-react";
|
|
5
|
+
//#region src/lib/pages/settings/tile-gallery.tsx
|
|
6
|
+
var useGallery = ({ kind, tiles, editor }) => {
|
|
7
|
+
const dragInstructionsId = useId();
|
|
8
|
+
const [draggedId, setDraggedId] = useState(null);
|
|
9
|
+
const [draggedHeight, setDraggedHeight] = useState(0);
|
|
10
|
+
const [dropTarget, setDropTarget] = useState(null);
|
|
11
|
+
const [announcement, setAnnouncement] = useState("");
|
|
12
|
+
const [query, setQuery] = useState("");
|
|
13
|
+
const [category, setCategory] = useState("All");
|
|
14
|
+
const [isCategoryMenuOpen, setIsCategoryMenuOpen] = useState(false);
|
|
15
|
+
const [showPreview, setShowPreview] = useState(false);
|
|
16
|
+
const normalizedQuery = query.trim().toLowerCase();
|
|
17
|
+
const isSearching = normalizedQuery.length > 0;
|
|
18
|
+
const categories = ["All", ...new Set(tiles.map((tile) => tile.category))];
|
|
19
|
+
const matchingTiles = tiles.filter((tile) => `${tile.label} ${tile.category}`.toLowerCase().includes(normalizedQuery));
|
|
20
|
+
const matchingCategories = [...new Set(matchingTiles.map((tile) => tile.category))];
|
|
21
|
+
const available = tiles.filter((tile) => `${tile.label} ${tile.category}`.toLowerCase().includes(normalizedQuery) && (category === "All" || tile.category === category));
|
|
22
|
+
const visible = editor.items.filter((item) => item.visible).flatMap((item) => tiles.filter((tile) => tile.id === item.id));
|
|
23
|
+
const itemFor = (id) => editor.items.find((item) => item.id === id);
|
|
24
|
+
const finishDrag = () => {
|
|
25
|
+
setDraggedId(null);
|
|
26
|
+
setDropTarget(null);
|
|
27
|
+
setDraggedHeight(0);
|
|
28
|
+
};
|
|
29
|
+
const startDrag = (event, id) => {
|
|
30
|
+
event.dataTransfer.setData("application/x-vx-settings-tile", id);
|
|
31
|
+
event.dataTransfer.effectAllowed = "move";
|
|
32
|
+
const currentTile = event.currentTarget;
|
|
33
|
+
setDraggedHeight((currentTile.hasAttribute("data-preview-tile") ? currentTile : currentTile.querySelector("[inert]"))?.getBoundingClientRect().height ?? 64);
|
|
34
|
+
setDraggedId(id);
|
|
35
|
+
};
|
|
36
|
+
const moveTile = (id, offset) => {
|
|
37
|
+
const index = visible.findIndex((tile) => tile.id === id);
|
|
38
|
+
const target = visible[index + offset];
|
|
39
|
+
if (!target) return;
|
|
40
|
+
if (editor.onPlace) editor.onPlace(id, target.id);
|
|
41
|
+
else {
|
|
42
|
+
const from = editor.items.findIndex((item) => item.id === id);
|
|
43
|
+
const to = editor.items.findIndex((item) => item.id === target.id);
|
|
44
|
+
editor.onMove(id, to - from);
|
|
45
|
+
}
|
|
46
|
+
setAnnouncement(`${itemFor(id)?.label} moved to position ${index + offset + 1} of ${visible.length}.`);
|
|
47
|
+
};
|
|
48
|
+
const dropTile = (event, target) => {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
event.stopPropagation();
|
|
51
|
+
const id = event.dataTransfer.getData("application/x-vx-settings-tile");
|
|
52
|
+
const item = itemFor(id);
|
|
53
|
+
finishDrag();
|
|
54
|
+
if (!item?.editable) return;
|
|
55
|
+
if (editor.onPlace) {
|
|
56
|
+
editor.onPlace(id, target);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (!item.visible) editor.onVisibilityChange(id, true);
|
|
60
|
+
if (target || item.visible) {
|
|
61
|
+
const from = editor.items.findIndex((item) => item.id === id);
|
|
62
|
+
const to = target ? editor.items.findIndex((item) => item.id === target) : editor.items.length - 1;
|
|
63
|
+
editor.onMove(id, to - from);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const search = /* @__PURE__ */ jsx(SearchField, {
|
|
67
|
+
"aria-label": `Search ${kind}`,
|
|
68
|
+
value: query,
|
|
69
|
+
onChange: (value) => {
|
|
70
|
+
setQuery(value);
|
|
71
|
+
setCategory("All");
|
|
72
|
+
},
|
|
73
|
+
variant: "secondary",
|
|
74
|
+
children: /* @__PURE__ */ jsxs(SearchField.Group, { children: [
|
|
75
|
+
/* @__PURE__ */ jsx(SearchField.SearchIcon, {}),
|
|
76
|
+
/* @__PURE__ */ jsx(SearchField.Input, { placeholder: `Search ${kind}` }),
|
|
77
|
+
/* @__PURE__ */ jsx(SearchField.ClearButton, { "aria-label": `Clear ${kind} search` })
|
|
78
|
+
] })
|
|
79
|
+
});
|
|
80
|
+
const categoryButtons = (isSearching ? matchingCategories : categories).map((value) => /* @__PURE__ */ jsxs(Button, {
|
|
81
|
+
variant: "ghost",
|
|
82
|
+
"aria-pressed": category === value,
|
|
83
|
+
onPress: () => {
|
|
84
|
+
setCategory(value);
|
|
85
|
+
setIsCategoryMenuOpen(false);
|
|
86
|
+
},
|
|
87
|
+
className: `w-full justify-start rounded-lg text-sm ${category === value ? "bg-surface-secondary font-semibold" : "text-muted"}`,
|
|
88
|
+
children: [/* @__PURE__ */ jsx(Settings, { size: 16 }), value === "All" ? `All ${kind}` : value]
|
|
89
|
+
}, value));
|
|
90
|
+
const tileSpan = (tile) => kind === "widgets" ? tile.shape === "large" ? "col-span-2 row-span-2" : tile.shape === "medium" ? "col-span-2" : "" : tile.shape === "compact" ? "" : tile.shape === "standard" ? "col-span-2" : tile.shape === "wide" ? "col-span-3" : "col-span-4";
|
|
91
|
+
const draggedTile = tiles.find((tile) => tile.id === draggedId);
|
|
92
|
+
const blankWidget = (tile) => /* @__PURE__ */ jsx(Surface, {
|
|
93
|
+
variant: "transparent",
|
|
94
|
+
"aria-hidden": "true",
|
|
95
|
+
className: `bg-surface-secondary border-border w-full rounded-2xl border ${tile.shape === "large" ? "aspect-square" : tile.shape === "medium" ? "aspect-[2/1]" : "aspect-square"}`,
|
|
96
|
+
children: null
|
|
97
|
+
});
|
|
98
|
+
return {
|
|
99
|
+
dragInstructionsId,
|
|
100
|
+
draggedId,
|
|
101
|
+
draggedHeight,
|
|
102
|
+
dropTarget,
|
|
103
|
+
announcement,
|
|
104
|
+
query,
|
|
105
|
+
category,
|
|
106
|
+
isSearching,
|
|
107
|
+
isCategoryMenuOpen,
|
|
108
|
+
showPreview,
|
|
109
|
+
available,
|
|
110
|
+
visible,
|
|
111
|
+
itemFor,
|
|
112
|
+
finishDrag,
|
|
113
|
+
startDrag,
|
|
114
|
+
moveTile,
|
|
115
|
+
dropTile,
|
|
116
|
+
search,
|
|
117
|
+
categoryButtons,
|
|
118
|
+
tileSpan,
|
|
119
|
+
draggedTile,
|
|
120
|
+
blankWidget,
|
|
121
|
+
setDropTarget,
|
|
122
|
+
setIsCategoryMenuOpen,
|
|
123
|
+
setShowPreview
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
var GalleryPreview = ({ kind, editor, showPreview, visible, draggedId, draggedHeight, dropTarget, itemFor, startDrag, finishDrag, moveTile, dropTile, tileSpan, blankWidget, dragInstructionsId, draggedTile, setDropTarget }) => /* @__PURE__ */ jsxs("aside", {
|
|
127
|
+
"aria-label": `Current ${kind}`,
|
|
128
|
+
className: `${showPreview ? "flex" : "hidden xl:flex"} border-border min-h-0 min-w-0 flex-1 flex-col p-5 xl:w-96 xl:flex-none xl:border-l`,
|
|
129
|
+
onDragOver: (event) => {
|
|
130
|
+
if (!event.dataTransfer.types.includes("application/x-vx-settings-tile")) return;
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
event.dataTransfer.dropEffect = "move";
|
|
133
|
+
setDropTarget("empty");
|
|
134
|
+
},
|
|
135
|
+
onDragLeave: (event) => {
|
|
136
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setDropTarget(null);
|
|
137
|
+
},
|
|
138
|
+
onDrop: (event) => dropTile(event),
|
|
139
|
+
children: [
|
|
140
|
+
/* @__PURE__ */ jsxs("div", {
|
|
141
|
+
className: "mb-4 flex items-center justify-between gap-3",
|
|
142
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
143
|
+
className: "text-sm font-semibold",
|
|
144
|
+
children: kind === "widgets" ? "Notification Center" : "Control Center"
|
|
145
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
146
|
+
className: "text-muted text-xs",
|
|
147
|
+
children: [visible.length, " added"]
|
|
148
|
+
})]
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ jsxs("div", {
|
|
151
|
+
className: "@container mx-auto min-h-0 w-full max-w-[352px] flex-1 overflow-y-auto px-2 pt-3 pb-4",
|
|
152
|
+
children: [visible.length === 0 && /* @__PURE__ */ jsxs("p", {
|
|
153
|
+
className: "text-muted py-8 text-center text-sm",
|
|
154
|
+
children: [
|
|
155
|
+
"No ",
|
|
156
|
+
kind,
|
|
157
|
+
" added. Choose a tile from the gallery."
|
|
158
|
+
]
|
|
159
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
160
|
+
className: `grid gap-4 ${kind === "widgets" ? "auto-rows-[calc((100cqw-1rem)/2)] grid-cols-2" : "grid-cols-4 items-start"}`,
|
|
161
|
+
children: [visible.map((tile) => {
|
|
162
|
+
const editable = itemFor(tile.id)?.editable;
|
|
163
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
164
|
+
"data-preview-tile": tile.id,
|
|
165
|
+
draggable: editable,
|
|
166
|
+
role: "group",
|
|
167
|
+
"aria-label": tile.label,
|
|
168
|
+
onDragStart: (event) => startDrag(event, tile.id),
|
|
169
|
+
onDragEnd: finishDrag,
|
|
170
|
+
onDragOver: (event) => {
|
|
171
|
+
if (!event.dataTransfer.types.includes("application/x-vx-settings-tile")) return;
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
event.stopPropagation();
|
|
174
|
+
event.dataTransfer.dropEffect = "move";
|
|
175
|
+
setDropTarget(tile.id === draggedId ? null : tile.id);
|
|
176
|
+
},
|
|
177
|
+
onDragLeave: (event) => {
|
|
178
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setDropTarget((current) => current === tile.id ? null : current);
|
|
179
|
+
},
|
|
180
|
+
onDrop: (event) => dropTile(event, tile.id),
|
|
181
|
+
"data-dragging": draggedId === tile.id || void 0,
|
|
182
|
+
"data-drop-target": dropTarget === tile.id || void 0,
|
|
183
|
+
className: `group focus-visible:outline-focus data-[drop-target]:bg-accent-soft data-[drop-target]:outline-accent/40 group-focus-within:[&>div>*]:ring-foreground/35 group-hover:[&>div>*]:ring-foreground/35 relative min-w-0 rounded-2xl focus-visible:outline-2 focus-visible:outline-offset-2 data-[dragging]:opacity-40 data-[drop-target]:outline data-[drop-target]:outline-offset-2 [&>div>*]:transition-[box-shadow] group-focus-within:[&>div>*]:ring-1 group-hover:[&>div>*]:ring-1 ${editable ? "cursor-grab active:cursor-grabbing" : ""} ${tileSpan(tile)}`,
|
|
184
|
+
children: [
|
|
185
|
+
/* @__PURE__ */ jsx("div", {
|
|
186
|
+
inert: true,
|
|
187
|
+
className: kind === "widgets" ? "pointer-events-none h-full [&>div]:aspect-auto [&>div]:h-full" : "pointer-events-none [&>button]:w-full",
|
|
188
|
+
children: kind === "widgets" ? tile.preview ?? blankWidget(tile) : tile.preview
|
|
189
|
+
}),
|
|
190
|
+
editable && /* @__PURE__ */ jsx(Button, {
|
|
191
|
+
isIconOnly: true,
|
|
192
|
+
size: "sm",
|
|
193
|
+
variant: "ghost",
|
|
194
|
+
"aria-label": `Reorder ${tile.label}`,
|
|
195
|
+
"aria-roledescription": "reorderable tile",
|
|
196
|
+
"aria-describedby": dragInstructionsId,
|
|
197
|
+
className: "focus-visible:outline-focus absolute inset-0 h-auto w-auto min-w-0 cursor-grab rounded-[inherit] bg-transparent! p-0 hover:bg-transparent! focus-visible:outline-2 focus-visible:outline-offset-2 active:cursor-grabbing active:bg-transparent!",
|
|
198
|
+
onKeyDown: (event) => {
|
|
199
|
+
if ([
|
|
200
|
+
"ArrowUp",
|
|
201
|
+
"ArrowLeft",
|
|
202
|
+
"ArrowDown",
|
|
203
|
+
"ArrowRight"
|
|
204
|
+
].includes(event.key)) {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
moveTile(tile.id, event.key === "ArrowUp" || event.key === "ArrowLeft" ? -1 : 1);
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
210
|
+
className: "sr-only",
|
|
211
|
+
children: ["Reorder ", tile.label]
|
|
212
|
+
})
|
|
213
|
+
}),
|
|
214
|
+
editable && /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(Button, {
|
|
215
|
+
isIconOnly: true,
|
|
216
|
+
size: "sm",
|
|
217
|
+
variant: "secondary",
|
|
218
|
+
className: "text-muted absolute -top-2 -left-2 z-10 size-6 min-w-0 rounded-full p-0 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100",
|
|
219
|
+
"aria-label": `Remove ${tile.label}`,
|
|
220
|
+
onPress: () => editor.onVisibilityChange(tile.id, false),
|
|
221
|
+
children: /* @__PURE__ */ jsx(Minus, {
|
|
222
|
+
"aria-hidden": "true",
|
|
223
|
+
className: "size-3.5"
|
|
224
|
+
})
|
|
225
|
+
}), /* @__PURE__ */ jsxs(Tooltip.Content, { children: ["Remove ", tile.label] })] })
|
|
226
|
+
]
|
|
227
|
+
}, tile.id);
|
|
228
|
+
}), draggedTile && /* @__PURE__ */ jsx("div", {
|
|
229
|
+
"data-preview-empty-drop": true,
|
|
230
|
+
"aria-label": `Drop ${draggedTile.label} here`,
|
|
231
|
+
"data-drop-target": dropTarget === "empty" || void 0,
|
|
232
|
+
className: `border-border text-muted data-[drop-target]:border-accent/40 data-[drop-target]:bg-accent-soft flex items-center justify-center rounded-2xl border border-dashed text-xs ${tileSpan(draggedTile)}`,
|
|
233
|
+
style: kind === "controls" ? { height: draggedHeight } : void 0,
|
|
234
|
+
children: "Drop here"
|
|
235
|
+
})]
|
|
236
|
+
})]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ jsxs(Button, {
|
|
239
|
+
size: "sm",
|
|
240
|
+
variant: "ghost",
|
|
241
|
+
onPress: editor.onReset,
|
|
242
|
+
children: ["Reset ", kind]
|
|
243
|
+
})
|
|
244
|
+
]
|
|
245
|
+
});
|
|
246
|
+
var GalleryAvailable = ({ kind, editor, isSearching, showPreview, category, available, itemFor, startDrag, finishDrag, blankWidget }) => /* @__PURE__ */ jsxs("section", {
|
|
247
|
+
"aria-label": `Available ${kind}`,
|
|
248
|
+
className: `${showPreview ? "hidden xl:flex" : "flex"} min-h-0 min-w-0 flex-1 flex-col p-4 md:p-6`,
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ jsx("h2", {
|
|
251
|
+
className: "mb-1 text-sm font-semibold",
|
|
252
|
+
children: isSearching ? "Search results" : category === "All" ? "Suggestions" : category
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ jsx("p", {
|
|
255
|
+
className: "text-muted mb-5 text-xs",
|
|
256
|
+
children: "Add or drag a tile into your preview. Changes save automatically."
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ jsxs("div", {
|
|
259
|
+
className: "min-h-0 flex-1 overflow-y-auto p-1",
|
|
260
|
+
children: [available.length === 0 && /* @__PURE__ */ jsxs("p", {
|
|
261
|
+
role: "status",
|
|
262
|
+
className: "text-muted py-8 text-sm",
|
|
263
|
+
children: [
|
|
264
|
+
"No ",
|
|
265
|
+
kind,
|
|
266
|
+
" found."
|
|
267
|
+
]
|
|
268
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
269
|
+
className: "grid grid-cols-2 items-start gap-4 sm:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5",
|
|
270
|
+
children: available.map((tile) => {
|
|
271
|
+
const item = itemFor(tile.id);
|
|
272
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
273
|
+
"data-gallery-tile": tile.id,
|
|
274
|
+
draggable: item?.editable,
|
|
275
|
+
onDragStart: (event) => startDrag(event, tile.id),
|
|
276
|
+
onDragEnd: finishDrag,
|
|
277
|
+
className: `group relative min-w-0 ${tile.shape === "medium" || tile.shape === "large" || tile.shape === "full" || tile.shape === "wide" ? "col-span-2" : ""}`,
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ jsx("div", {
|
|
280
|
+
inert: true,
|
|
281
|
+
className: "pointer-events-none flex min-h-24 items-center justify-center [&>button]:w-full",
|
|
282
|
+
children: kind === "widgets" ? tile.preview ?? blankWidget(tile) : tile.preview
|
|
283
|
+
}),
|
|
284
|
+
item?.editable && !item.visible && /* @__PURE__ */ jsx(Button, {
|
|
285
|
+
isIconOnly: true,
|
|
286
|
+
size: "sm",
|
|
287
|
+
variant: "ghost",
|
|
288
|
+
"aria-label": `Quick add ${tile.label}`,
|
|
289
|
+
className: "bg-success hover:bg-success/90 absolute -top-1 -left-1 z-10 size-7 min-w-0 rounded-full p-0 text-white opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100",
|
|
290
|
+
onPress: () => editor.onVisibilityChange(tile.id, true),
|
|
291
|
+
children: /* @__PURE__ */ jsx(Add, {
|
|
292
|
+
"aria-hidden": "true",
|
|
293
|
+
className: "size-4"
|
|
294
|
+
})
|
|
295
|
+
}),
|
|
296
|
+
/* @__PURE__ */ jsx("p", {
|
|
297
|
+
className: "mt-2 min-w-0 truncate text-xs",
|
|
298
|
+
children: tile.label
|
|
299
|
+
})
|
|
300
|
+
]
|
|
301
|
+
}, tile.id);
|
|
302
|
+
})
|
|
303
|
+
})]
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
});
|
|
307
|
+
var TileGallery = (props) => {
|
|
308
|
+
const context = {
|
|
309
|
+
...props,
|
|
310
|
+
...useGallery(props)
|
|
311
|
+
};
|
|
312
|
+
const { title, onDone, kind, dragInstructionsId, announcement, isCategoryMenuOpen, showPreview, setIsCategoryMenuOpen, setShowPreview, search, categoryButtons } = context;
|
|
313
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
314
|
+
className: "bg-background flex h-full min-h-0 flex-col",
|
|
315
|
+
children: [
|
|
316
|
+
/* @__PURE__ */ jsx("span", {
|
|
317
|
+
id: dragInstructionsId,
|
|
318
|
+
className: "sr-only",
|
|
319
|
+
children: "Drag the tile to reorder, or focus it and use the arrow keys."
|
|
320
|
+
}),
|
|
321
|
+
/* @__PURE__ */ jsx("span", {
|
|
322
|
+
role: "status",
|
|
323
|
+
className: "sr-only",
|
|
324
|
+
children: announcement
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ jsxs("header", {
|
|
327
|
+
className: "border-border flex shrink-0 items-center justify-between gap-3 border-b p-4",
|
|
328
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
329
|
+
className: "flex min-w-0 items-center gap-3",
|
|
330
|
+
children: [
|
|
331
|
+
/* @__PURE__ */ jsx(Button, {
|
|
332
|
+
isIconOnly: true,
|
|
333
|
+
size: "sm",
|
|
334
|
+
variant: "ghost",
|
|
335
|
+
"aria-label": "Show menu",
|
|
336
|
+
"aria-expanded": isCategoryMenuOpen,
|
|
337
|
+
"aria-haspopup": "dialog",
|
|
338
|
+
className: "md:hidden",
|
|
339
|
+
onPress: () => setIsCategoryMenuOpen(true),
|
|
340
|
+
children: /* @__PURE__ */ jsx(Sidebar, {
|
|
341
|
+
"aria-hidden": "true",
|
|
342
|
+
size: 18
|
|
343
|
+
})
|
|
344
|
+
}),
|
|
345
|
+
/* @__PURE__ */ jsx(Button, {
|
|
346
|
+
isIconOnly: true,
|
|
347
|
+
size: "sm",
|
|
348
|
+
variant: "ghost",
|
|
349
|
+
"aria-label": "Back to Settings",
|
|
350
|
+
onPress: onDone,
|
|
351
|
+
children: /* @__PURE__ */ jsx(AltArrowLeft, { size: 18 })
|
|
352
|
+
}),
|
|
353
|
+
/* @__PURE__ */ jsx("h1", {
|
|
354
|
+
className: "truncate text-lg font-semibold",
|
|
355
|
+
children: title
|
|
356
|
+
})
|
|
357
|
+
]
|
|
358
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
359
|
+
className: "flex gap-2",
|
|
360
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
361
|
+
size: "sm",
|
|
362
|
+
variant: "secondary",
|
|
363
|
+
className: "xl:hidden",
|
|
364
|
+
"aria-pressed": showPreview,
|
|
365
|
+
onPress: () => setShowPreview((value) => !value),
|
|
366
|
+
children: showPreview ? "Gallery" : "Preview"
|
|
367
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
368
|
+
size: "sm",
|
|
369
|
+
onPress: onDone,
|
|
370
|
+
children: "Done"
|
|
371
|
+
})]
|
|
372
|
+
})]
|
|
373
|
+
}),
|
|
374
|
+
/* @__PURE__ */ jsxs("div", {
|
|
375
|
+
className: "flex min-h-0 flex-1",
|
|
376
|
+
children: [
|
|
377
|
+
/* @__PURE__ */ jsxs("aside", {
|
|
378
|
+
className: "border-border bg-surface-secondary/40 hidden w-56 shrink-0 overflow-y-auto border-r p-4 md:block",
|
|
379
|
+
children: [search, /* @__PURE__ */ jsx("nav", {
|
|
380
|
+
"aria-label": `${kind} categories`,
|
|
381
|
+
className: "mt-4 space-y-1",
|
|
382
|
+
children: categoryButtons
|
|
383
|
+
})]
|
|
384
|
+
}),
|
|
385
|
+
/* @__PURE__ */ jsx(GalleryAvailable, { ...context }),
|
|
386
|
+
/* @__PURE__ */ jsx(GalleryPreview, { ...context })
|
|
387
|
+
]
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ jsx(Drawer.Backdrop, {
|
|
390
|
+
isOpen: isCategoryMenuOpen,
|
|
391
|
+
onOpenChange: setIsCategoryMenuOpen,
|
|
392
|
+
children: /* @__PURE__ */ jsx(Drawer.Content, {
|
|
393
|
+
placement: "left",
|
|
394
|
+
children: /* @__PURE__ */ jsxs(Drawer.Dialog, {
|
|
395
|
+
className: "bg-background w-[min(20rem,calc(100vw-2rem))]",
|
|
396
|
+
children: [/* @__PURE__ */ jsxs(Drawer.Header, { children: [/* @__PURE__ */ jsx(Drawer.Heading, { children: kind === "widgets" ? "Widgets" : "Controls" }), /* @__PURE__ */ jsx(Drawer.CloseTrigger, { "aria-label": "Hide menu" })] }), /* @__PURE__ */ jsxs(Drawer.Body, {
|
|
397
|
+
className: "space-y-4",
|
|
398
|
+
children: [search, /* @__PURE__ */ jsx("nav", {
|
|
399
|
+
"aria-label": `${kind} categories`,
|
|
400
|
+
className: "space-y-1",
|
|
401
|
+
children: categoryButtons
|
|
402
|
+
})]
|
|
403
|
+
})]
|
|
404
|
+
})
|
|
405
|
+
})
|
|
406
|
+
})
|
|
407
|
+
]
|
|
408
|
+
});
|
|
409
|
+
};
|
|
410
|
+
//#endregion
|
|
411
|
+
export { TileGallery };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/useBookmarks/action.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE7D,QAAA,MAAM,SAAS;eACI,WAAW,KAAG,OAAO,CAAC,iBAAiB,CAAC;CAI1D,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/useBookmarks/data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE5E,eAAO,MAAM,eAAe,EAAE,YAAY,EAyFzC,CAAA;AAiID,eAAO,MAAM,aAAa,EAAE,iBAI3B,CAAA"}
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
//#region src/lib/store/useBookmarks/data.ts
|
|
2
|
+
var sampleFavorites = [
|
|
3
|
+
{
|
|
4
|
+
id: "favorite-all-classes",
|
|
5
|
+
name: "All Classes",
|
|
6
|
+
url: "/academic/classes/allclasses"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
id: "favorite-operations",
|
|
10
|
+
name: "Operations",
|
|
11
|
+
url: "/operations"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "favorite-hello-world",
|
|
15
|
+
name: "Hello World",
|
|
16
|
+
url: "/hello-world"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "1",
|
|
20
|
+
name: "HeroUI v3",
|
|
21
|
+
url: "https://v3.heroui.com",
|
|
22
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/robot1.jpeg"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "2",
|
|
26
|
+
name: "Tailwind CSS",
|
|
27
|
+
url: "https://tailwindcss.com",
|
|
28
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/avocado.jpeg"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "3",
|
|
32
|
+
name: "Miro Boards",
|
|
33
|
+
url: "https://miro.com",
|
|
34
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/oranges.jpeg"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "4",
|
|
38
|
+
name: "Figma",
|
|
39
|
+
url: "https://figma.com",
|
|
40
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/neo1.jpeg"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "5",
|
|
44
|
+
name: "GitHub",
|
|
45
|
+
url: "https://github.com",
|
|
46
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/blue.jpg"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "6",
|
|
50
|
+
name: "Gemini",
|
|
51
|
+
url: "https://gemini.google.com",
|
|
52
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/green.jpg"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: "7",
|
|
56
|
+
name: "Application",
|
|
57
|
+
url: "",
|
|
58
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/purple.jpg"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: "8",
|
|
62
|
+
name: "HeroUI Pro",
|
|
63
|
+
url: "https://heroui.pro",
|
|
64
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/red.jpg"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: "9",
|
|
68
|
+
name: "Design ideas",
|
|
69
|
+
url: ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "10",
|
|
73
|
+
name: "Reading list",
|
|
74
|
+
url: ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "11",
|
|
78
|
+
name: "Project notes",
|
|
79
|
+
url: ""
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "12",
|
|
83
|
+
name: "Project notes",
|
|
84
|
+
url: ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "13",
|
|
88
|
+
name: "Project notes",
|
|
89
|
+
url: ""
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
var bookmarksData = {
|
|
93
|
+
favorites: sampleFavorites,
|
|
94
|
+
pins: [
|
|
95
|
+
{
|
|
96
|
+
id: "pin-all-classes",
|
|
97
|
+
name: "All Classes",
|
|
98
|
+
url: "/academic/classes/allclasses"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
id: "pin-operations",
|
|
102
|
+
name: "Operations",
|
|
103
|
+
url: "/operations"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: "pin-hello-world",
|
|
107
|
+
name: "Hello World",
|
|
108
|
+
url: "/hello-world"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: "pin-classes",
|
|
112
|
+
name: "Classes",
|
|
113
|
+
url: "/academic/classes",
|
|
114
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/robot1.jpeg"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
id: "pin-projects",
|
|
118
|
+
name: "Project overview",
|
|
119
|
+
url: "/workspace/projects/overview",
|
|
120
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/avocado.jpeg"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "pin-board",
|
|
124
|
+
name: "Design board",
|
|
125
|
+
url: "https://miro.com",
|
|
126
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/oranges.jpeg"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
id: "pin-review",
|
|
130
|
+
name: "Design review",
|
|
131
|
+
url: "https://figma.com",
|
|
132
|
+
backgroundImage: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/docs/neo1.jpeg"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: "pin-docs",
|
|
136
|
+
name: "Reference docs",
|
|
137
|
+
url: "https://v3.heroui.com/docs",
|
|
138
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/blue.jpg"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: "pin-activity",
|
|
142
|
+
name: "Project activity",
|
|
143
|
+
url: "/workspace/projects/activity",
|
|
144
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/green.jpg"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
id: "pin-notes",
|
|
148
|
+
name: "Meeting notes",
|
|
149
|
+
url: ""
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "pin-reading",
|
|
153
|
+
name: "Reading queue",
|
|
154
|
+
url: ""
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
bookmarks: [
|
|
158
|
+
{
|
|
159
|
+
id: "bookmark-all-classes",
|
|
160
|
+
name: "All Classes",
|
|
161
|
+
url: "/academic/classes/allclasses"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "bookmark-operations",
|
|
165
|
+
name: "Operations",
|
|
166
|
+
url: "/operations"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
id: "bookmark-hello-world",
|
|
170
|
+
name: "Hello World",
|
|
171
|
+
url: "/hello-world"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "b1",
|
|
175
|
+
name: "HeroUI v3 Docs",
|
|
176
|
+
url: "https://v3.heroui.com/docs",
|
|
177
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/orange.jpg",
|
|
178
|
+
folder: "Development"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "b2",
|
|
182
|
+
name: "Tailwind Installation",
|
|
183
|
+
url: "https://tailwindcss.com/docs/installation",
|
|
184
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/blue.jpg",
|
|
185
|
+
folder: "Development"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: "b3",
|
|
189
|
+
name: "Miro Demo Team",
|
|
190
|
+
url: "https://miro.com/app/board/",
|
|
191
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/green.jpg",
|
|
192
|
+
folder: "Design"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
id: "b4",
|
|
196
|
+
name: "Figma Design System Figma Design System Figma Design System",
|
|
197
|
+
url: "https://figma.com/design/7otXAQPcV",
|
|
198
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/purple.jpg",
|
|
199
|
+
folder: "Design"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
id: "b5-pro",
|
|
203
|
+
name: "Pro | Application home",
|
|
204
|
+
url: "/pro",
|
|
205
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/red.jpg",
|
|
206
|
+
folder: "Workspace"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: "b5",
|
|
210
|
+
name: "Application home",
|
|
211
|
+
url: "/",
|
|
212
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/red.jpg",
|
|
213
|
+
folder: "Workspace"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "b6",
|
|
217
|
+
name: "Karthik Stay",
|
|
218
|
+
url: "#",
|
|
219
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/black.jpg"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
id: "b4",
|
|
223
|
+
name: "Figma Design System",
|
|
224
|
+
url: "https://figma.com/design/7otXAQPcV",
|
|
225
|
+
avatar: "https://heroui-assets.nyc3.cdn.digitaloceanspaces.com/avatars/purple.jpg",
|
|
226
|
+
folder: "Design"
|
|
227
|
+
}
|
|
228
|
+
]
|
|
229
|
+
};
|
|
230
|
+
//#endregion
|
|
231
|
+
export { bookmarksData, sampleFavorites };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type BookmarkItem, type BookmarksResponse, type FavoriteItem, type RQBookmarks } from './types';
|
|
2
|
+
export * from './data';
|
|
3
|
+
export * from './types';
|
|
4
|
+
export declare const useBookmarks: {
|
|
5
|
+
list: (rq?: RQBookmarks) => import("@tanstack/react-query").DefinedUseQueryResult<BookmarksResponse, Error>;
|
|
6
|
+
actions: (rq?: RQBookmarks) => {
|
|
7
|
+
setFavorites: (items: FavoriteItem[]) => NoInfer<BookmarksResponse> | undefined;
|
|
8
|
+
setPins: (items: FavoriteItem[]) => NoInfer<BookmarksResponse> | undefined;
|
|
9
|
+
setBookmarks: (items: BookmarkItem[]) => NoInfer<BookmarksResponse> | undefined;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/store/useBookmarks/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAA;AAEhB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AA2BvB,eAAO,MAAM,YAAY;gBAvBK,WAAW;mBAQR,WAAW;8BAQlB,YAAY,EAAE;yBAEnB,YAAY,EAAE;8BACT,YAAY,EAAE;;CAOvC,CAAA"}
|