@srimandir/pitru-paksh-common 1.0.7 → 1.0.9
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/Button/Button.d.ts +1 -1
- package/dist/components/PitruPakshHeader/PitruPakshHeader.d.ts +27 -0
- package/dist/components/PitruPakshHeader/index.d.ts +2 -0
- package/dist/components/RitualCard/RitualCard.d.ts +26 -0
- package/dist/components/RitualCard/index.d.ts +2 -0
- package/dist/index.d.ts +4 -6
- package/dist/pitru-paksh-common.js +720 -855
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/components/L2Card/L2Card.d.ts +0 -54
- package/dist/components/L2Card/index.d.ts +0 -2
- package/dist/components/OutcomeButton/OutcomeButton.d.ts +0 -10
- package/dist/components/OutcomeButton/icons.d.ts +0 -5
- package/dist/components/OutcomeButton/index.d.ts +0 -4
- package/dist/components/OutcomeSummary/OutcomeSummary.d.ts +0 -19
- package/dist/components/OutcomeSummary/OutcomeTrustIcon.d.ts +0 -5
- package/dist/components/OutcomeSummary/index.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
4
|
+
variant?: "primary" | "success" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
6
|
iconOnly?: boolean | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LanguageOption } from '../LanguageSwitcher';
|
|
3
|
+
export interface PitruPakshHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** e.g. "Pitru Paksh Special" */
|
|
5
|
+
badgeLabel: string;
|
|
6
|
+
/** e.g. "27 September - 12 October, 2026" */
|
|
7
|
+
dateRangeLabel: string;
|
|
8
|
+
/** Page heading shown below the date chip, e.g. "Perform Puja, Chadhava and Seva in memory of your ancestor" */
|
|
9
|
+
heading: string;
|
|
10
|
+
onBackClick?: () => void;
|
|
11
|
+
backButtonAriaLabel?: string;
|
|
12
|
+
locale: string;
|
|
13
|
+
localeOptions: LanguageOption[];
|
|
14
|
+
onLocaleChange: (locale: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Overrides the mandala watermark's position/size classes — merged over the default
|
|
17
|
+
* (`absolute top-[-149px] left-1/2 w-[225px] -translate-x-1/2 opacity-70`), so pass only
|
|
18
|
+
* what you want to change, e.g. `mandalaClassName="w-[300px] top-[-100px]"`.
|
|
19
|
+
*/
|
|
20
|
+
mandalaClassName?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Shared decorative header used at the top of every Make Your Own Ritual screen —
|
|
24
|
+
* back button + language picker (TopBar), the Sri Mandir mark, the "<sparkle> badge <sparkle>"
|
|
25
|
+
* line, the pink gradient date-range chip, and the page heading, over a mandala watermark.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PitruPakshHeader: React.FC<PitruPakshHeaderProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RitualCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick" | "onSelect"> {
|
|
3
|
+
image: string;
|
|
4
|
+
title: string;
|
|
5
|
+
/** One line on what the item is for — must be item-specific, per PRD 8.2. */
|
|
6
|
+
description: string;
|
|
7
|
+
/** Temple/tirtha the ritual is performed at, taken from the SKU. */
|
|
8
|
+
location: string;
|
|
9
|
+
rating?: number;
|
|
10
|
+
bookedByLabel?: string;
|
|
11
|
+
/** e.g. "Starts from" — shown only for multi-tithi (puja) items. Omit for a flat chadhava price. */
|
|
12
|
+
priceLeadLabel?: string;
|
|
13
|
+
price: string;
|
|
14
|
+
aboutLabel: string;
|
|
15
|
+
onAboutClick?: () => void;
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
onSelect?: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The item-selection card (PRD 8.2) and the ritual-output card (PRD 8.7) share this anatomy —
|
|
21
|
+
* image, title, purpose line, location, social proof, price and an About link that never
|
|
22
|
+
* doubles as a selection target. Tapping anywhere on the card (bar the About link) toggles it.
|
|
23
|
+
*/
|
|
24
|
+
export declare const RitualCard: React.ForwardRefExoticComponent<RitualCardProps & {
|
|
25
|
+
onSelect?: () => void;
|
|
26
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,10 +16,8 @@ export { StepProgressHeader } from './components/StepProgressHeader';
|
|
|
16
16
|
export type { StepProgressHeaderProps } from './components/StepProgressHeader';
|
|
17
17
|
export { AudioQuestionCard } from './components/AudioQuestionCard';
|
|
18
18
|
export type { AudioQuestionCardProps } from './components/AudioQuestionCard';
|
|
19
|
-
export {
|
|
20
|
-
export type {
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
23
|
-
export { OutcomeSummary } from './components/OutcomeSummary';
|
|
24
|
-
export type { OutcomeSummaryProps, OutcomeTrustItem, OutcomeTrustIconVariant } from './components/OutcomeSummary';
|
|
19
|
+
export { PitruPakshHeader } from './components/PitruPakshHeader';
|
|
20
|
+
export type { PitruPakshHeaderProps } from './components/PitruPakshHeader';
|
|
21
|
+
export { RitualCard } from './components/RitualCard';
|
|
22
|
+
export type { RitualCardProps } from './components/RitualCard';
|
|
25
23
|
export { cn } from '../../common/dist/common.js';
|