@7shifts/sous-chef 3.53.1 → 3.54.1

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.
@@ -13345,27 +13345,32 @@ var Chip = function Chip(_ref) {
13345
13345
  }, children);
13346
13346
  };
13347
13347
 
13348
- 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"};
13349
13349
 
13350
13350
  var PILL_THEME = {
13351
13351
  INFO: 'info',
13352
13352
  SUCCESS: 'success',
13353
13353
  DANGER: 'danger',
13354
13354
  WARNING: 'warning',
13355
- DEFAULT: 'default'
13355
+ DEFAULT: 'default',
13356
+ UPSELL: 'upsell'
13356
13357
  };
13357
13358
 
13358
- var Pill = function Pill(_ref) {
13359
+ var _excluded$2P = ["children", "theme", "testId"];
13360
+ var PillElement = function PillElement(_ref, forwardedRef) {
13359
13361
  var _classnames;
13360
13362
  var children = _ref.children,
13361
13363
  _ref$theme = _ref.theme,
13362
13364
  theme = _ref$theme === void 0 ? PILL_THEME.DEFAULT : _ref$theme,
13363
- testId = _ref.testId;
13364
- return React__default.createElement("div", {
13365
+ testId = _ref.testId,
13366
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2P);
13367
+ return React__default.createElement("div", _extends({
13365
13368
  "data-testid": testId,
13366
- 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
- }, children);
13369
+ ref: forwardedRef,
13370
+ 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))
13371
+ }, rest), children);
13368
13372
  };
13373
+ var Pill = forwardRef(PillElement);
13369
13374
 
13370
13375
  var EMPTY_STATE_SIZE = {
13371
13376
  SMALL: 'small',