@@ -15,6 +15,7 @@ export type InputCreatorProps = {
1515 namePrefix ?: string
1616 stepId ?: string
1717 disabled ?: boolean
18+ parentType ?: string
1819}
1920
2021type RawOption = {
@@ -26,7 +27,7 @@ const optionGenerator = (options: RawOption[]): IFieldDropdownOption[] =>
2627 options ?. map ( ( { name, value } ) => ( { label : name as string , value : value } ) )
2728
2829export default function InputCreator ( props : InputCreatorProps ) : JSX . Element {
29- const { schema, namePrefix, stepId, disabled } = props
30+ const { schema, namePrefix, stepId, disabled, parentType } = props
3031
3132 const {
3233 key : name ,
@@ -114,8 +115,10 @@ export default function InputCreator(props: InputCreatorProps): JSX.Element {
114115 description = { description }
115116 disabled = { disabled }
116117 placeholder = { placeholder }
117- isSingleLine = { schema . isSingleLine }
118- customStyle = { schema . customStyle }
118+ isSingleLine = { parentType === 'multicol' }
119+ customStyle = {
120+ parentType === 'multicol' ? { flex : 1 , minWidth : 0 } : { }
121+ }
119122 variablesEnabled
120123 />
121124 )
@@ -135,7 +138,7 @@ export default function InputCreator(props: InputCreatorProps): JSX.Element {
135138 description = { description }
136139 clickToCopy = { clickToCopy }
137140 autoComplete = { schema . autoComplete }
138- customStyle = { schema . customStyle }
141+ customStyle = { parentType === 'multicol' ? { flex : 0.5 } : { } }
139142 />
140143 )
141144 }
@@ -160,9 +163,9 @@ export default function InputCreator(props: InputCreatorProps): JSX.Element {
160163 description = { description }
161164 subFields = { schema . subFields }
162165 required = { required }
163- customButtonText = { schema . customButtonText }
166+ addRowButtonText = { schema . addRowButtonText }
164167 hideBlankRow = { schema . hideBlankRow }
165- showDivider = { schema . showDivider }
168+ showDivider = { type !== 'multirow-multicol' }
166169 type = { type }
167170 // These are InputCreatorProps which MultiRow will forward.
168171 stepId = { stepId }
0 commit comments