@srimandir/pitru-paksh-common 2.36.4 → 2.36.6

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.
@@ -1,6 +1,8 @@
1
+ import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
1
2
  export interface AddAncestorSheetProps {
2
3
  isOpen: boolean;
3
- onClose: () => void;
4
+ /** Not called on Save — only on an actual dismiss (close button, backdrop, Escape). Saving is `onSave`'s job to close, so callers can tell the two apart. */
5
+ onClose: (reason?: BottomSheetCloseReason) => void;
4
6
  onSave: (names: string[]) => void;
5
7
  title: string;
6
8
  fieldLabel: string;
@@ -1,3 +1,4 @@
1
+ import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
1
2
  export interface PickedDate {
2
3
  day: number;
3
4
  /** 1-12 */
@@ -6,7 +7,7 @@ export interface PickedDate {
6
7
  }
7
8
  export interface DatePickerSheetProps {
8
9
  isOpen: boolean;
9
- onClose: () => void;
10
+ onClose: (reason?: BottomSheetCloseReason) => void;
10
11
  /** Shows a small circular avatar next to `heading`, e.g. to identify which ancestor's date this is. Omit for a plain heading. */
11
12
  avatarUrl?: string;
12
13
  heading: string;
@@ -1,6 +1,7 @@
1
+ import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
1
2
  export interface TithiPickerSheetProps {
2
3
  isOpen: boolean;
3
- onClose: () => void;
4
+ onClose: (reason?: BottomSheetCloseReason) => void;
4
5
  avatarUrl: string;
5
6
  heading: string;
6
7
  tithis: string[];