@upsoftware_tech/svarium 1.0.1 → 1.0.2
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 +14 -0
- package/dist/index.d.ts +181 -15
- package/dist/src/pages/Auth/Login.vue +44 -0
- package/dist/src/pages/Auth/Verification.vue +38 -0
- package/dist/svarium.css +1 -1
- package/dist/svarium.es.js +16270 -3508
- package/dist/svarium.umd.js +24 -2
- package/package.json +13 -7
- package/src/pages/Auth/Login.vue +44 -0
- package/src/pages/Auth/Verification.vue +38 -0
package/package.json
CHANGED
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
"email": "info@upSoftware.tech",
|
|
6
6
|
"url": "https://upsoftware.tech"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.2",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"bin"
|
|
12
|
+
"bin",
|
|
13
|
+
"src/pages"
|
|
13
14
|
],
|
|
14
15
|
"scripts": {
|
|
15
16
|
"dev": "vite",
|
|
@@ -27,25 +28,28 @@
|
|
|
27
28
|
"import": "./dist/svarium.es.js",
|
|
28
29
|
"require": "./dist/svarium.umd.cjs"
|
|
29
30
|
},
|
|
30
|
-
"./dist/style.css": "./dist/style.css"
|
|
31
|
+
"./dist/style.css": "./dist/style.css",
|
|
32
|
+
"./src/pages/*": "./src/pages/*"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@iconify/vue": "^5.0.0",
|
|
34
35
|
"@nuxt/devtools-kit": "^3.1.1",
|
|
35
36
|
"@nuxt/kit": "^4.2.2",
|
|
36
37
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
37
38
|
"tw-animate-css": "^1.4.0",
|
|
38
39
|
"typescript": "5.8.2",
|
|
39
40
|
"vite": "^7.3.0",
|
|
40
|
-
"vite-plugin-dts": "^4.5.4"
|
|
41
|
+
"vite-plugin-dts": "^4.5.4",
|
|
42
|
+
"vite-plugin-static-copy": "^3.1.5"
|
|
41
43
|
},
|
|
42
44
|
"peerDependencies": {
|
|
43
45
|
"@inertiajs/vue3": "^2.3.10",
|
|
44
46
|
"vue": "^3.5.26"
|
|
45
47
|
},
|
|
46
48
|
"dependencies": {
|
|
49
|
+
"@iconify/vue": "^5.0.0",
|
|
47
50
|
"@iconify/utils": "^3.1.0",
|
|
48
51
|
"@tailwindcss/vite": "^4.1.18",
|
|
52
|
+
"@tanstack/vue-table": "^8.21.3",
|
|
49
53
|
"@vueuse/core": "^14.1.0",
|
|
50
54
|
"cac": "^6.7.14",
|
|
51
55
|
"class-variance-authority": "^0.7.1",
|
|
@@ -53,8 +57,10 @@
|
|
|
53
57
|
"laravel-vue-i18n": "^2.8.0",
|
|
54
58
|
"lucide-vue-next": "^0.562.0",
|
|
55
59
|
"picocolors": "^1.1.1",
|
|
56
|
-
"reka-ui": "^2.
|
|
60
|
+
"reka-ui": "^2.8.0",
|
|
57
61
|
"tailwind-merge": "^3.4.0",
|
|
58
|
-
"tailwindcss": "^4.1.18"
|
|
62
|
+
"tailwindcss": "^4.1.18",
|
|
63
|
+
"vue-draggable-plus": "^0.6.1",
|
|
64
|
+
"vue-input-otp": "^0.3.2"
|
|
59
65
|
}
|
|
60
66
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BlockPageLogin :socials="socials" :showRegisterLink="showRegisterLink" :registerLabel="registerLabel" :registerLinkLabel="registerLinkLabel" :registerLink="registerLink" :showResetLink="showResetLink" :title="title" :subtitle="subtitle" :resetLabel="resetLabel" :submitLabel="submitLabel" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { AuthLayout, BlockPageLogin } from '@upsoftware_tech/svarium';
|
|
7
|
+
|
|
8
|
+
interface SocialLink {
|
|
9
|
+
id: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Props {
|
|
16
|
+
socials?: SocialLink[],
|
|
17
|
+
showRegisterLink?: boolean;
|
|
18
|
+
registerLabel?: string;
|
|
19
|
+
registerLinkLabel?: string;
|
|
20
|
+
registerLink?: string;
|
|
21
|
+
showResetLink?: boolean;
|
|
22
|
+
title?: string;
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
resetLabel?: string,
|
|
25
|
+
submitLabel?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
withDefaults(defineProps<Props>(), {
|
|
29
|
+
socials: () => [],
|
|
30
|
+
showRegisterLink: true,
|
|
31
|
+
registerLabel: 'If you don’t have an account',
|
|
32
|
+
registerLinkLabel: 'sign up here',
|
|
33
|
+
registerLink: '/auth/register',
|
|
34
|
+
showResetLink: true,
|
|
35
|
+
title: 'Welcome back!',
|
|
36
|
+
subtitle: 'Enter your email address and password',
|
|
37
|
+
resetLabel: 'Forgot your password?',
|
|
38
|
+
submitLabel: 'Log in with your email address'
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
defineOptions({
|
|
42
|
+
layout: AuthLayout,
|
|
43
|
+
});
|
|
44
|
+
</script>
|
|
@@ -0,0 +1,38 @@
|
|
|
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/login/method/${session}`" class="w-8 h-8 flex items-center justify-center rounded-full hover:bg-zinc-100 dark:hover:bg-zinc-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('Verification code') }}</h1>
|
|
12
|
+
<div class="text-sm">{{ $t('Enter the verification code you received') }}</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="flex flex-col gap-4">
|
|
16
|
+
<BlockFormVerification :session="session" />
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup lang="ts">
|
|
23
|
+
import { AuthLayout, BlockFormVerification } 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
|
+
session: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
withDefaults(defineProps<Props>(), {
|
|
36
|
+
session: ''
|
|
37
|
+
})
|
|
38
|
+
</script>
|