@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,482 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef, type ElementType, ReactNode } from 'react';
|
|
2
|
+
import { ArchiveItem, ArchiveItemRendererProps } from './archive/types';
|
|
3
|
+
import { TrashItem, TrashItemRendererProps } from './trash/types';
|
|
4
|
+
import { tvProps, tvSlots } from './variant';
|
|
5
|
+
interface Props extends tvProps, ComponentPropsWithRef<'div'> {
|
|
6
|
+
as?: ElementType;
|
|
7
|
+
classNames?: Partial<Record<tvSlots, string>>;
|
|
8
|
+
archiveItems?: ArchiveItem[];
|
|
9
|
+
trashItems?: TrashItem[];
|
|
10
|
+
onUnarchive?: (id: string) => void;
|
|
11
|
+
onDeleteFromArchive?: (id: string) => void;
|
|
12
|
+
onRestore?: (id: string) => void;
|
|
13
|
+
onDeletePermanently?: (id: string) => void;
|
|
14
|
+
onClearAllArchive?: () => void;
|
|
15
|
+
onClearAllTrash?: () => void;
|
|
16
|
+
onRestoreAllTrash?: () => void;
|
|
17
|
+
onItemClick?: (url: string) => void;
|
|
18
|
+
renderArchiveItem?: (props: ArchiveItemRendererProps) => ReactNode;
|
|
19
|
+
renderTrashItem?: (props: TrashItemRendererProps) => ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const useProps: (originalProps: Props) => {
|
|
22
|
+
Component: ElementType;
|
|
23
|
+
domRef: import("react").Ref<HTMLDivElement> | undefined;
|
|
24
|
+
slots: {
|
|
25
|
+
tabs: (slotProps?: ({
|
|
26
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
27
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
28
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
29
|
+
tabs_list_container: (slotProps?: ({
|
|
30
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
31
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
32
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
33
|
+
tabs_list: (slotProps?: ({
|
|
34
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
35
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
36
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
37
|
+
tab_archive: (slotProps?: ({
|
|
38
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
39
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
40
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
41
|
+
tab_trash: (slotProps?: ({
|
|
42
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
43
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
44
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
45
|
+
tab_indicator: (slotProps?: ({
|
|
46
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
47
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
48
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
49
|
+
container: (slotProps?: ({
|
|
50
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
51
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
52
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
53
|
+
search_input: (slotProps?: ({
|
|
54
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
55
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
56
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
57
|
+
search_input_wrapper: (slotProps?: ({
|
|
58
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
59
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
60
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
61
|
+
search_icon: (slotProps?: ({
|
|
62
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
63
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
64
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
65
|
+
actions_bar: (slotProps?: ({
|
|
66
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
67
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
68
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
69
|
+
actions_bar_with_gap: (slotProps?: ({
|
|
70
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
71
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
72
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
73
|
+
clear_all_button: (slotProps?: ({
|
|
74
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
75
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
76
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
77
|
+
restore_all_button: (slotProps?: ({
|
|
78
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
79
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
80
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
81
|
+
empty_container: (slotProps?: ({
|
|
82
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
83
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
84
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
85
|
+
empty_icon: (slotProps?: ({
|
|
86
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
87
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
88
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
89
|
+
empty_title: (slotProps?: ({
|
|
90
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
91
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
92
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
93
|
+
empty_description: (slotProps?: ({
|
|
94
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
95
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
96
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
97
|
+
items_container: (slotProps?: ({
|
|
98
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
99
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
100
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
101
|
+
date_group: (slotProps?: ({
|
|
102
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
103
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
104
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
105
|
+
date_header: (slotProps?: ({
|
|
106
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
107
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
108
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
109
|
+
date_label: (slotProps?: ({
|
|
110
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
111
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
112
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
113
|
+
date_divider: (slotProps?: ({
|
|
114
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
115
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
116
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
117
|
+
items_list: (slotProps?: ({
|
|
118
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
119
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
120
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
121
|
+
item: (slotProps?: ({
|
|
122
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
123
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
124
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
125
|
+
item_favicon: (slotProps?: ({
|
|
126
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
127
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
128
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
129
|
+
item_fallback_icon: (slotProps?: ({
|
|
130
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
131
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
132
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
133
|
+
item_content: (slotProps?: ({
|
|
134
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
135
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
136
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
137
|
+
item_title: (slotProps?: ({
|
|
138
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
139
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
140
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
141
|
+
item_url: (slotProps?: ({
|
|
142
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
143
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
144
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
145
|
+
item_actions: (slotProps?: ({
|
|
146
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
147
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
148
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
149
|
+
unarchive_button: (slotProps?: ({
|
|
150
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
151
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
152
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
153
|
+
restore_button: (slotProps?: ({
|
|
154
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
155
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
156
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
157
|
+
delete_button: (slotProps?: ({
|
|
158
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
159
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
160
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
161
|
+
delete_permanent_button: (slotProps?: ({
|
|
162
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
163
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
164
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
165
|
+
action_icon: (slotProps?: ({
|
|
166
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
167
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
168
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
169
|
+
action_icon_success: (slotProps?: ({
|
|
170
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
171
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
172
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
173
|
+
action_icon_danger: (slotProps?: ({
|
|
174
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
175
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
176
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
177
|
+
action_icon_default: (slotProps?: ({
|
|
178
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
179
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
180
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
181
|
+
} & {
|
|
182
|
+
tabs: (slotProps?: ({
|
|
183
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
184
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
185
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
186
|
+
tabs_list_container: (slotProps?: ({
|
|
187
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
188
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
189
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
190
|
+
tabs_list: (slotProps?: ({
|
|
191
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
192
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
193
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
194
|
+
tab_archive: (slotProps?: ({
|
|
195
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
196
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
197
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
198
|
+
tab_trash: (slotProps?: ({
|
|
199
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
200
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
201
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
202
|
+
tab_indicator: (slotProps?: ({
|
|
203
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
204
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
205
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
206
|
+
container: (slotProps?: ({
|
|
207
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
208
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
209
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
210
|
+
search_input: (slotProps?: ({
|
|
211
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
212
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
213
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
214
|
+
search_input_wrapper: (slotProps?: ({
|
|
215
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
216
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
217
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
218
|
+
search_icon: (slotProps?: ({
|
|
219
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
220
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
221
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
222
|
+
actions_bar: (slotProps?: ({
|
|
223
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
224
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
225
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
226
|
+
actions_bar_with_gap: (slotProps?: ({
|
|
227
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
228
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
229
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
230
|
+
clear_all_button: (slotProps?: ({
|
|
231
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
232
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
233
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
234
|
+
restore_all_button: (slotProps?: ({
|
|
235
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
236
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
237
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
238
|
+
empty_container: (slotProps?: ({
|
|
239
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
240
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
241
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
242
|
+
empty_icon: (slotProps?: ({
|
|
243
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
244
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
245
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
246
|
+
empty_title: (slotProps?: ({
|
|
247
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
248
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
249
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
250
|
+
empty_description: (slotProps?: ({
|
|
251
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
252
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
253
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
254
|
+
items_container: (slotProps?: ({
|
|
255
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
256
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
257
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
258
|
+
date_group: (slotProps?: ({
|
|
259
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
260
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
261
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
262
|
+
date_header: (slotProps?: ({
|
|
263
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
264
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
265
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
266
|
+
date_label: (slotProps?: ({
|
|
267
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
268
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
269
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
270
|
+
date_divider: (slotProps?: ({
|
|
271
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
272
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
273
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
274
|
+
items_list: (slotProps?: ({
|
|
275
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
276
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
277
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
278
|
+
item: (slotProps?: ({
|
|
279
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
280
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
281
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
282
|
+
item_favicon: (slotProps?: ({
|
|
283
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
284
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
285
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
286
|
+
item_fallback_icon: (slotProps?: ({
|
|
287
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
288
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
289
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
290
|
+
item_content: (slotProps?: ({
|
|
291
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
292
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
293
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
294
|
+
item_title: (slotProps?: ({
|
|
295
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
296
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
297
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
298
|
+
item_url: (slotProps?: ({
|
|
299
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
300
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
301
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
302
|
+
item_actions: (slotProps?: ({
|
|
303
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
304
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
305
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
306
|
+
unarchive_button: (slotProps?: ({
|
|
307
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
308
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
309
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
310
|
+
restore_button: (slotProps?: ({
|
|
311
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
312
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
313
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
314
|
+
delete_button: (slotProps?: ({
|
|
315
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
316
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
317
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
318
|
+
delete_permanent_button: (slotProps?: ({
|
|
319
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
320
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
321
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
322
|
+
action_icon: (slotProps?: ({
|
|
323
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
324
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
325
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
326
|
+
action_icon_success: (slotProps?: ({
|
|
327
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
328
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
329
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
330
|
+
action_icon_danger: (slotProps?: ({
|
|
331
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
332
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
333
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
334
|
+
action_icon_default: (slotProps?: ({
|
|
335
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
336
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
337
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
338
|
+
} & {
|
|
339
|
+
base: (slotProps?: ({
|
|
340
|
+
size?: "lg" | "sm" | "md" | undefined;
|
|
341
|
+
variant?: "dark" | "light" | "default" | "glass" | undefined;
|
|
342
|
+
} & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
|
|
343
|
+
};
|
|
344
|
+
classNames: Partial<Record<"tabs" | "base" | "search_input" | "search_input_wrapper" | "search_icon" | "empty_container" | "empty_icon" | "empty_title" | "empty_description" | "item" | "tabs_list_container" | "tabs_list" | "tab_archive" | "tab_trash" | "tab_indicator" | "container" | "actions_bar" | "actions_bar_with_gap" | "clear_all_button" | "restore_all_button" | "items_container" | "date_group" | "date_header" | "date_label" | "date_divider" | "items_list" | "item_favicon" | "item_fallback_icon" | "item_content" | "item_title" | "item_url" | "item_actions" | "unarchive_button" | "restore_button" | "delete_button" | "delete_permanent_button" | "action_icon" | "action_icon_success" | "action_icon_danger" | "action_icon_default", string>> | undefined;
|
|
345
|
+
children: ReactNode;
|
|
346
|
+
getTabsProps: () => {
|
|
347
|
+
className: string;
|
|
348
|
+
};
|
|
349
|
+
getTabsListContainerProps: () => {
|
|
350
|
+
className: string;
|
|
351
|
+
};
|
|
352
|
+
getTabsListProps: () => {
|
|
353
|
+
className: string;
|
|
354
|
+
'aria-label': string;
|
|
355
|
+
};
|
|
356
|
+
getTabArchiveProps: () => {
|
|
357
|
+
id: string;
|
|
358
|
+
className: string;
|
|
359
|
+
};
|
|
360
|
+
getTabTrashProps: () => {
|
|
361
|
+
id: string;
|
|
362
|
+
className: string;
|
|
363
|
+
};
|
|
364
|
+
getTabIndicatorProps: () => {
|
|
365
|
+
className: string;
|
|
366
|
+
};
|
|
367
|
+
getContainerProps: () => {
|
|
368
|
+
className: string;
|
|
369
|
+
};
|
|
370
|
+
getSearchInputProps: (isArchive: boolean) => {
|
|
371
|
+
className: import("tailwind-variants").CnReturn;
|
|
372
|
+
placeholder: string;
|
|
373
|
+
variant: "secondary";
|
|
374
|
+
};
|
|
375
|
+
getActionsBarProps: (hasRestore: boolean) => {
|
|
376
|
+
className: string;
|
|
377
|
+
};
|
|
378
|
+
getClearAllButtonProps: () => {
|
|
379
|
+
size: "sm";
|
|
380
|
+
variant: "danger-soft";
|
|
381
|
+
};
|
|
382
|
+
getRestoreAllButtonProps: () => {
|
|
383
|
+
size: "sm";
|
|
384
|
+
variant: "outline";
|
|
385
|
+
className: string;
|
|
386
|
+
};
|
|
387
|
+
getEmptyContainerProps: () => {
|
|
388
|
+
className: string;
|
|
389
|
+
};
|
|
390
|
+
getEmptyIconProps: () => {
|
|
391
|
+
size: number;
|
|
392
|
+
className: string;
|
|
393
|
+
};
|
|
394
|
+
getEmptyTitleProps: () => {
|
|
395
|
+
className: string;
|
|
396
|
+
};
|
|
397
|
+
getEmptyDescriptionProps: () => {
|
|
398
|
+
className: string;
|
|
399
|
+
};
|
|
400
|
+
getItemsContainerProps: () => {
|
|
401
|
+
className: string;
|
|
402
|
+
};
|
|
403
|
+
getDateGroupProps: () => {
|
|
404
|
+
className: string;
|
|
405
|
+
};
|
|
406
|
+
getDateHeaderProps: () => {
|
|
407
|
+
className: string;
|
|
408
|
+
};
|
|
409
|
+
getDateLabelProps: () => {
|
|
410
|
+
className: string;
|
|
411
|
+
};
|
|
412
|
+
getDateDividerProps: () => {
|
|
413
|
+
className: string;
|
|
414
|
+
};
|
|
415
|
+
getItemsListProps: () => {
|
|
416
|
+
className: string;
|
|
417
|
+
};
|
|
418
|
+
getItemProps: () => {
|
|
419
|
+
className: string;
|
|
420
|
+
};
|
|
421
|
+
getItemFaviconProps: () => {
|
|
422
|
+
className: string;
|
|
423
|
+
onError: (e: React.SyntheticEvent<HTMLImageElement>) => void;
|
|
424
|
+
};
|
|
425
|
+
getItemFallbackIconProps: () => {
|
|
426
|
+
size: number;
|
|
427
|
+
className: string;
|
|
428
|
+
};
|
|
429
|
+
getItemContentProps: () => {
|
|
430
|
+
className: string;
|
|
431
|
+
};
|
|
432
|
+
getItemTitleProps: (title: string) => {
|
|
433
|
+
className: string;
|
|
434
|
+
children: string;
|
|
435
|
+
};
|
|
436
|
+
getItemUrlProps: (url: string) => {
|
|
437
|
+
className: string;
|
|
438
|
+
children: string;
|
|
439
|
+
};
|
|
440
|
+
getItemActionsProps: () => {
|
|
441
|
+
className: string;
|
|
442
|
+
};
|
|
443
|
+
getUnarchiveButtonProps: () => {
|
|
444
|
+
size: "sm";
|
|
445
|
+
className: string;
|
|
446
|
+
'aria-label': string;
|
|
447
|
+
};
|
|
448
|
+
getRestoreButtonProps: () => {
|
|
449
|
+
size: "sm";
|
|
450
|
+
className: string;
|
|
451
|
+
'aria-label': string;
|
|
452
|
+
};
|
|
453
|
+
getDeleteButtonProps: () => {
|
|
454
|
+
size: "sm";
|
|
455
|
+
className: string;
|
|
456
|
+
'aria-label': string;
|
|
457
|
+
};
|
|
458
|
+
getDeletePermanentButtonProps: () => {
|
|
459
|
+
size: "sm";
|
|
460
|
+
className: string;
|
|
461
|
+
'aria-label': string;
|
|
462
|
+
};
|
|
463
|
+
getActionIconProps: (color?: "success" | "danger" | "default") => {
|
|
464
|
+
size: number;
|
|
465
|
+
className: string;
|
|
466
|
+
};
|
|
467
|
+
externalArchiveItems: ArchiveItem[] | undefined;
|
|
468
|
+
externalTrashItems: TrashItem[] | undefined;
|
|
469
|
+
onUnarchive: ((id: string) => void) | undefined;
|
|
470
|
+
onDeleteFromArchive: ((id: string) => void) | undefined;
|
|
471
|
+
onRestore: ((id: string) => void) | undefined;
|
|
472
|
+
onDeletePermanently: ((id: string) => void) | undefined;
|
|
473
|
+
onClearAllArchive: (() => void) | undefined;
|
|
474
|
+
onClearAllTrash: (() => void) | undefined;
|
|
475
|
+
onRestoreAllTrash: (() => void) | undefined;
|
|
476
|
+
onItemClick: ((url: string) => void) | undefined;
|
|
477
|
+
renderArchiveItem: ((props: ArchiveItemRendererProps) => ReactNode) | undefined;
|
|
478
|
+
renderTrashItem: ((props: TrashItemRendererProps) => ReactNode) | undefined;
|
|
479
|
+
};
|
|
480
|
+
export { useProps };
|
|
481
|
+
export type { ArchiveItem, Props, TrashItem };
|
|
482
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/panel/header/storage/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAI/E,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAO,MAAM,WAAW,CAAA;AAEjD,UAAU,KAAM,SAAQ,OAAO,EAAE,qBAAqB,CAAC,KAAK,CAAC;IAC3D,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAC7C,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;IAC5B,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;IACxB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,mBAAmB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,SAAS,CAAA;IAClE,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,SAAS,CAAA;CAC/D;AAED,QAAA,MAAM,QAAQ,GAAI,eAAe,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCA6DI,OAAO;;;;;qCASP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgEhC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;;;;;;;;;+BAgBnB,MAAM;;;;2BAKV,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmCA,SAAS,GAAG,QAAQ,GAAG,SAAS;;;;;;uBA1MjD,MAAM,KAAK,IAAI;+BACP,MAAM,KAAK,IAAI;qBACzB,MAAM,KAAK,IAAI;+BACL,MAAM,KAAK,IAAI;8BAChB,IAAI;4BACN,IAAI;8BACF,IAAI;wBACV,MAAM,KAAK,IAAI;gCACP,wBAAwB,KAAK,SAAS;8BACxC,sBAAsB,KAAK,SAAS;CA+P/D,CAAA;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA;AACnB,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { tva } from "./variant.js";
|
|
2
|
+
import { cn } from "@vezham/react-v3";
|
|
3
|
+
//#region src/lib/components/panel/header/storage/types.ts
|
|
4
|
+
var useProps = (originalProps) => {
|
|
5
|
+
const { variant, size, as, ref, children, classNames, archiveItems: externalArchiveItems, trashItems: externalTrashItems, onUnarchive, onDeleteFromArchive, onRestore, onDeletePermanently, onClearAllArchive, onClearAllTrash, onRestoreAllTrash, onItemClick, renderArchiveItem, renderTrashItem, ...otherProps } = originalProps;
|
|
6
|
+
const Component = as || "div";
|
|
7
|
+
const domRef = ref;
|
|
8
|
+
const slots = tva({
|
|
9
|
+
variant,
|
|
10
|
+
size
|
|
11
|
+
});
|
|
12
|
+
const getTabsProps = () => ({ className: slots.tabs({ class: classNames?.tabs }) });
|
|
13
|
+
const getTabsListContainerProps = () => ({ className: slots.tabs_list_container({ class: classNames?.tabs_list_container }) });
|
|
14
|
+
const getTabsListProps = () => ({
|
|
15
|
+
className: slots.tabs_list({ class: classNames?.tabs_list }),
|
|
16
|
+
"aria-label": "Archive and Trash tabs"
|
|
17
|
+
});
|
|
18
|
+
const getTabArchiveProps = () => ({
|
|
19
|
+
id: "archive",
|
|
20
|
+
className: slots.tab_archive({ class: classNames?.tab_archive })
|
|
21
|
+
});
|
|
22
|
+
const getTabTrashProps = () => ({
|
|
23
|
+
id: "trash",
|
|
24
|
+
className: slots.tab_trash({ class: classNames?.tab_trash })
|
|
25
|
+
});
|
|
26
|
+
const getTabIndicatorProps = () => ({ className: slots.tab_indicator({ class: classNames?.tab_indicator }) });
|
|
27
|
+
const getContainerProps = () => ({ className: slots.container({ class: classNames?.container }) });
|
|
28
|
+
const getSearchInputProps = (isArchive) => ({
|
|
29
|
+
className: cn(slots.search_input({ class: classNames?.search_input }), slots.search_input_wrapper({ class: classNames?.search_input_wrapper })),
|
|
30
|
+
placeholder: isArchive ? "Search" : "Search",
|
|
31
|
+
variant: "secondary"
|
|
32
|
+
});
|
|
33
|
+
const getActionsBarProps = (hasRestore) => ({ className: hasRestore ? slots.actions_bar_with_gap({ class: classNames?.actions_bar }) : slots.actions_bar({ class: classNames?.actions_bar }) });
|
|
34
|
+
const getClearAllButtonProps = () => ({
|
|
35
|
+
size: "sm",
|
|
36
|
+
variant: "danger-soft"
|
|
37
|
+
});
|
|
38
|
+
const getRestoreAllButtonProps = () => ({
|
|
39
|
+
size: "sm",
|
|
40
|
+
variant: "outline",
|
|
41
|
+
className: "text-success"
|
|
42
|
+
});
|
|
43
|
+
const getEmptyContainerProps = () => ({ className: slots.empty_container({ class: classNames?.empty_container }) });
|
|
44
|
+
const getEmptyIconProps = () => ({
|
|
45
|
+
size: 64,
|
|
46
|
+
className: slots.empty_icon({ class: classNames?.empty_icon })
|
|
47
|
+
});
|
|
48
|
+
const getEmptyTitleProps = () => ({ className: slots.empty_title({ class: classNames?.empty_title }) });
|
|
49
|
+
const getEmptyDescriptionProps = () => ({ className: slots.empty_description({ class: classNames?.empty_description }) });
|
|
50
|
+
const getItemsContainerProps = () => ({ className: slots.items_container({ class: classNames?.items_container }) });
|
|
51
|
+
const getDateGroupProps = () => ({ className: slots.date_group({ class: classNames?.date_group }) });
|
|
52
|
+
const getDateHeaderProps = () => ({ className: slots.date_header({ class: classNames?.date_header }) });
|
|
53
|
+
const getDateLabelProps = () => ({ className: slots.date_label({ class: classNames?.date_label }) });
|
|
54
|
+
const getDateDividerProps = () => ({ className: slots.date_divider({ class: classNames?.date_divider }) });
|
|
55
|
+
const getItemsListProps = () => ({ className: slots.items_list({ class: classNames?.items_list }) });
|
|
56
|
+
const getItemProps = () => ({ className: slots.item({ class: classNames?.item }) });
|
|
57
|
+
const getItemFaviconProps = () => ({
|
|
58
|
+
className: slots.item_favicon({ class: classNames?.item_favicon }),
|
|
59
|
+
onError: (e) => {
|
|
60
|
+
e.currentTarget.style.display = "none";
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const getItemFallbackIconProps = () => ({
|
|
64
|
+
size: 16,
|
|
65
|
+
className: slots.item_fallback_icon({ class: classNames?.item_fallback_icon })
|
|
66
|
+
});
|
|
67
|
+
const getItemContentProps = () => ({ className: slots.item_content({ class: classNames?.item_content }) });
|
|
68
|
+
const getItemTitleProps = (title) => ({
|
|
69
|
+
className: slots.item_title({ class: classNames?.item_title }),
|
|
70
|
+
children: title
|
|
71
|
+
});
|
|
72
|
+
const getItemUrlProps = (url) => ({
|
|
73
|
+
className: slots.item_url({ class: classNames?.item_url }),
|
|
74
|
+
children: url
|
|
75
|
+
});
|
|
76
|
+
const getItemActionsProps = () => ({ className: slots.item_actions({ class: classNames?.item_actions }) });
|
|
77
|
+
const getUnarchiveButtonProps = () => ({
|
|
78
|
+
size: "sm",
|
|
79
|
+
className: slots.unarchive_button({ class: classNames?.unarchive_button }),
|
|
80
|
+
"aria-label": "Unarchive"
|
|
81
|
+
});
|
|
82
|
+
const getRestoreButtonProps = () => ({
|
|
83
|
+
size: "sm",
|
|
84
|
+
className: slots.restore_button({ class: classNames?.restore_button }),
|
|
85
|
+
"aria-label": "Restore"
|
|
86
|
+
});
|
|
87
|
+
const getDeleteButtonProps = () => ({
|
|
88
|
+
size: "sm",
|
|
89
|
+
className: slots.delete_button({ class: classNames?.delete_button }),
|
|
90
|
+
"aria-label": "Delete"
|
|
91
|
+
});
|
|
92
|
+
const getDeletePermanentButtonProps = () => ({
|
|
93
|
+
size: "sm",
|
|
94
|
+
className: slots.delete_permanent_button({ class: classNames?.delete_permanent_button }),
|
|
95
|
+
"aria-label": "Delete Permanently"
|
|
96
|
+
});
|
|
97
|
+
const getActionIconProps = (color) => ({
|
|
98
|
+
size: 18,
|
|
99
|
+
className: color === "success" ? slots.action_icon_success({ class: classNames?.action_icon }) : color === "danger" ? slots.action_icon_danger({ class: classNames?.action_icon }) : slots.action_icon_default({ class: classNames?.action_icon })
|
|
100
|
+
});
|
|
101
|
+
return {
|
|
102
|
+
Component,
|
|
103
|
+
domRef,
|
|
104
|
+
slots,
|
|
105
|
+
classNames,
|
|
106
|
+
children,
|
|
107
|
+
getTabsProps,
|
|
108
|
+
getTabsListContainerProps,
|
|
109
|
+
getTabsListProps,
|
|
110
|
+
getTabArchiveProps,
|
|
111
|
+
getTabTrashProps,
|
|
112
|
+
getTabIndicatorProps,
|
|
113
|
+
getContainerProps,
|
|
114
|
+
getSearchInputProps,
|
|
115
|
+
getActionsBarProps,
|
|
116
|
+
getClearAllButtonProps,
|
|
117
|
+
getRestoreAllButtonProps,
|
|
118
|
+
getEmptyContainerProps,
|
|
119
|
+
getEmptyIconProps,
|
|
120
|
+
getEmptyTitleProps,
|
|
121
|
+
getEmptyDescriptionProps,
|
|
122
|
+
getItemsContainerProps,
|
|
123
|
+
getDateGroupProps,
|
|
124
|
+
getDateHeaderProps,
|
|
125
|
+
getDateLabelProps,
|
|
126
|
+
getDateDividerProps,
|
|
127
|
+
getItemsListProps,
|
|
128
|
+
getItemProps,
|
|
129
|
+
getItemFaviconProps,
|
|
130
|
+
getItemFallbackIconProps,
|
|
131
|
+
getItemContentProps,
|
|
132
|
+
getItemTitleProps,
|
|
133
|
+
getItemUrlProps,
|
|
134
|
+
getItemActionsProps,
|
|
135
|
+
getUnarchiveButtonProps,
|
|
136
|
+
getRestoreButtonProps,
|
|
137
|
+
getDeleteButtonProps,
|
|
138
|
+
getDeletePermanentButtonProps,
|
|
139
|
+
getActionIconProps,
|
|
140
|
+
externalArchiveItems,
|
|
141
|
+
externalTrashItems,
|
|
142
|
+
onUnarchive,
|
|
143
|
+
onDeleteFromArchive,
|
|
144
|
+
onRestore,
|
|
145
|
+
onDeletePermanently,
|
|
146
|
+
onClearAllArchive,
|
|
147
|
+
onClearAllTrash,
|
|
148
|
+
onRestoreAllTrash,
|
|
149
|
+
onItemClick,
|
|
150
|
+
renderArchiveItem,
|
|
151
|
+
renderTrashItem
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
//#endregion
|
|
155
|
+
export { useProps };
|