@movmo_app/react-common 0.6.2 → 0.7.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/index.cjs.js +26 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +32 -5
- package/dist/index.es.js +3670 -3335
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -57,14 +57,31 @@ declare interface ChipProps extends React_2.HTMLAttributes<HTMLSpanElement> {
|
|
|
57
57
|
onRemove?: () => void;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/**
|
|
61
|
+
* Full ISO 3166-1 alpha-2 country list as SelectDropdownOption[].
|
|
62
|
+
* US, CA, GB, AU are pinned at the top for quick access.
|
|
63
|
+
* The remaining countries are sorted alphabetically by label.
|
|
64
|
+
*/
|
|
65
|
+
export declare const COUNTRY_OPTIONS: SelectDropdownOption[];
|
|
66
|
+
|
|
67
|
+
export declare const DateDropdowns: ({ value, onChange, travelerType: _travelerType, departureDate: _departureDate, uniqueId, label, yearDirection, errorState, }: DateDropdownsProps) => JSX_2.Element;
|
|
68
|
+
|
|
69
|
+
export declare interface DateDropdownsProps {
|
|
70
|
+
value?: string;
|
|
71
|
+
onChange: (date: string) => void;
|
|
65
72
|
travelerType?: string;
|
|
66
73
|
departureDate?: Date;
|
|
67
74
|
uniqueId?: string;
|
|
75
|
+
/** Display label above the fields. Default: "Date of Birth" */
|
|
76
|
+
label?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Controls which direction years are generated from the current year.
|
|
79
|
+
* - 'past' (default): 120 years back (for date of birth)
|
|
80
|
+
* - 'future': 21 years forward (for passport expiration)
|
|
81
|
+
*/
|
|
82
|
+
yearDirection?: 'past' | 'future';
|
|
83
|
+
/** When true, highlights the Month/Day/Year fields with a red border */
|
|
84
|
+
errorState?: boolean;
|
|
68
85
|
}
|
|
69
86
|
|
|
70
87
|
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -109,6 +126,15 @@ export declare interface PassengerFormProps {
|
|
|
109
126
|
additionalFields?: default_2.ReactNode;
|
|
110
127
|
errorState?: boolean;
|
|
111
128
|
errorMessage?: string;
|
|
129
|
+
showPassportFields?: boolean;
|
|
130
|
+
passportNumber?: string;
|
|
131
|
+
setPassportNumber?: (value: string) => void;
|
|
132
|
+
issuingCountry?: string;
|
|
133
|
+
setIssuingCountry?: (value: string) => void;
|
|
134
|
+
expirationDate?: string;
|
|
135
|
+
setExpirationDate?: (value: string) => void;
|
|
136
|
+
passportErrorState?: boolean;
|
|
137
|
+
passportErrorMessage?: string;
|
|
112
138
|
}
|
|
113
139
|
|
|
114
140
|
export declare const PassengerFormSkeleton: default_2.FC<PassengerFormSkeletonProps>;
|
|
@@ -137,6 +163,7 @@ declare interface SelectDropdownProps {
|
|
|
137
163
|
onChange: (selectedOption: SingleValue<SelectDropdownOption>) => void;
|
|
138
164
|
className?: string;
|
|
139
165
|
styles?: StylesConfig<SelectDropdownOption, false>;
|
|
166
|
+
isSearchable?: boolean;
|
|
140
167
|
'data-testid'?: string;
|
|
141
168
|
}
|
|
142
169
|
|