@srimandir/pitru-paksh-common 2.13.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.
- package/dist/components/BookingSummaryBanner/BookingSummaryBanner.translations.d.ts +1 -1
- package/dist/components/PhoneNumberSheet/PhoneNumberSheet.d.ts +4 -2
- package/dist/components/TextField/TextField.d.ts +2 -2
- package/dist/pitru-paksh-common.js +1486 -1517
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -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 =
|
|
9
|
+
export type BookingSummaryBannerLocale = "en" | "hi" | "te" | "kn";
|
|
10
10
|
export interface BookingSummaryBannerDefaultCopy {
|
|
11
11
|
title: string;
|
|
12
12
|
ancestorsLabel: string;
|
|
@@ -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
|
|
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
|
|
7
|
-
prefix?:
|
|
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. */
|