mayak-common-library 0.0.16 → 0.0.17
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.js +124 -109
- package/dist/index.mjs +124 -109
- 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
|
@@ -169,10 +169,13 @@ var import_react = require("react");
|
|
|
169
169
|
var import_material3 = require("@mui/material");
|
|
170
170
|
|
|
171
171
|
// src/icons/dropdown-arrow.svg
|
|
172
|
-
var
|
|
172
|
+
var React = __toESM(require("react"));
|
|
173
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
174
|
+
var SvgDropdownArrow = (props) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("svg", __spreadProps(__spreadValues({ width: 13, height: 7, viewBox: "0 0 13 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 6.25L6.5 0.75L1 6.25", stroke: "#343434", strokeLinecap: "round" }) }));
|
|
175
|
+
var dropdown_arrow_default = SvgDropdownArrow;
|
|
173
176
|
|
|
174
177
|
// src/components/Select/Select.tsx
|
|
175
|
-
var
|
|
178
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
176
179
|
var StyledSelect = (0, import_material3.styled)(import_material3.Select)(({ open }) => ({
|
|
177
180
|
minWidth: 250,
|
|
178
181
|
"&.MuiInputBase-root": {
|
|
@@ -224,7 +227,7 @@ var CustomSelect = (props) => {
|
|
|
224
227
|
var _a2;
|
|
225
228
|
if (!open) (_a2 = myRef.current) == null ? void 0 : _a2.classList.remove("Mui-focused");
|
|
226
229
|
}, [open]);
|
|
227
|
-
return /* @__PURE__ */ (0,
|
|
230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
228
231
|
StyledSelect,
|
|
229
232
|
__spreadProps(__spreadValues({}, rest), {
|
|
230
233
|
ref: myRef,
|
|
@@ -249,7 +252,7 @@ var CustomSelect = (props) => {
|
|
|
249
252
|
}
|
|
250
253
|
}
|
|
251
254
|
},
|
|
252
|
-
IconComponent: () => /* @__PURE__ */ (0,
|
|
255
|
+
IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(dropdown_arrow_default, {}),
|
|
253
256
|
children
|
|
254
257
|
})
|
|
255
258
|
);
|
|
@@ -257,17 +260,26 @@ var CustomSelect = (props) => {
|
|
|
257
260
|
var Select_default = CustomSelect;
|
|
258
261
|
|
|
259
262
|
// src/icons/search.svg
|
|
260
|
-
var
|
|
263
|
+
var React2 = __toESM(require("react"));
|
|
264
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
265
|
+
var SvgSearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("svg", __spreadProps(__spreadValues({ width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("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" }) }));
|
|
266
|
+
var search_default = SvgSearch;
|
|
261
267
|
|
|
262
268
|
// src/components/Select/SelectPro.tsx
|
|
263
269
|
var import_react2 = require("react");
|
|
264
270
|
var import_material4 = require("@mui/material");
|
|
265
271
|
|
|
266
272
|
// src/icons/close.svg
|
|
267
|
-
var
|
|
273
|
+
var React3 = __toESM(require("react"));
|
|
274
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
275
|
+
var SvgClose = (props) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("svg", __spreadProps(__spreadValues({ width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
276
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M1 7.5L7.5 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
277
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { d: "M7.5 7.5L1 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
278
|
+
] }));
|
|
279
|
+
var close_default = SvgClose;
|
|
268
280
|
|
|
269
281
|
// src/components/Select/SelectPro.tsx
|
|
270
|
-
var
|
|
282
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
271
283
|
var SelectPro = ({
|
|
272
284
|
children,
|
|
273
285
|
placeholder,
|
|
@@ -297,11 +309,11 @@ var SelectPro = ({
|
|
|
297
309
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
298
310
|
collapseParent: handleClose
|
|
299
311
|
}) : children;
|
|
300
|
-
return /* @__PURE__ */ (0,
|
|
312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { children: [
|
|
301
313
|
clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
|
|
302
314
|
ref: btn,
|
|
303
315
|
onClick: handleClick
|
|
304
|
-
}) : /* @__PURE__ */ (0,
|
|
316
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
305
317
|
import_material4.Button,
|
|
306
318
|
{
|
|
307
319
|
ref: btn,
|
|
@@ -317,14 +329,14 @@ var SelectPro = ({
|
|
|
317
329
|
},
|
|
318
330
|
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
331
|
children: [
|
|
320
|
-
/* @__PURE__ */ (0,
|
|
332
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
321
333
|
import_material4.Typography,
|
|
322
334
|
{
|
|
323
335
|
className: "text-sm leading-4",
|
|
324
336
|
children: `${placeholder}`
|
|
325
337
|
}
|
|
326
338
|
),
|
|
327
|
-
colorBorder ? /* @__PURE__ */ (0,
|
|
339
|
+
colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
328
340
|
dropdown_arrow_default,
|
|
329
341
|
{
|
|
330
342
|
style: {
|
|
@@ -336,7 +348,7 @@ var SelectPro = ({
|
|
|
336
348
|
]
|
|
337
349
|
}
|
|
338
350
|
),
|
|
339
|
-
btn ? /* @__PURE__ */ (0,
|
|
351
|
+
btn ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
340
352
|
import_material4.Paper,
|
|
341
353
|
{
|
|
342
354
|
sx: {
|
|
@@ -347,16 +359,16 @@ var SelectPro = ({
|
|
|
347
359
|
top: overButton ? 0 : "initial"
|
|
348
360
|
},
|
|
349
361
|
className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`,
|
|
350
|
-
children: /* @__PURE__ */ (0,
|
|
351
|
-
overButton ? /* @__PURE__ */ (0,
|
|
362
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col p-3 gap-3`, children: [
|
|
363
|
+
overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
352
364
|
IconButton_default,
|
|
353
365
|
{
|
|
354
366
|
className: "bg-accent-silver p-1 self-end absolute",
|
|
355
367
|
onClick: handleClose,
|
|
356
|
-
children: /* @__PURE__ */ (0,
|
|
368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
|
|
357
369
|
}
|
|
358
370
|
) : null,
|
|
359
|
-
childTitle ? /* @__PURE__ */ (0,
|
|
371
|
+
childTitle ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
360
372
|
import_material4.Typography,
|
|
361
373
|
{
|
|
362
374
|
className: "text-sm font-normal text-accent-silver-2",
|
|
@@ -373,7 +385,7 @@ var SelectPro_default = SelectPro;
|
|
|
373
385
|
|
|
374
386
|
// src/components/Chip/Chip.tsx
|
|
375
387
|
var import_material5 = require("@mui/material");
|
|
376
|
-
var
|
|
388
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
377
389
|
var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
|
|
378
390
|
borderRadius: theme2.shape.borderRadius
|
|
379
391
|
}));
|
|
@@ -385,7 +397,7 @@ var ChipViews = {
|
|
|
385
397
|
};
|
|
386
398
|
var CustomChip = (props) => {
|
|
387
399
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
388
|
-
return /* @__PURE__ */ (0,
|
|
400
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
389
401
|
StyledChip,
|
|
390
402
|
__spreadValues({
|
|
391
403
|
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
@@ -396,61 +408,61 @@ var Chip_default = CustomChip;
|
|
|
396
408
|
|
|
397
409
|
// src/components/Badge/Badge.tsx
|
|
398
410
|
var import_material6 = require("@mui/material");
|
|
399
|
-
var
|
|
411
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
400
412
|
var CustomBadge = (props) => {
|
|
401
|
-
return /* @__PURE__ */ (0,
|
|
413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material6.Badge, __spreadValues({}, props));
|
|
402
414
|
};
|
|
403
415
|
var Badge_default = CustomBadge;
|
|
404
416
|
|
|
405
417
|
// src/components/Avatar/Avatar.tsx
|
|
406
418
|
var import_Avatar = __toESM(require("@mui/material/Avatar"));
|
|
407
|
-
var
|
|
419
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
408
420
|
var CustomAvatar = (props) => {
|
|
409
|
-
return /* @__PURE__ */ (0,
|
|
421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_Avatar.default, __spreadValues({}, props));
|
|
410
422
|
};
|
|
411
423
|
var Avatar_default = CustomAvatar;
|
|
412
424
|
|
|
413
425
|
// src/components/Text/Text.tsx
|
|
414
426
|
var import_Typography2 = __toESM(require("@mui/material/Typography"));
|
|
415
|
-
var
|
|
427
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
416
428
|
var Text = (props) => {
|
|
417
429
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
418
|
-
return /* @__PURE__ */ (0,
|
|
430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography2.default, __spreadProps(__spreadValues({}, rest), { children }));
|
|
419
431
|
};
|
|
420
432
|
var Text_default = Text;
|
|
421
433
|
|
|
422
434
|
// src/components/Radio/Radio.tsx
|
|
423
435
|
var import_Radio = __toESM(require("@mui/material/Radio"));
|
|
424
436
|
var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"));
|
|
425
|
-
var
|
|
437
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
426
438
|
var CustomRadio = (props) => {
|
|
427
439
|
const { value, label, radioProps, labelProps } = props;
|
|
428
440
|
if (label && value)
|
|
429
|
-
return /* @__PURE__ */ (0,
|
|
441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
430
442
|
import_FormControlLabel.default,
|
|
431
443
|
__spreadValues({
|
|
432
444
|
value,
|
|
433
|
-
control: /* @__PURE__ */ (0,
|
|
445
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Radio.default, __spreadValues({}, radioProps)),
|
|
434
446
|
label
|
|
435
447
|
}, labelProps)
|
|
436
448
|
);
|
|
437
|
-
return /* @__PURE__ */ (0,
|
|
449
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_Radio.default, __spreadValues({}, radioProps));
|
|
438
450
|
};
|
|
439
451
|
var Radio_default = CustomRadio;
|
|
440
452
|
|
|
441
453
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
442
454
|
var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"));
|
|
443
|
-
var
|
|
455
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
444
456
|
var CustomRadioGroup = (props) => {
|
|
445
457
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
446
|
-
return /* @__PURE__ */ (0,
|
|
458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_RadioGroup.default, __spreadProps(__spreadValues({}, rest), { children }));
|
|
447
459
|
};
|
|
448
460
|
var RadioGroup_default = CustomRadioGroup;
|
|
449
461
|
|
|
450
462
|
// src/components/Switch/Switch.tsx
|
|
451
463
|
var import_material7 = require("@mui/material");
|
|
452
464
|
var import_Typography3 = __toESM(require("@mui/material/Typography"));
|
|
453
|
-
var
|
|
465
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
454
466
|
var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: theme2 }) => ({
|
|
455
467
|
width: 60,
|
|
456
468
|
height: 30,
|
|
@@ -494,26 +506,26 @@ var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: the
|
|
|
494
506
|
}));
|
|
495
507
|
var CustomSwitch = (props) => {
|
|
496
508
|
const _a = props, { beforeText, afterText } = _a, rest = __objRest(_a, ["beforeText", "afterText"]);
|
|
497
|
-
return /* @__PURE__ */ (0,
|
|
498
|
-
beforeText ? /* @__PURE__ */ (0,
|
|
499
|
-
/* @__PURE__ */ (0,
|
|
500
|
-
afterText ? /* @__PURE__ */ (0,
|
|
509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_material7.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
510
|
+
beforeText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Typography3.default, { className: "text-base", children: beforeText }) : null,
|
|
511
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })),
|
|
512
|
+
afterText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_Typography3.default, { className: "text-base", children: afterText }) : null
|
|
501
513
|
] });
|
|
502
514
|
};
|
|
503
515
|
var Switch_default = CustomSwitch;
|
|
504
516
|
|
|
505
517
|
// src/components/Slider/Slider.tsx
|
|
506
518
|
var import_material8 = require("@mui/material");
|
|
507
|
-
var
|
|
519
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
508
520
|
var StyledSlider = (0, import_material8.styled)(import_material8.Slider)(() => ({}));
|
|
509
521
|
var CustomSlider = (props) => {
|
|
510
|
-
return /* @__PURE__ */ (0,
|
|
522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(StyledSlider, __spreadValues({}, props));
|
|
511
523
|
};
|
|
512
524
|
var Slider_default = CustomSlider;
|
|
513
525
|
|
|
514
526
|
// src/components/MenuItem/MenuItem.tsx
|
|
515
527
|
var import_material9 = require("@mui/material");
|
|
516
|
-
var
|
|
528
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
517
529
|
var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(() => ({
|
|
518
530
|
borderRadius: "5px",
|
|
519
531
|
"&.Mui-selected": {
|
|
@@ -523,14 +535,14 @@ var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(()
|
|
|
523
535
|
}));
|
|
524
536
|
var CustomMenuItem = (props) => {
|
|
525
537
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
526
|
-
return /* @__PURE__ */ (0,
|
|
538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StyledMenuItem, __spreadProps(__spreadValues({}, rest), { children }));
|
|
527
539
|
};
|
|
528
540
|
var MenuItem_default = CustomMenuItem;
|
|
529
541
|
|
|
530
542
|
// src/components/Input/Input.tsx
|
|
531
543
|
var import_material10 = require("@mui/material");
|
|
532
544
|
var import_Input = __toESM(require("@mui/material/Input"));
|
|
533
|
-
var
|
|
545
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
534
546
|
var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
|
|
535
547
|
"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button": {
|
|
536
548
|
display: "none"
|
|
@@ -547,12 +559,12 @@ var CustomInput = (props) => {
|
|
|
547
559
|
event.stopPropagation();
|
|
548
560
|
}
|
|
549
561
|
};
|
|
550
|
-
return /* @__PURE__ */ (0,
|
|
562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
551
563
|
StyledInput,
|
|
552
564
|
__spreadValues({
|
|
553
565
|
disableUnderline: true,
|
|
554
566
|
onKeyDown: handleKeyDown,
|
|
555
|
-
startAdornment: adornmentText ? /* @__PURE__ */ (0,
|
|
567
|
+
startAdornment: adornmentText ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_material10.InputAdornment, { position: "start", className: "text-sm", children: adornmentText }) : void 0,
|
|
556
568
|
value,
|
|
557
569
|
componentsProps: {
|
|
558
570
|
root: {
|
|
@@ -568,11 +580,11 @@ var Input_default = CustomInput;
|
|
|
568
580
|
// src/components/Input/PhoneInput.tsx
|
|
569
581
|
var import_react_number_format = require("react-number-format");
|
|
570
582
|
var import_react3 = require("react");
|
|
571
|
-
var
|
|
583
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
572
584
|
var PhoneInput = (0, import_react3.forwardRef)(
|
|
573
585
|
function NumericFormatCustom(props, ref) {
|
|
574
586
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
575
|
-
return /* @__PURE__ */ (0,
|
|
587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
576
588
|
import_react_number_format.PatternFormat,
|
|
577
589
|
__spreadProps(__spreadValues({}, other), {
|
|
578
590
|
getInputRef: ref,
|
|
@@ -596,13 +608,13 @@ var PhoneInput_default = PhoneInput;
|
|
|
596
608
|
// src/components/Input/FromToInput.tsx
|
|
597
609
|
var import_material11 = require("@mui/material");
|
|
598
610
|
var import_Typography4 = __toESM(require("@mui/material/Typography"));
|
|
599
|
-
var
|
|
611
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
600
612
|
var FromToInput = ({ label }) => {
|
|
601
|
-
return /* @__PURE__ */ (0,
|
|
602
|
-
label ? /* @__PURE__ */ (0,
|
|
603
|
-
/* @__PURE__ */ (0,
|
|
604
|
-
/* @__PURE__ */ (0,
|
|
605
|
-
/* @__PURE__ */ (0,
|
|
613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material11.Stack, { children: [
|
|
614
|
+
label ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_Typography4.default, { className: "text-accent-dark text-xs", children: label }) : null,
|
|
615
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material11.Stack, { direction: "row", spacing: 1, children: [
|
|
616
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }),
|
|
617
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })
|
|
606
618
|
] })
|
|
607
619
|
] });
|
|
608
620
|
};
|
|
@@ -655,7 +667,7 @@ var _theme = {
|
|
|
655
667
|
};
|
|
656
668
|
|
|
657
669
|
// src/theme/index.tsx
|
|
658
|
-
var
|
|
670
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
659
671
|
var theme = (0, import_createTheme.default)(__spreadValues({}, _theme));
|
|
660
672
|
function ThemeRegistry(props) {
|
|
661
673
|
const { children } = props;
|
|
@@ -688,7 +700,7 @@ function ThemeRegistry(props) {
|
|
|
688
700
|
for (const name of names) {
|
|
689
701
|
styles += cache.inserted[name];
|
|
690
702
|
}
|
|
691
|
-
return /* @__PURE__ */ (0,
|
|
703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
692
704
|
"style",
|
|
693
705
|
{
|
|
694
706
|
"data-emotion": `${cache.key} ${names.join(" ")}`,
|
|
@@ -699,16 +711,16 @@ function ThemeRegistry(props) {
|
|
|
699
711
|
cache.key
|
|
700
712
|
);
|
|
701
713
|
});
|
|
702
|
-
return /* @__PURE__ */ (0,
|
|
703
|
-
/* @__PURE__ */ (0,
|
|
714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react5.CacheProvider, { value: cache, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_ThemeProvider.default, { theme, children: [
|
|
715
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_CssBaseline.default, {}),
|
|
704
716
|
children
|
|
705
717
|
] }) });
|
|
706
718
|
}
|
|
707
719
|
|
|
708
720
|
// src/providers/Providers.tsx
|
|
709
|
-
var
|
|
721
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
710
722
|
var Providers = ({ children }) => {
|
|
711
|
-
return /* @__PURE__ */ (0,
|
|
723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ThemeRegistry, { children });
|
|
712
724
|
};
|
|
713
725
|
var Providers_default = Providers;
|
|
714
726
|
|
|
@@ -716,7 +728,7 @@ var Providers_default = Providers;
|
|
|
716
728
|
var import_react6 = require("react");
|
|
717
729
|
var import_material12 = require("@mui/material");
|
|
718
730
|
var import_link = __toESM(require("next/link"));
|
|
719
|
-
var
|
|
731
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
720
732
|
var AppBar = ({ links }) => {
|
|
721
733
|
const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
|
|
722
734
|
const navItemsRef = (0, import_react6.useRef)([]);
|
|
@@ -734,9 +746,9 @@ var AppBar = ({ links }) => {
|
|
|
734
746
|
const handleClick = (index) => {
|
|
735
747
|
setActiveIndex(index);
|
|
736
748
|
};
|
|
737
|
-
return /* @__PURE__ */ (0,
|
|
738
|
-
/* @__PURE__ */ (0,
|
|
739
|
-
links.map((link, index) => /* @__PURE__ */ (0,
|
|
749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_material12.Stack, { direction: "row", spacing: 1, position: "relative", children: [
|
|
750
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_material12.Box, { className: "nav-indicator" }),
|
|
751
|
+
links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
740
752
|
import_link.default,
|
|
741
753
|
{
|
|
742
754
|
ref: (el) => {
|
|
@@ -756,7 +768,7 @@ var AppBar_default = AppBar;
|
|
|
756
768
|
// src/components/Image/ImageContainer.tsx
|
|
757
769
|
var import_material13 = require("@mui/material");
|
|
758
770
|
var import_image = __toESM(require("next/image"));
|
|
759
|
-
var
|
|
771
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
760
772
|
var ImageContainer = (props) => {
|
|
761
773
|
const {
|
|
762
774
|
src,
|
|
@@ -768,7 +780,7 @@ var ImageContainer = (props) => {
|
|
|
768
780
|
loading = "lazy",
|
|
769
781
|
objectFit = "object-cover"
|
|
770
782
|
} = props;
|
|
771
|
-
return /* @__PURE__ */ (0,
|
|
783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_material13.Box, { className: `relative ${width} ${height}`, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
772
784
|
import_image.default,
|
|
773
785
|
{
|
|
774
786
|
className: `${objectFit} object-center`,
|
|
@@ -784,7 +796,10 @@ var ImageContainer = (props) => {
|
|
|
784
796
|
var ImageContainer_default = ImageContainer;
|
|
785
797
|
|
|
786
798
|
// src/icons/map-search.svg
|
|
787
|
-
var
|
|
799
|
+
var React4 = __toESM(require("react"));
|
|
800
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
801
|
+
var SvgMapSearch = (props) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("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" }) }));
|
|
802
|
+
var map_search_default = SvgMapSearch;
|
|
788
803
|
|
|
789
804
|
// src/components/Card/CategoryCard.tsx
|
|
790
805
|
var import_material14 = require("@mui/material");
|
|
@@ -794,13 +809,13 @@ var import_link2 = __toESM(require("next/link"));
|
|
|
794
809
|
var NO_IMAGE = "/images/no-photo.svg";
|
|
795
810
|
|
|
796
811
|
// src/components/Card/CategoryCard.tsx
|
|
797
|
-
var
|
|
812
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
798
813
|
var CategoryCard = (props) => {
|
|
799
814
|
const { link, text, title, image_url = NO_IMAGE } = props;
|
|
800
|
-
return /* @__PURE__ */ (0,
|
|
801
|
-
/* @__PURE__ */ (0,
|
|
802
|
-
/* @__PURE__ */ (0,
|
|
803
|
-
/* @__PURE__ */ (0,
|
|
815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_link2.default, { href: link, className: "group/card", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material14.Box, { className: "flex flex-col gap-[20px]", children: [
|
|
816
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
|
|
817
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_material14.Box, { className: "flex flex-col px-[16px]", children: [
|
|
818
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
804
819
|
import_material14.Typography,
|
|
805
820
|
{
|
|
806
821
|
component: "span",
|
|
@@ -808,7 +823,7 @@ var CategoryCard = (props) => {
|
|
|
808
823
|
children: title
|
|
809
824
|
}
|
|
810
825
|
),
|
|
811
|
-
/* @__PURE__ */ (0,
|
|
826
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_material14.Typography, { component: "span", className: "group-hover/card:text-gold2", children: text })
|
|
812
827
|
] })
|
|
813
828
|
] }) });
|
|
814
829
|
};
|
|
@@ -818,11 +833,11 @@ var CategoryCard_default = CategoryCard;
|
|
|
818
833
|
var import_link3 = __toESM(require("next/link"));
|
|
819
834
|
var import_material15 = require("@mui/material");
|
|
820
835
|
var import_Typography5 = __toESM(require("@mui/material/Typography"));
|
|
821
|
-
var
|
|
836
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
822
837
|
var ArticleCard = (props) => {
|
|
823
838
|
const { image_src = NO_IMAGE } = props;
|
|
824
|
-
return /* @__PURE__ */ (0,
|
|
825
|
-
/* @__PURE__ */ (0,
|
|
839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_link3.default, { href: "/", className: "group/card bg-gray-light", children: [
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
826
841
|
ImageContainer_default,
|
|
827
842
|
{
|
|
828
843
|
src: image_src,
|
|
@@ -831,8 +846,8 @@ var ArticleCard = (props) => {
|
|
|
831
846
|
height: "h-[220px]"
|
|
832
847
|
}
|
|
833
848
|
),
|
|
834
|
-
/* @__PURE__ */ (0,
|
|
835
|
-
/* @__PURE__ */ (0,
|
|
849
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_material15.Box, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
850
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
836
851
|
import_Typography5.default,
|
|
837
852
|
{
|
|
838
853
|
component: "span",
|
|
@@ -840,7 +855,7 @@ var ArticleCard = (props) => {
|
|
|
840
855
|
children: "\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
|
|
841
856
|
}
|
|
842
857
|
),
|
|
843
|
-
/* @__PURE__ */ (0,
|
|
858
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
844
859
|
import_Typography5.default,
|
|
845
860
|
{
|
|
846
861
|
component: "span",
|
|
@@ -848,37 +863,37 @@ var ArticleCard = (props) => {
|
|
|
848
863
|
children: "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
|
|
849
864
|
}
|
|
850
865
|
),
|
|
851
|
-
/* @__PURE__ */ (0,
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_Typography5.default, { component: "span", className: "border-gold-block-snack", children: "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430" })
|
|
852
867
|
] })
|
|
853
868
|
] });
|
|
854
869
|
};
|
|
855
870
|
var ArticleCard_default = ArticleCard;
|
|
856
871
|
|
|
857
872
|
// src/components/Card/JobCard.tsx
|
|
858
|
-
var
|
|
873
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
859
874
|
var JobCard = () => {
|
|
860
|
-
return /* @__PURE__ */ (0,
|
|
875
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, {});
|
|
861
876
|
};
|
|
862
877
|
var JobCard_default = JobCard;
|
|
863
878
|
|
|
864
879
|
// src/components/Card/RealtorCard.tsx
|
|
865
|
-
var
|
|
880
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
866
881
|
var RealtorCard = () => {
|
|
867
|
-
return /* @__PURE__ */ (0,
|
|
882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, {});
|
|
868
883
|
};
|
|
869
884
|
var RealtorCard_default = RealtorCard;
|
|
870
885
|
|
|
871
886
|
// src/components/Card/RealtyCard.tsx
|
|
872
887
|
var import_material16 = require("@mui/material");
|
|
873
888
|
var import_link4 = __toESM(require("next/link"));
|
|
874
|
-
var
|
|
889
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
875
890
|
var RealtyCard = () => {
|
|
876
|
-
return /* @__PURE__ */ (0,
|
|
877
|
-
/* @__PURE__ */ (0,
|
|
878
|
-
/* @__PURE__ */ (0,
|
|
879
|
-
/* @__PURE__ */ (0,
|
|
891
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_link4.default, { href: "/", className: "relative", children: [
|
|
892
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]", children: [
|
|
893
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "white", label: "id: 00154" }),
|
|
894
|
+
/* @__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" })
|
|
880
895
|
] }),
|
|
881
|
-
/* @__PURE__ */ (0,
|
|
896
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
882
897
|
ImageContainer_default,
|
|
883
898
|
{
|
|
884
899
|
src: "/images/test.png",
|
|
@@ -887,24 +902,24 @@ var RealtyCard = () => {
|
|
|
887
902
|
contentful: false
|
|
888
903
|
}
|
|
889
904
|
),
|
|
890
|
-
/* @__PURE__ */ (0,
|
|
891
|
-
/* @__PURE__ */ (0,
|
|
892
|
-
/* @__PURE__ */ (0,
|
|
893
|
-
/* @__PURE__ */ (0,
|
|
894
|
-
/* @__PURE__ */ (0,
|
|
905
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
906
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }),
|
|
907
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.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" }),
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
|
|
909
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
895
910
|
Chip_default,
|
|
896
911
|
{
|
|
897
912
|
view: "silver",
|
|
898
|
-
label: /* @__PURE__ */ (0,
|
|
899
|
-
/* @__PURE__ */ (0,
|
|
900
|
-
/* @__PURE__ */ (0,
|
|
913
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Stack, { direction: "row", spacing: 1, children: [
|
|
914
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { children: "\u043C\u0435\u0442\u0440\u043E:" }),
|
|
915
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_material16.Typography, { className: "font-extrabold", children: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
|
|
901
916
|
] })
|
|
902
917
|
}
|
|
903
918
|
),
|
|
904
|
-
/* @__PURE__ */ (0,
|
|
905
|
-
/* @__PURE__ */ (0,
|
|
906
|
-
/* @__PURE__ */ (0,
|
|
907
|
-
/* @__PURE__ */ (0,
|
|
919
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_material16.Box, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
921
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
908
923
|
] })
|
|
909
924
|
] })
|
|
910
925
|
] });
|
|
@@ -913,12 +928,12 @@ var RealtyCard_default = RealtyCard;
|
|
|
913
928
|
|
|
914
929
|
// src/components/Card/TeamPersonCard.tsx
|
|
915
930
|
var import_material17 = require("@mui/material");
|
|
916
|
-
var
|
|
931
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
917
932
|
var TeamPersonCard = (props) => {
|
|
918
933
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
919
|
-
return /* @__PURE__ */ (0,
|
|
920
|
-
/* @__PURE__ */ (0,
|
|
921
|
-
/* @__PURE__ */ (0,
|
|
934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "group/card", children: [
|
|
935
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "relative h-[300px]", children: [
|
|
936
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Box, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
922
937
|
ImageContainer_default,
|
|
923
938
|
{
|
|
924
939
|
contentful: false,
|
|
@@ -927,10 +942,10 @@ var TeamPersonCard = (props) => {
|
|
|
927
942
|
objectFit: "object-contain"
|
|
928
943
|
}
|
|
929
944
|
) }),
|
|
930
|
-
/* @__PURE__ */ (0,
|
|
931
|
-
/* @__PURE__ */ (0,
|
|
932
|
-
/* @__PURE__ */ (0,
|
|
933
|
-
/* @__PURE__ */ (0,
|
|
945
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
|
|
946
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "mt-[4px]", children: name }),
|
|
948
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
934
949
|
import_material17.Typography,
|
|
935
950
|
{
|
|
936
951
|
component: "span",
|
|
@@ -940,9 +955,9 @@ var TeamPersonCard = (props) => {
|
|
|
940
955
|
)
|
|
941
956
|
] })
|
|
942
957
|
] }),
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
944
|
-
/* @__PURE__ */ (0,
|
|
945
|
-
/* @__PURE__ */ (0,
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_material17.Box, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
959
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
960
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_material17.Typography, { component: "span", className: "text-gray", children: name })
|
|
946
961
|
] })
|
|
947
962
|
] });
|
|
948
963
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -110,10 +110,13 @@ import { useRef, useState, useEffect } from "react";
|
|
|
110
110
|
import { Select, styled as styled3 } from "@mui/material";
|
|
111
111
|
|
|
112
112
|
// src/icons/dropdown-arrow.svg
|
|
113
|
-
|
|
113
|
+
import * as React from "react";
|
|
114
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
115
|
+
var SvgDropdownArrow = (props) => /* @__PURE__ */ jsx3("svg", __spreadProps(__spreadValues({ width: 13, height: 7, viewBox: "0 0 13 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx3("path", { d: "M12 6.25L6.5 0.75L1 6.25", stroke: "#343434", strokeLinecap: "round" }) }));
|
|
116
|
+
var dropdown_arrow_default = SvgDropdownArrow;
|
|
114
117
|
|
|
115
118
|
// src/components/Select/Select.tsx
|
|
116
|
-
import { jsx as
|
|
119
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
117
120
|
var StyledSelect = styled3(Select)(({ open }) => ({
|
|
118
121
|
minWidth: 250,
|
|
119
122
|
"&.MuiInputBase-root": {
|
|
@@ -165,7 +168,7 @@ var CustomSelect = (props) => {
|
|
|
165
168
|
var _a2;
|
|
166
169
|
if (!open) (_a2 = myRef.current) == null ? void 0 : _a2.classList.remove("Mui-focused");
|
|
167
170
|
}, [open]);
|
|
168
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ jsx4(
|
|
169
172
|
StyledSelect,
|
|
170
173
|
__spreadProps(__spreadValues({}, rest), {
|
|
171
174
|
ref: myRef,
|
|
@@ -190,7 +193,7 @@ var CustomSelect = (props) => {
|
|
|
190
193
|
}
|
|
191
194
|
}
|
|
192
195
|
},
|
|
193
|
-
IconComponent: () => /* @__PURE__ */
|
|
196
|
+
IconComponent: () => /* @__PURE__ */ jsx4(dropdown_arrow_default, {}),
|
|
194
197
|
children
|
|
195
198
|
})
|
|
196
199
|
);
|
|
@@ -198,7 +201,10 @@ var CustomSelect = (props) => {
|
|
|
198
201
|
var Select_default = CustomSelect;
|
|
199
202
|
|
|
200
203
|
// src/icons/search.svg
|
|
201
|
-
|
|
204
|
+
import * as React2 from "react";
|
|
205
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
206
|
+
var SvgSearch = (props) => /* @__PURE__ */ jsx5("svg", __spreadProps(__spreadValues({ width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx5("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" }) }));
|
|
207
|
+
var search_default = SvgSearch;
|
|
202
208
|
|
|
203
209
|
// src/components/Select/SelectPro.tsx
|
|
204
210
|
import {
|
|
@@ -215,10 +221,16 @@ import {
|
|
|
215
221
|
} from "@mui/material";
|
|
216
222
|
|
|
217
223
|
// src/icons/close.svg
|
|
218
|
-
|
|
224
|
+
import * as React3 from "react";
|
|
225
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
226
|
+
var SvgClose = (props) => /* @__PURE__ */ jsxs2("svg", __spreadProps(__spreadValues({ width: 9, height: 9, viewBox: "0 0 9 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: [
|
|
227
|
+
/* @__PURE__ */ jsx6("path", { d: "M1 7.5L7.5 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
228
|
+
/* @__PURE__ */ jsx6("path", { d: "M7.5 7.5L1 1", stroke: "#343434", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })
|
|
229
|
+
] }));
|
|
230
|
+
var close_default = SvgClose;
|
|
219
231
|
|
|
220
232
|
// src/components/Select/SelectPro.tsx
|
|
221
|
-
import { jsx as
|
|
233
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
222
234
|
var SelectPro = ({
|
|
223
235
|
children,
|
|
224
236
|
placeholder,
|
|
@@ -248,11 +260,11 @@ var SelectPro = ({
|
|
|
248
260
|
const childrenWithHandleChange = isValidElement(children) ? cloneElement(children, {
|
|
249
261
|
collapseParent: handleClose
|
|
250
262
|
}) : children;
|
|
251
|
-
return /* @__PURE__ */
|
|
263
|
+
return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { children: [
|
|
252
264
|
clickComponent ? cloneElement(clickComponent, {
|
|
253
265
|
ref: btn,
|
|
254
266
|
onClick: handleClick
|
|
255
|
-
}) : /* @__PURE__ */
|
|
267
|
+
}) : /* @__PURE__ */ jsxs3(
|
|
256
268
|
Button2,
|
|
257
269
|
{
|
|
258
270
|
ref: btn,
|
|
@@ -268,14 +280,14 @@ var SelectPro = ({
|
|
|
268
280
|
},
|
|
269
281
|
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"}`,
|
|
270
282
|
children: [
|
|
271
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ jsx7(
|
|
272
284
|
Typography2,
|
|
273
285
|
{
|
|
274
286
|
className: "text-sm leading-4",
|
|
275
287
|
children: `${placeholder}`
|
|
276
288
|
}
|
|
277
289
|
),
|
|
278
|
-
colorBorder ? /* @__PURE__ */
|
|
290
|
+
colorBorder ? /* @__PURE__ */ jsx7(search_default, {}) : /* @__PURE__ */ jsx7(
|
|
279
291
|
dropdown_arrow_default,
|
|
280
292
|
{
|
|
281
293
|
style: {
|
|
@@ -287,7 +299,7 @@ var SelectPro = ({
|
|
|
287
299
|
]
|
|
288
300
|
}
|
|
289
301
|
),
|
|
290
|
-
btn ? /* @__PURE__ */
|
|
302
|
+
btn ? /* @__PURE__ */ jsx7(
|
|
291
303
|
Paper,
|
|
292
304
|
{
|
|
293
305
|
sx: {
|
|
@@ -298,16 +310,16 @@ var SelectPro = ({
|
|
|
298
310
|
top: overButton ? 0 : "initial"
|
|
299
311
|
},
|
|
300
312
|
className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`,
|
|
301
|
-
children: /* @__PURE__ */
|
|
302
|
-
overButton ? /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col p-3 gap-3`, children: [
|
|
314
|
+
overButton ? /* @__PURE__ */ jsx7(
|
|
303
315
|
IconButton_default,
|
|
304
316
|
{
|
|
305
317
|
className: "bg-accent-silver p-1 self-end absolute",
|
|
306
318
|
onClick: handleClose,
|
|
307
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ jsx7(close_default, {})
|
|
308
320
|
}
|
|
309
321
|
) : null,
|
|
310
|
-
childTitle ? /* @__PURE__ */
|
|
322
|
+
childTitle ? /* @__PURE__ */ jsx7(
|
|
311
323
|
Typography2,
|
|
312
324
|
{
|
|
313
325
|
className: "text-sm font-normal text-accent-silver-2",
|
|
@@ -324,7 +336,7 @@ var SelectPro_default = SelectPro;
|
|
|
324
336
|
|
|
325
337
|
// src/components/Chip/Chip.tsx
|
|
326
338
|
import { Chip, styled as styled4 } from "@mui/material";
|
|
327
|
-
import { jsx as
|
|
339
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
328
340
|
var StyledChip = styled4(Chip)(({ theme: theme2 }) => ({
|
|
329
341
|
borderRadius: theme2.shape.borderRadius
|
|
330
342
|
}));
|
|
@@ -336,7 +348,7 @@ var ChipViews = {
|
|
|
336
348
|
};
|
|
337
349
|
var CustomChip = (props) => {
|
|
338
350
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
339
|
-
return /* @__PURE__ */
|
|
351
|
+
return /* @__PURE__ */ jsx8(
|
|
340
352
|
StyledChip,
|
|
341
353
|
__spreadValues({
|
|
342
354
|
className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
|
|
@@ -347,61 +359,61 @@ var Chip_default = CustomChip;
|
|
|
347
359
|
|
|
348
360
|
// src/components/Badge/Badge.tsx
|
|
349
361
|
import { Badge } from "@mui/material";
|
|
350
|
-
import { jsx as
|
|
362
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
351
363
|
var CustomBadge = (props) => {
|
|
352
|
-
return /* @__PURE__ */
|
|
364
|
+
return /* @__PURE__ */ jsx9(Badge, __spreadValues({}, props));
|
|
353
365
|
};
|
|
354
366
|
var Badge_default = CustomBadge;
|
|
355
367
|
|
|
356
368
|
// src/components/Avatar/Avatar.tsx
|
|
357
369
|
import Avatar from "@mui/material/Avatar";
|
|
358
|
-
import { jsx as
|
|
370
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
359
371
|
var CustomAvatar = (props) => {
|
|
360
|
-
return /* @__PURE__ */
|
|
372
|
+
return /* @__PURE__ */ jsx10(Avatar, __spreadValues({}, props));
|
|
361
373
|
};
|
|
362
374
|
var Avatar_default = CustomAvatar;
|
|
363
375
|
|
|
364
376
|
// src/components/Text/Text.tsx
|
|
365
377
|
import Typography3 from "@mui/material/Typography";
|
|
366
|
-
import { jsx as
|
|
378
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
367
379
|
var Text = (props) => {
|
|
368
380
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
369
|
-
return /* @__PURE__ */
|
|
381
|
+
return /* @__PURE__ */ jsx11(Typography3, __spreadProps(__spreadValues({}, rest), { children }));
|
|
370
382
|
};
|
|
371
383
|
var Text_default = Text;
|
|
372
384
|
|
|
373
385
|
// src/components/Radio/Radio.tsx
|
|
374
386
|
import Radio from "@mui/material/Radio";
|
|
375
387
|
import FormControlLabel from "@mui/material/FormControlLabel";
|
|
376
|
-
import { jsx as
|
|
388
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
377
389
|
var CustomRadio = (props) => {
|
|
378
390
|
const { value, label, radioProps, labelProps } = props;
|
|
379
391
|
if (label && value)
|
|
380
|
-
return /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ jsx12(
|
|
381
393
|
FormControlLabel,
|
|
382
394
|
__spreadValues({
|
|
383
395
|
value,
|
|
384
|
-
control: /* @__PURE__ */
|
|
396
|
+
control: /* @__PURE__ */ jsx12(Radio, __spreadValues({}, radioProps)),
|
|
385
397
|
label
|
|
386
398
|
}, labelProps)
|
|
387
399
|
);
|
|
388
|
-
return /* @__PURE__ */
|
|
400
|
+
return /* @__PURE__ */ jsx12(Radio, __spreadValues({}, radioProps));
|
|
389
401
|
};
|
|
390
402
|
var Radio_default = CustomRadio;
|
|
391
403
|
|
|
392
404
|
// src/components/RadioGroup/RadioGroup.tsx
|
|
393
405
|
import RadioGroup from "@mui/material/RadioGroup";
|
|
394
|
-
import { jsx as
|
|
406
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
395
407
|
var CustomRadioGroup = (props) => {
|
|
396
408
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
397
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsx13(RadioGroup, __spreadProps(__spreadValues({}, rest), { children }));
|
|
398
410
|
};
|
|
399
411
|
var RadioGroup_default = CustomRadioGroup;
|
|
400
412
|
|
|
401
413
|
// src/components/Switch/Switch.tsx
|
|
402
414
|
import { Stack, styled as styled5, Switch as SwitchMUI } from "@mui/material";
|
|
403
415
|
import Typography4 from "@mui/material/Typography";
|
|
404
|
-
import { jsx as
|
|
416
|
+
import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
405
417
|
var Switch = styled5(SwitchMUI)(({ theme: theme2 }) => ({
|
|
406
418
|
width: 60,
|
|
407
419
|
height: 30,
|
|
@@ -445,26 +457,26 @@ var Switch = styled5(SwitchMUI)(({ theme: theme2 }) => ({
|
|
|
445
457
|
}));
|
|
446
458
|
var CustomSwitch = (props) => {
|
|
447
459
|
const _a = props, { beforeText, afterText } = _a, rest = __objRest(_a, ["beforeText", "afterText"]);
|
|
448
|
-
return /* @__PURE__ */
|
|
449
|
-
beforeText ? /* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
-
afterText ? /* @__PURE__ */
|
|
460
|
+
return /* @__PURE__ */ jsxs4(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
461
|
+
beforeText ? /* @__PURE__ */ jsx14(Typography4, { className: "text-base", children: beforeText }) : null,
|
|
462
|
+
/* @__PURE__ */ jsx14(Switch, __spreadProps(__spreadValues({ defaultChecked: true }, rest), { disableRipple: true })),
|
|
463
|
+
afterText ? /* @__PURE__ */ jsx14(Typography4, { className: "text-base", children: afterText }) : null
|
|
452
464
|
] });
|
|
453
465
|
};
|
|
454
466
|
var Switch_default = CustomSwitch;
|
|
455
467
|
|
|
456
468
|
// src/components/Slider/Slider.tsx
|
|
457
469
|
import { Slider, styled as styled6 } from "@mui/material";
|
|
458
|
-
import { jsx as
|
|
470
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
459
471
|
var StyledSlider = styled6(Slider)(() => ({}));
|
|
460
472
|
var CustomSlider = (props) => {
|
|
461
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ jsx15(StyledSlider, __spreadValues({}, props));
|
|
462
474
|
};
|
|
463
475
|
var Slider_default = CustomSlider;
|
|
464
476
|
|
|
465
477
|
// src/components/MenuItem/MenuItem.tsx
|
|
466
478
|
import { MenuItem, styled as styled7 } from "@mui/material";
|
|
467
|
-
import { jsx as
|
|
479
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
468
480
|
var StyledMenuItem = styled7(MenuItem)(() => ({
|
|
469
481
|
borderRadius: "5px",
|
|
470
482
|
"&.Mui-selected": {
|
|
@@ -474,14 +486,14 @@ var StyledMenuItem = styled7(MenuItem)(() => ({
|
|
|
474
486
|
}));
|
|
475
487
|
var CustomMenuItem = (props) => {
|
|
476
488
|
const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
|
|
477
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ jsx16(StyledMenuItem, __spreadProps(__spreadValues({}, rest), { children }));
|
|
478
490
|
};
|
|
479
491
|
var MenuItem_default = CustomMenuItem;
|
|
480
492
|
|
|
481
493
|
// src/components/Input/Input.tsx
|
|
482
494
|
import { InputAdornment, styled as styled8 } from "@mui/material";
|
|
483
495
|
import Input from "@mui/material/Input";
|
|
484
|
-
import { jsx as
|
|
496
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
485
497
|
var StyledInput = styled8(Input)(() => ({
|
|
486
498
|
"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button": {
|
|
487
499
|
display: "none"
|
|
@@ -498,12 +510,12 @@ var CustomInput = (props) => {
|
|
|
498
510
|
event.stopPropagation();
|
|
499
511
|
}
|
|
500
512
|
};
|
|
501
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsx17(
|
|
502
514
|
StyledInput,
|
|
503
515
|
__spreadValues({
|
|
504
516
|
disableUnderline: true,
|
|
505
517
|
onKeyDown: handleKeyDown,
|
|
506
|
-
startAdornment: adornmentText ? /* @__PURE__ */
|
|
518
|
+
startAdornment: adornmentText ? /* @__PURE__ */ jsx17(InputAdornment, { position: "start", className: "text-sm", children: adornmentText }) : void 0,
|
|
507
519
|
value,
|
|
508
520
|
componentsProps: {
|
|
509
521
|
root: {
|
|
@@ -519,11 +531,11 @@ var Input_default = CustomInput;
|
|
|
519
531
|
// src/components/Input/PhoneInput.tsx
|
|
520
532
|
import { PatternFormat } from "react-number-format";
|
|
521
533
|
import { forwardRef } from "react";
|
|
522
|
-
import { jsx as
|
|
534
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
523
535
|
var PhoneInput = forwardRef(
|
|
524
536
|
function NumericFormatCustom(props, ref) {
|
|
525
537
|
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
526
|
-
return /* @__PURE__ */
|
|
538
|
+
return /* @__PURE__ */ jsx18(
|
|
527
539
|
PatternFormat,
|
|
528
540
|
__spreadProps(__spreadValues({}, other), {
|
|
529
541
|
getInputRef: ref,
|
|
@@ -547,13 +559,13 @@ var PhoneInput_default = PhoneInput;
|
|
|
547
559
|
// src/components/Input/FromToInput.tsx
|
|
548
560
|
import { Stack as Stack2 } from "@mui/material";
|
|
549
561
|
import Typography5 from "@mui/material/Typography";
|
|
550
|
-
import { jsx as
|
|
562
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
551
563
|
var FromToInput = ({ label }) => {
|
|
552
|
-
return /* @__PURE__ */
|
|
553
|
-
label ? /* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ jsxs5(Stack2, { children: [
|
|
565
|
+
label ? /* @__PURE__ */ jsx19(Typography5, { className: "text-accent-dark text-xs", children: label }) : null,
|
|
566
|
+
/* @__PURE__ */ jsxs5(Stack2, { direction: "row", spacing: 1, children: [
|
|
567
|
+
/* @__PURE__ */ jsx19(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }),
|
|
568
|
+
/* @__PURE__ */ jsx19(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })
|
|
557
569
|
] })
|
|
558
570
|
] });
|
|
559
571
|
};
|
|
@@ -606,7 +618,7 @@ var _theme = {
|
|
|
606
618
|
};
|
|
607
619
|
|
|
608
620
|
// src/theme/index.tsx
|
|
609
|
-
import { jsx as
|
|
621
|
+
import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
610
622
|
var theme = createTheme(__spreadValues({}, _theme));
|
|
611
623
|
function ThemeRegistry(props) {
|
|
612
624
|
const { children } = props;
|
|
@@ -639,7 +651,7 @@ function ThemeRegistry(props) {
|
|
|
639
651
|
for (const name of names) {
|
|
640
652
|
styles += cache.inserted[name];
|
|
641
653
|
}
|
|
642
|
-
return /* @__PURE__ */
|
|
654
|
+
return /* @__PURE__ */ jsx20(
|
|
643
655
|
"style",
|
|
644
656
|
{
|
|
645
657
|
"data-emotion": `${cache.key} ${names.join(" ")}`,
|
|
@@ -650,16 +662,16 @@ function ThemeRegistry(props) {
|
|
|
650
662
|
cache.key
|
|
651
663
|
);
|
|
652
664
|
});
|
|
653
|
-
return /* @__PURE__ */
|
|
654
|
-
/* @__PURE__ */
|
|
665
|
+
return /* @__PURE__ */ jsx20(CacheProvider, { value: cache, children: /* @__PURE__ */ jsxs6(ThemeProvider, { theme, children: [
|
|
666
|
+
/* @__PURE__ */ jsx20(CssBaseline, {}),
|
|
655
667
|
children
|
|
656
668
|
] }) });
|
|
657
669
|
}
|
|
658
670
|
|
|
659
671
|
// src/providers/Providers.tsx
|
|
660
|
-
import { jsx as
|
|
672
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
661
673
|
var Providers = ({ children }) => {
|
|
662
|
-
return /* @__PURE__ */
|
|
674
|
+
return /* @__PURE__ */ jsx21(ThemeRegistry, { children });
|
|
663
675
|
};
|
|
664
676
|
var Providers_default = Providers;
|
|
665
677
|
|
|
@@ -667,7 +679,7 @@ var Providers_default = Providers;
|
|
|
667
679
|
import { useEffect as useEffect2, useRef as useRef2, useState as useState4 } from "react";
|
|
668
680
|
import { Box as Box2, Stack as Stack3 } from "@mui/material";
|
|
669
681
|
import Link from "next/link";
|
|
670
|
-
import { jsx as
|
|
682
|
+
import { jsx as jsx22, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
671
683
|
var AppBar = ({ links }) => {
|
|
672
684
|
const [activeIndex, setActiveIndex] = useState4(0);
|
|
673
685
|
const navItemsRef = useRef2([]);
|
|
@@ -685,9 +697,9 @@ var AppBar = ({ links }) => {
|
|
|
685
697
|
const handleClick = (index) => {
|
|
686
698
|
setActiveIndex(index);
|
|
687
699
|
};
|
|
688
|
-
return /* @__PURE__ */
|
|
689
|
-
/* @__PURE__ */
|
|
690
|
-
links.map((link, index) => /* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ jsxs7(Stack3, { direction: "row", spacing: 1, position: "relative", children: [
|
|
701
|
+
/* @__PURE__ */ jsx22(Box2, { className: "nav-indicator" }),
|
|
702
|
+
links.map((link, index) => /* @__PURE__ */ jsx22(
|
|
691
703
|
Link,
|
|
692
704
|
{
|
|
693
705
|
ref: (el) => {
|
|
@@ -707,7 +719,7 @@ var AppBar_default = AppBar;
|
|
|
707
719
|
// src/components/Image/ImageContainer.tsx
|
|
708
720
|
import { Box as Box3 } from "@mui/material";
|
|
709
721
|
import Image from "next/image";
|
|
710
|
-
import { jsx as
|
|
722
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
711
723
|
var ImageContainer = (props) => {
|
|
712
724
|
const {
|
|
713
725
|
src,
|
|
@@ -719,7 +731,7 @@ var ImageContainer = (props) => {
|
|
|
719
731
|
loading = "lazy",
|
|
720
732
|
objectFit = "object-cover"
|
|
721
733
|
} = props;
|
|
722
|
-
return /* @__PURE__ */
|
|
734
|
+
return /* @__PURE__ */ jsx23(Box3, { className: `relative ${width} ${height}`, children: /* @__PURE__ */ jsx23(
|
|
723
735
|
Image,
|
|
724
736
|
{
|
|
725
737
|
className: `${objectFit} object-center`,
|
|
@@ -735,7 +747,10 @@ var ImageContainer = (props) => {
|
|
|
735
747
|
var ImageContainer_default = ImageContainer;
|
|
736
748
|
|
|
737
749
|
// src/icons/map-search.svg
|
|
738
|
-
|
|
750
|
+
import * as React4 from "react";
|
|
751
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
752
|
+
var SvgMapSearch = (props) => /* @__PURE__ */ jsx24("svg", __spreadProps(__spreadValues({ width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props), { children: /* @__PURE__ */ jsx24("path", { d: "M11 18L9 17M9 17L3 20V7L9 4M9 17V4M9 4L15 7M15 7L21 4V11.5M15 7V12M20.1992 20.1992L21.9992 21.9992M15 18C15 18.7956 15.3161 19.5587 15.8787 20.1213C16.4413 20.6839 17.2044 21 18 21C18.7956 21 19.5587 20.6839 20.1213 20.1213C20.6839 19.5587 21 18.7956 21 18C21 17.2044 20.6839 16.4413 20.1213 15.8787C19.5587 15.3161 18.7956 15 18 15C17.2044 15 16.4413 15.3161 15.8787 15.8787C15.3161 16.4413 15 17.2044 15 18Z", stroke: "#343434", className: "stroke-current", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }) }));
|
|
753
|
+
var map_search_default = SvgMapSearch;
|
|
739
754
|
|
|
740
755
|
// src/components/Card/CategoryCard.tsx
|
|
741
756
|
import { Box as Box4, Typography as Typography6 } from "@mui/material";
|
|
@@ -745,13 +760,13 @@ import Link2 from "next/link";
|
|
|
745
760
|
var NO_IMAGE = "/images/no-photo.svg";
|
|
746
761
|
|
|
747
762
|
// src/components/Card/CategoryCard.tsx
|
|
748
|
-
import { jsx as
|
|
763
|
+
import { jsx as jsx25, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
749
764
|
var CategoryCard = (props) => {
|
|
750
765
|
const { link, text, title, image_url = NO_IMAGE } = props;
|
|
751
|
-
return /* @__PURE__ */
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
/* @__PURE__ */
|
|
754
|
-
/* @__PURE__ */
|
|
766
|
+
return /* @__PURE__ */ jsx25(Link2, { href: link, className: "group/card", children: /* @__PURE__ */ jsxs8(Box4, { className: "flex flex-col gap-[20px]", children: [
|
|
767
|
+
/* @__PURE__ */ jsx25(ImageContainer_default, { src: image_url, alt: title, height: "h-[300px]" }),
|
|
768
|
+
/* @__PURE__ */ jsxs8(Box4, { className: "flex flex-col px-[16px]", children: [
|
|
769
|
+
/* @__PURE__ */ jsx25(
|
|
755
770
|
Typography6,
|
|
756
771
|
{
|
|
757
772
|
component: "span",
|
|
@@ -759,7 +774,7 @@ var CategoryCard = (props) => {
|
|
|
759
774
|
children: title
|
|
760
775
|
}
|
|
761
776
|
),
|
|
762
|
-
/* @__PURE__ */
|
|
777
|
+
/* @__PURE__ */ jsx25(Typography6, { component: "span", className: "group-hover/card:text-gold2", children: text })
|
|
763
778
|
] })
|
|
764
779
|
] }) });
|
|
765
780
|
};
|
|
@@ -769,11 +784,11 @@ var CategoryCard_default = CategoryCard;
|
|
|
769
784
|
import Link3 from "next/link";
|
|
770
785
|
import { Box as Box5 } from "@mui/material";
|
|
771
786
|
import Typography7 from "@mui/material/Typography";
|
|
772
|
-
import { jsx as
|
|
787
|
+
import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
773
788
|
var ArticleCard = (props) => {
|
|
774
789
|
const { image_src = NO_IMAGE } = props;
|
|
775
|
-
return /* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */
|
|
790
|
+
return /* @__PURE__ */ jsxs9(Link3, { href: "/", className: "group/card bg-gray-light", children: [
|
|
791
|
+
/* @__PURE__ */ jsx26(
|
|
777
792
|
ImageContainer_default,
|
|
778
793
|
{
|
|
779
794
|
src: image_src,
|
|
@@ -782,8 +797,8 @@ var ArticleCard = (props) => {
|
|
|
782
797
|
height: "h-[220px]"
|
|
783
798
|
}
|
|
784
799
|
),
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ jsxs9(Box5, { className: "pt-[24px] pl-[16px] pr-[50px] pb-[10px] flex flex-col gap-[6px]", children: [
|
|
801
|
+
/* @__PURE__ */ jsx26(
|
|
787
802
|
Typography7,
|
|
788
803
|
{
|
|
789
804
|
component: "span",
|
|
@@ -791,7 +806,7 @@ var ArticleCard = (props) => {
|
|
|
791
806
|
children: "\u041E\u0441\u043E\u0431\u043B\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u0443\u043F\u0456\u0432\u043B\u0456 \u0433\u043E\u0442\u0435\u043B\u044E"
|
|
792
807
|
}
|
|
793
808
|
),
|
|
794
|
-
/* @__PURE__ */
|
|
809
|
+
/* @__PURE__ */ jsx26(
|
|
795
810
|
Typography7,
|
|
796
811
|
{
|
|
797
812
|
component: "span",
|
|
@@ -799,37 +814,37 @@ var ArticleCard = (props) => {
|
|
|
799
814
|
children: "We have built a strong network in Dubai since 2009, which allows us to source the best deal for"
|
|
800
815
|
}
|
|
801
816
|
),
|
|
802
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ jsx26(Typography7, { component: "span", className: "border-gold-block-snack", children: "\u0422\u0435\u0433-\u043D\u0430\u0437\u0432\u0430" })
|
|
803
818
|
] })
|
|
804
819
|
] });
|
|
805
820
|
};
|
|
806
821
|
var ArticleCard_default = ArticleCard;
|
|
807
822
|
|
|
808
823
|
// src/components/Card/JobCard.tsx
|
|
809
|
-
import { Fragment, jsx as
|
|
824
|
+
import { Fragment, jsx as jsx27 } from "react/jsx-runtime";
|
|
810
825
|
var JobCard = () => {
|
|
811
|
-
return /* @__PURE__ */
|
|
826
|
+
return /* @__PURE__ */ jsx27(Fragment, {});
|
|
812
827
|
};
|
|
813
828
|
var JobCard_default = JobCard;
|
|
814
829
|
|
|
815
830
|
// src/components/Card/RealtorCard.tsx
|
|
816
|
-
import { Fragment as Fragment2, jsx as
|
|
831
|
+
import { Fragment as Fragment2, jsx as jsx28 } from "react/jsx-runtime";
|
|
817
832
|
var RealtorCard = () => {
|
|
818
|
-
return /* @__PURE__ */
|
|
833
|
+
return /* @__PURE__ */ jsx28(Fragment2, {});
|
|
819
834
|
};
|
|
820
835
|
var RealtorCard_default = RealtorCard;
|
|
821
836
|
|
|
822
837
|
// src/components/Card/RealtyCard.tsx
|
|
823
838
|
import { Box as Box6, Stack as Stack4, Typography as Typography8 } from "@mui/material";
|
|
824
839
|
import Link4 from "next/link";
|
|
825
|
-
import { jsx as
|
|
840
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
826
841
|
var RealtyCard = () => {
|
|
827
|
-
return /* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
830
|
-
/* @__PURE__ */
|
|
842
|
+
return /* @__PURE__ */ jsxs10(Link4, { href: "/", className: "relative", children: [
|
|
843
|
+
/* @__PURE__ */ jsxs10(Box6, { className: "absolute left-[16px] top-[16px] flex flex-col gap-[9px] z-[1]", children: [
|
|
844
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "white", label: "id: 00154" }),
|
|
845
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "white", label: "\u0416\u041A: \u0421\u0443\u0447\u0430\u0441\u043D\u0438\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B4" })
|
|
831
846
|
] }),
|
|
832
|
-
/* @__PURE__ */
|
|
847
|
+
/* @__PURE__ */ jsx29(
|
|
833
848
|
ImageContainer_default,
|
|
834
849
|
{
|
|
835
850
|
src: "/images/test.png",
|
|
@@ -838,24 +853,24 @@ var RealtyCard = () => {
|
|
|
838
853
|
contentful: false
|
|
839
854
|
}
|
|
840
855
|
),
|
|
841
|
-
/* @__PURE__ */
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
/* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ jsxs10(Box6, { className: "bg-white py-[20px] px-[16px] flex flex-col gap-[6px]", children: [
|
|
857
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "black", label: "120 000 \u20B4/\u043C\u0456\u0441\u044F\u0446\u044C" }),
|
|
858
|
+
/* @__PURE__ */ jsx29(Typography8, { component: "span", className: "font-extrabold", children: "\u0432\u0443\u043B. \u0414\u0440\u0430\u0433\u043E\u043C\u0438\u0440\u043E\u0432\u0430 25" }),
|
|
859
|
+
/* @__PURE__ */ jsx29(Typography8, { component: "span", className: "text-12", children: "\u041F\u0435\u0447\u0435\u0440\u0441\u044C\u043A\u0438\u0439 \u0440-\u043D" }),
|
|
860
|
+
/* @__PURE__ */ jsx29(
|
|
846
861
|
Chip_default,
|
|
847
862
|
{
|
|
848
863
|
view: "silver",
|
|
849
|
-
label: /* @__PURE__ */
|
|
850
|
-
/* @__PURE__ */
|
|
851
|
-
/* @__PURE__ */
|
|
864
|
+
label: /* @__PURE__ */ jsxs10(Stack4, { direction: "row", spacing: 1, children: [
|
|
865
|
+
/* @__PURE__ */ jsx29(Typography8, { children: "\u043C\u0435\u0442\u0440\u043E:" }),
|
|
866
|
+
/* @__PURE__ */ jsx29(Typography8, { className: "font-extrabold", children: "\u041B\u0438\u0431\u0456\u0434\u0441\u044C\u043A\u0430" })
|
|
852
867
|
] })
|
|
853
868
|
}
|
|
854
869
|
),
|
|
855
|
-
/* @__PURE__ */
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ jsxs10(Box6, { className: "flex flex-wrap gap-[6px] mt-[6px]", children: [
|
|
871
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "2 \u043A\u0456\u043C\u043D" }),
|
|
872
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "60 \u043C\xB2" }),
|
|
873
|
+
/* @__PURE__ */ jsx29(Chip_default, { view: "line", label: "\u043F\u043E\u0432\u0435\u0440\u0445: 3/24" })
|
|
859
874
|
] })
|
|
860
875
|
] })
|
|
861
876
|
] });
|
|
@@ -864,12 +879,12 @@ var RealtyCard_default = RealtyCard;
|
|
|
864
879
|
|
|
865
880
|
// src/components/Card/TeamPersonCard.tsx
|
|
866
881
|
import { Box as Box7, Typography as Typography9 } from "@mui/material";
|
|
867
|
-
import { jsx as
|
|
882
|
+
import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
868
883
|
var TeamPersonCard = (props) => {
|
|
869
884
|
const { image_url = NO_IMAGE, name, position, text } = props;
|
|
870
|
-
return /* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
885
|
+
return /* @__PURE__ */ jsxs11(Box7, { className: "group/card", children: [
|
|
886
|
+
/* @__PURE__ */ jsxs11(Box7, { className: "relative h-[300px]", children: [
|
|
887
|
+
/* @__PURE__ */ jsx30(Box7, { className: "w-full h-full bg-gray-medium group-hover/card:brightness-[50%]", children: /* @__PURE__ */ jsx30(
|
|
873
888
|
ImageContainer_default,
|
|
874
889
|
{
|
|
875
890
|
contentful: false,
|
|
@@ -878,10 +893,10 @@ var TeamPersonCard = (props) => {
|
|
|
878
893
|
objectFit: "object-contain"
|
|
879
894
|
}
|
|
880
895
|
) }),
|
|
881
|
-
/* @__PURE__ */
|
|
882
|
-
/* @__PURE__ */
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ jsxs11(Box7, { className: "hidden absolute top-[110px] left-[30px] right-[30px] group-hover/card:flex flex-col text-white", children: [
|
|
897
|
+
/* @__PURE__ */ jsx30(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
898
|
+
/* @__PURE__ */ jsx30(Typography9, { component: "span", className: "mt-[4px]", children: name }),
|
|
899
|
+
/* @__PURE__ */ jsx30(
|
|
885
900
|
Typography9,
|
|
886
901
|
{
|
|
887
902
|
component: "span",
|
|
@@ -891,9 +906,9 @@ var TeamPersonCard = (props) => {
|
|
|
891
906
|
)
|
|
892
907
|
] })
|
|
893
908
|
] }),
|
|
894
|
-
/* @__PURE__ */
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */
|
|
909
|
+
/* @__PURE__ */ jsxs11(Box7, { className: "mt-[20px] text-center mx-auto flex flex-col w-10/12", children: [
|
|
910
|
+
/* @__PURE__ */ jsx30(Typography9, { component: "span", className: "text-16 font-extrabold", children: position }),
|
|
911
|
+
/* @__PURE__ */ jsx30(Typography9, { component: "span", className: "text-gray", children: name })
|
|
897
912
|
] })
|
|
898
913
|
] });
|
|
899
914
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mayak-common-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"@types/react-dom": "^18",
|
|
33
33
|
"@types/stylis": "^4.2.6",
|
|
34
34
|
"autoprefixer": "^10.4.19",
|
|
35
|
+
"esbuild-plugin-svgr": "^2.1.0",
|
|
35
36
|
"esbuild-sass-plugin": "^3.3.1",
|
|
36
37
|
"eslint": "^8",
|
|
37
38
|
"eslint-config-next": "14.2.4",
|
package/dist/close-4XJDSDVO.svg
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="9" height="9" viewBox="0 0 9 9" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M1 7.5L7.5 1" stroke="#343434" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M7.5 7.5L1 1" stroke="#343434" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<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" class="stroke-current" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
package/dist/search-HJGCO2DZ.svg
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<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" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|