@srimandir/pitru-paksh-common 2.30.0 → 2.31.0
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/DatesCard/DatesCard.d.ts +4 -0
- package/dist/components/DatesCard/index.d.ts +2 -0
- package/dist/components/HeroLogoBadge/HeroLogoBadge.d.ts +13 -0
- package/dist/components/HeroLogoBadge/index.d.ts +2 -0
- package/dist/components/SarvaPitruCard/SarvaPitruCard.translations.d.ts +1 -1
- package/dist/components/SelectorCard/SelectorCard.d.ts +3 -3
- package/dist/index.d.ts +4 -0
- package/dist/pitru-paksh-common.js +795 -721
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -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;
|
|
@@ -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>,
|
|
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?:
|
|
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?:
|
|
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
|
/**
|
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';
|