@7shifts/sous-chef 3.54.0 → 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.
@@ -13356,17 +13356,21 @@ var PILL_THEME = {
13356
13356
  UPSELL: 'upsell'
13357
13357
  };
13358
13358
 
13359
- var Pill = function Pill(_ref) {
13359
+ var _excluded$2P = ["children", "theme", "testId"];
13360
+ var PillElement = function PillElement(_ref, forwardedRef) {
13360
13361
  var _classnames;
13361
13362
  var children = _ref.children,
13362
13363
  _ref$theme = _ref.theme,
13363
13364
  theme = _ref$theme === void 0 ? PILL_THEME.DEFAULT : _ref$theme,
13364
- testId = _ref.testId;
13365
- return React__default.createElement("div", {
13365
+ testId = _ref.testId,
13366
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$2P);
13367
+ return React__default.createElement("div", _extends({
13366
13368
  "data-testid": testId,
13369
+ ref: forwardedRef,
13367
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))
13368
- }, children);
13371
+ }, rest), children);
13369
13372
  };
13373
+ var Pill = forwardRef(PillElement);
13370
13374
 
13371
13375
  var EMPTY_STATE_SIZE = {
13372
13376
  SMALL: 'small',