@upsoftware_tech/svarium 1.0.1 → 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/README.md CHANGED
@@ -1 +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
+
1
15
  @source "../../node_modules/@upsoftware_tech/svarium/dist/**/*.{js,mjs,vue}";
package/dist/index.d.ts CHANGED
@@ -7,51 +7,78 @@ import { ComputedRef } from 'vue';
7
7
  import { DefineComponent } from 'vue';
8
8
  import { ExtractPropTypes } from 'vue';
9
9
  import { HTMLAttributes } from 'vue';
10
+ import { Icon } from '@iconify/vue';
10
11
  import { Plugin as Plugin_2 } from 'vue';
11
12
  import { PrimitiveProps } from 'reka-ui';
12
13
  import { PublicProps } from 'vue';
13
14
  import { Ref } from 'vue';
14
15
  import { VariantProps } from 'class-variance-authority';
15
16
 
16
- declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
17
+ declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
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<{}>, {
22
+ right: boolean;
23
+ left: boolean;
24
+ orientation: "horizontal" | "vertical";
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+
27
+ declare const __VLS_component_2: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
17
28
  as: AsTag | Component;
18
29
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
30
 
20
- declare const __VLS_component_2: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
31
+ declare const __VLS_component_3: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
32
 
22
- declare const __VLS_component_3: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {
33
+ declare const __VLS_component_4: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {
23
34
  action: string;
24
35
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
36
 
26
- declare const __VLS_component_4: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {
37
+ declare const __VLS_component_5: DefineComponent<Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_4> & Readonly<{}>, {
27
38
  label: string;
28
39
  name: string;
29
40
  hint: string;
30
41
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
31
42
 
32
- declare const __VLS_component_5: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
43
+ declare const __VLS_component_6: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
44
  "update:modelValue": (value: string | number) => any;
34
45
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
35
46
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
36
47
  }>, {
37
- label: string;
48
+ copy: boolean;
38
49
  type: string;
39
50
  placeholder: string;
51
+ label: string;
40
52
  name: string;
53
+ clear: boolean;
41
54
  hint: string;
55
+ stringGeneratorLength: number;
42
56
  password: boolean;
43
57
  addon: string;
58
+ passwordGenerator: boolean;
59
+ showPasswordRequired: boolean;
44
60
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
45
61
 
46
- declare const __VLS_component_6: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
62
+ declare const __VLS_component_7: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
47
63
 
48
- declare const __VLS_component_7: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
64
+ declare const __VLS_component_8: DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {
49
65
  label: string;
50
66
  name: string;
67
+ value: string | number | boolean;
51
68
  hint: string;
52
69
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
53
70
 
54
- declare type __VLS_Props = Props_4;
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>;
80
+
81
+ declare type __VLS_Props = Props_5;
55
82
 
56
83
  declare type __VLS_PublicProps = {
57
84
  modelValue?: string | number;
@@ -66,6 +93,24 @@ declare function __VLS_template(): {
66
93
  rootEl: any;
67
94
  };
68
95
 
96
+ 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
+ attrs: Partial<{}>;
107
+ slots: {
108
+ default?(_: {}): any;
109
+ };
110
+ refs: {};
111
+ rootEl: HTMLDivElement;
112
+ };
113
+
69
114
  declare function __VLS_template_2(): {
70
115
  attrs: Partial<{}>;
71
116
  slots: {
@@ -85,6 +130,15 @@ declare function __VLS_template_3(): {
85
130
  };
86
131
 
87
132
  declare function __VLS_template_4(): {
133
+ attrs: Partial<{}>;
134
+ slots: {
135
+ default?(_: {}): any;
136
+ };
137
+ refs: {};
138
+ rootEl: any;
139
+ };
140
+
141
+ declare function __VLS_template_5(): {
88
142
  attrs: Partial<{}>;
89
143
  slots: {
90
144
  default?(_: {
@@ -96,7 +150,7 @@ declare function __VLS_template_4(): {
96
150
  rootEl: HTMLDivElement;
97
151
  };
98
152
 
99
- declare function __VLS_template_5(): {
153
+ declare function __VLS_template_6(): {
100
154
  attrs: Partial<{}>;
101
155
  slots: {
102
156
  addon?(_: {}): any;
@@ -106,7 +160,7 @@ declare function __VLS_template_5(): {
106
160
  rootEl: any;
107
161
  };
108
162
 
109
- declare function __VLS_template_6(): {
163
+ declare function __VLS_template_7(): {
110
164
  attrs: Partial<{}>;
111
165
  slots: {
112
166
  default?(_: {}): any;
@@ -115,7 +169,7 @@ declare function __VLS_template_6(): {
115
169
  rootEl: HTMLDivElement;
116
170
  };
117
171
 
118
- declare function __VLS_template_7(): {
172
+ declare function __VLS_template_8(): {
119
173
  attrs: Partial<{}>;
120
174
  slots: {
121
175
  default?(_: {}): any;
@@ -124,8 +178,29 @@ declare function __VLS_template_7(): {
124
178
  rootEl: HTMLDivElement;
125
179
  };
126
180
 
181
+ declare function __VLS_template_9(): {
182
+ attrs: Partial<{}>;
183
+ 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;
194
+ };
195
+ rootEl: any;
196
+ };
197
+
127
198
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
128
199
 
200
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
201
+
202
+ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
203
+
129
204
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
130
205
 
131
206
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -138,12 +213,28 @@ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
138
213
 
139
214
  declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
140
215
 
216
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
217
+
218
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
219
+
141
220
  declare type __VLS_WithTemplateSlots<T, S> = T & {
142
221
  new (): {
143
222
  $slots: S;
144
223
  };
145
224
  };
146
225
 
226
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
227
+ new (): {
228
+ $slots: S;
229
+ };
230
+ };
231
+
232
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
233
+ new (): {
234
+ $slots: S;
235
+ };
236
+ };
237
+
147
238
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
148
239
  new (): {
149
240
  $slots: S;
@@ -180,39 +271,99 @@ declare type __VLS_WithTemplateSlots_7<T, S> = T & {
180
271
  };
181
272
  };
182
273
 
183
- export declare const AuthLayout: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
274
+ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
275
+ new (): {
276
+ $slots: S;
277
+ };
278
+ };
279
+
280
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
281
+ new (): {
282
+ $slots: S;
283
+ };
284
+ };
285
+
286
+ export declare const AppLayout: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
287
+
288
+ export declare const AuthLayout: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
184
289
 
185
- export declare const BlockFormLogin: DefineComponent<Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_5> & Readonly<{}>, {
290
+ export declare const BlockFormLogin: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
186
291
  action: string;
187
292
  showResetLink: boolean;
188
293
  resetLabel: string;
294
+ resetLink: string;
189
295
  submitLabel: string;
190
296
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
191
297
 
192
- export declare const BlockFormLoginMethodVerification: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
193
- verificationMethods: VerificationMethod_2[];
298
+ export declare const BlockFormLoginMethodVerification: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_10> & Readonly<{}>, {
299
+ verificationMethods: VerificationMethod[] | Record<string, VerificationMethod>;
194
300
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
195
301
 
196
- export declare const BlockPageLogin: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
302
+ export declare const BlockFormReset: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
303
+ action: string;
304
+ submitLabel: string;
305
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
306
+
307
+ export declare const BlockFormResetPassword: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
308
+ action: string;
309
+ submitLabel: string;
310
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
311
+
312
+ export declare const BlockFormVerification: DefineComponent<Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_11> & Readonly<{}>, {
313
+ session: string;
314
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
315
+
316
+ export declare const BlockPageLogin: DefineComponent<Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_12> & Readonly<{}>, {
317
+ title: string;
318
+ minimal: boolean;
319
+ showResetLink: boolean;
320
+ resetLabel: string;
321
+ resetLink: string;
322
+ submitLabel: string;
197
323
  socials: SocialLink[];
324
+ showRegisterLink: boolean;
325
+ registerLabel: string;
326
+ registerLinkLabel: string;
327
+ registerLink: string;
328
+ subtitle: string;
329
+ cols: number;
330
+ orLabel: string;
331
+ onlySocialName: boolean;
332
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
333
+
334
+ export declare const BlockPageReset: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_9> & Readonly<{}>, {
335
+ title: string;
336
+ subtitle: string;
198
337
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
199
338
 
200
- export declare const Button: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
339
+ export declare const Button: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
340
+
341
+ export declare const ButtonClear: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
201
342
 
202
343
  export declare const ButtonIcon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
203
344
 
204
- export declare const ButtonSubmit: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
345
+ export declare const ButtonSubmit: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
205
346
 
206
347
  declare type ButtonVariants = VariantProps<typeof buttonVariants>;
207
348
 
208
349
  declare const buttonVariants: (props?: ({
209
350
  variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
210
- size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
351
+ size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
352
+ } & ClassProp) | undefined) => string;
353
+
354
+ export declare const ColorMode: DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
355
+
356
+ declare type ColorModeVariants = VariantProps<typeof colorModeVariants>;
357
+
358
+ declare const colorModeVariants: (props?: ({
359
+ variant?: "default" | "switch" | "group" | "dropdown" | null | undefined;
211
360
  } & ClassProp) | undefined) => string;
212
361
 
213
- export declare const Form: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
362
+ export declare const FlashMessage: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
214
363
 
215
- export declare const FormControl: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
364
+ export declare const Form: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
365
+
366
+ export declare const FormControl: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
216
367
 
217
368
  export declare const FormError: DefineComponent<ExtractPropTypes< {
218
369
  errors: {
@@ -224,13 +375,44 @@ type: (ObjectConstructor | StringConstructor)[];
224
375
  };
225
376
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLUListElement>;
226
377
 
227
- export declare const Input: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
378
+ export { Icon }
379
+
380
+ export declare const Input: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
381
+
382
+ export declare const LocaleSelect: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
228
383
 
229
384
  export declare type LogoConfig = string | {
230
385
  default: ThemeableSrc;
231
386
  small?: ThemeableSrc;
232
387
  };
233
388
 
389
+ export declare const NavigationVertical: DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
390
+
391
+ declare interface OptionGroup {
392
+ label: string;
393
+ items: OptionItem[];
394
+ }
395
+
396
+ declare interface OptionIcon {
397
+ type: string;
398
+ value: string;
399
+ }
400
+
401
+ declare interface OptionItem {
402
+ id?: string | number;
403
+ name?: string;
404
+ label?: string;
405
+ icon?: OptionIcon;
406
+ value?: string | number;
407
+ }
408
+
409
+ export declare const Pin: DefineComponent<Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_14> & Readonly<{}>, {
410
+ label: string;
411
+ name: string;
412
+ hint: string;
413
+ maxlength: number;
414
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
415
+
234
416
  declare const plugin: Plugin_2<[SvariumOptions]>;
235
417
  export default plugin;
236
418
 
@@ -240,55 +422,162 @@ declare interface Props extends PrimitiveProps {
240
422
  class?: HTMLAttributes["class"];
241
423
  }
242
424
 
243
- declare interface Props_2 {
244
- action: string;
425
+ declare interface Props_10 {
426
+ verificationMethods?: VerificationMethod[] | Record<string, VerificationMethod>;
427
+ session: string;
245
428
  }
246
429
 
247
- declare interface Props_3 {
430
+ declare interface Props_11 {
431
+ type: 'login' | 'register' | 'reset';
432
+ session: string;
433
+ }
434
+
435
+ declare interface Props_12 {
436
+ socials?: SocialLink[];
437
+ showRegisterLink?: boolean;
438
+ registerLabel?: string;
439
+ registerLinkLabel?: string;
440
+ registerLink?: string;
441
+ showResetLink?: boolean;
442
+ title?: string;
443
+ subtitle?: string;
444
+ resetLabel?: string;
445
+ resetLink?: string;
446
+ submitLabel?: string;
447
+ minimal?: boolean;
448
+ cols?: number;
449
+ orLabel?: string;
450
+ onlySocialName?: boolean;
451
+ }
452
+
453
+ declare interface Props_13 {
454
+ value?: string | number | boolean;
248
455
  name: string;
249
456
  label?: string;
250
457
  hint?: string;
251
458
  }
252
459
 
460
+ declare interface Props_14 {
461
+ name?: string;
462
+ maxlength?: number;
463
+ hint?: string;
464
+ label?: string;
465
+ }
466
+
467
+ declare interface Props_15 {
468
+ uri?: string;
469
+ data?: any;
470
+ columns?: any;
471
+ rows?: any;
472
+ }
473
+
474
+ declare interface Props_16 {
475
+ placeholder?: string;
476
+ options?: OptionItem[] | OptionGroup[];
477
+ name?: string;
478
+ hint?: string;
479
+ label?: string;
480
+ clear?: boolean;
481
+ modelValue?: any;
482
+ }
483
+
484
+ declare interface Props_17 {
485
+ navigation_id: string | number;
486
+ offset?: number;
487
+ }
488
+
489
+ declare interface Props_18 {
490
+ orientation?: 'horizontal' | 'vertical';
491
+ left?: boolean;
492
+ right?: boolean;
493
+ }
494
+
495
+ declare interface Props_19 {
496
+ navigation_id: string | number;
497
+ }
498
+
499
+ declare interface Props_2 extends PrimitiveProps {
500
+ variant?: ColorModeVariants["variant"];
501
+ }
502
+
503
+ declare interface Props_3 {
504
+ action: string;
505
+ }
506
+
253
507
  declare interface Props_4 {
254
- name: string;
508
+ name?: string;
509
+ label?: string;
510
+ hint?: string;
511
+ }
512
+
513
+ declare interface Props_5 {
514
+ name?: string;
255
515
  type?: string;
256
516
  password?: boolean;
257
517
  label?: string;
258
518
  hint?: string;
259
519
  placeholder?: string;
260
520
  addon?: string;
521
+ clear?: boolean;
522
+ passwordGenerator?: boolean;
523
+ stringGeneratorLength?: number;
524
+ copy?: boolean;
525
+ showPasswordRequired?: boolean;
261
526
  }
262
527
 
263
- declare interface Props_5 {
528
+ declare interface Props_6 {
264
529
  action?: string;
265
530
  showResetLink?: boolean;
266
531
  resetLabel?: string;
532
+ resetLink?: string;
267
533
  submitLabel?: string;
268
534
  }
269
535
 
270
- declare interface Props_6 {
271
- verificationMethods: VerificationMethod_2[];
272
- session: string;
273
- }
274
-
275
536
  declare interface Props_7 {
276
- socials?: SocialLink[];
537
+ action?: string;
538
+ submitLabel?: string;
277
539
  }
278
540
 
279
541
  declare interface Props_8 {
280
- name: string;
281
- label?: string;
282
- hint?: string;
542
+ action?: string;
543
+ submitLabel?: string;
544
+ session: string;
545
+ }
546
+
547
+ declare interface Props_9 {
548
+ title?: string;
549
+ subtitle?: string;
283
550
  }
284
551
 
285
- export declare const Radio: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
552
+ export declare const Radio: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
553
+
554
+ export declare const ScrollArea: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
555
+
556
+ export declare const Select: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
557
+ "update:modelValue": (...args: any[]) => void;
558
+ }, string, PublicProps, Readonly<Props_16> & Readonly<{
559
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
560
+ }>, {
561
+ placeholder: string;
562
+ clear: boolean;
563
+ modelValue: any;
564
+ options: OptionItem[] | OptionGroup[];
565
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
566
+
567
+ export declare const Separator: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
568
+
569
+ export declare const Sidebar: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
570
+
571
+ export declare const SidebarToggle: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
572
+
573
+ export declare const SidebarUser: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
286
574
 
287
575
  declare interface SocialLink {
288
576
  id: string;
289
- url: string;
577
+ url?: string;
290
578
  label: string;
291
579
  icon: string;
580
+ provider: string;
292
581
  }
293
582
 
294
583
  export declare interface SvariumOptions {
@@ -304,11 +593,17 @@ export declare interface SvariumState {
304
593
  logo?: LogoConfig;
305
594
  }
306
595
 
596
+ export declare const Table: DefineComponent<Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
597
+ tableRef: HTMLDivElement;
598
+ }, HTMLDivElement>;
599
+
307
600
  export declare type ThemeableSrc = string | {
308
601
  light: string;
309
602
  dark: string;
310
603
  };
311
604
 
605
+ export declare const Title: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
606
+
312
607
  export declare function (): {
313
608
  state: SvariumState;
314
609
  logo: ComputedRef< {
@@ -343,11 +638,12 @@ export declare interface VerificationMethod {
343
638
  disabled: boolean;
344
639
  }
345
640
 
346
- declare interface VerificationMethod_2 {
347
- id: string;
348
- label: string;
349
- description: string;
350
- disabled: boolean;
351
- }
352
-
353
641
  export { }
642
+
643
+
644
+ declare module '@tanstack/vue-table' {
645
+ interface ColumnMeta<TData extends RowData, TValue> {
646
+ type?: 'string' | 'int' | 'bool' | 'select';
647
+ options?: OptionItem[];
648
+ }
649
+ }
@@ -0,0 +1,54 @@
1
+ <template>
2
+ <BlockPageLogin v-bind="props" />
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
+ resetLink?: string,
26
+ submitLabel?: string,
27
+ minimal?: boolean,
28
+ cols?: number,
29
+ orLabel?: string,
30
+ onlySocialName?: boolean
31
+ }
32
+
33
+ const props = withDefaults(defineProps<Props>(), {
34
+ socials: () => [],
35
+ showRegisterLink: true,
36
+ registerLabel: 'If you don’t have an account',
37
+ registerLinkLabel: 'sign up here',
38
+ registerLink: '/auth/register',
39
+ showResetLink: true,
40
+ title: 'Welcome back!',
41
+ subtitle: 'Enter your email address and password',
42
+ resetLabel: 'Forgot your password?',
43
+ resetLink: '/auth/reset',
44
+ submitLabel: 'Log in with your email address',
45
+ minimal: false,
46
+ cols: 2,
47
+ orLabel: 'or',
48
+ onlySocialName: false
49
+ });
50
+
51
+ defineOptions({
52
+ layout: AuthLayout,
53
+ });
54
+ </script>
@@ -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>