@movmo_app/react-common 0.7.3 → 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 +24 -24
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +64 -0
- package/dist/index.es.js +2226 -1845
- 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,6 +64,23 @@ declare interface ChipProps extends React_2.HTMLAttributes<HTMLSpanElement> {
|
|
|
64
64
|
*/
|
|
65
65
|
export declare const COUNTRY_OPTIONS: SelectDropdownOption[];
|
|
66
66
|
|
|
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
|
+
|
|
67
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 {
|
|
@@ -88,6 +105,16 @@ export declare interface DateDropdownsProps {
|
|
|
88
105
|
className?: string;
|
|
89
106
|
}
|
|
90
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
|
+
|
|
91
118
|
export declare const IconButton: React_2.ForwardRefExoticComponent<IconButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
92
119
|
|
|
93
120
|
declare interface IconButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -99,6 +126,43 @@ export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.Class
|
|
|
99
126
|
required?: boolean;
|
|
100
127
|
}, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
101
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
|
+
|
|
102
166
|
export declare const Pagination: React_2.FC<PaginationProps>;
|
|
103
167
|
|
|
104
168
|
declare interface PaginationProps {
|