@srimandir/pitru-paksh-common 2.10.1-alpha.1 → 2.10.1-alpha.2
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/DatePickerSheet/DatePickerSheet.d.ts +2 -1
- package/dist/components/DatePickerSheet/TimeOfBirthPickerSheet.d.ts +20 -0
- package/dist/components/DatePickerSheet/index.d.ts +2 -0
- package/dist/components/FAQSection/FAQSection.d.ts +2 -0
- package/dist/components/PhoneNumberSheet/PhoneNumberSheet.d.ts +4 -2
- package/dist/components/TextField/TextField.d.ts +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/pitru-paksh-common.d.ts +2 -0
- package/dist/pitru-paksh-common.js +1633 -1594
- package/dist/pitru-paksh-common.umd.cjs +8 -8
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -7,7 +7,8 @@ export interface PickedDate {
|
|
|
7
7
|
export interface DatePickerSheetProps {
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
onClose: () => void;
|
|
10
|
-
|
|
10
|
+
/** Shows a small circular avatar next to `heading`, e.g. to identify which ancestor's date this is. Omit for a plain heading. */
|
|
11
|
+
avatarUrl?: string;
|
|
11
12
|
heading: string;
|
|
12
13
|
/** 12 translated month names, January first. */
|
|
13
14
|
monthLabels: string[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface PickedTime {
|
|
2
|
+
/** 24-hour, 0-23 */
|
|
3
|
+
hour: number;
|
|
4
|
+
minute: number;
|
|
5
|
+
}
|
|
6
|
+
export interface TimeOfBirthPickerSheetProps {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** Shows a small circular avatar next to `heading`. Omit for a plain heading. */
|
|
10
|
+
avatarUrl?: string;
|
|
11
|
+
heading: string;
|
|
12
|
+
confirmLabel: string;
|
|
13
|
+
onConfirm: (time: PickedTime) => void;
|
|
14
|
+
/** Shown next to the CTA, e.g. "Timezone: IST". Omit to hide. */
|
|
15
|
+
timezoneLabel?: string;
|
|
16
|
+
initialTime?: PickedTime;
|
|
17
|
+
amLabel?: string;
|
|
18
|
+
pmLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function TimeOfBirthPickerSheet({ isOpen, onClose, avatarUrl, heading, confirmLabel, onConfirm, timezoneLabel, initialTime, amLabel, pmLabel, }: TimeOfBirthPickerSheetProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { DatePickerSheet } from './DatePickerSheet';
|
|
2
2
|
export type { DatePickerSheetProps, PickedDate } from './DatePickerSheet';
|
|
3
|
+
export { TimeOfBirthPickerSheet } from './TimeOfBirthPickerSheet';
|
|
4
|
+
export type { TimeOfBirthPickerSheetProps, PickedTime } from './TimeOfBirthPickerSheet';
|
|
@@ -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
|
|
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. */
|
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ export { PhoneNumberSheet } from './components/PhoneNumberSheet';
|
|
|
79
79
|
export type { PhoneNumberSheetProps } from './components/PhoneNumberSheet';
|
|
80
80
|
export { EmailSheet } from './components/EmailSheet';
|
|
81
81
|
export type { EmailSheetProps } from './components/EmailSheet';
|
|
82
|
+
export { TimeOfBirthPickerSheet } from './components/DatePickerSheet';
|
|
83
|
+
export type { TimeOfBirthPickerSheetProps, PickedTime } from './components/DatePickerSheet';
|
|
82
84
|
export { L2Card } from './components/L2Card';
|
|
83
85
|
export type { L2CardProps, L2CardImageProps } from './components/L2Card';
|
|
84
86
|
export { OutcomeButton, PlusIcon, CheckIcon } from './components/OutcomeButton';
|
|
@@ -79,6 +79,8 @@ export { PhoneNumberSheet } from './components/PhoneNumberSheet';
|
|
|
79
79
|
export type { PhoneNumberSheetProps } from './components/PhoneNumberSheet';
|
|
80
80
|
export { EmailSheet } from './components/EmailSheet';
|
|
81
81
|
export type { EmailSheetProps } from './components/EmailSheet';
|
|
82
|
+
export { TimeOfBirthPickerSheet } from './components/DatePickerSheet';
|
|
83
|
+
export type { TimeOfBirthPickerSheetProps, PickedTime } from './components/DatePickerSheet';
|
|
82
84
|
export { L2Card } from './components/L2Card';
|
|
83
85
|
export type { L2CardProps, L2CardImageProps } from './components/L2Card';
|
|
84
86
|
export { OutcomeButton, PlusIcon, CheckIcon } from './components/OutcomeButton';
|