mayak-common-library 0.0.62 → 0.0.64
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +9 -8
- package/dist/index.mjs +11 -10
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -60,7 +60,7 @@ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
|
60
60
|
interface CustomChipProps {
|
|
61
61
|
view: "black" | "line" | "white" | "silver";
|
|
62
62
|
}
|
|
63
|
-
declare const
|
|
63
|
+
declare const Chip: FC<ChipProps & CustomChipProps>;
|
|
64
64
|
|
|
65
65
|
declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
66
66
|
|
|
@@ -208,6 +208,7 @@ interface ListItemProps {
|
|
|
208
208
|
title: string;
|
|
209
209
|
bold?: boolean;
|
|
210
210
|
onClick?: (value: string) => void;
|
|
211
|
+
value?: string;
|
|
211
212
|
}
|
|
212
213
|
declare const ListItem: FC<ListItemProps>;
|
|
213
214
|
|
|
@@ -246,4 +247,4 @@ interface CustomCheckboxProps {
|
|
|
246
247
|
}
|
|
247
248
|
declare const CustomCheckbox: FC<CustomCheckboxProps>;
|
|
248
249
|
|
|
249
|
-
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox,
|
|
250
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
|
|
|
60
60
|
interface CustomChipProps {
|
|
61
61
|
view: "black" | "line" | "white" | "silver";
|
|
62
62
|
}
|
|
63
|
-
declare const
|
|
63
|
+
declare const Chip: FC<ChipProps & CustomChipProps>;
|
|
64
64
|
|
|
65
65
|
declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
66
66
|
|
|
@@ -208,6 +208,7 @@ interface ListItemProps {
|
|
|
208
208
|
title: string;
|
|
209
209
|
bold?: boolean;
|
|
210
210
|
onClick?: (value: string) => void;
|
|
211
|
+
value?: string;
|
|
211
212
|
}
|
|
212
213
|
declare const ListItem: FC<ListItemProps>;
|
|
213
214
|
|
|
@@ -246,4 +247,4 @@ interface CustomCheckboxProps {
|
|
|
246
247
|
}
|
|
247
248
|
declare const CustomCheckbox: FC<CustomCheckboxProps>;
|
|
248
249
|
|
|
249
|
-
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox,
|
|
250
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, SearchInput, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.js
CHANGED
|
@@ -365,7 +365,7 @@ var SelectPro = ({
|
|
|
365
365
|
dropdown_arrow_default,
|
|
366
366
|
{
|
|
367
367
|
style: {
|
|
368
|
-
transform: open ? "scaleY(
|
|
368
|
+
transform: open ? "scaleY(1)" : "scaleY(-1)",
|
|
369
369
|
transition: "0.3s ease-in-out"
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -418,26 +418,27 @@ var StyledChip = (0, import_material5.styled)(import_material5.Chip)(({ theme: t
|
|
|
418
418
|
borderRadius: theme2.shape.borderRadius,
|
|
419
419
|
".MuiChip-label": { padding: 0 },
|
|
420
420
|
".MuiChip-icon": { margin: "0 6px 0 0" },
|
|
421
|
-
".MuiChip-deleteIcon": { margin: "0 0 0 10px" }
|
|
421
|
+
".MuiChip-deleteIcon": { margin: "0 0 0 10px" },
|
|
422
|
+
height: "28px"
|
|
422
423
|
}));
|
|
423
424
|
var ChipViews = {
|
|
424
425
|
black: "!bg-accent-dark text-accent-white py-1.5 px-4",
|
|
425
|
-
line: "
|
|
426
|
+
line: "border border-solid border-accent-dark !bg-accent-white",
|
|
426
427
|
white: "!bg-accent-white text-accent-dark",
|
|
427
428
|
silver: "!bg-accent-silver text-accent-dark "
|
|
428
429
|
};
|
|
429
|
-
var
|
|
430
|
+
var Chip = (props) => {
|
|
430
431
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
431
432
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
432
433
|
StyledChip,
|
|
433
434
|
__spreadProps(__spreadValues({
|
|
434
|
-
className: `rounded-none w-fit px-2.5 py-0 text-14
|
|
435
|
+
className: `rounded-none w-fit px-2.5 py-0 text-14 ${ChipViews[view]}`
|
|
435
436
|
}, rest), {
|
|
436
437
|
deleteIcon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(close_default, {})
|
|
437
438
|
})
|
|
438
439
|
);
|
|
439
440
|
};
|
|
440
|
-
var Chip_default =
|
|
441
|
+
var Chip_default = Chip;
|
|
441
442
|
|
|
442
443
|
// src/components/Badge/Badge.tsx
|
|
443
444
|
var import_material6 = require("@mui/material");
|
|
@@ -1226,12 +1227,12 @@ var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"));
|
|
|
1226
1227
|
var import_ListItemText = __toESM(require("@mui/material/ListItemText"));
|
|
1227
1228
|
var import_Typography7 = __toESM(require("@mui/material/Typography"));
|
|
1228
1229
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1229
|
-
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1230
|
+
var ListItem = ({ icon, title, bold, value, onClick }) => {
|
|
1230
1231
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_material27.ListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1231
1232
|
import_ListItemButton.default,
|
|
1232
1233
|
{
|
|
1233
1234
|
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1234
|
-
onClick: () => onClick && onClick(title),
|
|
1235
|
+
onClick: () => onClick && onClick(value ? value : title),
|
|
1235
1236
|
disableRipple: true,
|
|
1236
1237
|
children: [
|
|
1237
1238
|
icon ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_ListItemIcon.default, { sx: { minWidth: "24px" }, children: icon }) : null,
|
package/dist/index.mjs
CHANGED
|
@@ -306,7 +306,7 @@ var SelectPro = ({
|
|
|
306
306
|
dropdown_arrow_default,
|
|
307
307
|
{
|
|
308
308
|
style: {
|
|
309
|
-
transform: open ? "scaleY(
|
|
309
|
+
transform: open ? "scaleY(1)" : "scaleY(-1)",
|
|
310
310
|
transition: "0.3s ease-in-out"
|
|
311
311
|
}
|
|
312
312
|
}
|
|
@@ -353,32 +353,33 @@ var SelectPro = ({
|
|
|
353
353
|
var SelectPro_default = SelectPro;
|
|
354
354
|
|
|
355
355
|
// src/components/Chip/Chip.tsx
|
|
356
|
-
import { Chip, styled as styled4 } from "@mui/material";
|
|
356
|
+
import { Chip as MUIChip, styled as styled4 } from "@mui/material";
|
|
357
357
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
358
|
-
var StyledChip = styled4(
|
|
358
|
+
var StyledChip = styled4(MUIChip)(({ theme: theme2 }) => ({
|
|
359
359
|
borderRadius: theme2.shape.borderRadius,
|
|
360
360
|
".MuiChip-label": { padding: 0 },
|
|
361
361
|
".MuiChip-icon": { margin: "0 6px 0 0" },
|
|
362
|
-
".MuiChip-deleteIcon": { margin: "0 0 0 10px" }
|
|
362
|
+
".MuiChip-deleteIcon": { margin: "0 0 0 10px" },
|
|
363
|
+
height: "28px"
|
|
363
364
|
}));
|
|
364
365
|
var ChipViews = {
|
|
365
366
|
black: "!bg-accent-dark text-accent-white py-1.5 px-4",
|
|
366
|
-
line: "
|
|
367
|
+
line: "border border-solid border-accent-dark !bg-accent-white",
|
|
367
368
|
white: "!bg-accent-white text-accent-dark",
|
|
368
369
|
silver: "!bg-accent-silver text-accent-dark "
|
|
369
370
|
};
|
|
370
|
-
var
|
|
371
|
+
var Chip = (props) => {
|
|
371
372
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
372
373
|
return /* @__PURE__ */ jsx8(
|
|
373
374
|
StyledChip,
|
|
374
375
|
__spreadProps(__spreadValues({
|
|
375
|
-
className: `rounded-none w-fit px-2.5 py-0 text-14
|
|
376
|
+
className: `rounded-none w-fit px-2.5 py-0 text-14 ${ChipViews[view]}`
|
|
376
377
|
}, rest), {
|
|
377
378
|
deleteIcon: /* @__PURE__ */ jsx8(close_default, {})
|
|
378
379
|
})
|
|
379
380
|
);
|
|
380
381
|
};
|
|
381
|
-
var Chip_default =
|
|
382
|
+
var Chip_default = Chip;
|
|
382
383
|
|
|
383
384
|
// src/components/Badge/Badge.tsx
|
|
384
385
|
import { Badge } from "@mui/material";
|
|
@@ -1175,12 +1176,12 @@ import ListItemIcon from "@mui/material/ListItemIcon";
|
|
|
1175
1176
|
import ListItemText from "@mui/material/ListItemText";
|
|
1176
1177
|
import Typography16 from "@mui/material/Typography";
|
|
1177
1178
|
import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1178
|
-
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1179
|
+
var ListItem = ({ icon, title, bold, value, onClick }) => {
|
|
1179
1180
|
return /* @__PURE__ */ jsx43(MUIListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ jsxs17(
|
|
1180
1181
|
ListItemButton,
|
|
1181
1182
|
{
|
|
1182
1183
|
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1183
|
-
onClick: () => onClick && onClick(title),
|
|
1184
|
+
onClick: () => onClick && onClick(value ? value : title),
|
|
1184
1185
|
disableRipple: true,
|
|
1185
1186
|
children: [
|
|
1186
1187
|
icon ? /* @__PURE__ */ jsx43(ListItemIcon, { sx: { minWidth: "24px" }, children: icon }) : null,
|