ublo-lib 1.0.21 → 1.0.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.
@@ -29,7 +29,7 @@ const CookieConsent = ({
29
29
  setMounted(true);
30
30
 
31
31
  if (!isEnabled) {
32
- updateConsent(false);
32
+ updateConsent(true);
33
33
  }
34
34
  }
35
35
  }, [isEnabled, mounted]);
@@ -38,11 +38,18 @@ const getProps = (type, name, className, data, required, placeholder, autoSizing
38
38
  className,
39
39
  value: data[name].value,
40
40
  placeholder,
41
- required,
42
- autoSizing
41
+ required
43
42
  };
44
43
 
45
- if (type === "textarea" || type === "select") {
44
+ if (type === "textarea") {
45
+ return {
46
+ onValueChange: onChange,
47
+ autoSizing,
48
+ ...commonProps
49
+ };
50
+ }
51
+
52
+ if (type === "select") {
46
53
  return {
47
54
  onValueChange: onChange,
48
55
  ...commonProps
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "peerDependencies": {
5
5
  "react": "^18.2.0",
6
6
  "react-dom": "^18.2.0",