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.mjs
CHANGED
|
@@ -52,7 +52,7 @@ var StyledButton = styled(ButtonMUI)(() => ({
|
|
|
52
52
|
"&:hover": {
|
|
53
53
|
backgroundColor: "unset",
|
|
54
54
|
svg: {
|
|
55
|
-
filter: "brightness(0) saturate(100%) invert(
|
|
55
|
+
filter: "brightness(0) saturate(100%) invert(0%) sepia(95%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(105%)"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
transition: "transform 0.1s ease-in-out",
|
|
@@ -63,15 +63,16 @@ var StyledButton = styled(ButtonMUI)(() => ({
|
|
|
63
63
|
}
|
|
64
64
|
}));
|
|
65
65
|
var Button = (props) => {
|
|
66
|
-
const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
|
|
66
|
+
const _a = props, { children, base, bolt, border, medium, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "medium", "small", "large"]);
|
|
67
67
|
return /* @__PURE__ */ jsx(
|
|
68
68
|
StyledButton,
|
|
69
69
|
__spreadProps(__spreadValues({}, rest), {
|
|
70
70
|
disableRipple: true,
|
|
71
71
|
className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
|
|
72
72
|
${small ? "py-1.5 px-4" : ""}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
${medium ? "py-3.5 px-4" : ""}
|
|
74
|
+
${large ? "h-[38px] py-3.5 px-10" : ""}
|
|
75
|
+
${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" : ""}`,
|
|
75
76
|
children: /* @__PURE__ */ jsx(
|
|
76
77
|
Typography,
|
|
77
78
|
{
|
|
@@ -189,7 +190,7 @@ var CustomSelect = (props) => {
|
|
|
189
190
|
id: uniqueId,
|
|
190
191
|
PaperProps: {
|
|
191
192
|
classes: {
|
|
192
|
-
root: `
|
|
193
|
+
root: `select ${open ? "select--open" : "select--close"}`
|
|
193
194
|
}
|
|
194
195
|
}
|
|
195
196
|
},
|
|
@@ -239,7 +240,9 @@ var SelectPro = ({
|
|
|
239
240
|
clickComponent,
|
|
240
241
|
fullContainerWidth = false,
|
|
241
242
|
overButton = false,
|
|
242
|
-
small = false
|
|
243
|
+
small = false,
|
|
244
|
+
fullWidth = false,
|
|
245
|
+
freeChildWidth = false
|
|
243
246
|
}) => {
|
|
244
247
|
const [btn, setAnchorEl] = useState2(null);
|
|
245
248
|
const [open, setOpen] = useState2(false);
|
|
@@ -261,15 +264,11 @@ var SelectPro = ({
|
|
|
261
264
|
const childrenWithHandleChange = isValidElement(children) ? cloneElement(children, {
|
|
262
265
|
collapseParent: handleClose
|
|
263
266
|
}) : children;
|
|
264
|
-
return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { children: [
|
|
267
|
+
return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", children: [
|
|
265
268
|
clickComponent ? cloneElement(clickComponent, {
|
|
266
269
|
ref: btn,
|
|
267
|
-
onClick: handleClick
|
|
268
|
-
|
|
269
|
-
// clickComponent.props.onClick(e);
|
|
270
|
-
// // e.preventDefault();
|
|
271
|
-
// handleClick(e);
|
|
272
|
-
// },
|
|
270
|
+
onClick: handleClick,
|
|
271
|
+
collapse: open
|
|
273
272
|
}) : /* @__PURE__ */ jsxs3(
|
|
274
273
|
Button2,
|
|
275
274
|
{
|
|
@@ -281,7 +280,7 @@ var SelectPro = ({
|
|
|
281
280
|
disableRipple: true,
|
|
282
281
|
fullWidth: true,
|
|
283
282
|
sx: {
|
|
284
|
-
height: small ? "34px" : "
|
|
283
|
+
height: small ? "34px" : "38px",
|
|
285
284
|
padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
|
|
286
285
|
},
|
|
287
286
|
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"}`,
|
|
@@ -289,8 +288,9 @@ var SelectPro = ({
|
|
|
289
288
|
/* @__PURE__ */ jsx7(
|
|
290
289
|
Typography2,
|
|
291
290
|
{
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
width: "200px",
|
|
292
|
+
className: "text-sm leading-4 truncate text-left",
|
|
293
|
+
children: placeholder
|
|
294
294
|
}
|
|
295
295
|
),
|
|
296
296
|
colorBorder ? /* @__PURE__ */ jsx7(search_default, {}) : /* @__PURE__ */ jsx7(
|
|
@@ -310,13 +310,17 @@ var SelectPro = ({
|
|
|
310
310
|
{
|
|
311
311
|
sx: {
|
|
312
312
|
position: "absolute",
|
|
313
|
-
width:
|
|
313
|
+
// width: "min-content",
|
|
314
|
+
width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? (
|
|
315
|
+
// ? "fit-content" //(btn as HTMLButtonElement).offsetWidth
|
|
316
|
+
btn.offsetWidth
|
|
317
|
+
) : "100%",
|
|
314
318
|
left: fullContainerWidth ? 0 : "initial",
|
|
315
319
|
right: fullContainerWidth ? 0 : "initial",
|
|
316
320
|
top: overButton ? 0 : "initial"
|
|
317
321
|
},
|
|
318
|
-
className: `
|
|
319
|
-
children: /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col
|
|
322
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`,
|
|
323
|
+
children: /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col py-3 px-4 gap-2`, children: [
|
|
320
324
|
overButton ? /* @__PURE__ */ jsx7(
|
|
321
325
|
IconButton_default,
|
|
322
326
|
{
|
|
@@ -344,20 +348,22 @@ var SelectPro_default = SelectPro;
|
|
|
344
348
|
import { Chip, styled as styled4 } from "@mui/material";
|
|
345
349
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
346
350
|
var StyledChip = styled4(Chip)(({ theme: theme2 }) => ({
|
|
347
|
-
borderRadius: theme2.shape.borderRadius
|
|
351
|
+
borderRadius: theme2.shape.borderRadius,
|
|
352
|
+
".MuiChip-label": { padding: 0 },
|
|
353
|
+
".MuiChip-icon": { margin: "0 6px 0 0" }
|
|
348
354
|
}));
|
|
349
355
|
var ChipViews = {
|
|
350
356
|
black: "bg-accent-dark text-accent-white py-1.5 px-4",
|
|
351
357
|
line: "border border-solid border-accent-dark bg-accent-white",
|
|
352
358
|
white: "bg-accent-white text-accent-dark",
|
|
353
|
-
silver: "bg-accent-silver"
|
|
359
|
+
silver: "bg-accent-silver text-accent-dark "
|
|
354
360
|
};
|
|
355
361
|
var CustomChip = (props) => {
|
|
356
362
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
357
363
|
return /* @__PURE__ */ jsx8(
|
|
358
364
|
StyledChip,
|
|
359
365
|
__spreadValues({
|
|
360
|
-
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
366
|
+
className: `rounded-none w-fit h-fit px-2.5 py-0 text-14 ${ChipViews[view]}`
|
|
361
367
|
}, rest)
|
|
362
368
|
);
|
|
363
369
|
};
|
|
@@ -506,10 +512,14 @@ var StyledInput = styled8(Input)(() => ({
|
|
|
506
512
|
},
|
|
507
513
|
"& input[type=number]": {
|
|
508
514
|
MozAppearance: "textfield"
|
|
515
|
+
},
|
|
516
|
+
input: {
|
|
517
|
+
padding: "0",
|
|
518
|
+
height: "auto"
|
|
509
519
|
}
|
|
510
520
|
}));
|
|
511
521
|
var CustomInput = (props) => {
|
|
512
|
-
const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
|
|
522
|
+
const _a = props, { type, adornmentText, value, big } = _a, rest = __objRest(_a, ["type", "adornmentText", "value", "big"]);
|
|
513
523
|
const handleKeyDown = (event) => {
|
|
514
524
|
if (type === "number" && !/[0-9]/.test(event.key) && event.key !== "Backspace") {
|
|
515
525
|
event.preventDefault();
|
|
@@ -525,7 +535,7 @@ var CustomInput = (props) => {
|
|
|
525
535
|
value,
|
|
526
536
|
componentsProps: {
|
|
527
537
|
root: {
|
|
528
|
-
className: "border border-black rounded-none border-solid py-1.5 px-2.5 h-8"
|
|
538
|
+
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"
|
|
529
539
|
}
|
|
530
540
|
},
|
|
531
541
|
type: type || "string"
|
|
@@ -588,6 +598,7 @@ import CssBaseline from "@mui/material/CssBaseline";
|
|
|
588
598
|
import { prefixer } from "stylis";
|
|
589
599
|
|
|
590
600
|
// src/styles/assets.ts
|
|
601
|
+
var CONTAINER_WIDTH = "lg";
|
|
591
602
|
var WINDOW_SIZE = {
|
|
592
603
|
xs: 0,
|
|
593
604
|
sm: 400,
|
|
@@ -682,48 +693,34 @@ var Providers = ({ children }) => {
|
|
|
682
693
|
var Providers_default = Providers;
|
|
683
694
|
|
|
684
695
|
// src/components/AppBar/AppBar.tsx
|
|
685
|
-
import {
|
|
686
|
-
import {
|
|
696
|
+
import { useRef as useRef2, useState as useState4 } from "react";
|
|
697
|
+
import { Stack as Stack3 } from "@mui/material";
|
|
687
698
|
import Link from "next/link";
|
|
688
|
-
import { jsx as jsx22
|
|
699
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
689
700
|
var AppBar = ({ links }) => {
|
|
690
701
|
const [activeIndex, setActiveIndex] = useState4(0);
|
|
691
702
|
const navItemsRef = useRef2([]);
|
|
692
|
-
useEffect2(() => {
|
|
693
|
-
const indicator = document.querySelector(".nav-indicator");
|
|
694
|
-
const navItem = navItemsRef.current[activeIndex];
|
|
695
|
-
const navItemWidth = navItem.offsetWidth;
|
|
696
|
-
const navItemLeft = navItem.offsetLeft + navItemWidth / 2 - indicator.offsetWidth / 2;
|
|
697
|
-
const navItemTop = navItem.offsetTop - 5;
|
|
698
|
-
indicator == null ? void 0 : indicator.setAttribute(
|
|
699
|
-
"style",
|
|
700
|
-
`transform: translate(${navItemLeft}px, ${navItemTop}px);`
|
|
701
|
-
);
|
|
702
|
-
}, [activeIndex]);
|
|
703
703
|
const handleClick = (index) => {
|
|
704
704
|
setActiveIndex(index);
|
|
705
705
|
};
|
|
706
|
-
return /* @__PURE__ */
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
ref: (el) => {
|
|
712
|
-
navItemsRef.current[index] = el;
|
|
713
|
-
},
|
|
714
|
-
href: link.path,
|
|
715
|
-
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
716
|
-
onClick: () => handleClick(index),
|
|
717
|
-
children: link.title
|
|
706
|
+
return /* @__PURE__ */ jsx22(Stack3, { direction: "row", spacing: 1, position: "relative", children: links.map((link, index) => /* @__PURE__ */ jsx22(
|
|
707
|
+
Link,
|
|
708
|
+
{
|
|
709
|
+
ref: (el) => {
|
|
710
|
+
navItemsRef.current[index] = el;
|
|
718
711
|
},
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
712
|
+
href: link.path,
|
|
713
|
+
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
714
|
+
onClick: () => handleClick(index),
|
|
715
|
+
children: link.title
|
|
716
|
+
},
|
|
717
|
+
index
|
|
718
|
+
)) });
|
|
722
719
|
};
|
|
723
720
|
var AppBar_default = AppBar;
|
|
724
721
|
|
|
725
722
|
// src/components/Image/ImageContainer.tsx
|
|
726
|
-
import { Box as
|
|
723
|
+
import { Box as Box2 } from "@mui/material";
|
|
727
724
|
import Image from "next/image";
|
|
728
725
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
729
726
|
var ImageContainer = (props) => {
|
|
@@ -735,20 +732,28 @@ var ImageContainer = (props) => {
|
|
|
735
732
|
contentful = true,
|
|
736
733
|
priority = false,
|
|
737
734
|
loading = "lazy",
|
|
738
|
-
objectFit = "object-cover"
|
|
735
|
+
objectFit = "object-cover",
|
|
736
|
+
classesWrapper,
|
|
737
|
+
classesImg
|
|
739
738
|
} = props;
|
|
740
|
-
return /* @__PURE__ */ jsx23(
|
|
741
|
-
|
|
739
|
+
return /* @__PURE__ */ jsx23(
|
|
740
|
+
Box2,
|
|
742
741
|
{
|
|
743
|
-
className:
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
742
|
+
className: `relative ${width} ${height}${classesWrapper ? " " + classesWrapper : ""}`,
|
|
743
|
+
children: /* @__PURE__ */ jsx23(
|
|
744
|
+
Image,
|
|
745
|
+
{
|
|
746
|
+
className: `${objectFit} object-center${classesImg ? " " + classesImg : ""}`,
|
|
747
|
+
src: contentful ? `https:${src}` : src,
|
|
748
|
+
alt,
|
|
749
|
+
fill: true,
|
|
750
|
+
loading,
|
|
751
|
+
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
|
|
752
|
+
priority
|
|
753
|
+
}
|
|
754
|
+
)
|
|
750
755
|
}
|
|
751
|
-
)
|
|
756
|
+
);
|
|
752
757
|
};
|
|
753
758
|
var ImageContainer_default = ImageContainer;
|
|
754
759
|
|
|
@@ -759,19 +764,19 @@ var SvgMapSearch = (props) => /* @__PURE__ */ jsx24("svg", __spreadProps(__sprea
|
|
|
759
764
|
var map_search_default = SvgMapSearch;
|
|
760
765
|
|
|
761
766
|
// src/components/Card/CategoryCard.tsx
|
|
762
|
-
import { Box as
|
|
767
|
+
import { Box as Box3, Typography as Typography6 } from "@mui/material";
|
|
763
768
|
import Link2 from "next/link";
|
|
764
769
|
|
|
765
770
|
// src/lib/assets.ts
|
|
766
771
|
var NO_IMAGE = "/images/no-photo.svg";
|
|
767
772
|
|
|
768
773
|
// src/components/Card/CategoryCard.tsx
|
|
769
|
-
import { jsx as jsx25, jsxs as
|
|
774
|
+
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
770
775
|
var CategoryCard = (props) => {
|
|
771
776
|
const { link, text, title, image_url = NO_IMAGE } = props;
|
|
772
|
-
return /* @__PURE__ */ jsx25(Link2, { href: link, className: "group/card", children: /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ jsx25(Link2, { href: link, className: "group/card", children: /* @__PURE__ */ jsxs7(Box3, { className: "flex flex-col gap-[20px]", children: [
|
|
773
778
|
/* @__PURE__ */ jsx25(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
|
|
774
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ jsxs7(Box3, { className: "flex flex-col px-[16px]", children: [
|
|
775
780
|
/* @__PURE__ */ jsx25(
|
|
776
781
|
Typography6,
|
|
777
782
|
{
|
|
@@ -788,41 +793,47 @@ var CategoryCard_default = CategoryCard;
|
|
|
788
793
|
|
|
789
794
|
// src/components/Card/ArticleCard.tsx
|
|
790
795
|
import Link3 from "next/link";
|
|
791
|
-
import { Box as
|
|
796
|
+
import { Box as Box4 } from "@mui/material";
|
|
792
797
|
import Typography7 from "@mui/material/Typography";
|
|
793
|
-
import { jsx as jsx26, jsxs as
|
|
798
|
+
import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
794
799
|
var ArticleCard = (props) => {
|
|
795
|
-
const {
|
|
796
|
-
return /* @__PURE__ */
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
800
|
+
const { imageUrl = NO_IMAGE, classes, title, text, href } = props;
|
|
801
|
+
return /* @__PURE__ */ jsxs8(
|
|
802
|
+
Link3,
|
|
803
|
+
{
|
|
804
|
+
href,
|
|
805
|
+
className: `group/card bg-gray-light${classes ? " " + classes : ""}`,
|
|
806
|
+
children: [
|
|
807
|
+
/* @__PURE__ */ jsx26(
|
|
808
|
+
ImageContainer_default,
|
|
809
|
+
{
|
|
810
|
+
src: imageUrl,
|
|
811
|
+
alt: "test",
|
|
812
|
+
contentful: false,
|
|
813
|
+
height: "h-[220px]"
|
|
814
|
+
}
|
|
815
|
+
),
|
|
816
|
+
/* @__PURE__ */ jsxs8(Box4, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
817
|
+
/* @__PURE__ */ jsx26(
|
|
818
|
+
Typography7,
|
|
819
|
+
{
|
|
820
|
+
component: "span",
|
|
821
|
+
className: "text-16 font-extrabold group-hover/card:text-gold2 trim-2",
|
|
822
|
+
children: title
|
|
823
|
+
}
|
|
824
|
+
),
|
|
825
|
+
/* @__PURE__ */ jsx26(
|
|
826
|
+
Typography7,
|
|
827
|
+
{
|
|
828
|
+
component: "span",
|
|
829
|
+
className: "text-gray group-hover/card:text-gold2 trim-4",
|
|
830
|
+
children: text
|
|
831
|
+
}
|
|
832
|
+
)
|
|
833
|
+
] })
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
);
|
|
826
837
|
};
|
|
827
838
|
var ArticleCard_default = ArticleCard;
|
|
828
839
|
|
|
@@ -841,16 +852,20 @@ var RealtorCard = () => {
|
|
|
841
852
|
var RealtorCard_default = RealtorCard;
|
|
842
853
|
|
|
843
854
|
// src/components/Card/RealtyCard.tsx
|
|
844
|
-
import { Box as
|
|
855
|
+
import { Box as Box5, Typography as Typography8 } from "@mui/material";
|
|
845
856
|
import Link4 from "next/link";
|
|
846
|
-
|
|
857
|
+
|
|
858
|
+
// src/icons/metro.svg
|
|
859
|
+
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" }) }));
|
|
862
|
+
var metro_default = SvgMetro;
|
|
863
|
+
|
|
864
|
+
// src/components/Card/RealtyCard.tsx
|
|
865
|
+
import { jsx as jsx30, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
847
866
|
var RealtyCard = () => {
|
|
848
|
-
return /* @__PURE__ */
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */ jsx29(Chip_default, { view: "white", label: "id: 00154" }),
|
|
851
|
-
/* @__PURE__ */ jsx29(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })
|
|
852
|
-
] }),
|
|
853
|
-
/* @__PURE__ */ jsx29(
|
|
867
|
+
return /* @__PURE__ */ jsxs9(Link4, { href: "/", className: "relative", children: [
|
|
868
|
+
/* @__PURE__ */ jsx30(
|
|
854
869
|
ImageContainer_default,
|
|
855
870
|
{
|
|
856
871
|
src: "/images/test.png",
|
|
@@ -859,24 +874,20 @@ var RealtyCard = () => {
|
|
|
859
874
|
contentful: false
|
|
860
875
|
}
|
|
861
876
|
),
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
/* @__PURE__ */
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
/* @__PURE__ */ jsxs10(Box6, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
877
|
-
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
878
|
-
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
879
|
-
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
877
|
+
/* @__PURE__ */ jsxs9(Box5, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
878
|
+
/* @__PURE__ */ jsxs9(Typography8, { component: "span", className: "text-14", children: [
|
|
879
|
+
/* @__PURE__ */ jsx30(Typography8, { component: "span", className: "font-extrabold", children: "120 000 \u20B4" }),
|
|
880
|
+
"/\u043C\u0456\u0441\u044F\u0446\u044C"
|
|
881
|
+
] }),
|
|
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" }),
|
|
883
|
+
/* @__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" })
|
|
886
|
+
] }),
|
|
887
|
+
/* @__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" })
|
|
880
891
|
] })
|
|
881
892
|
] })
|
|
882
893
|
] });
|
|
@@ -884,13 +895,13 @@ var RealtyCard = () => {
|
|
|
884
895
|
var RealtyCard_default = RealtyCard;
|
|
885
896
|
|
|
886
897
|
// src/components/Card/TeamPersonCard.tsx
|
|
887
|
-
import { Box as
|
|
888
|
-
import { jsx as
|
|
898
|
+
import { Box as Box6, Typography as Typography9 } from "@mui/material";
|
|
899
|
+
import { jsx as jsx31, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
889
900
|
var TeamPersonCard = (props) => {
|
|
890
901
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
891
|
-
return /* @__PURE__ */
|
|
892
|
-
/* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
902
|
+
return /* @__PURE__ */ jsxs10(Box6, { className: "group/card", children: [
|
|
903
|
+
/* @__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(
|
|
894
905
|
ImageContainer_default,
|
|
895
906
|
{
|
|
896
907
|
contentful: false,
|
|
@@ -899,10 +910,10 @@ var TeamPersonCard = (props) => {
|
|
|
899
910
|
objectFit: "object-contain"
|
|
900
911
|
}
|
|
901
912
|
) }),
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
/* @__PURE__ */
|
|
905
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__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(
|
|
906
917
|
Typography9,
|
|
907
918
|
{
|
|
908
919
|
component: "span",
|
|
@@ -912,9 +923,9 @@ var TeamPersonCard = (props) => {
|
|
|
912
923
|
)
|
|
913
924
|
] })
|
|
914
925
|
] }),
|
|
915
|
-
/* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
917
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__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 })
|
|
918
929
|
] })
|
|
919
930
|
] });
|
|
920
931
|
};
|
|
@@ -924,15 +935,15 @@ var TeamPersonCard_default = TeamPersonCard;
|
|
|
924
935
|
import { useState as useState5 } from "react";
|
|
925
936
|
import {
|
|
926
937
|
Autocomplete as MUIAutocomplete,
|
|
927
|
-
Box as
|
|
938
|
+
Box as Box7,
|
|
928
939
|
Chip as Chip2,
|
|
929
940
|
Input as Input2,
|
|
930
941
|
InputAdornment as InputAdornment2,
|
|
931
942
|
Paper as Paper2,
|
|
932
|
-
Stack as
|
|
943
|
+
Stack as Stack4
|
|
933
944
|
} from "@mui/material";
|
|
934
945
|
import { useController } from "react-hook-form";
|
|
935
|
-
import { Fragment as Fragment3, jsx as
|
|
946
|
+
import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
936
947
|
var RenderInputAutocomplete = (_a) => {
|
|
937
948
|
var _b = _a, {
|
|
938
949
|
InputProps: InputProps2,
|
|
@@ -941,14 +952,14 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
941
952
|
"InputProps",
|
|
942
953
|
"InputLabelProps"
|
|
943
954
|
]);
|
|
944
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ jsx32(Box7, { ref: InputProps2.ref, children: /* @__PURE__ */ jsx32(
|
|
945
956
|
Input2,
|
|
946
957
|
__spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
|
|
947
|
-
startAdornment: /* @__PURE__ */
|
|
948
|
-
/* @__PURE__ */
|
|
958
|
+
startAdornment: /* @__PURE__ */ jsxs11(Stack4, { direction: "row", alignItems: "center", children: [
|
|
959
|
+
/* @__PURE__ */ jsx32(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx32(search_default, {}) }),
|
|
949
960
|
InputProps2.startAdornment
|
|
950
961
|
] }),
|
|
951
|
-
endAdornment: /* @__PURE__ */
|
|
962
|
+
endAdornment: /* @__PURE__ */ jsx32(Fragment3, {}),
|
|
952
963
|
ref: InputProps2.ref,
|
|
953
964
|
disableUnderline: true,
|
|
954
965
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
@@ -964,7 +975,7 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
964
975
|
) });
|
|
965
976
|
};
|
|
966
977
|
var CustomPaperComponent = (props) => {
|
|
967
|
-
return /* @__PURE__ */
|
|
978
|
+
return /* @__PURE__ */ jsx32(Paper2, __spreadProps(__spreadValues({}, props), { children: /* @__PURE__ */ jsxs11("div", { children: [
|
|
968
979
|
"helllooo",
|
|
969
980
|
props.children
|
|
970
981
|
] }, "click-away-wrapper") }));
|
|
@@ -982,7 +993,7 @@ var Autocomplete = (props) => {
|
|
|
982
993
|
else setAnchorEl(event.currentTarget);
|
|
983
994
|
setOpen(!open);
|
|
984
995
|
};
|
|
985
|
-
return /* @__PURE__ */
|
|
996
|
+
return /* @__PURE__ */ jsx32(
|
|
986
997
|
MUIAutocomplete,
|
|
987
998
|
{
|
|
988
999
|
multiple: true,
|
|
@@ -998,12 +1009,12 @@ var Autocomplete = (props) => {
|
|
|
998
1009
|
PaperComponent: CustomPaperComponent,
|
|
999
1010
|
renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
1000
1011
|
const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
|
|
1001
|
-
return /* @__PURE__ */
|
|
1012
|
+
return /* @__PURE__ */ jsx32(
|
|
1002
1013
|
Chip2,
|
|
1003
1014
|
__spreadProps(__spreadValues({
|
|
1004
1015
|
label: option
|
|
1005
1016
|
}, tagProps), {
|
|
1006
|
-
deleteIcon: /* @__PURE__ */
|
|
1017
|
+
deleteIcon: /* @__PURE__ */ jsx32(IconButton_default, { className: "rounded-none bg-accent-silver p-1", children: /* @__PURE__ */ jsx32(close_default, {}) }),
|
|
1007
1018
|
className: "rounded-none w-fit h-fit bg-transparent p-0"
|
|
1008
1019
|
}),
|
|
1009
1020
|
key
|
|
@@ -1012,10 +1023,10 @@ var Autocomplete = (props) => {
|
|
|
1012
1023
|
slotProps: {
|
|
1013
1024
|
paper: {
|
|
1014
1025
|
sx: {},
|
|
1015
|
-
className: `
|
|
1026
|
+
className: `select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-sm`
|
|
1016
1027
|
}
|
|
1017
1028
|
},
|
|
1018
|
-
renderInput: (params) => /* @__PURE__ */
|
|
1029
|
+
renderInput: (params) => /* @__PURE__ */ jsx32(
|
|
1019
1030
|
RenderInputAutocomplete,
|
|
1020
1031
|
__spreadValues({}, params)
|
|
1021
1032
|
)
|
|
@@ -1025,7 +1036,7 @@ var Autocomplete = (props) => {
|
|
|
1025
1036
|
var Autocomplete_default = Autocomplete;
|
|
1026
1037
|
|
|
1027
1038
|
// src/components/BigNumber/BigNumber.tsx
|
|
1028
|
-
import { Box as
|
|
1039
|
+
import { Box as Box8, Typography as Typography10 } from "@mui/material";
|
|
1029
1040
|
|
|
1030
1041
|
// src/utils/thousandFormatter.ts
|
|
1031
1042
|
var thousandFormatter = (num) => {
|
|
@@ -1034,11 +1045,11 @@ var thousandFormatter = (num) => {
|
|
|
1034
1045
|
var thousandFormatter_default = thousandFormatter;
|
|
1035
1046
|
|
|
1036
1047
|
// src/components/BigNumber/BigNumber.tsx
|
|
1037
|
-
import { jsx as
|
|
1048
|
+
import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1038
1049
|
var BigNumber = (props) => {
|
|
1039
|
-
const {
|
|
1040
|
-
return /* @__PURE__ */
|
|
1041
|
-
/* @__PURE__ */
|
|
1050
|
+
const { text, number } = props;
|
|
1051
|
+
return /* @__PURE__ */ jsxs12(Box8, { className: "flex flex-col", children: [
|
|
1052
|
+
/* @__PURE__ */ jsx33(
|
|
1042
1053
|
Typography10,
|
|
1043
1054
|
{
|
|
1044
1055
|
component: "span",
|
|
@@ -1046,10 +1057,202 @@ var BigNumber = (props) => {
|
|
|
1046
1057
|
children: thousandFormatter_default(number)
|
|
1047
1058
|
}
|
|
1048
1059
|
),
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
] }
|
|
1060
|
+
/* @__PURE__ */ jsx33(Typography10, { component: "span", className: "text-base text-gray mt-[-20px]", children: text })
|
|
1061
|
+
] });
|
|
1051
1062
|
};
|
|
1052
1063
|
var BigNumber_default = BigNumber;
|
|
1064
|
+
|
|
1065
|
+
// src/blocks/TextBlock.tsx
|
|
1066
|
+
import { Box as Box9, Container, Typography as Typography11 } from "@mui/material";
|
|
1067
|
+
import { jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1068
|
+
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 })
|
|
1072
|
+
] }) }) });
|
|
1073
|
+
};
|
|
1074
|
+
var TextBlock_default = TextBlock;
|
|
1075
|
+
|
|
1076
|
+
// src/blocks/TitleBlock.tsx
|
|
1077
|
+
import Typography12 from "@mui/material/Typography";
|
|
1078
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1079
|
+
var TitleBlock = ({ titlePosition, title, classes }) => {
|
|
1080
|
+
return /* @__PURE__ */ jsx35(
|
|
1081
|
+
Typography12,
|
|
1082
|
+
{
|
|
1083
|
+
component: "span",
|
|
1084
|
+
className: `text-32 uppercase font-extrabold text-${titlePosition} block${classes ? " " + classes : ""}`,
|
|
1085
|
+
children: title
|
|
1086
|
+
}
|
|
1087
|
+
);
|
|
1088
|
+
};
|
|
1089
|
+
var TitleBlock_default = TitleBlock;
|
|
1090
|
+
|
|
1091
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1092
|
+
import { Box as Box10, Typography as Typography13 } from "@mui/material";
|
|
1093
|
+
|
|
1094
|
+
// src/icons/qoutes.svg
|
|
1095
|
+
import * as React6 from "react";
|
|
1096
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1097
|
+
|
|
1098
|
+
// src/blocks/TeamWorkerBlock.tsx
|
|
1099
|
+
import Link5 from "next/link";
|
|
1100
|
+
import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1101
|
+
|
|
1102
|
+
// src/blocks/AnyLevelBlock.tsx
|
|
1103
|
+
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";
|
|
1105
|
+
|
|
1106
|
+
// src/blocks/RichTextBlock.tsx
|
|
1107
|
+
import { Box as Box12 } from "@mui/material";
|
|
1108
|
+
import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
|
|
1109
|
+
import { Fragment as Fragment4, jsx as jsx39 } from "react/jsx-runtime";
|
|
1110
|
+
|
|
1111
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1112
|
+
import { Box as Box13, Container as Container3, Typography as Typography15 } from "@mui/material";
|
|
1113
|
+
|
|
1114
|
+
// src/utils/formatDate.ts
|
|
1115
|
+
import { format } from "date-fns";
|
|
1116
|
+
|
|
1117
|
+
// src/blocks/ArticleContentBlock.tsx
|
|
1118
|
+
import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1119
|
+
|
|
1120
|
+
// src/components/List/List.tsx
|
|
1121
|
+
import { List as MUIList } from "@mui/material";
|
|
1122
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
1123
|
+
var List = (props) => {
|
|
1124
|
+
const { children } = props;
|
|
1125
|
+
return /* @__PURE__ */ jsx41(MUIList, __spreadProps(__spreadValues({ disablePadding: true }, props), { children }));
|
|
1126
|
+
};
|
|
1127
|
+
var List_default = List;
|
|
1128
|
+
|
|
1129
|
+
// src/components/List/ListItem.tsx
|
|
1130
|
+
import { ListItem as MUIListItem } from "@mui/material";
|
|
1131
|
+
import ListItemButton from "@mui/material/ListItemButton";
|
|
1132
|
+
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
1133
|
+
import ListItemText from "@mui/material/ListItemText";
|
|
1134
|
+
import Typography16 from "@mui/material/Typography";
|
|
1135
|
+
import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1136
|
+
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1137
|
+
return /* @__PURE__ */ jsx42(MUIListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ jsxs17(
|
|
1138
|
+
ListItemButton,
|
|
1139
|
+
{
|
|
1140
|
+
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1141
|
+
onClick: () => onClick && onClick(title),
|
|
1142
|
+
disableRipple: true,
|
|
1143
|
+
children: [
|
|
1144
|
+
icon ? /* @__PURE__ */ jsx42(ListItemIcon, { sx: { minWidth: "24px" }, children: icon }) : null,
|
|
1145
|
+
/* @__PURE__ */ jsx42(ListItemText, { children: /* @__PURE__ */ jsx42(
|
|
1146
|
+
Typography16,
|
|
1147
|
+
{
|
|
1148
|
+
className: `text-xs ${bold ? "font-extrabold" : "font-normal"}`,
|
|
1149
|
+
children: title
|
|
1150
|
+
}
|
|
1151
|
+
) })
|
|
1152
|
+
]
|
|
1153
|
+
}
|
|
1154
|
+
) });
|
|
1155
|
+
};
|
|
1156
|
+
var ListItem_default = ListItem;
|
|
1157
|
+
|
|
1158
|
+
// src/components/ToggleButton/ToggleButton.tsx
|
|
1159
|
+
import MuiToggleButton from "@mui/material/ToggleButton";
|
|
1160
|
+
import {
|
|
1161
|
+
Stack as Stack5,
|
|
1162
|
+
styled as styled9
|
|
1163
|
+
} from "@mui/material";
|
|
1164
|
+
import { useController as useController2 } from "react-hook-form";
|
|
1165
|
+
import Typography17 from "@mui/material/Typography";
|
|
1166
|
+
import ToggleButtonGroup, {
|
|
1167
|
+
toggleButtonGroupClasses
|
|
1168
|
+
} from "@mui/material/ToggleButtonGroup";
|
|
1169
|
+
import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1170
|
+
var StyledToggleButtonGroup = styled9(
|
|
1171
|
+
ToggleButtonGroup
|
|
1172
|
+
)(({ theme: theme2, flexDirection }) => ({
|
|
1173
|
+
[`& .${toggleButtonGroupClasses.grouped}`]: {
|
|
1174
|
+
// marginRight: theme.spacing(1.3),
|
|
1175
|
+
marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
|
|
1176
|
+
marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
|
|
1177
|
+
// marginBottom: theme.spacing(1.3),
|
|
1178
|
+
// spacing: theme.spacing(1.3),
|
|
1179
|
+
width: "fit-content"
|
|
1180
|
+
// border: 0,
|
|
1181
|
+
// borderRadius: theme.shape.borderRadius,
|
|
1182
|
+
// [`&.${toggleButtonGroupClasses.disabled}`]: {
|
|
1183
|
+
// border: 0,
|
|
1184
|
+
// },
|
|
1185
|
+
},
|
|
1186
|
+
[`& .${toggleButtonGroupClasses.lastButton}`]: {
|
|
1187
|
+
marginBottom: "unset",
|
|
1188
|
+
marginRight: "unset"
|
|
1189
|
+
},
|
|
1190
|
+
[`& .${toggleButtonGroupClasses.middleButton},& .${toggleButtonGroupClasses.lastButton}`]: {
|
|
1191
|
+
// marginLeft: -1,
|
|
1192
|
+
// borderLeft: "1px solid transparent",
|
|
1193
|
+
marginLeft: "unset",
|
|
1194
|
+
borderLeft: "unset"
|
|
1195
|
+
}
|
|
1196
|
+
}));
|
|
1197
|
+
var ToggleButton = styled9(MuiToggleButton)(() => ({
|
|
1198
|
+
"&.Mui-selected, &.Mui-selected:hover": {
|
|
1199
|
+
backgroundColor: "#C8BCA1 !important"
|
|
1200
|
+
// marginLeft: "-1px !important",
|
|
1201
|
+
// borderLeft: "1px solid transparent !important",
|
|
1202
|
+
}
|
|
1203
|
+
}));
|
|
1204
|
+
var CustomToggleButton = (props) => {
|
|
1205
|
+
const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
|
|
1206
|
+
return /* @__PURE__ */ jsx43(
|
|
1207
|
+
ToggleButton,
|
|
1208
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
1209
|
+
disableRipple: true,
|
|
1210
|
+
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 "}`,
|
|
1211
|
+
children
|
|
1212
|
+
})
|
|
1213
|
+
);
|
|
1214
|
+
};
|
|
1215
|
+
var ToggleButtonsMultiple = (props) => {
|
|
1216
|
+
const {
|
|
1217
|
+
values,
|
|
1218
|
+
textView = false,
|
|
1219
|
+
exclusive,
|
|
1220
|
+
collapseOnClick = false,
|
|
1221
|
+
label,
|
|
1222
|
+
collapseParent,
|
|
1223
|
+
flexDirection = "row"
|
|
1224
|
+
} = props;
|
|
1225
|
+
const { field } = useController2(props);
|
|
1226
|
+
const handleFormat = (_event, newFormats) => {
|
|
1227
|
+
console.log(newFormats);
|
|
1228
|
+
if (newFormats !== null) field.onChange(newFormats);
|
|
1229
|
+
if (collapseOnClick && collapseParent) collapseParent();
|
|
1230
|
+
};
|
|
1231
|
+
return /* @__PURE__ */ jsxs18(Stack5, { children: [
|
|
1232
|
+
label ? /* @__PURE__ */ jsx43(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
|
|
1233
|
+
/* @__PURE__ */ jsx43(
|
|
1234
|
+
StyledToggleButtonGroup,
|
|
1235
|
+
__spreadProps(__spreadValues({}, field), {
|
|
1236
|
+
flexDirection,
|
|
1237
|
+
exclusive,
|
|
1238
|
+
value: field.value,
|
|
1239
|
+
onChange: handleFormat,
|
|
1240
|
+
"aria-label": "text formatting",
|
|
1241
|
+
className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
|
|
1242
|
+
children: values.map((option, index) => /* @__PURE__ */ jsx43(
|
|
1243
|
+
CustomToggleButton,
|
|
1244
|
+
{
|
|
1245
|
+
value: option.value,
|
|
1246
|
+
textView,
|
|
1247
|
+
children: option.title
|
|
1248
|
+
},
|
|
1249
|
+
index
|
|
1250
|
+
))
|
|
1251
|
+
})
|
|
1252
|
+
)
|
|
1253
|
+
] });
|
|
1254
|
+
};
|
|
1255
|
+
var ToggleButton_default = ToggleButtonsMultiple;
|
|
1053
1256
|
export {
|
|
1054
1257
|
AppBar_default as AppBar,
|
|
1055
1258
|
ArticleCard_default as ArticleCard,
|
|
@@ -1066,6 +1269,8 @@ export {
|
|
|
1066
1269
|
ImageContainer_default as ImageContainer,
|
|
1067
1270
|
Input_default as Input,
|
|
1068
1271
|
JobCard_default as JobCard,
|
|
1272
|
+
List_default as List,
|
|
1273
|
+
ListItem_default as ListItem,
|
|
1069
1274
|
map_search_default as MapIcon,
|
|
1070
1275
|
MenuItem_default as MenuItem,
|
|
1071
1276
|
PhoneInput_default as PhoneInput,
|
|
@@ -1079,5 +1284,8 @@ export {
|
|
|
1079
1284
|
Slider_default as Slider,
|
|
1080
1285
|
Switch_default as Switch,
|
|
1081
1286
|
TeamPersonCard_default as TeamPersonCard,
|
|
1082
|
-
Text_default as Text
|
|
1287
|
+
Text_default as Text,
|
|
1288
|
+
TextBlock_default as TextBlock,
|
|
1289
|
+
TitleBlock_default as TitleBlock,
|
|
1290
|
+
ToggleButton_default as ToggleButton
|
|
1083
1291
|
};
|