@websolutespa/bom-mixer-ui 1.9.10 → 1.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-mixer-ui
2
2
 
3
+ ## 1.9.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: FieldCollection added columnProps
8
+
3
9
  ## 1.9.10
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -13118,7 +13118,11 @@ function FieldCollection(_ref) {
13118
13118
  let {
13119
13119
  collection,
13120
13120
  fields,
13121
- uid
13121
+ uid,
13122
+ columProps = control => ({
13123
+ xs: 12,
13124
+ sm: ['accept', 'checkbox', 'consent', 'implicit', 'textarea'].includes(control.schema) ? 12 : 6
13125
+ })
13122
13126
  } = _ref;
13123
13127
  const label = bomMixerHooks.useLabel();
13124
13128
  const controls = React.useMemo(() => {
@@ -13174,11 +13178,9 @@ function FieldCollection(_ref) {
13174
13178
  } else if (control instanceof bomMixerForms.FormGroup || control instanceof bomMixerForms.FormArray) {
13175
13179
  return resolveField(item);
13176
13180
  } else {
13177
- return jsxRuntime.jsx(StyledGrid, {
13178
- xs: 12,
13179
- sm: ['checkbox', 'accept'].includes(control.schema) ? 12 : 6,
13181
+ return jsxRuntime.jsx(StyledGrid, Object.assign({}, columProps(control), {
13180
13182
  children: resolveField(item)
13181
- }, getFieldUID(++uniqueId, item.key));
13183
+ }), getFieldUID(++uniqueId, item.key));
13182
13184
  }
13183
13185
  })]
13184
13186
  });