mayak-common-library 0.0.145 → 0.0.146

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -0,0 +1,17 @@
1
+ export type TitlePosition = 'center' | 'left'
2
+
3
+ export const CONTAINER_WIDTH = 'lg'
4
+
5
+ export const WINDOW_SIZE = {
6
+ xxs: 0,
7
+ // xs: 430,
8
+ // sm: 800,
9
+ // xs: 800,
10
+ xs: 650,
11
+ sm: 800,
12
+ md: 1100,
13
+ lg: 1200,
14
+ xl: 1620,
15
+ }
16
+
17
+ export const NO_IMAGE = '/images/no-photo.svg'
@@ -0,0 +1,548 @@
1
+ // colors
2
+ $colorTextDark: #343434;
3
+ $colorTextLight: #fff;
4
+ $colorTextGold: #C8BCA1;
5
+ $colorTextGold2: #99835F;
6
+ $colorGray: #757575;
7
+ $colorGrayLight: #F5F5F5;
8
+ $colorGrayMedium: #D0CED2;
9
+ $colorGray2: #FBFBFB;
10
+
11
+ $colorDark: #343434;
12
+
13
+ $bgGold: #C8BCA1;
14
+ $bgDark: #343434;
15
+ $bgLight: #fff;
16
+
17
+ $colorGold: #C8BCA1;
18
+ $colorGold2: #99835F;
19
+
20
+ $filterColorGold: invert(5%) sepia(22%) saturate(331%) hue-rotate(346deg) brightness(83%) contrast(86%);
21
+ $filterColorGold2: invert(64%) sepia(5%) saturate(2284%) hue-rotate(358deg) brightness(81%) contrast(87%);
22
+ $filterColorDark: invert(18%) sepia(13%) saturate(19%) hue-rotate(5deg) brightness(60%) contrast(90%);
23
+ $filterColorGray: invert(50%) sepia(10%) saturate(17%) hue-rotate(354deg) brightness(89%) contrast(90%);
24
+
25
+ // fonts
26
+ @mixin fontRock {
27
+ font-family: RockStar, sans-serif;
28
+ }
29
+
30
+ // font sizes
31
+ @mixin f10 {
32
+ font-size: 10px;
33
+ line-height: 12px;
34
+ }
35
+ @mixin f11 {
36
+ font-size: 11px;
37
+ line-height: 11px;
38
+ }
39
+ @mixin f12 {
40
+ font-size: 12px;
41
+ line-height: 16px;
42
+ }
43
+ @mixin f14 {
44
+ font-size: 14px;
45
+ line-height: 22px ;
46
+ }
47
+ @mixin f16 {
48
+ font-size: 16px;
49
+ line-height: 20px;
50
+ }
51
+ @mixin f18 {
52
+ font-size: 18px;
53
+ line-height: 19px;
54
+ }
55
+ @mixin f20 {
56
+ font-size: 20px;
57
+ line-height: 22px;
58
+ }
59
+ @mixin f22 {
60
+ font-size: 22px;
61
+ line-height: 26px;
62
+ }
63
+ @mixin f26 {
64
+ font-size: 26px;
65
+ line-height: 31px;
66
+ }
67
+ @mixin f28 {
68
+ font-size: 28px;
69
+ line-height: 31px;
70
+ }
71
+ @mixin f30 {
72
+ font-size: 30px;
73
+ line-height: 33px;
74
+ }
75
+ @mixin f32 {
76
+ font-size: 32px;
77
+ line-height: 35px;
78
+ }
79
+ @mixin f34 {
80
+ font-size: 34px;
81
+ line-height: 38px;
82
+ }
83
+ @mixin f40 {
84
+ font-size: 40px;
85
+ line-height: 48px;
86
+ }
87
+ @mixin f50 {
88
+ font-size: 50px;
89
+ line-height: 55px;
90
+ }
91
+ @mixin f60 {
92
+ font-size: 60px;
93
+ line-height: 66px;
94
+ }
95
+ @mixin f100 {
96
+ font-size: 100px;
97
+ line-height: 110px;
98
+ }
99
+
100
+ // font weights
101
+ @mixin f400 {
102
+ font-weight: 400;
103
+ }
104
+ @mixin f800 {
105
+ font-weight: 800;
106
+ }
107
+
108
+ // screens width
109
+ $screen-sm: 800px;
110
+ $screen-md: 1100px;
111
+ $screen-lg: 1200px;
112
+ $screen-xl: 1620px;
113
+
114
+ // media queries
115
+ @mixin sm {
116
+ @media screen and (max-width: #{$screen-sm}) {
117
+ @content;
118
+ }
119
+ }
120
+ @mixin sm-md {
121
+ @media screen and (min-width: #{$screen-sm}) and (max-width: #{$screen-md}) {
122
+ @content;
123
+ }
124
+ }
125
+ @mixin md {
126
+ @media screen and (max-width: #{$screen-md}) {
127
+ @content;
128
+ }
129
+ }
130
+ @mixin md-lg {
131
+ @media screen and (min-width: #{$screen-md}) and (max-width: #{$screen-lg}) {
132
+ @content;
133
+ }
134
+ }
135
+ @mixin lg {
136
+ @media screen and (max-width: #{$screen-lg}) {
137
+ @content;
138
+ }
139
+ }
140
+ @mixin min-lg {
141
+ @media screen and (min-width: #{$screen-lg}) {
142
+ @content;
143
+ }
144
+ }
145
+ @mixin xl {
146
+ @media screen and (max-width: #{$screen-xl}) {
147
+ @content;
148
+ }
149
+ }
150
+
151
+ .button {
152
+ width: fit-content;
153
+ padding: 12px 30px;
154
+ text-transform: unset;
155
+ border-radius: 0;
156
+ min-width: 145px;
157
+ font-size: 14px;
158
+ line-height: 16px;
159
+ box-shadow: none;
160
+ &_dark {
161
+ background-color: $bgDark;
162
+ color: $colorTextLight;
163
+ &:hover {
164
+ background-color: $bgDark;
165
+ }
166
+ }
167
+ }
168
+
169
+
170
+
171
+ .customImage {
172
+ position: relative;
173
+ img {
174
+ object-position: center;
175
+ object-fit: cover;
176
+ }
177
+ }
178
+
179
+ @layer components {
180
+ .white-block-snack {
181
+ @apply bg-white px-[10px] py-[2px] w-fit text-12;
182
+ }
183
+ .white-block-snack-border {
184
+ @apply bg-white border-solid px-[10px] py-[2px] w-fit text-14 border-[1px] border-dark;
185
+ }
186
+ .gold-block-snack-border {
187
+ @apply bg-gold border-solid px-[10px] py-[2px] w-fit text-14 border-[1px] border-gold;
188
+ }
189
+ .black-block-snack {
190
+ @apply bg-dark py-[6px] px-[16px] w-fit text-white font-extrabold text-12;
191
+ }
192
+ .gray-block-snack {
193
+ @apply bg-gray-light px-[10px] w-fit text-12;
194
+ }
195
+ .border-block-snack {
196
+ @apply px-[10px] py-[2px] text-12 border-[1px] border-custom-gray-medium w-fit;
197
+ }
198
+ .border-gold-block-snack {
199
+ @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;
200
+ }
201
+ .text-gold2 {
202
+ color: $colorGold2;
203
+ }
204
+ .text-gold {
205
+ color: $colorGold;
206
+ }
207
+ .text-gray {
208
+ color: $colorGray;
209
+ }
210
+ .text-34 {
211
+ @include f34;
212
+ @apply uppercase font-extrabold
213
+ }
214
+ .text-32 {
215
+ @include f32;
216
+ }
217
+ .text-100 {
218
+ @include f100;
219
+ }
220
+ .text-50 {
221
+ @include f50;
222
+ }
223
+ .text-60 {
224
+ @include f60;
225
+ }
226
+ .text-10 {
227
+ @include f10;
228
+ }
229
+ .text-11 {
230
+ @include f11;
231
+ }
232
+ .text-12 {
233
+ @include f12;
234
+ }
235
+ .text-14 {
236
+ @include f14;
237
+ }
238
+ .text-14-gray {
239
+ @include f14;
240
+ color: $colorGray;
241
+ }
242
+ .text-14-bold {
243
+ @include f14;
244
+ @apply font-extrabold
245
+ }
246
+ .text-16 {
247
+ @include f16;
248
+ }
249
+ .text-18 {
250
+ @include f18;
251
+ }
252
+ .text-20 {
253
+ @include f20;
254
+ }
255
+ .text-22 {
256
+ @include f22;
257
+ }
258
+ .text-24 {
259
+ font-size: 24px;
260
+ line-height: 30px;
261
+ }
262
+ .text-26 {
263
+ @include f26;
264
+ @apply font-extrabold;
265
+ }
266
+ .text-28 {
267
+ @include f28;
268
+ }
269
+ .text-30 {
270
+ @include f30;
271
+ }
272
+ .text-40 {
273
+ @include f40;
274
+ @apply uppercase font-extrabold;
275
+ }
276
+ .text-light {
277
+ color: $colorTextLight;
278
+ }
279
+ .text-dark {
280
+ color: $colorTextDark;
281
+ }
282
+ .text-gold {
283
+ color: $colorTextGold;
284
+ }
285
+ .text-gray-light {
286
+ color: $colorGrayLight;
287
+ }
288
+ .bg-gray-light {
289
+ background-color: $colorGrayLight;
290
+ }
291
+ .bg-gray-medium {
292
+ background-color: $colorGrayMedium;
293
+ }
294
+ .bg-gray {
295
+ background-color: $colorGray;
296
+ }
297
+ .bg-gray2 {
298
+ background-color: $colorGray2;
299
+ }
300
+ .bg-dark {
301
+ background-color: $bgDark;
302
+ }
303
+ .bg-light {
304
+ background-color: $bgLight;
305
+ }
306
+ .bg-gold {
307
+ background-color: $bgGold;
308
+ }
309
+ .border-custom-gray {
310
+ border-color: $colorGray;
311
+ }
312
+
313
+ .border-custom-gray-medium {
314
+ border-color: $colorGrayMedium
315
+ }
316
+
317
+ .border-custom-gray-light {
318
+ border-color: $colorGrayLight;
319
+ }
320
+
321
+ .border-custom-dark {
322
+ border-color: $colorTextDark;
323
+ }
324
+
325
+ .border-dark {
326
+ border-color: $colorTextDark;
327
+ }
328
+
329
+ .border-gold {
330
+ border-color: $colorGold;
331
+ }
332
+
333
+ .border-gold2 {
334
+ border-color: $colorGold2;
335
+ }
336
+
337
+ .big-title {
338
+ @apply uppercase font-extrabold text-34
339
+ }
340
+
341
+ .wrapper-gold {
342
+ @apply bg-gold py-[6px] px-[16px] w-fit md:py-[2px] md:px-[6px]
343
+ }
344
+
345
+ .block-gold {
346
+ @apply bg-gold py-[30px] px-[40px] flex flex-col
347
+ }
348
+
349
+ .block-simple-border {
350
+ @apply block border-[1px] py-[16px] px-[24px] text-14 w-fit border-dark border-solid
351
+ }
352
+
353
+ .block-white-wrapper {
354
+ @apply text-28 bg-white py-[20px] px-[30px] block md:pt-[10px] md:pb-[6px] md:px-[10px]
355
+ }
356
+
357
+ .block-white {
358
+ @apply bg-white py-[30px] px-[40px]
359
+ }
360
+
361
+ .block-center {
362
+ @apply block mx-auto w-fit
363
+ }
364
+
365
+ .filter-gold2 {
366
+ filter: $filterColorGold2;
367
+ }
368
+
369
+ .filter-gold {
370
+ filter: $filterColorGold;
371
+ }
372
+
373
+ .filter-gray {
374
+ filter: $filterColorGray;
375
+ }
376
+
377
+ .filter-dark {
378
+ filter: $filterColorDark;
379
+ }
380
+
381
+ .trim-2 {
382
+ display: -webkit-box;
383
+ -webkit-box-orient: vertical;
384
+ overflow: hidden;
385
+ -webkit-line-clamp: 2;
386
+ }
387
+
388
+ .trim-4 {
389
+ display: -webkit-box;
390
+ -webkit-box-orient: vertical;
391
+ overflow: hidden;
392
+ -webkit-line-clamp: 4;
393
+ }
394
+
395
+ .container-mini {
396
+ width: 100%;
397
+ margin-left: auto;
398
+ box-sizing: border-box;
399
+ margin-right: auto;
400
+ display: block;
401
+ max-width: 790px!important;
402
+ }
403
+
404
+ .dot-slider {
405
+ border: none;
406
+ width: 10px;
407
+ height: 10px;
408
+ background: $colorDark;
409
+ border-radius: 50%;
410
+ cursor: pointer;
411
+ &_big {
412
+ width: 14px;
413
+ height: 14px;
414
+ @include md {
415
+ width: 10px;
416
+ height: 10px;
417
+ }
418
+ }
419
+ }
420
+
421
+ .dot:focus {
422
+ outline: none;
423
+ }
424
+
425
+ .dot-slider_active {
426
+ background: $colorGold;
427
+ }
428
+
429
+ .trim-text-1 {
430
+ display: -webkit-box;
431
+ -webkit-box-orient: vertical;
432
+ overflow: hidden;
433
+ -webkit-line-clamp: 1;
434
+ }
435
+
436
+ .simpleZoomImgHover {
437
+ @apply opacity-90 transform scale-110 transition duration-300 ease-out
438
+ }
439
+
440
+ .simpleZoomImg {
441
+ -webkit-transform: scale(1);
442
+ -ms-transform: scale(1);
443
+ transform: scale(1);
444
+ -webkit-transition: .3s ease-out;
445
+ transition: .3s ease-out;
446
+ }
447
+
448
+ .bg-gold-gradient {
449
+ @apply bg-gradient-to-r from-[#{$colorGold2}] to-[#{$colorGold}]
450
+ }
451
+ }
452
+
453
+ .richTextBlock {
454
+ @include fontRock;
455
+ line-height: 24px;
456
+ p {
457
+ color: $colorDark!important;
458
+ margin: 10px 0;
459
+ @include md {
460
+ margin: 6px 0;
461
+ }
462
+ }
463
+ ul {
464
+ margin: 16px 0;
465
+ padding-left: 20px;
466
+ list-style: disc;
467
+ @include md {
468
+ margin: 10px 0;
469
+ }
470
+ }
471
+ h2 {
472
+ @include f20;
473
+ font-weight: 800;
474
+ margin-top: 20px;
475
+ margin-bottom: 6px;
476
+ }
477
+ h3 {
478
+ @include f18;
479
+ font-weight: 800;
480
+ margin-top: 20px;
481
+ margin-bottom: 6px;
482
+ }
483
+ }
484
+
485
+ .input-form::placeholder {
486
+ color: $colorDark;
487
+ opacity: 1;
488
+ }
489
+
490
+ .fader {
491
+ height: 738px;
492
+ position: relative;
493
+ overflow: hidden;
494
+ @include sm {
495
+ height: 950px;
496
+ }
497
+ }
498
+
499
+ .fader__slide {
500
+ cursor: pointer;
501
+ width: 100%;
502
+ height: 100%;
503
+ position: absolute;
504
+ top: 0;
505
+ }
506
+
507
+ .homeLocaleSwitcher {
508
+ p {
509
+ color: white!important;
510
+ }
511
+ svg {
512
+ filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
513
+ }
514
+ &:hover {
515
+ p {
516
+ color: $colorDark!important;
517
+ }
518
+ svg {
519
+ filter: none;
520
+ }
521
+ }
522
+ }
523
+
524
+ .placeholder-style::placeholder {
525
+ position: relative;
526
+ //top: 2px;
527
+ left: 2px;
528
+ }
529
+
530
+
531
+
532
+ .placeholder-style-2::placeholder {
533
+ position: relative;
534
+ //top: 2px;
535
+ left: 2px;
536
+ color: #939393 !important;
537
+ }
538
+
539
+
540
+ .placeholder-style-phone::placeholder {
541
+ //position: absolute;
542
+ //top: 0px;
543
+ //right: 30px;
544
+
545
+ color: $colorDark;
546
+ opacity: 1;
547
+ }
548
+
@@ -0,0 +1,92 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+ @import 'common';
5
+
6
+ @font-face {
7
+ font-family: RockStar;
8
+ src: url("../styles/fonts/RockStar/Rock_Star_Regular_Web.woff2");
9
+ font-weight: 400;
10
+ }
11
+ @font-face {
12
+ font-family: RockStar;
13
+ src: url("../styles/fonts/RockStar/Rock_Star_Extra Bold_Web.woff2");
14
+ font-weight: 800;
15
+ }
16
+
17
+ body {
18
+ max-width: 100vw;
19
+ margin: 0;
20
+ display: flex;
21
+ flex-direction: column;
22
+ min-height: 100vh;
23
+ color: $colorTextDark;
24
+ background-color: #F5F5F5 !important;//$colorGrayLight;
25
+ @include f14;
26
+ font-weight: 400;
27
+ @include fontRock;
28
+ }
29
+
30
+ div {
31
+ box-sizing: border-box;
32
+ }
33
+
34
+ html {
35
+ overflow-x: hidden;
36
+ }
37
+
38
+ main {
39
+ flex-grow: 1;
40
+ }
41
+
42
+ a {
43
+ color: inherit;
44
+ text-decoration: none;
45
+ transition: all 0.3s ease-out;
46
+ &:not(.noHover):hover {
47
+ color: $colorGold2;
48
+ }
49
+ }
50
+
51
+ *:focus-visible {
52
+ outline: none;
53
+ }
54
+
55
+ .MuiContainer-root {
56
+ padding-left: 0!important;
57
+ padding-right: 0!important;
58
+ @media screen and (max-width: 1270px) {
59
+ padding-left: 40px!important;
60
+ padding-right: 40px!important;
61
+ }
62
+ @include md {
63
+ padding-left: 60px!important;
64
+ padding-right: 60px!important;
65
+ }
66
+ @include sm {
67
+ //padding-left: 30px!important;
68
+ //padding-right: 30px!important;
69
+ padding-left: 25px!important;
70
+ padding-right: 25px!important;
71
+ }
72
+ }
73
+
74
+ :root {
75
+ --map-tiles-filter: grayscale(0.5) saturate(0) ;
76
+ }
77
+
78
+ .map-tiles {
79
+ filter:var(--map-tiles-filter, none);
80
+ }
81
+
82
+ ::-webkit-input-placeholder {
83
+ opacity: 1!important;
84
+ }
85
+
86
+ input,
87
+ textarea,
88
+ button,
89
+ select,
90
+ a {
91
+ -webkit-tap-highlight-color: transparent;
92
+ }
package/theme.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import createTheme from '@mui/material/styles/createTheme'
3
3
  // import 'mayak-common-library/dist/index.css'
4
- import '@/lib/styles/globals.scss'
4
+ import './styles/globals.scss'
5
5
  import 'keen-slider/keen-slider.min.css'
6
6
  // import 'leaflet/dist/leaflet.css'
7
7