vuetty 0.2.1 → 0.3.1

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
@@ -45,6 +45,8 @@ export interface VuettyOptions {
45
45
  forceColors?: boolean;
46
46
  scrollIndicatorMode?: string;
47
47
  cache?: CacheOptions;
48
+ maxClickHandlers?: number;
49
+ maxClickRegions?: number;
48
50
  [key: string]: any;
49
51
  }
50
52
 
@@ -311,7 +313,7 @@ export interface NewlineProps {
311
313
  }
312
314
 
313
315
  // Interactive Input Components
314
- export interface TextInputProps extends BoxProps, StyleProps {
316
+ export interface TextInputProps extends BoxProps, Pick<StyleProps, 'color' | 'bg' | 'bold' | 'italic' | 'dim'> {
315
317
  modelValue?: string;
316
318
  multiline?: boolean;
317
319
  rows?: number;
@@ -343,6 +345,7 @@ export interface SelectInputProps extends BoxProps, Pick<StyleProps, 'color' | '
343
345
  options?: Array<ListItem | string | number>;
344
346
  label?: string;
345
347
  height?: number;
348
+ width?: number;
346
349
  marker?: string;
347
350
  highlightMarker?: string;
348
351
  disabled?: boolean;
@@ -356,6 +359,8 @@ export interface SelectInputProps extends BoxProps, Pick<StyleProps, 'color' | '
356
359
  export interface ListComponentProps extends BoxProps, Pick<StyleProps, 'color' | 'bg' | 'bold' | 'dim'> {
357
360
  items?: Array<ListItem | string | number>;
358
361
  label?: string;
362
+ height?: number;
363
+ width?: number;
359
364
  marker?: string;
360
365
  highlightedValue?: string | number | object | null;
361
366
  highlightColor?: string;
@@ -367,8 +372,10 @@ export interface CheckboxProps extends BoxProps, Pick<StyleProps, 'color' | 'bg'
367
372
  label?: string;
368
373
  direction?: 'vertical' | 'horizontal';
369
374
  height?: number;
375
+ width?: number | null;
370
376
  itemSpacing?: number;
371
377
  disabled?: boolean;
378
+ borderColor?: string;
372
379
  focusColor?: string;
373
380
  selectedColor?: string;
374
381
  highlightColor?: string;
@@ -381,8 +388,10 @@ export interface RadioboxProps extends BoxProps, Pick<StyleProps, 'color' | 'bg'
381
388
  label?: string;
382
389
  direction?: 'vertical' | 'horizontal';
383
390
  height?: number;
391
+ width?: number | null;
384
392
  itemSpacing?: number;
385
393
  disabled?: boolean;
394
+ borderColor?: string;
386
395
  focusColor?: string;
387
396
  selectedColor?: string;
388
397
  highlightColor?: string;
@@ -411,6 +420,7 @@ export interface TabItem {
411
420
  export interface TabsProps extends BoxProps, Pick<StyleProps, 'color' | 'bg'> {
412
421
  modelValue?: string | number | null;
413
422
  tabs: Array<TabItem | string | number>;
423
+ width?: number;
414
424
  disabled?: boolean;
415
425
  focusColor?: string;
416
426
  activeColor?: string;
@@ -442,7 +452,7 @@ export interface TableProps extends BoxProps, Pick<StyleProps, 'color' | 'bg' |
442
452
  // Display Components
443
453
  export type SpinnerType = 'dots' | 'line' | 'arc' | 'arrow' | 'bounce' | 'clock' | 'box';
444
454
 
445
- export interface SpinnerProps extends BoxProps, StyleProps {
455
+ export interface SpinnerProps extends BoxProps, Pick<StyleProps, 'color' | 'bold' | 'italic' | 'underline' | 'dim'> {
446
456
  type?: SpinnerType;
447
457
  modelValue?: boolean;
448
458
  interval?: number;
@@ -450,9 +460,10 @@ export interface SpinnerProps extends BoxProps, StyleProps {
450
460
  labelPosition?: 'left' | 'right';
451
461
  }
452
462
 
453
- export interface ProgressBarProps extends BoxProps, StyleProps {
463
+ export interface ProgressBarProps extends BoxProps, Pick<StyleProps, 'color' | 'bold' | 'italic' | 'underline' | 'dim'> {
454
464
  value?: number;
455
465
  max?: number;
466
+ width?: number;
456
467
  char?: string;
457
468
  emptyChar?: string;
458
469
  showPercentage?: boolean;
@@ -490,12 +501,28 @@ export interface TreeProps extends BoxProps, Pick<StyleProps, 'color' | 'bg'> {
490
501
  treeStyle?: string | Record<string, string>;
491
502
  }
492
503
 
493
- export interface MarkdownProps extends BoxProps, StyleProps {
494
- source?: string;
495
- codeTheme?: string;
496
- enableTables?: boolean;
497
- enableLists?: boolean;
498
- enableCodeBlocks?: boolean;
504
+ export interface MarkdownProps extends BoxProps, Pick<StyleProps, 'color' | 'bg' | 'bold' | 'italic' | 'dim'> {
505
+ content?: string;
506
+ h1Color?: string;
507
+ h2Color?: string;
508
+ h3Color?: string;
509
+ h4Color?: string;
510
+ h5Color?: string;
511
+ h6Color?: string;
512
+ codeColor?: string;
513
+ codeBg?: string;
514
+ linkColor?: string;
515
+ emphasisColor?: string;
516
+ strongColor?: string;
517
+ blockquoteColor?: string;
518
+ blockquoteBorderColor?: string;
519
+ listBulletColor?: string;
520
+ listNumberColor?: string;
521
+ hrColor?: string;
522
+ hrChar?: string;
523
+ hrLength?: number;
524
+ tableHeaderColor?: string;
525
+ tableBorderColor?: string;
499
526
  }
500
527
 
501
528
  export interface ImageProps extends BoxProps {
@@ -508,6 +535,25 @@ export interface ImageProps extends BoxProps {
508
535
  errorBorderStyle?: string;
509
536
  }
510
537
 
538
+ export interface CodeDiffProps extends BoxProps {
539
+ oldCode?: string;
540
+ newCode?: string;
541
+ mode?: 'inline' | 'side-by-side';
542
+ language?: string;
543
+ showLineNumbers?: boolean;
544
+ context?: number;
545
+ showAll?: boolean;
546
+ addedColor?: string | null;
547
+ removedColor?: string | null;
548
+ unchangedColor?: string | null;
549
+ addedBg?: string | null;
550
+ removedBg?: string | null;
551
+ lineNumberColor?: string | null;
552
+ codeBg?: string | null;
553
+ border?: boolean;
554
+ padding?: number;
555
+ }
556
+
511
557
  // ============================================================================
512
558
  // Component Exports
513
559
  // ============================================================================
@@ -534,6 +580,7 @@ export const Button: DefineComponent<ButtonComponentProps>;
534
580
  export const Tree: DefineComponent<TreeProps>;
535
581
  export const List: DefineComponent<ListComponentProps>;
536
582
  export const Tabs: DefineComponent<TabsProps>;
583
+ export const CodeDiff: DefineComponent<CodeDiffProps>;
537
584
 
538
585
  // ============================================================================
539
586
  // BigText Utilities