@srimandir/pitru-paksh-common 2.36.6 → 2.36.8

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,8 +1,6 @@
1
- import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
2
1
  export interface AddAncestorSheetProps {
3
2
  isOpen: boolean;
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;
3
+ onClose: () => void;
6
4
  onSave: (names: string[]) => void;
7
5
  title: string;
8
6
  fieldLabel: string;
@@ -13,6 +13,7 @@ export interface BillDetailsRow {
13
13
  note?: React.ReactNode;
14
14
  /** Struck-through value shown before the final value, e.g. "₹851". */
15
15
  originalValue?: React.ReactNode;
16
+ originalValueClassName?: string;
16
17
  /** Final value, e.g. "₹200.0/-" or "FREE". Style it (e.g. green for FREE) via `valueClassName`. */
17
18
  value: React.ReactNode;
18
19
  valueClassName?: string;
@@ -24,6 +25,8 @@ export interface BillDetailsProps extends Omit<React.HTMLAttributes<HTMLDivEleme
24
25
  */
25
26
  locale?: BillDetailsLocale;
26
27
  titleClassName?: string;
28
+ /** Set to `false` when a containing sheet provides its own header. */
29
+ showTitle?: boolean;
27
30
  rows: BillDetailsRow[];
28
31
  rowClassName?: string;
29
32
  /** Set to `false` to hide the accent bar before the title. */
@@ -37,6 +40,8 @@ export interface BillDetailsProps extends Omit<React.HTMLAttributes<HTMLDivEleme
37
40
  * from INR to USD. Defaults to `false` (India pricing).
38
41
  */
39
42
  isGlobalUser?: boolean;
43
+ /** Set to `false` when the caller already supplies waived-fee rows. */
44
+ showDefaultWaivedFees?: boolean;
40
45
  }
41
46
  /**
42
47
  * Itemized price breakdown used at the bottom of a cart/review screen:
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { BillDetailsRow } from './BillDetails';
3
+ import { BillDetailsLocale } from './BillDetails.translations';
4
+ export interface BillDetailsSheetProps {
5
+ isOpen: boolean;
6
+ onClose: () => void;
7
+ locale?: BillDetailsLocale;
8
+ title?: React.ReactNode;
9
+ itemCountLabel?: React.ReactNode;
10
+ closeButtonAriaLabel?: string;
11
+ rows: BillDetailsRow[];
12
+ totalValue: React.ReactNode;
13
+ isGlobalUser?: boolean;
14
+ showDefaultWaivedFees?: boolean;
15
+ }
16
+ export declare function BillDetailsSheet({ isOpen, onClose, locale, title, itemCountLabel, closeButtonAriaLabel, rows, totalValue, isGlobalUser, showDefaultWaivedFees, }: BillDetailsSheetProps): React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  export { BillDetails } from './BillDetails';
2
2
  export type { BillDetailsProps, BillDetailsRow } from './BillDetails';
3
+ export { BillDetailsSheet } from './BillDetailsSheet';
4
+ export type { BillDetailsSheetProps } from './BillDetailsSheet';
@@ -1,4 +1,3 @@
1
- import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
2
1
  export interface PickedDate {
3
2
  day: number;
4
3
  /** 1-12 */
@@ -7,7 +6,7 @@ export interface PickedDate {
7
6
  }
8
7
  export interface DatePickerSheetProps {
9
8
  isOpen: boolean;
10
- onClose: (reason?: BottomSheetCloseReason) => void;
9
+ onClose: () => void;
11
10
  /** Shows a small circular avatar next to `heading`, e.g. to identify which ancestor's date this is. Omit for a plain heading. */
12
11
  avatarUrl?: string;
13
12
  heading: string;
@@ -4,6 +4,8 @@ export interface ServiceOfferCardProps extends Omit<React.HTMLAttributes<HTMLDiv
4
4
  /** Illustration/photo shown top-right, e.g. the ritual/service photo. */
5
5
  image: string;
6
6
  imageAlt?: string;
7
+ /** Optional landscape artwork used only in the expanded details sheet. */
8
+ sheetImage?: string;
7
9
  /** Service name, e.g. "Offer tarpan donation for the peace of your ancestors". */
8
10
  title: React.ReactNode;
9
11
  /**
@@ -1,7 +1,6 @@
1
- import { BottomSheetCloseReason } from '../../../../common/dist/common.js';
2
1
  export interface TithiPickerSheetProps {
3
2
  isOpen: boolean;
4
- onClose: (reason?: BottomSheetCloseReason) => void;
3
+ onClose: () => void;
5
4
  avatarUrl: string;
6
5
  heading: string;
7
6
  tithis: string[];
@@ -5,6 +5,8 @@ export interface VideoPlayerProps {
5
5
  poster: string;
6
6
  className?: string;
7
7
  rounded?: boolean;
8
+ /** Keeps direct videos inline and suppresses fullscreen, PiP, and casting. */
9
+ inlineOnly?: boolean;
8
10
  /** Enforced on both the outer container and the video/poster itself. */
9
11
  width?: string | number;
10
12
  height?: string | number;
@@ -54,5 +54,6 @@ export declare const ANCESTOR_OPTIONS: [{
54
54
  export declare const MALE_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1788334548628.webp";
55
55
  export declare const FEMALE_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1788334564281.webp";
56
56
  export declare const CUSTOM_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1789386222504.svg";
57
+ export declare const SARV_PITRU_ANCESTOR_AVATAR_URL = "https://srm-cdn.a4b.io/yoda/1789653082304.webp";
57
58
  /** Custom (free-text) ancestor names carry no gender/option entry, so they get a dedicated icon. */
58
59
  export declare function getAncestorAvatarUrl(ancestorKey: string): string;
package/dist/index.d.ts CHANGED
@@ -67,8 +67,8 @@ export { BookingSummaryBanner } from './components/BookingSummaryBanner';
67
67
  export type { BookingSummaryBannerProps, BookingSummaryBannerStats, } from './components/BookingSummaryBanner';
68
68
  export { BOOKING_SUMMARY_BANNER_DEFAULT_COPY, getBookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
69
69
  export type { BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
70
- export { BillDetails } from './components/BillDetails';
71
- export type { BillDetailsProps, BillDetailsRow, } from './components/BillDetails';
70
+ export { BillDetails, BillDetailsSheet } from './components/BillDetails';
71
+ export type { BillDetailsProps, BillDetailsRow, BillDetailsSheetProps, } from './components/BillDetails';
72
72
  export { CartView } from './components/CartView';
73
73
  export type { CartViewProps, CartViewAddon, CartViewItem, CartViewLocale, } from './components/CartView';
74
74
  export { TextField } from './components/TextField';
@@ -67,8 +67,8 @@ export { BookingSummaryBanner } from './components/BookingSummaryBanner';
67
67
  export type { BookingSummaryBannerProps, BookingSummaryBannerStats, } from './components/BookingSummaryBanner';
68
68
  export { BOOKING_SUMMARY_BANNER_DEFAULT_COPY, getBookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
69
69
  export type { BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
70
- export { BillDetails } from './components/BillDetails';
71
- export type { BillDetailsProps, BillDetailsRow, } from './components/BillDetails';
70
+ export { BillDetails, BillDetailsSheet } from './components/BillDetails';
71
+ export type { BillDetailsProps, BillDetailsRow, BillDetailsSheetProps, } from './components/BillDetails';
72
72
  export { CartView } from './components/CartView';
73
73
  export type { CartViewProps, CartViewAddon, CartViewItem, CartViewLocale, } from './components/CartView';
74
74
  export { TextField } from './components/TextField';