ublo-lib 1.20.4 → 1.20.6

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.
@@ -131,7 +131,7 @@ function CustomContactForm({
131
131
  data: data,
132
132
  setData: setData,
133
133
  settings: settings,
134
- presets: presets?.values
134
+ presets: presets
135
135
  }, key))
136
136
  }), _jsxs("div", {
137
137
  className: css.bottom,
@@ -35,7 +35,8 @@ export default function Field({
35
35
  } = field;
36
36
  const [activated, setActivated] = React.useState(false);
37
37
  const [valid, setValid] = React.useState(!required || false);
38
- const disabled = presets && Object.keys(presets).includes(name);
38
+ const presetValues = presets?.values;
39
+ const disablePresetedFields = presetValues && presets?.disableFields !== false && Object.keys(presets.values).includes(name);
39
40
  const isTitle = type === "title";
40
41
  const classes = classNames({
41
42
  [css.fieldFullWidth]: isTitle || fullWidth,
@@ -65,7 +66,7 @@ export default function Field({
65
66
  field: field,
66
67
  data: data,
67
68
  setData: setData,
68
- disabled: disabled,
69
+ disabled: disablePresetedFields,
69
70
  activated: activated,
70
71
  setActivated: setActivated,
71
72
  valid: valid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.20.4",
3
+ "version": "1.20.6",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.1.5",
6
6
  "leaflet": "^1.9.1",