feat(core): rewrite page-mode-switch with RadioGroup, bind hotkey with cmdk (#7758)

close AF-1170

- bump `@toeverything/theme`
- refactor page-mode-switch
  - use global `<RadioGroup />`
  - reuse for doc history
  - remove `styled` usage
  - bind hotkey via cmdk
- Update `<RadioGroup />` color scheme with latest design system
- Update right sidebar header tab style
- Update tooltip with shortcut for app nav button
This commit is contained in:
CatsJuice
2024-08-12 03:56:56 +00:00
parent 4ac9bd7790
commit 75e02bb088
18 changed files with 210 additions and 302 deletions
@@ -600,6 +600,8 @@
"com.affine.cmdk.no-results": "No results found",
"com.affine.cmdk.no-results-for": "No results found for",
"com.affine.cmdk.placeholder": "Type a command or search anything...",
"com.affine.cmdk.switch-to-edgeless": "Switch to $t(com.affine.edgelessMode)",
"com.affine.cmdk.switch-to-page": "Switch to $t(com.affine.pageMode)",
"com.affine.collection-bar.action.tooltip.delete": "Delete",
"com.affine.collection-bar.action.tooltip.edit": "Edit",
"com.affine.collection-bar.action.tooltip.pin": "Pin to sidebar",