@salas-ds/cli 0.2.1 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salas-ds/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "CLI para adicionar componentes do Salas Design System ao projeto (estilo shadcn)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -138,8 +138,8 @@ export class SalasCheckboxComponent implements CheckboxProps, ControlValueAccess
138
138
  }
139
139
 
140
140
  @HostListener('keydown.space', ['$event'])
141
- handleSpace(event: KeyboardEvent): void {
142
- event.preventDefault();
141
+ handleSpace(event: Event): void {
142
+ (event as KeyboardEvent).preventDefault();
143
143
  this.toggle();
144
144
  }
145
145
 
@@ -1,35 +1,4 @@
1
1
  import {
2
-
3
- export type DialogSize = 'default' | 'sm';
4
-
5
- export interface DialogProps {
6
- /**
7
- * Controlled open state. If provided, the dialog becomes controlled and
8
- * will not manage its own internal state.
9
- */
10
- open?: boolean;
11
- /**
12
- * Width of the dialog panel. Accepts any valid CSS width value (e.g. '480px', '32rem', '50%').
13
- */
14
- width?: string;
15
- /**
16
- * Height of the dialog panel. Accepts any valid CSS height value.
17
- */
18
- height?: string;
19
- /**
20
- * Named size preset. When provided, defines sensible defaults for width and padding.
21
- */
22
- size?: DialogSize;
23
- /**
24
- * If true, closes the dialog when the user clicks on the overlay.
25
- */
26
- closeOnOverlayClick?: boolean;
27
- /**
28
- * If true, hides the X close button in the top-right corner.
29
- */
30
- hideCloseButton?: boolean;
31
- }
32
-
33
2
  Component,
34
3
  Input,
35
4
  Output,
@@ -38,6 +7,8 @@ export interface DialogProps {
38
7
  HostListener,
39
8
  } from '@angular/core';
40
9
 
10
+ export type DialogSize = 'default' | 'sm';
11
+
41
12
  @Component({
42
13
  selector: 'salas-dialog',
43
14
  standalone: true,