mayak-common-library 0.0.32 → 0.0.34
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 +66 -7
- package/dist/index.d.ts +66 -7
- package/dist/index.js +354 -146
- package/dist/index.mjs +369 -161
- 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,10 @@ __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,
|
|
95
|
+
ToggleButton: () => ToggleButton_default
|
|
91
96
|
});
|
|
92
97
|
module.exports = __toCommonJS(src_exports);
|
|
93
98
|
|
|
@@ -113,7 +118,7 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
|
113
118
|
"&:hover": {
|
|
114
119
|
backgroundColor: "unset",
|
|
115
120
|
svg: {
|
|
116
|
-
filter: "brightness(0) saturate(100%) invert(
|
|
121
|
+
filter: "brightness(0) saturate(100%) invert(0%) sepia(95%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(105%)"
|
|
117
122
|
}
|
|
118
123
|
},
|
|
119
124
|
transition: "transform 0.1s ease-in-out",
|
|
@@ -124,15 +129,16 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
|
124
129
|
}
|
|
125
130
|
}));
|
|
126
131
|
var Button = (props) => {
|
|
127
|
-
const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
|
|
132
|
+
const _a = props, { children, base, bolt, border, medium, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "medium", "small", "large"]);
|
|
128
133
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
129
134
|
StyledButton,
|
|
130
135
|
__spreadProps(__spreadValues({}, rest), {
|
|
131
136
|
disableRipple: true,
|
|
132
137
|
className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
|
|
133
138
|
${small ? "py-1.5 px-4" : ""}
|
|
134
|
-
|
|
135
|
-
|
|
139
|
+
${medium ? "py-3.5 px-4" : ""}
|
|
140
|
+
${large ? "h-[38px] py-3.5 px-10" : ""}
|
|
141
|
+
${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
142
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
137
143
|
import_Typography.default,
|
|
138
144
|
{
|
|
@@ -250,7 +256,7 @@ var CustomSelect = (props) => {
|
|
|
250
256
|
id: uniqueId,
|
|
251
257
|
PaperProps: {
|
|
252
258
|
classes: {
|
|
253
|
-
root: `
|
|
259
|
+
root: `select ${open ? "select--open" : "select--close"}`
|
|
254
260
|
}
|
|
255
261
|
}
|
|
256
262
|
},
|
|
@@ -290,7 +296,9 @@ var SelectPro = ({
|
|
|
290
296
|
clickComponent,
|
|
291
297
|
fullContainerWidth = false,
|
|
292
298
|
overButton = false,
|
|
293
|
-
small = false
|
|
299
|
+
small = false,
|
|
300
|
+
fullWidth = false,
|
|
301
|
+
freeChildWidth = false
|
|
294
302
|
}) => {
|
|
295
303
|
const [btn, setAnchorEl] = (0, import_react2.useState)(null);
|
|
296
304
|
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
@@ -312,15 +320,11 @@ var SelectPro = ({
|
|
|
312
320
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
313
321
|
collapseParent: handleClose
|
|
314
322
|
}) : 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: [
|
|
323
|
+
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
324
|
clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
|
|
317
325
|
ref: btn,
|
|
318
|
-
onClick: handleClick
|
|
319
|
-
|
|
320
|
-
// clickComponent.props.onClick(e);
|
|
321
|
-
// // e.preventDefault();
|
|
322
|
-
// handleClick(e);
|
|
323
|
-
// },
|
|
326
|
+
onClick: handleClick,
|
|
327
|
+
collapse: open
|
|
324
328
|
}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
325
329
|
import_material4.Button,
|
|
326
330
|
{
|
|
@@ -332,7 +336,7 @@ var SelectPro = ({
|
|
|
332
336
|
disableRipple: true,
|
|
333
337
|
fullWidth: true,
|
|
334
338
|
sx: {
|
|
335
|
-
height: small ? "34px" : "
|
|
339
|
+
height: small ? "34px" : "38px",
|
|
336
340
|
padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
|
|
337
341
|
},
|
|
338
342
|
className: `border rounded-none border-solid normal-case text-accent-dark hover:bg-white ${open ? "!border-transparent bg-white" : ""} ${colorBorder ? "border-accent-beige flex-row-reverse justify-end gap-x-2" : "justify-between border-accent-dark"}`,
|
|
@@ -340,8 +344,9 @@ var SelectPro = ({
|
|
|
340
344
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
341
345
|
import_material4.Typography,
|
|
342
346
|
{
|
|
343
|
-
|
|
344
|
-
|
|
347
|
+
width: "200px",
|
|
348
|
+
className: "text-sm leading-4 truncate text-left",
|
|
349
|
+
children: placeholder
|
|
345
350
|
}
|
|
346
351
|
),
|
|
347
352
|
colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
@@ -361,13 +366,17 @@ var SelectPro = ({
|
|
|
361
366
|
{
|
|
362
367
|
sx: {
|
|
363
368
|
position: "absolute",
|
|
364
|
-
width:
|
|
369
|
+
// width: "min-content",
|
|
370
|
+
width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? (
|
|
371
|
+
// ? "fit-content" //(btn as HTMLButtonElement).offsetWidth
|
|
372
|
+
btn.offsetWidth
|
|
373
|
+
) : "100%",
|
|
365
374
|
left: fullContainerWidth ? 0 : "initial",
|
|
366
375
|
right: fullContainerWidth ? 0 : "initial",
|
|
367
376
|
top: overButton ? 0 : "initial"
|
|
368
377
|
},
|
|
369
|
-
className: `
|
|
370
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col
|
|
378
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`,
|
|
379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2`, children: [
|
|
371
380
|
overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
372
381
|
IconButton_default,
|
|
373
382
|
{
|
|
@@ -395,20 +404,22 @@ var SelectPro_default = SelectPro;
|
|
|
395
404
|
var import_material5 = require("@mui/material");
|
|
396
405
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
397
406
|
var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
|
|
398
|
-
borderRadius: theme2.shape.borderRadius
|
|
407
|
+
borderRadius: theme2.shape.borderRadius,
|
|
408
|
+
".MuiChip-label": { padding: 0 },
|
|
409
|
+
".MuiChip-icon": { margin: "0 6px 0 0" }
|
|
399
410
|
}));
|
|
400
411
|
var ChipViews = {
|
|
401
412
|
black: "bg-accent-dark text-accent-white py-1.5 px-4",
|
|
402
413
|
line: "border border-solid border-accent-dark bg-accent-white",
|
|
403
414
|
white: "bg-accent-white text-accent-dark",
|
|
404
|
-
silver: "bg-accent-silver"
|
|
415
|
+
silver: "bg-accent-silver text-accent-dark "
|
|
405
416
|
};
|
|
406
417
|
var CustomChip = (props) => {
|
|
407
418
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
408
419
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
409
420
|
StyledChip,
|
|
410
421
|
__spreadValues({
|
|
411
|
-
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
422
|
+
className: `rounded-none w-fit h-fit px-2.5 py-0 text-14 ${ChipViews[view]}`
|
|
412
423
|
}, rest)
|
|
413
424
|
);
|
|
414
425
|
};
|
|
@@ -557,10 +568,14 @@ var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
|
|
|
557
568
|
},
|
|
558
569
|
"& input[type=number]": {
|
|
559
570
|
MozAppearance: "textfield"
|
|
571
|
+
},
|
|
572
|
+
input: {
|
|
573
|
+
padding: "0",
|
|
574
|
+
height: "auto"
|
|
560
575
|
}
|
|
561
576
|
}));
|
|
562
577
|
var CustomInput = (props) => {
|
|
563
|
-
const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
|
|
578
|
+
const _a = props, { type, adornmentText, value, big } = _a, rest = __objRest(_a, ["type", "adornmentText", "value", "big"]);
|
|
564
579
|
const handleKeyDown = (event) => {
|
|
565
580
|
if (type === "number" && !/[0-9]/.test(event.key) && event.key !== "Backspace") {
|
|
566
581
|
event.preventDefault();
|
|
@@ -576,7 +591,7 @@ var CustomInput = (props) => {
|
|
|
576
591
|
value,
|
|
577
592
|
componentsProps: {
|
|
578
593
|
root: {
|
|
579
|
-
className: "border border-black rounded-none border-solid py-1.5 px-2.5 h-8"
|
|
594
|
+
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
595
|
}
|
|
581
596
|
},
|
|
582
597
|
type: type || "string"
|
|
@@ -639,6 +654,7 @@ var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
|
|
|
639
654
|
var import_stylis = require("stylis");
|
|
640
655
|
|
|
641
656
|
// src/styles/assets.ts
|
|
657
|
+
var CONTAINER_WIDTH = "lg";
|
|
642
658
|
var WINDOW_SIZE = {
|
|
643
659
|
xs: 0,
|
|
644
660
|
sm: 400,
|
|
@@ -740,36 +756,22 @@ var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
|
740
756
|
var AppBar = ({ links }) => {
|
|
741
757
|
const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
|
|
742
758
|
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
759
|
const handleClick = (index) => {
|
|
755
760
|
setActiveIndex(index);
|
|
756
761
|
};
|
|
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
|
|
762
|
+
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)(
|
|
763
|
+
import_link.default,
|
|
764
|
+
{
|
|
765
|
+
ref: (el) => {
|
|
766
|
+
navItemsRef.current[index] = el;
|
|
769
767
|
},
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
768
|
+
href: link.path,
|
|
769
|
+
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
770
|
+
onClick: () => handleClick(index),
|
|
771
|
+
children: link.title
|
|
772
|
+
},
|
|
773
|
+
index
|
|
774
|
+
)) });
|
|
773
775
|
};
|
|
774
776
|
var AppBar_default = AppBar;
|
|
775
777
|
|
|
@@ -786,20 +788,28 @@ var ImageContainer = (props) => {
|
|
|
786
788
|
contentful = true,
|
|
787
789
|
priority = false,
|
|
788
790
|
loading = "lazy",
|
|
789
|
-
objectFit = "object-cover"
|
|
791
|
+
objectFit = "object-cover",
|
|
792
|
+
classesWrapper,
|
|
793
|
+
classesImg
|
|
790
794
|
} = props;
|
|
791
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
792
|
-
|
|
795
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
796
|
+
import_material13.Box,
|
|
793
797
|
{
|
|
794
|
-
className:
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
className: `relative ${width} ${height}${classesWrapper ? " " + classesWrapper : ""}`,
|
|
799
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
800
|
+
import_image.default,
|
|
801
|
+
{
|
|
802
|
+
className: `${objectFit} object-center${classesImg ? " " + classesImg : ""}`,
|
|
803
|
+
src: contentful ? `https:${src}` : src,
|
|
804
|
+
alt,
|
|
805
|
+
fill: true,
|
|
806
|
+
loading,
|
|
807
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
|
|
808
|
+
priority
|
|
809
|
+
}
|
|
810
|
+
)
|
|
801
811
|
}
|
|
802
|
-
)
|
|
812
|
+
);
|
|
803
813
|
};
|
|
804
814
|
var ImageContainer_default = ImageContainer;
|
|
805
815
|
|
|
@@ -843,37 +853,43 @@ var import_material15 = require("@mui/material");
|
|
|
843
853
|
var import_Typography5 = __toESM(require("@mui/material/Typography"));
|
|
844
854
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
845
855
|
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
|
-
|
|
856
|
+
const { imageUrl = NO_IMAGE, classes, title, text, href } = props;
|
|
857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
858
|
+
import_link3.default,
|
|
859
|
+
{
|
|
860
|
+
href,
|
|
861
|
+
className: `group/card bg-gray-light${classes ? " " + classes : ""}`,
|
|
862
|
+
children: [
|
|
863
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
864
|
+
ImageContainer_default,
|
|
865
|
+
{
|
|
866
|
+
src: imageUrl,
|
|
867
|
+
alt: "test",
|
|
868
|
+
contentful: false,
|
|
869
|
+
height: "h-[220px]"
|
|
870
|
+
}
|
|
871
|
+
),
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
873
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
874
|
+
import_Typography5.default,
|
|
875
|
+
{
|
|
876
|
+
component: "span",
|
|
877
|
+
className: "text-16 font-extrabold group-hover/card:text-gold2 trim-2",
|
|
878
|
+
children: title
|
|
879
|
+
}
|
|
880
|
+
),
|
|
881
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
882
|
+
import_Typography5.default,
|
|
883
|
+
{
|
|
884
|
+
component: "span",
|
|
885
|
+
className: "text-gray group-hover/card:text-gold2 trim-4",
|
|
886
|
+
children: text
|
|
887
|
+
}
|
|
888
|
+
)
|
|
889
|
+
] })
|
|
890
|
+
]
|
|
891
|
+
}
|
|
892
|
+
);
|
|
877
893
|
};
|
|
878
894
|
var ArticleCard_default = ArticleCard;
|
|
879
895
|
|
|
@@ -894,14 +910,18 @@ var RealtorCard_default = RealtorCard;
|
|
|
894
910
|
// src/components/Card/RealtyCard.tsx
|
|
895
911
|
var import_material16 = require("@mui/material");
|
|
896
912
|
var import_link4 = __toESM(require("next/link"));
|
|
913
|
+
|
|
914
|
+
// src/icons/metro.svg
|
|
915
|
+
var React5 = __toESM(require("react"));
|
|
897
916
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
917
|
+
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" }) }));
|
|
918
|
+
var metro_default = SvgMetro;
|
|
919
|
+
|
|
920
|
+
// src/components/Card/RealtyCard.tsx
|
|
921
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
898
922
|
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)(
|
|
923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_link4.default, { href: "/", className: "relative", children: [
|
|
924
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
905
925
|
ImageContainer_default,
|
|
906
926
|
{
|
|
907
927
|
src: "/images/test.png",
|
|
@@ -910,24 +930,20 @@ var RealtyCard = () => {
|
|
|
910
930
|
contentful: false
|
|
911
931
|
}
|
|
912
932
|
),
|
|
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" })
|
|
933
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Typography, { component: "span", className: "text-14", children: [
|
|
935
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material16.Typography, { component: "span", className: "font-extrabold", children: "120 000 \u20B4" }),
|
|
936
|
+
"/\u043C\u0456\u0441\u044F\u0446\u044C"
|
|
937
|
+
] }),
|
|
938
|
+
/* @__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" }),
|
|
939
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "flex items-center gap-[10px]", children: [
|
|
940
|
+
/* @__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" }),
|
|
941
|
+
/* @__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" })
|
|
942
|
+
] }),
|
|
943
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
944
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
945
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
946
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
931
947
|
] })
|
|
932
948
|
] })
|
|
933
949
|
] });
|
|
@@ -936,12 +952,12 @@ var RealtyCard_default = RealtyCard;
|
|
|
936
952
|
|
|
937
953
|
// src/components/Card/TeamPersonCard.tsx
|
|
938
954
|
var import_material17 = require("@mui/material");
|
|
939
|
-
var
|
|
955
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
940
956
|
var TeamPersonCard = (props) => {
|
|
941
957
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
942
|
-
return /* @__PURE__ */ (0,
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
944
|
-
/* @__PURE__ */ (0,
|
|
958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "group/card", children: [
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "relative h-[300px]", children: [
|
|
960
|
+
/* @__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
961
|
ImageContainer_default,
|
|
946
962
|
{
|
|
947
963
|
contentful: false,
|
|
@@ -950,10 +966,10 @@ var TeamPersonCard = (props) => {
|
|
|
950
966
|
objectFit: "object-contain"
|
|
951
967
|
}
|
|
952
968
|
) }),
|
|
953
|
-
/* @__PURE__ */ (0,
|
|
954
|
-
/* @__PURE__ */ (0,
|
|
955
|
-
/* @__PURE__ */ (0,
|
|
956
|
-
/* @__PURE__ */ (0,
|
|
969
|
+
/* @__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: [
|
|
970
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "mt-[4px]", children: name }),
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
957
973
|
import_material17.Typography,
|
|
958
974
|
{
|
|
959
975
|
component: "span",
|
|
@@ -963,9 +979,9 @@ var TeamPersonCard = (props) => {
|
|
|
963
979
|
)
|
|
964
980
|
] })
|
|
965
981
|
] }),
|
|
966
|
-
/* @__PURE__ */ (0,
|
|
967
|
-
/* @__PURE__ */ (0,
|
|
968
|
-
/* @__PURE__ */ (0,
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
984
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_material17.Typography, { component: "span", className: "text-gray", children: name })
|
|
969
985
|
] })
|
|
970
986
|
] });
|
|
971
987
|
};
|
|
@@ -975,7 +991,7 @@ var TeamPersonCard_default = TeamPersonCard;
|
|
|
975
991
|
var import_react7 = require("react");
|
|
976
992
|
var import_material18 = require("@mui/material");
|
|
977
993
|
var import_react_hook_form = require("react-hook-form");
|
|
978
|
-
var
|
|
994
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
979
995
|
var RenderInputAutocomplete = (_a) => {
|
|
980
996
|
var _b = _a, {
|
|
981
997
|
InputProps: InputProps2,
|
|
@@ -984,14 +1000,14 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
984
1000
|
"InputProps",
|
|
985
1001
|
"InputLabelProps"
|
|
986
1002
|
]);
|
|
987
|
-
return /* @__PURE__ */ (0,
|
|
1003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.Box, { ref: InputProps2.ref, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
988
1004
|
import_material18.Input,
|
|
989
1005
|
__spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
|
|
990
|
-
startAdornment: /* @__PURE__ */ (0,
|
|
991
|
-
/* @__PURE__ */ (0,
|
|
1006
|
+
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_material18.Stack, { direction: "row", alignItems: "center", children: [
|
|
1007
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(search_default, {}) }),
|
|
992
1008
|
InputProps2.startAdornment
|
|
993
1009
|
] }),
|
|
994
|
-
endAdornment: /* @__PURE__ */ (0,
|
|
1010
|
+
endAdornment: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {}),
|
|
995
1011
|
ref: InputProps2.ref,
|
|
996
1012
|
disableUnderline: true,
|
|
997
1013
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
@@ -1007,7 +1023,7 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
1007
1023
|
) });
|
|
1008
1024
|
};
|
|
1009
1025
|
var CustomPaperComponent = (props) => {
|
|
1010
|
-
return /* @__PURE__ */ (0,
|
|
1026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_material18.Paper, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
|
|
1011
1027
|
"helllooo",
|
|
1012
1028
|
props.children
|
|
1013
1029
|
] }, "click-away-wrapper") }));
|
|
@@ -1025,7 +1041,7 @@ var Autocomplete = (props) => {
|
|
|
1025
1041
|
else setAnchorEl(event.currentTarget);
|
|
1026
1042
|
setOpen(!open);
|
|
1027
1043
|
};
|
|
1028
|
-
return /* @__PURE__ */ (0,
|
|
1044
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1029
1045
|
import_material18.Autocomplete,
|
|
1030
1046
|
{
|
|
1031
1047
|
multiple: true,
|
|
@@ -1041,12 +1057,12 @@ var Autocomplete = (props) => {
|
|
|
1041
1057
|
PaperComponent: CustomPaperComponent,
|
|
1042
1058
|
renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
1043
1059
|
const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
|
|
1044
|
-
return /* @__PURE__ */ (0,
|
|
1060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1045
1061
|
import_material18.Chip,
|
|
1046
1062
|
__spreadProps(__spreadValues({
|
|
1047
1063
|
label: option
|
|
1048
1064
|
}, tagProps), {
|
|
1049
|
-
deleteIcon: /* @__PURE__ */ (0,
|
|
1065
|
+
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
1066
|
className: "rounded-none w-fit h-fit bg-transparent p-0"
|
|
1051
1067
|
}),
|
|
1052
1068
|
key
|
|
@@ -1055,10 +1071,10 @@ var Autocomplete = (props) => {
|
|
|
1055
1071
|
slotProps: {
|
|
1056
1072
|
paper: {
|
|
1057
1073
|
sx: {},
|
|
1058
|
-
className: `
|
|
1074
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`
|
|
1059
1075
|
}
|
|
1060
1076
|
},
|
|
1061
|
-
renderInput: (params) => /* @__PURE__ */ (0,
|
|
1077
|
+
renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1062
1078
|
RenderInputAutocomplete,
|
|
1063
1079
|
__spreadValues({}, params)
|
|
1064
1080
|
)
|
|
@@ -1077,11 +1093,11 @@ var thousandFormatter = (num) => {
|
|
|
1077
1093
|
var thousandFormatter_default = thousandFormatter;
|
|
1078
1094
|
|
|
1079
1095
|
// src/components/BigNumber/BigNumber.tsx
|
|
1080
|
-
var
|
|
1096
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1081
1097
|
var BigNumber = (props) => {
|
|
1082
|
-
const {
|
|
1083
|
-
return /* @__PURE__ */ (0,
|
|
1084
|
-
/* @__PURE__ */ (0,
|
|
1098
|
+
const { text, number } = props;
|
|
1099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_material19.Box, { className: "flex flex-col", children: [
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1085
1101
|
import_material19.Typography,
|
|
1086
1102
|
{
|
|
1087
1103
|
component: "span",
|
|
@@ -1089,10 +1105,197 @@ var BigNumber = (props) => {
|
|
|
1089
1105
|
children: thousandFormatter_default(number)
|
|
1090
1106
|
}
|
|
1091
1107
|
),
|
|
1092
|
-
/* @__PURE__ */ (0,
|
|
1093
|
-
] }
|
|
1108
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_material19.Typography, { component: "span", className: "text-base text-gray mt-[-20px]", children: text })
|
|
1109
|
+
] });
|
|
1094
1110
|
};
|
|
1095
1111
|
var BigNumber_default = BigNumber;
|
|
1112
|
+
|
|
1113
|
+
// src/blocks/TextBlock.tsx
|
|
1114
|
+
var import_material20 = require("@mui/material");
|
|
1115
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1116
|
+
var TextBlock = ({ classes, text, title }) => {
|
|
1117
|
+
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: [
|
|
1118
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Typography, { component: "span", className: "text-32", children: title }),
|
|
1119
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material20.Typography, { component: "span", className: "text-gray text-14", children: text })
|
|
1120
|
+
] }) }) });
|
|
1121
|
+
};
|
|
1122
|
+
var TextBlock_default = TextBlock;
|
|
1123
|
+
|
|
1124
|
+
// src/blocks/TitleBlock.tsx
|
|
1125
|
+
var import_Typography6 = __toESM(require("@mui/material/Typography"));
|
|
1126
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1127
|
+
var TitleBlock = ({ titlePosition, title, classes }) => {
|
|
1128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1129
|
+
import_Typography6.default,
|
|
1130
|
+
{
|
|
1131
|
+
component: "span",
|
|
1132
|
+
className: `text-32 uppercase font-extrabold text-${titlePosition} block${classes ? " " + classes : ""}`,
|
|
1133
|
+
children: title
|
|
1134
|
+
}
|
|
1135
|
+
);
|
|
1136
|
+
};
|
|
1137
|
+
var TitleBlock_default = TitleBlock;
|
|
1138
|
+
|
|
1139
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1140
|
+
var import_material21 = require("@mui/material");
|
|
1141
|
+
|
|
1142
|
+
// src/icons/qoutes.svg
|
|
1143
|
+
var React6 = __toESM(require("react"));
|
|
1144
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1145
|
+
|
|
1146
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1147
|
+
var import_link5 = __toESM(require("next/link"));
|
|
1148
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1149
|
+
|
|
1150
|
+
// src/blocks/AnyLevelBlock.tsx
|
|
1151
|
+
var import_material22 = require("@mui/material");
|
|
1152
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
1153
|
+
|
|
1154
|
+
// src/blocks/RichTextBlock.tsx
|
|
1155
|
+
var import_material23 = require("@mui/material");
|
|
1156
|
+
var import_rich_text_react_renderer = require("@contentful/rich-text-react-renderer");
|
|
1157
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
1158
|
+
|
|
1159
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1160
|
+
var import_material24 = require("@mui/material");
|
|
1161
|
+
|
|
1162
|
+
// src/utils/formatDate.ts
|
|
1163
|
+
var import_date_fns = require("date-fns");
|
|
1164
|
+
|
|
1165
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1166
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
1167
|
+
|
|
1168
|
+
// src/components/List/List.tsx
|
|
1169
|
+
var import_material25 = require("@mui/material");
|
|
1170
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
1171
|
+
var List = (props) => {
|
|
1172
|
+
const { children } = props;
|
|
1173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_material25.List, __spreadProps(__spreadValues({ disablePadding: true }, props), { children }));
|
|
1174
|
+
};
|
|
1175
|
+
var List_default = List;
|
|
1176
|
+
|
|
1177
|
+
// src/components/List/ListItem.tsx
|
|
1178
|
+
var import_material26 = require("@mui/material");
|
|
1179
|
+
var import_ListItemButton = __toESM(require("@mui/material/ListItemButton"));
|
|
1180
|
+
var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"));
|
|
1181
|
+
var import_ListItemText = __toESM(require("@mui/material/ListItemText"));
|
|
1182
|
+
var import_Typography7 = __toESM(require("@mui/material/Typography"));
|
|
1183
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
1184
|
+
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_material26.ListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
1186
|
+
import_ListItemButton.default,
|
|
1187
|
+
{
|
|
1188
|
+
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1189
|
+
onClick: () => onClick && onClick(title),
|
|
1190
|
+
disableRipple: true,
|
|
1191
|
+
children: [
|
|
1192
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ListItemIcon.default, { sx: { minWidth: "24px" }, children: icon }) : null,
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_ListItemText.default, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
1194
|
+
import_Typography7.default,
|
|
1195
|
+
{
|
|
1196
|
+
className: `text-xs ${bold ? "font-extrabold" : "font-normal"}`,
|
|
1197
|
+
children: title
|
|
1198
|
+
}
|
|
1199
|
+
) })
|
|
1200
|
+
]
|
|
1201
|
+
}
|
|
1202
|
+
) });
|
|
1203
|
+
};
|
|
1204
|
+
var ListItem_default = ListItem;
|
|
1205
|
+
|
|
1206
|
+
// src/components/ToggleButton/ToggleButton.tsx
|
|
1207
|
+
var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"));
|
|
1208
|
+
var import_material27 = require("@mui/material");
|
|
1209
|
+
var import_react_hook_form2 = require("react-hook-form");
|
|
1210
|
+
var import_Typography8 = __toESM(require("@mui/material/Typography"));
|
|
1211
|
+
var import_ToggleButtonGroup = __toESM(require("@mui/material/ToggleButtonGroup"));
|
|
1212
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1213
|
+
var StyledToggleButtonGroup = (0, import_material27.styled)(
|
|
1214
|
+
import_ToggleButtonGroup.default
|
|
1215
|
+
)(({ theme: theme2, flexDirection }) => ({
|
|
1216
|
+
[`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.grouped}`]: {
|
|
1217
|
+
// marginRight: theme.spacing(1.3),
|
|
1218
|
+
marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
|
|
1219
|
+
marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
|
|
1220
|
+
// marginBottom: theme.spacing(1.3),
|
|
1221
|
+
// spacing: theme.spacing(1.3),
|
|
1222
|
+
width: "fit-content"
|
|
1223
|
+
// border: 0,
|
|
1224
|
+
// borderRadius: theme.shape.borderRadius,
|
|
1225
|
+
// [`&.${toggleButtonGroupClasses.disabled}`]: {
|
|
1226
|
+
// border: 0,
|
|
1227
|
+
// },
|
|
1228
|
+
},
|
|
1229
|
+
[`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.lastButton}`]: {
|
|
1230
|
+
marginBottom: "unset",
|
|
1231
|
+
marginRight: "unset"
|
|
1232
|
+
},
|
|
1233
|
+
[`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.middleButton},& .${import_ToggleButtonGroup.toggleButtonGroupClasses.lastButton}`]: {
|
|
1234
|
+
// marginLeft: -1,
|
|
1235
|
+
// borderLeft: "1px solid transparent",
|
|
1236
|
+
marginLeft: "unset",
|
|
1237
|
+
borderLeft: "unset"
|
|
1238
|
+
}
|
|
1239
|
+
}));
|
|
1240
|
+
var ToggleButton = (0, import_material27.styled)(import_ToggleButton.default)(() => ({
|
|
1241
|
+
"&.Mui-selected, &.Mui-selected:hover": {
|
|
1242
|
+
backgroundColor: "#C8BCA1 !important"
|
|
1243
|
+
// marginLeft: "-1px !important",
|
|
1244
|
+
// borderLeft: "1px solid transparent !important",
|
|
1245
|
+
}
|
|
1246
|
+
}));
|
|
1247
|
+
var CustomToggleButton = (props) => {
|
|
1248
|
+
const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
|
|
1249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1250
|
+
ToggleButton,
|
|
1251
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
1252
|
+
disableRipple: true,
|
|
1253
|
+
className: `rounded-none border-none min-w-10 h-9 normal-case py-1.5 px-2.5 ${textView ? "justify-start bg-transparent hover:bg-transparent h-6 p-0" : " bg-accent-silver "}`,
|
|
1254
|
+
children
|
|
1255
|
+
})
|
|
1256
|
+
);
|
|
1257
|
+
};
|
|
1258
|
+
var ToggleButtonsMultiple = (props) => {
|
|
1259
|
+
const {
|
|
1260
|
+
values,
|
|
1261
|
+
textView = false,
|
|
1262
|
+
exclusive,
|
|
1263
|
+
collapseOnClick = false,
|
|
1264
|
+
label,
|
|
1265
|
+
collapseParent,
|
|
1266
|
+
flexDirection = "row"
|
|
1267
|
+
} = props;
|
|
1268
|
+
const { field } = (0, import_react_hook_form2.useController)(props);
|
|
1269
|
+
const handleFormat = (_event, newFormats) => {
|
|
1270
|
+
console.log(newFormats);
|
|
1271
|
+
if (newFormats !== null) field.onChange(newFormats);
|
|
1272
|
+
if (collapseOnClick && collapseParent) collapseParent();
|
|
1273
|
+
};
|
|
1274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_material27.Stack, { children: [
|
|
1275
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_Typography8.default, { className: "text-accent-silver-2 text-sm", children: label }) : null,
|
|
1276
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1277
|
+
StyledToggleButtonGroup,
|
|
1278
|
+
__spreadProps(__spreadValues({}, field), {
|
|
1279
|
+
flexDirection,
|
|
1280
|
+
exclusive,
|
|
1281
|
+
value: field.value,
|
|
1282
|
+
onChange: handleFormat,
|
|
1283
|
+
"aria-label": "text formatting",
|
|
1284
|
+
className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
|
|
1285
|
+
children: values.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
1286
|
+
CustomToggleButton,
|
|
1287
|
+
{
|
|
1288
|
+
value: option.value,
|
|
1289
|
+
textView,
|
|
1290
|
+
children: option.title
|
|
1291
|
+
},
|
|
1292
|
+
index
|
|
1293
|
+
))
|
|
1294
|
+
})
|
|
1295
|
+
)
|
|
1296
|
+
] });
|
|
1297
|
+
};
|
|
1298
|
+
var ToggleButton_default = ToggleButtonsMultiple;
|
|
1096
1299
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1097
1300
|
0 && (module.exports = {
|
|
1098
1301
|
AppBar,
|
|
@@ -1110,6 +1313,8 @@ var BigNumber_default = BigNumber;
|
|
|
1110
1313
|
ImageContainer,
|
|
1111
1314
|
Input,
|
|
1112
1315
|
JobCard,
|
|
1316
|
+
List,
|
|
1317
|
+
ListItem,
|
|
1113
1318
|
MapIcon,
|
|
1114
1319
|
MenuItem,
|
|
1115
1320
|
PhoneInput,
|
|
@@ -1123,5 +1328,8 @@ var BigNumber_default = BigNumber;
|
|
|
1123
1328
|
Slider,
|
|
1124
1329
|
Switch,
|
|
1125
1330
|
TeamPersonCard,
|
|
1126
|
-
Text
|
|
1331
|
+
Text,
|
|
1332
|
+
TextBlock,
|
|
1333
|
+
TitleBlock,
|
|
1334
|
+
ToggleButton
|
|
1127
1335
|
});
|