mayak-common-library 0.0.13 → 0.0.14
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 +0 -497
- package/dist/index.d.mts +45 -2
- package/dist/index.d.ts +45 -2
- package/dist/index.js +470 -9
- package/dist/index.mjs +463 -9
- package/package.json +3 -1
- package/tailwind.config.js +8 -0
package/dist/index.mjs
CHANGED
|
@@ -109,7 +109,7 @@ var IconButton_default = IconButton;
|
|
|
109
109
|
import { useRef, useState, useEffect } from "react";
|
|
110
110
|
import { Select, styled as styled3 } from "@mui/material";
|
|
111
111
|
|
|
112
|
-
// src/
|
|
112
|
+
// src/icons/dropdown-arrow.svg
|
|
113
113
|
var dropdown_arrow_default = "./dropdown-arrow-CDZAF5GJ.svg";
|
|
114
114
|
|
|
115
115
|
// src/components/Select/Select.tsx
|
|
@@ -197,7 +197,7 @@ var CustomSelect = (props) => {
|
|
|
197
197
|
};
|
|
198
198
|
var Select_default = CustomSelect;
|
|
199
199
|
|
|
200
|
-
// src/
|
|
200
|
+
// src/icons/search.svg
|
|
201
201
|
var search_default = "./search-HJGCO2DZ.svg";
|
|
202
202
|
|
|
203
203
|
// src/components/Select/SelectPro.tsx
|
|
@@ -214,7 +214,7 @@ import {
|
|
|
214
214
|
Button as Button2
|
|
215
215
|
} from "@mui/material";
|
|
216
216
|
|
|
217
|
-
// src/
|
|
217
|
+
// src/icons/close.svg
|
|
218
218
|
var close_default = "./close-4XJDSDVO.svg";
|
|
219
219
|
|
|
220
220
|
// src/components/Select/SelectPro.tsx
|
|
@@ -568,8 +568,46 @@ import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
|
|
568
568
|
import createTheme from "@mui/material/styles/createTheme";
|
|
569
569
|
import CssBaseline from "@mui/material/CssBaseline";
|
|
570
570
|
import { prefixer } from "stylis";
|
|
571
|
+
|
|
572
|
+
// src/styles/assets.ts
|
|
573
|
+
var WINDOW_SIZE = {
|
|
574
|
+
xs: 0,
|
|
575
|
+
sm: 400,
|
|
576
|
+
md: 700,
|
|
577
|
+
lg: 1200,
|
|
578
|
+
xl: 1620
|
|
579
|
+
};
|
|
580
|
+
var _theme = {
|
|
581
|
+
typography: {
|
|
582
|
+
fontFamily: ["RockStar", "sans-serif"].join(","),
|
|
583
|
+
body1: {
|
|
584
|
+
fontSize: 14,
|
|
585
|
+
lineHeight: "22px"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
breakpoints: {
|
|
589
|
+
values: {
|
|
590
|
+
xs: WINDOW_SIZE.xs,
|
|
591
|
+
sm: WINDOW_SIZE.sm,
|
|
592
|
+
md: WINDOW_SIZE.md,
|
|
593
|
+
lg: WINDOW_SIZE.lg,
|
|
594
|
+
xl: WINDOW_SIZE.xl
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
components: {
|
|
598
|
+
MuiButton: {
|
|
599
|
+
styleOverrides: {
|
|
600
|
+
root: {
|
|
601
|
+
fontFamily: "RockStar, sans-serif"
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
// src/theme/index.tsx
|
|
571
609
|
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
572
|
-
var theme = createTheme({});
|
|
610
|
+
var theme = createTheme(__spreadValues({}, _theme));
|
|
573
611
|
function ThemeRegistry(props) {
|
|
574
612
|
const { children } = props;
|
|
575
613
|
const [{ cache, flush }] = useState3(() => {
|
|
@@ -596,9 +634,7 @@ function ThemeRegistry(props) {
|
|
|
596
634
|
});
|
|
597
635
|
useServerInsertedHTML(() => {
|
|
598
636
|
const names = flush();
|
|
599
|
-
if (names.length === 0)
|
|
600
|
-
return null;
|
|
601
|
-
}
|
|
637
|
+
if (names.length === 0) return null;
|
|
602
638
|
let styles = "";
|
|
603
639
|
for (const name of names) {
|
|
604
640
|
styles += cache.inserted[name];
|
|
@@ -620,6 +656,225 @@ function ThemeRegistry(props) {
|
|
|
620
656
|
] }) });
|
|
621
657
|
}
|
|
622
658
|
|
|
659
|
+
// src/styles/globals.scss
|
|
660
|
+
import { css } from "lit-element/lit-element.js";
|
|
661
|
+
var globals_default = css`@tailwind base;
|
|
662
|
+
@tailwind components;
|
|
663
|
+
@tailwind utilities;
|
|
664
|
+
.button {
|
|
665
|
+
width: fit-content;
|
|
666
|
+
padding: 12px 30px;
|
|
667
|
+
text-transform: unset;
|
|
668
|
+
border-radius: 0;
|
|
669
|
+
min-width: 145px;
|
|
670
|
+
font-size: 14px;
|
|
671
|
+
line-height: 16px;
|
|
672
|
+
box-shadow: none;
|
|
673
|
+
}
|
|
674
|
+
.button_dark {
|
|
675
|
+
background-color: #343434;
|
|
676
|
+
color: #fff;
|
|
677
|
+
}
|
|
678
|
+
.button_dark:hover {
|
|
679
|
+
background-color: #343434;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.border-gray {
|
|
683
|
+
border-color: #757575;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.border-dark {
|
|
687
|
+
border-color: #343434;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.border-gold {
|
|
691
|
+
border-color: #C8BCA1;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.border-gold2 {
|
|
695
|
+
border-color: #99835F;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.text-100 {
|
|
699
|
+
font-size: 100px;
|
|
700
|
+
line-height: 110px;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.text-40 {
|
|
704
|
+
font-size: 40px;
|
|
705
|
+
line-height: 48px;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.text-34 {
|
|
709
|
+
font-size: 34px;
|
|
710
|
+
line-height: 38px;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.text-10 {
|
|
714
|
+
font-size: 10px;
|
|
715
|
+
line-height: 12px;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
.text-12 {
|
|
719
|
+
font-size: 12px;
|
|
720
|
+
line-height: 16px;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.text-16 {
|
|
724
|
+
font-size: 16px;
|
|
725
|
+
line-height: 19px;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
.text-18 {
|
|
729
|
+
font-size: 18px;
|
|
730
|
+
line-height: 19px;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.text-light {
|
|
734
|
+
color: #fff;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.text-dark {
|
|
738
|
+
color: #343434;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.text-gold {
|
|
742
|
+
color: #C8BCA1;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.text-gray {
|
|
746
|
+
color: #757575;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.text-gray-light {
|
|
750
|
+
color: #F5F5F5;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.bg-gray-light {
|
|
754
|
+
background-color: #F5F5F5;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.bg-gray-medium {
|
|
758
|
+
background-color: #D0CED2;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.bg-gray {
|
|
762
|
+
background-color: #757575;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.bg-dark {
|
|
766
|
+
background-color: #343434;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.bg-light {
|
|
770
|
+
background-color: #fff;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.bg-gold {
|
|
774
|
+
background-color: #C8BCA1;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.customImage {
|
|
778
|
+
position: relative;
|
|
779
|
+
}
|
|
780
|
+
.customImage img {
|
|
781
|
+
object-position: center;
|
|
782
|
+
object-fit: cover;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
@layer components {
|
|
786
|
+
.white-block-snack {
|
|
787
|
+
@apply bg-white px-[10px] py-[2px] w-fit font-extrabold text-12;
|
|
788
|
+
}
|
|
789
|
+
.black-block-snack {
|
|
790
|
+
@apply bg-dark py-[6px] px-[16px] w-fit text-white font-extrabold text-12;
|
|
791
|
+
}
|
|
792
|
+
.gray-block-snack {
|
|
793
|
+
@apply bg-gray-light px-[10px] w-fit;
|
|
794
|
+
}
|
|
795
|
+
.border-block-snack {
|
|
796
|
+
@apply px-[10px] py-[2px] text-12 border-[1px] border-dark w-fit;
|
|
797
|
+
}
|
|
798
|
+
.border-gold-block-snack {
|
|
799
|
+
@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;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
@layer components {
|
|
803
|
+
.nav-item.active {
|
|
804
|
+
@apply text-accent-beige;
|
|
805
|
+
}
|
|
806
|
+
.nav-item {
|
|
807
|
+
@apply p-2 text-accent-dark;
|
|
808
|
+
text-decoration: none;
|
|
809
|
+
cursor: pointer;
|
|
810
|
+
font-weight: 800;
|
|
811
|
+
font-size: 12px;
|
|
812
|
+
text-transform: uppercase;
|
|
813
|
+
}
|
|
814
|
+
.nav-indicator {
|
|
815
|
+
@apply absolute top-0 rounded-full bg-accent-beige;
|
|
816
|
+
width: 7px;
|
|
817
|
+
height: 7px;
|
|
818
|
+
transition: transform 0.3s ease-out;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
@font-face {
|
|
822
|
+
font-family: RockStar;
|
|
823
|
+
src: url("fonts/RockStar/Rock Star_Regular_Web.woff2");
|
|
824
|
+
font-weight: 400;
|
|
825
|
+
}
|
|
826
|
+
@font-face {
|
|
827
|
+
font-family: RockStar;
|
|
828
|
+
src: url("fonts/RockStar/Rock Star_Extra Bold_Web.woff2");
|
|
829
|
+
font-weight: 800;
|
|
830
|
+
}
|
|
831
|
+
body {
|
|
832
|
+
max-width: 100vw;
|
|
833
|
+
overflow-x: hidden;
|
|
834
|
+
margin: 0;
|
|
835
|
+
display: flex;
|
|
836
|
+
flex-direction: column;
|
|
837
|
+
min-height: 100vh;
|
|
838
|
+
color: #343434;
|
|
839
|
+
background-color: #F5F5F5;
|
|
840
|
+
font-size: 14px;
|
|
841
|
+
line-height: 20px;
|
|
842
|
+
font-weight: 400;
|
|
843
|
+
font-family: RockStar, sans-serif;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
main {
|
|
847
|
+
flex-grow: 1;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
a {
|
|
851
|
+
color: inherit;
|
|
852
|
+
text-decoration: none;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
*:focus-visible {
|
|
856
|
+
outline: none;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
@media screen and (min-width: 1200px) {
|
|
860
|
+
.MuiContainer-root {
|
|
861
|
+
padding-left: 0;
|
|
862
|
+
padding-right: 0;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
@media screen and (max-width: 1200px) {
|
|
866
|
+
.MuiContainer-root {
|
|
867
|
+
padding-left: 40px;
|
|
868
|
+
padding-right: 40px;
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
@media screen and (max-width: 700px) {
|
|
872
|
+
.MuiContainer-root {
|
|
873
|
+
padding-left: 20px;
|
|
874
|
+
padding-right: 20px;
|
|
875
|
+
}
|
|
876
|
+
}`;
|
|
877
|
+
|
|
623
878
|
// src/providers/Providers.tsx
|
|
624
879
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
625
880
|
var Providers = ({ children }) => {
|
|
@@ -657,8 +912,8 @@ var AppBar = ({ links }) => {
|
|
|
657
912
|
ref: (el) => {
|
|
658
913
|
navItemsRef.current[index] = el;
|
|
659
914
|
},
|
|
660
|
-
href: link.
|
|
661
|
-
className: `nav-item ${index === activeIndex ? "active" : ""}`,
|
|
915
|
+
href: link.path,
|
|
916
|
+
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
662
917
|
onClick: () => handleClick(index),
|
|
663
918
|
children: link.title
|
|
664
919
|
},
|
|
@@ -667,24 +922,223 @@ var AppBar = ({ links }) => {
|
|
|
667
922
|
] });
|
|
668
923
|
};
|
|
669
924
|
var AppBar_default = AppBar;
|
|
925
|
+
|
|
926
|
+
// src/components/Image/ImageContainer.tsx
|
|
927
|
+
import { Box as Box3 } from "@mui/material";
|
|
928
|
+
import Image from "next/image";
|
|
929
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
930
|
+
var ImageContainer = (props) => {
|
|
931
|
+
const {
|
|
932
|
+
src,
|
|
933
|
+
alt,
|
|
934
|
+
width = "w-full",
|
|
935
|
+
height = "h-full",
|
|
936
|
+
contentful = true,
|
|
937
|
+
priority = false,
|
|
938
|
+
loading = "lazy",
|
|
939
|
+
objectFit = "object-cover"
|
|
940
|
+
} = props;
|
|
941
|
+
return /* @__PURE__ */ jsx20(Box3, { className: `relative ${width} ${height}`, children: /* @__PURE__ */ jsx20(
|
|
942
|
+
Image,
|
|
943
|
+
{
|
|
944
|
+
className: `${objectFit} object-center`,
|
|
945
|
+
src: contentful ? `https:${src}` : src,
|
|
946
|
+
alt,
|
|
947
|
+
fill: true,
|
|
948
|
+
loading,
|
|
949
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
|
|
950
|
+
priority
|
|
951
|
+
}
|
|
952
|
+
) });
|
|
953
|
+
};
|
|
954
|
+
var ImageContainer_default = ImageContainer;
|
|
955
|
+
|
|
956
|
+
// src/components/Card/CategoryCard.tsx
|
|
957
|
+
import { Box as Box4, Typography as Typography6 } from "@mui/material";
|
|
958
|
+
import Link2 from "next/link";
|
|
959
|
+
|
|
960
|
+
// src/lib/assets.ts
|
|
961
|
+
var NO_IMAGE = "/images/no-photo.svg";
|
|
962
|
+
|
|
963
|
+
// src/components/Card/CategoryCard.tsx
|
|
964
|
+
import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
965
|
+
var CategoryCard = (props) => {
|
|
966
|
+
const { link, text, title, image_url = NO_IMAGE } = props;
|
|
967
|
+
return /* @__PURE__ */ jsx21(Link2, { href: link, className: "group/card", children: /* @__PURE__ */ jsxs7(Box4, { className: "flex flex-col gap-[20px]", children: [
|
|
968
|
+
/* @__PURE__ */ jsx21(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
|
|
969
|
+
/* @__PURE__ */ jsxs7(Box4, { className: "flex flex-col px-[16px]", children: [
|
|
970
|
+
/* @__PURE__ */ jsx21(
|
|
971
|
+
Typography6,
|
|
972
|
+
{
|
|
973
|
+
component: "span",
|
|
974
|
+
className: "font-extrabold text-16 group-hover/card:text-gold2",
|
|
975
|
+
children: title
|
|
976
|
+
}
|
|
977
|
+
),
|
|
978
|
+
/* @__PURE__ */ jsx21(Typography6, { component: "span", className: "group-hover/card:text-gold2", children: text })
|
|
979
|
+
] })
|
|
980
|
+
] }) });
|
|
981
|
+
};
|
|
982
|
+
var CategoryCard_default = CategoryCard;
|
|
983
|
+
|
|
984
|
+
// src/components/Card/ArticleCard.tsx
|
|
985
|
+
import Link3 from "next/link";
|
|
986
|
+
import { Box as Box5 } from "@mui/material";
|
|
987
|
+
import Typography7 from "@mui/material/Typography";
|
|
988
|
+
import { jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
989
|
+
var ArticleCard = (props) => {
|
|
990
|
+
const { image_src = NO_IMAGE } = props;
|
|
991
|
+
return /* @__PURE__ */ jsxs8(Link3, { href: "/", className: "group/card bg-gray-light", children: [
|
|
992
|
+
/* @__PURE__ */ jsx22(
|
|
993
|
+
ImageContainer_default,
|
|
994
|
+
{
|
|
995
|
+
src: image_src,
|
|
996
|
+
alt: "test",
|
|
997
|
+
contentful: false,
|
|
998
|
+
height: "h-[220px]"
|
|
999
|
+
}
|
|
1000
|
+
),
|
|
1001
|
+
/* @__PURE__ */ jsxs8(Box5, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
1002
|
+
/* @__PURE__ */ jsx22(
|
|
1003
|
+
Typography7,
|
|
1004
|
+
{
|
|
1005
|
+
component: "span",
|
|
1006
|
+
className: "text-16 font-extrabold group-hover/card:text-gold2",
|
|
1007
|
+
children: "\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
|
|
1008
|
+
}
|
|
1009
|
+
),
|
|
1010
|
+
/* @__PURE__ */ jsx22(
|
|
1011
|
+
Typography7,
|
|
1012
|
+
{
|
|
1013
|
+
component: "span",
|
|
1014
|
+
className: "text-gray group-hover/card:text-gold2",
|
|
1015
|
+
children: "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
|
|
1016
|
+
}
|
|
1017
|
+
),
|
|
1018
|
+
/* @__PURE__ */ jsx22(Typography7, { component: "span", className: "border-gold-block-snack", children: "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430" })
|
|
1019
|
+
] })
|
|
1020
|
+
] });
|
|
1021
|
+
};
|
|
1022
|
+
var ArticleCard_default = ArticleCard;
|
|
1023
|
+
|
|
1024
|
+
// src/components/Card/JobCard.tsx
|
|
1025
|
+
import { Fragment, jsx as jsx23 } from "react/jsx-runtime";
|
|
1026
|
+
var JobCard = () => {
|
|
1027
|
+
return /* @__PURE__ */ jsx23(Fragment, {});
|
|
1028
|
+
};
|
|
1029
|
+
var JobCard_default = JobCard;
|
|
1030
|
+
|
|
1031
|
+
// src/components/Card/RealtorCard.tsx
|
|
1032
|
+
import { Fragment as Fragment2, jsx as jsx24 } from "react/jsx-runtime";
|
|
1033
|
+
var RealtorCard = () => {
|
|
1034
|
+
return /* @__PURE__ */ jsx24(Fragment2, {});
|
|
1035
|
+
};
|
|
1036
|
+
var RealtorCard_default = RealtorCard;
|
|
1037
|
+
|
|
1038
|
+
// src/components/Card/RealtyCard.tsx
|
|
1039
|
+
import { Box as Box6, Stack as Stack4, Typography as Typography8 } from "@mui/material";
|
|
1040
|
+
import Link4 from "next/link";
|
|
1041
|
+
import { jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1042
|
+
var RealtyCard = () => {
|
|
1043
|
+
return /* @__PURE__ */ jsxs9(Link4, { href: "/", className: "relative", children: [
|
|
1044
|
+
/* @__PURE__ */ jsxs9(Box6, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]", children: [
|
|
1045
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "white", label: "id: 00154" }),
|
|
1046
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })
|
|
1047
|
+
] }),
|
|
1048
|
+
/* @__PURE__ */ jsx25(
|
|
1049
|
+
ImageContainer_default,
|
|
1050
|
+
{
|
|
1051
|
+
src: "/images/test.png",
|
|
1052
|
+
alt: "test",
|
|
1053
|
+
height: "h-[260px]",
|
|
1054
|
+
contentful: false
|
|
1055
|
+
}
|
|
1056
|
+
),
|
|
1057
|
+
/* @__PURE__ */ jsxs9(Box6, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
1058
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }),
|
|
1059
|
+
/* @__PURE__ */ jsx25(Typography8, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
|
|
1060
|
+
/* @__PURE__ */ jsx25(Typography8, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
|
|
1061
|
+
/* @__PURE__ */ jsx25(
|
|
1062
|
+
Chip_default,
|
|
1063
|
+
{
|
|
1064
|
+
view: "silver",
|
|
1065
|
+
label: /* @__PURE__ */ jsxs9(Stack4, { direction: "row", spacing: 1, children: [
|
|
1066
|
+
/* @__PURE__ */ jsx25(Typography8, { children: "\u043C\u0435\u0442\u0440\u043E:" }),
|
|
1067
|
+
/* @__PURE__ */ jsx25(Typography8, { className: "font-extrabold", children: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
|
|
1068
|
+
] })
|
|
1069
|
+
}
|
|
1070
|
+
),
|
|
1071
|
+
/* @__PURE__ */ jsxs9(Box6, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
1072
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
1073
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
1074
|
+
/* @__PURE__ */ jsx25(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
1075
|
+
] })
|
|
1076
|
+
] })
|
|
1077
|
+
] });
|
|
1078
|
+
};
|
|
1079
|
+
var RealtyCard_default = RealtyCard;
|
|
1080
|
+
|
|
1081
|
+
// src/components/Card/TeamPersonCard.tsx
|
|
1082
|
+
import { Box as Box7, Typography as Typography9 } from "@mui/material";
|
|
1083
|
+
import { jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1084
|
+
var TeamPersonCard = (props) => {
|
|
1085
|
+
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
1086
|
+
return /* @__PURE__ */ jsxs10(Box7, { className: "group/card", children: [
|
|
1087
|
+
/* @__PURE__ */ jsxs10(Box7, { className: "relative h-[300px]", children: [
|
|
1088
|
+
/* @__PURE__ */ jsx26(Box7, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ jsx26(
|
|
1089
|
+
ImageContainer_default,
|
|
1090
|
+
{
|
|
1091
|
+
contentful: false,
|
|
1092
|
+
src: image_url,
|
|
1093
|
+
alt: name,
|
|
1094
|
+
objectFit: "object-contain"
|
|
1095
|
+
}
|
|
1096
|
+
) }),
|
|
1097
|
+
/* @__PURE__ */ jsxs10(Box7, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
|
|
1098
|
+
/* @__PURE__ */ jsx26(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
1099
|
+
/* @__PURE__ */ jsx26(Typography9, { component: "span", className: "mt-[4px]", children: name }),
|
|
1100
|
+
/* @__PURE__ */ jsx26(
|
|
1101
|
+
Typography9,
|
|
1102
|
+
{
|
|
1103
|
+
component: "span",
|
|
1104
|
+
className: "mt-[11px] text-12 !leading-[16px]",
|
|
1105
|
+
children: text
|
|
1106
|
+
}
|
|
1107
|
+
)
|
|
1108
|
+
] })
|
|
1109
|
+
] }),
|
|
1110
|
+
/* @__PURE__ */ jsxs10(Box7, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
1111
|
+
/* @__PURE__ */ jsx26(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
1112
|
+
/* @__PURE__ */ jsx26(Typography9, { component: "span", className: "text-gray", children: name })
|
|
1113
|
+
] })
|
|
1114
|
+
] });
|
|
1115
|
+
};
|
|
1116
|
+
var TeamPersonCard_default = TeamPersonCard;
|
|
670
1117
|
export {
|
|
671
1118
|
AppBar_default as AppBar,
|
|
1119
|
+
ArticleCard_default as ArticleCard,
|
|
672
1120
|
Avatar_default as Avatar,
|
|
673
1121
|
Badge_default as Badge,
|
|
674
1122
|
Button_default as Button,
|
|
1123
|
+
CategoryCard_default as CategoryCard,
|
|
675
1124
|
Chip_default as Chip,
|
|
676
1125
|
FromToInput_default as FromToInput,
|
|
677
1126
|
Greet,
|
|
678
1127
|
IconButton_default as IconButton,
|
|
1128
|
+
ImageContainer_default as ImageContainer,
|
|
679
1129
|
Input_default as Input,
|
|
1130
|
+
JobCard_default as JobCard,
|
|
680
1131
|
MenuItem_default as MenuItem,
|
|
681
1132
|
PhoneInput_default as PhoneInput,
|
|
682
1133
|
Providers_default as Providers,
|
|
683
1134
|
Radio_default as Radio,
|
|
684
1135
|
RadioGroup_default as RadioGroup,
|
|
1136
|
+
RealtorCard_default as RealtorCard,
|
|
1137
|
+
RealtyCard_default as RealtyCard,
|
|
685
1138
|
Select_default as Select,
|
|
686
1139
|
SelectPro_default as SelectPro,
|
|
687
1140
|
Slider_default as Slider,
|
|
688
1141
|
Switch_default as Switch,
|
|
1142
|
+
TeamPersonCard_default as TeamPersonCard,
|
|
689
1143
|
Text_default as Text
|
|
690
1144
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mayak-common-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"react-dom": "^18",
|
|
22
22
|
"react-hook-form": "^7.52.0",
|
|
23
23
|
"react-number-format": "^5.4.0",
|
|
24
|
+
"sass": "^1.77.7",
|
|
24
25
|
"stylis": "^4.3.2",
|
|
25
26
|
"tailwindcss": "^3.4.4"
|
|
26
27
|
},
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"@types/react-dom": "^18",
|
|
32
33
|
"@types/stylis": "^4.2.6",
|
|
33
34
|
"autoprefixer": "^10.4.19",
|
|
35
|
+
"esbuild-sass-plugin": "^3.3.1",
|
|
34
36
|
"eslint": "^8",
|
|
35
37
|
"eslint-config-next": "14.2.4",
|
|
36
38
|
"install": "^0.13.0",
|
package/tailwind.config.js
CHANGED
|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
8
8
|
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
9
9
|
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
10
10
|
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
11
|
+
"./src/**/*.{js,ts,jsx,tsx,mdx}",
|
|
11
12
|
],
|
|
12
13
|
theme: {
|
|
13
14
|
extend: {
|
|
@@ -20,6 +21,8 @@ module.exports = {
|
|
|
20
21
|
"accent-beige": "#C8BCA1",
|
|
21
22
|
"accent-silver": "#F5F5F5",
|
|
22
23
|
"accent-silver-2": "#939393",
|
|
24
|
+
gold2: "#99835F",
|
|
25
|
+
gold: "#C8BCA1",
|
|
23
26
|
primary: {
|
|
24
27
|
light: "#EAEDF6",
|
|
25
28
|
main: "#3041C7",
|
|
@@ -30,5 +33,10 @@ module.exports = {
|
|
|
30
33
|
},
|
|
31
34
|
},
|
|
32
35
|
},
|
|
36
|
+
variants: {
|
|
37
|
+
extend: {
|
|
38
|
+
textColor: ["group-hover"],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
33
41
|
plugins: [],
|
|
34
42
|
};
|