uikit-react-public 0.25.0 → 0.25.1
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/components/MenuNew/Menu.d.ts +1 -0
- package/dist/components/MenuNew/MenuBaseItem.d.ts +1 -1
- package/dist/components/MenuNew/PrimaryMenuItem.d.ts +2 -2
- package/dist/index.js +461 -437
- package/lib/components/MenuNew/Menu.tsx +12 -3
- package/lib/components/MenuNew/MenuBaseItem.tsx +28 -1
- package/lib/components/MenuNew/PrimaryMenuItem.tsx +3 -3
- package/lib/components/MenuNew/SecondaryMenuItem.tsx +7 -1
- package/lib/components/MenuNew/__tests__/Menu.test.tsx +51 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ import { default as SecondaryMenuItem, SecondaryMenuItemProps } from './Secondar
|
|
|
7
7
|
export declare const NAME = "ucl-uikit-menu";
|
|
8
8
|
export interface MenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
testId?: string;
|
|
10
|
+
border?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type { MenuDividerProps, MenuBaseItemProps, PrimaryMenuItemProps, SecondaryMenuItemProps, ActionMenuItemProps, };
|
|
12
13
|
interface MenuComponent extends NamedExoticComponent<MenuProps> {
|
|
@@ -3,5 +3,5 @@ export interface MenuBaseItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
icon?: ReactNode;
|
|
4
4
|
iconPosition?: 'left' | 'right';
|
|
5
5
|
}
|
|
6
|
-
declare const MenuBaseItem: ({ icon, iconPosition, className, children, ...props }: MenuBaseItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const MenuBaseItem: ({ icon, iconPosition, className, children, onClick, onKeyDown, role, tabIndex, ...props }: MenuBaseItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default MenuBaseItem;
|
|
@@ -3,7 +3,7 @@ import { MenuBaseItemProps } from './MenuBaseItem';
|
|
|
3
3
|
export declare const NAME = "ucl-uikit-menu__primary-item";
|
|
4
4
|
export interface PrimaryMenuItemProps extends Omit<MenuBaseItemProps, 'iconPosition'> {
|
|
5
5
|
asChild?: boolean;
|
|
6
|
-
|
|
6
|
+
trailingContent?: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
declare const PrimaryMenuItem: ({ className, children, asChild,
|
|
8
|
+
declare const PrimaryMenuItem: ({ className, children, asChild, trailingContent, ...props }: PrimaryMenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default PrimaryMenuItem;
|