@7shifts/sous-chef 3.53.0 → 3.54.0

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.
@@ -13125,8 +13125,7 @@ var PhoneField$1 = function PhoneField(_ref) {
13125
13125
  }
13126
13126
  };
13127
13127
  var handlePhoneChange = function handlePhoneChange(e) {
13128
- var formatedPhone = new AsYouType(selectedCountry).input(e.target.value);
13129
- e.target.value = formatedPhone;
13128
+ var formatedPhone = metaData.phone.length < e.target.value.length ? new AsYouType(selectedCountry).input(e.target.value) : e.target.value;
13130
13129
  var internationalPhone = '';
13131
13130
  var parseError = null;
13132
13131
  try {
@@ -13346,14 +13345,15 @@ var Chip = function Chip(_ref) {
13346
13345
  }, children);
13347
13346
  };
13348
13347
 
13349
- var styles$1i = {"pill":"_1vA9B","pill--default":"_2mTVo","pill--success":"_3CYqE","pill--danger":"_1WFdK","pill--warning":"_1Mp_n","pill--info":"_10zFn"};
13348
+ var styles$1i = {"pill":"_1vA9B","pill--default":"_2mTVo","pill--success":"_3CYqE","pill--danger":"_1WFdK","pill--warning":"_1Mp_n","pill--info":"_10zFn","pill--upsell":"_PfRFD"};
13350
13349
 
13351
13350
  var PILL_THEME = {
13352
13351
  INFO: 'info',
13353
13352
  SUCCESS: 'success',
13354
13353
  DANGER: 'danger',
13355
13354
  WARNING: 'warning',
13356
- DEFAULT: 'default'
13355
+ DEFAULT: 'default',
13356
+ UPSELL: 'upsell'
13357
13357
  };
13358
13358
 
13359
13359
  var Pill = function Pill(_ref) {
@@ -13364,7 +13364,7 @@ var Pill = function Pill(_ref) {
13364
13364
  testId = _ref.testId;
13365
13365
  return React__default.createElement("div", {
13366
13366
  "data-testid": testId,
13367
- className: classnames(styles$1i['pill'], (_classnames = {}, _classnames[styles$1i['pill--default']] = theme === PILL_THEME.DEFAULT, _classnames[styles$1i['pill--warning']] = theme === PILL_THEME.WARNING, _classnames[styles$1i['pill--success']] = theme === PILL_THEME.SUCCESS, _classnames[styles$1i['pill--danger']] = theme === PILL_THEME.DANGER, _classnames[styles$1i['pill--info']] = theme === PILL_THEME.INFO, _classnames))
13367
+ className: classnames(styles$1i['pill'], (_classnames = {}, _classnames[styles$1i['pill--default']] = theme === PILL_THEME.DEFAULT, _classnames[styles$1i['pill--warning']] = theme === PILL_THEME.WARNING, _classnames[styles$1i['pill--success']] = theme === PILL_THEME.SUCCESS, _classnames[styles$1i['pill--danger']] = theme === PILL_THEME.DANGER, _classnames[styles$1i['pill--info']] = theme === PILL_THEME.INFO, _classnames[styles$1i['pill--upsell']] = theme === PILL_THEME.UPSELL, _classnames))
13368
13368
  }, children);
13369
13369
  };
13370
13370