@touchtech/baselayer-ui 2.21.29-alpha → 2.21.30-alpha

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,8 +1,4 @@
1
1
  import { ReactNode, RefObject } from "react";
2
- export declare type MenuPlacement = {
3
- horizontal: "right" | "left";
4
- vertical: "top" | "bottom";
5
- };
6
2
  declare type MenuProps = {
7
3
  children: ReactNode;
8
4
  containerRef?: RefObject<HTMLDivElement>;
@@ -1,5 +1,8 @@
1
1
  import React, { ReactNode, ReactElement } from "react";
2
- import { MenuPlacement } from "./Menu";
2
+ export declare type MenuPlacement = {
3
+ horizontal: "right" | "left";
4
+ vertical: "top" | "bottom";
5
+ };
3
6
  declare type MenuContainerProps = {
4
7
  children: ReactNode;
5
8
  button?: ReactElement;
@@ -1,10 +1,10 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode, SyntheticEvent } from "react";
2
2
  declare type MenuItemProps = {
3
3
  children: ReactNode;
4
4
  className?: string;
5
5
  isActive?: boolean;
6
6
  noPadding?: boolean;
7
- onClick?: () => void;
7
+ onClick?: (event?: SyntheticEvent<HTMLLIElement>) => void;
8
8
  };
9
9
  declare function MenuItem({ children, className, onClick, noPadding, isActive, }: MenuItemProps): JSX.Element;
10
10
  export default MenuItem;
@@ -1,4 +1,4 @@
1
- export { default as Menu, MenuPlacement } from "./Menu";
2
- export { default as MenuContainer } from "./MenuContainer";
1
+ export { default as Menu } from "./Menu";
2
+ export { default as MenuContainer, MenuPlacement } from "./MenuContainer";
3
3
  export { default as MenuItem } from "./MenuItem";
4
4
  export { default as MenuLinkItem } from "./MenuLinkItem";