@7shifts/sous-chef 3.54.1 → 3.55.0

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.
@@ -8,7 +8,7 @@ export type EmptyStateProps = {
8
8
  /** Sets the body text */
9
9
  children?: ReactNode;
10
10
  /** Path to the image/gif to display */
11
- mediaUrl: string;
11
+ mediaUrl?: string;
12
12
  /** Caption that appears below the CTAs */
13
13
  actions?: {
14
14
  primary?: React.ReactElement;
package/dist/index.js CHANGED
@@ -8922,7 +8922,7 @@ var EmptyStateContainerStack = function EmptyStateContainerStack(_ref) {
8922
8922
  return React__default.createElement("div", {
8923
8923
  className: styles$N['empty-state-container-stack'],
8924
8924
  "data-testid": testId
8925
- }, mediaComponent ? mediaComponent : React__default.createElement("img", {
8925
+ }, mediaComponent ? mediaComponent : mediaUrl && React__default.createElement("img", {
8926
8926
  src: mediaUrl,
8927
8927
  alt: String(title),
8928
8928
  width: "200px"
@@ -13422,7 +13422,7 @@ var EmptyStateContainerInline = function EmptyStateContainerInline(_ref) {
13422
13422
  isInsideModal: isInsideModal
13423
13423
  }), caption && React__default.createElement(Text, {
13424
13424
  as: "caption"
13425
- }, caption))), React__default.createElement("div", {
13425
+ }, caption))), mediaUrl && React__default.createElement("div", {
13426
13426
  className: styles$1j['empty-state-container-inline__image']
13427
13427
  }, React__default.createElement("img", {
13428
13428
  src: mediaUrl,