@srimandir/pitru-paksh-common 1.0.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.
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface AudioQuestionCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ avatarUrl: string;
4
+ question: string;
5
+ /** When provided, plays once automatically on mount. */
6
+ audioSrc?: string;
7
+ }
8
+ export declare const AudioQuestionCard: React.FC<AudioQuestionCardProps>;
@@ -0,0 +1,2 @@
1
+ export { AudioQuestionCard } from './AudioQuestionCard';
2
+ export type { AudioQuestionCardProps } from './AudioQuestionCard';
@@ -0,0 +1,14 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ export declare const buttonVariants: (props?: ({
4
+ variant?: "primary" | "secondary" | "outline" | "ghost" | null | undefined;
5
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
+ iconOnly?: boolean | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
9
+ loading?: boolean;
10
+ leftIcon?: React.ReactNode;
11
+ rightIcon?: React.ReactNode;
12
+ }
13
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
14
+ export default Button;
@@ -0,0 +1,2 @@
1
+ export { Button, buttonVariants } from './Button';
2
+ export type { ButtonProps } from './Button';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
3
+ label: string;
4
+ selected?: boolean;
5
+ onClick?: () => void;
6
+ /** Leading icon slot, e.g. an add/plus icon for an "Add More" chip. */
7
+ icon?: React.ReactNode;
8
+ }
9
+ export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,2 @@
1
+ export { Chip } from './Chip';
2
+ export type { ChipProps } from './Chip';
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ export interface FAQItem {
3
+ question: string;
4
+ answer: string;
5
+ }
6
+ export interface FAQSectionProps {
7
+ title?: string;
8
+ items: FAQItem[];
9
+ /** Items shown before the CTA. Ignored when showCta is false or items.length is at most this. */
10
+ initialVisibleCount?: number;
11
+ /** Whether to render the "see more / see less" CTA at all. */
12
+ showCta?: boolean;
13
+ /** Initial expanded state of the CTA-controlled list. */
14
+ defaultExpanded?: boolean;
15
+ ctaExpandLabel?: string;
16
+ ctaCollapseLabel?: string;
17
+ /** Index of the FAQ row open by default. -1 = none. */
18
+ defaultOpenIndex?: number;
19
+ className?: string;
20
+ }
21
+ export declare const FAQSection: React.FC<FAQSectionProps>;
@@ -0,0 +1,2 @@
1
+ export { FAQSection } from './FAQSection';
2
+ export type { FAQSectionProps, FAQItem } from './FAQSection';
@@ -0,0 +1,19 @@
1
+ import { default as React } from 'react';
2
+ export interface LanguageOption {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export interface LanguageSwitcherProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
7
+ options: LanguageOption[];
8
+ /** Currently selected option's value; highlights the matching menu item. */
9
+ value?: string;
10
+ onChange?: (value: string) => void;
11
+ /** Uncontrolled initial open state. Ignored if `open` is provided. */
12
+ defaultOpen?: boolean;
13
+ /** Controlled open state — pass alongside `onOpenChange` to own it yourself. */
14
+ open?: boolean;
15
+ onOpenChange?: (open: boolean) => void;
16
+ triggerClassName?: string;
17
+ menuClassName?: string;
18
+ }
19
+ export declare const LanguageSwitcher: React.ForwardRefExoticComponent<LanguageSwitcherProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { LanguageSwitcher } from './LanguageSwitcher';
2
+ export type { LanguageSwitcherProps, LanguageOption } from './LanguageSwitcher';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface StepProgressHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** e.g. "|| Om Pitru Bhyo Namah || 🙏" */
4
+ quote: string;
5
+ currentStep: number;
6
+ totalSteps: number;
7
+ }
8
+ export declare const StepProgressHeader: React.FC<StepProgressHeaderProps>;
@@ -0,0 +1,2 @@
1
+ export { StepProgressHeader } from './StepProgressHeader';
2
+ export type { StepProgressHeaderProps } from './StepProgressHeader';
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface TestimonialCardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ quote: string;
4
+ authorName: string;
5
+ authorAvatarUrl?: string;
6
+ /** e.g. "त्रिपिंडी श्राद्ध पूजा| 15 अगस्त 2026" */
7
+ meta: string;
8
+ /** 1-5, defaults to 5 */
9
+ rating?: number;
10
+ }
11
+ export declare const TestimonialCard: React.FC<TestimonialCardProps>;
@@ -0,0 +1,2 @@
1
+ export { TestimonialCard } from './TestimonialCard';
2
+ export type { TestimonialCardProps } from './TestimonialCard';
@@ -0,0 +1,9 @@
1
+ import { LanguageOption } from '../LanguageSwitcher';
2
+ export interface TopBarProps {
3
+ onBackClick?: () => void;
4
+ backButtonAriaLabel?: string;
5
+ locale: string;
6
+ localeOptions: LanguageOption[];
7
+ onLocaleChange: (locale: string) => void;
8
+ }
9
+ export declare function TopBar({ onBackClick, backButtonAriaLabel, locale, localeOptions, onLocaleChange, }: TopBarProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { TopBar } from './TopBar';
2
+ export type { TopBarProps } from './TopBar';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface VideoPlayerProps {
3
+ /** Direct file URL (mp4/webm/etc.) or a YouTube URL — react-player auto-detects. */
4
+ src: string;
5
+ poster: string;
6
+ className?: string;
7
+ rounded?: boolean;
8
+ /** Enforced on both the outer container and the video/poster itself. */
9
+ width?: string | number;
10
+ height?: string | number;
11
+ }
12
+ export declare const VideoPlayer: React.ForwardRefExoticComponent<VideoPlayerProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ export { VideoPlayer } from './VideoPlayer';
2
+ export type { VideoPlayerProps } from './VideoPlayer';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ export { Button, buttonVariants } from './components/Button';
2
+ export type { ButtonProps } from './components/Button';
3
+ export { TestimonialCard } from './components/TestimonialCard';
4
+ export type { TestimonialCardProps } from './components/TestimonialCard';
5
+ export { FAQSection } from './components/FAQSection';
6
+ export type { FAQSectionProps, FAQItem } from './components/FAQSection';
7
+ export { VideoPlayer } from './components/VideoPlayer';
8
+ export type { VideoPlayerProps } from './components/VideoPlayer';
9
+ export { LanguageSwitcher } from './components/LanguageSwitcher';
10
+ export type { LanguageSwitcherProps, LanguageOption } from './components/LanguageSwitcher';
11
+ export { TopBar } from './components/TopBar';
12
+ export type { TopBarProps } from './components/TopBar';
13
+ export { Chip } from './components/Chip';
14
+ export type { ChipProps } from './components/Chip';
15
+ export { StepProgressHeader } from './components/StepProgressHeader';
16
+ export type { StepProgressHeaderProps } from './components/StepProgressHeader';
17
+ export { AudioQuestionCard } from './components/AudioQuestionCard';
18
+ export type { AudioQuestionCardProps } from './components/AudioQuestionCard';
19
+ export { cn } from '../../common/dist/common.js';