@srimandir/pitru-paksh-common 2.11.0 → 2.11.1
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.translations.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/CartView/CartView.translations.d.ts +2 -1
- package/dist/components/CartView/index.d.ts +1 -0
- package/dist/components/CheckoutBar/CheckoutBar.d.ts +6 -0
- package/dist/components/CheckoutBar/CheckoutBar.translations.d.ts +2 -1
- package/dist/components/ConfirmPujaDetailsModal/ConfirmPujaDetailsModal.translations.d.ts +1 -1
- package/dist/components/GotraInfoModal/GotraInfoModal.translations.d.ts +1 -1
- package/dist/components/OnlinePujaTestimonial/OnlinePujaTestimonial.d.ts +1 -0
- package/dist/components/OutcomeAncestorEditModal/OutcomeAncestorEditModal.d.ts +23 -0
- package/dist/components/OutcomeBillDetails/OutcomeBillDetails.d.ts +17 -0
- package/dist/components/OutcomeEmptyRituals/OutcomeEmptyRituals.d.ts +1 -0
- package/dist/components/OutcomeStickyCta/OutcomeStickyCta.d.ts +10 -0
- package/dist/components/PackageSelect/PackageSelect.d.ts +10 -6
- package/dist/components/PackageSelect/PackageSelect.translations.d.ts +1 -1
- package/dist/components/ProcessInvolved/ProcessInvolved.d.ts +1 -0
- package/dist/components/PujaDetails/DevoteesReviews.d.ts +24 -0
- package/dist/components/PujaDetails/PujaBenefitsSection.d.ts +10 -0
- package/dist/components/PujaDetails/PujaDetailsCarouselHeader.d.ts +9 -0
- package/dist/components/PujaDetails/TempleSignificanceSection.d.ts +7 -0
- package/dist/components/SelectorCard/SelectorCard.d.ts +4 -4
- package/dist/components/WhySriMandir/WhySriMandir.d.ts +1 -0
- package/dist/constants/outcome.constants.d.ts +7 -0
- package/dist/index.d.ts +27 -1
- package/dist/outcome-i18n/index.d.ts +11 -0
- package/dist/outcome-i18n/translations.d.ts +69 -0
- package/dist/pitru-paksh-common.d.ts +124 -0
- package/dist/pitru-paksh-common.js +3135 -1795
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/dist/types/outcome.types.d.ts +65 -0
- package/dist/types/pujaL2.types.d.ts +62 -0
- package/dist/utils/mapPujaL2Response.d.ts +16 -0
- package/package.json +4 -5
|
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "md" | "lg" | "xs" | "sm" | "xl" | null | undefined;
|
|
6
6
|
iconOnly?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** Fixed copy for `CartView`, keyed by locale. */
|
|
2
|
-
export type CartViewLocale = 'en' | 'hi';
|
|
2
|
+
export type CartViewLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
3
3
|
export interface CartViewDefaultCopy {
|
|
4
|
+
backButtonAriaLabel: string;
|
|
4
5
|
headerTitle: string;
|
|
5
6
|
addonsTitle: string;
|
|
6
7
|
addonsDescription: string;
|
|
@@ -25,6 +25,12 @@ export interface CheckoutBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
25
25
|
/** Extra props forwarded to the underlying `Button` (variant, size, disabled, loading, ...). */
|
|
26
26
|
proceedButtonProps?: Omit<ButtonProps, 'children' | 'onClick'>;
|
|
27
27
|
buttonWrapperClassName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Shrinks the amount/subtitle block to its content width and grows the
|
|
30
|
+
* Proceed button to fill the rest of the row instead of the default
|
|
31
|
+
* (amount block flexes, button sized to its label). Defaults to `false`.
|
|
32
|
+
*/
|
|
33
|
+
growProceedButton?: boolean;
|
|
28
34
|
}
|
|
29
35
|
/**
|
|
30
36
|
* Sticky-friendly checkout bar shown at the bottom of a package-selection or
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
* re-computing/re-translating it. Pass `proceedLabel` explicitly to override
|
|
6
6
|
* it for a one-off usage.
|
|
7
7
|
*/
|
|
8
|
-
export type CheckoutBarLocale = 'en' | 'hi' | 'te';
|
|
8
|
+
export type CheckoutBarLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
9
9
|
export interface CheckoutBarDefaultCopy {
|
|
10
10
|
proceedLabel: string;
|
|
11
|
+
infoButtonAriaLabel?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const CHECKOUT_BAR_DEFAULT_COPY: Record<CheckoutBarLocale, CheckoutBarDefaultCopy>;
|
|
13
14
|
/** Resolves the default copy for `locale`, falling back to `'en'` when unsupported. */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* translation) lives here once instead of every consuming page
|
|
6
6
|
* re-computing/re-translating it.
|
|
7
7
|
*/
|
|
8
|
-
export type ConfirmPujaDetailsModalLocale = 'en' | 'hi' | 'te';
|
|
8
|
+
export type ConfirmPujaDetailsModalLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
9
9
|
export interface ConfirmPujaDetailsModalDefaultCopy {
|
|
10
10
|
heading: string;
|
|
11
11
|
subtext: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* when a devotee doesn't know their Gotra (lineage) — opened from the
|
|
4
4
|
* Gotra field's info icon in `PujaDetailsForm`.
|
|
5
5
|
*/
|
|
6
|
-
export type GotraInfoModalLocale = 'en' | 'hi' | 'te';
|
|
6
|
+
export type GotraInfoModalLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
7
7
|
export interface GotraInfoModalDefaultCopy {
|
|
8
8
|
heading: string;
|
|
9
9
|
body: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OnlinePujaTestimonial(): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface OutcomeAncestorPujaItem {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
tithi: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface OutcomeAncestorEditModalProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
avatarUrl?: string;
|
|
11
|
+
question: string;
|
|
12
|
+
ancestors: OutcomeAncestorPujaItem[];
|
|
13
|
+
onToggle: (index: number) => void;
|
|
14
|
+
confirmLabel: string;
|
|
15
|
+
onConfirmClick: () => void;
|
|
16
|
+
addAgainLabel: string;
|
|
17
|
+
removeLabel: string;
|
|
18
|
+
removeWarningMessagePrefix: string;
|
|
19
|
+
removeWarningMessageSuffix?: string;
|
|
20
|
+
removeWarningConfirmLabel: string;
|
|
21
|
+
removeWarningCancelLabel: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function OutcomeAncestorEditModal({ isOpen, onClose, avatarUrl, question, ancestors, onToggle, confirmLabel, onConfirmClick, addAgainLabel, removeLabel, removeWarningMessagePrefix, removeWarningMessageSuffix, removeWarningConfirmLabel, removeWarningCancelLabel, }: OutcomeAncestorEditModalProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface OutcomeBillDetailsItem {
|
|
2
|
+
name: string;
|
|
3
|
+
subtitle: string;
|
|
4
|
+
quantityLabel?: string;
|
|
5
|
+
originalLineTotal?: string;
|
|
6
|
+
lineTotal: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OutcomeBillDetailsProps {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
closeButtonAriaLabel?: string;
|
|
12
|
+
heading: string;
|
|
13
|
+
items: OutcomeBillDetailsItem[];
|
|
14
|
+
totalLabel: string;
|
|
15
|
+
totalAmount: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function OutcomeBillDetails({ isOpen, onClose, closeButtonAriaLabel, heading, items, totalLabel, totalAmount, }: OutcomeBillDetailsProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function OutcomeEmptyRituals(): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface OutcomeStickyCtaProps {
|
|
3
|
+
totalPrice: string;
|
|
4
|
+
ritualCountLabel: ReactNode;
|
|
5
|
+
proceedLabel?: ReactNode;
|
|
6
|
+
onPriceInfoClick?: () => void;
|
|
7
|
+
onProceedClick?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function OutcomeStickyCta({ totalPrice, ritualCountLabel, proceedLabel, onPriceInfoClick, onProceedClick, disabled, }: OutcomeStickyCtaProps): import("react").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { SelectorCardProps,
|
|
2
|
+
import { SelectorCardProps, SelectorCardPriceBadgeProps } from '../SelectorCard';
|
|
3
3
|
import { TrustBadgesBarProps } from '../TrustBadgesBar';
|
|
4
4
|
import { CheckoutBarProps } from '../CheckoutBar';
|
|
5
5
|
import { PackageSelectLocale } from './PackageSelect.translations';
|
|
6
|
-
export interface PackageSelectOption extends Omit<SelectorCardProps, 'id' | 'selected' | 'onSelect' | 'badge' | 'children'> {
|
|
6
|
+
export interface PackageSelectOption extends Omit<SelectorCardProps, 'id' | 'selected' | 'onSelect' | 'badge' | 'children' | 'note'> {
|
|
7
7
|
/** Unique id for this option, passed back via `onChange`. */
|
|
8
8
|
id: string | number;
|
|
9
9
|
/** Price label, e.g. "+₹400" or "₹0". Ignored when `badge` is set directly. */
|
|
@@ -18,11 +18,15 @@ export interface PackageSelectOption extends Omit<SelectorCardProps, 'id' | 'sel
|
|
|
18
18
|
badge?: React.ReactNode;
|
|
19
19
|
/** Extra props forwarded to the price badge (`SelectorCardPriceBadge`, or the plain muted `<span>` when `free`). */
|
|
20
20
|
priceBadgeProps?: Omit<SelectorCardPriceBadgeProps, 'value'>;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Explainer note shown only while this option is selected, e.g. "Rituals
|
|
23
|
+
* will be performed on behalf of 2 family members" — rendered via
|
|
24
|
+
* `SelectorCard`'s own `note` prop, as its own surface behind the card
|
|
25
|
+
* (same treatment `DeathTithi`'s "don't know the tithi" option uses),
|
|
26
|
+
* not nested inside it. Ignored when `children` is set directly.
|
|
27
|
+
*/
|
|
22
28
|
note?: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
noteProps?: Omit<SelectorCardNoteProps, 'children'>;
|
|
25
|
-
/** Full override for the card's children slot — takes precedence over `note`/`noteProps`. */
|
|
29
|
+
/** Full override for the card's children slot — takes precedence over `note`. */
|
|
26
30
|
children?: React.ReactNode;
|
|
27
31
|
}
|
|
28
32
|
export interface PackageSelectProps {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* `title`/`description`/`benefits`/`trustBadges` explicitly to override any
|
|
8
8
|
* of it for a one-off usage.
|
|
9
9
|
*/
|
|
10
|
-
export type PackageSelectLocale = 'en' | 'hi' | 'te';
|
|
10
|
+
export type PackageSelectLocale = 'en' | 'hi' | 'kn' | 'te';
|
|
11
11
|
export interface PackageSelectDefaultCopy {
|
|
12
12
|
title: string;
|
|
13
13
|
description: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ProcessInvolved(): import("react").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DevoteeReviewData {
|
|
2
|
+
avatarUrl?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
date: string;
|
|
5
|
+
stars: number;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DevoteeReviewMedia {
|
|
9
|
+
videoUrl?: string;
|
|
10
|
+
thumbnailUrl?: string;
|
|
11
|
+
imageUrl?: string;
|
|
12
|
+
avatarUrl: string;
|
|
13
|
+
name: string;
|
|
14
|
+
location: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DevoteesReviewsProps {
|
|
17
|
+
heading: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
reviews: DevoteeReviewData[];
|
|
20
|
+
reviewMedia?: DevoteeReviewMedia[];
|
|
21
|
+
seeMoreLabel?: string;
|
|
22
|
+
onSeeMoreClick?: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function DevoteesReviews({ heading, subtitle, reviews, reviewMedia, seeMoreLabel, onSeeMoreClick, }: DevoteesReviewsProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PujaBenefitData {
|
|
2
|
+
icon?: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PujaBenefitsSectionProps {
|
|
7
|
+
heading: string;
|
|
8
|
+
benefits: PujaBenefitData[];
|
|
9
|
+
}
|
|
10
|
+
export declare function PujaBenefitsSection({ heading, benefits, }: PujaBenefitsSectionProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface PujaDetailsCarouselHeaderProps {
|
|
2
|
+
images: string[];
|
|
3
|
+
useCase?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
specificity?: string;
|
|
6
|
+
dateLabel: string;
|
|
7
|
+
locationLabel: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function PujaDetailsCarouselHeader({ images, useCase, title, specificity, dateLabel, locationLabel, }: PujaDetailsCarouselHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface TempleSignificanceSectionProps {
|
|
2
|
+
question: string;
|
|
3
|
+
imageUrl: string;
|
|
4
|
+
imageAlt?: string;
|
|
5
|
+
paragraphs: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare function TempleSignificanceSection({ question, imageUrl, imageAlt, paragraphs, }: TempleSignificanceSectionProps): import("react").JSX.Element;
|
|
@@ -42,10 +42,10 @@ export interface SelectorCardProps extends Omit<React.ButtonHTMLAttributes<HTMLB
|
|
|
42
42
|
*/
|
|
43
43
|
children?: React.ReactNode;
|
|
44
44
|
/**
|
|
45
|
-
* An explainer note rendered
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
45
|
+
* An explainer note rendered flush below the card, both wrapped in a shared
|
|
46
|
+
* lavender wash surface (instead of nested inside the card's own border like
|
|
47
|
+
* `children`). Typically shown only while `selected` is true; that's left to
|
|
48
|
+
* the caller.
|
|
49
49
|
*/
|
|
50
50
|
note?: React.ReactNode;
|
|
51
51
|
/** Extra classes for the `note` surface, e.g. to change its text color. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function WhySriMandir(): import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OutcomeTrustIconVariant } from '../components/OutcomeSummary';
|
|
2
|
+
import { OutcomeTranslationKey } from '../outcome-i18n';
|
|
3
|
+
export interface OutcomeTrustItemData {
|
|
4
|
+
variant: OutcomeTrustIconVariant;
|
|
5
|
+
textKey: OutcomeTranslationKey;
|
|
6
|
+
}
|
|
7
|
+
export declare const OUTCOME_TRUST_ITEMS: OutcomeTrustItemData[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
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';
|
|
1
23
|
export { Button, buttonVariants } from './components/Button';
|
|
2
24
|
export type { ButtonProps } from './components/Button';
|
|
3
25
|
export { ConfinedBottomSheet } from './components/ConfinedBottomSheet';
|
|
@@ -46,7 +68,7 @@ export type { BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy, } fro
|
|
|
46
68
|
export { BillDetails } from './components/BillDetails';
|
|
47
69
|
export type { BillDetailsProps, BillDetailsRow, } from './components/BillDetails';
|
|
48
70
|
export { CartView } from './components/CartView';
|
|
49
|
-
export type { CartViewProps, CartViewAddon, CartViewItem, } from './components/CartView';
|
|
71
|
+
export type { CartViewProps, CartViewAddon, CartViewItem, CartViewLocale, } from './components/CartView';
|
|
50
72
|
export { TextField } from './components/TextField';
|
|
51
73
|
export type { TextFieldProps } from './components/TextField';
|
|
52
74
|
export { TithiPickerSheet } from './components/TithiPickerSheet';
|
|
@@ -92,6 +114,10 @@ export { cn } from '../../common/dist/common.js';
|
|
|
92
114
|
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
93
115
|
export { DEATH_TITHI_OPTIONS, TITHI_NAME_KEYS } from './constants';
|
|
94
116
|
export type { AncestorOptionData, DeathTithiMethod } from './types';
|
|
117
|
+
export type { OutcomeAncestorItem, OutcomeMandapArrangementData, OutcomePackageSelectOption, OutcomePackageSelectProps, OutcomeRitualData, } from './types/outcome.types';
|
|
118
|
+
export { mapPujaL2Response } from './utils/mapPujaL2Response';
|
|
119
|
+
export type { PujaL2DetailsSheetData, } from './utils/mapPujaL2Response';
|
|
120
|
+
export type { PujaL2Benefit, PujaL2BenefitsCard, PujaL2Card, PujaL2InfoMedia, PujaL2LocationDetailsCard, PujaL2Response, PujaL2ReviewUser, PujaL2StoreCard, PujaL2TempleDetails, PujaL2UserReviewsCard, } from './types/pujaL2.types';
|
|
95
121
|
export { EventHeader } from './components/EventHeader';
|
|
96
122
|
export type { EventHeaderProps } from './components/EventHeader';
|
|
97
123
|
export { RitualProceedBar } from './components/RitualProceedBar';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { I18nContextValue } from '../../../common/dist/common.js';
|
|
3
|
+
import { OutcomeLocale, OutcomeTranslationKey } from './translations';
|
|
4
|
+
export declare const OutcomeI18nProvider: FC<{
|
|
5
|
+
locale: OutcomeLocale;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function useOutcomeI18n(): I18nContextValue<OutcomeLocale> | null;
|
|
9
|
+
export declare const getOutcomeTranslation: (locale: OutcomeLocale, key: OutcomeTranslationKey) => string;
|
|
10
|
+
export { OUTCOME_SUPPORTED_LOCALES, outcomeTranslations, } from './translations';
|
|
11
|
+
export type { OutcomeLocale, OutcomeTranslationKey, OutcomeTranslations, } from './translations';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const OUTCOME_SUPPORTED_LOCALES: readonly ["en", "hi", "kn", "te"];
|
|
2
|
+
export type OutcomeLocale = (typeof OUTCOME_SUPPORTED_LOCALES)[number];
|
|
3
|
+
declare const en: {
|
|
4
|
+
landingOnlinePujaTitle: string;
|
|
5
|
+
landingOnlinePujaBodyPrefix: string;
|
|
6
|
+
landingOnlinePujaBodyPart1: string;
|
|
7
|
+
landingOnlinePujaBodyPart2: string;
|
|
8
|
+
landingOnlinePujaBodyPart3: string;
|
|
9
|
+
landingOnlinePujaBodyPart4: string;
|
|
10
|
+
landingOnlinePujaQuote: string;
|
|
11
|
+
landingTopBarBackButtonAriaLabel: string;
|
|
12
|
+
outcomeBadge: string;
|
|
13
|
+
outcomeHeadingPrefix: string;
|
|
14
|
+
outcomeHeadingRitualSingular: string;
|
|
15
|
+
outcomeHeadingRitualPlural: string;
|
|
16
|
+
outcomeHeadingSuffix: string;
|
|
17
|
+
outcomeTrustPanditsText: string;
|
|
18
|
+
outcomeTrustGotraText: string;
|
|
19
|
+
outcomeTrustVideoText: string;
|
|
20
|
+
outcomeEditAriaLabel: string;
|
|
21
|
+
outcomeLearnMoreLabel: string;
|
|
22
|
+
outcomePriceInfoLabel: string;
|
|
23
|
+
outcomeAddLabel: string;
|
|
24
|
+
outcomeAddedLabel: string;
|
|
25
|
+
outcomeStickyCtaRitualSingular: string;
|
|
26
|
+
outcomeStickyCtaRitualPlural: string;
|
|
27
|
+
outcomeStickyCtaPriceInfoAriaLabel: string;
|
|
28
|
+
outcomeStickyCtaProceedLabel: string;
|
|
29
|
+
outcomeEmptyRitualsTitle: string;
|
|
30
|
+
outcomeEmptyRitualsSubtitle: string;
|
|
31
|
+
outcomeRemovedRitualsHeading: string;
|
|
32
|
+
whySriMandirHeading: string;
|
|
33
|
+
whySriMandirGuaranteeLabel: string;
|
|
34
|
+
whySriMandirTemplesLabel: string;
|
|
35
|
+
whySriMandirSupportLabel: string;
|
|
36
|
+
processInvolvedHeading: string;
|
|
37
|
+
processNameGotraTitle: string;
|
|
38
|
+
processNameGotraDescription: string;
|
|
39
|
+
processLiveUpdatesTitle: string;
|
|
40
|
+
processLiveUpdatesDescription: string;
|
|
41
|
+
processMantrasTitle: string;
|
|
42
|
+
processMantrasDescription: string;
|
|
43
|
+
processVideoTitle: string;
|
|
44
|
+
processVideoDescription: string;
|
|
45
|
+
pujaBenefitsHeading: string;
|
|
46
|
+
templeSignificanceReadMoreLabel: string;
|
|
47
|
+
templeSignificanceReadLessLabel: string;
|
|
48
|
+
devoteesReviewsHeading: string;
|
|
49
|
+
devoteesReviewsSubtitle: string;
|
|
50
|
+
devoteesReviewsSeeMoreLabel: string;
|
|
51
|
+
pujaDetailsGotItLabel: string;
|
|
52
|
+
ancestorEditQuestion: string;
|
|
53
|
+
ancestorEditAddAgainLabel: string;
|
|
54
|
+
ancestorEditRemoveLabel: string;
|
|
55
|
+
ancestorEditConfirmLabel: string;
|
|
56
|
+
ancestorRemoveWarningPrefix: string;
|
|
57
|
+
ancestorRemoveWarningSuffix: string;
|
|
58
|
+
ancestorRemoveWarningConfirmLabel: string;
|
|
59
|
+
ancestorRemoveWarningCancelLabel: string;
|
|
60
|
+
billDetailsHeading: string;
|
|
61
|
+
billDetailsCloseAriaLabel: string;
|
|
62
|
+
pujaDetailsDragHandleAriaLabel: string;
|
|
63
|
+
billDetailsTotalLabel: string;
|
|
64
|
+
billDetailsFeeLabel: string;
|
|
65
|
+
};
|
|
66
|
+
export type OutcomeTranslationKey = keyof typeof en;
|
|
67
|
+
export type OutcomeTranslations = Record<OutcomeTranslationKey, string>;
|
|
68
|
+
export declare const outcomeTranslations: Record<OutcomeLocale, OutcomeTranslations>;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { PackageSelect } from './components/PackageSelect';
|
|
55
|
+
export type { PackageSelectProps, PackageSelectOption, } from './components/PackageSelect';
|
|
56
|
+
export { PACKAGE_SELECT_DEFAULT_COPY, getPackageSelectDefaultCopy, } from './components/PackageSelect';
|
|
57
|
+
export type { PackageSelectLocale, PackageSelectDefaultCopy, } from './components/PackageSelect';
|
|
58
|
+
export { TrustBadgesBar } from './components/TrustBadgesBar';
|
|
59
|
+
export type { TrustBadgesBarProps, TrustBadge, } from './components/TrustBadgesBar';
|
|
60
|
+
export { CheckoutBar } from './components/CheckoutBar';
|
|
61
|
+
export type { CheckoutBarProps } from './components/CheckoutBar';
|
|
62
|
+
export { CHECKOUT_BAR_DEFAULT_COPY, getCheckoutBarDefaultCopy, } from './components/CheckoutBar';
|
|
63
|
+
export type { CheckoutBarLocale, CheckoutBarDefaultCopy, } from './components/CheckoutBar';
|
|
64
|
+
export { BookingSummaryBanner } from './components/BookingSummaryBanner';
|
|
65
|
+
export type { BookingSummaryBannerProps, BookingSummaryBannerStats, } from './components/BookingSummaryBanner';
|
|
66
|
+
export { BOOKING_SUMMARY_BANNER_DEFAULT_COPY, getBookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
|
|
67
|
+
export type { BookingSummaryBannerLocale, BookingSummaryBannerDefaultCopy, } from './components/BookingSummaryBanner';
|
|
68
|
+
export { BillDetails } from './components/BillDetails';
|
|
69
|
+
export type { BillDetailsProps, BillDetailsRow, } from './components/BillDetails';
|
|
70
|
+
export { CartView } from './components/CartView';
|
|
71
|
+
export type { CartViewProps, CartViewAddon, CartViewItem, CartViewLocale, } from './components/CartView';
|
|
72
|
+
export { TextField } from './components/TextField';
|
|
73
|
+
export type { TextFieldProps } from './components/TextField';
|
|
74
|
+
export { TithiPickerSheet } from './components/TithiPickerSheet';
|
|
75
|
+
export type { TithiPickerSheetProps } from './components/TithiPickerSheet';
|
|
76
|
+
export { DatePickerSheet } from './components/DatePickerSheet';
|
|
77
|
+
export type { DatePickerSheetProps, PickedDate, } from './components/DatePickerSheet';
|
|
78
|
+
export { PhoneNumberSheet } from './components/PhoneNumberSheet';
|
|
79
|
+
export type { PhoneNumberSheetProps } from './components/PhoneNumberSheet';
|
|
80
|
+
export { EmailSheet } from './components/EmailSheet';
|
|
81
|
+
export type { EmailSheetProps } from './components/EmailSheet';
|
|
82
|
+
export { L2Card } from './components/L2Card';
|
|
83
|
+
export type { L2CardProps, L2CardImageProps } from './components/L2Card';
|
|
84
|
+
export { OutcomeButton, PlusIcon, CheckIcon } from './components/OutcomeButton';
|
|
85
|
+
export type { OutcomeButtonProps, OutcomeButtonVariant, IconProps, } from './components/OutcomeButton';
|
|
86
|
+
export { PujaDetailsForm, createEmptyPujaDetailsFormValues, } from './components/PujaDetailsForm';
|
|
87
|
+
export type { PujaDetailsFormProps, PujaDetailsFormValues, AncestorNameEntry, } from './components/PujaDetailsForm';
|
|
88
|
+
export { PUJA_DETAILS_FORM_DEFAULT_COPY, getPujaDetailsFormDefaultCopy, getKartaOrdinalLabel, } from './components/PujaDetailsForm';
|
|
89
|
+
export type { PujaDetailsFormLocale, PujaDetailsFormDefaultCopy, } from './components/PujaDetailsForm';
|
|
90
|
+
export { ConfirmPujaDetailsModal } from './components/ConfirmPujaDetailsModal';
|
|
91
|
+
export type { ConfirmPujaDetailsModalProps } from './components/ConfirmPujaDetailsModal';
|
|
92
|
+
export { CONFIRM_PUJA_DETAILS_MODAL_DEFAULT_COPY, getConfirmPujaDetailsModalDefaultCopy, } from './components/ConfirmPujaDetailsModal';
|
|
93
|
+
export type { ConfirmPujaDetailsModalLocale, ConfirmPujaDetailsModalDefaultCopy, } from './components/ConfirmPujaDetailsModal';
|
|
94
|
+
export { GotraInfoModal } from './components/GotraInfoModal';
|
|
95
|
+
export type { GotraInfoModalProps } from './components/GotraInfoModal';
|
|
96
|
+
export { GOTRA_INFO_MODAL_DEFAULT_COPY, getGotraInfoModalDefaultCopy, } from './components/GotraInfoModal';
|
|
97
|
+
export type { GotraInfoModalLocale, GotraInfoModalDefaultCopy, } from './components/GotraInfoModal';
|
|
98
|
+
export { OutcomeSummary } from './components/OutcomeSummary';
|
|
99
|
+
export type { OutcomeSummaryProps, OutcomeTrustItem, OutcomeTrustIconVariant, } from './components/OutcomeSummary';
|
|
100
|
+
export { AddAncestorSheet } from './components/AddAncestorSheet';
|
|
101
|
+
export type { AddAncestorSheetProps } from './components/AddAncestorSheet';
|
|
102
|
+
export { AncestorTab } from './components/AncestorTab';
|
|
103
|
+
export type { AncestorTabProps, AncestorTabState, } from './components/AncestorTab';
|
|
104
|
+
export { AncestorTabRow } from './components/AncestorTabRow';
|
|
105
|
+
export type { AncestorTabRowProps, AncestorTabRowEntry, } from './components/AncestorTabRow';
|
|
106
|
+
export { AvatarCardDialog } from './components/AvatarCardDialog';
|
|
107
|
+
export type { AvatarCardDialogProps } from './components/AvatarCardDialog';
|
|
108
|
+
export { parseIsoDate, formatIsoDate, getMonthLabels, formatDisplayDate, } from './utils/date.utils';
|
|
109
|
+
export { SarvaPitruCard } from './components/SarvaPitruCard';
|
|
110
|
+
export type { SarvaPitruCardProps } from './components/SarvaPitruCard';
|
|
111
|
+
export { SARVA_PITRU_CARD_DEFAULT_COPY, getSarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
112
|
+
export type { SarvaPitruCardLocale, SarvaPitruCardDefaultCopy, } from './components/SarvaPitruCard';
|
|
113
|
+
export { cn } from '../../common/dist/common.js';
|
|
114
|
+
export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS, MALE_ANCESTOR_AVATAR_URL, FEMALE_ANCESTOR_AVATAR_URL, getAncestorAvatarUrl, } from './constants';
|
|
115
|
+
export { DEATH_TITHI_OPTIONS, TITHI_NAME_KEYS } from './constants';
|
|
116
|
+
export type { AncestorOptionData, DeathTithiMethod } from './types';
|
|
117
|
+
export type { OutcomeAncestorItem, OutcomeMandapArrangementData, OutcomePackageSelectOption, OutcomePackageSelectProps, OutcomeRitualData, } from './types/outcome.types';
|
|
118
|
+
export { mapPujaL2Response } from './utils/mapPujaL2Response';
|
|
119
|
+
export type { PujaL2DetailsSheetData, } from './utils/mapPujaL2Response';
|
|
120
|
+
export type { PujaL2Benefit, PujaL2BenefitsCard, PujaL2Card, PujaL2InfoMedia, PujaL2LocationDetailsCard, PujaL2Response, PujaL2ReviewUser, PujaL2StoreCard, PujaL2TempleDetails, PujaL2UserReviewsCard, } from './types/pujaL2.types';
|
|
121
|
+
export { EventHeader } from './components/EventHeader';
|
|
122
|
+
export type { EventHeaderProps } from './components/EventHeader';
|
|
123
|
+
export { RitualProceedBar } from './components/RitualProceedBar';
|
|
124
|
+
export type { RitualProceedBarProps } from './components/RitualProceedBar';
|