@srimandir/make-your-own-ritual 0.1.10 → 0.2.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/MandapArrangementCard/MandapArrangementCard.d.ts +22 -0
- package/dist/components/MandapArrangementCard/index.d.ts +2 -0
- package/dist/components/MyorOutcome/MyorOutcome.d.ts +41 -0
- package/dist/components/MyorOutcome/index.d.ts +2 -0
- package/dist/components/MyorRitualCard/MyorRitualCard.d.ts +14 -0
- package/dist/components/MyorRitualCard/index.d.ts +2 -0
- package/dist/components/MyorServiceOfferCard/MyorServiceOfferCard.d.ts +21 -0
- package/dist/components/MyorServiceOfferCard/index.d.ts +2 -0
- package/dist/components/PujaDetailsSheet/PujaDetailsSheet.d.ts +17 -0
- package/dist/components/PujaDetailsSheet/index.d.ts +4 -0
- package/dist/index.d.ts +10 -0
- package/dist/make-your-own-ritual.js +1584 -995
- package/dist/make-your-own-ritual.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/makeYourOwnRitual.types.d.ts +11 -2
- package/dist/types/pitruPakshStore.types.d.ts +10 -0
- package/package.json +7 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MandapArrangementCardProps {
|
|
2
|
+
imageUrl: string;
|
|
3
|
+
imageAlt: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
/** Strikethrough original price, e.g. "₹851" */
|
|
7
|
+
originalPrice?: string;
|
|
8
|
+
/** e.g. "₹651" */
|
|
9
|
+
price: string;
|
|
10
|
+
isAdded: boolean;
|
|
11
|
+
onCtaClick?: () => void;
|
|
12
|
+
/** Grays out and disables the add/remove CTA, e.g. once mandatory */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* MYOR's own clone of ritual-recommendations' `MandapArrangementCard` —
|
|
17
|
+
* kept separate rather than modifying the shared one so ritual-recommendations'
|
|
18
|
+
* own outcome page is untouched. Only real difference: `disabled` renders a
|
|
19
|
+
* genuinely grey CTA (mandap is always mandatory once shown in MYOR) instead
|
|
20
|
+
* of the `secondary` variant's faded-green look.
|
|
21
|
+
*/
|
|
22
|
+
export declare function MandapArrangementCard({ imageUrl, imageAlt, title, description, originalPrice, price, isAdded, onCtaClick, disabled, }: MandapArrangementCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RitualRecommendationData, MandapArrangementData, PackageSelectSheetProps, DevoteeReviewData, DevoteeReviewMedia } from '../../../../pitru-paksh-ritual-recommendation/dist/pitru-paksh-ritual-recommendation.js';
|
|
2
|
+
/**
|
|
3
|
+
* `RitualRecommendationData` plus MYOR's own per-ritual "Learn more" reviews
|
|
4
|
+
* (fetched on demand per temple, unlike ritual-recommendations' one fixed
|
|
5
|
+
* list for every ritual) — a local extension instead of widening the shared
|
|
6
|
+
* type, so ritual-recommendations' own type is untouched.
|
|
7
|
+
*/
|
|
8
|
+
export type MyorOutcomeRitualData = RitualRecommendationData & {
|
|
9
|
+
devoteesReviews?: DevoteeReviewData[];
|
|
10
|
+
learnMoreLabel?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface MyorOutcomeProps {
|
|
13
|
+
ritualCount: number;
|
|
14
|
+
rituals: MyorOutcomeRitualData[];
|
|
15
|
+
mandapArrangement?: MandapArrangementData;
|
|
16
|
+
/** Video/screenshot reviews shown in a carousel above the text reviews, in every ritual's detail sheet */
|
|
17
|
+
reviewMedia?: DevoteeReviewMedia[];
|
|
18
|
+
onDevoteesReviewsSeeMoreClick?: () => void;
|
|
19
|
+
totalPrice: string;
|
|
20
|
+
onPriceInfoClick?: () => void;
|
|
21
|
+
onProceedClick?: (id: string) => void;
|
|
22
|
+
/** Skips the "who is performing the puja" package sheet — the sticky CTA's Proceed proceeds straight through with `packageSelectOptions[0]`, e.g. for a chadava/seva-only selection that has nothing to pick a performer package for. */
|
|
23
|
+
skipPackageSelect?: boolean;
|
|
24
|
+
/** Floating back button over the hero banner — omit to hide it, e.g. for a flow with no previous page to return to. */
|
|
25
|
+
onBack?: () => void;
|
|
26
|
+
backButtonAriaLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* MYOR's own outcome page — a clone of ritual-recommendations' `Outcome`
|
|
30
|
+
* (kept separate rather than modifying the shared one, which
|
|
31
|
+
* ritual-recommendations' live results page also depends on) with MYOR's
|
|
32
|
+
* own additions baked in directly instead of as opt-in props:
|
|
33
|
+
* - Always renders `MyorRitualCard`, never the default ritual card.
|
|
34
|
+
* - Unadding a ritual that has ancestors on it always opens the
|
|
35
|
+
* ancestor-edit sheet instead of removing it immediately — the actual
|
|
36
|
+
* removal happens once every ancestor's toggled off there (see
|
|
37
|
+
* `AncestorEditModal`'s `onToggle`).
|
|
38
|
+
* - A ritual's own `devoteesReviews` (per-temple, fetched on demand) takes
|
|
39
|
+
* precedence over showing nothing.
|
|
40
|
+
*/
|
|
41
|
+
export declare function MyorOutcome({ ritualCount, rituals, mandapArrangement, reviewMedia, onDevoteesReviewsSeeMoreClick, totalPrice, onPriceInfoClick, onProceedClick, skipPackageSelect, onBack, backButtonAriaLabel, packageSelectOptions, }: MyorOutcomeProps & PackageSelectSheetProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RitualRecommendationData } from '../../../../pitru-paksh-ritual-recommendation/dist/pitru-paksh-ritual-recommendation.js';
|
|
2
|
+
export type MyorRitualCardProps = RitualRecommendationData & {
|
|
3
|
+
learnMoreLabel?: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* MYOR's own outcome-page ritual card — visually distinct from
|
|
7
|
+
* `RitualRecommendationCard`/`L2Card` (side-by-side thumbnail + text instead
|
|
8
|
+
* of a full-width banner image, always-expanded with no collapse chevron,
|
|
9
|
+
* and a full-bleed flat stats bar placed after the date/location rows
|
|
10
|
+
* instead of overlapping the image) per the MYOR L2 Figma spec. Kept as a
|
|
11
|
+
* separate component rather than reworking `L2Card`, so
|
|
12
|
+
* ritual-recommendations' own card is untouched.
|
|
13
|
+
*/
|
|
14
|
+
export declare function MyorRitualCard({ index, ancestorsLabel, onEditClick, imageUrl, imageAlt, ratingLabel, bookedLabel, title, description, learnMoreLabel, onLearnMoreClick, learnMoreHref, dateLabel, locationLabel, price, isAdded, onCtaClick, onPriceInfoClick, }: MyorRitualCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MyorServiceOfferCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
/** Illustration/photo shown top-right, e.g. the ritual/service photo. */
|
|
4
|
+
image: string;
|
|
5
|
+
imageAlt?: string;
|
|
6
|
+
/** Service name, e.g. "Offer tarpan donation for the peace of your ancestors". */
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
/** Helper copy under the title, typically ending in a read-more affordance. */
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
/** Current price, e.g. "₹199". */
|
|
11
|
+
price: React.ReactNode;
|
|
12
|
+
/** Original price shown struck-through before `price`, e.g. "₹250". */
|
|
13
|
+
originalPrice?: React.ReactNode;
|
|
14
|
+
/** Flush corner banner rendered above the content. */
|
|
15
|
+
tag?: React.ReactNode;
|
|
16
|
+
tagClassName?: string;
|
|
17
|
+
/** Control anchored over the bottom edge of the image. */
|
|
18
|
+
action?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/** Add-on card used on MYOR booking review screens. */
|
|
21
|
+
export declare const MyorServiceOfferCard: React.FC<MyorServiceOfferCardProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PujaDetailsSheetProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
closeButtonAriaLabel?: string;
|
|
6
|
+
dragHandleAriaLabel?: string;
|
|
7
|
+
/** Pinned below the scrollable content, e.g. a CTA button */
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* MYOR's own clone of ritual-recommendations' `PujaDetailsSheet` — kept
|
|
13
|
+
* separate rather than modifying the shared one so ritual-recommendations'
|
|
14
|
+
* own sheet is untouched. Only real difference: `overflow-x-hidden` on the
|
|
15
|
+
* scrollable body (see below).
|
|
16
|
+
*/
|
|
17
|
+
export declare function PujaDetailsSheet({ isOpen, onClose, closeButtonAriaLabel, dragHandleAriaLabel, footer, children, }: PujaDetailsSheetProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PujaDetailsSheet } from './PujaDetailsSheet';
|
|
2
|
+
export type { PujaDetailsSheetProps } from './PujaDetailsSheet';
|
|
3
|
+
export { PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, DevoteesReviews, } from '../../../../pitru-paksh-ritual-recommendation/dist/pitru-paksh-ritual-recommendation.js';
|
|
4
|
+
export type { PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, DevoteesReviewsProps, DevoteeReviewData, DevoteeReviewMedia, } from '../../../../pitru-paksh-ritual-recommendation/dist/pitru-paksh-ritual-recommendation.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -13,3 +13,13 @@ export { LandingPage } from './components/LandingPage';
|
|
|
13
13
|
export type { LandingPageProps } from './components/LandingPage';
|
|
14
14
|
export { ChadhavaSevaBottomSheet } from './components/ChadhavaSevaBottomSheet';
|
|
15
15
|
export type { ChadhavaSevaBottomSheetProps } from './components/ChadhavaSevaBottomSheet';
|
|
16
|
+
export { MyorRitualCard } from './components/MyorRitualCard';
|
|
17
|
+
export type { MyorRitualCardProps } from './components/MyorRitualCard';
|
|
18
|
+
export { MyorServiceOfferCard } from './components/MyorServiceOfferCard';
|
|
19
|
+
export type { MyorServiceOfferCardProps } from './components/MyorServiceOfferCard';
|
|
20
|
+
export { MandapArrangementCard } from './components/MandapArrangementCard';
|
|
21
|
+
export type { MandapArrangementCardProps } from './components/MandapArrangementCard';
|
|
22
|
+
export { MyorOutcome } from './components/MyorOutcome';
|
|
23
|
+
export type { MyorOutcomeProps, MyorOutcomeRitualData } from './components/MyorOutcome';
|
|
24
|
+
export { PujaDetailsSheet, PujaDetailsCarouselHeader, PujaBenefitsSection, TempleSignificanceSection, DevoteesReviews, } from './components/PujaDetailsSheet';
|
|
25
|
+
export type { PujaDetailsSheetProps, PujaDetailsCarouselHeaderProps, PujaBenefitsSectionProps, PujaBenefitData, TempleSignificanceSectionProps, DevoteesReviewsProps, DevoteeReviewData, DevoteeReviewMedia, } from './components/PujaDetailsSheet';
|