@baton8/general-components 3.1.0-alpha.0 → 3.1.0-alpha.1

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.
@@ -46,7 +46,7 @@ export declare const Button: import("react").ForwardRefExoticComponent<import(".
46
46
  * HTML と違ってデフォルト値が `"button"` になっているので、フォームの送信ボタンとして使う場合は明示的に `"submit"` を指定してください。
47
47
  * @defaultValue `"button"`
48
48
  */
49
- type?: "button" | "reset" | "submit" | undefined;
49
+ type?: "button" | "submit" | "reset" | undefined;
50
50
  /**
51
51
  * 無効にするかどうか。
52
52
  */
@@ -38,7 +38,7 @@ export declare const IconButton: import("react").ForwardRefExoticComponent<impor
38
38
  * HTML と違ってデフォルト値が `"button"` になっているので、フォームの送信ボタンとして使う場合は明示的に `"submit"` を指定してください。
39
39
  * @defaultValue `"button"`
40
40
  */
41
- type?: "button" | "reset" | "submit" | undefined;
41
+ type?: "button" | "submit" | "reset" | undefined;
42
42
  /**
43
43
  * 無効にするかどうか。
44
44
  */
@@ -5,6 +5,7 @@ import { MouseEvent, ReactNode } from "react";
5
5
  * #### 構成
6
6
  * 以下のようなコンポーネント構成で利用してください。
7
7
  * - **`CardList`**
8
+ * - [`CardGrip`](/docs/atoms-Card-CardGrip--ドキュメント) (任意)
8
9
  * - [`CardControlContainer`](/docs/atoms-Card-CardControlContainer--ドキュメント) (任意)
9
10
  * - `Checkbox` や `Radio` などのコントロール
10
11
  * - [`CardBody`](/docs/atoms-Card-CardBody--ドキュメント) (必須)
@@ -20,6 +21,7 @@ import { MouseEvent, ReactNode } from "react";
20
21
  *
21
22
  * ```tsx
22
23
  * <Card>
24
+ * <CardGrip/>
23
25
  * <CardControlContainer>
24
26
  * <Checkbox/>
25
27
  * </CardControlContainer>
@@ -26,7 +26,13 @@ export declare const CardButton: import("react").ForwardRefExoticComponent<impor
26
26
  * `onClick` に文字列値が指定されていてリンクとして表示される際は、これは無視されます。
27
27
  * @defaultValue `"button"`
28
28
  */
29
- type?: "button" | "reset" | "submit" | undefined;
29
+ type?: "button" | "submit" | "reset" | undefined;
30
+ /**
31
+ * ボタンを縦に伸ばすかどうか。
32
+ * 設定ボタン等は伸ばさない方が自然です。
33
+ * @defaultValue `true`
34
+ */
35
+ isStretched?: boolean | undefined;
30
36
  /**
31
37
  * 無効にするかどうか。
32
38
  *
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from "react";
2
+ /**
3
+ * @group React コンポーネント
4
+ * @category React コンポーネント
5
+ */
6
+ export declare const CardButtonListColumn: 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
+ /** */
14
+ children?: ReactNode;
15
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * @group React コンポーネント
4
+ * @category React コンポーネント
5
+ */
6
+ export declare const CardGrip: 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<HTMLDivElement>>;
@@ -2,6 +2,8 @@ export * from "./card";
2
2
  export * from "./cardBody";
3
3
  export * from "./cardButton";
4
4
  export * from "./cardButtonList";
5
+ export * from "./cardButtonListColumn";
5
6
  export * from "./cardControlContainer";
7
+ export * from "./cardGrip";
6
8
  export * from "./cardHeadnote";
7
9
  export * from "./cardTitle";
@@ -15,7 +15,7 @@ export declare const DialogButton: import("react").ForwardRefExoticComponent<imp
15
15
  variant?: "solid" | "light" | "underline" | "simple" | "unstyledUnderline" | "unstyledSimple" | undefined;
16
16
  size?: "small" | "medium" | "large" | undefined;
17
17
  isCompact?: boolean | undefined;
18
- type?: "button" | "reset" | "submit" | undefined;
18
+ type?: "button" | "submit" | "reset" | undefined;
19
19
  isDisabled?: boolean | undefined;
20
20
  isLoading?: boolean | undefined;
21
21
  onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => unknown) | undefined;
@@ -15,7 +15,7 @@ export declare const DrawerButton: import("react").ForwardRefExoticComponent<imp
15
15
  variant?: "solid" | "light" | "underline" | "simple" | "unstyledUnderline" | "unstyledSimple" | undefined;
16
16
  size?: "small" | "medium" | "large" | undefined;
17
17
  isCompact?: boolean | undefined;
18
- type?: "button" | "reset" | "submit" | undefined;
18
+ type?: "button" | "submit" | "reset" | undefined;
19
19
  isDisabled?: boolean | undefined;
20
20
  isLoading?: boolean | undefined;
21
21
  onClick?: ((event: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => unknown) | undefined;
@@ -1,10 +1,13 @@
1
1
  import { ReactElement } from "react";
2
- export type OpenDialog = (render: (close: () => void) => ReactElement) => Promise<void>;
2
+ export type OpenDialog = (render: (onClose: () => void) => ReactElement) => Promise<void>;
3
3
  /**
4
4
  * ダイアログを表示する関数 `openDialog` を返します。
5
5
  * `openDialog` 関数にダイアログのレンダー関数を渡すと、そのダイアログが表示されます。
6
6
  * ダイアログのレンダー関数にはダイアログを閉じるための関数が渡されるので、キャンセルボタン等に利用してください。
7
7
  *
8
+ * `openDialog` 関数に渡すレンダー関数が返すコンポーネントには、`isOpen`, `onClose` prop が暗黙的に渡されます。
9
+ * そのため、レンダー関数が独自コンポーネントを返す場合は、そのコンポーネントは `isOpen`, `onClose` prop を受け取って適切に処理しなければなりません。
10
+ *
8
11
  * `openDialog` 関数自体は Promise を返します。
9
12
  * この Promise は、ダイアログを閉じたときに解決されます。
10
13
  */