@invoicebox/ui 0.1.0-alpha.135 → 0.1.0-alpha.136

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.
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { TProps as PureInputProps } from '../PureInput';
3
- export type TProps = Pick<PureInputProps, 'placeholder' | 'hasBorder' | 'autoFocus' | 'name' | 'onFocus' | 'onBlur'> & {
3
+ export type TProps = Pick<PureInputProps, 'placeholder' | 'hasBorder' | 'autoFocus' | 'name' | 'onFocus' | 'onBlur' | 'isOnlyNumbers' | 'maxLength'> & {
4
4
  value: string;
5
5
  onChange: (value: string) => void;
6
6
  };
7
- export declare const SearchInput: React.ForwardRefExoticComponent<Pick<PureInputProps, "name" | "placeholder" | "autoFocus" | "onFocus" | "onBlur" | "hasBorder"> & {
7
+ export declare const SearchInput: React.ForwardRefExoticComponent<Pick<PureInputProps, "name" | "maxLength" | "placeholder" | "autoFocus" | "onFocus" | "onBlur" | "hasBorder" | "isOnlyNumbers"> & {
8
8
  value: string;
9
9
  onChange: (value: string) => void;
10
10
  } & React.RefAttributes<HTMLInputElement>>;
@@ -23,7 +23,9 @@ var SearchInput = exports.SearchInput = /*#__PURE__*/(0, _react.forwardRef)(func
23
23
  placeholder = _ref.placeholder,
24
24
  hasBorder = _ref.hasBorder,
25
25
  value = _ref.value,
26
- autoFocus = _ref.autoFocus;
26
+ autoFocus = _ref.autoFocus,
27
+ isOnlyNumbers = _ref.isOnlyNumbers,
28
+ maxLength = _ref.maxLength;
27
29
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
28
30
  onFocus: onFocus,
29
31
  onBlur: onBlur
@@ -49,7 +51,9 @@ var SearchInput = exports.SearchInput = /*#__PURE__*/(0, _react.forwardRef)(func
49
51
  onBlur: handleBlur,
50
52
  inFocus: inFocus,
51
53
  autoFocus: autoFocus,
52
- name: name
54
+ name: name,
55
+ maxLength: maxLength,
56
+ isOnlyNumbers: isOnlyNumbers
53
57
  }), /*#__PURE__*/_react["default"].createElement(S.IconWrapper, {
54
58
  $inFocus: inFocus,
55
59
  $palette: palette
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.135",
3
+ "version": "0.1.0-alpha.136",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {