@srimandir/pitru-paksh-common 2.44.0 → 2.45.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.
@@ -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';
@@ -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
  /**
@@ -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;
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';