mayak-common-library 0.0.85 → 0.0.87

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.
@@ -0,0 +1,257 @@
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 } 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
+ openUp?: boolean;
57
+ intermediateChild?: ReactElement;
58
+ accentBgColor?: true;
59
+ paperSx?: SystemStyleObject;
60
+ childContainerSx?: SystemStyleObject;
61
+ reverseAnimation?: boolean;
62
+ }
63
+ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
64
+
65
+ interface CustomChipProps {
66
+ view: "black" | "line" | "white" | "silver";
67
+ }
68
+ declare const Chip: FC<ChipProps & CustomChipProps>;
69
+
70
+ declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
71
+
72
+ declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
73
+
74
+ declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
75
+
76
+ interface CustomRadioProps {
77
+ labelProps?: FormControlLabelProps;
78
+ radioProps?: RadioProps;
79
+ label?: string;
80
+ value?: string;
81
+ }
82
+ declare const CustomRadio: React__default.FC<CustomRadioProps>;
83
+
84
+ declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
85
+
86
+ interface CustomSwitchProps {
87
+ beforeText?: string;
88
+ afterText?: string;
89
+ }
90
+ declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
91
+
92
+ declare const CustomSlider: FC<SliderProps>;
93
+
94
+ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
95
+
96
+ interface CustomInputProps {
97
+ type?: "number" | "string";
98
+ adornmentText?: string;
99
+ big?: boolean;
100
+ }
101
+ declare const CustomInput: FC<CustomInputProps & InputProps>;
102
+
103
+ interface PhoneInputProps {
104
+ onChange: (event: {
105
+ target: {
106
+ name: string;
107
+ value: string;
108
+ };
109
+ }) => void;
110
+ name: string;
111
+ }
112
+ declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
113
+
114
+ interface FromToInputProps {
115
+ label?: string;
116
+ }
117
+ declare const FromToInput: FC<FromToInputProps>;
118
+
119
+ interface SearchInputProps {
120
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
121
+ collapse?: boolean;
122
+ }
123
+ declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
124
+
125
+ declare const Providers: FC<PropsWithChildren>;
126
+
127
+ interface AppBarProps {
128
+ links: {
129
+ path: string;
130
+ title: string;
131
+ }[];
132
+ }
133
+ declare const AppBar: FC<AppBarProps>;
134
+
135
+ interface ImageContainerProps {
136
+ src: any;
137
+ alt: string;
138
+ contentful?: boolean;
139
+ priority?: boolean;
140
+ loading?: "lazy" | "eager" | undefined;
141
+ width?: string;
142
+ height?: string;
143
+ objectFit?: string;
144
+ classesWrapper?: string;
145
+ classesImg?: string;
146
+ }
147
+ declare const ImageContainer: FC<ImageContainerProps>;
148
+
149
+ interface CategoryCardProps {
150
+ image_url?: string;
151
+ title: string;
152
+ text: string;
153
+ link: string;
154
+ }
155
+ declare const CategoryCard: FC<CategoryCardProps>;
156
+
157
+ interface ArticleCardProps {
158
+ imageUrl: string;
159
+ title: string;
160
+ text: string;
161
+ classes?: string;
162
+ href: string;
163
+ }
164
+ declare const ArticleCard: FC<ArticleCardProps>;
165
+
166
+ interface JobCardProps {
167
+ }
168
+ declare const JobCard: FC<JobCardProps>;
169
+
170
+ declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
171
+
172
+ declare const RealtyCard: FC;
173
+
174
+ interface TeamPersonCardProps {
175
+ image_url?: string;
176
+ name: string;
177
+ position: string;
178
+ text: string;
179
+ }
180
+ declare const TeamPersonCard: FC<TeamPersonCardProps>;
181
+
182
+ interface AutocompleteProps {
183
+ values: string[];
184
+ }
185
+ declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
186
+
187
+ interface BigNumberProps {
188
+ number?: number;
189
+ text?: string;
190
+ }
191
+ declare const BigNumber: FC<BigNumberProps>;
192
+
193
+ interface TextBlockProps {
194
+ classes?: string;
195
+ title: string;
196
+ text: string;
197
+ }
198
+ declare const TextBlock: FC<TextBlockProps>;
199
+
200
+ type TitlePosition = "center" | "left";
201
+
202
+ interface TitleBlockProps {
203
+ title: string;
204
+ titlePosition?: TitlePosition;
205
+ classes?: string;
206
+ }
207
+ declare const TitleBlock: FC<TitleBlockProps>;
208
+
209
+ declare const List: FC<ListProps>;
210
+
211
+ interface ListItemProps {
212
+ icon?: ReactElement;
213
+ title: string;
214
+ bold?: boolean;
215
+ onClick?: (value: string) => void;
216
+ value?: string;
217
+ }
218
+ declare const ListItem: FC<ListItemProps>;
219
+
220
+ type Values = {
221
+ value: string | number[];
222
+ title: string;
223
+ }[];
224
+
225
+ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
226
+ values: Values;
227
+ textView?: boolean;
228
+ collapseOnClick?: boolean;
229
+ collapseParent?: () => void;
230
+ label?: string;
231
+ flexDirection?: "row" | "col";
232
+ fixWidth?: boolean;
233
+ }
234
+ declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
235
+
236
+ declare const ToggleButton: FC<ToggleButtonProps & {
237
+ textView?: boolean;
238
+ }>;
239
+
240
+ interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
241
+ textView?: boolean;
242
+ flexDirection?: "row" | "col";
243
+ onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
244
+ value: any;
245
+ }
246
+ declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
247
+
248
+ interface CustomCheckboxProps {
249
+ labelProps?: FormControlLabelProps$1;
250
+ checkboxProps?: CheckboxProps;
251
+ className?: string;
252
+ label?: string;
253
+ toggleView?: boolean;
254
+ }
255
+ declare const CustomCheckbox: FC<CustomCheckboxProps>;
256
+
257
+ export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, 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 };
@@ -0,0 +1,257 @@
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 } 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
+ openUp?: boolean;
57
+ intermediateChild?: ReactElement;
58
+ accentBgColor?: true;
59
+ paperSx?: SystemStyleObject;
60
+ childContainerSx?: SystemStyleObject;
61
+ reverseAnimation?: boolean;
62
+ }
63
+ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
64
+
65
+ interface CustomChipProps {
66
+ view: "black" | "line" | "white" | "silver";
67
+ }
68
+ declare const Chip: FC<ChipProps & CustomChipProps>;
69
+
70
+ declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
71
+
72
+ declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
73
+
74
+ declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
75
+
76
+ interface CustomRadioProps {
77
+ labelProps?: FormControlLabelProps;
78
+ radioProps?: RadioProps;
79
+ label?: string;
80
+ value?: string;
81
+ }
82
+ declare const CustomRadio: React__default.FC<CustomRadioProps>;
83
+
84
+ declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
85
+
86
+ interface CustomSwitchProps {
87
+ beforeText?: string;
88
+ afterText?: string;
89
+ }
90
+ declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
91
+
92
+ declare const CustomSlider: FC<SliderProps>;
93
+
94
+ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
95
+
96
+ interface CustomInputProps {
97
+ type?: "number" | "string";
98
+ adornmentText?: string;
99
+ big?: boolean;
100
+ }
101
+ declare const CustomInput: FC<CustomInputProps & InputProps>;
102
+
103
+ interface PhoneInputProps {
104
+ onChange: (event: {
105
+ target: {
106
+ name: string;
107
+ value: string;
108
+ };
109
+ }) => void;
110
+ name: string;
111
+ }
112
+ declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
113
+
114
+ interface FromToInputProps {
115
+ label?: string;
116
+ }
117
+ declare const FromToInput: FC<FromToInputProps>;
118
+
119
+ interface SearchInputProps {
120
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
121
+ collapse?: boolean;
122
+ }
123
+ declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
124
+
125
+ declare const Providers: FC<PropsWithChildren>;
126
+
127
+ interface AppBarProps {
128
+ links: {
129
+ path: string;
130
+ title: string;
131
+ }[];
132
+ }
133
+ declare const AppBar: FC<AppBarProps>;
134
+
135
+ interface ImageContainerProps {
136
+ src: any;
137
+ alt: string;
138
+ contentful?: boolean;
139
+ priority?: boolean;
140
+ loading?: "lazy" | "eager" | undefined;
141
+ width?: string;
142
+ height?: string;
143
+ objectFit?: string;
144
+ classesWrapper?: string;
145
+ classesImg?: string;
146
+ }
147
+ declare const ImageContainer: FC<ImageContainerProps>;
148
+
149
+ interface CategoryCardProps {
150
+ image_url?: string;
151
+ title: string;
152
+ text: string;
153
+ link: string;
154
+ }
155
+ declare const CategoryCard: FC<CategoryCardProps>;
156
+
157
+ interface ArticleCardProps {
158
+ imageUrl: string;
159
+ title: string;
160
+ text: string;
161
+ classes?: string;
162
+ href: string;
163
+ }
164
+ declare const ArticleCard: FC<ArticleCardProps>;
165
+
166
+ interface JobCardProps {
167
+ }
168
+ declare const JobCard: FC<JobCardProps>;
169
+
170
+ declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
171
+
172
+ declare const RealtyCard: FC;
173
+
174
+ interface TeamPersonCardProps {
175
+ image_url?: string;
176
+ name: string;
177
+ position: string;
178
+ text: string;
179
+ }
180
+ declare const TeamPersonCard: FC<TeamPersonCardProps>;
181
+
182
+ interface AutocompleteProps {
183
+ values: string[];
184
+ }
185
+ declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
186
+
187
+ interface BigNumberProps {
188
+ number?: number;
189
+ text?: string;
190
+ }
191
+ declare const BigNumber: FC<BigNumberProps>;
192
+
193
+ interface TextBlockProps {
194
+ classes?: string;
195
+ title: string;
196
+ text: string;
197
+ }
198
+ declare const TextBlock: FC<TextBlockProps>;
199
+
200
+ type TitlePosition = "center" | "left";
201
+
202
+ interface TitleBlockProps {
203
+ title: string;
204
+ titlePosition?: TitlePosition;
205
+ classes?: string;
206
+ }
207
+ declare const TitleBlock: FC<TitleBlockProps>;
208
+
209
+ declare const List: FC<ListProps>;
210
+
211
+ interface ListItemProps {
212
+ icon?: ReactElement;
213
+ title: string;
214
+ bold?: boolean;
215
+ onClick?: (value: string) => void;
216
+ value?: string;
217
+ }
218
+ declare const ListItem: FC<ListItemProps>;
219
+
220
+ type Values = {
221
+ value: string | number[];
222
+ title: string;
223
+ }[];
224
+
225
+ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
226
+ values: Values;
227
+ textView?: boolean;
228
+ collapseOnClick?: boolean;
229
+ collapseParent?: () => void;
230
+ label?: string;
231
+ flexDirection?: "row" | "col";
232
+ fixWidth?: boolean;
233
+ }
234
+ declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
235
+
236
+ declare const ToggleButton: FC<ToggleButtonProps & {
237
+ textView?: boolean;
238
+ }>;
239
+
240
+ interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
241
+ textView?: boolean;
242
+ flexDirection?: "row" | "col";
243
+ onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
244
+ value: any;
245
+ }
246
+ declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
247
+
248
+ interface CustomCheckboxProps {
249
+ labelProps?: FormControlLabelProps$1;
250
+ checkboxProps?: CheckboxProps;
251
+ className?: string;
252
+ label?: string;
253
+ toggleView?: boolean;
254
+ }
255
+ declare const CustomCheckbox: FC<CustomCheckboxProps>;
256
+
257
+ export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, 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
@@ -391,7 +391,7 @@ var SelectPro = ({
391
391
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
392
392
  }
393
393
  }, paperSx),
394
- className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open-reverse"}` : `${reverseAnimation ? "select--close-reverse" : "select--close-reverse"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
394
+ className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open"}` : `${reverseAnimation ? "select--close-reverse" : "select--close"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
395
395
  children: [
396
396
  intermediateChild ? intermediateChild : null,
397
397
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
package/dist/index.mjs CHANGED
@@ -332,7 +332,7 @@ var SelectPro = ({
332
332
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
333
333
  }
334
334
  }, paperSx),
335
- className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open-reverse"}` : `${reverseAnimation ? "select--close-reverse" : "select--close-reverse"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
335
+ className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open"}` : `${reverseAnimation ? "select--close-reverse" : "select--close"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
336
336
  children: [
337
337
  intermediateChild ? intermediateChild : null,
338
338
  /* @__PURE__ */ jsxs3(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",