blue-react 9.1.7 → 9.1.8
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/MenuItem.js +5 -0
- package/dist/components/Outside.js +3 -1
- package/dist/style.css +46 -3
- package/dist/style.min.css +3 -3
- package/dist/style.scss +1 -1
- package/dist/styles/_layout.scss +4 -1
- package/dist/styles/mixins/_menu-item.scss +2 -0
- package/dist/styles/mixins/_sidebar.scss +8 -0
- package/dist/types/components/MenuItem.d.ts +4 -0
- package/dist/types/components/Outside.d.ts +3 -2
- package/package.json +1 -1
package/dist/style.scss
CHANGED
package/dist/styles/_layout.scss
CHANGED
|
@@ -74,6 +74,10 @@ export interface MenuItemProps {
|
|
|
74
74
|
* Defines dropdown status from outside.
|
|
75
75
|
*/
|
|
76
76
|
showDropdown?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Callback when `showDropdown` changes.
|
|
79
|
+
*/
|
|
80
|
+
onShowDropdown?: (showDropdown: boolean) => void;
|
|
77
81
|
/**
|
|
78
82
|
* Close on click outside.
|
|
79
83
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, MutableRefObject } from "react";
|
|
1
|
+
import { CSSProperties, MouseEventHandler, MutableRefObject } from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Hook that alerts clicks outside of the passed ref
|
|
4
4
|
*/
|
|
@@ -7,9 +7,10 @@ export interface OutsideProps {
|
|
|
7
7
|
children: any;
|
|
8
8
|
className?: string;
|
|
9
9
|
onClickOutside?: (event: MouseEvent) => void;
|
|
10
|
+
onClick?: MouseEventHandler<HTMLDivElement> | undefined;
|
|
10
11
|
style?: CSSProperties;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Component that fires an event if you click outside of it
|
|
14
15
|
*/
|
|
15
|
-
export default function Outside({ children, className, onClickOutside, style }: OutsideProps): JSX.Element;
|
|
16
|
+
export default function Outside({ children, className, onClickOutside, onClick, style }: OutsideProps): JSX.Element;
|