mayak-common-library 0.0.32 → 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 +3 -9
- package/dist/index.d.mts +40 -6
- package/dist/index.d.ts +40 -6
- package/dist/index.js +257 -145
- package/dist/index.mjs +268 -160
- package/package.json +4 -1
- package/tailwind.config.js +6 -0
package/dist/index.js
CHANGED
|
@@ -74,6 +74,8 @@ __export(src_exports, {
|
|
|
74
74
|
ImageContainer: () => ImageContainer_default,
|
|
75
75
|
Input: () => Input_default,
|
|
76
76
|
JobCard: () => JobCard_default,
|
|
77
|
+
List: () => List_default,
|
|
78
|
+
ListItem: () => ListItem_default,
|
|
77
79
|
MapIcon: () => map_search_default,
|
|
78
80
|
MenuItem: () => MenuItem_default,
|
|
79
81
|
PhoneInput: () => PhoneInput_default,
|
|
@@ -87,7 +89,9 @@ __export(src_exports, {
|
|
|
87
89
|
Slider: () => Slider_default,
|
|
88
90
|
Switch: () => Switch_default,
|
|
89
91
|
TeamPersonCard: () => TeamPersonCard_default,
|
|
90
|
-
Text: () => Text_default
|
|
92
|
+
Text: () => Text_default,
|
|
93
|
+
TextBlock: () => TextBlock_default,
|
|
94
|
+
TitleBlock: () => TitleBlock_default
|
|
91
95
|
});
|
|
92
96
|
module.exports = __toCommonJS(src_exports);
|
|
93
97
|
|
|
@@ -113,7 +117,7 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
|
113
117
|
"&:hover": {
|
|
114
118
|
backgroundColor: "unset",
|
|
115
119
|
svg: {
|
|
116
|
-
filter: "brightness(0) saturate(100%) invert(
|
|
120
|
+
filter: "brightness(0) saturate(100%) invert(0%) sepia(95%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(105%)"
|
|
117
121
|
}
|
|
118
122
|
},
|
|
119
123
|
transition: "transform 0.1s ease-in-out",
|
|
@@ -124,15 +128,16 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
|
124
128
|
}
|
|
125
129
|
}));
|
|
126
130
|
var Button = (props) => {
|
|
127
|
-
const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
|
|
131
|
+
const _a = props, { children, base, bolt, border, medium, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "medium", "small", "large"]);
|
|
128
132
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
129
133
|
StyledButton,
|
|
130
134
|
__spreadProps(__spreadValues({}, rest), {
|
|
131
135
|
disableRipple: true,
|
|
132
136
|
className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
|
|
133
137
|
${small ? "py-1.5 px-4" : ""}
|
|
134
|
-
|
|
135
|
-
|
|
138
|
+
${medium ? "py-3.5 px-4" : ""}
|
|
139
|
+
${large ? "h-[38px] py-3.5 px-10" : ""}
|
|
140
|
+
${border ? "text-accent-silver-3 border-b border-solid rounded-none border-accent-silver-3 hover:text-accent-black hover:border-b-2 hover:border-accent-black" : ""}`,
|
|
136
141
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
137
142
|
import_Typography.default,
|
|
138
143
|
{
|
|
@@ -250,7 +255,7 @@ var CustomSelect = (props) => {
|
|
|
250
255
|
id: uniqueId,
|
|
251
256
|
PaperProps: {
|
|
252
257
|
classes: {
|
|
253
|
-
root: `
|
|
258
|
+
root: `select ${open ? "select--open" : "select--close"}`
|
|
254
259
|
}
|
|
255
260
|
}
|
|
256
261
|
},
|
|
@@ -290,7 +295,9 @@ var SelectPro = ({
|
|
|
290
295
|
clickComponent,
|
|
291
296
|
fullContainerWidth = false,
|
|
292
297
|
overButton = false,
|
|
293
|
-
small = false
|
|
298
|
+
small = false,
|
|
299
|
+
fullWidth = false,
|
|
300
|
+
freeChildWidth = false
|
|
294
301
|
}) => {
|
|
295
302
|
const [btn, setAnchorEl] = (0, import_react2.useState)(null);
|
|
296
303
|
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
@@ -312,15 +319,11 @@ var SelectPro = ({
|
|
|
312
319
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
313
320
|
collapseParent: handleClose
|
|
314
321
|
}) : children;
|
|
315
|
-
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { children: [
|
|
322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { width: fullWidth ? "100%" : "inherit", children: [
|
|
316
323
|
clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
|
|
317
324
|
ref: btn,
|
|
318
|
-
onClick: handleClick
|
|
319
|
-
|
|
320
|
-
// clickComponent.props.onClick(e);
|
|
321
|
-
// // e.preventDefault();
|
|
322
|
-
// handleClick(e);
|
|
323
|
-
// },
|
|
325
|
+
onClick: handleClick,
|
|
326
|
+
collapse: open
|
|
324
327
|
}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
325
328
|
import_material4.Button,
|
|
326
329
|
{
|
|
@@ -340,8 +343,9 @@ var SelectPro = ({
|
|
|
340
343
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
341
344
|
import_material4.Typography,
|
|
342
345
|
{
|
|
343
|
-
|
|
344
|
-
|
|
346
|
+
width: "200px",
|
|
347
|
+
className: "text-sm leading-4 truncate text-left",
|
|
348
|
+
children: placeholder
|
|
345
349
|
}
|
|
346
350
|
),
|
|
347
351
|
colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
@@ -361,13 +365,17 @@ var SelectPro = ({
|
|
|
361
365
|
{
|
|
362
366
|
sx: {
|
|
363
367
|
position: "absolute",
|
|
364
|
-
width:
|
|
368
|
+
// width: "min-content",
|
|
369
|
+
width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? (
|
|
370
|
+
// ? "fit-content" //(btn as HTMLButtonElement).offsetWidth
|
|
371
|
+
btn.offsetWidth
|
|
372
|
+
) : "100%",
|
|
365
373
|
left: fullContainerWidth ? 0 : "initial",
|
|
366
374
|
right: fullContainerWidth ? 0 : "initial",
|
|
367
375
|
top: overButton ? 0 : "initial"
|
|
368
376
|
},
|
|
369
|
-
className: `
|
|
370
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col
|
|
377
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`,
|
|
378
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2`, children: [
|
|
371
379
|
overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
372
380
|
IconButton_default,
|
|
373
381
|
{
|
|
@@ -395,20 +403,22 @@ var SelectPro_default = SelectPro;
|
|
|
395
403
|
var import_material5 = require("@mui/material");
|
|
396
404
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
397
405
|
var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
|
|
398
|
-
borderRadius: theme2.shape.borderRadius
|
|
406
|
+
borderRadius: theme2.shape.borderRadius,
|
|
407
|
+
".MuiChip-label": { padding: 0 },
|
|
408
|
+
".MuiChip-icon": { margin: "0 6px 0 0" }
|
|
399
409
|
}));
|
|
400
410
|
var ChipViews = {
|
|
401
411
|
black: "bg-accent-dark text-accent-white py-1.5 px-4",
|
|
402
412
|
line: "border border-solid border-accent-dark bg-accent-white",
|
|
403
413
|
white: "bg-accent-white text-accent-dark",
|
|
404
|
-
silver: "bg-accent-silver"
|
|
414
|
+
silver: "bg-accent-silver text-accent-dark "
|
|
405
415
|
};
|
|
406
416
|
var CustomChip = (props) => {
|
|
407
417
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
408
418
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
409
419
|
StyledChip,
|
|
410
420
|
__spreadValues({
|
|
411
|
-
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
421
|
+
className: `rounded-none w-fit h-fit px-2.5 py-0 text-14 ${ChipViews[view]}`
|
|
412
422
|
}, rest)
|
|
413
423
|
);
|
|
414
424
|
};
|
|
@@ -557,10 +567,14 @@ var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
|
|
|
557
567
|
},
|
|
558
568
|
"& input[type=number]": {
|
|
559
569
|
MozAppearance: "textfield"
|
|
570
|
+
},
|
|
571
|
+
input: {
|
|
572
|
+
padding: "0",
|
|
573
|
+
height: "auto"
|
|
560
574
|
}
|
|
561
575
|
}));
|
|
562
576
|
var CustomInput = (props) => {
|
|
563
|
-
const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
|
|
577
|
+
const _a = props, { type, adornmentText, value, big } = _a, rest = __objRest(_a, ["type", "adornmentText", "value", "big"]);
|
|
564
578
|
const handleKeyDown = (event) => {
|
|
565
579
|
if (type === "number" && !/[0-9]/.test(event.key) && event.key !== "Backspace") {
|
|
566
580
|
event.preventDefault();
|
|
@@ -576,7 +590,7 @@ var CustomInput = (props) => {
|
|
|
576
590
|
value,
|
|
577
591
|
componentsProps: {
|
|
578
592
|
root: {
|
|
579
|
-
className: "border border-black rounded-none border-solid py-1.5 px-2.5 h-8"
|
|
593
|
+
className: big ? "border-0 border-b border-accent-dark border-solid px-[30px] py-[19px] text-16 text-accent-dark" : "border border-black rounded-none border-solid py-1.5 px-2.5 h-8"
|
|
580
594
|
}
|
|
581
595
|
},
|
|
582
596
|
type: type || "string"
|
|
@@ -639,6 +653,7 @@ var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
|
|
|
639
653
|
var import_stylis = require("stylis");
|
|
640
654
|
|
|
641
655
|
// src/styles/assets.ts
|
|
656
|
+
var CONTAINER_WIDTH = "lg";
|
|
642
657
|
var WINDOW_SIZE = {
|
|
643
658
|
xs: 0,
|
|
644
659
|
sm: 400,
|
|
@@ -740,36 +755,22 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
|
740
755
|
var AppBar = ({ links }) => {
|
|
741
756
|
const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
|
|
742
757
|
const navItemsRef = (0, import_react6.useRef)([]);
|
|
743
|
-
(0, import_react6.useEffect)(() => {
|
|
744
|
-
const indicator = document.querySelector(".nav-indicator");
|
|
745
|
-
const navItem = navItemsRef.current[activeIndex];
|
|
746
|
-
const navItemWidth = navItem.offsetWidth;
|
|
747
|
-
const navItemLeft = navItem.offsetLeft + navItemWidth / 2 - indicator.offsetWidth / 2;
|
|
748
|
-
const navItemTop = navItem.offsetTop - 5;
|
|
749
|
-
indicator == null ? void 0 : indicator.setAttribute(
|
|
750
|
-
"style",
|
|
751
|
-
`transform: translate(${navItemLeft}px, ${navItemTop}px);`
|
|
752
|
-
);
|
|
753
|
-
}, [activeIndex]);
|
|
754
758
|
const handleClick = (index) => {
|
|
755
759
|
setActiveIndex(index);
|
|
756
760
|
};
|
|
757
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
ref: (el) => {
|
|
763
|
-
navItemsRef.current[index] = el;
|
|
764
|
-
},
|
|
765
|
-
href: link.path,
|
|
766
|
-
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
767
|
-
onClick: () => handleClick(index),
|
|
768
|
-
children: link.title
|
|
761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_material12.Stack, { direction: "row", spacing: 1, position: "relative", children: links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
762
|
+
import_link.default,
|
|
763
|
+
{
|
|
764
|
+
ref: (el) => {
|
|
765
|
+
navItemsRef.current[index] = el;
|
|
769
766
|
},
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
767
|
+
href: link.path,
|
|
768
|
+
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
769
|
+
onClick: () => handleClick(index),
|
|
770
|
+
children: link.title
|
|
771
|
+
},
|
|
772
|
+
index
|
|
773
|
+
)) });
|
|
773
774
|
};
|
|
774
775
|
var AppBar_default = AppBar;
|
|
775
776
|
|
|
@@ -786,20 +787,28 @@ var ImageContainer = (props) => {
|
|
|
786
787
|
contentful = true,
|
|
787
788
|
priority = false,
|
|
788
789
|
loading = "lazy",
|
|
789
|
-
objectFit = "object-cover"
|
|
790
|
+
objectFit = "object-cover",
|
|
791
|
+
classesWrapper,
|
|
792
|
+
classesImg
|
|
790
793
|
} = props;
|
|
791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
792
|
-
|
|
794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
795
|
+
import_material13.Box,
|
|
793
796
|
{
|
|
794
|
-
className:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
797
|
+
className: `relative ${width} ${height}${classesWrapper ? " " + classesWrapper : ""}`,
|
|
798
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
799
|
+
import_image.default,
|
|
800
|
+
{
|
|
801
|
+
className: `${objectFit} object-center${classesImg ? " " + classesImg : ""}`,
|
|
802
|
+
src: contentful ? `https:${src}` : src,
|
|
803
|
+
alt,
|
|
804
|
+
fill: true,
|
|
805
|
+
loading,
|
|
806
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
|
|
807
|
+
priority
|
|
808
|
+
}
|
|
809
|
+
)
|
|
801
810
|
}
|
|
802
|
-
)
|
|
811
|
+
);
|
|
803
812
|
};
|
|
804
813
|
var ImageContainer_default = ImageContainer;
|
|
805
814
|
|
|
@@ -843,37 +852,43 @@ var import_material15 = require("@mui/material");
|
|
|
843
852
|
var import_Typography5 = __toESM(require("@mui/material/Typography"));
|
|
844
853
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
845
854
|
var ArticleCard = (props) => {
|
|
846
|
-
const {
|
|
847
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
855
|
+
const { imageUrl = NO_IMAGE, classes, title, text, href } = props;
|
|
856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
857
|
+
import_link3.default,
|
|
858
|
+
{
|
|
859
|
+
href,
|
|
860
|
+
className: `group/card bg-gray-light${classes ? " " + classes : ""}`,
|
|
861
|
+
children: [
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
863
|
+
ImageContainer_default,
|
|
864
|
+
{
|
|
865
|
+
src: imageUrl,
|
|
866
|
+
alt: "test",
|
|
867
|
+
contentful: false,
|
|
868
|
+
height: "h-[220px]"
|
|
869
|
+
}
|
|
870
|
+
),
|
|
871
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
873
|
+
import_Typography5.default,
|
|
874
|
+
{
|
|
875
|
+
component: "span",
|
|
876
|
+
className: "text-16 font-extrabold group-hover/card:text-gold2 trim-2",
|
|
877
|
+
children: title
|
|
878
|
+
}
|
|
879
|
+
),
|
|
880
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
881
|
+
import_Typography5.default,
|
|
882
|
+
{
|
|
883
|
+
component: "span",
|
|
884
|
+
className: "text-gray group-hover/card:text-gold2 trim-4",
|
|
885
|
+
children: text
|
|
886
|
+
}
|
|
887
|
+
)
|
|
888
|
+
] })
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
);
|
|
877
892
|
};
|
|
878
893
|
var ArticleCard_default = ArticleCard;
|
|
879
894
|
|
|
@@ -894,14 +909,18 @@ var RealtorCard_default = RealtorCard;
|
|
|
894
909
|
// src/components/Card/RealtyCard.tsx
|
|
895
910
|
var import_material16 = require("@mui/material");
|
|
896
911
|
var import_link4 = __toESM(require("next/link"));
|
|
912
|
+
|
|
913
|
+
// src/icons/metro.svg
|
|
914
|
+
var React5 = __toESM(require("react"));
|
|
897
915
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
916
|
+
var SvgMetro = (props) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", __spreadProps(__spreadValues({ width: 12, height: 10, viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("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" }) }));
|
|
917
|
+
var metro_default = SvgMetro;
|
|
918
|
+
|
|
919
|
+
// src/components/Card/RealtyCard.tsx
|
|
920
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
898
921
|
var RealtyCard = () => {
|
|
899
|
-
return /* @__PURE__ */ (0,
|
|
900
|
-
/* @__PURE__ */ (0,
|
|
901
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "white", label: "id: 00154" }),
|
|
902
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })
|
|
903
|
-
] }),
|
|
904
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_link4.default, { href: "/", className: "relative", children: [
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
905
924
|
ImageContainer_default,
|
|
906
925
|
{
|
|
907
926
|
src: "/images/test.png",
|
|
@@ -910,24 +929,20 @@ var RealtyCard = () => {
|
|
|
910
929
|
contentful: false
|
|
911
930
|
}
|
|
912
931
|
),
|
|
913
|
-
/* @__PURE__ */ (0,
|
|
914
|
-
/* @__PURE__ */ (0,
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
928
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
929
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
930
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
932
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
933
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Typography, { component: "span", className: "text-14", children: [
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material16.Typography, { component: "span", className: "font-extrabold", children: "120 000 \u20B4" }),
|
|
935
|
+
"/\u043C\u0456\u0441\u044F\u0446\u044C"
|
|
936
|
+
] }),
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material16.Typography, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
|
|
938
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "flex items-center gap-[10px]", children: [
|
|
939
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material16.Typography, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
|
|
940
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { icon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(metro_default, {}), view: "silver", label: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
|
|
941
|
+
] }),
|
|
942
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
943
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
944
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
945
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
931
946
|
] })
|
|
932
947
|
] })
|
|
933
948
|
] });
|
|
@@ -936,12 +951,12 @@ var RealtyCard_default = RealtyCard;
|
|
|
936
951
|
|
|
937
952
|
// src/components/Card/TeamPersonCard.tsx
|
|
938
953
|
var import_material17 = require("@mui/material");
|
|
939
|
-
var
|
|
954
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
940
955
|
var TeamPersonCard = (props) => {
|
|
941
956
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
942
|
-
return /* @__PURE__ */ (0,
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
944
|
-
/* @__PURE__ */ (0,
|
|
957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "group/card", children: [
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "relative h-[300px]", children: [
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Box, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
945
960
|
ImageContainer_default,
|
|
946
961
|
{
|
|
947
962
|
contentful: false,
|
|
@@ -950,10 +965,10 @@ var TeamPersonCard = (props) => {
|
|
|
950
965
|
objectFit: "object-contain"
|
|
951
966
|
}
|
|
952
967
|
) }),
|
|
953
|
-
/* @__PURE__ */ (0,
|
|
954
|
-
/* @__PURE__ */ (0,
|
|
955
|
-
/* @__PURE__ */ (0,
|
|
956
|
-
/* @__PURE__ */ (0,
|
|
968
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
|
|
969
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
970
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "mt-[4px]", children: name }),
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
957
972
|
import_material17.Typography,
|
|
958
973
|
{
|
|
959
974
|
component: "span",
|
|
@@ -963,9 +978,9 @@ var TeamPersonCard = (props) => {
|
|
|
963
978
|
)
|
|
964
979
|
] })
|
|
965
980
|
] }),
|
|
966
|
-
/* @__PURE__ */ (0,
|
|
967
|
-
/* @__PURE__ */ (0,
|
|
968
|
-
/* @__PURE__ */ (0,
|
|
981
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-gray", children: name })
|
|
969
984
|
] })
|
|
970
985
|
] });
|
|
971
986
|
};
|
|
@@ -975,7 +990,7 @@ var TeamPersonCard_default = TeamPersonCard;
|
|
|
975
990
|
var import_react7 = require("react");
|
|
976
991
|
var import_material18 = require("@mui/material");
|
|
977
992
|
var import_react_hook_form = require("react-hook-form");
|
|
978
|
-
var
|
|
993
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
979
994
|
var RenderInputAutocomplete = (_a) => {
|
|
980
995
|
var _b = _a, {
|
|
981
996
|
InputProps: InputProps2,
|
|
@@ -984,14 +999,14 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
984
999
|
"InputProps",
|
|
985
1000
|
"InputLabelProps"
|
|
986
1001
|
]);
|
|
987
|
-
return /* @__PURE__ */ (0,
|
|
1002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.Box, { ref: InputProps2.ref, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
988
1003
|
import_material18.Input,
|
|
989
1004
|
__spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
|
|
990
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
991
|
-
/* @__PURE__ */ (0,
|
|
1005
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_material18.Stack, { direction: "row", alignItems: "center", children: [
|
|
1006
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(search_default, {}) }),
|
|
992
1007
|
InputProps2.startAdornment
|
|
993
1008
|
] }),
|
|
994
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
1009
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {}),
|
|
995
1010
|
ref: InputProps2.ref,
|
|
996
1011
|
disableUnderline: true,
|
|
997
1012
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
@@ -1007,7 +1022,7 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
1007
1022
|
) });
|
|
1008
1023
|
};
|
|
1009
1024
|
var CustomPaperComponent = (props) => {
|
|
1010
|
-
return /* @__PURE__ */ (0,
|
|
1025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.Paper, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
|
|
1011
1026
|
"helllooo",
|
|
1012
1027
|
props.children
|
|
1013
1028
|
] }, "click-away-wrapper") }));
|
|
@@ -1025,7 +1040,7 @@ var Autocomplete = (props) => {
|
|
|
1025
1040
|
else setAnchorEl(event.currentTarget);
|
|
1026
1041
|
setOpen(!open);
|
|
1027
1042
|
};
|
|
1028
|
-
return /* @__PURE__ */ (0,
|
|
1043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1029
1044
|
import_material18.Autocomplete,
|
|
1030
1045
|
{
|
|
1031
1046
|
multiple: true,
|
|
@@ -1041,12 +1056,12 @@ var Autocomplete = (props) => {
|
|
|
1041
1056
|
PaperComponent: CustomPaperComponent,
|
|
1042
1057
|
renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
1043
1058
|
const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
|
|
1044
|
-
return /* @__PURE__ */ (0,
|
|
1059
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1045
1060
|
import_material18.Chip,
|
|
1046
1061
|
__spreadProps(__spreadValues({
|
|
1047
1062
|
label: option
|
|
1048
1063
|
}, tagProps), {
|
|
1049
|
-
deleteIcon: /* @__PURE__ */ (0,
|
|
1064
|
+
deleteIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(IconButton_default, { className: "rounded-none bg-accent-silver p-1", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(close_default, {}) }),
|
|
1050
1065
|
className: "rounded-none w-fit h-fit bg-transparent p-0"
|
|
1051
1066
|
}),
|
|
1052
1067
|
key
|
|
@@ -1055,10 +1070,10 @@ var Autocomplete = (props) => {
|
|
|
1055
1070
|
slotProps: {
|
|
1056
1071
|
paper: {
|
|
1057
1072
|
sx: {},
|
|
1058
|
-
className: `
|
|
1073
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`
|
|
1059
1074
|
}
|
|
1060
1075
|
},
|
|
1061
|
-
renderInput: (params) => /* @__PURE__ */ (0,
|
|
1076
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1062
1077
|
RenderInputAutocomplete,
|
|
1063
1078
|
__spreadValues({}, params)
|
|
1064
1079
|
)
|
|
@@ -1077,11 +1092,11 @@ var thousandFormatter = (num) => {
|
|
|
1077
1092
|
var thousandFormatter_default = thousandFormatter;
|
|
1078
1093
|
|
|
1079
1094
|
// src/components/BigNumber/BigNumber.tsx
|
|
1080
|
-
var
|
|
1095
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1081
1096
|
var BigNumber = (props) => {
|
|
1082
|
-
const {
|
|
1083
|
-
return /* @__PURE__ */ (0,
|
|
1084
|
-
/* @__PURE__ */ (0,
|
|
1097
|
+
const { text, number } = props;
|
|
1098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material19.Box, { className: "flex flex-col", children: [
|
|
1099
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1085
1100
|
import_material19.Typography,
|
|
1086
1101
|
{
|
|
1087
1102
|
component: "span",
|
|
@@ -1089,10 +1104,103 @@ var BigNumber = (props) => {
|
|
|
1089
1104
|
children: thousandFormatter_default(number)
|
|
1090
1105
|
}
|
|
1091
1106
|
),
|
|
1092
|
-
/* @__PURE__ */ (0,
|
|
1093
|
-
] }
|
|
1107
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material19.Typography, { component: "span", className: "text-base text-gray mt-[-20px]", children: text })
|
|
1108
|
+
] });
|
|
1094
1109
|
};
|
|
1095
1110
|
var BigNumber_default = BigNumber;
|
|
1111
|
+
|
|
1112
|
+
// src/blocks/TextBlock.tsx
|
|
1113
|
+
var import_material20 = require("@mui/material");
|
|
1114
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1115
|
+
var TextBlock = ({ classes, text, title }) => {
|
|
1116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Box, { className: `mt-[80px]${classes ? " " + classes : ""}`, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Container, { maxWidth: CONTAINER_WIDTH, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_material20.Box, { className: "flex flex-col items-center gap-[16px] text-center max-w-[950px] w-full mx-auto", children: [
|
|
1117
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Typography, { component: "span", className: "text-32", children: title }),
|
|
1118
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Typography, { component: "span", className: "text-gray text-14", children: text })
|
|
1119
|
+
] }) }) });
|
|
1120
|
+
};
|
|
1121
|
+
var TextBlock_default = TextBlock;
|
|
1122
|
+
|
|
1123
|
+
// src/blocks/TitleBlock.tsx
|
|
1124
|
+
var import_Typography6 = __toESM(require("@mui/material/Typography"));
|
|
1125
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1126
|
+
var TitleBlock = ({ titlePosition, title, classes }) => {
|
|
1127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1128
|
+
import_Typography6.default,
|
|
1129
|
+
{
|
|
1130
|
+
component: "span",
|
|
1131
|
+
className: `text-32 uppercase font-extrabold text-${titlePosition} block${classes ? " " + classes : ""}`,
|
|
1132
|
+
children: title
|
|
1133
|
+
}
|
|
1134
|
+
);
|
|
1135
|
+
};
|
|
1136
|
+
var TitleBlock_default = TitleBlock;
|
|
1137
|
+
|
|
1138
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1139
|
+
var import_material21 = require("@mui/material");
|
|
1140
|
+
|
|
1141
|
+
// src/icons/qoutes.svg
|
|
1142
|
+
var React6 = __toESM(require("react"));
|
|
1143
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1144
|
+
|
|
1145
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1146
|
+
var import_link5 = __toESM(require("next/link"));
|
|
1147
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1148
|
+
|
|
1149
|
+
// src/blocks/AnyLevelBlock.tsx
|
|
1150
|
+
var import_material22 = require("@mui/material");
|
|
1151
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1152
|
+
|
|
1153
|
+
// src/blocks/RichTextBlock.tsx
|
|
1154
|
+
var import_material23 = require("@mui/material");
|
|
1155
|
+
var import_rich_text_react_renderer = require("@contentful/rich-text-react-renderer");
|
|
1156
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1157
|
+
|
|
1158
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1159
|
+
var import_material24 = require("@mui/material");
|
|
1160
|
+
|
|
1161
|
+
// src/utils/formatDate.ts
|
|
1162
|
+
var import_date_fns = require("date-fns");
|
|
1163
|
+
|
|
1164
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1165
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1166
|
+
|
|
1167
|
+
// src/components/List/List.tsx
|
|
1168
|
+
var import_material25 = require("@mui/material");
|
|
1169
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1170
|
+
var List = (props) => {
|
|
1171
|
+
const { children } = props;
|
|
1172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.List, __spreadProps(__spreadValues({ disablePadding: true }, props), { children }));
|
|
1173
|
+
};
|
|
1174
|
+
var List_default = List;
|
|
1175
|
+
|
|
1176
|
+
// src/components/List/ListItem.tsx
|
|
1177
|
+
var import_material26 = require("@mui/material");
|
|
1178
|
+
var import_ListItemButton = __toESM(require("@mui/material/ListItemButton"));
|
|
1179
|
+
var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"));
|
|
1180
|
+
var import_ListItemText = __toESM(require("@mui/material/ListItemText"));
|
|
1181
|
+
var import_Typography7 = __toESM(require("@mui/material/Typography"));
|
|
1182
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1183
|
+
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_material26.ListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
1185
|
+
import_ListItemButton.default,
|
|
1186
|
+
{
|
|
1187
|
+
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1188
|
+
onClick: () => onClick && onClick(title),
|
|
1189
|
+
disableRipple: true,
|
|
1190
|
+
children: [
|
|
1191
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ListItemIcon.default, { sx: { minWidth: "24px" }, children: icon }) : null,
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ListItemText.default, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1193
|
+
import_Typography7.default,
|
|
1194
|
+
{
|
|
1195
|
+
className: `text-xs ${bold ? "font-extrabold" : "font-normal"}`,
|
|
1196
|
+
children: title
|
|
1197
|
+
}
|
|
1198
|
+
) })
|
|
1199
|
+
]
|
|
1200
|
+
}
|
|
1201
|
+
) });
|
|
1202
|
+
};
|
|
1203
|
+
var ListItem_default = ListItem;
|
|
1096
1204
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1097
1205
|
0 && (module.exports = {
|
|
1098
1206
|
AppBar,
|
|
@@ -1110,6 +1218,8 @@ var BigNumber_default = BigNumber;
|
|
|
1110
1218
|
ImageContainer,
|
|
1111
1219
|
Input,
|
|
1112
1220
|
JobCard,
|
|
1221
|
+
List,
|
|
1222
|
+
ListItem,
|
|
1113
1223
|
MapIcon,
|
|
1114
1224
|
MenuItem,
|
|
1115
1225
|
PhoneInput,
|
|
@@ -1123,5 +1233,7 @@ var BigNumber_default = BigNumber;
|
|
|
1123
1233
|
Slider,
|
|
1124
1234
|
Switch,
|
|
1125
1235
|
TeamPersonCard,
|
|
1126
|
-
Text
|
|
1236
|
+
Text,
|
|
1237
|
+
TextBlock,
|
|
1238
|
+
TitleBlock
|
|
1127
1239
|
});
|