@aurora-ds/components 0.15.2 → 0.15.4

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.
@@ -1,9 +1,9 @@
1
- import { ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  import { AnchorOrigin } from '@hooks/useAnchorPosition.types';
3
3
  export type MenuProps = {
4
4
  anchor: HTMLElement | null;
5
5
  onClose: () => void;
6
6
  children: ReactNode;
7
7
  anchorOrigin?: AnchorOrigin;
8
- width?: string;
8
+ width?: CSSProperties['width'];
9
9
  };
package/dist/cjs/index.js CHANGED
@@ -1438,7 +1438,7 @@ const MENU_ITEM_STYLES = theme.createStyles((theme) => ({
1438
1438
  }));
1439
1439
 
1440
1440
  const MenuItem = ({ label, icon, onClick, textColor, iconColor }) => {
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
+ return (jsxRuntime.jsxs("button", { className: MENU_ITEM_STYLES.root, onClick: onClick, children: [icon && (jsxRuntime.jsx(Icon, { color: iconColor ?? 'text', size: 'sm', children: icon })), jsxRuntime.jsx(Text, { variant: 'label', color: textColor ?? 'text', maxLines: 1, fontSize: 'sm', children: label })] }));
1442
1442
  };
1443
1443
  MenuItem.displayName = 'MenuItem';
1444
1444