@upsoftware_tech/svarium 1.0.0 → 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 ADDED
@@ -0,0 +1,15 @@
1
+ resolve: (name) => {
2
+ const localPages = import.meta.glob('./pages/**/*.vue', { eager: true });
3
+ const vendorPages = import.meta.glob('../../node_modules/@upsoftware_tech/svarium/src/pages/**/*.vue', { eager: true });
4
+ let page = localPages[`./pages/${name}.vue`];
5
+ if (!page) {
6
+ page = vendorPages[`../../node_modules/@upsoftware_tech/svarium/src/pages/${name}.vue`];
7
+ }
8
+ if (!page) {
9
+ throw new Error(`Page not found: ${name}`);
10
+ }
11
+ page.default.layout = page.default.layout || AppLayout;
12
+ return page;
13
+ },
14
+
15
+ @source "../../node_modules/@upsoftware_tech/svarium/dist/**/*.{js,mjs,vue}";
@@ -0,0 +1,519 @@
1
+ import { AsTag } from 'reka-ui';
2
+ import { ClassProp } from 'class-variance-authority/dist/types';
3
+ import { Component } from 'vue';
4
+ import { ComponentOptionsMixin } from 'vue';
5
+ import { ComponentProvideOptions } from 'vue';
6
+ import { ComputedRef } from 'vue';
7
+ import { DefineComponent } from 'vue';
8
+ import { ExtractPropTypes } from 'vue';
9
+ import { HTMLAttributes } from 'vue';
10
+ import { Icon } from '@iconify/vue';
11
+ import { Plugin as Plugin_2 } from 'vue';
12
+ import { PrimitiveProps } from 'reka-ui';
13
+ import { PublicProps } from 'vue';
14
+ import { Ref } from 'vue';
15
+ import { VariantProps } from 'class-variance-authority';
16
+
17
+ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
18
+ as: AsTag | Component;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
20
+
21
+ declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
22
+
23
+ declare const __VLS_component_3: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
24
+ action: string;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
26
+
27
+ declare const __VLS_component_4: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {
28
+ label: string;
29
+ name: string;
30
+ hint: string;
31
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
32
+
33
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
34
+ "update:modelValue": (value: string | number) => any;
35
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
36
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
37
+ }>, {
38
+ label: string;
39
+ type: string;
40
+ placeholder: string;
41
+ name: string;
42
+ hint: string;
43
+ password: boolean;
44
+ addon: string;
45
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
46
+
47
+ declare const __VLS_component_6: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
48
+
49
+ declare const __VLS_component_7: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
50
+ label: string;
51
+ name: string;
52
+ hint: string;
53
+ value: string | number | boolean;
54
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
55
+
56
+ declare const __VLS_component_8: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
57
+ offset: number;
58
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
59
+ sidebar: HTMLDivElement;
60
+ sidebar_header: HTMLDivElement;
61
+ sidebar_content: HTMLDivElement;
62
+ sidebar_bottom: HTMLDivElement;
63
+ sidebar_footer: HTMLDivElement;
64
+ }, any>;
65
+
66
+ declare const __VLS_component_9: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
67
+
68
+ declare type __VLS_Props = Props_4;
69
+
70
+ declare type __VLS_PublicProps = {
71
+ modelValue?: string | number;
72
+ } & __VLS_Props;
73
+
74
+ declare function __VLS_template(): {
75
+ attrs: Partial<{}>;
76
+ slots: {
77
+ default?(_: {}): any;
78
+ };
79
+ refs: {};
80
+ rootEl: any;
81
+ };
82
+
83
+ declare function __VLS_template_2(): {
84
+ attrs: Partial<{}>;
85
+ slots: {
86
+ default?(_: {}): any;
87
+ };
88
+ refs: {};
89
+ rootEl: any;
90
+ };
91
+
92
+ declare function __VLS_template_3(): {
93
+ attrs: Partial<{}>;
94
+ slots: {
95
+ default?(_: {}): any;
96
+ };
97
+ refs: {};
98
+ rootEl: any;
99
+ };
100
+
101
+ declare function __VLS_template_4(): {
102
+ attrs: Partial<{}>;
103
+ slots: {
104
+ default?(_: {
105
+ hasError: boolean;
106
+ }): any;
107
+ footer?(_: {}): any;
108
+ };
109
+ refs: {};
110
+ rootEl: HTMLDivElement;
111
+ };
112
+
113
+ declare function __VLS_template_5(): {
114
+ attrs: Partial<{}>;
115
+ slots: {
116
+ addon?(_: {}): any;
117
+ footer?(_: {}): any;
118
+ };
119
+ refs: {};
120
+ rootEl: any;
121
+ };
122
+
123
+ declare function __VLS_template_6(): {
124
+ attrs: Partial<{}>;
125
+ slots: {
126
+ default?(_: {}): any;
127
+ };
128
+ refs: {};
129
+ rootEl: HTMLDivElement;
130
+ };
131
+
132
+ declare function __VLS_template_7(): {
133
+ attrs: Partial<{}>;
134
+ slots: {
135
+ default?(_: {}): any;
136
+ };
137
+ refs: {};
138
+ rootEl: HTMLDivElement;
139
+ };
140
+
141
+ declare function __VLS_template_8(): {
142
+ attrs: Partial<{}>;
143
+ slots: {
144
+ header?(_: {}): any;
145
+ bottom?(_: {}): any;
146
+ footer?(_: {}): any;
147
+ };
148
+ refs: {
149
+ sidebar: HTMLDivElement;
150
+ sidebar_header: HTMLDivElement;
151
+ sidebar_content: HTMLDivElement;
152
+ sidebar_bottom: HTMLDivElement;
153
+ sidebar_footer: HTMLDivElement;
154
+ };
155
+ rootEl: any;
156
+ };
157
+
158
+ declare function __VLS_template_9(): {
159
+ attrs: Partial<{}>;
160
+ slots: {
161
+ default?(_: {}): any;
162
+ };
163
+ refs: {};
164
+ rootEl: any;
165
+ };
166
+
167
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
168
+
169
+ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
170
+
171
+ declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
172
+
173
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
174
+
175
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
176
+
177
+ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
178
+
179
+ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
180
+
181
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
182
+
183
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
184
+
185
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
186
+ new (): {
187
+ $slots: S;
188
+ };
189
+ };
190
+
191
+ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
192
+ new (): {
193
+ $slots: S;
194
+ };
195
+ };
196
+
197
+ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
198
+ new (): {
199
+ $slots: S;
200
+ };
201
+ };
202
+
203
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
204
+ new (): {
205
+ $slots: S;
206
+ };
207
+ };
208
+
209
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
210
+ new (): {
211
+ $slots: S;
212
+ };
213
+ };
214
+
215
+ declare type __VLS_WithTemplateSlots_6<T, S> = T & {
216
+ new (): {
217
+ $slots: S;
218
+ };
219
+ };
220
+
221
+ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
222
+ new (): {
223
+ $slots: S;
224
+ };
225
+ };
226
+
227
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
228
+ new (): {
229
+ $slots: S;
230
+ };
231
+ };
232
+
233
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
234
+ new (): {
235
+ $slots: S;
236
+ };
237
+ };
238
+
239
+ export declare const AuthLayout: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
240
+
241
+ export declare const BlockFormLogin: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_5> & Readonly<{}>, {
242
+ action: string;
243
+ showResetLink: boolean;
244
+ resetLabel: string;
245
+ submitLabel: string;
246
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
247
+
248
+ export declare const BlockFormLoginMethodVerification: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
249
+ verificationMethods: VerificationMethod[] | Record<string, VerificationMethod>;
250
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
251
+
252
+ export declare const BlockFormVerification: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
253
+ session: string;
254
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
255
+
256
+ export declare const BlockPageLogin: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
257
+ title: string;
258
+ showResetLink: boolean;
259
+ resetLabel: string;
260
+ submitLabel: string;
261
+ socials: SocialLink[];
262
+ showRegisterLink: boolean;
263
+ registerLabel: string;
264
+ registerLinkLabel: string;
265
+ registerLink: string;
266
+ subtitle: string;
267
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
268
+
269
+ export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
270
+
271
+ export declare const ButtonClear: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
272
+
273
+ export declare const ButtonIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
274
+
275
+ export declare const ButtonSubmit: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
276
+
277
+ declare type ButtonVariants = VariantProps<typeof buttonVariants>;
278
+
279
+ declare const buttonVariants: (props?: ({
280
+ variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
281
+ size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
282
+ } & ClassProp) | undefined) => string;
283
+
284
+ export declare const Form: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
285
+
286
+ export declare const FormControl: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
287
+
288
+ export declare const FormError: DefineComponent<ExtractPropTypes< {
289
+ errors: {
290
+ type: (ObjectConstructor | StringConstructor)[];
291
+ };
292
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
293
+ errors: {
294
+ type: (ObjectConstructor | StringConstructor)[];
295
+ };
296
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLUListElement>;
297
+
298
+ export { Icon }
299
+
300
+ export declare const Input: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
301
+
302
+ export declare type LogoConfig = string | {
303
+ default: ThemeableSrc;
304
+ small?: ThemeableSrc;
305
+ };
306
+
307
+ export declare const NavigationVertical: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
308
+
309
+ declare interface OptionGroup {
310
+ label: string;
311
+ items: OptionItem[];
312
+ }
313
+
314
+ declare interface OptionItem {
315
+ id?: string | number;
316
+ name?: string;
317
+ label?: string;
318
+ icon?: string;
319
+ value?: string | number;
320
+ }
321
+
322
+ export declare const Pin: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_10> & Readonly<{}>, {
323
+ label: string;
324
+ name: string;
325
+ hint: string;
326
+ maxlength: number;
327
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
328
+
329
+ declare const plugin: Plugin_2<[SvariumOptions]>;
330
+ export default plugin;
331
+
332
+ declare interface Props extends PrimitiveProps {
333
+ variant?: ButtonVariants["variant"];
334
+ size?: ButtonVariants["size"];
335
+ class?: HTMLAttributes["class"];
336
+ }
337
+
338
+ declare interface Props_10 {
339
+ name?: string;
340
+ maxlength?: number;
341
+ hint?: string;
342
+ label?: string;
343
+ }
344
+
345
+ declare interface Props_11 {
346
+ uri?: string;
347
+ data?: any;
348
+ columns?: any;
349
+ rows?: any;
350
+ }
351
+
352
+ declare interface Props_12 {
353
+ placeholder?: string;
354
+ options?: OptionItem[] | OptionGroup[];
355
+ name?: string;
356
+ hint?: string;
357
+ label?: string;
358
+ clear?: boolean;
359
+ modelValue?: any;
360
+ }
361
+
362
+ declare interface Props_13 {
363
+ navigation_id: string | number;
364
+ offset: number;
365
+ }
366
+
367
+ declare interface Props_14 {
368
+ navigation_id: string | number;
369
+ }
370
+
371
+ declare interface Props_2 {
372
+ action: string;
373
+ }
374
+
375
+ declare interface Props_3 {
376
+ name?: string;
377
+ label?: string;
378
+ hint?: string;
379
+ }
380
+
381
+ declare interface Props_4 {
382
+ name?: string;
383
+ type?: string;
384
+ password?: boolean;
385
+ label?: string;
386
+ hint?: string;
387
+ placeholder?: string;
388
+ addon?: string;
389
+ }
390
+
391
+ declare interface Props_5 {
392
+ action?: string;
393
+ showResetLink?: boolean;
394
+ resetLabel?: string;
395
+ submitLabel?: string;
396
+ }
397
+
398
+ declare interface Props_6 {
399
+ verificationMethods?: VerificationMethod[] | Record<string, VerificationMethod>;
400
+ session: string;
401
+ }
402
+
403
+ declare interface Props_7 {
404
+ session: string;
405
+ }
406
+
407
+ declare interface Props_8 {
408
+ socials?: SocialLink[];
409
+ showRegisterLink?: boolean;
410
+ registerLabel?: string;
411
+ registerLinkLabel?: string;
412
+ registerLink?: string;
413
+ showResetLink?: boolean;
414
+ title?: string;
415
+ subtitle?: string;
416
+ resetLabel?: string;
417
+ submitLabel?: string;
418
+ }
419
+
420
+ declare interface Props_9 {
421
+ value?: string | number | boolean;
422
+ name: string;
423
+ label?: string;
424
+ hint?: string;
425
+ }
426
+
427
+ export declare const Radio: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
428
+
429
+ export declare const ScrollArea: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
430
+
431
+ export declare const Select: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
432
+ "update:modelValue": (...args: any[]) => void;
433
+ }, string, PublicProps, Readonly<Props_12> & Readonly<{
434
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
435
+ }>, {
436
+ options: OptionItem[] | OptionGroup[];
437
+ placeholder: string;
438
+ clear: boolean;
439
+ modelValue: any;
440
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
441
+
442
+ export declare const Sidebar: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
443
+
444
+ export declare const SidebarToggle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
445
+
446
+ export declare const SidebarUser: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
447
+
448
+ declare interface SocialLink {
449
+ id: string;
450
+ url?: string;
451
+ label: string;
452
+ icon: string;
453
+ }
454
+
455
+ export declare interface SvariumOptions {
456
+ prefix?: string;
457
+ i18n?: any;
458
+ logo?: LogoConfig;
459
+ }
460
+
461
+ export declare interface SvariumState {
462
+ forms: Record<string, any>;
463
+ color: string;
464
+ menus: Record<string, any>;
465
+ logo?: LogoConfig;
466
+ }
467
+
468
+ export declare const Table: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
469
+ tableRef: HTMLDivElement;
470
+ }, HTMLDivElement>;
471
+
472
+ export declare type ThemeableSrc = string | {
473
+ light: string;
474
+ dark: string;
475
+ };
476
+
477
+ export declare function (): {
478
+ state: SvariumState;
479
+ logo: ComputedRef< {
480
+ default: {
481
+ light: string;
482
+ dark: string;
483
+ };
484
+ small: {
485
+ light: string;
486
+ dark: string;
487
+ };
488
+ }>;
489
+ getLogo: (variant: "default" | "small", mode: "light" | "dark") => string;
490
+ };
491
+
492
+ /**
493
+ * useUniqueId composable
494
+ * -----------------------
495
+ * Tworzy unikalny identyfikator, np. dla elementów formularzy, label-for, ARIA itp.
496
+ * Działa bezpiecznie po stronie klienta (SSR-safe) i korzysta z crypto.randomUUID() jeśli dostępne.
497
+ *
498
+ * @param prefix - prefiks dla id (np. "input-", "checkbox-", "dialog-")
499
+ * @param providedId - opcjonalne id z zewnątrz (jeśli komponent ma własne id)
500
+ * @returns Ref<string> z unikalnym id
501
+ */
502
+ export declare function (prefix?: string, providedId?: string): Ref<string, string>;
503
+
504
+ export declare interface VerificationMethod {
505
+ id: string;
506
+ label: string;
507
+ description: string;
508
+ disabled: boolean;
509
+ }
510
+
511
+ export { }
512
+
513
+
514
+ declare module '@tanstack/vue-table' {
515
+ interface ColumnMeta<TData extends RowData, TValue> {
516
+ type?: 'string' | 'int' | 'bool' | 'select';
517
+ options?: OptionItem[];
518
+ }
519
+ }
@@ -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>