mayak-common-library 0.0.8 → 0.0.10

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 CHANGED
@@ -1,10 +1,39 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
9
  var __getProtoOf = Object.getPrototypeOf;
7
10
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
8
37
  var __export = (target, all) => {
9
38
  for (var name in all)
10
39
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -53,20 +82,15 @@ __export(src_exports, {
53
82
  module.exports = __toCommonJS(src_exports);
54
83
 
55
84
  // src/components/Greet.tsx
56
- var import_jsx_runtime = require("react/jsx-runtime");
57
85
  function Greet(props) {
58
86
  const { name } = props;
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
60
- "Hello ",
61
- name
62
- ] });
87
+ return /* @__PURE__ */ React.createElement("div", null, "Hello ", name);
63
88
  }
64
89
 
65
90
  // src/components/Button/Button.tsx
66
91
  var import_Button = __toESM(require("@mui/material/Button"));
67
92
  var import_material = require("@mui/material");
68
93
  var import_Typography = __toESM(require("@mui/material/Typography"));
69
- var import_jsx_runtime2 = require("react/jsx-runtime");
70
94
  var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
71
95
  textTransform: "none",
72
96
  width: "fit-content",
@@ -85,31 +109,29 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
85
109
  }
86
110
  }));
87
111
  var Button = (props) => {
88
- const { children, base, bolt, border, small, large, ...rest } = props;
89
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
112
+ const _a = props, { children, base, bolt, border, small, large } = _a, rest = __objRest(_a, ["children", "base", "bolt", "border", "small", "large"]);
113
+ return /* @__PURE__ */ React.createElement(
90
114
  StyledButton,
91
- {
92
- ...rest,
115
+ __spreadProps(__spreadValues({}, rest), {
93
116
  disableRipple: true,
94
117
  className: `${base ? "bg-accent-dark rounded-none text-white hover:bg-accent-beige text-base" : ""}
95
118
  ${small ? "py-1.5 px-4" : ""}
96
119
  ${large ? "py-5 px-10" : ""}
97
- ${border ? "border-b border-solid rounded-none" : ""}`,
98
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
99
- import_Typography.default,
100
- {
101
- className: `${bolt ? "font-extrabold leading-4" : "font-normal leading-3"}`,
102
- children
103
- }
104
- )
105
- }
120
+ ${border ? "border-b border-solid rounded-none" : ""}`
121
+ }),
122
+ /* @__PURE__ */ React.createElement(
123
+ import_Typography.default,
124
+ {
125
+ className: `${bolt ? "font-extrabold leading-4" : "font-normal leading-3"}`
126
+ },
127
+ children
128
+ )
106
129
  );
107
130
  };
108
131
  var Button_default = Button;
109
132
 
110
133
  // src/components/Button/IconButton.tsx
111
134
  var import_material2 = require("@mui/material");
112
- var import_jsx_runtime3 = require("react/jsx-runtime");
113
135
  var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(() => ({
114
136
  width: "fit-content",
115
137
  borderRadius: 0,
@@ -123,8 +145,8 @@ var StyledButton2 = (0, import_material2.styled)(import_material2.IconButton)(()
123
145
  }
124
146
  }));
125
147
  var IconButton = (props) => {
126
- const { children, ...rest } = props;
127
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StyledButton2, { ...rest, disableRipple: true, children });
148
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
149
+ return /* @__PURE__ */ React.createElement(StyledButton2, __spreadProps(__spreadValues({}, rest), { disableRipple: true }), children);
128
150
  };
129
151
  var IconButton_default = IconButton;
130
152
 
@@ -136,7 +158,6 @@ var import_material3 = require("@mui/material");
136
158
  var dropdown_arrow_default = "./dropdown-arrow-CDZAF5GJ.svg";
137
159
 
138
160
  // src/components/Select/Select.tsx
139
- var import_jsx_runtime4 = require("react/jsx-runtime");
140
161
  var StyledSelect = (0, import_material3.styled)(import_material3.Select)(({ open }) => ({
141
162
  minWidth: 250,
142
163
  "&.MuiInputBase-root": {
@@ -174,7 +195,7 @@ var StyledSelect = (0, import_material3.styled)(import_material3.Select)(({ open
174
195
  }
175
196
  }));
176
197
  var CustomSelect = (props) => {
177
- const { children, placeholder, ...rest } = props;
198
+ const _a = props, { children, placeholder } = _a, rest = __objRest(_a, ["children", "placeholder"]);
178
199
  const myRef = (0, import_react.useRef)(null);
179
200
  const [open, setOpen] = (0, import_react.useState)(false);
180
201
  const uniqueId = "select_" + Math.random().toFixed(5).slice(2);
@@ -185,12 +206,12 @@ var CustomSelect = (props) => {
185
206
  setOpen(false);
186
207
  };
187
208
  (0, import_react.useEffect)(() => {
188
- if (!open) myRef.current?.classList.remove("Mui-focused");
209
+ var _a2;
210
+ if (!open) (_a2 = myRef.current) == null ? void 0 : _a2.classList.remove("Mui-focused");
189
211
  }, [open]);
190
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
212
+ return /* @__PURE__ */ React.createElement(
191
213
  StyledSelect,
192
- {
193
- ...rest,
214
+ __spreadProps(__spreadValues({}, rest), {
194
215
  ref: myRef,
195
216
  open,
196
217
  onOpen: handleOpen,
@@ -213,9 +234,9 @@ var CustomSelect = (props) => {
213
234
  }
214
235
  }
215
236
  },
216
- IconComponent: () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(dropdown_arrow_default, {}),
217
- children
218
- }
237
+ IconComponent: () => /* @__PURE__ */ React.createElement(dropdown_arrow_default, null)
238
+ }),
239
+ children
219
240
  );
220
241
  };
221
242
  var Select_default = CustomSelect;
@@ -231,7 +252,6 @@ var import_material4 = require("@mui/material");
231
252
  var close_default = "./close-4XJDSDVO.svg";
232
253
 
233
254
  // src/components/Select/SelectPro.tsx
234
- var import_jsx_runtime5 = require("react/jsx-runtime");
235
255
  var SelectPro = ({
236
256
  children,
237
257
  placeholder,
@@ -261,83 +281,73 @@ var SelectPro = ({
261
281
  const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
262
282
  collapseParent: handleClose
263
283
  }) : children;
264
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material4.Box, { children: [
265
- clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
284
+ return /* @__PURE__ */ React.createElement(import_material4.ClickAwayListener, { onClickAway: handleClose }, /* @__PURE__ */ React.createElement(import_material4.Box, null, clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
285
+ ref: btn,
286
+ onClick: handleClick
287
+ }) : /* @__PURE__ */ React.createElement(
288
+ import_material4.Button,
289
+ {
266
290
  ref: btn,
267
- onClick: handleClick
268
- }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
269
- import_material4.Button,
291
+ "aria-controls": open ? "basic-menu" : void 0,
292
+ "aria-haspopup": "true",
293
+ "aria-expanded": open ? "true" : void 0,
294
+ onClick: handleClick,
295
+ disableRipple: true,
296
+ fullWidth: true,
297
+ sx: {
298
+ height: small ? "34px" : "49px",
299
+ padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
300
+ },
301
+ 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"}`
302
+ },
303
+ /* @__PURE__ */ React.createElement(
304
+ import_material4.Typography,
270
305
  {
271
- ref: btn,
272
- "aria-controls": open ? "basic-menu" : void 0,
273
- "aria-haspopup": "true",
274
- "aria-expanded": open ? "true" : void 0,
275
- onClick: handleClick,
276
- disableRipple: true,
277
- fullWidth: true,
278
- sx: {
279
- height: small ? "34px" : "49px",
280
- padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
281
- },
282
- 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"}`,
283
- children: [
284
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
285
- import_material4.Typography,
286
- {
287
- className: "text-sm leading-4",
288
- children: `${placeholder}`
289
- }
290
- ),
291
- colorBorder ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(search_default, {}) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
292
- dropdown_arrow_default,
293
- {
294
- style: {
295
- transform: open ? "scaleY(-1)" : "scaleY(1)",
296
- transition: "0.3s ease-in-out"
297
- }
298
- }
299
- )
300
- ]
301
- }
306
+ className: "text-sm leading-4"
307
+ },
308
+ `${placeholder}`
302
309
  ),
303
- btn ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
304
- import_material4.Paper,
310
+ colorBorder ? /* @__PURE__ */ React.createElement(search_default, null) : /* @__PURE__ */ React.createElement(
311
+ dropdown_arrow_default,
305
312
  {
306
- sx: {
307
- position: "absolute",
308
- width: !fullContainerWidth && btn ? btn.offsetWidth : "100%",
309
- left: fullContainerWidth ? 0 : "initial",
310
- right: fullContainerWidth ? 0 : "initial",
311
- top: overButton ? 0 : "initial"
312
- },
313
- className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`,
314
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_material4.Box, { className: `flex flex-col p-3 gap-3`, children: [
315
- overButton ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
316
- IconButton_default,
317
- {
318
- className: "bg-accent-silver p-1 self-end absolute",
319
- onClick: handleClose,
320
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(close_default, {})
321
- }
322
- ) : null,
323
- childTitle ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
324
- import_material4.Typography,
325
- {
326
- className: "text-sm font-normal text-accent-silver-2",
327
- children: childTitle
328
- }
329
- ) : null,
330
- childrenWithHandleChange
331
- ] })
313
+ style: {
314
+ transform: open ? "scaleY(-1)" : "scaleY(1)",
315
+ transition: "0.3s ease-in-out"
316
+ }
332
317
  }
333
- ) : null
334
- ] }) });
318
+ )
319
+ ), btn ? /* @__PURE__ */ React.createElement(
320
+ import_material4.Paper,
321
+ {
322
+ sx: {
323
+ position: "absolute",
324
+ width: !fullContainerWidth && btn ? btn.offsetWidth : "100%",
325
+ left: fullContainerWidth ? 0 : "initial",
326
+ right: fullContainerWidth ? 0 : "initial",
327
+ top: overButton ? 0 : "initial"
328
+ },
329
+ className: `menu ${open ? "menu--open" : "menu--close"} z-50 rounded-none shadow-sm`
330
+ },
331
+ /* @__PURE__ */ React.createElement(import_material4.Box, { className: `flex flex-col p-3 gap-3` }, overButton ? /* @__PURE__ */ React.createElement(
332
+ IconButton_default,
333
+ {
334
+ className: "bg-accent-silver p-1 self-end absolute",
335
+ onClick: handleClose
336
+ },
337
+ /* @__PURE__ */ React.createElement(close_default, null)
338
+ ) : null, childTitle ? /* @__PURE__ */ React.createElement(
339
+ import_material4.Typography,
340
+ {
341
+ className: "text-sm font-normal text-accent-silver-2"
342
+ },
343
+ childTitle
344
+ ) : null, childrenWithHandleChange)
345
+ ) : null));
335
346
  };
336
347
  var SelectPro_default = SelectPro;
337
348
 
338
349
  // src/components/Chip/Chip.tsx
339
350
  var import_material5 = require("@mui/material");
340
- var import_jsx_runtime6 = require("react/jsx-runtime");
341
351
  var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: theme2 }) => ({
342
352
  borderRadius: theme2.shape.borderRadius
343
353
  }));
@@ -348,75 +358,69 @@ var ChipViews = {
348
358
  silver: "bg-accent-silver"
349
359
  };
350
360
  var CustomChip = (props) => {
351
- const { view, ...rest } = props;
352
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
361
+ const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
362
+ return /* @__PURE__ */ React.createElement(
353
363
  StyledChip,
354
- {
355
- className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`,
356
- ...rest
357
- }
364
+ __spreadValues({
365
+ className: `rounded-none w-fit h-fit px-2.5 py-0 ${ChipViews[view]}`
366
+ }, rest)
358
367
  );
359
368
  };
360
369
  var Chip_default = CustomChip;
361
370
 
362
371
  // src/components/Badge/Badge.tsx
363
372
  var import_material6 = require("@mui/material");
364
- var import_jsx_runtime7 = require("react/jsx-runtime");
365
373
  var CustomBadge = (props) => {
366
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material6.Badge, { ...props });
374
+ return /* @__PURE__ */ React.createElement(import_material6.Badge, __spreadValues({}, props));
367
375
  };
368
376
  var Badge_default = CustomBadge;
369
377
 
370
378
  // src/components/Avatar/Avatar.tsx
371
379
  var import_Avatar = __toESM(require("@mui/material/Avatar"));
372
- var import_jsx_runtime8 = require("react/jsx-runtime");
373
380
  var CustomAvatar = (props) => {
374
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_Avatar.default, { ...props });
381
+ return /* @__PURE__ */ React.createElement(import_Avatar.default, __spreadValues({}, props));
375
382
  };
376
383
  var Avatar_default = CustomAvatar;
377
384
 
378
385
  // src/components/Text/Text.tsx
379
386
  var import_Typography2 = __toESM(require("@mui/material/Typography"));
380
- var import_jsx_runtime9 = require("react/jsx-runtime");
381
387
  var Text = (props) => {
382
- const { children, ...rest } = props;
383
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Typography2.default, { ...rest, children });
388
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
389
+ return /* @__PURE__ */ React.createElement(import_Typography2.default, __spreadValues({}, rest), children);
384
390
  };
385
391
  var Text_default = Text;
386
392
 
387
393
  // src/components/Radio/Radio.tsx
394
+ var import_react3 = __toESM(require("react"));
388
395
  var import_Radio = __toESM(require("@mui/material/Radio"));
389
396
  var import_FormControlLabel = __toESM(require("@mui/material/FormControlLabel"));
390
- var import_jsx_runtime10 = require("react/jsx-runtime");
391
397
  var CustomRadio = (props) => {
392
398
  const { value, label, radioProps, labelProps } = props;
393
399
  if (label && value)
394
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
400
+ return /* @__PURE__ */ import_react3.default.createElement(
395
401
  import_FormControlLabel.default,
396
- {
402
+ __spreadValues({
397
403
  value,
398
- control: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Radio.default, { ...radioProps }),
399
- label,
400
- ...labelProps
401
- }
404
+ control: /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps)),
405
+ label
406
+ }, labelProps)
402
407
  );
403
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Radio.default, { ...radioProps });
408
+ return /* @__PURE__ */ import_react3.default.createElement(import_Radio.default, __spreadValues({}, radioProps));
404
409
  };
405
410
  var Radio_default = CustomRadio;
406
411
 
407
412
  // src/components/RadioGroup/RadioGroup.tsx
413
+ var import_react4 = __toESM(require("react"));
408
414
  var import_RadioGroup = __toESM(require("@mui/material/RadioGroup"));
409
- var import_jsx_runtime11 = require("react/jsx-runtime");
410
415
  var CustomRadioGroup = (props) => {
411
- const { children, ...rest } = props;
412
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_RadioGroup.default, { ...rest, children });
416
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
417
+ return /* @__PURE__ */ import_react4.default.createElement(import_RadioGroup.default, __spreadValues({}, rest), children);
413
418
  };
414
419
  var RadioGroup_default = CustomRadioGroup;
415
420
 
416
421
  // src/components/Switch/Switch.tsx
417
422
  var import_material7 = require("@mui/material");
418
423
  var import_Typography3 = __toESM(require("@mui/material/Typography"));
419
- var import_jsx_runtime12 = require("react/jsx-runtime");
420
424
  var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: theme2 }) => ({
421
425
  width: 60,
422
426
  height: 30,
@@ -459,27 +463,21 @@ var Switch = (0, import_material7.styled)(import_material7.Switch)(({ theme: the
459
463
  }
460
464
  }));
461
465
  var CustomSwitch = (props) => {
462
- const { beforeText, afterText, ...rest } = props;
463
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material7.Stack, { direction: "row", spacing: 1, alignItems: "center", children: [
464
- beforeText ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography3.default, { className: "text-base", children: beforeText }) : null,
465
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Switch, { defaultChecked: true, ...rest, disableRipple: true }),
466
- afterText ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_Typography3.default, { className: "text-base", children: afterText }) : null
467
- ] });
466
+ const _a = props, { beforeText, afterText } = _a, rest = __objRest(_a, ["beforeText", "afterText"]);
467
+ 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);
468
468
  };
469
469
  var Switch_default = CustomSwitch;
470
470
 
471
471
  // src/components/Slider/Slider.tsx
472
472
  var import_material8 = require("@mui/material");
473
- var import_jsx_runtime13 = require("react/jsx-runtime");
474
473
  var StyledSlider = (0, import_material8.styled)(import_material8.Slider)(() => ({}));
475
474
  var CustomSlider = (props) => {
476
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(StyledSlider, { ...props });
475
+ return /* @__PURE__ */ React.createElement(StyledSlider, __spreadValues({}, props));
477
476
  };
478
477
  var Slider_default = CustomSlider;
479
478
 
480
479
  // src/components/MenuItem/MenuItem.tsx
481
480
  var import_material9 = require("@mui/material");
482
- var import_jsx_runtime14 = require("react/jsx-runtime");
483
481
  var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(() => ({
484
482
  borderRadius: "5px",
485
483
  "&.Mui-selected": {
@@ -488,15 +486,14 @@ var StyledMenuItem = (0, import_material9.styled)(import_material9.MenuItem)(()
488
486
  }
489
487
  }));
490
488
  var CustomMenuItem = (props) => {
491
- const { children, ...rest } = props;
492
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(StyledMenuItem, { ...rest, children });
489
+ const _a = props, { children } = _a, rest = __objRest(_a, ["children"]);
490
+ return /* @__PURE__ */ React.createElement(StyledMenuItem, __spreadValues({}, rest), children);
493
491
  };
494
492
  var MenuItem_default = CustomMenuItem;
495
493
 
496
494
  // src/components/Input/Input.tsx
497
495
  var import_material10 = require("@mui/material");
498
496
  var import_Input = __toESM(require("@mui/material/Input"));
499
- var import_jsx_runtime15 = require("react/jsx-runtime");
500
497
  var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
501
498
  "& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button": {
502
499
  display: "none"
@@ -506,43 +503,40 @@ var StyledInput = (0, import_material10.styled)(import_Input.default)(() => ({
506
503
  }
507
504
  }));
508
505
  var CustomInput = (props) => {
509
- const { type, adornmentText, value, ...rest } = props;
506
+ const _a = props, { type, adornmentText, value } = _a, rest = __objRest(_a, ["type", "adornmentText", "value"]);
510
507
  const handleKeyDown = (event) => {
511
508
  if (!/[0-9]/.test(event.key) && event.key !== "Backspace") {
512
509
  event.preventDefault();
513
510
  event.stopPropagation();
514
511
  }
515
512
  };
516
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
513
+ return /* @__PURE__ */ React.createElement(
517
514
  StyledInput,
518
- {
515
+ __spreadValues({
519
516
  disableUnderline: true,
520
517
  onKeyDown: handleKeyDown,
521
- startAdornment: adornmentText ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_material10.InputAdornment, { position: "start", className: "text-sm", children: adornmentText }) : void 0,
518
+ startAdornment: adornmentText ? /* @__PURE__ */ React.createElement(import_material10.InputAdornment, { position: "start", className: "text-sm" }, adornmentText) : void 0,
522
519
  value,
523
520
  componentsProps: {
524
521
  root: {
525
522
  className: "border border-black rounded-none border-solid py-1.5 px-2.5 h-8"
526
523
  }
527
524
  },
528
- type: type || "string",
529
- ...rest
530
- }
525
+ type: type || "string"
526
+ }, rest)
531
527
  );
532
528
  };
533
529
  var Input_default = CustomInput;
534
530
 
535
531
  // src/components/Input/PhoneInput.tsx
536
532
  var import_react_number_format = require("react-number-format");
537
- var import_react3 = require("react");
538
- var import_jsx_runtime16 = require("react/jsx-runtime");
539
- var PhoneInput = (0, import_react3.forwardRef)(
533
+ var import_react5 = require("react");
534
+ var PhoneInput = (0, import_react5.forwardRef)(
540
535
  function NumericFormatCustom(props, ref) {
541
- const { onChange, ...other } = props;
542
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
536
+ const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
537
+ return /* @__PURE__ */ React.createElement(
543
538
  import_react_number_format.PatternFormat,
544
- {
545
- ...other,
539
+ __spreadProps(__spreadValues({}, other), {
546
540
  getInputRef: ref,
547
541
  customInput: Input_default,
548
542
  onValueChange: (values) => {
@@ -555,7 +549,7 @@ var PhoneInput = (0, import_react3.forwardRef)(
555
549
  },
556
550
  placeholder: "000 000 00 00",
557
551
  format: "### ### ## ##"
558
- }
552
+ })
559
553
  );
560
554
  }
561
555
  );
@@ -564,32 +558,24 @@ var PhoneInput_default = PhoneInput;
564
558
  // src/components/Input/FromToInput.tsx
565
559
  var import_material11 = require("@mui/material");
566
560
  var import_Typography4 = __toESM(require("@mui/material/Typography"));
567
- var import_jsx_runtime17 = require("react/jsx-runtime");
568
561
  var FromToInput = ({ label }) => {
569
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_material11.Stack, { children: [
570
- label ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_Typography4.default, { className: "text-accent-dark text-xs", children: label }) : null,
571
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_material11.Stack, { direction: "row", spacing: 1, children: [
572
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Input_default, { adornmentText: "\u0432\u0456\u0434", fullWidth: true, type: "number" }),
573
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Input_default, { adornmentText: "\u0434\u043E", fullWidth: true, type: "number" })
574
- ] })
575
- ] });
562
+ 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" })));
576
563
  };
577
564
  var FromToInput_default = FromToInput;
578
565
 
579
566
  // src/theme/index.tsx
580
- var import_react4 = require("react");
567
+ var import_react6 = require("react");
581
568
  var import_cache = __toESM(require("@emotion/cache"));
582
569
  var import_navigation = require("next/navigation");
583
- var import_react5 = require("@emotion/react");
570
+ var import_react7 = require("@emotion/react");
584
571
  var import_ThemeProvider = __toESM(require("@mui/material/styles/ThemeProvider"));
585
572
  var import_createTheme = __toESM(require("@mui/material/styles/createTheme"));
586
573
  var import_CssBaseline = __toESM(require("@mui/material/CssBaseline"));
587
574
  var import_stylis = require("stylis");
588
- var import_jsx_runtime18 = require("react/jsx-runtime");
589
575
  var theme = (0, import_createTheme.default)({});
590
576
  function ThemeRegistry(props) {
591
577
  const { children } = props;
592
- const [{ cache, flush }] = (0, import_react4.useState)(() => {
578
+ const [{ cache, flush }] = (0, import_react6.useState)(() => {
593
579
  const cache2 = (0, import_cache.default)({
594
580
  key: "mui",
595
581
  stylisPlugins: [import_stylis.prefixer]
@@ -620,45 +606,40 @@ function ThemeRegistry(props) {
620
606
  for (const name of names) {
621
607
  styles += cache.inserted[name];
622
608
  }
623
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
609
+ return /* @__PURE__ */ React.createElement(
624
610
  "style",
625
611
  {
612
+ key: cache.key,
626
613
  "data-emotion": `${cache.key} ${names.join(" ")}`,
627
614
  dangerouslySetInnerHTML: {
628
615
  __html: styles
629
616
  }
630
- },
631
- cache.key
617
+ }
632
618
  );
633
619
  });
634
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react5.CacheProvider, { value: cache, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_ThemeProvider.default, { theme, children: [
635
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_CssBaseline.default, {}),
636
- children
637
- ] }) });
620
+ return /* @__PURE__ */ React.createElement(import_react7.CacheProvider, { value: cache }, /* @__PURE__ */ React.createElement(import_ThemeProvider.default, { theme }, /* @__PURE__ */ React.createElement(import_CssBaseline.default, null), children));
638
621
  }
639
622
 
640
623
  // src/providers/Providers.tsx
641
- var import_jsx_runtime19 = require("react/jsx-runtime");
642
624
  var Providers = ({ children }) => {
643
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ThemeRegistry, { children });
625
+ return /* @__PURE__ */ React.createElement(ThemeRegistry, null, children);
644
626
  };
645
627
  var Providers_default = Providers;
646
628
 
647
629
  // src/components/AppBar/AppBar.tsx
648
- var import_react6 = require("react");
630
+ var import_react8 = require("react");
649
631
  var import_material12 = require("@mui/material");
650
632
  var import_link = __toESM(require("next/link"));
651
- var import_jsx_runtime20 = require("react/jsx-runtime");
652
633
  var AppBar = ({ links }) => {
653
- const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
654
- const navItemsRef = (0, import_react6.useRef)([]);
655
- (0, import_react6.useEffect)(() => {
634
+ const [activeIndex, setActiveIndex] = (0, import_react8.useState)(0);
635
+ const navItemsRef = (0, import_react8.useRef)([]);
636
+ (0, import_react8.useEffect)(() => {
656
637
  const indicator = document.querySelector(".nav-indicator");
657
638
  const navItem = navItemsRef.current[activeIndex];
658
639
  const navItemWidth = navItem.offsetWidth;
659
640
  const navItemLeft = navItem.offsetLeft + navItemWidth / 2 - indicator.offsetWidth / 2;
660
641
  const navItemTop = navItem.offsetTop - 5;
661
- indicator?.setAttribute(
642
+ indicator == null ? void 0 : indicator.setAttribute(
662
643
  "style",
663
644
  `transform: translate(${navItemLeft}px, ${navItemTop}px);`
664
645
  );
@@ -666,22 +647,19 @@ var AppBar = ({ links }) => {
666
647
  const handleClick = (index) => {
667
648
  setActiveIndex(index);
668
649
  };
669
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material12.Stack, { direction: "row", spacing: 1, position: "relative", children: [
670
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_material12.Box, { className: "nav-indicator" }),
671
- links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
672
- import_link.default,
673
- {
674
- ref: (el) => {
675
- navItemsRef.current[index] = el;
676
- },
677
- href: link.href,
678
- className: `nav-item ${index === activeIndex ? "active" : ""}`,
679
- onClick: () => handleClick(index),
680
- children: link.title
650
+ 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(
651
+ import_link.default,
652
+ {
653
+ ref: (el) => {
654
+ navItemsRef.current[index] = el;
681
655
  },
682
- index
683
- ))
684
- ] });
656
+ key: index,
657
+ href: link.href,
658
+ className: `nav-item ${index === activeIndex ? "active" : ""}`,
659
+ onClick: () => handleClick(index)
660
+ },
661
+ link.title
662
+ )));
685
663
  };
686
664
  var AppBar_default = AppBar;
687
665
  // Annotate the CommonJS export names for ESM import in node: