@aiquants/menu-bar 1.18.0 → 1.18.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/elements/MenuSwitch.d.ts +14 -6
- package/dist/index.es.js +242 -237
- package/dist/index.umd.js +2 -2
- package/dist/styles/menu-bar.css +1 -1
- package/dist/styles/menu-bar.standalone.css +1 -1
- package/package.json +1 -1
- package/src/components/SessionInfo.tsx +12 -12
- package/src/elements/MenuSwitch.tsx +68 -52
- package/src/styles/menu-bar.css +4 -11
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Theme } from '../types';
|
|
2
2
|
|
|
3
|
-
interface IMenuSwitchProps {
|
|
4
|
-
|
|
3
|
+
export interface IMenuSwitchProps {
|
|
4
|
+
/**
|
|
5
|
+
* MenuBar コンポーネントからの指示:
|
|
6
|
+
* open === true (または !isOpen): メニューは「閉じている」状態 ➔ 4本線ハンバーガーを表示
|
|
7
|
+
* open === false (または isOpen): メニューは「開いている」状態 ➔ ✕印を表示
|
|
8
|
+
*/
|
|
9
|
+
open?: boolean;
|
|
10
|
+
isOpen?: boolean;
|
|
5
11
|
onMenuOpen?: () => void;
|
|
6
12
|
onMenuClose?: () => void;
|
|
7
|
-
|
|
13
|
+
onToggle?: (nextOpen: boolean) => void;
|
|
14
|
+
theme?: Theme;
|
|
15
|
+
pinned?: boolean;
|
|
16
|
+
isPinned?: boolean;
|
|
17
|
+
className?: string;
|
|
8
18
|
}
|
|
9
19
|
/**
|
|
10
|
-
*
|
|
11
|
-
* メインメニューの表示状態を切り替えるトグルボタンを描画。
|
|
20
|
+
* 4本線バーと✕印アニメーションの従前の仕様の MenuSwitch コンポーネント。
|
|
12
21
|
*/
|
|
13
22
|
export declare const MenuSwitch: (props: IMenuSwitchProps) => React.JSX.Element;
|
|
14
|
-
export {};
|