@invoicebox/ui 0.1.0-alpha.145 → 0.1.0-alpha.147

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.
@@ -6,5 +6,6 @@ export type TProps = {
6
6
  hasError?: boolean;
7
7
  isLarge?: boolean;
8
8
  disabled?: boolean;
9
+ autoFocus?: boolean;
9
10
  };
10
11
  export declare const CodeInput: FC<TProps>;
@@ -25,7 +25,8 @@ var CodeInput = exports.CodeInput = function CodeInput(_ref) {
25
25
  value = _ref.value,
26
26
  _ref$isLarge = _ref.isLarge,
27
27
  isLarge = _ref$isLarge === void 0 ? true : _ref$isLarge,
28
- disabled = _ref.disabled;
28
+ disabled = _ref.disabled,
29
+ autoFocus = _ref.autoFocus;
29
30
  var palette = (0, _palette.useComponentPalette)('codeInput');
30
31
  var getCodeArrFromCodeString = function getCodeArrFromCodeString() {
31
32
  var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -93,7 +94,8 @@ var CodeInput = exports.CodeInput = function CodeInput(_ref) {
93
94
  onFocus: handleFocus,
94
95
  placeholder: "-",
95
96
  $hasError: hasError,
96
- disabled: !!disabled
97
+ disabled: !!disabled,
98
+ autoFocus: autoFocus
97
99
  });
98
100
  }));
99
101
  };
@@ -31,7 +31,8 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
31
31
  children = _ref.children,
32
32
  _ref$size = _ref.size,
33
33
  size = _ref$size === void 0 ? 'L' : _ref$size,
34
- isOnlyNumbers = _ref.isOnlyNumbers;
34
+ isOnlyNumbers = _ref.isOnlyNumbers,
35
+ autoFocus = _ref.autoFocus;
35
36
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
36
37
  onFocus: onFocus,
37
38
  onBlur: onBlur
@@ -58,6 +59,7 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
58
59
  placeholder: placeholder,
59
60
  paddingRight: paddingRight,
60
61
  type: type,
61
- isOnlyNumbers: isOnlyNumbers
62
+ isOnlyNumbers: isOnlyNumbers,
63
+ autoFocus: autoFocus
62
64
  }, _constants.SIZE_PADDING_MAP[size])), children && /*#__PURE__*/_react["default"].createElement(S.ChildrenWrapper, null, children)));
63
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.145",
3
+ "version": "0.1.0-alpha.147",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {