@srimandir/pitru-paksh-common 2.41.0 → 2.42.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.
- package/dist/components/CartView/CartView.d.ts +0 -10
- package/dist/components/PujaDetailsForm/PujaDetailsForm.d.ts +1 -1
- package/dist/components/PujaDetailsForm/PujaDetailsForm.types.d.ts +0 -6
- package/dist/constants/ancestor.constants.d.ts +1 -0
- package/dist/pitru-paksh-common.js +1325 -1323
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -55,14 +55,6 @@ export interface CartViewProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
55
55
|
itemsClassName?: string;
|
|
56
56
|
/** className applied to every item; per-item `className` (via the item object) wins/merges on top. */
|
|
57
57
|
itemClassName?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Reports each rendered item row's DOM node as it mounts/unmounts, keyed
|
|
60
|
-
* by the item's own `id`. No visibility tracking happens here — this
|
|
61
|
-
* component stays dumb; observing these nodes (e.g. via
|
|
62
|
-
* `IntersectionObserver`) is the caller's job, same division as
|
|
63
|
-
* `Outcome`'s own `onCardRef`.
|
|
64
|
-
*/
|
|
65
|
-
onItemRef?: (id: CartViewItem['id'], el: HTMLDivElement | null) => void;
|
|
66
58
|
/** Add-on `ServiceOfferCard`s (tarpan, cow service, public service, ...). Omit/empty to hide the section. */
|
|
67
59
|
addons?: CartViewAddon[];
|
|
68
60
|
addonsSectionClassName?: string;
|
|
@@ -74,8 +66,6 @@ export interface CartViewProps extends Omit<React.HTMLAttributes<HTMLDivElement>
|
|
|
74
66
|
addonClassName?: string;
|
|
75
67
|
/** Optional card implementation for add-ons. Defaults to `ServiceOfferCard`. */
|
|
76
68
|
addonComponent?: React.ComponentType<ServiceOfferCardProps>;
|
|
77
|
-
/** Same as `onItemRef`, for add-on cards. */
|
|
78
|
-
onAddonRef?: (id: CartViewAddon['id'], el: HTMLDivElement | null) => void;
|
|
79
69
|
/** Price breakdown. Omit to hide it. All `BillDetails` props are available. */
|
|
80
70
|
billDetails?: BillDetailsProps;
|
|
81
71
|
/** FAQ accordion. Omit to hide it. All `FAQSection` props are available. */
|
|
@@ -13,7 +13,7 @@ import { AncestorNameEntry, PujaDetailsFormProps, PujaDetailsFormValues } from '
|
|
|
13
13
|
* always the fixed, translated copy (not overridable) since this form only
|
|
14
14
|
* ever collects an Indian mobile number or an email.
|
|
15
15
|
*/
|
|
16
|
-
export declare function PujaDetailsForm({ locale, values, onValuesChange, isGlobal, gotraOptions, isSarvaPitru, onBackClick, amount, ritualsCountLabel, onPriceInfoClick, showPriceInfoIcon, canProceed, copy: copyOverride, proceedCtaLabel, proceedButtonProps, onProceedPayment,
|
|
16
|
+
export declare function PujaDetailsForm({ locale, values, onValuesChange, isGlobal, gotraOptions, isSarvaPitru, onBackClick, amount, ritualsCountLabel, onPriceInfoClick, showPriceInfoIcon, canProceed, copy: copyOverride, proceedCtaLabel, proceedButtonProps, onProceedPayment, className, }: PujaDetailsFormProps): import("react").JSX.Element;
|
|
17
17
|
/**
|
|
18
18
|
* Convenience factory for a blank `PujaDetailsFormValues`, e.g. to seed local
|
|
19
19
|
* component state. `kartaCount` sets how many Karta name fields render —
|
|
@@ -86,11 +86,5 @@ export interface PujaDetailsFormProps {
|
|
|
86
86
|
* payment flow here.
|
|
87
87
|
*/
|
|
88
88
|
onProceedPayment: () => void;
|
|
89
|
-
/** The `ConfirmPujaDetailsModal` opened — the checkout bar's CTA was tapped. */
|
|
90
|
-
onConfirmModalOpen?: () => void;
|
|
91
|
-
/** The `ConfirmPujaDetailsModal`'s "Edit Details" was clicked (returns to this form). */
|
|
92
|
-
onConfirmEditDetailsClick?: () => void;
|
|
93
|
-
/** The `ConfirmPujaDetailsModal` closed via backdrop/X/Escape — not its own Edit Details or Pay. */
|
|
94
|
-
onConfirmModalDismiss?: () => void;
|
|
95
89
|
className?: string;
|
|
96
90
|
}
|
|
@@ -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;
|