@@ -111,15 +111,15 @@ public function getForm(): array
111111 Forms \Components \Toggle::make ('config.reorderableWithButtons ' )
112112 ->label (__ ('Reorderable with buttons ' ))
113113 ->dehydrated ()
114- ->disabled (fn (Forms \Get $ get ): bool => $ get ('config.reorderable ' ) === false )
114+ ->disabled (fn (Forms \Get $ get ): bool => $ get ('config.reorderable ' ) === false )
115115 ->inline (false ),
116116 ]),
117117 Forms \Components \Toggle::make ('config.collapsible ' )
118118 ->label (__ ('Collapsible ' ))
119119 ->inline (false ),
120120 Forms \Components \Toggle::make ('config.collapsed ' )
121121 ->label (__ ('Collapsed ' ))
122- ->visible (fn (Forms \Get $ get ): bool => $ get ('config.collapsible ' ) === true )
122+ ->visible (fn (Forms \Get $ get ): bool => $ get ('config.collapsible ' ) === true )
123123 ->inline (false ),
124124 Forms \Components \Toggle::make ('config.cloneable ' )
125125 ->label (__ ('Cloneable ' ))
@@ -138,9 +138,9 @@ public function getForm(): array
138138 ->live (debounce: 250 )
139139 ->labelKey ('name ' )
140140 ->maxDepth (0 )
141- ->addable (fn (string $ operation ) => $ operation !== 'create ' )
142- ->disabled (fn (string $ operation ) => $ operation === 'create ' )
143- ->hint (fn (string $ operation ) => $ operation === 'create ' ? __ ('Fields can be added once the field is created. ' ) : '' )
141+ ->addable (fn (string $ operation ) => $ operation !== 'create ' )
142+ ->disabled (fn (string $ operation ) => $ operation === 'create ' )
143+ ->hint (fn (string $ operation ) => $ operation === 'create ' ? __ ('Fields can be added once the field is created. ' ) : '' )
144144 ->hintColor ('primary ' )
145145 ->form ([
146146 Section::make ('Field ' )
@@ -155,7 +155,7 @@ public function getForm(): array
155155 ->required ()
156156 ->placeholder (__ ('Name ' ))
157157 ->live (debounce: 250 )
158- ->afterStateUpdated (fn (Set $ set , ?string $ state ) => $ set ('slug ' , Str::slug ($ state ))),
158+ ->afterStateUpdated (fn (Set $ set , ?string $ state ) => $ set ('slug ' , Str::slug ($ state ))),
159159 TextInput::make ('slug ' )
160160 ->readonly (),
161161 Select::make ('field_type ' )
@@ -185,10 +185,10 @@ function () {
185185 ])->columnSpanFull (),
186186 Section::make ('Configuration ' )
187187 ->columns (3 )
188- ->schema (fn (Get $ get ) => $ this ->getFieldTypeFormSchema (
188+ ->schema (fn (Get $ get ) => $ this ->getFieldTypeFormSchema (
189189 $ get ('field_type ' )
190190 ))
191- ->visible (fn (Get $ get ) => filled ($ get ('field_type ' ))),
191+ ->visible (fn (Get $ get ) => filled ($ get ('field_type ' ))),
192192 ]),
193193 ])->columns (2 ),
194194 ])->columnSpanFull (),
0 commit comments