mayak-common-library 0.0.108 → 0.0.109
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.d.mts +300 -0
- package/dist/index.d.ts +300 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
5
|
+
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
|
+
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
+
import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
|
|
8
|
+
import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } from '@mui/material';
|
|
9
|
+
import { BadgeProps } from '@mui/material/Badge/Badge';
|
|
10
|
+
import { AvatarProps } from '@mui/material/Avatar/Avatar';
|
|
11
|
+
import { TypographyOwnProps } from '@mui/material/Typography';
|
|
12
|
+
import { RadioProps } from '@mui/material/Radio';
|
|
13
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
14
|
+
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
15
|
+
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
16
|
+
import { SliderProps } from '@mui/material/Slider/Slider';
|
|
17
|
+
import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
|
|
18
|
+
import { InputProps } from '@mui/material/Input';
|
|
19
|
+
import { PatternFormatProps } from 'react-number-format/types/types';
|
|
20
|
+
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
21
|
+
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
22
|
+
import { ListProps } from '@mui/material/List/List';
|
|
23
|
+
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
24
|
+
import { FormControlLabelProps as FormControlLabelProps$1 } from '@mui/material/FormControlLabel/FormControlLabel';
|
|
25
|
+
|
|
26
|
+
declare function Greet(props: {
|
|
27
|
+
name: string;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
interface CustomButtonProps extends ButtonProps, PropsWithChildren {
|
|
31
|
+
bolt?: boolean;
|
|
32
|
+
border?: boolean;
|
|
33
|
+
base?: boolean;
|
|
34
|
+
small?: boolean;
|
|
35
|
+
large?: boolean;
|
|
36
|
+
medium?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const Button: FC<CustomButtonProps>;
|
|
39
|
+
|
|
40
|
+
interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
|
|
41
|
+
}
|
|
42
|
+
declare const IconButton: FC<CustomIconButtonProps>;
|
|
43
|
+
|
|
44
|
+
declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
|
|
45
|
+
|
|
46
|
+
interface SelectProProps {
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
childTitle?: ReactElement;
|
|
49
|
+
colorBorder?: boolean;
|
|
50
|
+
clickComponent?: ReactElement;
|
|
51
|
+
fullContainerWidth?: boolean;
|
|
52
|
+
overButton?: boolean;
|
|
53
|
+
small?: boolean;
|
|
54
|
+
fullWidth?: boolean;
|
|
55
|
+
freeChildWidth?: boolean;
|
|
56
|
+
disableCloseButton?: boolean;
|
|
57
|
+
openUp?: boolean;
|
|
58
|
+
intermediateChild?: ReactElement;
|
|
59
|
+
actionsComponent?: ReactElement;
|
|
60
|
+
accentBgColor?: true;
|
|
61
|
+
paperSx?: SystemStyleObject;
|
|
62
|
+
childContainerSx?: SystemStyleObject;
|
|
63
|
+
reverseAnimation?: boolean;
|
|
64
|
+
containerSx?: SystemStyleObject;
|
|
65
|
+
}
|
|
66
|
+
declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
67
|
+
|
|
68
|
+
interface CustomChipProps {
|
|
69
|
+
view: "black" | "line" | "white" | "silver";
|
|
70
|
+
}
|
|
71
|
+
declare const Chip: FC<ChipProps & CustomChipProps>;
|
|
72
|
+
|
|
73
|
+
declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
|
|
78
|
+
|
|
79
|
+
interface CustomRadioProps {
|
|
80
|
+
labelProps?: FormControlLabelProps;
|
|
81
|
+
radioProps?: RadioProps;
|
|
82
|
+
label?: string;
|
|
83
|
+
value?: string;
|
|
84
|
+
}
|
|
85
|
+
declare const CustomRadio: React__default.FC<CustomRadioProps>;
|
|
86
|
+
|
|
87
|
+
declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
|
|
88
|
+
|
|
89
|
+
interface CustomSwitchProps {
|
|
90
|
+
beforeText?: string;
|
|
91
|
+
afterText?: string;
|
|
92
|
+
}
|
|
93
|
+
declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
|
|
94
|
+
|
|
95
|
+
declare const CustomSlider: FC<SliderProps>;
|
|
96
|
+
|
|
97
|
+
declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
98
|
+
|
|
99
|
+
interface CustomInputProps {
|
|
100
|
+
type?: "number" | "string";
|
|
101
|
+
adornmentText?: string;
|
|
102
|
+
big?: boolean;
|
|
103
|
+
}
|
|
104
|
+
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
105
|
+
|
|
106
|
+
interface PhoneInputProps {
|
|
107
|
+
onChange: (event: {
|
|
108
|
+
target: {
|
|
109
|
+
name: string;
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
}) => void;
|
|
113
|
+
name: string;
|
|
114
|
+
}
|
|
115
|
+
declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
|
|
116
|
+
|
|
117
|
+
interface FromToInputProps {
|
|
118
|
+
label?: string;
|
|
119
|
+
}
|
|
120
|
+
declare const FromToInput: FC<FromToInputProps>;
|
|
121
|
+
|
|
122
|
+
interface SearchInputProps {
|
|
123
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
124
|
+
collapse?: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
127
|
+
|
|
128
|
+
declare const Providers: FC<PropsWithChildren>;
|
|
129
|
+
|
|
130
|
+
interface AppBarProps {
|
|
131
|
+
links: {
|
|
132
|
+
path: string;
|
|
133
|
+
title: string;
|
|
134
|
+
}[];
|
|
135
|
+
}
|
|
136
|
+
declare const AppBar: FC<AppBarProps>;
|
|
137
|
+
|
|
138
|
+
interface ImageContainerProps {
|
|
139
|
+
src: any;
|
|
140
|
+
alt: string;
|
|
141
|
+
contentful?: boolean;
|
|
142
|
+
priority?: boolean;
|
|
143
|
+
loading?: "lazy" | "eager" | undefined;
|
|
144
|
+
width?: string;
|
|
145
|
+
height?: string;
|
|
146
|
+
objectFit?: string;
|
|
147
|
+
classesWrapper?: string;
|
|
148
|
+
classesImg?: string;
|
|
149
|
+
}
|
|
150
|
+
declare const ImageContainer: FC<ImageContainerProps>;
|
|
151
|
+
|
|
152
|
+
interface CategoryCardProps {
|
|
153
|
+
image_url?: string;
|
|
154
|
+
title: string;
|
|
155
|
+
text: string;
|
|
156
|
+
link: string;
|
|
157
|
+
}
|
|
158
|
+
declare const CategoryCard: FC<CategoryCardProps>;
|
|
159
|
+
|
|
160
|
+
interface ArticleCardProps {
|
|
161
|
+
imageUrl: string;
|
|
162
|
+
title: string;
|
|
163
|
+
text: string;
|
|
164
|
+
classes?: string;
|
|
165
|
+
href: string;
|
|
166
|
+
}
|
|
167
|
+
declare const ArticleCard: FC<ArticleCardProps>;
|
|
168
|
+
|
|
169
|
+
interface JobCardProps {
|
|
170
|
+
}
|
|
171
|
+
declare const JobCard: FC<JobCardProps>;
|
|
172
|
+
|
|
173
|
+
declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
|
|
174
|
+
|
|
175
|
+
declare const RealtyCard: FC;
|
|
176
|
+
|
|
177
|
+
interface TeamPersonCardProps {
|
|
178
|
+
image_url?: string;
|
|
179
|
+
name: string;
|
|
180
|
+
position: string;
|
|
181
|
+
text: string;
|
|
182
|
+
}
|
|
183
|
+
declare const TeamPersonCard: FC<TeamPersonCardProps>;
|
|
184
|
+
|
|
185
|
+
interface AutocompleteProps {
|
|
186
|
+
values: string[];
|
|
187
|
+
}
|
|
188
|
+
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
189
|
+
|
|
190
|
+
interface BigNumberProps {
|
|
191
|
+
number?: number;
|
|
192
|
+
text?: string;
|
|
193
|
+
}
|
|
194
|
+
declare const BigNumber: FC<BigNumberProps>;
|
|
195
|
+
|
|
196
|
+
interface TextBlockProps {
|
|
197
|
+
classes?: string;
|
|
198
|
+
title: string;
|
|
199
|
+
text: string;
|
|
200
|
+
}
|
|
201
|
+
declare const TextBlock: FC<TextBlockProps>;
|
|
202
|
+
|
|
203
|
+
type TitlePosition = "center" | "left";
|
|
204
|
+
|
|
205
|
+
interface TitleBlockProps {
|
|
206
|
+
title: string;
|
|
207
|
+
titlePosition?: TitlePosition;
|
|
208
|
+
classes?: string;
|
|
209
|
+
}
|
|
210
|
+
declare const TitleBlock: FC<TitleBlockProps>;
|
|
211
|
+
|
|
212
|
+
declare const List: FC<ListProps>;
|
|
213
|
+
|
|
214
|
+
interface ListItemProps {
|
|
215
|
+
icon?: ReactElement;
|
|
216
|
+
title: string;
|
|
217
|
+
bold?: boolean;
|
|
218
|
+
onClick?: (value: string) => void;
|
|
219
|
+
value?: string;
|
|
220
|
+
}
|
|
221
|
+
declare const ListItem: FC<ListItemProps>;
|
|
222
|
+
|
|
223
|
+
type Values = {
|
|
224
|
+
value: string | number[];
|
|
225
|
+
title: string;
|
|
226
|
+
}[];
|
|
227
|
+
|
|
228
|
+
interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
229
|
+
values: Values;
|
|
230
|
+
textView?: boolean;
|
|
231
|
+
collapseOnClick?: boolean;
|
|
232
|
+
collapseParent?: () => void;
|
|
233
|
+
label?: string;
|
|
234
|
+
flexDirection?: "row" | "col";
|
|
235
|
+
fixWidth?: boolean;
|
|
236
|
+
arrayValueFormat?: boolean;
|
|
237
|
+
}
|
|
238
|
+
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare const ToggleButton: FC<ToggleButtonProps & {
|
|
241
|
+
textView?: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
|
|
244
|
+
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
245
|
+
textView?: boolean;
|
|
246
|
+
flexDirection?: "row" | "col";
|
|
247
|
+
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
248
|
+
value: any;
|
|
249
|
+
}
|
|
250
|
+
declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
251
|
+
|
|
252
|
+
interface CustomCheckboxProps {
|
|
253
|
+
labelProps?: FormControlLabelProps$1;
|
|
254
|
+
checkboxProps?: CheckboxProps;
|
|
255
|
+
className?: string;
|
|
256
|
+
label?: string;
|
|
257
|
+
toggleView?: boolean;
|
|
258
|
+
}
|
|
259
|
+
declare const CustomCheckbox: FC<CustomCheckboxProps>;
|
|
260
|
+
|
|
261
|
+
interface IBannerBlock {
|
|
262
|
+
videoLink?: string;
|
|
263
|
+
bigText?: string;
|
|
264
|
+
smallText?: string;
|
|
265
|
+
classes?: string;
|
|
266
|
+
}
|
|
267
|
+
declare function BannerBlock({ bigText, smallText, classes, videoLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
268
|
+
|
|
269
|
+
type MenuItem = {
|
|
270
|
+
path: string;
|
|
271
|
+
title: string;
|
|
272
|
+
};
|
|
273
|
+
interface HeaderProps {
|
|
274
|
+
menuItems: MenuItem[];
|
|
275
|
+
mainPhone?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare const Header: FC<HeaderProps>;
|
|
279
|
+
|
|
280
|
+
interface LogoBlockProps {
|
|
281
|
+
classes?: string;
|
|
282
|
+
small?: boolean;
|
|
283
|
+
locale: string;
|
|
284
|
+
}
|
|
285
|
+
declare const LogoBlock: FC<LogoBlockProps>;
|
|
286
|
+
|
|
287
|
+
type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
|
|
288
|
+
|
|
289
|
+
interface LinkOutProps {
|
|
290
|
+
data?: string;
|
|
291
|
+
type: outLinkType;
|
|
292
|
+
title: string | ReactNode;
|
|
293
|
+
classes?: string;
|
|
294
|
+
blank?: boolean;
|
|
295
|
+
}
|
|
296
|
+
declare const LinkOut: FC<LinkOutProps>;
|
|
297
|
+
|
|
298
|
+
declare const LocaleSwitcherToggle: () => react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
300
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
5
|
+
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
|
+
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
+
import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
|
|
8
|
+
import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } from '@mui/material';
|
|
9
|
+
import { BadgeProps } from '@mui/material/Badge/Badge';
|
|
10
|
+
import { AvatarProps } from '@mui/material/Avatar/Avatar';
|
|
11
|
+
import { TypographyOwnProps } from '@mui/material/Typography';
|
|
12
|
+
import { RadioProps } from '@mui/material/Radio';
|
|
13
|
+
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
14
|
+
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
15
|
+
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
16
|
+
import { SliderProps } from '@mui/material/Slider/Slider';
|
|
17
|
+
import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
|
|
18
|
+
import { InputProps } from '@mui/material/Input';
|
|
19
|
+
import { PatternFormatProps } from 'react-number-format/types/types';
|
|
20
|
+
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
21
|
+
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
22
|
+
import { ListProps } from '@mui/material/List/List';
|
|
23
|
+
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
24
|
+
import { FormControlLabelProps as FormControlLabelProps$1 } from '@mui/material/FormControlLabel/FormControlLabel';
|
|
25
|
+
|
|
26
|
+
declare function Greet(props: {
|
|
27
|
+
name: string;
|
|
28
|
+
}): react_jsx_runtime.JSX.Element;
|
|
29
|
+
|
|
30
|
+
interface CustomButtonProps extends ButtonProps, PropsWithChildren {
|
|
31
|
+
bolt?: boolean;
|
|
32
|
+
border?: boolean;
|
|
33
|
+
base?: boolean;
|
|
34
|
+
small?: boolean;
|
|
35
|
+
large?: boolean;
|
|
36
|
+
medium?: boolean;
|
|
37
|
+
}
|
|
38
|
+
declare const Button: FC<CustomButtonProps>;
|
|
39
|
+
|
|
40
|
+
interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
|
|
41
|
+
}
|
|
42
|
+
declare const IconButton: FC<CustomIconButtonProps>;
|
|
43
|
+
|
|
44
|
+
declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
|
|
45
|
+
|
|
46
|
+
interface SelectProProps {
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
childTitle?: ReactElement;
|
|
49
|
+
colorBorder?: boolean;
|
|
50
|
+
clickComponent?: ReactElement;
|
|
51
|
+
fullContainerWidth?: boolean;
|
|
52
|
+
overButton?: boolean;
|
|
53
|
+
small?: boolean;
|
|
54
|
+
fullWidth?: boolean;
|
|
55
|
+
freeChildWidth?: boolean;
|
|
56
|
+
disableCloseButton?: boolean;
|
|
57
|
+
openUp?: boolean;
|
|
58
|
+
intermediateChild?: ReactElement;
|
|
59
|
+
actionsComponent?: ReactElement;
|
|
60
|
+
accentBgColor?: true;
|
|
61
|
+
paperSx?: SystemStyleObject;
|
|
62
|
+
childContainerSx?: SystemStyleObject;
|
|
63
|
+
reverseAnimation?: boolean;
|
|
64
|
+
containerSx?: SystemStyleObject;
|
|
65
|
+
}
|
|
66
|
+
declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
67
|
+
|
|
68
|
+
interface CustomChipProps {
|
|
69
|
+
view: "black" | "line" | "white" | "silver";
|
|
70
|
+
}
|
|
71
|
+
declare const Chip: FC<ChipProps & CustomChipProps>;
|
|
72
|
+
|
|
73
|
+
declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
76
|
+
|
|
77
|
+
declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
|
|
78
|
+
|
|
79
|
+
interface CustomRadioProps {
|
|
80
|
+
labelProps?: FormControlLabelProps;
|
|
81
|
+
radioProps?: RadioProps;
|
|
82
|
+
label?: string;
|
|
83
|
+
value?: string;
|
|
84
|
+
}
|
|
85
|
+
declare const CustomRadio: React__default.FC<CustomRadioProps>;
|
|
86
|
+
|
|
87
|
+
declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
|
|
88
|
+
|
|
89
|
+
interface CustomSwitchProps {
|
|
90
|
+
beforeText?: string;
|
|
91
|
+
afterText?: string;
|
|
92
|
+
}
|
|
93
|
+
declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
|
|
94
|
+
|
|
95
|
+
declare const CustomSlider: FC<SliderProps>;
|
|
96
|
+
|
|
97
|
+
declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
98
|
+
|
|
99
|
+
interface CustomInputProps {
|
|
100
|
+
type?: "number" | "string";
|
|
101
|
+
adornmentText?: string;
|
|
102
|
+
big?: boolean;
|
|
103
|
+
}
|
|
104
|
+
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
105
|
+
|
|
106
|
+
interface PhoneInputProps {
|
|
107
|
+
onChange: (event: {
|
|
108
|
+
target: {
|
|
109
|
+
name: string;
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
}) => void;
|
|
113
|
+
name: string;
|
|
114
|
+
}
|
|
115
|
+
declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
|
|
116
|
+
|
|
117
|
+
interface FromToInputProps {
|
|
118
|
+
label?: string;
|
|
119
|
+
}
|
|
120
|
+
declare const FromToInput: FC<FromToInputProps>;
|
|
121
|
+
|
|
122
|
+
interface SearchInputProps {
|
|
123
|
+
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
124
|
+
collapse?: boolean;
|
|
125
|
+
}
|
|
126
|
+
declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
127
|
+
|
|
128
|
+
declare const Providers: FC<PropsWithChildren>;
|
|
129
|
+
|
|
130
|
+
interface AppBarProps {
|
|
131
|
+
links: {
|
|
132
|
+
path: string;
|
|
133
|
+
title: string;
|
|
134
|
+
}[];
|
|
135
|
+
}
|
|
136
|
+
declare const AppBar: FC<AppBarProps>;
|
|
137
|
+
|
|
138
|
+
interface ImageContainerProps {
|
|
139
|
+
src: any;
|
|
140
|
+
alt: string;
|
|
141
|
+
contentful?: boolean;
|
|
142
|
+
priority?: boolean;
|
|
143
|
+
loading?: "lazy" | "eager" | undefined;
|
|
144
|
+
width?: string;
|
|
145
|
+
height?: string;
|
|
146
|
+
objectFit?: string;
|
|
147
|
+
classesWrapper?: string;
|
|
148
|
+
classesImg?: string;
|
|
149
|
+
}
|
|
150
|
+
declare const ImageContainer: FC<ImageContainerProps>;
|
|
151
|
+
|
|
152
|
+
interface CategoryCardProps {
|
|
153
|
+
image_url?: string;
|
|
154
|
+
title: string;
|
|
155
|
+
text: string;
|
|
156
|
+
link: string;
|
|
157
|
+
}
|
|
158
|
+
declare const CategoryCard: FC<CategoryCardProps>;
|
|
159
|
+
|
|
160
|
+
interface ArticleCardProps {
|
|
161
|
+
imageUrl: string;
|
|
162
|
+
title: string;
|
|
163
|
+
text: string;
|
|
164
|
+
classes?: string;
|
|
165
|
+
href: string;
|
|
166
|
+
}
|
|
167
|
+
declare const ArticleCard: FC<ArticleCardProps>;
|
|
168
|
+
|
|
169
|
+
interface JobCardProps {
|
|
170
|
+
}
|
|
171
|
+
declare const JobCard: FC<JobCardProps>;
|
|
172
|
+
|
|
173
|
+
declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
|
|
174
|
+
|
|
175
|
+
declare const RealtyCard: FC;
|
|
176
|
+
|
|
177
|
+
interface TeamPersonCardProps {
|
|
178
|
+
image_url?: string;
|
|
179
|
+
name: string;
|
|
180
|
+
position: string;
|
|
181
|
+
text: string;
|
|
182
|
+
}
|
|
183
|
+
declare const TeamPersonCard: FC<TeamPersonCardProps>;
|
|
184
|
+
|
|
185
|
+
interface AutocompleteProps {
|
|
186
|
+
values: string[];
|
|
187
|
+
}
|
|
188
|
+
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
189
|
+
|
|
190
|
+
interface BigNumberProps {
|
|
191
|
+
number?: number;
|
|
192
|
+
text?: string;
|
|
193
|
+
}
|
|
194
|
+
declare const BigNumber: FC<BigNumberProps>;
|
|
195
|
+
|
|
196
|
+
interface TextBlockProps {
|
|
197
|
+
classes?: string;
|
|
198
|
+
title: string;
|
|
199
|
+
text: string;
|
|
200
|
+
}
|
|
201
|
+
declare const TextBlock: FC<TextBlockProps>;
|
|
202
|
+
|
|
203
|
+
type TitlePosition = "center" | "left";
|
|
204
|
+
|
|
205
|
+
interface TitleBlockProps {
|
|
206
|
+
title: string;
|
|
207
|
+
titlePosition?: TitlePosition;
|
|
208
|
+
classes?: string;
|
|
209
|
+
}
|
|
210
|
+
declare const TitleBlock: FC<TitleBlockProps>;
|
|
211
|
+
|
|
212
|
+
declare const List: FC<ListProps>;
|
|
213
|
+
|
|
214
|
+
interface ListItemProps {
|
|
215
|
+
icon?: ReactElement;
|
|
216
|
+
title: string;
|
|
217
|
+
bold?: boolean;
|
|
218
|
+
onClick?: (value: string) => void;
|
|
219
|
+
value?: string;
|
|
220
|
+
}
|
|
221
|
+
declare const ListItem: FC<ListItemProps>;
|
|
222
|
+
|
|
223
|
+
type Values = {
|
|
224
|
+
value: string | number[];
|
|
225
|
+
title: string;
|
|
226
|
+
}[];
|
|
227
|
+
|
|
228
|
+
interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
229
|
+
values: Values;
|
|
230
|
+
textView?: boolean;
|
|
231
|
+
collapseOnClick?: boolean;
|
|
232
|
+
collapseParent?: () => void;
|
|
233
|
+
label?: string;
|
|
234
|
+
flexDirection?: "row" | "col";
|
|
235
|
+
fixWidth?: boolean;
|
|
236
|
+
arrayValueFormat?: boolean;
|
|
237
|
+
}
|
|
238
|
+
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare const ToggleButton: FC<ToggleButtonProps & {
|
|
241
|
+
textView?: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
|
|
244
|
+
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
245
|
+
textView?: boolean;
|
|
246
|
+
flexDirection?: "row" | "col";
|
|
247
|
+
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
248
|
+
value: any;
|
|
249
|
+
}
|
|
250
|
+
declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
251
|
+
|
|
252
|
+
interface CustomCheckboxProps {
|
|
253
|
+
labelProps?: FormControlLabelProps$1;
|
|
254
|
+
checkboxProps?: CheckboxProps;
|
|
255
|
+
className?: string;
|
|
256
|
+
label?: string;
|
|
257
|
+
toggleView?: boolean;
|
|
258
|
+
}
|
|
259
|
+
declare const CustomCheckbox: FC<CustomCheckboxProps>;
|
|
260
|
+
|
|
261
|
+
interface IBannerBlock {
|
|
262
|
+
videoLink?: string;
|
|
263
|
+
bigText?: string;
|
|
264
|
+
smallText?: string;
|
|
265
|
+
classes?: string;
|
|
266
|
+
}
|
|
267
|
+
declare function BannerBlock({ bigText, smallText, classes, videoLink, }: IBannerBlock): react_jsx_runtime.JSX.Element;
|
|
268
|
+
|
|
269
|
+
type MenuItem = {
|
|
270
|
+
path: string;
|
|
271
|
+
title: string;
|
|
272
|
+
};
|
|
273
|
+
interface HeaderProps {
|
|
274
|
+
menuItems: MenuItem[];
|
|
275
|
+
mainPhone?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
declare const Header: FC<HeaderProps>;
|
|
279
|
+
|
|
280
|
+
interface LogoBlockProps {
|
|
281
|
+
classes?: string;
|
|
282
|
+
small?: boolean;
|
|
283
|
+
locale: string;
|
|
284
|
+
}
|
|
285
|
+
declare const LogoBlock: FC<LogoBlockProps>;
|
|
286
|
+
|
|
287
|
+
type outLinkType = 'viber' | 'telegram' | 'tel' | 'googleMaps' | 'mail' | 'link' | 'whatsapp';
|
|
288
|
+
|
|
289
|
+
interface LinkOutProps {
|
|
290
|
+
data?: string;
|
|
291
|
+
type: outLinkType;
|
|
292
|
+
title: string | ReactNode;
|
|
293
|
+
classes?: string;
|
|
294
|
+
blank?: boolean;
|
|
295
|
+
}
|
|
296
|
+
declare const LinkOut: FC<LinkOutProps>;
|
|
297
|
+
|
|
298
|
+
declare const LocaleSwitcherToggle: () => react_jsx_runtime.JSX.Element;
|
|
299
|
+
|
|
300
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, CustomInput as Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.js
CHANGED
|
@@ -2194,7 +2194,7 @@ function BannerBlock({
|
|
|
2194
2194
|
|
|
2195
2195
|
// src/components/layout/Header.tsx
|
|
2196
2196
|
var import_material35 = require("@mui/material");
|
|
2197
|
-
var
|
|
2197
|
+
var import_next_intl4 = require("next-intl");
|
|
2198
2198
|
|
|
2199
2199
|
// src/lib/i18n/navigation.ts
|
|
2200
2200
|
var import_navigation3 = require("next-intl/navigation");
|
|
@@ -3241,13 +3241,12 @@ var SvgRulogo = (props) => /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("svg",
|
|
|
3241
3241
|
var rulogo_default = SvgRulogo;
|
|
3242
3242
|
|
|
3243
3243
|
// src/components/layout/LogoBlock.tsx
|
|
3244
|
-
var import_next_intl4 = require("next-intl");
|
|
3245
3244
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
3246
3245
|
var LogoBlock = ({
|
|
3247
3246
|
classes,
|
|
3248
|
-
small = false
|
|
3247
|
+
small = false,
|
|
3248
|
+
locale
|
|
3249
3249
|
}) => {
|
|
3250
|
-
const locale = (0, import_next_intl4.useLocale)();
|
|
3251
3250
|
const renderLogo = () => {
|
|
3252
3251
|
const className = small ? "transform scale-[0.68] absolute left-[-14px] top-[-9px]" : "md:transform md:scale-[0.68] md:absolute md:left-[-14px] md:top-[-9px]";
|
|
3253
3252
|
switch (locale) {
|
|
@@ -3273,8 +3272,9 @@ var LogoBlock_default = LogoBlock;
|
|
|
3273
3272
|
// src/components/layout/Header.tsx
|
|
3274
3273
|
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
3275
3274
|
var Header = ({ menuItems, mainPhone }) => {
|
|
3276
|
-
const t = (0,
|
|
3275
|
+
const t = (0, import_next_intl4.useTranslations)();
|
|
3277
3276
|
const pathname = usePathname();
|
|
3277
|
+
const locale = (0, import_next_intl4.useLocale)();
|
|
3278
3278
|
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
3279
3279
|
import_material35.Box,
|
|
3280
3280
|
{
|
|
@@ -3286,7 +3286,7 @@ var Header = ({ menuItems, mainPhone }) => {
|
|
|
3286
3286
|
maxWidth: CONTAINER_WIDTH,
|
|
3287
3287
|
className: "flex justify-between items-center py-[24px] md:pt-[18px] md:pb-[0px]",
|
|
3288
3288
|
children: [
|
|
3289
|
-
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LogoBlock_default, {}),
|
|
3289
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(LogoBlock_default, { locale }),
|
|
3290
3290
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material35.Box, { className: "flex flex-col gap-5 md:hidden", children: [
|
|
3291
3291
|
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material35.Box, { className: "flex gap-10 justify-end items-center", children: [
|
|
3292
3292
|
mainPhone && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
package/dist/index.mjs
CHANGED
|
@@ -1507,7 +1507,7 @@ function BannerBlock({
|
|
|
1507
1507
|
|
|
1508
1508
|
// src/components/layout/Header.tsx
|
|
1509
1509
|
import { Box as Box17, Container as Container5 } from "@mui/material";
|
|
1510
|
-
import { useTranslations as useTranslations2 } from "next-intl";
|
|
1510
|
+
import { useLocale as useLocale3, useTranslations as useTranslations2 } from "next-intl";
|
|
1511
1511
|
|
|
1512
1512
|
// src/lib/i18n/navigation.ts
|
|
1513
1513
|
import { createSharedPathnamesNavigation } from "next-intl/navigation";
|
|
@@ -2554,13 +2554,12 @@ var SvgRulogo = (props) => /* @__PURE__ */ jsxs26("svg", __spreadProps(__spreadV
|
|
|
2554
2554
|
var rulogo_default = SvgRulogo;
|
|
2555
2555
|
|
|
2556
2556
|
// src/components/layout/LogoBlock.tsx
|
|
2557
|
-
import { useLocale as useLocale3 } from "next-intl";
|
|
2558
2557
|
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
2559
2558
|
var LogoBlock = ({
|
|
2560
2559
|
classes,
|
|
2561
|
-
small = false
|
|
2560
|
+
small = false,
|
|
2561
|
+
locale
|
|
2562
2562
|
}) => {
|
|
2563
|
-
const locale = useLocale3();
|
|
2564
2563
|
const renderLogo = () => {
|
|
2565
2564
|
const className = small ? "transform scale-[0.68] absolute left-[-14px] top-[-9px]" : "md:transform md:scale-[0.68] md:absolute md:left-[-14px] md:top-[-9px]";
|
|
2566
2565
|
switch (locale) {
|
|
@@ -2588,6 +2587,7 @@ import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
|
2588
2587
|
var Header = ({ menuItems, mainPhone }) => {
|
|
2589
2588
|
const t = useTranslations2();
|
|
2590
2589
|
const pathname = usePathname();
|
|
2590
|
+
const locale = useLocale3();
|
|
2591
2591
|
return /* @__PURE__ */ jsx62(
|
|
2592
2592
|
Box17,
|
|
2593
2593
|
{
|
|
@@ -2599,7 +2599,7 @@ var Header = ({ menuItems, mainPhone }) => {
|
|
|
2599
2599
|
maxWidth: CONTAINER_WIDTH,
|
|
2600
2600
|
className: "flex justify-between items-center py-[24px] md:pt-[18px] md:pb-[0px]",
|
|
2601
2601
|
children: [
|
|
2602
|
-
/* @__PURE__ */ jsx62(LogoBlock_default, {}),
|
|
2602
|
+
/* @__PURE__ */ jsx62(LogoBlock_default, { locale }),
|
|
2603
2603
|
/* @__PURE__ */ jsxs27(Box17, { className: "flex flex-col gap-5 md:hidden", children: [
|
|
2604
2604
|
/* @__PURE__ */ jsxs27(Box17, { className: "flex gap-10 justify-end items-center", children: [
|
|
2605
2605
|
mainPhone && /* @__PURE__ */ jsx62(
|