mayak-common-library 0.0.92 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -8
- package/dist/index.mjs +14 -19
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -232,6 +232,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
|
232
232
|
label?: string;
|
|
233
233
|
flexDirection?: "row" | "col";
|
|
234
234
|
fixWidth?: boolean;
|
|
235
|
+
arrayValueFormat?: boolean;
|
|
235
236
|
}
|
|
236
237
|
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
237
238
|
|
package/dist/index.d.ts
CHANGED
|
@@ -232,6 +232,7 @@ interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
|
|
|
232
232
|
label?: string;
|
|
233
233
|
flexDirection?: "row" | "col";
|
|
234
234
|
fixWidth?: boolean;
|
|
235
|
+
arrayValueFormat?: boolean;
|
|
235
236
|
}
|
|
236
237
|
declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
237
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
|
};
|
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
|
};
|
|
@@ -923,16 +918,16 @@ var ArticleCard = (props) => {
|
|
|
923
918
|
var ArticleCard_default = ArticleCard;
|
|
924
919
|
|
|
925
920
|
// src/components/Card/JobCard.tsx
|
|
926
|
-
import { Fragment, jsx as jsx28 } from "react/jsx-runtime";
|
|
921
|
+
import { Fragment as Fragment2, jsx as jsx28 } from "react/jsx-runtime";
|
|
927
922
|
var JobCard = () => {
|
|
928
|
-
return /* @__PURE__ */ jsx28(
|
|
923
|
+
return /* @__PURE__ */ jsx28(Fragment2, {});
|
|
929
924
|
};
|
|
930
925
|
var JobCard_default = JobCard;
|
|
931
926
|
|
|
932
927
|
// src/components/Card/RealtorCard.tsx
|
|
933
|
-
import { Fragment as
|
|
928
|
+
import { Fragment as Fragment3, jsx as jsx29 } from "react/jsx-runtime";
|
|
934
929
|
var RealtorCard = () => {
|
|
935
|
-
return /* @__PURE__ */ jsx29(
|
|
930
|
+
return /* @__PURE__ */ jsx29(Fragment3, {});
|
|
936
931
|
};
|
|
937
932
|
var RealtorCard_default = RealtorCard;
|
|
938
933
|
|
|
@@ -1028,7 +1023,7 @@ import {
|
|
|
1028
1023
|
Stack as Stack5
|
|
1029
1024
|
} from "@mui/material";
|
|
1030
1025
|
import { useController as useController2 } from "react-hook-form";
|
|
1031
|
-
import { Fragment as
|
|
1026
|
+
import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1032
1027
|
var RenderInputAutocomplete = (_a) => {
|
|
1033
1028
|
var _b = _a, {
|
|
1034
1029
|
InputProps: InputProps2,
|
|
@@ -1044,7 +1039,7 @@ var RenderInputAutocomplete = (_a) => {
|
|
|
1044
1039
|
/* @__PURE__ */ jsx33(InputAdornment3, { position: "start", children: /* @__PURE__ */ jsx33(search_default, {}) }),
|
|
1045
1040
|
InputProps2.startAdornment
|
|
1046
1041
|
] }),
|
|
1047
|
-
endAdornment: /* @__PURE__ */ jsx33(
|
|
1042
|
+
endAdornment: /* @__PURE__ */ jsx33(Fragment4, {}),
|
|
1048
1043
|
ref: InputProps2.ref,
|
|
1049
1044
|
disableUnderline: true,
|
|
1050
1045
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
@@ -1191,7 +1186,7 @@ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
|
1191
1186
|
// src/blocks/RichTextBlock.tsx
|
|
1192
1187
|
import { Box as Box12 } from "@mui/material";
|
|
1193
1188
|
import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
|
|
1194
|
-
import { Fragment as
|
|
1189
|
+
import { Fragment as Fragment5, jsx as jsx40 } from "react/jsx-runtime";
|
|
1195
1190
|
|
|
1196
1191
|
// src/blocks/ArticleContentBlock.tsx
|
|
1197
1192
|
import { Box as Box13, Container as Container3, Typography as Typography15 } from "@mui/material";
|
|
@@ -1366,7 +1361,7 @@ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
|
|
|
1366
1361
|
import Checkbox from "@mui/material/Checkbox";
|
|
1367
1362
|
import { FormControlLabel as FormControlLabel2, styled as styled11 } from "@mui/material";
|
|
1368
1363
|
import Typography18 from "@mui/material/Typography";
|
|
1369
|
-
import { Fragment as
|
|
1364
|
+
import { Fragment as Fragment6, jsx as jsx47 } from "react/jsx-runtime";
|
|
1370
1365
|
var BpIcon = styled11("span")(() => ({
|
|
1371
1366
|
width: 16,
|
|
1372
1367
|
height: 16,
|
|
@@ -1401,8 +1396,8 @@ var CustomCheckbox = (props) => {
|
|
|
1401
1396
|
className: "p-0",
|
|
1402
1397
|
disableRipple: true,
|
|
1403
1398
|
color: "default",
|
|
1404
|
-
checkedIcon: toggleView ? /* @__PURE__ */ jsx47(
|
|
1405
|
-
icon: toggleView ? /* @__PURE__ */ jsx47(
|
|
1399
|
+
checkedIcon: toggleView ? /* @__PURE__ */ jsx47(Fragment6, {}) : /* @__PURE__ */ jsx47(BpCheckedIcon, {}),
|
|
1400
|
+
icon: toggleView ? /* @__PURE__ */ jsx47(Fragment6, {}) : /* @__PURE__ */ jsx47(BpIcon, {})
|
|
1406
1401
|
})
|
|
1407
1402
|
)
|
|
1408
1403
|
}, labelProps), {
|