@dstally/vue 1.0.0 → 1.1.0

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
@@ -33,6 +33,11 @@ Importing anything from `@dstally/vue` also loads `@dstally/tokens/styles.css`;
33
33
  | `TProjectDot` `TProjectRow` | project identity and the 38px list line |
34
34
  | `TTimerPill` | the floating always-visible timer |
35
35
  | `TWaterfallTimeline` | parallel-time visualisation for reports |
36
+ | `TBudgetBar` | budget burn-down, pro-rated target, red when over |
37
+ | `TWindowChrome` | desktop title bar per platform (mac / windows / linux) |
38
+ | `TTabBar` `TTimerBar` | phone navigation and the pill's mobile form |
39
+ | `TAuthCard` `TCodeInput` | auth layout unit and 6-digit code entry |
40
+ | `TEmptyState` `TAvatar` | empty lists; initials avatar |
36
41
 
37
42
  Also exported: `formatDuration(seconds, 'clock' | 'short' | 'compact')`, `PROJECT_COLORS`.
38
43
 
package/dist/index.d.ts CHANGED
@@ -15,6 +15,15 @@ fullWidth: boolean;
15
15
  type: "button" | "submit" | "reset";
16
16
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
17
17
 
18
+ declare const __VLS_component_10: DefineComponent<__VLS_Props_25, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_25> & Readonly<{}>, {
19
+ width: number;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+
22
+ declare const __VLS_component_11: DefineComponent<__VLS_Props_26, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_26> & Readonly<{}>, {
23
+ compact: boolean;
24
+ icon: string;
25
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
26
+
18
27
  declare const __VLS_component_2: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
28
  click: (e: MouseEvent) => any;
20
29
  }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
@@ -66,6 +75,19 @@ width: number;
66
75
  teleport: boolean;
67
76
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
68
77
 
78
+ declare const __VLS_component_9: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
79
+ close: () => any;
80
+ minimize: () => any;
81
+ maximize: () => any;
82
+ }, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{
83
+ onClose?: (() => any) | undefined;
84
+ onMinimize?: (() => any) | undefined;
85
+ onMaximize?: (() => any) | undefined;
86
+ }>, {
87
+ height: number;
88
+ platform: "mac" | "windows" | "linux";
89
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
90
+
69
91
  declare type __VLS_Props = {
70
92
  /** Only one primary per view. */
71
93
  variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger';
@@ -179,6 +201,65 @@ declare type __VLS_Props_20 = {
179
201
  labelWidth?: number;
180
202
  };
181
203
 
204
+ /** Title-bar affordances per desktop platform. In Tauri: decorations=false, this element is the drag region (data-tauri-drag-region). */
205
+ declare type __VLS_Props_21 = {
206
+ platform?: 'mac' | 'windows' | 'linux';
207
+ title?: string;
208
+ height?: number;
209
+ };
210
+
211
+ declare type __VLS_Props_22 = {
212
+ items: TabBarItem[];
213
+ modelValue: string;
214
+ };
215
+
216
+ /** The pill's mobile form: persistent 56px bar above the tab bar. Tap opens the running-timers sheet. */
217
+ declare type __VLS_Props_23 = {
218
+ project: string;
219
+ task?: string;
220
+ color?: string;
221
+ seconds?: number;
222
+ running?: boolean;
223
+ parallelCount?: number;
224
+ };
225
+
226
+ declare type __VLS_Props_24 = {
227
+ modelValue?: string;
228
+ length?: number;
229
+ error?: string;
230
+ autofocus?: boolean;
231
+ };
232
+
233
+ /** Auth layout unit: mark, headline, one line of context, form slot, footer slot. 400px max; fills width on phones. */
234
+ declare type __VLS_Props_25 = {
235
+ title: string;
236
+ description?: string;
237
+ width?: number;
238
+ };
239
+
240
+ declare type __VLS_Props_26 = {
241
+ icon?: string;
242
+ title: string;
243
+ description?: string;
244
+ compact?: boolean;
245
+ };
246
+
247
+ declare type __VLS_Props_27 = {
248
+ name: string;
249
+ src?: string;
250
+ size?: number;
251
+ };
252
+
253
+ /** Budget burn-down: used vs pro-rated target. Red when over. Caption states the period and that the target is pro-rated. */
254
+ declare type __VLS_Props_28 = {
255
+ label: string;
256
+ color?: string;
257
+ usedSeconds?: number;
258
+ targetSeconds?: number;
259
+ period?: string;
260
+ compact?: boolean;
261
+ };
262
+
182
263
  declare type __VLS_Props_3 = {
183
264
  modelValue?: string | number;
184
265
  label?: string;
@@ -259,6 +340,26 @@ declare function __VLS_template(): {
259
340
  rootEl: HTMLButtonElement;
260
341
  };
261
342
 
343
+ declare function __VLS_template_10(): {
344
+ attrs: Partial<{}>;
345
+ slots: {
346
+ description?(_: {}): any;
347
+ default?(_: {}): any;
348
+ footer?(_: {}): any;
349
+ };
350
+ refs: {};
351
+ rootEl: HTMLDivElement;
352
+ };
353
+
354
+ declare function __VLS_template_11(): {
355
+ attrs: Partial<{}>;
356
+ slots: {
357
+ default?(_: {}): any;
358
+ };
359
+ refs: {};
360
+ rootEl: HTMLDivElement;
361
+ };
362
+
262
363
  declare function __VLS_template_2(): {
263
364
  attrs: Partial<{}>;
264
365
  slots: {
@@ -326,8 +427,21 @@ declare function __VLS_template_8(): {
326
427
  rootEl: any;
327
428
  };
328
429
 
430
+ declare function __VLS_template_9(): {
431
+ attrs: Partial<{}>;
432
+ slots: {
433
+ default?(_: {}): any;
434
+ };
435
+ refs: {};
436
+ rootEl: HTMLDivElement;
437
+ };
438
+
329
439
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
330
440
 
441
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
442
+
443
+ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
444
+
331
445
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
332
446
 
333
447
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -342,12 +456,26 @@ declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
342
456
 
343
457
  declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
344
458
 
459
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
460
+
345
461
  declare type __VLS_WithTemplateSlots<T, S> = T & {
346
462
  new (): {
347
463
  $slots: S;
348
464
  };
349
465
  };
350
466
 
467
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
468
+ new (): {
469
+ $slots: S;
470
+ };
471
+ };
472
+
473
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
474
+ new (): {
475
+ $slots: S;
476
+ };
477
+ };
478
+
351
479
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
352
480
  new (): {
353
481
  $slots: S;
@@ -390,6 +518,12 @@ declare type __VLS_WithTemplateSlots_8<T, S> = T & {
390
518
  };
391
519
  };
392
520
 
521
+ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
522
+ new (): {
523
+ $slots: S;
524
+ };
525
+ };
526
+
393
527
  export declare type DurationFormat = 'clock' | 'short' | 'compact';
394
528
 
395
529
  /** 8047 → "2:14:07" (clock) · "2:14" (short) · "2h 14m" (compact) */
@@ -403,8 +537,28 @@ export declare interface SelectOption {
403
537
  label: string;
404
538
  }
405
539
 
540
+ export declare interface TabBarItem {
541
+ id: string;
542
+ label: string;
543
+ icon: string;
544
+ }
545
+
546
+ export declare const TAuthCard: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
547
+
548
+ export declare const TAvatar: DefineComponent<__VLS_Props_27, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_27> & Readonly<{}>, {
549
+ size: number;
550
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
551
+
406
552
  export declare const TBadge: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
407
553
 
554
+ export declare const TBudgetBar: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {
555
+ color: string;
556
+ compact: boolean;
557
+ usedSeconds: number;
558
+ targetSeconds: number;
559
+ period: string;
560
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
561
+
408
562
  export declare const TButton: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
409
563
 
410
564
  export declare const TCard: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
@@ -419,6 +573,16 @@ modelValue: boolean;
419
573
  indeterminate: boolean;
420
574
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
421
575
 
576
+ export declare const TCodeInput: DefineComponent<__VLS_Props_24, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
577
+ "update:modelValue": (v: string) => any;
578
+ }, string, PublicProps, Readonly<__VLS_Props_24> & Readonly<{
579
+ "onUpdate:modelValue"?: ((v: string) => any) | undefined;
580
+ }>, {
581
+ length: number;
582
+ modelValue: string;
583
+ autofocus: boolean;
584
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
585
+
422
586
  export declare const TDialog: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
423
587
 
424
588
  export declare const TDurationText: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {
@@ -428,6 +592,8 @@ seconds: number;
428
592
  format: DurationFormat;
429
593
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
430
594
 
595
+ export declare const TEmptyState: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
596
+
431
597
  export declare const TIcon: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {
432
598
  size: number;
433
599
  base: string;
@@ -495,8 +661,29 @@ disabled: boolean;
495
661
  modelValue: boolean;
496
662
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLLabelElement>;
497
663
 
664
+ export declare const TTabBar: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
665
+ "update:modelValue": (id: string) => any;
666
+ }, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{
667
+ "onUpdate:modelValue"?: ((id: string) => any) | undefined;
668
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLElement>;
669
+
498
670
  export declare const TTag: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
499
671
 
672
+ export declare const TTimerBar: DefineComponent<__VLS_Props_23, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
673
+ stop: () => any;
674
+ open: () => any;
675
+ toggle: () => any;
676
+ }, string, PublicProps, Readonly<__VLS_Props_23> & Readonly<{
677
+ onStop?: (() => any) | undefined;
678
+ onOpen?: (() => any) | undefined;
679
+ onToggle?: (() => any) | undefined;
680
+ }>, {
681
+ color: string;
682
+ running: boolean;
683
+ seconds: number;
684
+ parallelCount: number;
685
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
686
+
500
687
  export declare const TTimerPill: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
501
688
  stop: () => any;
502
689
  toggle: () => any;
@@ -524,6 +711,8 @@ showAxis: boolean;
524
711
  labelWidth: number;
525
712
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
526
713
 
714
+ export declare const TWindowChrome: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
715
+
527
716
  export declare interface WaterfallRow {
528
717
  label: string;
529
718
  color: string;