@invoicebox/ui 0.1.0-alpha.146 → 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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.146",
3
+ "version": "0.1.0-alpha.147",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {