@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.
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/media/Pill/Pill.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13360,17 +13360,21 @@ var PILL_THEME = {
|
|
|
13360
13360
|
UPSELL: 'upsell'
|
|
13361
13361
|
};
|
|
13362
13362
|
|
|
13363
|
-
var
|
|
13363
|
+
var _excluded$2P = ["children", "theme", "testId"];
|
|
13364
|
+
var PillElement = function PillElement(_ref, forwardedRef) {
|
|
13364
13365
|
var _classnames;
|
|
13365
13366
|
var children = _ref.children,
|
|
13366
13367
|
_ref$theme = _ref.theme,
|
|
13367
13368
|
theme = _ref$theme === void 0 ? PILL_THEME.DEFAULT : _ref$theme,
|
|
13368
|
-
testId = _ref.testId
|
|
13369
|
-
|
|
13369
|
+
testId = _ref.testId,
|
|
13370
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2P);
|
|
13371
|
+
return React__default.createElement("div", _extends({
|
|
13370
13372
|
"data-testid": testId,
|
|
13373
|
+
ref: forwardedRef,
|
|
13371
13374
|
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))
|
|
13372
|
-
}, children);
|
|
13375
|
+
}, rest), children);
|
|
13373
13376
|
};
|
|
13377
|
+
var Pill = React.forwardRef(PillElement);
|
|
13374
13378
|
|
|
13375
13379
|
var EMPTY_STATE_SIZE = {
|
|
13376
13380
|
SMALL: 'small',
|