mayak-common-library 0.0.91 → 0.0.93

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.d.mts CHANGED
@@ -56,6 +56,7 @@ interface SelectProProps {
56
56
  disableCloseButton?: boolean;
57
57
  openUp?: boolean;
58
58
  intermediateChild?: ReactElement;
59
+ actionsComponent?: ReactElement;
59
60
  accentBgColor?: true;
60
61
  paperSx?: SystemStyleObject;
61
62
  childContainerSx?: SystemStyleObject;
@@ -231,6 +232,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
231
232
  label?: string;
232
233
  flexDirection?: "row" | "col";
233
234
  fixWidth?: boolean;
235
+ arrayValueFormat?: boolean;
234
236
  }
235
237
  declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
236
238
 
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ interface SelectProProps {
56
56
  disableCloseButton?: boolean;
57
57
  openUp?: boolean;
58
58
  intermediateChild?: ReactElement;
59
+ actionsComponent?: ReactElement;
59
60
  accentBgColor?: true;
60
61
  paperSx?: SystemStyleObject;
61
62
  childContainerSx?: SystemStyleObject;
@@ -231,6 +232,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
231
232
  label?: string;
232
233
  flexDirection?: "row" | "col";
233
234
  fixWidth?: boolean;
235
+ arrayValueFormat?: boolean;
234
236
  }
235
237
  declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
236
238
 
package/dist/index.js CHANGED
@@ -126,12 +126,7 @@ var StyledButton = (0, import_material.styled)(import_Button.default)(() => ({
126
126
  filter: "brightness(0) saturate(100%) invert(0%) sepia(95%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(105%)"
127
127
  }
128
128
  },
129
- transition: "transform 0.1s ease-in-out",
130
- "&:active": {
131
- // p: {
132
- // transform: "scale(0.99)",
133
- // },
134
- }
129
+ transition: "transform 0.1s ease-in-out"
135
130
  }));
136
131
  var Button = (props) => {
137
132
  const _a = props, {
@@ -170,7 +165,7 @@ var Button = (props) => {
170
165
  __spreadProps(__spreadValues({}, rest), {
171
166
  disableRipple: true,
172
167
  className: buttonClassName,
173
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
168
+ children: typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
174
169
  import_Typography.default,
175
170
  {
176
171
  style: { top: "1px" },
@@ -178,7 +173,7 @@ var Button = (props) => {
178
173
  }relative ${bolt ? "font-extrabold" : "font-normal"}`,
179
174
  children
180
175
  }
181
- )
176
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children })
182
177
  })
183
178
  );
184
179
  };
@@ -338,7 +333,8 @@ var SelectPro = ({
338
333
  accentBgColor,
339
334
  paperSx,
340
335
  childContainerSx,
341
- reverseAnimation = false
336
+ reverseAnimation = false,
337
+ actionsComponent
342
338
  }) => {
343
339
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
344
340
  const [open, setOpen] = (0, import_react2.useState)(false);
@@ -363,6 +359,9 @@ var SelectPro = ({
363
359
  const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
364
360
  collapseParent: handleClose
365
361
  }) : children;
362
+ const actionsComponentWithHandleChange = (0, import_react2.isValidElement)(actionsComponent) ? (0, import_react2.cloneElement)(actionsComponent, {
363
+ collapseParent: handleClose
364
+ }) : actionsComponent;
366
365
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { width: fullWidth ? "100%" : "inherit", children: [
367
366
  clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
368
367
  ref: btn,
@@ -437,7 +436,8 @@ var SelectPro = ({
437
436
  }
438
437
  ) : null,
439
438
  childTitle ? childTitle : null,
440
- childrenWithHandleChange
439
+ childrenWithHandleChange,
440
+ actionsComponentWithHandleChange
441
441
  ]
442
442
  }
443
443
  )
@@ -1297,10 +1297,7 @@ var import_jsx_runtime45 = require("react/jsx-runtime");
1297
1297
  var StyledToggleButtonGroup = (0, import_material28.styled)(
1298
1298
  import_material28.ToggleButtonGroup
1299
1299
  )(() => ({
1300
- // marginBottom: theme.spacing(-1),
1301
1300
  [`& .${import_material28.toggleButtonGroupClasses.grouped}`]: {
1302
- // marginRight: flexDirection === "col" ? "unset" : theme.spacing(1),
1303
- // marginBottom: theme.spacing(1), //flexDirection === "col" ? theme.spacing(1) : "unset",
1304
1301
  width: "fit-content"
1305
1302
  },
1306
1303
  [`& .${import_material28.toggleButtonGroupClasses.lastButton}`]: {
package/dist/index.mjs CHANGED
@@ -45,7 +45,7 @@ import ButtonMUI from "@mui/material/Button";
45
45
  import { styled } from "@mui/material";
46
46
  import Typography from "@mui/material/Typography";
47
47
  import classNames from "classnames";
48
- import { jsx } from "react/jsx-runtime";
48
+ import { Fragment, jsx } from "react/jsx-runtime";
49
49
  var StyledButton = styled(ButtonMUI)(() => ({
50
50
  textTransform: "none",
51
51
  width: "fit-content",
@@ -56,12 +56,7 @@ var StyledButton = styled(ButtonMUI)(() => ({
56
56
  filter: "brightness(0) saturate(100%) invert(0%) sepia(95%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(105%)"
57
57
  }
58
58
  },
59
- transition: "transform 0.1s ease-in-out",
60
- "&:active": {
61
- // p: {
62
- // transform: "scale(0.99)",
63
- // },
64
- }
59
+ transition: "transform 0.1s ease-in-out"
65
60
  }));
66
61
  var Button = (props) => {
67
62
  const _a = props, {
@@ -100,7 +95,7 @@ var Button = (props) => {
100
95
  __spreadProps(__spreadValues({}, rest), {
101
96
  disableRipple: true,
102
97
  className: buttonClassName,
103
- children: /* @__PURE__ */ jsx(
98
+ children: typeof children === "string" ? /* @__PURE__ */ jsx(
104
99
  Typography,
105
100
  {
106
101
  style: { top: "1px" },
@@ -108,7 +103,7 @@ var Button = (props) => {
108
103
  }relative ${bolt ? "font-extrabold" : "font-normal"}`,
109
104
  children
110
105
  }
111
- )
106
+ ) : /* @__PURE__ */ jsx(Fragment, { children })
112
107
  })
113
108
  );
114
109
  };
@@ -279,7 +274,8 @@ var SelectPro = ({
279
274
  accentBgColor,
280
275
  paperSx,
281
276
  childContainerSx,
282
- reverseAnimation = false
277
+ reverseAnimation = false,
278
+ actionsComponent
283
279
  }) => {
284
280
  const [btn, setAnchorEl] = useState2(null);
285
281
  const [open, setOpen] = useState2(false);
@@ -304,6 +300,9 @@ var SelectPro = ({
304
300
  const childrenWithHandleChange = isValidElement(children) ? cloneElement(children, {
305
301
  collapseParent: handleClose
306
302
  }) : children;
303
+ const actionsComponentWithHandleChange = isValidElement(actionsComponent) ? cloneElement(actionsComponent, {
304
+ collapseParent: handleClose
305
+ }) : actionsComponent;
307
306
  return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", children: [
308
307
  clickComponent ? cloneElement(clickComponent, {
309
308
  ref: btn,
@@ -378,7 +377,8 @@ var SelectPro = ({
378
377
  }
379
378
  ) : null,
380
379
  childTitle ? childTitle : null,
381
- childrenWithHandleChange
380
+ childrenWithHandleChange,
381
+ actionsComponentWithHandleChange
382
382
  ]
383
383
  }
384
384
  )
@@ -918,16 +918,16 @@ var ArticleCard = (props) => {
918
918
  var ArticleCard_default = ArticleCard;
919
919
 
920
920
  // src/components/Card/JobCard.tsx
921
- import { Fragment, jsx as jsx28 } from "react/jsx-runtime";
921
+ import { Fragment as Fragment2, jsx as jsx28 } from "react/jsx-runtime";
922
922
  var JobCard = () => {
923
- return /* @__PURE__ */ jsx28(Fragment, {});
923
+ return /* @__PURE__ */ jsx28(Fragment2, {});
924
924
  };
925
925
  var JobCard_default = JobCard;
926
926
 
927
927
  // src/components/Card/RealtorCard.tsx
928
- import { Fragment as Fragment2, jsx as jsx29 } from "react/jsx-runtime";
928
+ import { Fragment as Fragment3, jsx as jsx29 } from "react/jsx-runtime";
929
929
  var RealtorCard = () => {
930
- return /* @__PURE__ */ jsx29(Fragment2, {});
930
+ return /* @__PURE__ */ jsx29(Fragment3, {});
931
931
  };
932
932
  var RealtorCard_default = RealtorCard;
933
933
 
@@ -1023,7 +1023,7 @@ import {
1023
1023
  Stack as Stack5
1024
1024
  } from "@mui/material";
1025
1025
  import { useController as useController2 } from "react-hook-form";
1026
- import { Fragment as Fragment3, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1026
+ import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
1027
1027
  var RenderInputAutocomplete = (_a) => {
1028
1028
  var _b = _a, {
1029
1029
  InputProps: InputProps2,
@@ -1039,7 +1039,7 @@ var RenderInputAutocomplete = (_a) => {
1039
1039
  /* @__PURE__ */ jsx33(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx33(search_default, {}) }),
1040
1040
  InputProps2.startAdornment
1041
1041
  ] }),
1042
- endAdornment: /* @__PURE__ */ jsx33(Fragment3, {}),
1042
+ endAdornment: /* @__PURE__ */ jsx33(Fragment4, {}),
1043
1043
  ref: InputProps2.ref,
1044
1044
  disableUnderline: true,
1045
1045
  placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
@@ -1186,7 +1186,7 @@ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
1186
1186
  // src/blocks/RichTextBlock.tsx
1187
1187
  import { Box as Box12 } from "@mui/material";
1188
1188
  import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
1189
- import { Fragment as Fragment4, jsx as jsx40 } from "react/jsx-runtime";
1189
+ import { Fragment as Fragment5, jsx as jsx40 } from "react/jsx-runtime";
1190
1190
 
1191
1191
  // src/blocks/ArticleContentBlock.tsx
1192
1192
  import { Box as Box13, Container as Container3, Typography as Typography15 } from "@mui/material";
@@ -1252,10 +1252,7 @@ import { jsx as jsx44 } from "react/jsx-runtime";
1252
1252
  var StyledToggleButtonGroup = styled9(
1253
1253
  MUIToggleButtonGroup
1254
1254
  )(() => ({
1255
- // marginBottom: theme.spacing(-1),
1256
1255
  [`& .${toggleButtonGroupClasses.grouped}`]: {
1257
- // marginRight: flexDirection === "col" ? "unset" : theme.spacing(1),
1258
- // marginBottom: theme.spacing(1), //flexDirection === "col" ? theme.spacing(1) : "unset",
1259
1256
  width: "fit-content"
1260
1257
  },
1261
1258
  [`& .${toggleButtonGroupClasses.lastButton}`]: {
@@ -1364,7 +1361,7 @@ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
1364
1361
  import Checkbox from "@mui/material/Checkbox";
1365
1362
  import { FormControlLabel as FormControlLabel2, styled as styled11 } from "@mui/material";
1366
1363
  import Typography18 from "@mui/material/Typography";
1367
- import { Fragment as Fragment5, jsx as jsx47 } from "react/jsx-runtime";
1364
+ import { Fragment as Fragment6, jsx as jsx47 } from "react/jsx-runtime";
1368
1365
  var BpIcon = styled11("span")(() => ({
1369
1366
  width: 16,
1370
1367
  height: 16,
@@ -1399,8 +1396,8 @@ var CustomCheckbox = (props) => {
1399
1396
  className: "p-0",
1400
1397
  disableRipple: true,
1401
1398
  color: "default",
1402
- checkedIcon: toggleView ? /* @__PURE__ */ jsx47(Fragment5, {}) : /* @__PURE__ */ jsx47(BpCheckedIcon, {}),
1403
- icon: toggleView ? /* @__PURE__ */ jsx47(Fragment5, {}) : /* @__PURE__ */ jsx47(BpIcon, {})
1399
+ checkedIcon: toggleView ? /* @__PURE__ */ jsx47(Fragment6, {}) : /* @__PURE__ */ jsx47(BpCheckedIcon, {}),
1400
+ icon: toggleView ? /* @__PURE__ */ jsx47(Fragment6, {}) : /* @__PURE__ */ jsx47(BpIcon, {})
1404
1401
  })
1405
1402
  )
1406
1403
  }, labelProps), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.91",
3
+ "version": "0.0.93",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",