@bbl-digital/snorre 3.0.47 → 3.0.50

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bundle.js CHANGED
@@ -1028,8 +1028,10 @@
1028
1028
  children: props.label
1029
1029
  }), jsxRuntime$1.jsx("input", {
1030
1030
  type: type,
1031
+ ...(type !== 'password' && {
1032
+ value
1033
+ }),
1031
1034
  placeholder: props.placeholder,
1032
- value: value,
1033
1035
  disabled: props.disabled,
1034
1036
  autoFocus: props.focus,
1035
1037
  onBlur: props.onBlur,
@@ -64,8 +64,10 @@ const Input = /*#__PURE__*/React.forwardRef(({
64
64
  children: props.label
65
65
  }), _jsx("input", {
66
66
  type: type,
67
+ ...(type !== 'password' && {
68
+ value
69
+ }),
67
70
  placeholder: props.placeholder,
68
- value: value,
69
71
  disabled: props.disabled,
70
72
  autoFocus: props.focus,
71
73
  onBlur: props.onBlur,
@@ -64,8 +64,10 @@ const Input = /*#__PURE__*/React.forwardRef(({
64
64
  children: props.label
65
65
  }), _jsx("input", {
66
66
  type: type,
67
+ ...(type !== 'password' && {
68
+ value
69
+ }),
67
70
  placeholder: props.placeholder,
68
- value: value,
69
71
  disabled: props.disabled,
70
72
  autoFocus: props.focus,
71
73
  onBlur: props.onBlur,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "3.0.47",
3
+ "version": "3.0.50",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",