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

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.
@@ -16,7 +16,7 @@ type TControlProps = Pick<TPureInputProps, 'disabled' | 'id'> & {
16
16
  label: string;
17
17
  value: TSupportedCountries;
18
18
  }>;
19
- pureInputProps?: Pick<TPureInputProps, 'paddingTop' | 'paddingBottom'>;
19
+ pureInputProps?: Pick<TPureInputProps, 'paddingTop' | 'paddingBottom' | 'autoFocus'>;
20
20
  size?: TSizes;
21
21
  };
22
22
  export type TProps = TControlProps & TFieldProps;
@@ -2,7 +2,7 @@ import { FC, ReactNode } from 'react';
2
2
  import { TProps as TInputLabelProps } from '../InputLabel';
3
3
  import { TProps as TPureInputProps } from '../PureInput';
4
4
  import { TSizes } from '../constants';
5
- export type TProps = Pick<TInputLabelProps, 'label'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers'> & {
5
+ export type TProps = Pick<TInputLabelProps, 'label'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus'> & {
6
6
  value: string;
7
7
  onChange: (value: string) => void;
8
8
  maxLength?: number;
@@ -113,6 +113,10 @@ var Validate = exports.Validate = /*#__PURE__*/function () {
113
113
  }, {
114
114
  key: "registrationNumber",
115
115
  value: function registrationNumber(value, path, vatNumber, countryId, createError) {
116
+ if (!vatNumber || !countryId) {
117
+ // eslint-disable-next-line no-console
118
+ console.error('Form dont have vatNumber or countryId');
119
+ }
116
120
  if (value === '') {
117
121
  return true;
118
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.144",
3
+ "version": "0.1.0-alpha.145",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {