mayak-common-library 0.0.39 → 0.0.40

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.mjs CHANGED
@@ -587,6 +587,34 @@ var FromToInput = ({ label }) => {
587
587
  };
588
588
  var FromToInput_default = FromToInput;
589
589
 
590
+ // src/components/Input/SearchInput.tsx
591
+ import { useController } from "react-hook-form";
592
+ import { Input as Input2, InputAdornment as InputAdornment2, Stack as Stack3 } from "@mui/material";
593
+ import { jsx as jsx20 } from "react/jsx-runtime";
594
+ var SearchInput = (props) => {
595
+ const { collapse } = props;
596
+ const { field } = useController(props);
597
+ const handleSearchInputClick = (event) => {
598
+ if (props.onClick) {
599
+ props.onClick(event);
600
+ }
601
+ };
602
+ return /* @__PURE__ */ jsx20(
603
+ Input2,
604
+ __spreadProps(__spreadValues({
605
+ autoComplete: "off"
606
+ }, field), {
607
+ onClick: handleSearchInputClick,
608
+ startAdornment: /* @__PURE__ */ jsx20(Stack3, { direction: "row", alignItems: "center", children: /* @__PURE__ */ jsx20(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx20(search_default, {}) }) }),
609
+ disableUnderline: true,
610
+ placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
611
+ className: `w-full border rounded-none border-solid normal-case text-accent-dark hover:bg-white gap-x-2 px-5 !py-2
612
+ ${collapse ? "bg-white border-transparent" : " border-accent-beige"} `
613
+ })
614
+ );
615
+ };
616
+ var SearchInput_default = SearchInput;
617
+
590
618
  // src/theme/index.tsx
591
619
  import { useState as useState3 } from "react";
592
620
  import createCache from "@emotion/cache";
@@ -635,7 +663,7 @@ var _theme = {
635
663
  };
636
664
 
637
665
  // src/theme/index.tsx
638
- import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
666
+ import { jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
639
667
  var theme = createTheme(__spreadValues({}, _theme));
640
668
  function ThemeRegistry(props) {
641
669
  const { children } = props;
@@ -668,7 +696,7 @@ function ThemeRegistry(props) {
668
696
  for (const name of names) {
669
697
  styles += cache.inserted[name];
670
698
  }
671
- return /* @__PURE__ */ jsx20(
699
+ return /* @__PURE__ */ jsx21(
672
700
  "style",
673
701
  {
674
702
  "data-emotion": `${cache.key} ${names.join(" ")}`,
@@ -679,31 +707,31 @@ function ThemeRegistry(props) {
679
707
  cache.key
680
708
  );
681
709
  });
682
- return /* @__PURE__ */ jsx20(CacheProvider, { value: cache, children: /* @__PURE__ */ jsxs6(ThemeProvider, { theme, children: [
683
- /* @__PURE__ */ jsx20(CssBaseline, {}),
710
+ return /* @__PURE__ */ jsx21(CacheProvider, { value: cache, children: /* @__PURE__ */ jsxs6(ThemeProvider, { theme, children: [
711
+ /* @__PURE__ */ jsx21(CssBaseline, {}),
684
712
  children
685
713
  ] }) });
686
714
  }
687
715
 
688
716
  // src/providers/Providers.tsx
689
- import { jsx as jsx21 } from "react/jsx-runtime";
717
+ import { jsx as jsx22 } from "react/jsx-runtime";
690
718
  var Providers = ({ children }) => {
691
- return /* @__PURE__ */ jsx21(ThemeRegistry, { children });
719
+ return /* @__PURE__ */ jsx22(ThemeRegistry, { children });
692
720
  };
693
721
  var Providers_default = Providers;
694
722
 
695
723
  // src/components/AppBar/AppBar.tsx
696
724
  import { useRef as useRef2, useState as useState4 } from "react";
697
- import { Stack as Stack3 } from "@mui/material";
725
+ import { Stack as Stack4 } from "@mui/material";
698
726
  import Link from "next/link";
699
- import { jsx as jsx22 } from "react/jsx-runtime";
727
+ import { jsx as jsx23 } from "react/jsx-runtime";
700
728
  var AppBar = ({ links }) => {
701
729
  const [activeIndex, setActiveIndex] = useState4(0);
702
730
  const navItemsRef = useRef2([]);
703
731
  const handleClick = (index) => {
704
732
  setActiveIndex(index);
705
733
  };
706
- return /* @__PURE__ */ jsx22(Stack3, { direction: "row", spacing: 1, position: "relative", children: links.map((link, index) => /* @__PURE__ */ jsx22(
734
+ return /* @__PURE__ */ jsx23(Stack4, { direction: "row", spacing: 1, position: "relative", children: links.map((link, index) => /* @__PURE__ */ jsx23(
707
735
  Link,
708
736
  {
709
737
  ref: (el) => {
@@ -722,7 +750,7 @@ var AppBar_default = AppBar;
722
750
  // src/components/Image/ImageContainer.tsx
723
751
  import { Box as Box2 } from "@mui/material";
724
752
  import Image from "next/image";
725
- import { jsx as jsx23 } from "react/jsx-runtime";
753
+ import { jsx as jsx24 } from "react/jsx-runtime";
726
754
  var ImageContainer = (props) => {
727
755
  const {
728
756
  src,
@@ -736,11 +764,11 @@ var ImageContainer = (props) => {
736
764
  classesWrapper,
737
765
  classesImg
738
766
  } = props;
739
- return /* @__PURE__ */ jsx23(
767
+ return /* @__PURE__ */ jsx24(
740
768
  Box2,
741
769
  {
742
770
  className: `relative ${width} ${height}${classesWrapper ? " " + classesWrapper : ""}`,
743
- children: /* @__PURE__ */ jsx23(
771
+ children: /* @__PURE__ */ jsx24(
744
772
  Image,
745
773
  {
746
774
  className: `${objectFit} object-center${classesImg ? " " + classesImg : ""}`,
@@ -759,8 +787,8 @@ var ImageContainer_default = ImageContainer;
759
787
 
760
788
  // src/icons/map-search.svg
761
789
  import * as React4 from "react";
762
- import { jsx as jsx24 } from "react/jsx-runtime";
763
- var SvgMapSearch = (props) => /* @__PURE__ */ jsx24("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx24("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
790
+ import { jsx as jsx25 } from "react/jsx-runtime";
791
+ var SvgMapSearch = (props) => /* @__PURE__ */ jsx25("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx25("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
764
792
  var map_search_default = SvgMapSearch;
765
793
 
766
794
  // src/components/Card/CategoryCard.tsx
@@ -771,13 +799,13 @@ import Link2 from "next/link";
771
799
  var NO_IMAGE = "/images/no-photo.svg";
772
800
 
773
801
  // src/components/Card/CategoryCard.tsx
774
- import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
802
+ import { jsx as jsx26, jsxs as jsxs7 } from "react/jsx-runtime";
775
803
  var CategoryCard = (props) => {
776
804
  const { link, text, title, image_url = NO_IMAGE } = props;
777
- return /* @__PURE__ */ jsx25(Link2, { href: link, className: "group/card", children: /* @__PURE__ */ jsxs7(Box3, { className: "flex flex-col gap-[20px]", children: [
778
- /* @__PURE__ */ jsx25(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
805
+ return /* @__PURE__ */ jsx26(Link2, { href: link, className: "group/card", children: /* @__PURE__ */ jsxs7(Box3, { className: "flex flex-col gap-[20px]", children: [
806
+ /* @__PURE__ */ jsx26(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
779
807
  /* @__PURE__ */ jsxs7(Box3, { className: "flex flex-col px-[16px]", children: [
780
- /* @__PURE__ */ jsx25(
808
+ /* @__PURE__ */ jsx26(
781
809
  Typography6,
782
810
  {
783
811
  component: "span",
@@ -785,7 +813,7 @@ var CategoryCard = (props) => {
785
813
  children: title
786
814
  }
787
815
  ),
788
- /* @__PURE__ */ jsx25(Typography6, { component: "span", className: "group-hover/card:text-gold2", children: text })
816
+ /* @__PURE__ */ jsx26(Typography6, { component: "span", className: "group-hover/card:text-gold2", children: text })
789
817
  ] })
790
818
  ] }) });
791
819
  };
@@ -795,7 +823,7 @@ var CategoryCard_default = CategoryCard;
795
823
  import Link3 from "next/link";
796
824
  import { Box as Box4 } from "@mui/material";
797
825
  import Typography7 from "@mui/material/Typography";
798
- import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
826
+ import { jsx as jsx27, jsxs as jsxs8 } from "react/jsx-runtime";
799
827
  var ArticleCard = (props) => {
800
828
  const { imageUrl = NO_IMAGE, classes, title, text, href } = props;
801
829
  return /* @__PURE__ */ jsxs8(
@@ -804,7 +832,7 @@ var ArticleCard = (props) => {
804
832
  href,
805
833
  className: `group/card bg-gray-light${classes ? " " + classes : ""}`,
806
834
  children: [
807
- /* @__PURE__ */ jsx26(
835
+ /* @__PURE__ */ jsx27(
808
836
  ImageContainer_default,
809
837
  {
810
838
  src: imageUrl,
@@ -814,7 +842,7 @@ var ArticleCard = (props) => {
814
842
  }
815
843
  ),
816
844
  /* @__PURE__ */ jsxs8(Box4, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
817
- /* @__PURE__ */ jsx26(
845
+ /* @__PURE__ */ jsx27(
818
846
  Typography7,
819
847
  {
820
848
  component: "span",
@@ -822,7 +850,7 @@ var ArticleCard = (props) => {
822
850
  children: title
823
851
  }
824
852
  ),
825
- /* @__PURE__ */ jsx26(
853
+ /* @__PURE__ */ jsx27(
826
854
  Typography7,
827
855
  {
828
856
  component: "span",
@@ -838,16 +866,16 @@ var ArticleCard = (props) => {
838
866
  var ArticleCard_default = ArticleCard;
839
867
 
840
868
  // src/components/Card/JobCard.tsx
841
- import { Fragment, jsx as jsx27 } from "react/jsx-runtime";
869
+ import { Fragment, jsx as jsx28 } from "react/jsx-runtime";
842
870
  var JobCard = () => {
843
- return /* @__PURE__ */ jsx27(Fragment, {});
871
+ return /* @__PURE__ */ jsx28(Fragment, {});
844
872
  };
845
873
  var JobCard_default = JobCard;
846
874
 
847
875
  // src/components/Card/RealtorCard.tsx
848
- import { Fragment as Fragment2, jsx as jsx28 } from "react/jsx-runtime";
876
+ import { Fragment as Fragment2, jsx as jsx29 } from "react/jsx-runtime";
849
877
  var RealtorCard = () => {
850
- return /* @__PURE__ */ jsx28(Fragment2, {});
878
+ return /* @__PURE__ */ jsx29(Fragment2, {});
851
879
  };
852
880
  var RealtorCard_default = RealtorCard;
853
881
 
@@ -857,15 +885,15 @@ import Link4 from "next/link";
857
885
 
858
886
  // src/icons/metro.svg
859
887
  import * as React5 from "react";
860
- import { jsx as jsx29 } from "react/jsx-runtime";
861
- var SvgMetro = (props) => /* @__PURE__ */ jsx29("svg", __spreadProps(__spreadValues({ width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx29("path", { d: "M3.23128 0L0 9.41H2.99687L4.12109 6.14551L6.00093 10L7.87891 6.14551L9.0068 9.41H12L8.76874 0L6.00093 4.83041L3.23128 0Z", fill: "#757575" }) }));
888
+ import { jsx as jsx30 } from "react/jsx-runtime";
889
+ var SvgMetro = (props) => /* @__PURE__ */ jsx30("svg", __spreadProps(__spreadValues({ width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx30("path", { d: "M3.23128 0L0 9.41H2.99687L4.12109 6.14551L6.00093 10L7.87891 6.14551L9.0068 9.41H12L8.76874 0L6.00093 4.83041L3.23128 0Z", fill: "#757575" }) }));
862
890
  var metro_default = SvgMetro;
863
891
 
864
892
  // src/components/Card/RealtyCard.tsx
865
- import { jsx as jsx30, jsxs as jsxs9 } from "react/jsx-runtime";
893
+ import { jsx as jsx31, jsxs as jsxs9 } from "react/jsx-runtime";
866
894
  var RealtyCard = () => {
867
895
  return /* @__PURE__ */ jsxs9(Link4, { href: "/", className: "relative", children: [
868
- /* @__PURE__ */ jsx30(
896
+ /* @__PURE__ */ jsx31(
869
897
  ImageContainer_default,
870
898
  {
871
899
  src: "/images/test.png",
@@ -876,18 +904,18 @@ var RealtyCard = () => {
876
904
  ),
877
905
  /* @__PURE__ */ jsxs9(Box5, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
878
906
  /* @__PURE__ */ jsxs9(Typography8, { component: "span", className: "text-14", children: [
879
- /* @__PURE__ */ jsx30(Typography8, { component: "span", className: "font-extrabold", children: "120 000 \u20B4" }),
907
+ /* @__PURE__ */ jsx31(Typography8, { component: "span", className: "font-extrabold", children: "120 000 \u20B4" }),
880
908
  "/\u043C\u0456\u0441\u044F\u0446\u044C"
881
909
  ] }),
882
- /* @__PURE__ */ jsx30(Typography8, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
910
+ /* @__PURE__ */ jsx31(Typography8, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
883
911
  /* @__PURE__ */ jsxs9(Box5, { className: "flex items-center gap-[10px]", children: [
884
- /* @__PURE__ */ jsx30(Typography8, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
885
- /* @__PURE__ */ jsx30(Chip_default, { icon: /* @__PURE__ */ jsx30(metro_default, {}), view: "silver", label: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
912
+ /* @__PURE__ */ jsx31(Typography8, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
913
+ /* @__PURE__ */ jsx31(Chip_default, { icon: /* @__PURE__ */ jsx31(metro_default, {}), view: "silver", label: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
886
914
  ] }),
887
915
  /* @__PURE__ */ jsxs9(Box5, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
888
- /* @__PURE__ */ jsx30(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
889
- /* @__PURE__ */ jsx30(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
890
- /* @__PURE__ */ jsx30(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
916
+ /* @__PURE__ */ jsx31(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
917
+ /* @__PURE__ */ jsx31(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
918
+ /* @__PURE__ */ jsx31(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
891
919
  ] })
892
920
  ] })
893
921
  ] });
@@ -896,12 +924,12 @@ var RealtyCard_default = RealtyCard;
896
924
 
897
925
  // src/components/Card/TeamPersonCard.tsx
898
926
  import { Box as Box6, Typography as Typography9 } from "@mui/material";
899
- import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
927
+ import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
900
928
  var TeamPersonCard = (props) => {
901
929
  const { image_url = NO_IMAGE, name, position, text } = props;
902
930
  return /* @__PURE__ */ jsxs10(Box6, { className: "group/card", children: [
903
931
  /* @__PURE__ */ jsxs10(Box6, { className: "relative h-[300px]", children: [
904
- /* @__PURE__ */ jsx31(Box6, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ jsx31(
932
+ /* @__PURE__ */ jsx32(Box6, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ jsx32(
905
933
  ImageContainer_default,
906
934
  {
907
935
  contentful: false,
@@ -911,9 +939,9 @@ var TeamPersonCard = (props) => {
911
939
  }
912
940
  ) }),
913
941
  /* @__PURE__ */ jsxs10(Box6, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
914
- /* @__PURE__ */ jsx31(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
915
- /* @__PURE__ */ jsx31(Typography9, { component: "span", className: "mt-[4px]", children: name }),
916
- /* @__PURE__ */ jsx31(
942
+ /* @__PURE__ */ jsx32(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
943
+ /* @__PURE__ */ jsx32(Typography9, { component: "span", className: "mt-[4px]", children: name }),
944
+ /* @__PURE__ */ jsx32(
917
945
  Typography9,
918
946
  {
919
947
  component: "span",
@@ -924,8 +952,8 @@ var TeamPersonCard = (props) => {
924
952
  ] })
925
953
  ] }),
926
954
  /* @__PURE__ */ jsxs10(Box6, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
927
- /* @__PURE__ */ jsx31(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
928
- /* @__PURE__ */ jsx31(Typography9, { component: "span", className: "text-gray", children: name })
955
+ /* @__PURE__ */ jsx32(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
956
+ /* @__PURE__ */ jsx32(Typography9, { component: "span", className: "text-gray", children: name })
929
957
  ] })
930
958
  ] });
931
959
  };
@@ -937,13 +965,13 @@ import {
937
965
  Autocomplete as MUIAutocomplete,
938
966
  Box as Box7,
939
967
  Chip as Chip2,
940
- Input as Input2,
941
- InputAdornment as InputAdornment2,
968
+ Input as Input3,
969
+ InputAdornment as InputAdornment3,
942
970
  Paper as Paper2,
943
- Stack as Stack4
971
+ Stack as Stack5
944
972
  } from "@mui/material";
945
- import { useController } from "react-hook-form";
946
- import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
973
+ import { useController as useController2 } from "react-hook-form";
974
+ import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
947
975
  var RenderInputAutocomplete = (_a) => {
948
976
  var _b = _a, {
949
977
  InputProps: InputProps2,
@@ -952,14 +980,14 @@ var RenderInputAutocomplete = (_a) => {
952
980
  "InputProps",
953
981
  "InputLabelProps"
954
982
  ]);
955
- return /* @__PURE__ */ jsx32(Box7, { ref: InputProps2.ref, children: /* @__PURE__ */ jsx32(
956
- Input2,
983
+ return /* @__PURE__ */ jsx33(Box7, { ref: InputProps2.ref, children: /* @__PURE__ */ jsx33(
984
+ Input3,
957
985
  __spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
958
- startAdornment: /* @__PURE__ */ jsxs11(Stack4, { direction: "row", alignItems: "center", children: [
959
- /* @__PURE__ */ jsx32(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx32(search_default, {}) }),
986
+ startAdornment: /* @__PURE__ */ jsxs11(Stack5, { direction: "row", alignItems: "center", children: [
987
+ /* @__PURE__ */ jsx33(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx33(search_default, {}) }),
960
988
  InputProps2.startAdornment
961
989
  ] }),
962
- endAdornment: /* @__PURE__ */ jsx32(Fragment3, {}),
990
+ endAdornment: /* @__PURE__ */ jsx33(Fragment3, {}),
963
991
  ref: InputProps2.ref,
964
992
  disableUnderline: true,
965
993
  placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
@@ -975,7 +1003,7 @@ var RenderInputAutocomplete = (_a) => {
975
1003
  ) });
976
1004
  };
977
1005
  var CustomPaperComponent = (props) => {
978
- return /* @__PURE__ */ jsx32(Paper2, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs11("div", { children: [
1006
+ return /* @__PURE__ */ jsx33(Paper2, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs11("div", { children: [
979
1007
  "helllooo",
980
1008
  props.children
981
1009
  ] }, "click-away-wrapper") }));
@@ -984,7 +1012,7 @@ var Autocomplete = (props) => {
984
1012
  const { values } = props;
985
1013
  const [open, setOpen] = useState5(false);
986
1014
  const [anchorEl, setAnchorEl] = useState5(null);
987
- const { field } = useController(props);
1015
+ const { field } = useController2(props);
988
1016
  const handleClick = (event) => {
989
1017
  if (open)
990
1018
  setTimeout(() => {
@@ -993,7 +1021,7 @@ var Autocomplete = (props) => {
993
1021
  else setAnchorEl(event.currentTarget);
994
1022
  setOpen(!open);
995
1023
  };
996
- return /* @__PURE__ */ jsx32(
1024
+ return /* @__PURE__ */ jsx33(
997
1025
  MUIAutocomplete,
998
1026
  {
999
1027
  multiple: true,
@@ -1009,12 +1037,12 @@ var Autocomplete = (props) => {
1009
1037
  PaperComponent: CustomPaperComponent,
1010
1038
  renderTags: (value, getTagProps) => value.map((option, index) => {
1011
1039
  const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
1012
- return /* @__PURE__ */ jsx32(
1040
+ return /* @__PURE__ */ jsx33(
1013
1041
  Chip2,
1014
1042
  __spreadProps(__spreadValues({
1015
1043
  label: option
1016
1044
  }, tagProps), {
1017
- deleteIcon: /* @__PURE__ */ jsx32(IconButton_default, { className: "rounded-none bg-accent-silver p-1", children: /* @__PURE__ */ jsx32(close_default, {}) }),
1045
+ deleteIcon: /* @__PURE__ */ jsx33(IconButton_default, { className: "rounded-none bg-accent-silver p-1", children: /* @__PURE__ */ jsx33(close_default, {}) }),
1018
1046
  className: "rounded-none w-fit h-fit bg-transparent p-0"
1019
1047
  }),
1020
1048
  key
@@ -1026,7 +1054,7 @@ var Autocomplete = (props) => {
1026
1054
  className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`
1027
1055
  }
1028
1056
  },
1029
- renderInput: (params) => /* @__PURE__ */ jsx32(
1057
+ renderInput: (params) => /* @__PURE__ */ jsx33(
1030
1058
  RenderInputAutocomplete,
1031
1059
  __spreadValues({}, params)
1032
1060
  )
@@ -1045,11 +1073,11 @@ var thousandFormatter = (num) => {
1045
1073
  var thousandFormatter_default = thousandFormatter;
1046
1074
 
1047
1075
  // src/components/BigNumber/BigNumber.tsx
1048
- import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
1076
+ import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
1049
1077
  var BigNumber = (props) => {
1050
1078
  const { text, number } = props;
1051
1079
  return /* @__PURE__ */ jsxs12(Box8, { className: "flex flex-col", children: [
1052
- /* @__PURE__ */ jsx33(
1080
+ /* @__PURE__ */ jsx34(
1053
1081
  Typography10,
1054
1082
  {
1055
1083
  component: "span",
@@ -1057,27 +1085,27 @@ var BigNumber = (props) => {
1057
1085
  children: thousandFormatter_default(number)
1058
1086
  }
1059
1087
  ),
1060
- /* @__PURE__ */ jsx33(Typography10, { component: "span", className: "text-base text-gray mt-[-20px]", children: text })
1088
+ /* @__PURE__ */ jsx34(Typography10, { component: "span", className: "text-base text-gray mt-[-20px]", children: text })
1061
1089
  ] });
1062
1090
  };
1063
1091
  var BigNumber_default = BigNumber;
1064
1092
 
1065
1093
  // src/blocks/TextBlock.tsx
1066
1094
  import { Box as Box9, Container, Typography as Typography11 } from "@mui/material";
1067
- import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
1095
+ import { jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
1068
1096
  var TextBlock = ({ classes, text, title }) => {
1069
- return /* @__PURE__ */ jsx34(Box9, { className: `mt-[80px]${classes ? " " + classes : ""}`, children: /* @__PURE__ */ jsx34(Container, { maxWidth: CONTAINER_WIDTH, children: /* @__PURE__ */ jsxs13(Box9, { className: "flex flex-col items-center gap-[16px] text-center max-w-[950px] w-full mx-auto", children: [
1070
- /* @__PURE__ */ jsx34(Typography11, { component: "span", className: "text-32", children: title }),
1071
- /* @__PURE__ */ jsx34(Typography11, { component: "span", className: "text-gray text-14", children: text })
1097
+ return /* @__PURE__ */ jsx35(Box9, { className: `mt-[80px]${classes ? " " + classes : ""}`, children: /* @__PURE__ */ jsx35(Container, { maxWidth: CONTAINER_WIDTH, children: /* @__PURE__ */ jsxs13(Box9, { className: "flex flex-col items-center gap-[16px] text-center max-w-[950px] w-full mx-auto", children: [
1098
+ /* @__PURE__ */ jsx35(Typography11, { component: "span", className: "text-32", children: title }),
1099
+ /* @__PURE__ */ jsx35(Typography11, { component: "span", className: "text-gray text-14", children: text })
1072
1100
  ] }) }) });
1073
1101
  };
1074
1102
  var TextBlock_default = TextBlock;
1075
1103
 
1076
1104
  // src/blocks/TitleBlock.tsx
1077
1105
  import Typography12 from "@mui/material/Typography";
1078
- import { jsx as jsx35 } from "react/jsx-runtime";
1106
+ import { jsx as jsx36 } from "react/jsx-runtime";
1079
1107
  var TitleBlock = ({ titlePosition, title, classes }) => {
1080
- return /* @__PURE__ */ jsx35(
1108
+ return /* @__PURE__ */ jsx36(
1081
1109
  Typography12,
1082
1110
  {
1083
1111
  component: "span",
@@ -1093,20 +1121,20 @@ import { Box as Box10, Typography as Typography13 } from "@mui/material";
1093
1121
 
1094
1122
  // src/icons/qoutes.svg
1095
1123
  import * as React6 from "react";
1096
- import { jsx as jsx36 } from "react/jsx-runtime";
1124
+ import { jsx as jsx37 } from "react/jsx-runtime";
1097
1125
 
1098
1126
  // src/blocks/TeamWorkerBlock.tsx
1099
1127
  import Link5 from "next/link";
1100
- import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
1128
+ import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
1101
1129
 
1102
1130
  // src/blocks/AnyLevelBlock.tsx
1103
1131
  import { Box as Box11, Container as Container2, Grid, Typography as Typography14 } from "@mui/material";
1104
- import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
1132
+ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
1105
1133
 
1106
1134
  // src/blocks/RichTextBlock.tsx
1107
1135
  import { Box as Box12 } from "@mui/material";
1108
1136
  import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
1109
- import { Fragment as Fragment4, jsx as jsx39 } from "react/jsx-runtime";
1137
+ import { Fragment as Fragment4, jsx as jsx40 } from "react/jsx-runtime";
1110
1138
 
1111
1139
  // src/blocks/ArticleContentBlock.tsx
1112
1140
  import { Box as Box13, Container as Container3, Typography as Typography15 } from "@mui/material";
@@ -1115,14 +1143,14 @@ import { Box as Box13, Container as Container3, Typography as Typography15 } fro
1115
1143
  import { format } from "date-fns";
1116
1144
 
1117
1145
  // src/blocks/ArticleContentBlock.tsx
1118
- import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
1146
+ import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
1119
1147
 
1120
1148
  // src/components/List/List.tsx
1121
1149
  import { List as MUIList } from "@mui/material";
1122
- import { jsx as jsx41 } from "react/jsx-runtime";
1150
+ import { jsx as jsx42 } from "react/jsx-runtime";
1123
1151
  var List = (props) => {
1124
1152
  const { children } = props;
1125
- return /* @__PURE__ */ jsx41(MUIList, __spreadProps(__spreadValues({ disablePadding: true }, props), { children }));
1153
+ return /* @__PURE__ */ jsx42(MUIList, __spreadProps(__spreadValues({ disablePadding: true }, props), { children }));
1126
1154
  };
1127
1155
  var List_default = List;
1128
1156
 
@@ -1132,17 +1160,17 @@ import ListItemButton from "@mui/material/ListItemButton";
1132
1160
  import ListItemIcon from "@mui/material/ListItemIcon";
1133
1161
  import ListItemText from "@mui/material/ListItemText";
1134
1162
  import Typography16 from "@mui/material/Typography";
1135
- import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
1163
+ import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
1136
1164
  var ListItem = ({ icon, title, bold, onClick }) => {
1137
- return /* @__PURE__ */ jsx42(MUIListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ jsxs17(
1165
+ return /* @__PURE__ */ jsx43(MUIListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ jsxs17(
1138
1166
  ListItemButton,
1139
1167
  {
1140
1168
  sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
1141
1169
  onClick: () => onClick && onClick(title),
1142
1170
  disableRipple: true,
1143
1171
  children: [
1144
- icon ? /* @__PURE__ */ jsx42(ListItemIcon, { sx: { minWidth: "24px" }, children: icon }) : null,
1145
- /* @__PURE__ */ jsx42(ListItemText, { children: /* @__PURE__ */ jsx42(
1172
+ icon ? /* @__PURE__ */ jsx43(ListItemIcon, { sx: { minWidth: "24px" }, children: icon }) : null,
1173
+ /* @__PURE__ */ jsx43(ListItemText, { children: /* @__PURE__ */ jsx43(
1146
1174
  Typography16,
1147
1175
  {
1148
1176
  className: `text-xs ${bold ? "font-extrabold" : "font-normal"}`,
@@ -1156,8 +1184,8 @@ var ListItem = ({ icon, title, bold, onClick }) => {
1156
1184
  var ListItem_default = ListItem;
1157
1185
 
1158
1186
  // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1159
- import { Stack as Stack5 } from "@mui/material";
1160
- import { useController as useController2 } from "react-hook-form";
1187
+ import { Stack as Stack6 } from "@mui/material";
1188
+ import { useController as useController3 } from "react-hook-form";
1161
1189
  import Typography17 from "@mui/material/Typography";
1162
1190
 
1163
1191
  // src/components/ToggleButton/ToggleButtonGroup.tsx
@@ -1166,7 +1194,7 @@ import {
1166
1194
  toggleButtonGroupClasses,
1167
1195
  ToggleButtonGroup as MUIToggleButtonGroup
1168
1196
  } from "@mui/material";
1169
- import { jsx as jsx43 } from "react/jsx-runtime";
1197
+ import { jsx as jsx44 } from "react/jsx-runtime";
1170
1198
  var StyledToggleButtonGroup = styled9(
1171
1199
  MUIToggleButtonGroup
1172
1200
  )(({ theme: theme2, flexDirection }) => ({
@@ -1194,7 +1222,7 @@ var ToggleButtonGroup = (props) => {
1194
1222
  onChange,
1195
1223
  value
1196
1224
  } = props;
1197
- return /* @__PURE__ */ jsx43(
1225
+ return /* @__PURE__ */ jsx44(
1198
1226
  StyledToggleButtonGroup,
1199
1227
  __spreadProps(__spreadValues({}, props), {
1200
1228
  flexDirection,
@@ -1212,7 +1240,7 @@ var ToggleButtonGroup_default = ToggleButtonGroup;
1212
1240
  // src/components/ToggleButton/ToggleButton.tsx
1213
1241
  import { styled as styled10 } from "@mui/material";
1214
1242
  import MuiToggleButton from "@mui/material/ToggleButton";
1215
- import { jsx as jsx44 } from "react/jsx-runtime";
1243
+ import { jsx as jsx45 } from "react/jsx-runtime";
1216
1244
  var CustomToggleButton = styled10(MuiToggleButton)(() => ({
1217
1245
  "&.Mui-selected, &.Mui-selected:hover": {
1218
1246
  backgroundColor: "#C8BCA1 !important"
@@ -1220,7 +1248,7 @@ var CustomToggleButton = styled10(MuiToggleButton)(() => ({
1220
1248
  }));
1221
1249
  var ToggleButton = (props) => {
1222
1250
  const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
1223
- return /* @__PURE__ */ jsx44(
1251
+ return /* @__PURE__ */ jsx45(
1224
1252
  CustomToggleButton,
1225
1253
  __spreadProps(__spreadValues({}, rest), {
1226
1254
  disableRipple: true,
@@ -1232,7 +1260,7 @@ var ToggleButton = (props) => {
1232
1260
  var ToggleButton_default = ToggleButton;
1233
1261
 
1234
1262
  // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1235
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1263
+ import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
1236
1264
  var ToggleButtonsWithLabel = (props) => {
1237
1265
  const {
1238
1266
  values,
@@ -1243,15 +1271,15 @@ var ToggleButtonsWithLabel = (props) => {
1243
1271
  collapseParent,
1244
1272
  flexDirection = "row"
1245
1273
  } = props;
1246
- const { field } = useController2(props);
1274
+ const { field } = useController3(props);
1247
1275
  const handleFormat = (_event, newFormats) => {
1248
1276
  console.log(newFormats);
1249
1277
  if (newFormats !== null) field.onChange(newFormats);
1250
1278
  if (collapseOnClick && collapseParent) collapseParent();
1251
1279
  };
1252
- return /* @__PURE__ */ jsxs18(Stack5, { children: [
1253
- label ? /* @__PURE__ */ jsx45(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1254
- /* @__PURE__ */ jsx45(
1280
+ return /* @__PURE__ */ jsxs18(Stack6, { children: [
1281
+ label ? /* @__PURE__ */ jsx46(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1282
+ /* @__PURE__ */ jsx46(
1255
1283
  ToggleButtonGroup_default,
1256
1284
  __spreadProps(__spreadValues({}, field), {
1257
1285
  flexDirection,
@@ -1260,7 +1288,7 @@ var ToggleButtonsWithLabel = (props) => {
1260
1288
  onChange: handleFormat,
1261
1289
  "aria-label": "text formatting",
1262
1290
  className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1263
- children: values.map((option, index) => /* @__PURE__ */ jsx45(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1291
+ children: values.map((option, index) => /* @__PURE__ */ jsx46(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1264
1292
  })
1265
1293
  )
1266
1294
  ] });
@@ -1292,6 +1320,7 @@ export {
1292
1320
  RadioGroup_default as RadioGroup,
1293
1321
  RealtorCard_default as RealtorCard,
1294
1322
  RealtyCard_default as RealtyCard,
1323
+ SearchInput_default as SearchInput,
1295
1324
  Select_default as Select,
1296
1325
  SelectPro_default as SelectPro,
1297
1326
  Slider_default as Slider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",