mayak-common-library 0.0.31 → 0.0.33
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 +97 -6
- package/dist/index.d.mts +46 -5
- package/dist/index.d.ts +46 -5
- package/dist/index.js +280 -139
- package/dist/index.mjs +289 -153
- 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
|
|
|
@@ -60,6 +57,100 @@
|
|
|
60
57
|
object-position: center;
|
|
61
58
|
object-fit: cover;
|
|
62
59
|
}
|
|
60
|
+
@layer components {
|
|
61
|
+
.white-block-snack {
|
|
62
|
+
@apply bg-white px-[10px] py-[2px] w-fit font-extrabold text-12;
|
|
63
|
+
}
|
|
64
|
+
.black-block-snack {
|
|
65
|
+
@apply bg-dark py-[6px] px-[16px] w-fit text-white font-extrabold text-12;
|
|
66
|
+
}
|
|
67
|
+
.gray-block-snack {
|
|
68
|
+
@apply bg-gray-light px-[10px] w-fit text-12;
|
|
69
|
+
}
|
|
70
|
+
.border-block-snack {
|
|
71
|
+
@apply px-[10px] py-[2px] text-12 border-[1px] border-dark w-fit;
|
|
72
|
+
}
|
|
73
|
+
.bg-gray-light {
|
|
74
|
+
background-color: #F5F5F5;
|
|
75
|
+
}
|
|
76
|
+
.bg-gray-medium {
|
|
77
|
+
background-color: #D0CED2;
|
|
78
|
+
}
|
|
79
|
+
.bg-gray {
|
|
80
|
+
background-color: #757575;
|
|
81
|
+
}
|
|
82
|
+
.bg-dark {
|
|
83
|
+
background-color: #343434;
|
|
84
|
+
}
|
|
85
|
+
.bg-light {
|
|
86
|
+
background-color: #fff;
|
|
87
|
+
}
|
|
88
|
+
.bg-gold {
|
|
89
|
+
background-color: #C8BCA1;
|
|
90
|
+
}
|
|
91
|
+
.border-custom-gray {
|
|
92
|
+
border-color: #757575;
|
|
93
|
+
}
|
|
94
|
+
.border-dark {
|
|
95
|
+
border-color: #343434;
|
|
96
|
+
}
|
|
97
|
+
.border-custom-dark {
|
|
98
|
+
border-color: #343434;
|
|
99
|
+
}
|
|
100
|
+
.border-gold {
|
|
101
|
+
border-color: #C8BCA1;
|
|
102
|
+
}
|
|
103
|
+
.border-gold2 {
|
|
104
|
+
border-color: #99835F;
|
|
105
|
+
}
|
|
106
|
+
.big-title {
|
|
107
|
+
@apply uppercase font-extrabold text-34;
|
|
108
|
+
}
|
|
109
|
+
.block-gold {
|
|
110
|
+
@apply bg-gold py-[30px] px-[40px] flex flex-col;
|
|
111
|
+
}
|
|
112
|
+
.block-simple-border {
|
|
113
|
+
@apply block border-[1px] py-[16px] px-[24px] text-14 w-fit border-dark;
|
|
114
|
+
}
|
|
115
|
+
.block-white-wrapper {
|
|
116
|
+
@apply text-32 bg-white py-[20px] px-[30px] block;
|
|
117
|
+
}
|
|
118
|
+
.block-white {
|
|
119
|
+
@apply bg-white py-[30px] px-[40px];
|
|
120
|
+
}
|
|
121
|
+
.block-center {
|
|
122
|
+
@apply block mx-auto w-fit;
|
|
123
|
+
}
|
|
124
|
+
.filter-gold2 {
|
|
125
|
+
filter: invert(64%) sepia(5%) saturate(2284%) hue-rotate(358deg) brightness(81%) contrast(87%);
|
|
126
|
+
}
|
|
127
|
+
.filter-gray {
|
|
128
|
+
filter: invert(50%) sepia(10%) saturate(17%) hue-rotate(354deg) brightness(89%) contrast(90%);
|
|
129
|
+
}
|
|
130
|
+
.filter-dark {
|
|
131
|
+
filter: invert(18%) sepia(13%) saturate(19%) hue-rotate(5deg) brightness(60%) contrast(90%);
|
|
132
|
+
}
|
|
133
|
+
.trim-2 {
|
|
134
|
+
display: -webkit-box;
|
|
135
|
+
-webkit-box-orient: vertical;
|
|
136
|
+
overflow: hidden;
|
|
137
|
+
-webkit-line-clamp: 2;
|
|
138
|
+
}
|
|
139
|
+
.trim-4 {
|
|
140
|
+
display: -webkit-box;
|
|
141
|
+
-webkit-box-orient: vertical;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
-webkit-line-clamp: 4;
|
|
144
|
+
}
|
|
145
|
+
.container-mini {
|
|
146
|
+
width: 100%;
|
|
147
|
+
margin-left: auto;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
margin-right: auto;
|
|
150
|
+
display: block;
|
|
151
|
+
max-width: 745px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
63
154
|
.richTextBlock {
|
|
64
155
|
line-height: 24px;
|
|
65
156
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -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;
|
|
@@ -160,4 +169,36 @@ interface AutocompleteProps {
|
|
|
160
169
|
}
|
|
161
170
|
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
162
171
|
|
|
163
|
-
|
|
172
|
+
interface BigNumberProps {
|
|
173
|
+
number?: number;
|
|
174
|
+
text?: string;
|
|
175
|
+
}
|
|
176
|
+
declare const BigNumber: FC<BigNumberProps>;
|
|
177
|
+
|
|
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
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -160,4 +169,36 @@ interface AutocompleteProps {
|
|
|
160
169
|
}
|
|
161
170
|
declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
|
|
162
171
|
|
|
163
|
-
|
|
172
|
+
interface BigNumberProps {
|
|
173
|
+
number?: number;
|
|
174
|
+
text?: string;
|
|
175
|
+
}
|
|
176
|
+
declare const BigNumber: FC<BigNumberProps>;
|
|
177
|
+
|
|
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
|
+
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 };
|