diff --git a/apps/chat/apps/web/src/routes/(auth)/+layout.svelte b/apps/chat/apps/web/src/routes/(auth)/+layout.svelte index 138139a34..a54cfdcb7 100644 --- a/apps/chat/apps/web/src/routes/(auth)/+layout.svelte +++ b/apps/chat/apps/web/src/routes/(auth)/+layout.svelte @@ -2,8 +2,4 @@ let { children } = $props(); -
-
- {@render children()} -
-
+{@render children()} diff --git a/packages/shared-auth-ui/package.json b/packages/shared-auth-ui/package.json index e3f369adb..388a75490 100644 --- a/packages/shared-auth-ui/package.json +++ b/packages/shared-auth-ui/package.json @@ -18,7 +18,8 @@ ], "peerDependencies": { "svelte": "^5.0.0", - "@manacore/shared-auth": "workspace:*" + "@manacore/shared-auth": "workspace:*", + "@manacore/shared-icons": "workspace:*" }, "devDependencies": { "svelte": "^5.16.0", diff --git a/packages/shared-auth-ui/src/components/Icon.svelte b/packages/shared-auth-ui/src/components/Icon.svelte deleted file mode 100644 index 808ea0a04..000000000 --- a/packages/shared-auth-ui/src/components/Icon.svelte +++ /dev/null @@ -1,30 +0,0 @@ - - -{#if path} - -{:else} - -{/if} diff --git a/packages/shared-auth-ui/src/icons/iconPaths.ts b/packages/shared-auth-ui/src/icons/iconPaths.ts deleted file mode 100644 index 1e3dd0764..000000000 --- a/packages/shared-auth-ui/src/icons/iconPaths.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Phosphor Icons (Bold weight) SVG paths - * Only includes icons used in auth UI - */ -export const iconPaths = { - 'user-plus': - '', - - 'sign-in': - '', - - eye: '', - - 'eye-off': - '', - - key: '', - - 'arrow-left': - '', - - info: '', - - 'mail-open': - '', - - lock: '', - - 'shield-check': - '', - - 'arrows-left-right': - '', - - envelope: - '', - - folder: - '', - - music: - '', - - refresh: - '', - - check: - '', - - warning: - '', -} as const; - -export type IconName = keyof typeof iconPaths; diff --git a/packages/shared-auth-ui/src/index.ts b/packages/shared-auth-ui/src/index.ts index 06508260b..f90f2aa60 100644 --- a/packages/shared-auth-ui/src/index.ts +++ b/packages/shared-auth-ui/src/index.ts @@ -4,7 +4,6 @@ export { default as RegisterPage } from './pages/RegisterPage.svelte'; export { default as ForgotPasswordPage } from './pages/ForgotPasswordPage.svelte'; // Components -export { default as Icon } from './components/Icon.svelte'; export { default as GoogleSignInButton } from './components/GoogleSignInButton.svelte'; export { default as AppleSignInButton } from './components/AppleSignInButton.svelte'; @@ -30,12 +29,9 @@ export { } from './utils/appleAuth'; // Types -export type { AuthUIConfig, AuthServiceInterface, AuthResult, IconName } from './types'; +export type { AuthUIConfig, AuthServiceInterface, AuthResult } from './types'; // Page Translation Types export type { LoginTranslations } from './pages/LoginPage.svelte'; export type { RegisterTranslations } from './pages/RegisterPage.svelte'; export type { ForgotPasswordTranslations } from './pages/ForgotPasswordPage.svelte'; - -// Icon paths -export { iconPaths } from './icons/iconPaths'; diff --git a/packages/shared-auth-ui/src/pages/ForgotPasswordPage.svelte b/packages/shared-auth-ui/src/pages/ForgotPasswordPage.svelte index 4b5ec20b7..30c293430 100644 --- a/packages/shared-auth-ui/src/pages/ForgotPasswordPage.svelte +++ b/packages/shared-auth-ui/src/pages/ForgotPasswordPage.svelte @@ -1,7 +1,7 @@ -
-

- {title} -

+
+

{title}

-
-
+
+
{#each apps as app, index} {/each}
@@ -159,8 +135,7 @@ {#if selectedApp !== null}
e.key === 'Escape' && closeModal()} role="dialog" @@ -169,37 +144,24 @@ >
-
+