@invoicebox/ui 0.1.0-alpha.281 → 0.1.0-alpha.283

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.
@@ -2,7 +2,7 @@ import { FC } from 'react';
2
2
  import { TProps as TInputLabelProps } from '../../InputLabel';
3
3
  import { TSizes } from '../../constants';
4
4
  import { CurrencyInputProps } from 'react-currency-input-field';
5
- export type TProps = Pick<CurrencyInputProps, 'allowNegativeValue' | 'onValueChange' | 'value' | 'defaultValue' | 'allowDecimals'> & Pick<TInputLabelProps, 'label' | 'disabled'> & {
5
+ export type TProps = Pick<CurrencyInputProps, 'allowNegativeValue' | 'onValueChange' | 'value' | 'defaultValue' | 'allowDecimals' | 'onBlur'> & Pick<TInputLabelProps, 'label' | 'disabled'> & {
6
6
  hasError?: boolean;
7
7
  required?: boolean;
8
8
  } & {
@@ -29,9 +29,12 @@ var CoreCurrencyInput = exports.CoreCurrencyInput = function CoreCurrencyInput(_
29
29
  disabled = _ref.disabled,
30
30
  _ref$required = _ref.required,
31
31
  required = _ref$required === void 0 ? false : _ref$required,
32
+ onBlur = _ref.onBlur,
32
33
  _ref$useModernStyles = _ref.useModernStyles,
33
34
  useModernStyles = _ref$useModernStyles === void 0 ? false : _ref$useModernStyles;
34
- var _useInputFocus = (0, _useInputFocus2.useInputFocus)(),
35
+ var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
36
+ onBlur: onBlur
37
+ }),
35
38
  inFocus = _useInputFocus.inFocus,
36
39
  handleFocus = _useInputFocus.handleFocus,
37
40
  handleBlur = _useInputFocus.handleBlur;
@@ -199,7 +199,7 @@ var PhoneInput = exports.PhoneInput = function PhoneInput(_ref) {
199
199
  required: required,
200
200
  useModernStyles: useModernStyles,
201
201
  size: size,
202
- left: 65
202
+ left: useModernStyles ? 65 : undefined
203
203
  }, /*#__PURE__*/_react["default"].createElement(S.InputLabelContent, null, !!(countrySelectOptions !== null && countrySelectOptions !== void 0 && countrySelectOptions.length) && /*#__PURE__*/_react["default"].createElement(S.InputLabelFloatWrapper, null, /*#__PURE__*/_react["default"].createElement(S.CountrySelectWrapper, null, /*#__PURE__*/_react["default"].createElement(_CountrySelect.CountrySelect, {
204
204
  minWidth: isMobile ? '100%' : '350px',
205
205
  options: countrySelectOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.281",
3
+ "version": "0.1.0-alpha.283",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {