@upsoftware_tech/svarium 1.0.3 → 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 CHANGED
@@ -16,33 +16,31 @@ import { VariantProps } from 'class-variance-authority';
16
16
 
17
17
  declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
18
18
 
19
- declare const __VLS_component_10: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
20
-
21
- declare const __VLS_component_11: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_18> & Readonly<{}>, {
19
+ declare const __VLS_component_10: DefineComponent<Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_21> & Readonly<{}>, {
22
20
  right: boolean;
23
21
  left: boolean;
24
22
  orientation: "horizontal" | "vertical";
25
23
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
24
 
27
- declare const __VLS_component_2: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
25
+ declare const __VLS_component_2: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
28
26
  as: AsTag | Component;
29
27
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
30
28
 
31
29
  declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
32
30
 
33
- declare const __VLS_component_4: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {
31
+ declare const __VLS_component_4: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
34
32
  action: string;
35
33
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
36
34
 
37
- declare const __VLS_component_5: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
35
+ declare const __VLS_component_5: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_5> & Readonly<{}>, {
38
36
  label: string;
39
37
  name: string;
40
38
  hint: string;
41
39
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
42
40
 
43
- declare const __VLS_component_6: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
41
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
44
42
  "update:modelValue": (value: string | number) => any;
45
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
43
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
46
44
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
47
45
  }>, {
48
46
  copy: boolean;
@@ -61,29 +59,27 @@ showPasswordRequired: boolean;
61
59
 
62
60
  declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
63
61
 
64
- declare const __VLS_component_8: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
62
+ declare const __VLS_component_8: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
65
63
  label: string;
66
64
  name: string;
67
65
  value: string | number | boolean;
68
66
  hint: string;
69
67
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
70
68
 
71
- declare const __VLS_component_9: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_17> & Readonly<{}>, {
72
- offset: number;
73
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
74
- sidebar: HTMLDivElement;
75
- sidebar_header: HTMLDivElement;
76
- sidebar_content: HTMLDivElement;
77
- sidebar_bottom: HTMLDivElement;
78
- sidebar_footer: HTMLDivElement;
79
- }, any>;
69
+ declare const __VLS_component_9: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
70
+
71
+ declare type __VLS_Props = Props;
80
72
 
81
- declare type __VLS_Props = Props_5;
73
+ declare type __VLS_Props_2 = Props_6;
82
74
 
83
75
  declare type __VLS_PublicProps = {
84
- modelValue?: string | number;
76
+ modelValue?: boolean;
85
77
  } & __VLS_Props;
86
78
 
79
+ declare type __VLS_PublicProps_2 = {
80
+ modelValue?: string | number;
81
+ } & __VLS_Props_2;
82
+
87
83
  declare function __VLS_template(): {
88
84
  attrs: Partial<{}>;
89
85
  slots: {
@@ -94,15 +90,6 @@ declare function __VLS_template(): {
94
90
  };
95
91
 
96
92
  declare function __VLS_template_10(): {
97
- attrs: Partial<{}>;
98
- slots: {
99
- default?(_: {}): any;
100
- };
101
- refs: {};
102
- rootEl: any;
103
- };
104
-
105
- declare function __VLS_template_11(): {
106
93
  attrs: Partial<{}>;
107
94
  slots: {
108
95
  default?(_: {}): any;
@@ -181,17 +168,9 @@ declare function __VLS_template_8(): {
181
168
  declare function __VLS_template_9(): {
182
169
  attrs: Partial<{}>;
183
170
  slots: {
184
- header?(_: {}): any;
185
- bottom?(_: {}): any;
186
- footer?(_: {}): any;
187
- };
188
- refs: {
189
- sidebar: HTMLDivElement;
190
- sidebar_header: HTMLDivElement;
191
- sidebar_content: HTMLDivElement;
192
- sidebar_bottom: HTMLDivElement;
193
- sidebar_footer: HTMLDivElement;
171
+ default?(_: {}): any;
194
172
  };
173
+ refs: {};
195
174
  rootEl: any;
196
175
  };
197
176
 
@@ -199,8 +178,6 @@ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
199
178
 
200
179
  declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
201
180
 
202
- declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
203
-
204
181
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
205
182
 
206
183
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -229,12 +206,6 @@ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
229
206
  };
230
207
  };
231
208
 
232
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
233
- new (): {
234
- $slots: S;
235
- };
236
- };
237
-
238
209
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
239
210
  new (): {
240
211
  $slots: S;
@@ -285,9 +256,16 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
285
256
 
286
257
  export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
287
258
 
259
+ export declare const Aside: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
260
+
261
+ declare interface AsideConfig {
262
+ enabled: boolean;
263
+ width?: number;
264
+ }
265
+
288
266
  export declare const AuthLayout: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
289
267
 
290
- export declare const BlockFormLogin: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
268
+ export declare const BlockFormLogin: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
291
269
  action: string;
292
270
  showResetLink: boolean;
293
271
  resetLabel: string;
@@ -295,25 +273,26 @@ resetLink: string;
295
273
  submitLabel: string;
296
274
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
297
275
 
298
- export declare const BlockFormLoginMethodVerification: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_10> & Readonly<{}>, {
276
+ export declare const BlockFormLoginMethodVerification: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_11> & Readonly<{}>, {
299
277
  verificationMethods: VerificationMethod[] | Record<string, VerificationMethod>;
300
278
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
301
279
 
302
- export declare const BlockFormReset: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
280
+ export declare const BlockFormReset: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
303
281
  action: string;
304
282
  submitLabel: string;
305
283
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
306
284
 
307
- export declare const BlockFormResetPassword: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
285
+ export declare const BlockFormResetPassword: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
308
286
  action: string;
309
287
  submitLabel: string;
310
288
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
311
289
 
312
- export declare const BlockFormVerification: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_11> & Readonly<{}>, {
290
+ export declare const BlockFormVerification: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
313
291
  session: string;
292
+ remember: boolean;
314
293
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
315
294
 
316
- export declare const BlockPageLogin: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
295
+ export declare const BlockPageLogin: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
317
296
  title: string;
318
297
  minimal: boolean;
319
298
  showResetLink: boolean;
@@ -331,7 +310,7 @@ orLabel: string;
331
310
  onlySocialName: boolean;
332
311
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
333
312
 
334
- export declare const BlockPageReset: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
313
+ export declare const BlockPageReset: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_10> & Readonly<{}>, {
335
314
  title: string;
336
315
  subtitle: string;
337
316
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -351,14 +330,21 @@ declare const buttonVariants: (props?: ({
351
330
  size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
352
331
  } & ClassProp) | undefined) => string;
353
332
 
354
- export declare const ColorMode: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
333
+ export declare const ColorMode: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
355
334
 
356
335
  declare type ColorModeVariants = VariantProps<typeof colorModeVariants>;
357
336
 
358
337
  declare const colorModeVariants: (props?: ({
359
- variant?: "default" | "switch" | "group" | "dropdown" | null | undefined;
338
+ variant?: "default" | "switch" | "dropdown" | "group" | null | undefined;
360
339
  } & ClassProp) | undefined) => string;
361
340
 
341
+ declare interface ComponentProps {
342
+ name?: string;
343
+ props?: {
344
+ [key: string]: any;
345
+ };
346
+ }
347
+
362
348
  export declare const FlashMessage: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
363
349
 
364
350
  export declare const Form: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
@@ -386,7 +372,7 @@ export declare type LogoConfig = string | {
386
372
  small?: ThemeableSrc;
387
373
  };
388
374
 
389
- export declare const NavigationVertical: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
375
+ export declare const NavigationVertical: DefineComponent<Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
390
376
 
391
377
  declare interface OptionGroup {
392
378
  label: string;
@@ -406,7 +392,7 @@ declare interface OptionItem {
406
392
  value?: string | number;
407
393
  }
408
394
 
409
- export declare const Pin: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
395
+ export declare const Pin: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {
410
396
  label: string;
411
397
  name: string;
412
398
  hint: string;
@@ -416,23 +402,29 @@ maxlength: number;
416
402
  declare const plugin: Plugin_2<[SvariumOptions]>;
417
403
  export default plugin;
418
404
 
419
- declare interface Props extends PrimitiveProps {
420
- variant?: ButtonVariants["variant"];
421
- size?: ButtonVariants["size"];
422
- class?: HTMLAttributes["class"];
405
+ declare interface Props {
406
+ label?: string;
407
+ hint?: string;
408
+ name?: string;
423
409
  }
424
410
 
425
411
  declare interface Props_10 {
412
+ title?: string;
413
+ subtitle?: string;
414
+ }
415
+
416
+ declare interface Props_11 {
426
417
  verificationMethods?: VerificationMethod[] | Record<string, VerificationMethod>;
427
418
  session: string;
428
419
  }
429
420
 
430
- declare interface Props_11 {
421
+ declare interface Props_12 {
431
422
  type: 'login' | 'register' | 'reset';
432
423
  session: string;
424
+ remember: boolean;
433
425
  }
434
426
 
435
- declare interface Props_12 {
427
+ declare interface Props_13 {
436
428
  socials?: SocialLink[];
437
429
  showRegisterLink?: boolean;
438
430
  registerLabel?: string;
@@ -450,28 +442,28 @@ declare interface Props_12 {
450
442
  onlySocialName?: boolean;
451
443
  }
452
444
 
453
- declare interface Props_13 {
445
+ declare interface Props_14 {
454
446
  value?: string | number | boolean;
455
447
  name: string;
456
448
  label?: string;
457
449
  hint?: string;
458
450
  }
459
451
 
460
- declare interface Props_14 {
452
+ declare interface Props_15 {
461
453
  name?: string;
462
454
  maxlength?: number;
463
455
  hint?: string;
464
456
  label?: string;
465
457
  }
466
458
 
467
- declare interface Props_15 {
459
+ declare interface Props_16 {
468
460
  uri?: string;
469
461
  data?: any;
470
462
  columns?: any;
471
463
  rows?: any;
472
464
  }
473
465
 
474
- declare interface Props_16 {
466
+ declare interface Props_17 {
475
467
  placeholder?: string;
476
468
  options?: OptionItem[] | OptionGroup[];
477
469
  name?: string;
@@ -481,36 +473,54 @@ declare interface Props_16 {
481
473
  modelValue?: any;
482
474
  }
483
475
 
484
- declare interface Props_17 {
485
- navigation_id: string | number;
476
+ declare interface Props_18 {
486
477
  offset?: number;
487
478
  }
488
479
 
489
- declare interface Props_18 {
480
+ declare interface Props_19 {
481
+ themeToggle?: boolean;
482
+ locale?: boolean;
483
+ twoFactor?: boolean;
484
+ activityLog?: boolean;
485
+ logout?: boolean;
486
+ }
487
+
488
+ declare interface Props_2 extends PrimitiveProps {
489
+ variant?: ButtonVariants["variant"];
490
+ size?: ButtonVariants["size"];
491
+ class?: HTMLAttributes["class"];
492
+ }
493
+
494
+ declare interface Props_20 {
495
+ title?: string;
496
+ showBorder?: boolean;
497
+ }
498
+
499
+ declare interface Props_21 {
490
500
  orientation?: 'horizontal' | 'vertical';
491
501
  left?: boolean;
492
502
  right?: boolean;
493
503
  }
494
504
 
495
- declare interface Props_19 {
505
+ declare interface Props_22 {
496
506
  navigation_id: string | number;
497
507
  }
498
508
 
499
- declare interface Props_2 extends PrimitiveProps {
509
+ declare interface Props_3 extends PrimitiveProps {
500
510
  variant?: ColorModeVariants["variant"];
501
511
  }
502
512
 
503
- declare interface Props_3 {
513
+ declare interface Props_4 {
504
514
  action: string;
505
515
  }
506
516
 
507
- declare interface Props_4 {
517
+ declare interface Props_5 {
508
518
  name?: string;
509
519
  label?: string;
510
520
  hint?: string;
511
521
  }
512
522
 
513
- declare interface Props_5 {
523
+ declare interface Props_6 {
514
524
  name?: string;
515
525
  type?: string;
516
526
  password?: boolean;
@@ -525,7 +535,7 @@ declare interface Props_5 {
525
535
  showPasswordRequired?: boolean;
526
536
  }
527
537
 
528
- declare interface Props_6 {
538
+ declare interface Props_7 {
529
539
  action?: string;
530
540
  showResetLink?: boolean;
531
541
  resetLabel?: string;
@@ -533,29 +543,24 @@ declare interface Props_6 {
533
543
  submitLabel?: string;
534
544
  }
535
545
 
536
- declare interface Props_7 {
546
+ declare interface Props_8 {
537
547
  action?: string;
538
548
  submitLabel?: string;
539
549
  }
540
550
 
541
- declare interface Props_8 {
551
+ declare interface Props_9 {
542
552
  action?: string;
543
553
  submitLabel?: string;
544
554
  session: string;
545
555
  }
546
556
 
547
- declare interface Props_9 {
548
- title?: string;
549
- subtitle?: string;
550
- }
551
-
552
557
  export declare const Radio: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
553
558
 
554
- export declare const ScrollArea: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
559
+ export declare const ScrollArea: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
555
560
 
556
- export declare const Select: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
561
+ export declare const Select: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
557
562
  "update:modelValue": (...args: any[]) => void;
558
- }, string, PublicProps, Readonly<Props_16> & Readonly<{
563
+ }, string, PublicProps, Readonly<Props_17> & Readonly<{
559
564
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
560
565
  }>, {
561
566
  placeholder: string;
@@ -564,13 +569,63 @@ modelValue: any;
564
569
  options: OptionItem[] | OptionGroup[];
565
570
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
566
571
 
567
- export declare const Separator: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
572
+ export declare const Separator: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
573
+
574
+ export declare const Sidebar: DefineComponent<Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_18> & Readonly<{}>, {
575
+ offset: number;
576
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
577
+ sidebar_root: HTMLDivElement;
578
+ sidebar_header: HTMLDivElement;
579
+ sidebar_top: HTMLDivElement;
580
+ sidebar_content: HTMLDivElement;
581
+ sidebar_bottom: HTMLDivElement;
582
+ sidebar_footer: HTMLDivElement;
583
+ }, any>;
584
+
585
+ declare interface SidebarBottomConfig {
586
+ enabled: boolean;
587
+ component?: ComponentProps;
588
+ }
568
589
 
569
- export declare const Sidebar: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
590
+ declare interface SidebarConfig {
591
+ enabled: boolean;
592
+ width?: number;
593
+ position?: 'right' | 'left';
594
+ component?: ComponentProps;
595
+ themeToggle?: boolean;
596
+ minimal?: boolean;
597
+ header?: SidebarHeaderConfig;
598
+ footer?: SidebarFooterConfig;
599
+ top?: SidebarTopConfig;
600
+ bottom?: SidebarBottomConfig;
601
+ }
570
602
 
571
- export declare const SidebarToggle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
603
+ declare interface SidebarFooterConfig {
604
+ enabled: boolean;
605
+ component?: ComponentProps;
606
+ }
572
607
 
573
- export declare const SidebarUser: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
608
+ export declare const SidebarHeader: DefineComponent<Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_20> & Readonly<{}>, {
609
+ showBorder: boolean;
610
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
611
+
612
+ declare interface SidebarHeaderConfig {
613
+ enabled: boolean;
614
+ }
615
+
616
+ export declare const SidebarToggle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
617
+
618
+ declare interface SidebarTopConfig {
619
+ enabled: boolean;
620
+ }
621
+
622
+ export declare const SidebarUser: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_19> & Readonly<{}>, {
623
+ locale: boolean;
624
+ themeToggle: boolean;
625
+ twoFactor: boolean;
626
+ activityLog: boolean;
627
+ logout: boolean;
628
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
574
629
 
575
630
  declare interface SocialLink {
576
631
  id: string;
@@ -593,7 +648,13 @@ export declare interface SvariumState {
593
648
  logo?: LogoConfig;
594
649
  }
595
650
 
596
- export declare const Table: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
651
+ export declare const Switch: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
652
+ "update:modelValue": (value: boolean) => any;
653
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
654
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
655
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
656
+
657
+ export declare const Table: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
597
658
  tableRef: HTMLDivElement;
598
659
  }, HTMLDivElement>;
599
660
 
@@ -605,6 +666,11 @@ export declare type ThemeableSrc = string | {
605
666
  export declare const Title: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
606
667
 
607
668
  export declare function (): {
669
+ minimal: Ref<boolean, boolean>;
670
+ };
671
+
672
+ export declare function (): {
673
+ aside: ComputedRef<AsideConfig>;
608
674
  state: SvariumState;
609
675
  logo: ComputedRef< {
610
676
  default: {
@@ -616,6 +682,7 @@ export declare function (): {
616
682
  dark: string;
617
683
  };
618
684
  }>;
685
+ sidebar: ComputedRef<SidebarConfig>;
619
686
  getLogo: (variant: "default" | "small", mode: "light" | "dark") => string;
620
687
  };
621
688
 
@@ -641,6 +708,13 @@ export declare interface VerificationMethod {
641
708
  export { }
642
709
 
643
710
 
711
+ declare module 'vue' {
712
+ interface ComponentCustomProperties {
713
+ route: typeof import('ziggy-js').route;
714
+ }
715
+ }
716
+
717
+
644
718
  declare module '@tanstack/vue-table' {
645
719
  interface ColumnMeta<TData extends RowData, TValue> {
646
720
  type?: 'string' | 'int' | 'bool' | 'select';
@@ -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: '/auth/register',
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: '/auth/reset',
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="`/auth/reset`" class="w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-100 dark:hover:bg-gray-800">
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="`/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">
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
@@ -30,10 +31,21 @@ defineOptions({
30
31
 
31
32
  interface Props {
32
33
  type: 'login' | 'register' | 'reset';
33
- session: string
34
+ session: string,
35
+ remember: boolean
34
36
  }
35
37
 
36
38
  const props = withDefaults(defineProps<Props>(), {
37
- session: ''
39
+ session: '',
40
+ remember: false
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: {}};
38
50
  })
39
51
  </script>