@movmo_app/react-common 0.7.2 → 0.8.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 +69 -1
- package/dist/index.es.js +2597 -2212
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +9 -2
package/dist/index.d.ts
CHANGED
|
@@ -64,7 +64,24 @@ declare interface ChipProps extends React_2.HTMLAttributes<HTMLSpanElement> {
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const COUNTRY_OPTIONS: SelectDropdownOption[];
|
|
66
66
|
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const CURRENCY_OPTIONS: CurrencyOption[];
|
|
68
|
+
|
|
69
|
+
export declare const CurrencyModal: default_2.FC<CurrencyModalProps>;
|
|
70
|
+
|
|
71
|
+
export declare interface CurrencyModalProps {
|
|
72
|
+
isOpen: boolean;
|
|
73
|
+
onClose: () => void;
|
|
74
|
+
currentCurrencyCode: string;
|
|
75
|
+
onCurrencySelect: (currencyCode: string) => void;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare interface CurrencyOption {
|
|
79
|
+
code: string;
|
|
80
|
+
name: string;
|
|
81
|
+
symbol: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export declare const DateDropdowns: ({ value, onChange, travelerType: _travelerType, departureDate: _departureDate, uniqueId, label, yearDirection, errorState, labelClassName, className, }: DateDropdownsProps) => JSX_2.Element;
|
|
68
85
|
|
|
69
86
|
export declare interface DateDropdownsProps {
|
|
70
87
|
value?: string;
|
|
@@ -82,8 +99,22 @@ export declare interface DateDropdownsProps {
|
|
|
82
99
|
yearDirection?: 'past' | 'future';
|
|
83
100
|
/** When true, highlights the Month/Day/Year fields with a red border */
|
|
84
101
|
errorState?: boolean;
|
|
102
|
+
/** Custom CSS classes for the label. Default: "text-sm md:text-base font-semibold" */
|
|
103
|
+
labelClassName?: string;
|
|
104
|
+
/** Custom CSS classes for the wrapper div. Default: "mt-7" */
|
|
105
|
+
className?: string;
|
|
85
106
|
}
|
|
86
107
|
|
|
108
|
+
export declare const DEFAULT_LOCALE: LocaleOption;
|
|
109
|
+
|
|
110
|
+
export declare const findCurrencyOption: (code: string) => CurrencyOption;
|
|
111
|
+
|
|
112
|
+
export declare const findLocaleOption: (languageCode: string, regionCode: string) => LocaleOption;
|
|
113
|
+
|
|
114
|
+
export declare const getCurrencyDisplayText: (option: CurrencyOption) => string;
|
|
115
|
+
|
|
116
|
+
export declare const getLanguageDisplayName: (option: LocaleOption) => string;
|
|
117
|
+
|
|
87
118
|
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
88
119
|
|
|
89
120
|
declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -95,6 +126,43 @@ export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.Class
|
|
|
95
126
|
required?: boolean;
|
|
96
127
|
}, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
97
128
|
|
|
129
|
+
export declare const LOCALE_OPTIONS: LocaleOption[];
|
|
130
|
+
|
|
131
|
+
export declare const LOCALE_STORAGE_KEY = "movmo_locale_preferences";
|
|
132
|
+
|
|
133
|
+
export declare const LocaleModal: default_2.FC<LocaleModalProps>;
|
|
134
|
+
|
|
135
|
+
export declare interface LocaleModalProps {
|
|
136
|
+
isOpen: boolean;
|
|
137
|
+
onClose: () => void;
|
|
138
|
+
currentLanguageCode: string;
|
|
139
|
+
currentRegionCode: string;
|
|
140
|
+
onLocaleSelect: (option: LocaleOption) => void;
|
|
141
|
+
translateIconUrl?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare interface LocaleOption {
|
|
145
|
+
languageCode: string;
|
|
146
|
+
regionCode: string;
|
|
147
|
+
currencyCode: string;
|
|
148
|
+
languageDisplay: string;
|
|
149
|
+
regionDisplay: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare const Modal: default_2.FC<ModalProps>;
|
|
153
|
+
|
|
154
|
+
export declare interface ModalProps {
|
|
155
|
+
isOpen: boolean;
|
|
156
|
+
onClose: () => void;
|
|
157
|
+
title: default_2.ReactNode;
|
|
158
|
+
children: default_2.ReactNode;
|
|
159
|
+
footer?: default_2.ReactNode;
|
|
160
|
+
maxWidth?: string;
|
|
161
|
+
maxWidthPx?: number;
|
|
162
|
+
footerHasBorder?: boolean;
|
|
163
|
+
hideCloseButton?: boolean;
|
|
164
|
+
}
|
|
165
|
+
|
|
98
166
|
export declare const Pagination: React_2.FC<PaginationProps>;
|
|
99
167
|
|
|
100
168
|
declare interface PaginationProps {
|