@invoicebox/ui 0.1.0-alpha.254 → 0.1.0-alpha.255

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.
@@ -20,6 +20,7 @@ type TControlProps = Pick<TPureInputProps, 'disabled' | 'id' | 'autoFocus'> & {
20
20
  size?: TSizes;
21
21
  isSupportCityRusPhoneNumber?: boolean;
22
22
  isInnerErrorHighlight?: boolean;
23
+ required?: boolean;
23
24
  };
24
25
  export type TProps = TControlProps & TFieldProps;
25
26
  export declare const PhoneInput: FC<TProps>;
@@ -47,7 +47,9 @@ var PhoneInput = exports.PhoneInput = function PhoneInput(_ref) {
47
47
  _ref$isSupportCityRus = _ref.isSupportCityRusPhoneNumber,
48
48
  isSupportCityRusPhoneNumber = _ref$isSupportCityRus === void 0 ? false : _ref$isSupportCityRus,
49
49
  _ref$isInnerErrorHigh = _ref.isInnerErrorHighlight,
50
- isInnerErrorHighlight = _ref$isInnerErrorHigh === void 0 ? true : _ref$isInnerErrorHigh;
50
+ isInnerErrorHighlight = _ref$isInnerErrorHigh === void 0 ? true : _ref$isInnerErrorHigh,
51
+ _ref$required = _ref.required,
52
+ required = _ref$required === void 0 ? false : _ref$required;
51
53
  var inputRef = (0, _react.useRef)();
52
54
  var isMobile = (0, _useMedia.useMobile)();
53
55
  var phoneInputLogic = (0, _react.useMemo)(function () {
@@ -162,7 +164,8 @@ var PhoneInput = exports.PhoneInput = function PhoneInput(_ref) {
162
164
  return /*#__PURE__*/_react["default"].createElement(_InputLabel.InputLabel, {
163
165
  inFocus: inFocus,
164
166
  label: label,
165
- disabled: disabled
167
+ disabled: disabled,
168
+ required: required
166
169
  }, /*#__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, {
167
170
  minWidth: isMobile ? '100%' : '350px',
168
171
  options: countrySelectOptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.254",
3
+ "version": "0.1.0-alpha.255",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {