@srimandir/pitru-paksh-common 2.0.17 → 2.0.18
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/EventHeader/EventHeader.d.ts +28 -0
- package/dist/components/EventHeader/index.d.ts +2 -0
- package/dist/components/RitualProceedBar/RitualProceedBar.d.ts +35 -0
- package/dist/components/RitualProceedBar/index.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/pitru-paksh-common.js +1018 -892
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +4 -5
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface EventHeaderProps {
|
|
2
|
+
/** e.g. "Pitru Paksh Special" — rendered between the two star marks */
|
|
3
|
+
badgeLabel: string;
|
|
4
|
+
/** e.g. "27 September - 12 October, 2026" */
|
|
5
|
+
dateRangeLabel: string;
|
|
6
|
+
/** e.g. "Perform Puja Chadhava and Seva in memory of your ancestor" */
|
|
7
|
+
headline: string;
|
|
8
|
+
/** Width of the decorative mandala, in px (number) or any CSS size. Height auto-scales to preserve its native aspect ratio (1:1). Defaults to 225. */
|
|
9
|
+
mandalaWidth?: number | string;
|
|
10
|
+
/** Offset from the header's top edge, in px (number) or any CSS size — negative values push it further out of view. Defaults to -149 (shows just the bottom arc peeking above the logo). */
|
|
11
|
+
mandalaTop?: number | string;
|
|
12
|
+
/** Set to hide the mandala entirely. */
|
|
13
|
+
showMandala?: boolean;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Campaign header banner shown at the top of Pitru Paksha landing pages: a
|
|
18
|
+
* decorative mandala, Sri Mandir logo, an event badge, a date-range pill, and
|
|
19
|
+
* a bold headline, over a cream-to-white gradient.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <EventHeader
|
|
23
|
+
* badgeLabel="Pitru Paksh Special"
|
|
24
|
+
* dateRangeLabel="27 September - 12 October, 2026"
|
|
25
|
+
* headline="Perform Puja Chadhava and Seva in memory of your ancestor"
|
|
26
|
+
* />
|
|
27
|
+
*/
|
|
28
|
+
export declare function EventHeader({ badgeLabel, dateRangeLabel, headline, mandalaWidth, mandalaTop, showMandala, className, }: EventHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export interface RitualProceedBarProps {
|
|
4
|
+
/** e.g. "₹1002/-" — when omitted, the bar renders a single full-width proceed button (nothing selected yet). */
|
|
5
|
+
amount?: ReactNode;
|
|
6
|
+
amountClassName?: string;
|
|
7
|
+
/** e.g. "2 Rituals" — shown under the amount. */
|
|
8
|
+
subtitle?: ReactNode;
|
|
9
|
+
subtitleClassName?: string;
|
|
10
|
+
/** Info icon next to the amount — click to reveal a bill breakdown, etc. Pass `onInfoClick` to make it interactive. */
|
|
11
|
+
showInfoIcon?: boolean;
|
|
12
|
+
onInfoClick?: () => void;
|
|
13
|
+
/** CTA label, e.g. "Continue". */
|
|
14
|
+
proceedLabel?: ReactNode;
|
|
15
|
+
/** Trailing icon on the CTA. Defaults to an arrow. Pass `null` to hide it. */
|
|
16
|
+
proceedIcon?: ReactNode;
|
|
17
|
+
onProceed?: () => void;
|
|
18
|
+
/** Renders a flat, muted button. Defaults to `amount == null` (nothing to proceed with yet). */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Extra props forwarded to the underlying `Button` (size, loading, ...). */
|
|
21
|
+
proceedButtonProps?: Omit<ButtonProps, 'children' | 'onClick' | 'disabled' | 'variant'>;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Sticky bottom bar for a ritual-selection flow, over a cream-to-pink
|
|
26
|
+
* gradient. Two states, switched by whether `amount` is passed:
|
|
27
|
+
* - No `amount`: a single full-width, muted proceed button (nothing picked yet).
|
|
28
|
+
* - With `amount`: the total + an optional "N Rituals" subtitle on the left,
|
|
29
|
+
* and a green "Continue" button on the right.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* <RitualProceedBar amount="₹1002/-" subtitle="2 Rituals" proceedLabel="Continue" onProceed={...} />
|
|
33
|
+
* <RitualProceedBar proceedLabel="Continue" onProceed={...} /> // nothing selected yet
|
|
34
|
+
*/
|
|
35
|
+
export declare function RitualProceedBar({ amount, amountClassName, subtitle, subtitleClassName, showInfoIcon, onInfoClick, proceedLabel, proceedIcon, onProceed, disabled, proceedButtonProps, className, }: RitualProceedBarProps): import("react").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { Button, buttonVariants } from './components/Button';
|
|
2
2
|
export type { ButtonProps } from './components/Button';
|
|
3
|
+
export { EventHeader } from './components/EventHeader';
|
|
4
|
+
export type { EventHeaderProps } from './components/EventHeader';
|
|
5
|
+
export { RitualProceedBar } from './components/RitualProceedBar';
|
|
6
|
+
export type { RitualProceedBarProps } from './components/RitualProceedBar';
|
|
3
7
|
export { TestimonialCard } from './components/TestimonialCard';
|
|
4
8
|
export type { TestimonialCardProps } from './components/TestimonialCard';
|
|
5
9
|
export { FAQSection } from './components/FAQSection';
|