mayak-common-library 0.0.16 → 0.0.18
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/assets/fonts/RockStar/Rock Star_Extra Bold_Web.woff2 +0 -0
- package/assets/fonts/RockStar/Rock Star_Regular_Web.woff2 +0 -0
- package/dist/Rock Star_Extra Bold_Web-B3PLEFIF.woff2 +0 -0
- package/dist/Rock Star_Regular_Web-VMOWTS6V.woff2 +0 -0
- package/dist/index.css +10 -0
- package/dist/index.d.mts +17 -12
- package/dist/index.d.ts +17 -12
- package/dist/index.js +292 -286
- package/dist/index.mjs +290 -277
- package/package.json +2 -1
- package/dist/close-4XJDSDVO.svg +0 -4
- package/dist/dropdown-arrow-CDZAF5GJ.svg +0 -3
- package/dist/map-search-62Q23M73.svg +0 -3
- package/dist/search-HJGCO2DZ.svg +0 -3
package/dist/index.js
CHANGED
|
@@ -61,6 +61,7 @@ var src_exports = {};
|
|
|
61
61
|
__export(src_exports, {
|
|
62
62
|
AppBar: () => AppBar_default,
|
|
63
63
|
ArticleCard: () => ArticleCard_default,
|
|
64
|
+
Autocomplete: () => Autocomplete_default,
|
|
64
65
|
Avatar: () => Avatar_default,
|
|
65
66
|
Badge: () => Badge_default,
|
|
66
67
|
Button: () => Button_default,
|
|
@@ -90,20 +91,15 @@ __export(src_exports, {
|
|
|
90
91
|
module.exports = __toCommonJS(src_exports);
|
|
91
92
|
|
|
92
93
|
// src/components/Greet.tsx
|
|
93
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
94
94
|
function Greet(props) {
|
|
95
95
|
const { name } = props;
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
"Hello ",
|
|
98
|
-
name
|
|
99
|
-
] });
|
|
96
|
+
return /* @__PURE__ */ React.createElement("div", null, "Hello ", name);
|
|
100
97
|
}
|
|
101
98
|
|
|
102
99
|
// src/components/Button/Button.tsx
|
|
103
100
|
var import_Button = __toESM(require("@mui/material/Button"));
|
|
104
101
|
var import_material = require("@mui/material");
|
|
105
102
|
var import_Typography = __toESM(require("@mui/material/Typography"));
|
|
106
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
107
103
|
var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
108
104
|
textTransform: "none",
|
|
109
105
|
width: "fit-content",
|
|
@@ -123,29 +119,28 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
|
|
|
123
119
|
}));
|
|
124
120
|
var Button = (props) => {
|
|
125
121
|
const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
|
|
126
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ React.createElement(
|
|
127
123
|
StyledButton,
|
|
128
124
|
__spreadProps(__spreadValues({}, rest), {
|
|
129
125
|
disableRipple: true,
|
|
130
126
|
className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
|
|
131
127
|
${small ? "py-1.5 px-4" : ""}
|
|
132
128
|
${large ? "py-5 px-10" : ""}
|
|
133
|
-
${border ? "border-b border-solid rounded-none" : ""}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
129
|
+
${border ? "border-b border-solid rounded-none" : ""}`
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ React.createElement(
|
|
132
|
+
import_Typography.default,
|
|
133
|
+
{
|
|
134
|
+
className: `${bolt ? "font-extrabold leading-4" : "font-normal leading-3"}`
|
|
135
|
+
},
|
|
136
|
+
children
|
|
137
|
+
)
|
|
142
138
|
);
|
|
143
139
|
};
|
|
144
140
|
var Button_default = Button;
|
|
145
141
|
|
|
146
142
|
// src/components/Button/IconButton.tsx
|
|
147
143
|
var import_material2 = require("@mui/material");
|
|
148
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
149
144
|
var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(() => ({
|
|
150
145
|
width: "fit-content",
|
|
151
146
|
borderRadius: 0,
|
|
@@ -160,7 +155,7 @@ var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(()
|
|
|
160
155
|
}));
|
|
161
156
|
var IconButton = (props) => {
|
|
162
157
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
163
|
-
return /* @__PURE__ */
|
|
158
|
+
return /* @__PURE__ */ React.createElement(StyledButton2, __spreadProps(__spreadValues({}, rest), { disableRipple: true }), children);
|
|
164
159
|
};
|
|
165
160
|
var IconButton_default = IconButton;
|
|
166
161
|
|
|
@@ -169,10 +164,11 @@ var import_react = require("react");
|
|
|
169
164
|
var import_material3 = require("@mui/material");
|
|
170
165
|
|
|
171
166
|
// src/icons/dropdown-arrow.svg
|
|
172
|
-
var
|
|
167
|
+
var React2 = __toESM(require("react"));
|
|
168
|
+
var SvgDropdownArrow = (props) => /* @__PURE__ */ React2.createElement("svg", __spreadValues({ width: 13, height: 7, viewBox: "0 0 13 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React2.createElement("path", { d: "M12 6.25L6.5 0.75L1 6.25", stroke: "#343434", strokeLinecap: "round" }));
|
|
169
|
+
var dropdown_arrow_default = SvgDropdownArrow;
|
|
173
170
|
|
|
174
171
|
// src/components/Select/Select.tsx
|
|
175
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
176
172
|
var StyledSelect = (0, import_material3.styled)(import_material3.Select)(({ open }) => ({
|
|
177
173
|
minWidth: 250,
|
|
178
174
|
"&.MuiInputBase-root": {
|
|
@@ -224,7 +220,7 @@ var CustomSelect = (props) => {
|
|
|
224
220
|
var _a2;
|
|
225
221
|
if (!open) (_a2 = myRef.current) == null ? void 0 : _a2.classList.remove("Mui-focused");
|
|
226
222
|
}, [open]);
|
|
227
|
-
return /* @__PURE__ */
|
|
223
|
+
return /* @__PURE__ */ React.createElement(
|
|
228
224
|
StyledSelect,
|
|
229
225
|
__spreadProps(__spreadValues({}, rest), {
|
|
230
226
|
ref: myRef,
|
|
@@ -249,25 +245,28 @@ var CustomSelect = (props) => {
|
|
|
249
245
|
}
|
|
250
246
|
}
|
|
251
247
|
},
|
|
252
|
-
IconComponent: () => /* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
|
|
248
|
+
IconComponent: () => /* @__PURE__ */ React.createElement(dropdown_arrow_default, null)
|
|
249
|
+
}),
|
|
250
|
+
children
|
|
255
251
|
);
|
|
256
252
|
};
|
|
257
253
|
var Select_default = CustomSelect;
|
|
258
254
|
|
|
259
255
|
// src/icons/search.svg
|
|
260
|
-
var
|
|
256
|
+
var React3 = __toESM(require("react"));
|
|
257
|
+
var SvgSearch = (props) => /* @__PURE__ */ React3.createElement("svg", __spreadValues({ width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React3.createElement("path", { d: "M21 12.5L12 3.5L3 12.5H5V19.5C5 20.0304 5.21071 20.5391 5.58579 20.9142C5.96086 21.2893 6.46957 21.5 7 21.5H11.7M9 21.5V15.5C9 14.9696 9.21071 14.4609 9.58579 14.0858C9.96086 13.7107 10.4696 13.5 11 13.5H13M20.1992 20.6992L21.9992 22.4992M15 18.5C15 19.2956 15.3161 20.0587 15.8787 20.6213C16.4413 21.1839 17.2044 21.5 18 21.5C18.7956 21.5 19.5587 21.1839 20.1213 20.6213C20.6839 20.0587 21 19.2956 21 18.5C21 17.7044 20.6839 16.9413 20.1213 16.3787C19.5587 15.8161 18.7956 15.5 18 15.5C17.2044 15.5 16.4413 15.8161 15.8787 16.3787C15.3161 16.9413 15 17.7044 15 18.5Z", stroke: "#C8BCA1", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
258
|
+
var search_default = SvgSearch;
|
|
261
259
|
|
|
262
260
|
// src/components/Select/SelectPro.tsx
|
|
263
261
|
var import_react2 = require("react");
|
|
264
262
|
var import_material4 = require("@mui/material");
|
|
265
263
|
|
|
266
264
|
// src/icons/close.svg
|
|
267
|
-
var
|
|
265
|
+
var React4 = __toESM(require("react"));
|
|
266
|
+
var SvgClose = (props) => /* @__PURE__ */ React4.createElement("svg", __spreadValues({ width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React4.createElement("path", { d: "M1 7.5L7.5 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ React4.createElement("path", { d: "M7.5 7.5L1 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
267
|
+
var close_default = SvgClose;
|
|
268
268
|
|
|
269
269
|
// src/components/Select/SelectPro.tsx
|
|
270
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
271
270
|
var SelectPro = ({
|
|
272
271
|
children,
|
|
273
272
|
placeholder,
|
|
@@ -281,6 +280,7 @@ var SelectPro = ({
|
|
|
281
280
|
const [btn, setAnchorEl] = (0, import_react2.useState)(null);
|
|
282
281
|
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
283
282
|
const handleClick = (event) => {
|
|
283
|
+
event.persist();
|
|
284
284
|
if (open)
|
|
285
285
|
setTimeout(() => {
|
|
286
286
|
setAnchorEl(null);
|
|
@@ -297,83 +297,78 @@ var SelectPro = ({
|
|
|
297
297
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
298
298
|
collapseParent: handleClose
|
|
299
299
|
}) : children;
|
|
300
|
-
return /* @__PURE__ */
|
|
301
|
-
|
|
300
|
+
return /* @__PURE__ */ React.createElement(import_material4.ClickAwayListener, { onClickAway: handleClose }, /* @__PURE__ */ React.createElement(import_material4.Box, null, clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
|
|
301
|
+
ref: btn,
|
|
302
|
+
onClick: handleClick
|
|
303
|
+
// onClick: (e) => {
|
|
304
|
+
// clickComponent.props.onClick(e);
|
|
305
|
+
// // e.preventDefault();
|
|
306
|
+
// handleClick(e);
|
|
307
|
+
// },
|
|
308
|
+
}) : /* @__PURE__ */ React.createElement(
|
|
309
|
+
import_material4.Button,
|
|
310
|
+
{
|
|
302
311
|
ref: btn,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
312
|
+
"aria-controls": open ? "basic-menu" : void 0,
|
|
313
|
+
"aria-haspopup": "true",
|
|
314
|
+
"aria-expanded": open ? "true" : void 0,
|
|
315
|
+
onClick: handleClick,
|
|
316
|
+
disableRipple: true,
|
|
317
|
+
fullWidth: true,
|
|
318
|
+
sx: {
|
|
319
|
+
height: small ? "34px" : "49px",
|
|
320
|
+
padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
|
|
321
|
+
},
|
|
322
|
+
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"}`
|
|
323
|
+
},
|
|
324
|
+
/* @__PURE__ */ React.createElement(
|
|
325
|
+
import_material4.Typography,
|
|
306
326
|
{
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"aria-expanded": open ? "true" : void 0,
|
|
311
|
-
onClick: handleClick,
|
|
312
|
-
disableRipple: true,
|
|
313
|
-
fullWidth: true,
|
|
314
|
-
sx: {
|
|
315
|
-
height: small ? "34px" : "49px",
|
|
316
|
-
padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
|
|
317
|
-
},
|
|
318
|
-
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"}`,
|
|
319
|
-
children: [
|
|
320
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
321
|
-
import_material4.Typography,
|
|
322
|
-
{
|
|
323
|
-
className: "text-sm leading-4",
|
|
324
|
-
children: `${placeholder}`
|
|
325
|
-
}
|
|
326
|
-
),
|
|
327
|
-
colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
328
|
-
dropdown_arrow_default,
|
|
329
|
-
{
|
|
330
|
-
style: {
|
|
331
|
-
transform: open ? "scaleY(-1)" : "scaleY(1)",
|
|
332
|
-
transition: "0.3s ease-in-out"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
)
|
|
336
|
-
]
|
|
337
|
-
}
|
|
327
|
+
className: "text-sm leading-4"
|
|
328
|
+
},
|
|
329
|
+
`${placeholder}`
|
|
338
330
|
),
|
|
339
|
-
|
|
340
|
-
|
|
331
|
+
colorBorder ? /* @__PURE__ */ React.createElement(search_default, null) : /* @__PURE__ */ React.createElement(
|
|
332
|
+
dropdown_arrow_default,
|
|
341
333
|
{
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
right: fullContainerWidth ? 0 : "initial",
|
|
347
|
-
top: overButton ? 0 : "initial"
|
|
348
|
-
},
|
|
349
|
-
className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`,
|
|
350
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material4.Box, { className: `flex flex-col p-3 gap-3`, children: [
|
|
351
|
-
overButton ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
352
|
-
IconButton_default,
|
|
353
|
-
{
|
|
354
|
-
className: "bg-accent-silver p-1 self-end absolute",
|
|
355
|
-
onClick: handleClose,
|
|
356
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(close_default, {})
|
|
357
|
-
}
|
|
358
|
-
) : null,
|
|
359
|
-
childTitle ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
360
|
-
import_material4.Typography,
|
|
361
|
-
{
|
|
362
|
-
className: "text-sm font-normal text-accent-silver-2",
|
|
363
|
-
children: childTitle
|
|
364
|
-
}
|
|
365
|
-
) : null,
|
|
366
|
-
childrenWithHandleChange
|
|
367
|
-
] })
|
|
334
|
+
style: {
|
|
335
|
+
transform: open ? "scaleY(-1)" : "scaleY(1)",
|
|
336
|
+
transition: "0.3s ease-in-out"
|
|
337
|
+
}
|
|
368
338
|
}
|
|
369
|
-
)
|
|
370
|
-
|
|
339
|
+
)
|
|
340
|
+
), btn ? /* @__PURE__ */ React.createElement(
|
|
341
|
+
import_material4.Paper,
|
|
342
|
+
{
|
|
343
|
+
sx: {
|
|
344
|
+
position: "absolute",
|
|
345
|
+
width: !fullContainerWidth && btn ? btn.offsetWidth : "100%",
|
|
346
|
+
left: fullContainerWidth ? 0 : "initial",
|
|
347
|
+
right: fullContainerWidth ? 0 : "initial",
|
|
348
|
+
top: overButton ? 0 : "initial"
|
|
349
|
+
},
|
|
350
|
+
className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`
|
|
351
|
+
},
|
|
352
|
+
/* @__PURE__ */ React.createElement(import_material4.Box, { className: `flex flex-col p-3 gap-3` }, overButton ? /* @__PURE__ */ React.createElement(
|
|
353
|
+
IconButton_default,
|
|
354
|
+
{
|
|
355
|
+
className: "bg-accent-silver p-1 self-end absolute",
|
|
356
|
+
onClick: handleClose
|
|
357
|
+
},
|
|
358
|
+
/* @__PURE__ */ React.createElement(close_default, null)
|
|
359
|
+
) : null, childTitle ? /* @__PURE__ */ React.createElement(
|
|
360
|
+
import_material4.Typography,
|
|
361
|
+
{
|
|
362
|
+
className: "text-sm font-normal text-accent-silver-2"
|
|
363
|
+
},
|
|
364
|
+
childTitle
|
|
365
|
+
) : null, childrenWithHandleChange)
|
|
366
|
+
) : null));
|
|
371
367
|
};
|
|
372
368
|
var SelectPro_default = SelectPro;
|
|
373
369
|
|
|
374
370
|
// src/components/Chip/Chip.tsx
|
|
375
371
|
var import_material5 = require("@mui/material");
|
|
376
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
377
372
|
var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
|
|
378
373
|
borderRadius: theme2.shape.borderRadius
|
|
379
374
|
}));
|
|
@@ -385,7 +380,7 @@ var ChipViews = {
|
|
|
385
380
|
};
|
|
386
381
|
var CustomChip = (props) => {
|
|
387
382
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
388
|
-
return /* @__PURE__ */
|
|
383
|
+
return /* @__PURE__ */ React.createElement(
|
|
389
384
|
StyledChip,
|
|
390
385
|
__spreadValues({
|
|
391
386
|
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
@@ -396,61 +391,57 @@ var Chip_default = CustomChip;
|
|
|
396
391
|
|
|
397
392
|
// src/components/Badge/Badge.tsx
|
|
398
393
|
var import_material6 = require("@mui/material");
|
|
399
|
-
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
400
394
|
var CustomBadge = (props) => {
|
|
401
|
-
return /* @__PURE__ */
|
|
395
|
+
return /* @__PURE__ */ React.createElement(import_material6.Badge, __spreadValues({}, props));
|
|
402
396
|
};
|
|
403
397
|
var Badge_default = CustomBadge;
|
|
404
398
|
|
|
405
399
|
// src/components/Avatar/Avatar.tsx
|
|
406
400
|
var import_Avatar = __toESM(require("@mui/material/Avatar"));
|
|
407
|
-
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
408
401
|
var CustomAvatar = (props) => {
|
|
409
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ React.createElement(import_Avatar.default, __spreadValues({}, props));
|
|
410
403
|
};
|
|
411
404
|
var Avatar_default = CustomAvatar;
|
|
412
405
|
|
|
413
406
|
// src/components/Text/Text.tsx
|
|
414
407
|
var import_Typography2 = __toESM(require("@mui/material/Typography"));
|
|
415
|
-
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
416
408
|
var Text = (props) => {
|
|
417
409
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
418
|
-
return /* @__PURE__ */
|
|
410
|
+
return /* @__PURE__ */ React.createElement(import_Typography2.default, __spreadValues({}, rest), children);
|
|
419
411
|
};
|
|
420
412
|
var Text_default = Text;
|
|
421
413
|
|
|
422
414
|
// src/components/Radio/Radio.tsx
|
|
415
|
+
var import_react3 = __toESM(require("react"));
|
|
423
416
|
var import_Radio = __toESM(require("@mui/material/Radio"));
|
|
424
417
|
var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"));
|
|
425
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
426
418
|
var CustomRadio = (props) => {
|
|
427
419
|
const { value, label, radioProps, labelProps } = props;
|
|
428
420
|
if (label && value)
|
|
429
|
-
return /* @__PURE__ */
|
|
421
|
+
return /* @__PURE__ */ import_react3.default.createElement(
|
|
430
422
|
import_FormControlLabel.default,
|
|
431
423
|
__spreadValues({
|
|
432
424
|
value,
|
|
433
|
-
control: /* @__PURE__ */
|
|
425
|
+
control: /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps)),
|
|
434
426
|
label
|
|
435
427
|
}, labelProps)
|
|
436
428
|
);
|
|
437
|
-
return /* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps));
|
|
438
430
|
};
|
|
439
431
|
var Radio_default = CustomRadio;
|
|
440
432
|
|
|
441
433
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
434
|
+
var import_react4 = __toESM(require("react"));
|
|
442
435
|
var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"));
|
|
443
|
-
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
444
436
|
var CustomRadioGroup = (props) => {
|
|
445
437
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
446
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ import_react4.default.createElement(import_RadioGroup.default, __spreadValues({}, rest), children);
|
|
447
439
|
};
|
|
448
440
|
var RadioGroup_default = CustomRadioGroup;
|
|
449
441
|
|
|
450
442
|
// src/components/Switch/Switch.tsx
|
|
451
443
|
var import_material7 = require("@mui/material");
|
|
452
444
|
var import_Typography3 = __toESM(require("@mui/material/Typography"));
|
|
453
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
454
445
|
var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: theme2 }) => ({
|
|
455
446
|
width: 60,
|
|
456
447
|
height: 30,
|
|
@@ -494,26 +485,20 @@ var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: the
|
|
|
494
485
|
}));
|
|
495
486
|
var CustomSwitch = (props) => {
|
|
496
487
|
const _a = props, { beforeText, afterText } = _a, rest = __objRest(_a, ["beforeText", "afterText"]);
|
|
497
|
-
return /* @__PURE__ */
|
|
498
|
-
beforeText ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography3.default, { className: "text-base", children: beforeText }) : null,
|
|
499
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })),
|
|
500
|
-
afterText ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography3.default, { className: "text-base", children: afterText }) : null
|
|
501
|
-
] });
|
|
488
|
+
return /* @__PURE__ */ React.createElement(import_material7.Stack, { direction: "row", spacing: 1, alignItems: "center" }, beforeText ? /* @__PURE__ */ React.createElement(import_Typography3.default, { className: "text-base" }, beforeText) : null, /* @__PURE__ */ React.createElement(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })), afterText ? /* @__PURE__ */ React.createElement(import_Typography3.default, { className: "text-base" }, afterText) : null);
|
|
502
489
|
};
|
|
503
490
|
var Switch_default = CustomSwitch;
|
|
504
491
|
|
|
505
492
|
// src/components/Slider/Slider.tsx
|
|
506
493
|
var import_material8 = require("@mui/material");
|
|
507
|
-
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
508
494
|
var StyledSlider = (0, import_material8.styled)(import_material8.Slider)(() => ({}));
|
|
509
495
|
var CustomSlider = (props) => {
|
|
510
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ React.createElement(StyledSlider, __spreadValues({}, props));
|
|
511
497
|
};
|
|
512
498
|
var Slider_default = CustomSlider;
|
|
513
499
|
|
|
514
500
|
// src/components/MenuItem/MenuItem.tsx
|
|
515
501
|
var import_material9 = require("@mui/material");
|
|
516
|
-
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
517
502
|
var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(() => ({
|
|
518
503
|
borderRadius: "5px",
|
|
519
504
|
"&.Mui-selected": {
|
|
@@ -523,14 +508,13 @@ var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(()
|
|
|
523
508
|
}));
|
|
524
509
|
var CustomMenuItem = (props) => {
|
|
525
510
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
526
|
-
return /* @__PURE__ */
|
|
511
|
+
return /* @__PURE__ */ React.createElement(StyledMenuItem, __spreadValues({}, rest), children);
|
|
527
512
|
};
|
|
528
513
|
var MenuItem_default = CustomMenuItem;
|
|
529
514
|
|
|
530
515
|
// src/components/Input/Input.tsx
|
|
531
516
|
var import_material10 = require("@mui/material");
|
|
532
517
|
var import_Input = __toESM(require("@mui/material/Input"));
|
|
533
|
-
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
534
518
|
var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
|
|
535
519
|
"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button": {
|
|
536
520
|
display: "none"
|
|
@@ -542,17 +526,17 @@ var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
|
|
|
542
526
|
var CustomInput = (props) => {
|
|
543
527
|
const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
|
|
544
528
|
const handleKeyDown = (event) => {
|
|
545
|
-
if (!/[0-9]/.test(event.key) && event.key !== "Backspace") {
|
|
529
|
+
if (type === "number" && !/[0-9]/.test(event.key) && event.key !== "Backspace") {
|
|
546
530
|
event.preventDefault();
|
|
547
531
|
event.stopPropagation();
|
|
548
532
|
}
|
|
549
533
|
};
|
|
550
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ React.createElement(
|
|
551
535
|
StyledInput,
|
|
552
536
|
__spreadValues({
|
|
553
537
|
disableUnderline: true,
|
|
554
538
|
onKeyDown: handleKeyDown,
|
|
555
|
-
startAdornment: adornmentText ? /* @__PURE__ */
|
|
539
|
+
startAdornment: adornmentText ? /* @__PURE__ */ React.createElement(import_material10.InputAdornment, { position: "start", className: "text-sm" }, adornmentText) : void 0,
|
|
556
540
|
value,
|
|
557
541
|
componentsProps: {
|
|
558
542
|
root: {
|
|
@@ -567,12 +551,11 @@ var Input_default = CustomInput;
|
|
|
567
551
|
|
|
568
552
|
// src/components/Input/PhoneInput.tsx
|
|
569
553
|
var import_react_number_format = require("react-number-format");
|
|
570
|
-
var
|
|
571
|
-
var
|
|
572
|
-
var PhoneInput = (0, import_react3.forwardRef)(
|
|
554
|
+
var import_react5 = require("react");
|
|
555
|
+
var PhoneInput = (0, import_react5.forwardRef)(
|
|
573
556
|
function NumericFormatCustom(props, ref) {
|
|
574
557
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
575
|
-
return /* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ React.createElement(
|
|
576
559
|
import_react_number_format.PatternFormat,
|
|
577
560
|
__spreadProps(__spreadValues({}, other), {
|
|
578
561
|
getInputRef: ref,
|
|
@@ -596,23 +579,16 @@ var PhoneInput_default = PhoneInput;
|
|
|
596
579
|
// src/components/Input/FromToInput.tsx
|
|
597
580
|
var import_material11 = require("@mui/material");
|
|
598
581
|
var import_Typography4 = __toESM(require("@mui/material/Typography"));
|
|
599
|
-
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
600
582
|
var FromToInput = ({ label }) => {
|
|
601
|
-
return /* @__PURE__ */ (
|
|
602
|
-
label ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Typography4.default, { className: "text-accent-dark text-xs", children: label }) : null,
|
|
603
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_material11.Stack, { direction: "row", spacing: 1, children: [
|
|
604
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }),
|
|
605
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })
|
|
606
|
-
] })
|
|
607
|
-
] });
|
|
583
|
+
return /* @__PURE__ */ React.createElement(import_material11.Stack, null, label ? /* @__PURE__ */ React.createElement(import_Typography4.default, { className: "text-accent-dark text-xs" }, label) : null, /* @__PURE__ */ React.createElement(import_material11.Stack, { direction: "row", spacing: 1 }, /* @__PURE__ */ React.createElement(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }), /* @__PURE__ */ React.createElement(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })));
|
|
608
584
|
};
|
|
609
585
|
var FromToInput_default = FromToInput;
|
|
610
586
|
|
|
611
587
|
// src/theme/index.tsx
|
|
612
|
-
var
|
|
588
|
+
var import_react6 = require("react");
|
|
613
589
|
var import_cache = __toESM(require("@emotion/cache"));
|
|
614
590
|
var import_navigation = require("next/navigation");
|
|
615
|
-
var
|
|
591
|
+
var import_react7 = require("@emotion/react");
|
|
616
592
|
var import_ThemeProvider = __toESM(require("@mui/material/styles/ThemeProvider"));
|
|
617
593
|
var import_createTheme = __toESM(require("@mui/material/styles/createTheme"));
|
|
618
594
|
var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
|
|
@@ -655,11 +631,10 @@ var _theme = {
|
|
|
655
631
|
};
|
|
656
632
|
|
|
657
633
|
// src/theme/index.tsx
|
|
658
|
-
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
659
634
|
var theme = (0, import_createTheme.default)(__spreadValues({}, _theme));
|
|
660
635
|
function ThemeRegistry(props) {
|
|
661
636
|
const { children } = props;
|
|
662
|
-
const [{ cache, flush }] = (0,
|
|
637
|
+
const [{ cache, flush }] = (0, import_react6.useState)(() => {
|
|
663
638
|
const cache2 = (0, import_cache.default)({
|
|
664
639
|
key: "mui",
|
|
665
640
|
stylisPlugins: [import_stylis.prefixer]
|
|
@@ -688,39 +663,34 @@ function ThemeRegistry(props) {
|
|
|
688
663
|
for (const name of names) {
|
|
689
664
|
styles += cache.inserted[name];
|
|
690
665
|
}
|
|
691
|
-
return /* @__PURE__ */
|
|
666
|
+
return /* @__PURE__ */ React.createElement(
|
|
692
667
|
"style",
|
|
693
668
|
{
|
|
669
|
+
key: cache.key,
|
|
694
670
|
"data-emotion": `${cache.key} ${names.join(" ")}`,
|
|
695
671
|
dangerouslySetInnerHTML: {
|
|
696
672
|
__html: styles
|
|
697
673
|
}
|
|
698
|
-
}
|
|
699
|
-
cache.key
|
|
674
|
+
}
|
|
700
675
|
);
|
|
701
676
|
});
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_CssBaseline.default, {}),
|
|
704
|
-
children
|
|
705
|
-
] }) });
|
|
677
|
+
return /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children));
|
|
706
678
|
}
|
|
707
679
|
|
|
708
680
|
// src/providers/Providers.tsx
|
|
709
|
-
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
710
681
|
var Providers = ({ children }) => {
|
|
711
|
-
return /* @__PURE__ */
|
|
682
|
+
return /* @__PURE__ */ React.createElement(ThemeRegistry, null, children);
|
|
712
683
|
};
|
|
713
684
|
var Providers_default = Providers;
|
|
714
685
|
|
|
715
686
|
// src/components/AppBar/AppBar.tsx
|
|
716
|
-
var
|
|
687
|
+
var import_react8 = require("react");
|
|
717
688
|
var import_material12 = require("@mui/material");
|
|
718
689
|
var import_link = __toESM(require("next/link"));
|
|
719
|
-
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
720
690
|
var AppBar = ({ links }) => {
|
|
721
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
722
|
-
const navItemsRef = (0,
|
|
723
|
-
(0,
|
|
691
|
+
const [activeIndex, setActiveIndex] = (0, import_react8.useState)(0);
|
|
692
|
+
const navItemsRef = (0, import_react8.useRef)([]);
|
|
693
|
+
(0, import_react8.useEffect)(() => {
|
|
724
694
|
const indicator = document.querySelector(".nav-indicator");
|
|
725
695
|
const navItem = navItemsRef.current[activeIndex];
|
|
726
696
|
const navItemWidth = navItem.offsetWidth;
|
|
@@ -734,29 +704,25 @@ var AppBar = ({ links }) => {
|
|
|
734
704
|
const handleClick = (index) => {
|
|
735
705
|
setActiveIndex(index);
|
|
736
706
|
};
|
|
737
|
-
return /* @__PURE__ */
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
ref: (el) => {
|
|
743
|
-
navItemsRef.current[index] = el;
|
|
744
|
-
},
|
|
745
|
-
href: link.path,
|
|
746
|
-
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
747
|
-
onClick: () => handleClick(index),
|
|
748
|
-
children: link.title
|
|
707
|
+
return /* @__PURE__ */ React.createElement(import_material12.Stack, { direction: "row", spacing: 1, position: "relative" }, /* @__PURE__ */ React.createElement(import_material12.Box, { className: "nav-indicator" }), links.map((link, index) => /* @__PURE__ */ React.createElement(
|
|
708
|
+
import_link.default,
|
|
709
|
+
{
|
|
710
|
+
ref: (el) => {
|
|
711
|
+
navItemsRef.current[index] = el;
|
|
749
712
|
},
|
|
750
|
-
index
|
|
751
|
-
|
|
752
|
-
|
|
713
|
+
key: index,
|
|
714
|
+
href: link.path,
|
|
715
|
+
className: `nav-item ${index === activeIndex ? "active" : ""} hover:text-accent-beige`,
|
|
716
|
+
onClick: () => handleClick(index)
|
|
717
|
+
},
|
|
718
|
+
link.title
|
|
719
|
+
)));
|
|
753
720
|
};
|
|
754
721
|
var AppBar_default = AppBar;
|
|
755
722
|
|
|
756
723
|
// src/components/Image/ImageContainer.tsx
|
|
757
724
|
var import_material13 = require("@mui/material");
|
|
758
725
|
var import_image = __toESM(require("next/image"));
|
|
759
|
-
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
760
726
|
var ImageContainer = (props) => {
|
|
761
727
|
const {
|
|
762
728
|
src,
|
|
@@ -768,7 +734,7 @@ var ImageContainer = (props) => {
|
|
|
768
734
|
loading = "lazy",
|
|
769
735
|
objectFit = "object-cover"
|
|
770
736
|
} = props;
|
|
771
|
-
return /* @__PURE__ */
|
|
737
|
+
return /* @__PURE__ */ React.createElement(import_material13.Box, { className: `relative ${width} ${height}` }, /* @__PURE__ */ React.createElement(
|
|
772
738
|
import_image.default,
|
|
773
739
|
{
|
|
774
740
|
className: `${objectFit} object-center`,
|
|
@@ -779,12 +745,14 @@ var ImageContainer = (props) => {
|
|
|
779
745
|
sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",
|
|
780
746
|
priority
|
|
781
747
|
}
|
|
782
|
-
)
|
|
748
|
+
));
|
|
783
749
|
};
|
|
784
750
|
var ImageContainer_default = ImageContainer;
|
|
785
751
|
|
|
786
752
|
// src/icons/map-search.svg
|
|
787
|
-
var
|
|
753
|
+
var React7 = __toESM(require("react"));
|
|
754
|
+
var SvgMapSearch = (props) => /* @__PURE__ */ React7.createElement("svg", __spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), /* @__PURE__ */ React7.createElement("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
755
|
+
var map_search_default = SvgMapSearch;
|
|
788
756
|
|
|
789
757
|
// src/components/Card/CategoryCard.tsx
|
|
790
758
|
var import_material14 = require("@mui/material");
|
|
@@ -794,23 +762,16 @@ var import_link2 = __toESM(require("next/link"));
|
|
|
794
762
|
var NO_IMAGE = "/images/no-photo.svg";
|
|
795
763
|
|
|
796
764
|
// src/components/Card/CategoryCard.tsx
|
|
797
|
-
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
798
765
|
var CategoryCard = (props) => {
|
|
799
766
|
const { link, text, title, image_url = NO_IMAGE } = props;
|
|
800
|
-
return /* @__PURE__ */
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
children: title
|
|
809
|
-
}
|
|
810
|
-
),
|
|
811
|
-
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_material14.Typography, { component: "span", className: "group-hover/card:text-gold2", children: text })
|
|
812
|
-
] })
|
|
813
|
-
] }) });
|
|
767
|
+
return /* @__PURE__ */ React.createElement(import_link2.default, { href: link, className: "group/card" }, /* @__PURE__ */ React.createElement(import_material14.Box, { className: "flex flex-col gap-[20px]" }, /* @__PURE__ */ React.createElement(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }), /* @__PURE__ */ React.createElement(import_material14.Box, { className: "flex flex-col px-[16px]" }, /* @__PURE__ */ React.createElement(
|
|
768
|
+
import_material14.Typography,
|
|
769
|
+
{
|
|
770
|
+
component: "span",
|
|
771
|
+
className: "font-extrabold text-16 group-hover/card:text-gold2"
|
|
772
|
+
},
|
|
773
|
+
title
|
|
774
|
+
), /* @__PURE__ */ React.createElement(import_material14.Typography, { component: "span", className: "group-hover/card:text-gold2" }, text))));
|
|
814
775
|
};
|
|
815
776
|
var CategoryCard_default = CategoryCard;
|
|
816
777
|
|
|
@@ -818,139 +779,184 @@ var CategoryCard_default = CategoryCard;
|
|
|
818
779
|
var import_link3 = __toESM(require("next/link"));
|
|
819
780
|
var import_material15 = require("@mui/material");
|
|
820
781
|
var import_Typography5 = __toESM(require("@mui/material/Typography"));
|
|
821
|
-
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
822
782
|
var ArticleCard = (props) => {
|
|
823
783
|
const { image_src = NO_IMAGE } = props;
|
|
824
|
-
return /* @__PURE__ */
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
className: "text-gray group-hover/card:text-gold2",
|
|
848
|
-
children: "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
|
|
849
|
-
}
|
|
850
|
-
),
|
|
851
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_Typography5.default, { component: "span", className: "border-gold-block-snack", children: "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430" })
|
|
852
|
-
] })
|
|
853
|
-
] });
|
|
784
|
+
return /* @__PURE__ */ React.createElement(import_link3.default, { href: "/", className: "group/card bg-gray-light" }, /* @__PURE__ */ React.createElement(
|
|
785
|
+
ImageContainer_default,
|
|
786
|
+
{
|
|
787
|
+
src: image_src,
|
|
788
|
+
alt: "test",
|
|
789
|
+
contentful: false,
|
|
790
|
+
height: "h-[220px]"
|
|
791
|
+
}
|
|
792
|
+
), /* @__PURE__ */ React.createElement(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]" }, /* @__PURE__ */ React.createElement(
|
|
793
|
+
import_Typography5.default,
|
|
794
|
+
{
|
|
795
|
+
component: "span",
|
|
796
|
+
className: "text-16 font-extrabold group-hover/card:text-gold2"
|
|
797
|
+
},
|
|
798
|
+
"\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
|
|
799
|
+
), /* @__PURE__ */ React.createElement(
|
|
800
|
+
import_Typography5.default,
|
|
801
|
+
{
|
|
802
|
+
component: "span",
|
|
803
|
+
className: "text-gray group-hover/card:text-gold2"
|
|
804
|
+
},
|
|
805
|
+
"We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
|
|
806
|
+
), /* @__PURE__ */ React.createElement(import_Typography5.default, { component: "span", className: "border-gold-block-snack" }, "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430")));
|
|
854
807
|
};
|
|
855
808
|
var ArticleCard_default = ArticleCard;
|
|
856
809
|
|
|
857
810
|
// src/components/Card/JobCard.tsx
|
|
858
|
-
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
859
811
|
var JobCard = () => {
|
|
860
|
-
return /* @__PURE__ */
|
|
812
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
861
813
|
};
|
|
862
814
|
var JobCard_default = JobCard;
|
|
863
815
|
|
|
864
816
|
// src/components/Card/RealtorCard.tsx
|
|
865
|
-
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
866
817
|
var RealtorCard = () => {
|
|
867
|
-
return /* @__PURE__ */
|
|
818
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
868
819
|
};
|
|
869
820
|
var RealtorCard_default = RealtorCard;
|
|
870
821
|
|
|
871
822
|
// src/components/Card/RealtyCard.tsx
|
|
872
823
|
var import_material16 = require("@mui/material");
|
|
873
824
|
var import_link4 = __toESM(require("next/link"));
|
|
874
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
875
825
|
var RealtyCard = () => {
|
|
876
|
-
return /* @__PURE__ */
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }),
|
|
892
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.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" }),
|
|
893
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material16.Typography, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
|
|
894
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
895
|
-
Chip_default,
|
|
896
|
-
{
|
|
897
|
-
view: "silver",
|
|
898
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material16.Stack, { direction: "row", spacing: 1, children: [
|
|
899
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material16.Typography, { children: "\u043C\u0435\u0442\u0440\u043E:" }),
|
|
900
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material16.Typography, { className: "font-extrabold", children: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
|
|
901
|
-
] })
|
|
902
|
-
}
|
|
903
|
-
),
|
|
904
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
905
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
906
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
907
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
908
|
-
] })
|
|
909
|
-
] })
|
|
910
|
-
] });
|
|
826
|
+
return /* @__PURE__ */ React.createElement(import_link4.default, { href: "/", className: "relative" }, /* @__PURE__ */ React.createElement(import_material16.Box, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "white", label: "id: 00154" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })), /* @__PURE__ */ React.createElement(
|
|
827
|
+
ImageContainer_default,
|
|
828
|
+
{
|
|
829
|
+
src: "/images/test.png",
|
|
830
|
+
alt: "test",
|
|
831
|
+
height: "h-[260px]",
|
|
832
|
+
contentful: false
|
|
833
|
+
}
|
|
834
|
+
), /* @__PURE__ */ React.createElement(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }), /* @__PURE__ */ React.createElement(import_material16.Typography, { component: "span", className: "font-extrabold" }, "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25"), /* @__PURE__ */ React.createElement(import_material16.Typography, { component: "span", className: "text-12" }, "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D"), /* @__PURE__ */ React.createElement(
|
|
835
|
+
Chip_default,
|
|
836
|
+
{
|
|
837
|
+
view: "silver",
|
|
838
|
+
label: /* @__PURE__ */ React.createElement(import_material16.Stack, { direction: "row", spacing: 1 }, /* @__PURE__ */ React.createElement(import_material16.Typography, null, "\u043C\u0435\u0442\u0440\u043E:"), /* @__PURE__ */ React.createElement(import_material16.Typography, { className: "font-extrabold" }, "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430"))
|
|
839
|
+
}
|
|
840
|
+
), /* @__PURE__ */ React.createElement(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]" }, /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "60 \u043C\xB2" }), /* @__PURE__ */ React.createElement(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" }))));
|
|
911
841
|
};
|
|
912
842
|
var RealtyCard_default = RealtyCard;
|
|
913
843
|
|
|
914
844
|
// src/components/Card/TeamPersonCard.tsx
|
|
915
845
|
var import_material17 = require("@mui/material");
|
|
916
|
-
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
917
846
|
var TeamPersonCard = (props) => {
|
|
918
847
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
919
|
-
return /* @__PURE__ */ (
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
{
|
|
936
|
-
component: "span",
|
|
937
|
-
className: "mt-[11px] text-12 !leading-[16px]",
|
|
938
|
-
children: text
|
|
939
|
-
}
|
|
940
|
-
)
|
|
941
|
-
] })
|
|
942
|
-
] }),
|
|
943
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
944
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
945
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_material17.Typography, { component: "span", className: "text-gray", children: name })
|
|
946
|
-
] })
|
|
947
|
-
] });
|
|
848
|
+
return /* @__PURE__ */ React.createElement(import_material17.Box, { className: "group/card" }, /* @__PURE__ */ React.createElement(import_material17.Box, { className: "relative h-[300px]" }, /* @__PURE__ */ React.createElement(import_material17.Box, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]" }, /* @__PURE__ */ React.createElement(
|
|
849
|
+
ImageContainer_default,
|
|
850
|
+
{
|
|
851
|
+
contentful: false,
|
|
852
|
+
src: image_url,
|
|
853
|
+
alt: name,
|
|
854
|
+
objectFit: "object-contain"
|
|
855
|
+
}
|
|
856
|
+
)), /* @__PURE__ */ React.createElement(import_material17.Box, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white" }, /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-16 font-extrabold" }, position), /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "mt-[4px]" }, name), /* @__PURE__ */ React.createElement(
|
|
857
|
+
import_material17.Typography,
|
|
858
|
+
{
|
|
859
|
+
component: "span",
|
|
860
|
+
className: "mt-[11px] text-12 !leading-[16px]"
|
|
861
|
+
},
|
|
862
|
+
text
|
|
863
|
+
))), /* @__PURE__ */ React.createElement(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12" }, /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-16 font-extrabold" }, position), /* @__PURE__ */ React.createElement(import_material17.Typography, { component: "span", className: "text-gray" }, name)));
|
|
948
864
|
};
|
|
949
865
|
var TeamPersonCard_default = TeamPersonCard;
|
|
866
|
+
|
|
867
|
+
// src/components/Autocomplete/Autocomplete.tsx
|
|
868
|
+
var import_react9 = require("react");
|
|
869
|
+
var import_material18 = require("@mui/material");
|
|
870
|
+
var import_react_hook_form = require("react-hook-form");
|
|
871
|
+
var RenderInputAutocomplete = (_a) => {
|
|
872
|
+
var _b = _a, {
|
|
873
|
+
InputProps: InputProps2,
|
|
874
|
+
InputLabelProps
|
|
875
|
+
} = _b, other = __objRest(_b, [
|
|
876
|
+
"InputProps",
|
|
877
|
+
"InputLabelProps"
|
|
878
|
+
]);
|
|
879
|
+
return /* @__PURE__ */ React.createElement(import_material18.Box, { ref: InputProps2.ref }, /* @__PURE__ */ React.createElement(
|
|
880
|
+
import_material18.Input,
|
|
881
|
+
__spreadProps(__spreadValues(__spreadValues({}, InputProps2), other), {
|
|
882
|
+
startAdornment: /* @__PURE__ */ React.createElement(import_material18.Stack, { direction: "row", alignItems: "center" }, /* @__PURE__ */ React.createElement(import_material18.InputAdornment, { position: "start" }, /* @__PURE__ */ React.createElement(search_default, null)), InputProps2.startAdornment),
|
|
883
|
+
endAdornment: /* @__PURE__ */ React.createElement(React.Fragment, null),
|
|
884
|
+
ref: InputProps2.ref,
|
|
885
|
+
disableUnderline: true,
|
|
886
|
+
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
887
|
+
componentsProps: {
|
|
888
|
+
root: {
|
|
889
|
+
className: "border rounded-none border-solid normal-case text-accent-dark hover:bg-white border-accent-beige gap-x-2 px-5 !py-2"
|
|
890
|
+
}
|
|
891
|
+
// input: {
|
|
892
|
+
// className: "w-full",
|
|
893
|
+
// },
|
|
894
|
+
}
|
|
895
|
+
})
|
|
896
|
+
));
|
|
897
|
+
};
|
|
898
|
+
var CustomPaperComponent = (props) => {
|
|
899
|
+
return /* @__PURE__ */ React.createElement(import_material18.Paper, __spreadValues({}, props), /* @__PURE__ */ React.createElement("div", { key: "click-away-wrapper" }, "helllooo", props.children));
|
|
900
|
+
};
|
|
901
|
+
var Autocomplete = (props) => {
|
|
902
|
+
const { values } = props;
|
|
903
|
+
const [open, setOpen] = (0, import_react9.useState)(false);
|
|
904
|
+
const [anchorEl, setAnchorEl] = (0, import_react9.useState)(null);
|
|
905
|
+
const { field } = (0, import_react_hook_form.useController)(props);
|
|
906
|
+
const handleClick = (event) => {
|
|
907
|
+
if (open)
|
|
908
|
+
setTimeout(() => {
|
|
909
|
+
setAnchorEl(null);
|
|
910
|
+
}, 200);
|
|
911
|
+
else setAnchorEl(event.currentTarget);
|
|
912
|
+
setOpen(!open);
|
|
913
|
+
};
|
|
914
|
+
return /* @__PURE__ */ React.createElement(
|
|
915
|
+
import_material18.Autocomplete,
|
|
916
|
+
{
|
|
917
|
+
multiple: true,
|
|
918
|
+
ref: anchorEl,
|
|
919
|
+
open: !!anchorEl,
|
|
920
|
+
onOpen: handleClick,
|
|
921
|
+
onClose: handleClick,
|
|
922
|
+
onChange: (_event, values2) => {
|
|
923
|
+
field.onChange(values2);
|
|
924
|
+
},
|
|
925
|
+
disableCloseOnSelect: true,
|
|
926
|
+
options: values,
|
|
927
|
+
PaperComponent: CustomPaperComponent,
|
|
928
|
+
renderTags: (value, getTagProps) => value.map((option, index) => {
|
|
929
|
+
const _a = getTagProps({ index }), { key } = _a, tagProps = __objRest(_a, ["key"]);
|
|
930
|
+
return /* @__PURE__ */ React.createElement(
|
|
931
|
+
import_material18.Chip,
|
|
932
|
+
__spreadProps(__spreadValues({
|
|
933
|
+
label: option,
|
|
934
|
+
key
|
|
935
|
+
}, tagProps), {
|
|
936
|
+
deleteIcon: /* @__PURE__ */ React.createElement(IconButton_default, { className: "rounded-none bg-accent-silver p-1" }, /* @__PURE__ */ React.createElement(close_default, null)),
|
|
937
|
+
className: "rounded-none w-fit h-fit bg-transparent p-0"
|
|
938
|
+
})
|
|
939
|
+
);
|
|
940
|
+
}),
|
|
941
|
+
slotProps: {
|
|
942
|
+
paper: {
|
|
943
|
+
sx: {},
|
|
944
|
+
className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
renderInput: (params) => /* @__PURE__ */ React.createElement(
|
|
948
|
+
RenderInputAutocomplete,
|
|
949
|
+
__spreadValues({}, params)
|
|
950
|
+
)
|
|
951
|
+
}
|
|
952
|
+
);
|
|
953
|
+
};
|
|
954
|
+
var Autocomplete_default = Autocomplete;
|
|
950
955
|
// Annotate the CommonJS export names for ESM import in node:
|
|
951
956
|
0 && (module.exports = {
|
|
952
957
|
AppBar,
|
|
953
958
|
ArticleCard,
|
|
959
|
+
Autocomplete,
|
|
954
960
|
Avatar,
|
|
955
961
|
Badge,
|
|
956
962
|
Button,
|