@@ -213,7 +213,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
213213 Tabs : ( { props, emit } ) => {
214214 const tabs = props . tabs ?? [ ] ;
215215 const [ boundValue , setBoundValue ] = props . statePath
216- ? useStateBinding < string > ( props . statePath )
216+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
217217 : [ undefined , undefined ] ;
218218 const [ localValue , setLocalValue ] = useState (
219219 props . defaultValue ?? tabs [ 0 ] ?. value ?? "" ,
@@ -767,7 +767,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
767767
768768 Input : ( { props, emit } ) => {
769769 const [ boundValue , setBoundValue ] = props . statePath
770- ? useStateBinding < string > ( props . statePath )
770+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
771771 : [ undefined , undefined ] ;
772772 const [ localValue , setLocalValue ] = useState ( "" ) ;
773773 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
@@ -795,7 +795,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
795795
796796 Textarea : ( { props } ) => {
797797 const [ boundValue , setBoundValue ] = props . statePath
798- ? useStateBinding < string > ( props . statePath )
798+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
799799 : [ undefined , undefined ] ;
800800 const [ localValue , setLocalValue ] = useState ( "" ) ;
801801 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
@@ -818,7 +818,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
818818
819819 Select : ( { props, emit } ) => {
820820 const [ boundValue , setBoundValue ] = props . statePath
821- ? useStateBinding < string > ( props . statePath )
821+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
822822 : [ undefined , undefined ] ;
823823 const [ localValue , setLocalValue ] = useState < string > ( "" ) ;
824824 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
@@ -852,7 +852,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
852852
853853 Checkbox : ( { props, emit } ) => {
854854 const [ boundValue , setBoundValue ] = props . statePath
855- ? useStateBinding < boolean > ( props . statePath )
855+ ? useStateBinding < boolean > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
856856 : [ undefined , undefined ] ;
857857 const [ localChecked , setLocalChecked ] = useState ( ! ! props . checked ) ;
858858 const checked = props . statePath ? ( boundValue ?? false ) : localChecked ;
@@ -878,7 +878,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
878878 Radio : ( { props, emit } ) => {
879879 const options = props . options ?? [ ] ;
880880 const [ boundValue , setBoundValue ] = props . statePath
881- ? useStateBinding < string > ( props . statePath )
881+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
882882 : [ undefined , undefined ] ;
883883 const [ localValue , setLocalValue ] = useState ( options [ 0 ] ?? "" ) ;
884884 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
@@ -912,7 +912,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
912912
913913 Switch : ( { props, emit } ) => {
914914 const [ boundValue , setBoundValue ] = props . statePath
915- ? useStateBinding < boolean > ( props . statePath )
915+ ? useStateBinding < boolean > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
916916 : [ undefined , undefined ] ;
917917 const [ localChecked , setLocalChecked ] = useState ( ! ! props . checked ) ;
918918 const checked = props . statePath ? ( boundValue ?? false ) : localChecked ;
@@ -937,7 +937,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
937937
938938 Slider : ( { props, emit } ) => {
939939 const [ boundValue , setBoundValue ] = props . statePath
940- ? useStateBinding < number > ( props . statePath )
940+ ? useStateBinding < number > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
941941 : [ undefined , undefined ] ;
942942 const [ localValue , setLocalValue ] = useState ( props . min ?? 0 ) ;
943943 const value = props . statePath
@@ -1021,7 +1021,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
10211021
10221022 Toggle : ( { props, emit } ) => {
10231023 const [ boundValue , setBoundValue ] = props . statePath
1024- ? useStateBinding < boolean > ( props . statePath )
1024+ ? useStateBinding < boolean > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
10251025 : [ undefined , undefined ] ;
10261026 const [ localPressed , setLocalPressed ] = useState ( props . pressed ?? false ) ;
10271027 const pressed = props . statePath ? ( boundValue ?? false ) : localPressed ;
@@ -1045,7 +1045,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
10451045 const type = props . type ?? "single" ;
10461046 const items = props . items ?? [ ] ;
10471047 const [ boundValue , setBoundValue ] = props . statePath
1048- ? useStateBinding < string > ( props . statePath )
1048+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
10491049 : [ undefined , undefined ] ;
10501050 const [ localValue , setLocalValue ] = useState ( items [ 0 ] ?. value ?? "" ) ;
10511051 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
@@ -1086,7 +1086,7 @@ export const { registry, executeAction } = defineRegistry(playgroundCatalog, {
10861086 ButtonGroup : ( { props, emit } ) => {
10871087 const buttons = props . buttons ?? [ ] ;
10881088 const [ boundValue , setBoundValue ] = props . statePath
1089- ? useStateBinding < string > ( props . statePath )
1089+ ? useStateBinding < string > ( props . statePath ) // eslint-disable-line react-hooks/rules-of-hooks
10901090 : [ undefined , undefined ] ;
10911091 const [ localValue , setLocalValue ] = useState ( buttons [ 0 ] ?. value ?? "" ) ;
10921092 const value = props . statePath ? ( boundValue ?? "" ) : localValue ;
0 commit comments