@invoicebox/ui 0.1.0-alpha.196 → 0.1.0-alpha.198

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.
@@ -96,7 +96,8 @@ var CodeInput = exports.CodeInput = function CodeInput(_ref) {
96
96
  $hasError: hasError,
97
97
  disabled: !!disabled,
98
98
  autoFocus: autoFocus,
99
- autoComplete: 'one-time-code'
99
+ autoComplete: 'one-time-code',
100
+ type: "text"
100
101
  });
101
102
  }));
102
103
  };
@@ -27,19 +27,18 @@ var meta = {
27
27
  }
28
28
  };
29
29
  var _default = exports["default"] = meta;
30
+ var COMMON_ARGS = {
31
+ hasError: false,
32
+ codeLength: 4,
33
+ value: '12',
34
+ disabled: false,
35
+ autoFocus: true
36
+ };
30
37
  var Default = exports.Default = {
31
- args: {
32
- hasError: false,
33
- codeLength: 4,
34
- value: '12',
35
- disabled: false
36
- }
38
+ args: COMMON_ARGS
37
39
  };
38
40
  var Live = exports.Live = {
39
- args: {
40
- hasError: false,
41
- codeLength: 4
42
- },
41
+ args: COMMON_ARGS,
43
42
  render: function Render(args) {
44
43
  var _useState = (0, _react.useState)(''),
45
44
  _useState2 = _slicedToArray(_useState, 2),
@@ -18,6 +18,7 @@ var Default = exports.Default = {
18
18
  hasError: false,
19
19
  inFocus: false,
20
20
  hasBorder: true,
21
- placeholder: 'Введите текст'
21
+ placeholder: 'Введите текст',
22
+ autoFocus: false
22
23
  }
23
24
  };
@@ -44,7 +44,8 @@ var Default = exports.Default = {
44
44
  placeholder: 'Placeholder',
45
45
  disabled: false,
46
46
  children: /*#__PURE__*/_react["default"].createElement("div", null, "Children"),
47
- size: 'L'
47
+ size: 'L',
48
+ autoFocus: false
48
49
  },
49
50
  render: Component
50
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.196",
3
+ "version": "0.1.0-alpha.198",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {