@popmenu/ordering-ui 0.88.0 → 0.89.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.
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  interface DialogTitleProps {
3
3
  title: string;
4
4
  Icon?: ReactNode;
5
- onClose: () => void;
5
+ onClose?: () => void;
6
6
  }
7
7
  export declare const DialogTitle: (props: DialogTitleProps) => JSX.Element;
8
8
  export {};
package/build/index.es.js CHANGED
@@ -2092,8 +2092,8 @@ var DialogTitle = function (props) {
2092
2092
  React__default.createElement(Box, { display: "flex", alignItems: "center", gridGap: 16 },
2093
2093
  Icon && Icon,
2094
2094
  React__default.createElement(Typography$1, { component: "h1", variant: "h6" }, title)),
2095
- React__default.createElement(IconButton$1, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
2096
- React__default.createElement(SvgX, null))));
2095
+ onClose && (React__default.createElement(IconButton$1, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
2096
+ React__default.createElement(SvgX, null)))));
2097
2097
  };
2098
2098
 
2099
2099
  var DialogSection = function (props) {
package/build/index.js CHANGED
@@ -2135,8 +2135,8 @@ var DialogTitle = function (props) {
2135
2135
  React__default['default'].createElement(core.Box, { display: "flex", alignItems: "center", gridGap: 16 },
2136
2136
  Icon && Icon,
2137
2137
  React__default['default'].createElement(core.Typography, { component: "h1", variant: "h6" }, title)),
2138
- React__default['default'].createElement(core.IconButton, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
2139
- React__default['default'].createElement(SvgX, null))));
2138
+ onClose && (React__default['default'].createElement(core.IconButton, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
2139
+ React__default['default'].createElement(SvgX, null)))));
2140
2140
  };
2141
2141
 
2142
2142
  var DialogSection = function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/ordering-ui",
3
- "version": "0.88.0",
3
+ "version": "0.89.0",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components specifically for the popmenu Online Ordering web app.",
@@ -32,5 +32,5 @@
32
32
  "acorn-jsx": "^5.3.2"
33
33
  },
34
34
  "sideEffects": false,
35
- "gitHead": "ae5e5cf7351c2f8229674a2c370eb21e20f17637"
35
+ "gitHead": "5fa4718ede7a120d632846d18fffb5242d783c61"
36
36
  }