@upsoftware_tech/svarium 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "info@upSoftware.tech",
6
6
  "url": "https://upsoftware.tech"
7
7
  },
8
- "version": "1.0.2",
8
+ "version": "1.0.3",
9
9
  "type": "module",
10
10
  "files": [
11
11
  "dist",
@@ -46,11 +46,11 @@
46
46
  "vue": "^3.5.26"
47
47
  },
48
48
  "dependencies": {
49
- "@iconify/vue": "^5.0.0",
50
49
  "@iconify/utils": "^3.1.0",
50
+ "@iconify/vue": "^5.0.0",
51
51
  "@tailwindcss/vite": "^4.1.18",
52
52
  "@tanstack/vue-table": "^8.21.3",
53
- "@vueuse/core": "^14.1.0",
53
+ "@vueuse/core": "^14.2.0",
54
54
  "cac": "^6.7.14",
55
55
  "class-variance-authority": "^0.7.1",
56
56
  "clsx": "^2.1.1",
@@ -61,6 +61,7 @@
61
61
  "tailwind-merge": "^3.4.0",
62
62
  "tailwindcss": "^4.1.18",
63
63
  "vue-draggable-plus": "^0.6.1",
64
- "vue-input-otp": "^0.3.2"
64
+ "vue-input-otp": "^0.3.2",
65
+ "vue-sonner": "^2.0.9"
65
66
  }
66
67
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <BlockPageLogin :socials="socials" :showRegisterLink="showRegisterLink" :registerLabel="registerLabel" :registerLinkLabel="registerLinkLabel" :registerLink="registerLink" :showResetLink="showResetLink" :title="title" :subtitle="subtitle" :resetLabel="resetLabel" :submitLabel="submitLabel" />
2
+ <BlockPageLogin v-bind="props" />
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
@@ -22,10 +22,15 @@ interface Props {
22
22
  title?: string;
23
23
  subtitle?: string;
24
24
  resetLabel?: string,
25
- submitLabel?: string
25
+ resetLink?: string,
26
+ submitLabel?: string,
27
+ minimal?: boolean,
28
+ cols?: number,
29
+ orLabel?: string,
30
+ onlySocialName?: boolean
26
31
  }
27
32
 
28
- withDefaults(defineProps<Props>(), {
33
+ const props = withDefaults(defineProps<Props>(), {
29
34
  socials: () => [],
30
35
  showRegisterLink: true,
31
36
  registerLabel: 'If you don’t have an account',
@@ -35,7 +40,12 @@ withDefaults(defineProps<Props>(), {
35
40
  title: 'Welcome back!',
36
41
  subtitle: 'Enter your email address and password',
37
42
  resetLabel: 'Forgot your password?',
38
- submitLabel: 'Log in with your email address'
43
+ resetLink: '/auth/reset',
44
+ submitLabel: 'Log in with your email address',
45
+ minimal: false,
46
+ cols: 2,
47
+ orLabel: 'or',
48
+ onlySocialName: false
39
49
  });
40
50
 
41
51
  defineOptions({
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <BlockFormLoginMethodVerification :verification-methods="verificationMethods" :session="session" />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import type { VerificationMethod } from '@upsoftware_tech/svarium';
7
+ import { AuthLayout, BlockFormLoginMethodVerification } from '@upsoftware_tech/svarium';
8
+
9
+ interface Props {
10
+ verificationMethods?: VerificationMethod[] | Record<string, VerificationMethod>;
11
+ session: string;
12
+ }
13
+
14
+ withDefaults(defineProps<Props>(), {
15
+ verificationMethods: () => [],
16
+ session: '',
17
+ });
18
+
19
+ defineOptions({
20
+ layout: AuthLayout,
21
+ });
22
+ </script>
@@ -0,0 +1,11 @@
1
+ <template>
2
+ <BlockPageReset />
3
+ </template>
4
+
5
+ <script setup lang="ts">
6
+ import { AuthLayout, BlockPageReset } from '@upsoftware_tech/svarium';
7
+
8
+ defineOptions({
9
+ layout: AuthLayout,
10
+ });
11
+ </script>
@@ -0,0 +1,41 @@
1
+ <template>
2
+ <div class="flex flex-col gap-6">
3
+ <div class="flex flex-col gap-6">
4
+ <div class="flex gap-x-4">
5
+ <div>
6
+ <Link :href="`/auth/reset`" class="w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-100 dark:hover:bg-gray-800">
7
+ <Icon icon="lucide:chevron-left" class="text-xl" />
8
+ </Link>
9
+ </div>
10
+ <div class="flex flex-1 flex-col gap-2 pt-0.5">
11
+ <h1 class="text-xl font-bold">{{ $t(title) }}</h1>
12
+ <div class="text-sm">{{ $t(subtitle) }}</div>
13
+ </div>
14
+ </div>
15
+ <div class="flex flex-col gap-4">
16
+ <BlockFormResetPassword v-bind="$props" />
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </template>
21
+
22
+ <script setup lang="ts">
23
+ import { AuthLayout, BlockFormResetPassword } from '@upsoftware_tech/svarium';
24
+ import { Icon } from '@iconify/vue';
25
+ import { Link } from "@inertiajs/vue3";
26
+
27
+ defineOptions({
28
+ layout: AuthLayout
29
+ })
30
+
31
+ interface Props {
32
+ title?: string;
33
+ subtitle?: string;
34
+ session: string;
35
+ }
36
+
37
+ const props = withDefaults(defineProps<Props>(), {
38
+ title: 'Set a new password',
39
+ subtitle: 'Enter a new password and repeat it to confirm'
40
+ })
41
+ </script>
@@ -3,7 +3,7 @@
3
3
  <div class="flex flex-col gap-6">
4
4
  <div class="flex gap-x-4">
5
5
  <div>
6
- <Link :href="`/auth/login/method/${session}`" class="w-8 h-8 flex items-center justify-center rounded-full hover:bg-zinc-100 dark:hover:bg-zinc-800">
6
+ <Link :href="`/auth/login/method/${session}`" class="w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-100 dark:hover:bg-gray-800">
7
7
  <Icon icon="lucide:chevron-left" class="text-xl" />
8
8
  </Link>
9
9
  </div>
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </div>
15
15
  <div class="flex flex-col gap-4">
16
- <BlockFormVerification :session="session" />
16
+ <BlockFormVerification v-bind="$props" />
17
17
  </div>
18
18
  </div>
19
19
  </div>
@@ -29,10 +29,11 @@ defineOptions({
29
29
  })
30
30
 
31
31
  interface Props {
32
+ type: 'login' | 'register' | 'reset';
32
33
  session: string
33
34
  }
34
35
 
35
- withDefaults(defineProps<Props>(), {
36
+ const props = withDefaults(defineProps<Props>(), {
36
37
  session: ''
37
38
  })
38
39
  </script>