@popmenu/ordering-ui 0.86.0 → 0.87.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.
- package/build/index.es.js +7 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +7 -6
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -666,6 +666,9 @@ var classNames$1 = classnames$1.exports;
|
|
|
666
666
|
var iconStaticClassName = 'pop-icon';
|
|
667
667
|
var Icon = function (props) {
|
|
668
668
|
var icon = props.icon, className = props.className, restProps = __rest(props, ["icon", "className"]);
|
|
669
|
+
if (!restProps['aria-label'] && restProps['aria-hidden'] === undefined) {
|
|
670
|
+
restProps['aria-hidden'] = true;
|
|
671
|
+
}
|
|
669
672
|
var classes = useIconStyles(props);
|
|
670
673
|
var isValid = true;
|
|
671
674
|
if (!icon || (typeof icon === 'function' && icon({}) === undefined)) {
|
|
@@ -2083,9 +2086,9 @@ var useStyles$2 = core.makeStyles(function () { return ({
|
|
|
2083
2086
|
var MenuSection = React.forwardRef(function (props, ref) {
|
|
2084
2087
|
var name = props.name, children = props.children, restProps = __rest$1(props, ["name", "children"]);
|
|
2085
2088
|
var classes = useStyles$2();
|
|
2086
|
-
return (React__default['default'].createElement(core.Box, __assign$1({}, restProps, { ref: ref }, { "data-component-type": "menu-section" }),
|
|
2089
|
+
return (React__default['default'].createElement(core.Box, __assign$1({}, restProps, { ref: ref, component: 'section' }, { "data-component-type": "menu-section" }),
|
|
2087
2090
|
React__default['default'].createElement(core.Box, { marginTop: 1, marginBottom: 4 },
|
|
2088
|
-
React__default['default'].createElement(core.Typography, { className: classes.title }, name)),
|
|
2091
|
+
React__default['default'].createElement(core.Typography, { component: "h2", className: classes.title }, name)),
|
|
2089
2092
|
children));
|
|
2090
2093
|
});
|
|
2091
2094
|
MenuSection.displayName = 'MenuSection';
|
|
@@ -2126,7 +2129,7 @@ var DialogTitle = function (props) {
|
|
|
2126
2129
|
return (React__default['default'].createElement(core.DialogTitle, null,
|
|
2127
2130
|
React__default['default'].createElement(core.Box, { display: "flex", alignItems: "center", gridGap: 16 },
|
|
2128
2131
|
Icon && Icon,
|
|
2129
|
-
React__default['default'].createElement(core.Typography, { variant: "h6" }, title)),
|
|
2132
|
+
React__default['default'].createElement(core.Typography, { component: "h1", variant: "h6" }, title)),
|
|
2130
2133
|
React__default['default'].createElement(core.IconButton, { color: "inherit", className: classes.closeButton, "aria-label": "Close dialog", onClick: onClose },
|
|
2131
2134
|
React__default['default'].createElement(SvgX, null))));
|
|
2132
2135
|
};
|
|
@@ -2220,9 +2223,7 @@ var overrides = {
|
|
|
2220
2223
|
textTransform: 'none',
|
|
2221
2224
|
padding: '18px 16px',
|
|
2222
2225
|
},
|
|
2223
|
-
outlined: {
|
|
2224
|
-
padding: 'inherit',
|
|
2225
|
-
},
|
|
2226
|
+
outlined: {},
|
|
2226
2227
|
textPrimary: {
|
|
2227
2228
|
color: '#0076CB',
|
|
2228
2229
|
},
|