@aurora-ds/components 0.15.1 → 0.15.2
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/cjs/index.js +3 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1427,7 +1427,8 @@ const MENU_ITEM_STYLES = theme.createStyles((theme) => ({
|
|
|
1427
1427
|
outline: 'none',
|
|
1428
1428
|
border: 'none',
|
|
1429
1429
|
cursor: 'pointer',
|
|
1430
|
-
|
|
1430
|
+
minHeight: MENU_ITEM_SIZE,
|
|
1431
|
+
maxHeight: MENU_ITEM_SIZE,
|
|
1431
1432
|
flexShrink: 0,
|
|
1432
1433
|
transition: 'background-color 150ms ease-in-out',
|
|
1433
1434
|
':hover': {
|
|
@@ -1437,7 +1438,7 @@ const MENU_ITEM_STYLES = theme.createStyles((theme) => ({
|
|
|
1437
1438
|
}));
|
|
1438
1439
|
|
|
1439
1440
|
const MenuItem = ({ label, icon, onClick, textColor, iconColor }) => {
|
|
1440
|
-
return (jsxRuntime.jsxs("button", { className: MENU_ITEM_STYLES.root, onClick: onClick, children: [icon && (jsxRuntime.jsx(Icon, { color: iconColor ?? 'text', children: icon })), jsxRuntime.jsx(Text, { variant: 'label', color: textColor ?? 'text', children: label })] }));
|
|
1441
|
+
return (jsxRuntime.jsxs("button", { className: MENU_ITEM_STYLES.root, onClick: onClick, children: [icon && (jsxRuntime.jsx(Icon, { color: iconColor ?? 'text', children: icon })), jsxRuntime.jsx(Text, { variant: 'label', color: textColor ?? 'text', maxLines: 1, children: label })] }));
|
|
1441
1442
|
};
|
|
1442
1443
|
MenuItem.displayName = 'MenuItem';
|
|
1443
1444
|
|