@baton8/general-components 3.1.0-alpha.2 → 3.1.0-alpha.3

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.
@@ -21,7 +21,7 @@ export declare const Badge: import("react").ForwardRefExoticComponent<import("..
21
21
  * 見た目のバリアント。
22
22
  * @defaultValue `"solid"`
23
23
  */
24
- variant?: "outline" | "solid" | "light" | undefined;
24
+ variant?: "solid" | "light" | "outline" | undefined;
25
25
  /**
26
26
  * サイズ。
27
27
  * @defaultValue `"medium"`
@@ -40,7 +40,6 @@ type DialogProps = {
40
40
  * - [`DialogTitle`](/docs/modules-Dialog-DialogTitle--ドキュメント) (任意)
41
41
  * - [`DialogBody`](/docs/modules-Dialog-DialogBody--ドキュメント)
42
42
  * - [`DialogFooter`](/docs/modules-Dialog-DialogFooter--ドキュメント) (任意)
43
- * - [`DialogFooterButton`](/docs/modules-Dialog-DialogFooterButton--ドキュメント) (2 個まで任意)
44
43
  *
45
44
  * #### 使い方
46
45
  * 非制御と制御の 2 種類の使い方があります。
@@ -30,12 +30,14 @@ type DrawerProps = CommonProps & {
30
30
  * #### 構成
31
31
  * 以下のようなコンポーネント構成で利用してください。
32
32
  * - **`Drawer`**
33
+ * - [`DrawerCloseButton`](/docs/modules-Drawer-DrawerCloseButton--ドキュメント)
33
34
  * - [`DrawerHeader`](/docs/modules-Drawer-DrawerHeader--ドキュメント) (任意)
34
35
  * - [`DrawerHeaderLeft`](/docs/modules-Drawer-DrawerHeaderLeft--ドキュメント)
35
36
  * - [`DrawerHeaderTitle`](/docs/modules-Drawer-DrawerHeaderTitle--ドキュメント)
36
37
  * - [`DrawerHeaderCaption`](/docs/modules-Drawer-DrawerHeaderCaption--ドキュメント) (任意)
37
38
  * - [`DrawerHeaderRight`](/docs/modules-Drawer-DrawerHeaderRight--ドキュメント)
38
39
  * - [`DrawerBody`](/docs/modules-Drawer-DrawerBody--ドキュメント)
40
+ * - [`DrawerFooter`](/docs/modules-Drawer-DrawerFooter--ドキュメント) (任意)
39
41
  *
40
42
  * @group React コンポーネント
41
43
  * @category React コンポーネント
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * @group React コンポーネント
4
+ * @category React コンポーネント
5
+ */
6
+ export declare const DrawerCloseButton: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
7
+ className?: string | undefined;
8
+ id?: string | undefined;
9
+ style?: import("react").CSSProperties | undefined;
10
+ } & {
11
+ /** */
12
+ className?: string | undefined;
13
+ } & import("react").RefAttributes<HTMLButtonElement>>;
@@ -1,8 +1,5 @@
1
1
  import { ReactNode } from "react";
2
2
  /**
3
- * @deprecated
4
- * これまでフッターに配置していたボタン等は、ヘッダーの右側に置くようにしてください。
5
- *
6
3
  * @group React コンポーネント
7
4
  * @category React コンポーネント
8
5
  */
@@ -2,6 +2,8 @@ export * from "./drawer";
2
2
  export * from "./drawerBody";
3
3
  export * from "./drawerButton";
4
4
  export * from "./drawerCaption";
5
+ export * from "./drawerCloseButton";
6
+ export * from "./drawerFooter";
5
7
  export * from "./drawerHeader";
6
8
  export * from "./drawerHeaderLeft";
7
9
  export * from "./drawerHeaderRight";
@@ -29,6 +29,11 @@ type MenuProps = {
29
29
  * @defaultValue `"bottom-start"`
30
30
  */
31
31
  placement?: Placement;
32
+ /**
33
+ * メニューの幅をトリガーの幅に合わせるかどうか。
34
+ * @defaultValue `false`
35
+ */
36
+ fitWidth?: boolean;
32
37
  /** */
33
38
  className?: string;
34
39
  /** */