@srimandir/pitru-paksh-common 2.36.0-beta.2 → 2.36.0-beta.5
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.
- package/dist/components/BillDetails/BillDetails.d.ts +5 -0
- package/dist/components/BillDetails/BillDetailsSheet.d.ts +16 -0
- package/dist/components/BillDetails/index.d.ts +2 -0
- package/dist/components/ServiceOfferCard/ServiceOfferCard.d.ts +2 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +11 -0
- package/dist/constants/ancestor.constants.d.ts +3 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/pitru-paksh-common.d.ts +3 -3
- package/dist/pitru-paksh-common.js +1795 -1606
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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,9 +5,20 @@ 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;
|
|
13
|
+
/**
|
|
14
|
+
* Locks the container to this CSS `aspect-ratio` (e.g. `"16/9"`) instead of
|
|
15
|
+
* a fixed pixel `height` — height then scales with whatever width the
|
|
16
|
+
* container ends up at (its own `className`/parent, not a `width` prop),
|
|
17
|
+
* so the full frame stays visible with no cropping on any device, and the
|
|
18
|
+
* box's space is reserved immediately rather than jumping once the video's
|
|
19
|
+
* metadata loads. Ignored when `width`/`height` are set.
|
|
20
|
+
*/
|
|
21
|
+
aspectRatio?: string;
|
|
11
22
|
/**
|
|
12
23
|
* Crops the video/poster to cover its container instead of sizing off its
|
|
13
24
|
* own intrinsic aspect ratio, centered on both axes — for callers that size
|
|
@@ -53,5 +53,7 @@ export declare const ANCESTOR_OPTIONS: [{
|
|
|
53
53
|
}];
|
|
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";
|
|
58
|
+
/** Custom (free-text) ancestor names carry no gender/option entry, so they get a dedicated icon. */
|
|
57
59
|
export declare function getAncestorAvatarUrl(ancestorKey: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './ancestor.constants';
|
|
1
|
+
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, CUSTOM_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './ancestor.constants';
|
|
2
2
|
export { DEATH_TITHI_OPTIONS } from './deathTithi.constants';
|
|
3
3
|
export { TITHI_NAME_KEYS } from './tithi.constants';
|
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';
|
|
@@ -115,7 +115,7 @@ export type { SarvaPitruCardProps } from './components/SarvaPitruCard';
|
|
|
115
115
|
export { SARVA_PITRU_CARD_DEFAULT_COPY, getSarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
116
116
|
export type { SarvaPitruCardLocale, SarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
117
117
|
export { cn } from '../../common/dist/common.js';
|
|
118
|
-
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
118
|
+
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, CUSTOM_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
119
119
|
export { DEATH_TITHI_OPTIONS, TITHI_NAME_KEYS } from './constants';
|
|
120
120
|
export type { AncestorOptionData, DeathTithiMethod } from './types';
|
|
121
121
|
export type { OutcomeAncestorItem, OutcomeMandapArrangementData, OutcomePackageSelectOption, OutcomePackageSelectProps, OutcomeRitualData, } from './types/outcome.types';
|
|
@@ -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';
|
|
@@ -115,7 +115,7 @@ export type { SarvaPitruCardProps } from './components/SarvaPitruCard';
|
|
|
115
115
|
export { SARVA_PITRU_CARD_DEFAULT_COPY, getSarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
116
116
|
export type { SarvaPitruCardLocale, SarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
117
117
|
export { cn } from '../../common/dist/common.js';
|
|
118
|
-
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
118
|
+
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, CUSTOM_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
119
119
|
export { DEATH_TITHI_OPTIONS, TITHI_NAME_KEYS } from './constants';
|
|
120
120
|
export type { AncestorOptionData, DeathTithiMethod } from './types';
|
|
121
121
|
export type { OutcomeAncestorItem, OutcomeMandapArrangementData, OutcomePackageSelectOption, OutcomePackageSelectProps, OutcomeRitualData, } from './types/outcome.types';
|