@invoicebox/ui 0.1.0-alpha.125 → 0.1.0-alpha.126

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.
@@ -9,7 +9,7 @@ type TFieldProps = Pick<TPureInputProps, 'name' | 'onBlur' | 'onFocus'> & {
9
9
  };
10
10
  type TControlProps = Pick<TPureInputProps, 'disabled' | 'id'> & {
11
11
  label: string;
12
- countrySelectProps: Pick<TCountrySelectProps, 'selectedLabel' | 'placeholder'>;
12
+ countrySelectProps?: Pick<TCountrySelectProps, 'selectedLabel' | 'placeholder'>;
13
13
  onCountryChange?: (countryCode: string) => void;
14
14
  countries?: Array<{
15
15
  label: string;
@@ -151,12 +151,12 @@ var PhoneInput = exports.PhoneInput = function PhoneInput(_ref) {
151
151
  options: countrySelectOptions,
152
152
  onChange: handleCountryChange,
153
153
  value: country,
154
- placeholder: countrySelectProps.placeholder,
154
+ placeholder: (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.placeholder) || '',
155
155
  positionVertical: 16,
156
156
  positionRight: "0",
157
157
  positionLeft: "-20px",
158
158
  disabled: disabled,
159
- selectedLabel: countrySelectProps.selectedLabel
159
+ selectedLabel: (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.selectedLabel) || ''
160
160
  }))), /*#__PURE__*/_react["default"].createElement(_reactInputMask["default"], {
161
161
  value: inputValue,
162
162
  onFocus: focusHandler,
@@ -54,11 +54,7 @@ var Component = function Component(props) {
54
54
  };
55
55
  var commonProps = {
56
56
  disabled: false,
57
- label: 'Телефон',
58
- countrySelectProps: {
59
- placeholder: 'Поиск',
60
- selectedLabel: '(выбрано)'
61
- }
57
+ label: 'Телефон'
62
58
  };
63
59
  var MultiCountry = exports.MultiCountry = {
64
60
  args: _objectSpread(_objectSpread({}, commonProps), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.125",
3
+ "version": "0.1.0-alpha.126",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {