@shellui/core 0.7.0-alpha.8 → 0.7.0-beta.1
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 +1 -1
- package/package.json +23 -6
- package/src/components/ui/drawer.tsx +47 -30
- package/src/components/ui/sheet.tsx +18 -12
- package/src/components/ui/shell-divider.spec.tsx +63 -0
- package/src/components/ui/shell-divider.tsx +20 -0
- package/src/components/ui/sidebar.tsx +26 -12
- package/src/components/ui/tooltip.tsx +4 -2
- package/src/features/admin/AdminView.tsx +9 -6
- package/src/features/auth/AuthProvider.tsx +10 -1
- package/src/features/auth/components/LoginButton.spec.tsx +203 -0
- package/src/features/auth/components/LoginButton.tsx +77 -28
- package/src/features/auth/components/LoginButtonIcons.tsx +4 -8
- package/src/features/auth/utils/index.ts +1 -0
- package/src/features/auth/utils/resolveSdkLoginRedirectPath.spec.ts +41 -0
- package/src/features/auth/utils/resolveSdkLoginRedirectPath.ts +31 -0
- package/src/features/chromeActions/ChromeActionsHost.tsx +5 -1
- package/src/features/chromeActions/computeActionInsets.ts +7 -4
- package/src/features/layouts/OverlayShell.tsx +58 -40
- package/src/features/layouts/appbar/AppBarItemIcon.spec.tsx +45 -0
- package/src/features/layouts/appbar/AppBarItemIcon.tsx +19 -0
- package/src/features/layouts/appbar/AppBarLayout.tsx +115 -110
- package/src/features/layouts/appbar/appBarOverflow.spec.ts +27 -0
- package/src/features/layouts/appbar/appBarOverflow.ts +42 -0
- package/src/features/layouts/chrome/CollapsedDesktopTitlebar.tsx +13 -24
- package/src/features/layouts/chrome/ContentDragOverlay.tsx +5 -6
- package/src/features/layouts/chrome/DesktopChrome.tsx +37 -0
- package/src/features/layouts/chrome/DesktopHistoryButtons.tsx +15 -4
- package/src/features/layouts/chrome/MacStrip.tsx +33 -0
- package/src/features/layouts/chrome/constants.ts +36 -8
- package/src/features/layouts/chrome/index.ts +8 -0
- package/src/features/layouts/chrome/stripDragMap.ts +35 -0
- package/src/features/layouts/chrome/stripNoDrag.spec.tsx +103 -0
- package/src/features/layouts/chrome/useScrollHideChrome.ts +3 -8
- package/src/features/layouts/chrome/viewport.ts +11 -4
- package/src/features/layouts/filterNavigationForAuthState.spec.ts +5 -3
- package/src/features/layouts/floating/FloatingBottomDock.tsx +263 -43
- package/src/features/layouts/floating/FloatingLayout.tsx +14 -8
- package/src/features/layouts/floating/FloatingSidebar.tsx +178 -81
- package/src/features/layouts/floating/computeFloatingInsets.ts +22 -4
- package/src/features/layouts/floating/moreSections.spec.ts +28 -0
- package/src/features/layouts/floating/moreSections.ts +31 -0
- package/src/features/layouts/floating/useFloatingChrome.ts +3 -1
- package/src/features/layouts/floating/useSoftKeyboard.spec.ts +39 -0
- package/src/features/layouts/floating/useSoftKeyboard.ts +82 -0
- package/src/features/layouts/fullscreen/FullscreenLayout.spec.tsx +68 -0
- package/src/features/layouts/fullscreen/FullscreenLayout.tsx +47 -10
- package/src/features/layouts/sidebar/NavigationContent.tsx +17 -9
- package/src/features/layouts/sidebar/SidebarIcons.tsx +70 -9
- package/src/features/layouts/sidebar/SidebarInner.spec.tsx +149 -0
- package/src/features/layouts/sidebar/SidebarInner.tsx +103 -43
- package/src/features/layouts/sidebar/SidebarLayout.tsx +24 -17
- package/src/features/layouts/utils.ts +4 -3
- package/src/features/layouts/windows/DesktopDots.tsx +76 -0
- package/src/features/layouts/windows/WindowsLayout.tsx +265 -160
- package/src/features/layouts/windows/deskDots.spec.ts +54 -0
- package/src/features/layouts/windows/deskDots.ts +314 -0
- package/src/features/overlays/ResponsiveModal.tsx +5 -3
- package/src/features/overlays/overlaySize.spec.ts +56 -16
- package/src/features/overlays/overlaySize.ts +114 -31
- package/src/features/overlays/phoneDrawerAnchoring.spec.ts +187 -0
- package/src/features/overlays/useOverlayReportedSize.ts +8 -3
- package/src/features/theme/applyTheme.ts +8 -0
- package/src/features/theme/navContrast.spec.ts +49 -0
- package/src/features/theme/navContrast.ts +108 -0
- package/src/i18n/translations/en/common.json +26 -0
- package/src/i18n/translations/fr/common.json +26 -0
- package/src/index.css +1156 -77
- package/src/service-worker/devCaches.spec.ts +32 -0
- package/src/service-worker/devCaches.ts +27 -0
- package/src/service-worker/sw-dev.ts +23 -23
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"userFallback": "User",
|
|
25
25
|
"goToLoginAriaLabel": "Go to login",
|
|
26
26
|
"openAccountMenuAriaLabel": "Open account menu for {{name}}",
|
|
27
|
+
"openAccountMenuWithEmailAriaLabel": "Open account menu for {{name}}, {{email}}",
|
|
27
28
|
"loadingAccount": "Loading account…",
|
|
28
29
|
"backToHome": "Back to home"
|
|
29
30
|
},
|
|
@@ -155,5 +156,30 @@
|
|
|
155
156
|
"navigation": "Navigation",
|
|
156
157
|
"openNavigation": "Open navigation",
|
|
157
158
|
"more": "More"
|
|
159
|
+
},
|
|
160
|
+
"shellChrome": {
|
|
161
|
+
"externalLink": "Opens in a new tab",
|
|
162
|
+
"mainNav": "Main",
|
|
163
|
+
"accountNav": "Account",
|
|
164
|
+
"toggleSidebar": "Toggle sidebar",
|
|
165
|
+
"resizeSidebar": "Resize sidebar",
|
|
166
|
+
"dragToResize": "Drag to resize",
|
|
167
|
+
"collapseSidebar": "Collapse sidebar",
|
|
168
|
+
"expandSidebar": "Expand sidebar",
|
|
169
|
+
"closeMenu": "Close menu",
|
|
170
|
+
"unreadCount": "{{count}} unread",
|
|
171
|
+
"sheetDescription": "Main navigation and account links"
|
|
172
|
+
},
|
|
173
|
+
"windows": {
|
|
174
|
+
"applications": "Applications",
|
|
175
|
+
"chooseApp": "Choose an app to open in a window",
|
|
176
|
+
"noApps": "No applications available",
|
|
177
|
+
"maximize": "Maximize",
|
|
178
|
+
"restore": "Restore",
|
|
179
|
+
"close": "Close",
|
|
180
|
+
"taskbar": "Taskbar",
|
|
181
|
+
"openApps": "Open windows",
|
|
182
|
+
"start": "Start",
|
|
183
|
+
"open": "Open"
|
|
158
184
|
}
|
|
159
185
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"userFallback": "Utilisateur",
|
|
25
25
|
"goToLoginAriaLabel": "Aller à la connexion",
|
|
26
26
|
"openAccountMenuAriaLabel": "Ouvrir le menu du compte pour {{name}}",
|
|
27
|
+
"openAccountMenuWithEmailAriaLabel": "Ouvrir le menu du compte pour {{name}}, {{email}}",
|
|
27
28
|
"loadingAccount": "Chargement du compte…",
|
|
28
29
|
"backToHome": "Retour à l'accueil"
|
|
29
30
|
},
|
|
@@ -155,5 +156,30 @@
|
|
|
155
156
|
"navigation": "Navigation",
|
|
156
157
|
"openNavigation": "Ouvrir la navigation",
|
|
157
158
|
"more": "Plus"
|
|
159
|
+
},
|
|
160
|
+
"shellChrome": {
|
|
161
|
+
"externalLink": "S'ouvre dans un nouvel onglet",
|
|
162
|
+
"mainNav": "Principal",
|
|
163
|
+
"accountNav": "Compte",
|
|
164
|
+
"toggleSidebar": "Afficher ou masquer la barre latérale",
|
|
165
|
+
"resizeSidebar": "Redimensionner la barre latérale",
|
|
166
|
+
"dragToResize": "Faire glisser pour redimensionner",
|
|
167
|
+
"collapseSidebar": "Réduire la barre latérale",
|
|
168
|
+
"expandSidebar": "Développer la barre latérale",
|
|
169
|
+
"closeMenu": "Fermer le menu",
|
|
170
|
+
"unreadCount": "{{count}} non lus",
|
|
171
|
+
"sheetDescription": "Navigation principale et liens du compte"
|
|
172
|
+
},
|
|
173
|
+
"windows": {
|
|
174
|
+
"applications": "Applications",
|
|
175
|
+
"chooseApp": "Choisissez une application à ouvrir dans une fenêtre",
|
|
176
|
+
"noApps": "Aucune application disponible",
|
|
177
|
+
"maximize": "Agrandir",
|
|
178
|
+
"restore": "Restaurer",
|
|
179
|
+
"close": "Fermer",
|
|
180
|
+
"taskbar": "Barre des tâches",
|
|
181
|
+
"openApps": "Fenêtres ouvertes",
|
|
182
|
+
"start": "Démarrer",
|
|
183
|
+
"open": "Ouverte"
|
|
158
184
|
}
|
|
159
185
|
}
|