mayak-common-library 0.0.32 → 0.0.34
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.css +3 -9
- package/dist/index.d.mts +66 -7
- package/dist/index.d.ts +66 -7
- package/dist/index.js +354 -146
- package/dist/index.mjs +369 -161
- package/package.json +4 -1
- package/tailwind.config.js +6 -0
package/dist/index.css
CHANGED
|
@@ -19,16 +19,13 @@
|
|
|
19
19
|
transform: translateY(2rem);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
.
|
|
22
|
+
.select {
|
|
23
23
|
transition: unset !important;
|
|
24
|
-
ul {
|
|
25
|
-
padding: 5px;
|
|
26
|
-
}
|
|
27
24
|
}
|
|
28
|
-
.
|
|
25
|
+
.select--close {
|
|
29
26
|
animation: fadeOut 0.4s;
|
|
30
27
|
}
|
|
31
|
-
.
|
|
28
|
+
.select--open {
|
|
32
29
|
animation: fade-In 0.5s;
|
|
33
30
|
}
|
|
34
31
|
|
|
@@ -73,9 +70,6 @@
|
|
|
73
70
|
.border-block-snack {
|
|
74
71
|
@apply px-[10px] py-[2px] text-12 border-[1px] border-dark w-fit;
|
|
75
72
|
}
|
|
76
|
-
.border-gold-block-snack {
|
|
77
|
-
@apply w-fit px-[10px] py-[2px] text-gray border-[1px] border-gold font-extrabold text-12 group-hover/card:text-white group-hover/card:bg-gold;
|
|
78
|
-
}
|
|
79
73
|
.bg-gray-light {
|
|
80
74
|
background-color: #F5F5F5;
|
|
81
75
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import React__default, { FC, PropsWithChildren, ReactElement } from 'react';
|
|
5
5
|
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
6
|
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
-
import { ChipProps } from '@mui/material';
|
|
7
|
+
import { ChipProps, ToggleButtonGroupProps } from '@mui/material';
|
|
8
8
|
import { BadgeProps } from '@mui/material/Badge/Badge';
|
|
9
9
|
import { AvatarProps } from '@mui/material/Avatar/Avatar';
|
|
10
10
|
import { TypographyOwnProps } from '@mui/material/Typography';
|
|
@@ -18,6 +18,7 @@ import { InputProps } from '@mui/material/Input';
|
|
|
18
18
|
import { PatternFormatProps } from 'react-number-format/types/types';
|
|
19
19
|
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
20
20
|
import { UseControllerProps } from 'react-hook-form';
|
|
21
|
+
import { ListProps } from '@mui/material/List/List';
|
|
21
22
|
|
|
22
23
|
declare function Greet(props: {
|
|
23
24
|
name: string;
|
|
@@ -29,6 +30,7 @@ interface CustomButtonProps extends ButtonProps, PropsWithChildren {
|
|
|
29
30
|
base?: boolean;
|
|
30
31
|
small?: boolean;
|
|
31
32
|
large?: boolean;
|
|
33
|
+
medium?: boolean;
|
|
32
34
|
}
|
|
33
35
|
declare const Button: FC<CustomButtonProps>;
|
|
34
36
|
|
|
@@ -46,6 +48,8 @@ interface SelectProProps {
|
|
|
46
48
|
fullContainerWidth?: boolean;
|
|
47
49
|
overButton?: boolean;
|
|
48
50
|
small?: boolean;
|
|
51
|
+
fullWidth?: boolean;
|
|
52
|
+
freeChildWidth?: boolean;
|
|
49
53
|
}
|
|
50
54
|
declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
51
55
|
|
|
@@ -83,6 +87,7 @@ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
|
83
87
|
interface CustomInputProps {
|
|
84
88
|
type?: "number" | "string";
|
|
85
89
|
adornmentText?: string;
|
|
90
|
+
big?: boolean;
|
|
86
91
|
}
|
|
87
92
|
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
88
93
|
|
|
@@ -121,6 +126,8 @@ interface ImageContainerProps {
|
|
|
121
126
|
width?: string;
|
|
122
127
|
height?: string;
|
|
123
128
|
objectFit?: string;
|
|
129
|
+
classesWrapper?: string;
|
|
130
|
+
classesImg?: string;
|
|
124
131
|
}
|
|
125
132
|
declare const ImageContainer: FC<ImageContainerProps>;
|
|
126
133
|
|
|
@@ -133,7 +140,11 @@ interface CategoryCardProps {
|
|
|
133
140
|
declare const CategoryCard: FC<CategoryCardProps>;
|
|
134
141
|
|
|
135
142
|
interface ArticleCardProps {
|
|
136
|
-
|
|
143
|
+
imageUrl: string;
|
|
144
|
+
title: string;
|
|
145
|
+
text: string;
|
|
146
|
+
classes?: string;
|
|
147
|
+
href: string;
|
|
137
148
|
}
|
|
138
149
|
declare const ArticleCard: FC<ArticleCardProps>;
|
|
139
150
|
|
|
@@ -143,9 +154,7 @@ declare const JobCard: FC<JobCardProps>;
|
|
|
143
154
|
|
|
144
155
|
declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
|
|
145
156
|
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
declare const RealtyCard: FC<RealtyCardProps>;
|
|
157
|
+
declare const RealtyCard: FC;
|
|
149
158
|
|
|
150
159
|
interface TeamPersonCardProps {
|
|
151
160
|
image_url?: string;
|
|
@@ -161,10 +170,60 @@ interface AutocompleteProps {
|
|
|
161
170
|
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
162
171
|
|
|
163
172
|
interface BigNumberProps {
|
|
164
|
-
slug?: string;
|
|
165
173
|
number?: number;
|
|
166
174
|
text?: string;
|
|
167
175
|
}
|
|
168
176
|
declare const BigNumber: FC<BigNumberProps>;
|
|
169
177
|
|
|
170
|
-
|
|
178
|
+
interface TextBlockProps {
|
|
179
|
+
classes?: string;
|
|
180
|
+
title: string;
|
|
181
|
+
text: string;
|
|
182
|
+
}
|
|
183
|
+
declare const TextBlock: FC<TextBlockProps>;
|
|
184
|
+
|
|
185
|
+
type TitlePosition = "center" | "left";
|
|
186
|
+
|
|
187
|
+
interface TitleBlockProps {
|
|
188
|
+
title: string;
|
|
189
|
+
titlePosition?: TitlePosition;
|
|
190
|
+
classes?: string;
|
|
191
|
+
}
|
|
192
|
+
declare const TitleBlock: FC<TitleBlockProps>;
|
|
193
|
+
|
|
194
|
+
declare const List: FC<ListProps>;
|
|
195
|
+
|
|
196
|
+
interface ListItemProps {
|
|
197
|
+
icon?: ReactElement;
|
|
198
|
+
title: string;
|
|
199
|
+
bold?: boolean;
|
|
200
|
+
onClick?: (value: string) => void;
|
|
201
|
+
}
|
|
202
|
+
declare const ListItem: FC<ListItemProps>;
|
|
203
|
+
|
|
204
|
+
type Values = {
|
|
205
|
+
value: string | number[];
|
|
206
|
+
title: string;
|
|
207
|
+
}[];
|
|
208
|
+
|
|
209
|
+
type FormValues = {
|
|
210
|
+
type: string;
|
|
211
|
+
place: string;
|
|
212
|
+
room: [];
|
|
213
|
+
price: string;
|
|
214
|
+
districts: string[];
|
|
215
|
+
town: string[];
|
|
216
|
+
searchText: string;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps {
|
|
220
|
+
values: Values;
|
|
221
|
+
textView?: boolean;
|
|
222
|
+
collapseOnClick?: boolean;
|
|
223
|
+
collapseParent?: () => void;
|
|
224
|
+
label?: string;
|
|
225
|
+
flexDirection?: "row" | "col";
|
|
226
|
+
}
|
|
227
|
+
declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
|
|
228
|
+
|
|
229
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomChip as Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButtonsMultiple as ToggleButton };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from 'react';
|
|
|
4
4
|
import React__default, { FC, PropsWithChildren, ReactElement } from 'react';
|
|
5
5
|
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
6
|
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
-
import { ChipProps } from '@mui/material';
|
|
7
|
+
import { ChipProps, ToggleButtonGroupProps } from '@mui/material';
|
|
8
8
|
import { BadgeProps } from '@mui/material/Badge/Badge';
|
|
9
9
|
import { AvatarProps } from '@mui/material/Avatar/Avatar';
|
|
10
10
|
import { TypographyOwnProps } from '@mui/material/Typography';
|
|
@@ -18,6 +18,7 @@ import { InputProps } from '@mui/material/Input';
|
|
|
18
18
|
import { PatternFormatProps } from 'react-number-format/types/types';
|
|
19
19
|
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
20
20
|
import { UseControllerProps } from 'react-hook-form';
|
|
21
|
+
import { ListProps } from '@mui/material/List/List';
|
|
21
22
|
|
|
22
23
|
declare function Greet(props: {
|
|
23
24
|
name: string;
|
|
@@ -29,6 +30,7 @@ interface CustomButtonProps extends ButtonProps, PropsWithChildren {
|
|
|
29
30
|
base?: boolean;
|
|
30
31
|
small?: boolean;
|
|
31
32
|
large?: boolean;
|
|
33
|
+
medium?: boolean;
|
|
32
34
|
}
|
|
33
35
|
declare const Button: FC<CustomButtonProps>;
|
|
34
36
|
|
|
@@ -46,6 +48,8 @@ interface SelectProProps {
|
|
|
46
48
|
fullContainerWidth?: boolean;
|
|
47
49
|
overButton?: boolean;
|
|
48
50
|
small?: boolean;
|
|
51
|
+
fullWidth?: boolean;
|
|
52
|
+
freeChildWidth?: boolean;
|
|
49
53
|
}
|
|
50
54
|
declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
51
55
|
|
|
@@ -83,6 +87,7 @@ declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
|
83
87
|
interface CustomInputProps {
|
|
84
88
|
type?: "number" | "string";
|
|
85
89
|
adornmentText?: string;
|
|
90
|
+
big?: boolean;
|
|
86
91
|
}
|
|
87
92
|
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
88
93
|
|
|
@@ -121,6 +126,8 @@ interface ImageContainerProps {
|
|
|
121
126
|
width?: string;
|
|
122
127
|
height?: string;
|
|
123
128
|
objectFit?: string;
|
|
129
|
+
classesWrapper?: string;
|
|
130
|
+
classesImg?: string;
|
|
124
131
|
}
|
|
125
132
|
declare const ImageContainer: FC<ImageContainerProps>;
|
|
126
133
|
|
|
@@ -133,7 +140,11 @@ interface CategoryCardProps {
|
|
|
133
140
|
declare const CategoryCard: FC<CategoryCardProps>;
|
|
134
141
|
|
|
135
142
|
interface ArticleCardProps {
|
|
136
|
-
|
|
143
|
+
imageUrl: string;
|
|
144
|
+
title: string;
|
|
145
|
+
text: string;
|
|
146
|
+
classes?: string;
|
|
147
|
+
href: string;
|
|
137
148
|
}
|
|
138
149
|
declare const ArticleCard: FC<ArticleCardProps>;
|
|
139
150
|
|
|
@@ -143,9 +154,7 @@ declare const JobCard: FC<JobCardProps>;
|
|
|
143
154
|
|
|
144
155
|
declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
|
|
145
156
|
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
declare const RealtyCard: FC<RealtyCardProps>;
|
|
157
|
+
declare const RealtyCard: FC;
|
|
149
158
|
|
|
150
159
|
interface TeamPersonCardProps {
|
|
151
160
|
image_url?: string;
|
|
@@ -161,10 +170,60 @@ interface AutocompleteProps {
|
|
|
161
170
|
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
162
171
|
|
|
163
172
|
interface BigNumberProps {
|
|
164
|
-
slug?: string;
|
|
165
173
|
number?: number;
|
|
166
174
|
text?: string;
|
|
167
175
|
}
|
|
168
176
|
declare const BigNumber: FC<BigNumberProps>;
|
|
169
177
|
|
|
170
|
-
|
|
178
|
+
interface TextBlockProps {
|
|
179
|
+
classes?: string;
|
|
180
|
+
title: string;
|
|
181
|
+
text: string;
|
|
182
|
+
}
|
|
183
|
+
declare const TextBlock: FC<TextBlockProps>;
|
|
184
|
+
|
|
185
|
+
type TitlePosition = "center" | "left";
|
|
186
|
+
|
|
187
|
+
interface TitleBlockProps {
|
|
188
|
+
title: string;
|
|
189
|
+
titlePosition?: TitlePosition;
|
|
190
|
+
classes?: string;
|
|
191
|
+
}
|
|
192
|
+
declare const TitleBlock: FC<TitleBlockProps>;
|
|
193
|
+
|
|
194
|
+
declare const List: FC<ListProps>;
|
|
195
|
+
|
|
196
|
+
interface ListItemProps {
|
|
197
|
+
icon?: ReactElement;
|
|
198
|
+
title: string;
|
|
199
|
+
bold?: boolean;
|
|
200
|
+
onClick?: (value: string) => void;
|
|
201
|
+
}
|
|
202
|
+
declare const ListItem: FC<ListItemProps>;
|
|
203
|
+
|
|
204
|
+
type Values = {
|
|
205
|
+
value: string | number[];
|
|
206
|
+
title: string;
|
|
207
|
+
}[];
|
|
208
|
+
|
|
209
|
+
type FormValues = {
|
|
210
|
+
type: string;
|
|
211
|
+
place: string;
|
|
212
|
+
room: [];
|
|
213
|
+
price: string;
|
|
214
|
+
districts: string[];
|
|
215
|
+
town: string[];
|
|
216
|
+
searchText: string;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps {
|
|
220
|
+
values: Values;
|
|
221
|
+
textView?: boolean;
|
|
222
|
+
collapseOnClick?: boolean;
|
|
223
|
+
collapseParent?: () => void;
|
|
224
|
+
label?: string;
|
|
225
|
+
flexDirection?: "row" | "col";
|
|
226
|
+
}
|
|
227
|
+
declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
|
|
228
|
+
|
|
229
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomChip as Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButtonsMultiple as ToggleButton };
|