ingred-ui 33.15.1 → 33.16.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.
@@ -21,5 +21,11 @@ export type DrawerProps = {
21
21
  * ドロワー表示中も背景をスクロール可能にする(Backdrop非表示)
22
22
  */
23
23
  allowBackgroundScroll?: boolean;
24
+ /**
25
+ * ドロワー外のクリックで閉じる。
26
+ * Backdrop がある場合はもともと閉じるため、`allowBackgroundScroll` 時に opt-in する。
27
+ * Drawer 内から開いた DatePicker などのポップアップ操作や、内側から始めたテキスト選択では閉じない。
28
+ */
29
+ closeOnOutsideClick?: boolean;
24
30
  };
25
31
  export type CloseReason = "backdropClick" | "escapeKey";
@@ -18,9 +18,14 @@ export type FullSizeConfirmModalProps = {
18
18
  cancelText?: string;
19
19
  onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: ModalCloseReason | FullSizeConfirmModalCloseReason) => void;
20
20
  /**
21
- * If `undefined`, footer is removed.
21
+ * If `undefined`, footer is removed when `onConfirm` is also `undefined`.
22
+ * @deprecated onConfirm の利用を推奨。
22
23
  */
23
24
  onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
25
+ /**
26
+ * If `undefined`, footer is removed when `onSubmit` is also `undefined`.
27
+ */
28
+ onConfirm?: (event: React.MouseEvent<Element, MouseEvent>) => void;
24
29
  buttonColor?: ButtonColor;
25
30
  isOpen?: boolean;
26
31
  /**