@invoicebox/ui 0.1.0-alpha.270 → 0.1.0-alpha.273

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.
@@ -4,6 +4,7 @@ import { TSizes } from '../../constants';
4
4
  import { CurrencyInputProps } from 'react-currency-input-field';
5
5
  export type TProps = Pick<CurrencyInputProps, 'allowNegativeValue' | 'onValueChange' | 'value' | 'defaultValue' | 'allowDecimals'> & Pick<TInputLabelProps, 'label' | 'disabled'> & {
6
6
  hasError?: boolean;
7
+ required?: boolean;
7
8
  } & {
8
9
  size?: TSizes;
9
10
  };
@@ -24,7 +24,9 @@ var CoreCurrencyInput = exports.CoreCurrencyInput = function CoreCurrencyInput(_
24
24
  defaultValue = _ref.defaultValue,
25
25
  _ref$allowDecimals = _ref.allowDecimals,
26
26
  allowDecimals = _ref$allowDecimals === void 0 ? true : _ref$allowDecimals,
27
- disabled = _ref.disabled;
27
+ disabled = _ref.disabled,
28
+ _ref$required = _ref.required,
29
+ required = _ref$required === void 0 ? false : _ref$required;
28
30
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)(),
29
31
  inFocus = _useInputFocus.inFocus,
30
32
  handleFocus = _useInputFocus.handleFocus,
@@ -37,7 +39,8 @@ var CoreCurrencyInput = exports.CoreCurrencyInput = function CoreCurrencyInput(_
37
39
  return /*#__PURE__*/_react["default"].createElement(_InputLabel.InputLabel, {
38
40
  inFocus: inFocus,
39
41
  label: label,
40
- disabled: disabled
42
+ disabled: disabled,
43
+ required: required
41
44
  }, /*#__PURE__*/_react["default"].createElement(_styles.StyledCurrencyInputFromLibrary, {
42
45
  $palette: palette,
43
46
  $hasBorder: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.270",
3
+ "version": "0.1.0-alpha.273",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {