@@ -12,7 +12,7 @@ import { trans } from "i18n";
12
12
import styled from "styled-components" ;
13
13
import { ChangeEventHandlerControl } from "../../controls/eventHandlerControl" ;
14
14
import { CommonNameConfig , NameConfig , withExposingConfigs } from "../../generators/withExposing" ;
15
- import { Button100 , ButtonCompWrapper , buttonRefMethods } from "./buttonCompConstants" ;
15
+ import { Button100 , ButtonCompWrapper , buttonRefMethods , DisabledButtonStyleControl } from "./buttonCompConstants" ;
16
16
import { IconControl } from "comps/controls/iconControl" ;
17
17
import { AlignWithStretchControl , LeftRightControl } from "comps/controls/dropdownControl" ;
18
18
import { booleanExposingStateControl } from "comps/controls/codeStateControl" ;
@@ -63,6 +63,7 @@ const ToggleTmpComp = (function () {
63
63
iconPosition : LeftRightControl ,
64
64
alignment : AlignWithStretchControl ,
65
65
style : styleControl ( ToggleButtonStyle , 'style' ) ,
66
+ disabledStyle : DisabledButtonStyleControl ,
66
67
animationStyle : styleControl ( AnimationStyle , 'animationStyle' ) ,
67
68
showBorder : withDefault ( BoolControl , true ) ,
68
69
viewRef : RefControl < HTMLElement > ,
@@ -84,6 +85,7 @@ const ToggleTmpComp = (function () {
84
85
< Button100
85
86
ref = { props . viewRef }
86
87
$buttonStyle = { props . style }
88
+ $disabledStyle = { props . disabledStyle }
87
89
loading = { props . loading }
88
90
disabled = { props . disabled }
89
91
onClick = { ( ) => {
@@ -153,6 +155,7 @@ const ToggleTmpComp = (function () {
153
155
</ >
154
156
) }
155
157
158
+ < Section name = "Disabled" > { children . disabledStyle . getPropertyView ( ) } </ Section >
156
159
</ >
157
160
) )
158
161
. setExposeMethodConfigs ( buttonRefMethods )
0 commit comments