@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.
@@ -9311,10 +9311,11 @@ const MicroBanner = _ref => {
9311
9311
  const PERSISTENT_BANNER_THEME = {
9312
9312
  UPSELL: 'upsell',
9313
9313
  INFO: 'info',
9314
- DANGER: 'danger'
9314
+ DANGER: 'danger',
9315
+ WARNING: 'warning'
9315
9316
  };
9316
9317
 
9317
- var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR"};
9318
+ var styles$K = {"persistent-banner":"_FsCJQ","persistent-banner--info":"_zt-xK","persistent-banner--danger":"_rmUys","persistent-banner--upsell":"_UGrRR","persistent-banner--warning":"_9eFhn"};
9318
9319
 
9319
9320
  const PersistentBanner = ({
9320
9321
  theme: _theme = PERSISTENT_BANNER_THEME.INFO,
@@ -9338,22 +9339,23 @@ const PersistentBanner = ({
9338
9339
  justifyContent: "center",
9339
9340
  space: 8
9340
9341
  }, primaryButton && React__default.cloneElement(primaryButton, _extends({
9341
- theme: BUTTON_THEMES.HOLLOW_CONTRAST
9342
+ theme: _theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.DEFAULT : BUTTON_THEMES.HOLLOW_CONTRAST
9342
9343
  }, primaryButton.props)), secondaryButton && React__default.cloneElement(secondaryButton, _extends({
9343
- theme: BUTTON_THEMES.LINK_CONTRAST
9344
+ theme: _theme === PERSISTENT_BANNER_THEME.WARNING ? BUTTON_THEMES.LINK_PRIMARY : BUTTON_THEMES.LINK_CONTRAST
9344
9345
  }, secondaryButton.props))));
9345
9346
  return React__default.createElement("div", {
9346
9347
  className: classnames(styles$K['persistent-banner'], {
9347
9348
  [styles$K['persistent-banner--info']]: _theme === PERSISTENT_BANNER_THEME.INFO,
9348
9349
  [styles$K['persistent-banner--danger']]: _theme === PERSISTENT_BANNER_THEME.DANGER,
9349
- [styles$K['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL
9350
+ [styles$K['persistent-banner--upsell']]: _theme === PERSISTENT_BANNER_THEME.UPSELL,
9351
+ [styles$K['persistent-banner--warning']]: _theme === PERSISTENT_BANNER_THEME.WARNING
9350
9352
  }),
9351
9353
  "data-testid": testId
9352
9354
  }, onDismiss ? React__default.createElement(Inline, {
9353
9355
  flex: [1],
9354
9356
  alignItems: "center"
9355
9357
  }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
9356
- theme: "link-contrast",
9358
+ theme: _theme === PERSISTENT_BANNER_THEME.WARNING ? "link-primary" : "link-contrast",
9357
9359
  onClick: onDismiss
9358
9360
  }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
9359
9361
  };