ingred-ui 32.0.0 → 32.1.0
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/NavigationRail/MobileMenuButton/MobileMenuButton.d.ts +9 -0
- package/dist/components/NavigationRail/MobileMenuButton/MobileMenuButtonView.d.ts +7 -0
- package/dist/components/NavigationRail/MobileMenuButton/index.d.ts +1 -0
- package/dist/components/NavigationRail/NavigationRail.d.ts +2 -0
- package/dist/components/NavigationRail/NavigationRailContainer/NavigationRailContainer.d.ts +7 -0
- package/dist/components/NavigationRail/NavigationRailContainer/styled.d.ts +1 -1
- package/dist/components/NavigationRail/utils.d.ts +6 -0
- package/dist/index.es.js +118 -118
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +118 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* モバイルの「メニューを開く」ボタン。
|
|
4
|
+
*
|
|
5
|
+
* `NavigationRail.Container` 配下の任意の場所(独自 AppBar 内など)に設置できる。
|
|
6
|
+
* 設置すると Container は自動でデフォルト(右上固定)のメニューボタンを描画しなくなるため、
|
|
7
|
+
* 二重描画にならない。開閉ロジック・通知バッジ・アクセシビリティは組み込みと同一。
|
|
8
|
+
*/
|
|
9
|
+
export declare const MobileMenuButton: React.ForwardRefExoticComponent<React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MobileMenuButton } from "./MobileMenuButton";
|
|
@@ -7,6 +7,7 @@ import { Menu } from "./Menu";
|
|
|
7
7
|
import { ExpansionMenu } from "./ExpansionMenu";
|
|
8
8
|
import { ExpansionMenuItem } from "./ExpansionMenuItem";
|
|
9
9
|
import { Slot, SlotContent } from "./Slot";
|
|
10
|
+
import { MobileMenuButton } from "./MobileMenuButton";
|
|
10
11
|
type ExportedComponentType = {
|
|
11
12
|
(props: Props & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
|
12
13
|
Container: typeof NavigationRailContainer;
|
|
@@ -20,6 +21,7 @@ type ExportedComponentType = {
|
|
|
20
21
|
MainContent: typeof MainContent;
|
|
21
22
|
Slot: typeof Slot;
|
|
22
23
|
SlotContent: typeof SlotContent;
|
|
24
|
+
MobileMenuButton: typeof MobileMenuButton;
|
|
23
25
|
};
|
|
24
26
|
type Props = {
|
|
25
27
|
children?: React.ReactNode;
|
|
@@ -22,6 +22,13 @@ export type NavigationRailContainerProps = {
|
|
|
22
22
|
* 折りたたみ時の `Fixture` には 1 件以上で赤ドットのみ(件数なし)。メニュー行とは別管理。
|
|
23
23
|
*/
|
|
24
24
|
slotNotificationCount?: number;
|
|
25
|
+
/**
|
|
26
|
+
* モバイル時にデフォルト(右上固定)の「メニューを開く」ボタンを描画するか。
|
|
27
|
+
* `NavigationRail.MobileMenuButton` を配置した場合はデフォルトが自動抑制される。
|
|
28
|
+
* 自前ボタンのみ使う場合は `false` を指定する。
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
showMobileMenuButton?: boolean;
|
|
25
32
|
children: React.ReactNode;
|
|
26
33
|
};
|
|
27
34
|
declare const NavigationRailContainer: React.ForwardRefExoticComponent<NavigationRailContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
2
|
-
export declare const MobileMenuButton: import("styled-components/dist/types").IStyledComponentBase<"web",
|
|
2
|
+
export declare const MobileMenuButton: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
|
|
@@ -9,6 +9,12 @@ export type NavigationRailContextValues = {
|
|
|
9
9
|
isMobile: boolean;
|
|
10
10
|
isMobileMenuOpen: boolean;
|
|
11
11
|
handleMobileMenuToggle?: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* 任意位置に設置された `NavigationRail.MobileMenuButton` を登録する。
|
|
14
|
+
* 登録があると Container はデフォルト(右上固定)のメニューボタンを描画しない。
|
|
15
|
+
*/
|
|
16
|
+
registerMobileMenuButton?: () => void;
|
|
17
|
+
unregisterMobileMenuButton?: () => void;
|
|
12
18
|
/**
|
|
13
19
|
* モバイル向けの未読件数(メニュー内の通知を含む合算。ドロワー閉時は開くボタンへ表示)。
|
|
14
20
|
*/
|