@@ -13,22 +13,7 @@ import { BehaviorSubject } from "rxjs";
1313import { CssUtils } from "../utils" ;
1414import { coerceBooleanProperty } from "@angular/cdk/coercion" ;
1515import { BackgroundProviderService } from "../background-provider/service/background-provider.service" ;
16-
17- type Space =
18- | "xxsmall"
19- | "xsmall"
20- | "small"
21- | "medium"
22- | "large"
23- | "xlarge"
24- | "xxlarge" ;
25-
26- type Margin = {
27- top ?: Space ;
28- bottom ?: Space ;
29- left ?: Space ;
30- right ?: Space ;
31- } ;
16+ import { RadioProperties , Space , Spacing } from "./dxc-radio.types" ;
3217
3318@Component ( {
3419 selector : "dxc-radio" ,
@@ -102,11 +87,11 @@ export class DxcRadioComponent implements OnInit {
10287
10388 /**
10489 * Size of the margin to be applied to the component
105- * ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
106- * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in
90+ * ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
91+ * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in
10792 * order to specify different margin sizes.
10893 */
109- @Input ( ) margin : Space | Margin ;
94+ @Input ( ) margin : Space | Spacing ;
11095
11196 /**
11297 * Size of the component.
@@ -120,7 +105,7 @@ export class DxcRadioComponent implements OnInit {
120105
121106 renderedChecked : boolean ;
122107
123- defaultInputs = new BehaviorSubject < any > ( {
108+ defaultInputs = new BehaviorSubject < RadioProperties > ( {
124109 checked : false ,
125110 value : null ,
126111 label : null ,
@@ -130,7 +115,6 @@ export class DxcRadioComponent implements OnInit {
130115 required : false ,
131116 margin : null ,
132117 size : "fitContent" ,
133- id : null ,
134118 } ) ;
135119
136120 sizes = {
0 commit comments