@baton8/general-components 3.1.0-alpha.2 → 3.1.0-alpha.4
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/atoms/badge/badge.d.ts +1 -1
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +1 -1
- package/dist/components/atoms/link/link.d.ts +2 -0
- package/dist/components/atoms/textarea/textarea.d.ts +1 -1
- package/dist/components/modules/dialog/dialog.d.ts +0 -1
- package/dist/components/modules/drawer/drawer.d.ts +2 -0
- package/dist/components/modules/drawer/drawerCloseButton.d.ts +13 -0
- package/dist/components/modules/drawer/drawerFooter.d.ts +0 -3
- package/dist/components/modules/drawer/index.d.ts +2 -0
- package/dist/components/modules/menu/menu.d.ts +5 -0
- package/dist/index.js +121 -89
- package/dist/index.js.map +1 -1
- package/dist/stories/modules/drawer/drawer.stories.d.ts +2 -0
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ export declare const Badge: import("react").ForwardRefExoticComponent<import("..
|
|
|
21
21
|
* 見た目のバリアント。
|
|
22
22
|
* @defaultValue `"solid"`
|
|
23
23
|
*/
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "solid" | "light" | "outline" | undefined;
|
|
25
25
|
/**
|
|
26
26
|
* サイズ。
|
|
27
27
|
* @defaultValue `"medium"`
|
|
@@ -42,7 +42,7 @@ export declare const GeneralIcon: import("react").ForwardRefExoticComponent<impo
|
|
|
42
42
|
* アイコンの反転。
|
|
43
43
|
* @defaultValue `"none"`
|
|
44
44
|
*/
|
|
45
|
-
flip?: "
|
|
45
|
+
flip?: "both" | "none" | "horizontal" | "vertical" | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* アイコンの回転角度。
|
|
48
48
|
* @defaultValue `0`
|
|
@@ -52,6 +52,8 @@ export declare const Link: import("react").ForwardRefExoticComponent<import("../
|
|
|
52
52
|
* @defaultValue `"medium"`
|
|
53
53
|
*/
|
|
54
54
|
size?: "small" | "medium" | "large" | undefined;
|
|
55
|
+
/** */
|
|
56
|
+
download?: unknown;
|
|
55
57
|
/**
|
|
56
58
|
* 内部の余白を少なくし、全体を少し小さめに表示するかどうか。
|
|
57
59
|
* 基本的には `false` (デフォルト値) で使うことを推奨しますが、フォームの一部として使う場合など、省スペースで表示したいときには `true` にしてください。
|
|
@@ -23,7 +23,7 @@ export declare const Textarea: import("react").ForwardRefExoticComponent<import(
|
|
|
23
23
|
* リサイズ可能な方向。
|
|
24
24
|
* @defaultValue `"vertical"`
|
|
25
25
|
*/
|
|
26
|
-
resize?: "
|
|
26
|
+
resize?: "both" | "none" | "horizontal" | "vertical" | undefined;
|
|
27
27
|
/** */
|
|
28
28
|
inputMode?: "search" | "numeric" | "decimal" | "text" | "none" | "tel" | "url" | "email" | undefined;
|
|
29
29
|
/**
|
|
@@ -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>>;
|
|
@@ -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";
|