@srimandir/pitru-paksh-common 2.28.0 → 2.28.2

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.
@@ -23,7 +23,7 @@ export interface CheckoutBarProps extends React.HTMLAttributes<HTMLDivElement> {
23
23
  proceedIcon?: React.ReactNode;
24
24
  onProceed?: () => void;
25
25
  /** Extra props forwarded to the underlying `Button` (variant, size, disabled, loading, ...). */
26
- proceedButtonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
26
+ proceedButtonProps?: Omit<ButtonProps, "children" | "onClick">;
27
27
  buttonWrapperClassName?: string;
28
28
  /**
29
29
  * Shrinks the amount/subtitle block to its content width and grows the
@@ -0,0 +1,4 @@
1
+ export interface DatesCardProps {
2
+ date: string;
3
+ }
4
+ export declare function DatesCard({ date }: DatesCardProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { DatesCard } from './DatesCard';
2
+ export type { DatesCardProps } from './DatesCard';
@@ -0,0 +1,13 @@
1
+ export interface HeroLogoBadgeProps {
2
+ /** e.g. "Pitru Paksh Special" — rendered between the two ✦ marks */
3
+ badgeLabel: string;
4
+ /** e.g. "27 September - 12 October, 2026" — rendered inside the dates pill */
5
+ dateLabel?: string;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Sri Mandir logo (with a sharp-to-blurred halo behind it), an event badge,
10
+ * and a dates pill — the identity cluster shown at the top of Pitru Paksha
11
+ * hero sections.
12
+ */
13
+ export declare function HeroLogoBadge({ badgeLabel, dateLabel, className }: HeroLogoBadgeProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { HeroLogoBadge } from './HeroLogoBadge';
2
+ export type { HeroLogoBadgeProps } from './HeroLogoBadge';
@@ -15,6 +15,8 @@ export interface PackageSelectDefaultCopy {
15
15
  trustBadgeLabels: {
16
16
  moneyBack: string;
17
17
  noHiddenCost: string;
18
+ isoCertified: string;
19
+ templePartner: string;
18
20
  support: string;
19
21
  };
20
22
  }
@@ -10,6 +10,8 @@ export interface QuantityStepperProps {
10
10
  min?: number;
11
11
  /** Optional ceiling; disables + once reached. */
12
12
  max?: number;
13
+ /** Disables -, e.g. while this is the last item a cart requires at least one of. */
14
+ decrementDisabled?: boolean;
13
15
  /** Label shown on the zero-state button. Defaults to "Add". */
14
16
  addLabel?: React.ReactNode;
15
17
  className?: string;
@@ -7,7 +7,7 @@
7
7
  * instead of being duplicated by every consuming page. Pass any of
8
8
  * `title`/`subtitle`/`value`/`helperText` explicitly to override the default.
9
9
  */
10
- export type SarvaPitruCardLocale = 'en' | 'hi';
10
+ export type SarvaPitruCardLocale = 'en' | 'hi' | 'te' | 'kn';
11
11
  export interface SarvaPitruCardDefaultCopy {
12
12
  title: string;
13
13
  subtitle: string;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onSelect' | 'title'> {
2
+ export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect" | "title"> {
3
3
  /** Whether this card is the chosen option within its selector group. */
4
4
  selected?: boolean;
5
5
  /** Called when the user picks this card (click, Enter or Space). */
@@ -9,7 +9,7 @@ export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLB
9
9
  /** Leading photo/illustration (e.g. a family member avatar) instead of an icon badge. */
10
10
  avatarUrl?: string;
11
11
  /** Size of the leading icon/avatar badge. Defaults to 'md'. */
12
- iconSize?: 'sm' | 'md' | 'lg';
12
+ iconSize?: "sm" | "md" | "lg";
13
13
  /** Extra classes for the icon/avatar badge, e.g. `iconClassName="size-10"` for a one-off 40x40 badge. Overrides `iconSize`. */
14
14
  iconClassName?: string;
15
15
  /** Main label. */
@@ -21,7 +21,7 @@ export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLB
21
21
  /** Hide the radio indicator, e.g. for single, non-grouped confirmations. Defaults to visible. */
22
22
  showRadio?: boolean;
23
23
  /** Style of the selected indicator: a filled dot (default) or a filled circle with a checkmark. */
24
- radioVariant?: 'dot' | 'check';
24
+ radioVariant?: "dot" | "check";
25
25
  /** Extra classes for the filled selected indicator (dot or check circle), e.g. to change its color. */
26
26
  radioClassName?: string;
27
27
  /**
@@ -8,10 +8,10 @@ export interface TrustBadge {
8
8
  }
9
9
  export interface TrustBadgesBarProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  /**
11
- * Badges to render, e.g. shield-check "100% Money Back Guarantee",
12
- * wallet "No Hidden Cost". Defaults to those two plus a clock "24x7
13
- * Support" badge, matching the reference design — pass your own array to
14
- * fully customize (icons/labels/count).
11
+ * Badges to render. Defaults to 5 (Figma node 5185:115546, "TickerTape"):
12
+ * "100% Money Back Guarantee", "No Hidden Cost", "ISO 27001 Certified
13
+ * Company", "Official Temple Partner", "24x7 Support" — pass your own
14
+ * array to fully customize (icons/labels/count).
15
15
  */
16
16
  badges?: TrustBadge[];
17
17
  badgeClassName?: string;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ export declare function ShieldTaskIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
3
+ export declare function MoneyIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
4
+ export declare function CertificateIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
5
+ export declare function TemplePartnerIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
6
+ export declare function SupportAgentIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -124,5 +124,9 @@ export type { PujaL2DetailsSheetData, } from './utils/mapPujaL2Response';
124
124
  export type { PujaL2Benefit, PujaL2BenefitsCard, PujaL2Card, PujaL2InfoMedia, PujaL2LocationDetailsCard, PujaL2Response, PujaL2ReviewUser, PujaL2StoreCard, PujaL2TempleDetails, PujaL2UserReviewsCard, } from './types/pujaL2.types';
125
125
  export { EventHeader } from './components/EventHeader';
126
126
  export type { EventHeaderProps } from './components/EventHeader';
127
+ export { HeroLogoBadge } from './components/HeroLogoBadge';
128
+ export type { HeroLogoBadgeProps } from './components/HeroLogoBadge';
129
+ export { DatesCard } from './components/DatesCard';
130
+ export type { DatesCardProps } from './components/DatesCard';
127
131
  export { RitualProceedBar } from './components/RitualProceedBar';
128
132
  export type { RitualProceedBarProps } from './components/RitualProceedBar';
@@ -0,0 +1,132 @@
1
+ export { getOutcomeTranslation, OutcomeI18nProvider, OUTCOME_SUPPORTED_LOCALES, outcomeTranslations, useOutcomeI18n, } from './outcome-i18n';
2
+ export type { OutcomeLocale, OutcomeTranslationKey, OutcomeTranslations, } from './outcome-i18n';
3
+ export { OutcomeBillDetails, } from './components/OutcomeBillDetails/OutcomeBillDetails';
4
+ export type { OutcomeBillDetailsItem, OutcomeBillDetailsProps, } from './components/OutcomeBillDetails/OutcomeBillDetails';
5
+ export { OutcomeAncestorEditModal, } from './components/OutcomeAncestorEditModal/OutcomeAncestorEditModal';
6
+ export type { OutcomeAncestorEditModalProps, OutcomeAncestorPujaItem, } from './components/OutcomeAncestorEditModal/OutcomeAncestorEditModal';
7
+ export { OutcomeStickyCta, } from './components/OutcomeStickyCta/OutcomeStickyCta';
8
+ export type { OutcomeStickyCtaProps, } from './components/OutcomeStickyCta/OutcomeStickyCta';
9
+ export { OutcomeEmptyRituals, } from './components/OutcomeEmptyRituals/OutcomeEmptyRituals';
10
+ export { OnlinePujaTestimonial, } from './components/OnlinePujaTestimonial/OnlinePujaTestimonial';
11
+ export { WhySriMandir } from './components/WhySriMandir/WhySriMandir';
12
+ export { ProcessInvolved } from './components/ProcessInvolved/ProcessInvolved';
13
+ export { PujaDetailsCarouselHeader, } from './components/PujaDetails/PujaDetailsCarouselHeader';
14
+ export type { PujaDetailsCarouselHeaderProps, } from './components/PujaDetails/PujaDetailsCarouselHeader';
15
+ export { PujaBenefitsSection, } from './components/PujaDetails/PujaBenefitsSection';
16
+ export type { PujaBenefitData, PujaBenefitsSectionProps, } from './components/PujaDetails/PujaBenefitsSection';
17
+ export { TempleSignificanceSection, } from './components/PujaDetails/TempleSignificanceSection';
18
+ export type { TempleSignificanceSectionProps, } from './components/PujaDetails/TempleSignificanceSection';
19
+ export { DevoteesReviews } from './components/PujaDetails/DevoteesReviews';
20
+ export type { DevoteeReviewData, DevoteeReviewMedia, DevoteesReviewsProps, } from './components/PujaDetails/DevoteesReviews';
21
+ export { OUTCOME_TRUST_ITEMS } from './constants/outcome.constants';
22
+ export type { OutcomeTrustItemData, } from './constants/outcome.constants';
23
+ export { Button, buttonVariants } from './components/Button';
24
+ export type { ButtonProps } from './components/Button';
25
+ export { ConfinedBottomSheet } from './components/ConfinedBottomSheet';
26
+ export { TestimonialCard } from './components/TestimonialCard';
27
+ export type { TestimonialCardProps } from './components/TestimonialCard';
28
+ export { FAQSection } from './components/FAQSection';
29
+ export type { FAQSectionProps, FAQItem } from './components/FAQSection';
30
+ export { FAQAccordion } from './components/FAQAccordion';
31
+ export type { FAQAccordionProps, FAQAccordionItem } from './components/FAQAccordion';
32
+ export { VideoPlayer } from './components/VideoPlayer';
33
+ export type { VideoPlayerProps } from './components/VideoPlayer';
34
+ export { LanguageSwitcher } from './components/LanguageSwitcher';
35
+ export type { LanguageSwitcherProps, LanguageOption, } from './components/LanguageSwitcher';
36
+ export { TopBar } from './components/TopBar';
37
+ export type { TopBarProps } from './components/TopBar';
38
+ export { Chip } from './components/Chip';
39
+ export type { ChipProps } from './components/Chip';
40
+ export { StepProgressHeader } from './components/StepProgressHeader';
41
+ export type { StepProgressHeaderProps } from './components/StepProgressHeader';
42
+ export { AudioQuestionCard } from './components/AudioQuestionCard';
43
+ export type { AudioQuestionCardProps } from './components/AudioQuestionCard';
44
+ export { IconBadge } from './components/IconBadge';
45
+ export type { IconBadgeProps } from './components/IconBadge';
46
+ export { SelectorCard, SelectorCardEditableField, SelectorCardInfoRow, SelectorCardNote, SelectorCardPriceBadge, } from './components/SelectorCard';
47
+ export type { SelectorCardProps, SelectorCardEditableFieldProps, SelectorCardInfoRowProps, SelectorCardNoteProps, SelectorCardPriceBadgeProps, } from './components/SelectorCard';
48
+ export { QuantityStepper } from './components/QuantityStepper';
49
+ export type { QuantityStepperProps } from './components/QuantityStepper';
50
+ export { CartReviewItem, CartReviewMandapItem, CartReviewChangeButton, CartReviewAddedBadge, } from './components/CartReviewItem';
51
+ export type { CartReviewItemProps, CartReviewMandapItemProps, CartReviewChangeButtonProps, CartReviewAddedBadgeProps, } from './components/CartReviewItem';
52
+ export { ServiceOfferCard } from './components/ServiceOfferCard';
53
+ export type { ServiceOfferCardProps } from './components/ServiceOfferCard';
54
+ export { ServiceOfferSheet } from './components/ServiceOfferSheet';
55
+ export type { ServiceOfferSheetProps } from './components/ServiceOfferSheet';
56
+ export { PackageSelect } from './components/PackageSelect';
57
+ export type { PackageSelectProps, PackageSelectOption, } from './components/PackageSelect';
58
+ export { PACKAGE_SELECT_DEFAULT_COPY, getPackageSelectDefaultCopy, } from './components/PackageSelect';
59
+ export type { PackageSelectLocale, PackageSelectDefaultCopy, } from './components/PackageSelect';
60
+ export { TrustBadgesBar } from './components/TrustBadgesBar';
61
+ export type { TrustBadgesBarProps, TrustBadge, } from './components/TrustBadgesBar';
62
+ export { CheckoutBar } from './components/CheckoutBar';
63
+ export type { CheckoutBarProps } from './components/CheckoutBar';
64
+ export { CHECKOUT_BAR_DEFAULT_COPY, getCheckoutBarDefaultCopy, } from './components/CheckoutBar';
65
+ export type { CheckoutBarLocale, CheckoutBarDefaultCopy, } from './components/CheckoutBar';
66
+ export { BookingSummaryBanner } from './components/BookingSummaryBanner';
67
+ export type { BookingSummaryBannerProps, BookingSummaryBannerStats, } from './components/BookingSummaryBanner';
68
+ export { BOOKING_SUMMARY_BANNER_DEFAULT_COPY, getBookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
69
+ export type { BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
70
+ export { BillDetails } from './components/BillDetails';
71
+ export type { BillDetailsProps, BillDetailsRow, } from './components/BillDetails';
72
+ export { CartView } from './components/CartView';
73
+ export type { CartViewProps, CartViewAddon, CartViewItem, CartViewLocale, } from './components/CartView';
74
+ export { TextField } from './components/TextField';
75
+ export type { TextFieldProps } from './components/TextField';
76
+ export { TithiPickerSheet } from './components/TithiPickerSheet';
77
+ export type { TithiPickerSheetProps } from './components/TithiPickerSheet';
78
+ export { DatePickerSheet } from './components/DatePickerSheet';
79
+ export type { DatePickerSheetProps, PickedDate, } from './components/DatePickerSheet';
80
+ export { PhoneNumberSheet } from './components/PhoneNumberSheet';
81
+ export type { PhoneNumberSheetProps } from './components/PhoneNumberSheet';
82
+ export { EmailSheet } from './components/EmailSheet';
83
+ export type { EmailSheetProps } from './components/EmailSheet';
84
+ export { TimeOfBirthPickerSheet } from './components/DatePickerSheet';
85
+ export type { TimeOfBirthPickerSheetProps, PickedTime } from './components/DatePickerSheet';
86
+ export { L2Card } from './components/L2Card';
87
+ export type { L2CardProps, L2CardImageProps } from './components/L2Card';
88
+ export { OutcomeButton, PlusIcon, CheckIcon } from './components/OutcomeButton';
89
+ export type { OutcomeButtonProps, OutcomeButtonVariant, IconProps, } from './components/OutcomeButton';
90
+ export { PujaDetailsForm, createEmptyPujaDetailsFormValues, } from './components/PujaDetailsForm';
91
+ export type { PujaDetailsFormProps, PujaDetailsFormValues, AncestorNameEntry, } from './components/PujaDetailsForm';
92
+ export { PUJA_DETAILS_FORM_DEFAULT_COPY, getPujaDetailsFormDefaultCopy, getKartaOrdinalLabel, } from './components/PujaDetailsForm';
93
+ export type { PujaDetailsFormLocale, PujaDetailsFormDefaultCopy, } from './components/PujaDetailsForm';
94
+ export { ConfirmPujaDetailsModal } from './components/ConfirmPujaDetailsModal';
95
+ export type { ConfirmPujaDetailsModalProps } from './components/ConfirmPujaDetailsModal';
96
+ export { CONFIRM_PUJA_DETAILS_MODAL_DEFAULT_COPY, getConfirmPujaDetailsModalDefaultCopy, } from './components/ConfirmPujaDetailsModal';
97
+ export type { ConfirmPujaDetailsModalLocale, ConfirmPujaDetailsModalDefaultCopy, } from './components/ConfirmPujaDetailsModal';
98
+ export { GotraInfoModal } from './components/GotraInfoModal';
99
+ export type { GotraInfoModalProps } from './components/GotraInfoModal';
100
+ export { GOTRA_INFO_MODAL_DEFAULT_COPY, getGotraInfoModalDefaultCopy, } from './components/GotraInfoModal';
101
+ export type { GotraInfoModalLocale, GotraInfoModalDefaultCopy, } from './components/GotraInfoModal';
102
+ export { OutcomeSummary } from './components/OutcomeSummary';
103
+ export type { OutcomeSummaryProps, OutcomeTrustItem, OutcomeTrustIconVariant, } from './components/OutcomeSummary';
104
+ export { AddAncestorSheet } from './components/AddAncestorSheet';
105
+ export type { AddAncestorSheetProps } from './components/AddAncestorSheet';
106
+ export { AncestorTab } from './components/AncestorTab';
107
+ export type { AncestorTabProps, AncestorTabState, } from './components/AncestorTab';
108
+ export { AncestorTabRow } from './components/AncestorTabRow';
109
+ export type { AncestorTabRowProps, AncestorTabRowEntry, } from './components/AncestorTabRow';
110
+ export { AvatarCardDialog } from './components/AvatarCardDialog';
111
+ export type { AvatarCardDialogProps } from './components/AvatarCardDialog';
112
+ export { parseIsoDate, formatIsoDate, getMonthLabels, formatDisplayDate, } from './utils/date.utils';
113
+ export { SarvaPitruCard } from './components/SarvaPitruCard';
114
+ export type { SarvaPitruCardProps } from './components/SarvaPitruCard';
115
+ export { SARVA_PITRU_CARD_DEFAULT_COPY, getSarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
116
+ export type { SarvaPitruCardLocale, SarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
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';
119
+ export { DEATH_TITHI_OPTIONS, TITHI_NAME_KEYS } from './constants';
120
+ export type { AncestorOptionData, DeathTithiMethod } from './types';
121
+ export type { OutcomeAncestorItem, OutcomeMandapArrangementData, OutcomePackageSelectOption, OutcomePackageSelectProps, OutcomeRitualData, } from './types/outcome.types';
122
+ export { mapPujaL2Response } from './utils/mapPujaL2Response';
123
+ export type { PujaL2DetailsSheetData, } from './utils/mapPujaL2Response';
124
+ export type { PujaL2Benefit, PujaL2BenefitsCard, PujaL2Card, PujaL2InfoMedia, PujaL2LocationDetailsCard, PujaL2Response, PujaL2ReviewUser, PujaL2StoreCard, PujaL2TempleDetails, PujaL2UserReviewsCard, } from './types/pujaL2.types';
125
+ export { EventHeader } from './components/EventHeader';
126
+ export type { EventHeaderProps } from './components/EventHeader';
127
+ export { HeroLogoBadge } from './components/HeroLogoBadge';
128
+ export type { HeroLogoBadgeProps } from './components/HeroLogoBadge';
129
+ export { DatesCard } from './components/DatesCard';
130
+ export type { DatesCardProps } from './components/DatesCard';
131
+ export { RitualProceedBar } from './components/RitualProceedBar';
132
+ export type { RitualProceedBarProps } from './components/RitualProceedBar';