@upsoftware_tech/svarium 1.0.4 → 1.0.5
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/dist/index.d.ts +100 -50
- package/dist/src/pages/Auth/Login.vue +2 -2
- package/dist/src/pages/Auth/ResetPassword.vue +1 -1
- package/dist/src/pages/Auth/Verification.vue +11 -1
- package/dist/svarium.css +1 -1
- package/dist/svarium.es.js +5556 -4872
- package/dist/svarium.umd.js +4 -4
- package/package.json +4 -3
- package/src/pages/Auth/Login.vue +2 -2
- package/src/pages/Auth/ResetPassword.vue +1 -1
- package/src/pages/Auth/Verification.vue +11 -1
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.
|
|
8
|
+
"version": "1.0.5",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"@nuxt/devtools-kit": "^3.1.1",
|
|
36
36
|
"@nuxt/kit": "^4.2.2",
|
|
37
37
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
38
|
-
"tw-animate-css": "^1.4.0",
|
|
39
38
|
"typescript": "5.8.2",
|
|
40
39
|
"vite": "^7.3.0",
|
|
41
40
|
"vite-plugin-dts": "^4.5.4",
|
|
@@ -60,8 +59,10 @@
|
|
|
60
59
|
"reka-ui": "^2.8.0",
|
|
61
60
|
"tailwind-merge": "^3.4.0",
|
|
62
61
|
"tailwindcss": "^4.1.18",
|
|
62
|
+
"tw-animate-css": "^1.4.0",
|
|
63
63
|
"vue-draggable-plus": "^0.6.1",
|
|
64
64
|
"vue-input-otp": "^0.3.2",
|
|
65
|
-
"vue-sonner": "^2.0.9"
|
|
65
|
+
"vue-sonner": "^2.0.9",
|
|
66
|
+
"ziggy-js": "^2.6.0"
|
|
66
67
|
}
|
|
67
68
|
}
|
package/src/pages/Auth/Login.vue
CHANGED
|
@@ -35,12 +35,12 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
35
35
|
showRegisterLink: true,
|
|
36
36
|
registerLabel: 'If you don’t have an account',
|
|
37
37
|
registerLinkLabel: 'sign up here',
|
|
38
|
-
registerLink: '
|
|
38
|
+
registerLink: 'panel.auth.register',
|
|
39
39
|
showResetLink: true,
|
|
40
40
|
title: 'Welcome back!',
|
|
41
41
|
subtitle: 'Enter your email address and password',
|
|
42
42
|
resetLabel: 'Forgot your password?',
|
|
43
|
-
resetLink: '
|
|
43
|
+
resetLink: 'panel.auth.reset',
|
|
44
44
|
submitLabel: 'Log in with your email address',
|
|
45
45
|
minimal: false,
|
|
46
46
|
cols: 2,
|
|
@@ -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="
|
|
6
|
+
<Link :href="route('panel.auth.reset')" 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>
|
|
@@ -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="
|
|
6
|
+
<Link :href="route(routeName.name, routeName.params)" 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>
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
import { AuthLayout, BlockFormVerification } from '@upsoftware_tech/svarium';
|
|
24
24
|
import { Icon } from '@iconify/vue';
|
|
25
25
|
import { Link } from "@inertiajs/vue3";
|
|
26
|
+
import {computed} from "vue";
|
|
26
27
|
|
|
27
28
|
defineOptions({
|
|
28
29
|
layout: AuthLayout
|
|
@@ -38,4 +39,13 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
38
39
|
session: '',
|
|
39
40
|
remember: false
|
|
40
41
|
})
|
|
42
|
+
|
|
43
|
+
const routeName = computed(() => {
|
|
44
|
+
if (props.type === 'login') {
|
|
45
|
+
return {name: 'panel.auth.method', params: { type: 'login', userAuth: props.session}};
|
|
46
|
+
} else if (props.type === 'reset') {
|
|
47
|
+
return {name: 'panel.auth.reset', params: {}};
|
|
48
|
+
}
|
|
49
|
+
return {name: 'panel.auth.login', params: {}};
|
|
50
|
+
})
|
|
41
51
|
</script>
|