@srimandir/pitru-paksh-common 2.12.0 → 2.14.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.
@@ -6,7 +6,7 @@
6
6
  * re-computing/re-translating it. Pass `title`/`subtitle`/`subtitleItems`
7
7
  * explicitly to override any of it for a one-off usage.
8
8
  */
9
- export type BookingSummaryBannerLocale = 'en' | 'hi';
9
+ export type BookingSummaryBannerLocale = "en" | "hi" | "te" | "kn";
10
10
  export interface BookingSummaryBannerDefaultCopy {
11
11
  title: string;
12
12
  ancestorsLabel: string;
@@ -17,5 +17,7 @@ export interface FAQSectionProps {
17
17
  /** Index of the FAQ row open by default. -1 = none. */
18
18
  defaultOpenIndex?: number;
19
19
  className?: string;
20
+ /** Left-aligned heading with the same accent bar as `BillDetails`'s title, instead of the default centered heading. */
21
+ showTitleAccent?: boolean;
20
22
  }
21
23
  export declare const FAQSection: React.FC<FAQSectionProps>;
@@ -4,13 +4,15 @@ export interface PhoneNumberSheetProps {
4
4
  onClose: () => void;
5
5
  heading: string;
6
6
  subtext?: string;
7
+ /** Shown inside the number field before anything's typed, e.g. "your mobile number". */
8
+ placeholder?: string;
7
9
  confirmLabel: string;
8
10
  onConfirm: (phoneNumber: string, country: Country) => void;
9
11
  /** Pre-fills the field, e.g. with a value already saved elsewhere. */
10
12
  initialValue?: string;
11
13
  /** Defaults to `DEFAULT_COUNTRIES`. */
12
14
  countries?: Country[];
13
- /** ISO alpha-2 of the pre-selected country. Defaults to India. */
15
+ /** ISO alpha-2 of the fixed country this field collects a number for. Defaults to India. */
14
16
  initialCountryIso?: string;
15
17
  }
16
- export declare function PhoneNumberSheet({ isOpen, onClose, heading, subtext, confirmLabel, onConfirm, initialValue, countries, initialCountryIso, }: PhoneNumberSheetProps): import("react").JSX.Element;
18
+ export declare function PhoneNumberSheet({ isOpen, onClose, heading, subtext, placeholder, confirmLabel, onConfirm, initialValue, countries, initialCountryIso, }: PhoneNumberSheetProps): import("react").JSX.Element;
@@ -3,8 +3,8 @@ export interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInput
3
3
  label?: string;
4
4
  value: string;
5
5
  onChange: (value: string) => void;
6
- /** Fixed, non-editable text shown before the value, e.g. "Late". */
7
- prefix?: string;
6
+ /** Fixed, non-editable content shown before the value, e.g. "Late" or an icon + country code. */
7
+ prefix?: React.ReactNode;
8
8
  /** Shows a live `value.length` counter below the field; appends `/maxLength` when that's set too. */
9
9
  showCharCount?: boolean;
10
10
  /** Overrides the char-count helper text, e.g. for an error message. */