ublo-lib 1.12.20 → 1.12.22

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.
@@ -22,9 +22,10 @@ const getOptions = (lang, options) => {
22
22
  disabled: true
23
23
  };
24
24
  const formatedOptions = options[lang].map(option => {
25
- const isTitle = option[0] === "-" && option[1] === "-";
25
+ const isTitle = option.startsWith("--");
26
+ const label = isTitle ? option.replace("--", "") : option;
26
27
  return {
27
- label: option,
28
+ label,
28
29
  value: option,
29
30
  disabled: isTitle
30
31
  };
@@ -68,13 +69,10 @@ const Field = ({
68
69
  required: required ? true : undefined,
69
70
  valid: isValid
70
71
  };
71
- const inputProps = {
72
- type
73
- };
74
72
  const Tag = getTag(type);
75
73
  const props = type === "textarea" || type === "select" ? commonProps : {
76
74
  ...commonProps,
77
- ...inputProps
75
+ type
78
76
  };
79
77
  const onChange = newValue => {
80
78
  const newData = isArray ? [...data] : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.12.20",
3
+ "version": "1.12.22",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^2.1.0",
6
6
  "leaflet": "^1.9.1",