@7shifts/sous-chef 3.85.0 → 3.86.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 CHANGED
@@ -9132,10 +9132,11 @@ var MicroBanner = function MicroBanner(_ref) {
9132
9132
  var PERSISTENT_BANNER_THEME = {
9133
9133
  UPSELL: 'upsell',
9134
9134
  INFO: 'info',
9135
- DANGER: 'danger'
9135
+ DANGER: 'danger',
9136
+ WARNING: 'warning'
9136
9137
  };
9137
9138
 
9138
- var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR"};
9139
+ var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn"};
9139
9140
 
9140
9141
  var PersistentBanner = function PersistentBanner(_ref) {
9141
9142
  var _classNames;
@@ -9161,19 +9162,19 @@ var PersistentBanner = function PersistentBanner(_ref) {
9161
9162
  justifyContent: "center",
9162
9163
  space: 8
9163
9164
  }, primaryButton && React__default["default"].cloneElement(primaryButton, _extends({
9164
- theme: BUTTON_THEMES.HOLLOW_CONTRAST
9165
+ theme: theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.DEFAULT : BUTTON_THEMES.HOLLOW_CONTRAST
9165
9166
  }, primaryButton.props)), secondaryButton && React__default["default"].cloneElement(secondaryButton, _extends({
9166
- theme: BUTTON_THEMES.LINK_CONTRAST
9167
+ theme: theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.LINK_PRIMARY : BUTTON_THEMES.LINK_CONTRAST
9167
9168
  }, secondaryButton.props))));
9168
9169
  };
9169
9170
  return React__default["default"].createElement("div", {
9170
- className: classnames__default["default"](styles$K['persistent-banner'], (_classNames = {}, _classNames[styles$K['persistent-banner--info']] = theme === PERSISTENT_BANNER_THEME.INFO, _classNames[styles$K['persistent-banner--danger']] = theme === PERSISTENT_BANNER_THEME.DANGER, _classNames[styles$K['persistent-banner--upsell']] = theme === PERSISTENT_BANNER_THEME.UPSELL, _classNames)),
9171
+ className: classnames__default["default"](styles$K['persistent-banner'], (_classNames = {}, _classNames[styles$K['persistent-banner--info']] = theme === PERSISTENT_BANNER_THEME.INFO, _classNames[styles$K['persistent-banner--danger']] = theme === PERSISTENT_BANNER_THEME.DANGER, _classNames[styles$K['persistent-banner--upsell']] = theme === PERSISTENT_BANNER_THEME.UPSELL, _classNames[styles$K['persistent-banner--warning']] = theme === PERSISTENT_BANNER_THEME.WARNING, _classNames)),
9171
9172
  "data-testid": testId
9172
9173
  }, onDismiss ? React__default["default"].createElement(Inline, {
9173
9174
  flex: [1],
9174
9175
  alignItems: "center"
9175
9176
  }, React__default["default"].createElement(BannerContent, null), React__default["default"].createElement(Button, {
9176
- theme: "link-contrast",
9177
+ theme: theme === PERSISTENT_BANNER_THEME.WARNING ? "link-primary" : "link-contrast",
9177
9178
  onClick: onDismiss
9178
9179
  }, React__default["default"].createElement(IconTimes, null))) : React__default["default"].createElement(BannerContent, null));
9179
9180
  };