@srimandir/pitru-paksh-common 2.22.0 → 2.24.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.
|
@@ -17,7 +17,7 @@ export interface BillDetailsRow {
|
|
|
17
17
|
value: React.ReactNode;
|
|
18
18
|
valueClassName?: string;
|
|
19
19
|
}
|
|
20
|
-
export interface BillDetailsProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
|
|
20
|
+
export interface BillDetailsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
21
21
|
/**
|
|
22
22
|
* Locale used to resolve the fixed `title`/`totalLabel` copy below.
|
|
23
23
|
* Defaults to `'en'`.
|
|
@@ -31,6 +31,12 @@ export interface BillDetailsProps extends Omit<React.HTMLAttributes<HTMLDivEleme
|
|
|
31
31
|
/** Omit to hide the total row entirely. */
|
|
32
32
|
totalValue?: React.ReactNode;
|
|
33
33
|
totalClassName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the viewer is outside India — swaps the always-shown "Pandit
|
|
36
|
+
* Fee"/"Photo and video recording fee" waiver rows' struck-through price
|
|
37
|
+
* from INR to USD. Defaults to `false` (India pricing).
|
|
38
|
+
*/
|
|
39
|
+
isGlobalUser?: boolean;
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
42
|
* Itemized price breakdown used at the bottom of a cart/review screen:
|
|
@@ -3,6 +3,12 @@ export type BillDetailsLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
|
3
3
|
export interface BillDetailsDefaultCopy {
|
|
4
4
|
title: string;
|
|
5
5
|
totalLabel: string;
|
|
6
|
+
/** Label for the always-shown, non-`rows`-driven "Pandit Fee" waiver row. */
|
|
7
|
+
panditFeeLabel: string;
|
|
8
|
+
/** Label for the always-shown, non-`rows`-driven "Photo and video recording fee" waiver row. */
|
|
9
|
+
photoVideoFeeLabel: string;
|
|
10
|
+
/** Value shown for both waiver rows above, e.g. "FREE". */
|
|
11
|
+
freeLabel: string;
|
|
6
12
|
}
|
|
7
13
|
export declare const BILL_DETAILS_DEFAULT_COPY: Record<BillDetailsLocale, BillDetailsDefaultCopy>;
|
|
8
14
|
/** Resolves fixed copy for `locale`, falling back to `'en'` when unsupported. */
|