@awell-health/ui-library 0.1.118 → 0.1.119

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37360,11 +37360,12 @@ Check the top-level render call using <` + t + ">.");
37360
37360
  countries: countries,
37361
37361
  forceDialCode: forceDialCode,
37362
37362
  onPhoneUpdate: function (phone) {
37363
+ var _a, _b;
37363
37364
  if (touched && phone.length > 3) {
37364
37365
  onChange({ target: { value: phone } });
37365
37366
  } else
37366
37367
  {
37367
- onChange({ target: { value: '' } });
37368
+ onChange({ target: { value: (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : '' } });
37368
37369
  }
37369
37370
  } }),
37370
37371
  phone = _e.phone,handlePhoneValueChange = _e.handlePhoneValueChange,inputRef = _e.inputRef,country = _e.country,setCountry = _e.setCountry;
@@ -37381,9 +37382,6 @@ Check the top-level render call using <` + t + ">.");
37381
37382
  var onPaste = function (e) {
37382
37383
  var _a;
37383
37384
  var phoneNumber = (_a = e.clipboardData.getData('text')) !== null && _a !== void 0 ? _a : '';
37384
- if (!touched) {
37385
- setTouched(true);
37386
- }
37387
37385
  if (phoneNumber.includes('+')) {
37388
37386
  if (inputRef.current) {
37389
37387
  inputRef.current.value = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awell-health/ui-library",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "UI components to integrate with Awell Health",
5
5
  "repository": {
6
6
  "type": "git",