mayak-common-library 0.0.63 → 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 +5 -5
- package/dist/index.mjs +7 -7
- 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
|
}
|
|
@@ -427,7 +427,7 @@ var ChipViews = {
|
|
|
427
427
|
white: "!bg-accent-white text-accent-dark",
|
|
428
428
|
silver: "!bg-accent-silver text-accent-dark "
|
|
429
429
|
};
|
|
430
|
-
var
|
|
430
|
+
var Chip = (props) => {
|
|
431
431
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
432
432
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
433
433
|
StyledChip,
|
|
@@ -438,7 +438,7 @@ var CustomChip = (props) => {
|
|
|
438
438
|
})
|
|
439
439
|
);
|
|
440
440
|
};
|
|
441
|
-
var Chip_default =
|
|
441
|
+
var Chip_default = Chip;
|
|
442
442
|
|
|
443
443
|
// src/components/Badge/Badge.tsx
|
|
444
444
|
var import_material6 = require("@mui/material");
|
|
@@ -1227,12 +1227,12 @@ var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"));
|
|
|
1227
1227
|
var import_ListItemText = __toESM(require("@mui/material/ListItemText"));
|
|
1228
1228
|
var import_Typography7 = __toESM(require("@mui/material/Typography"));
|
|
1229
1229
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
1230
|
-
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1230
|
+
var ListItem = ({ icon, title, bold, value, onClick }) => {
|
|
1231
1231
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_material27.ListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
1232
1232
|
import_ListItemButton.default,
|
|
1233
1233
|
{
|
|
1234
1234
|
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1235
|
-
onClick: () => onClick && onClick(title),
|
|
1235
|
+
onClick: () => onClick && onClick(value ? value : title),
|
|
1236
1236
|
disableRipple: true,
|
|
1237
1237
|
children: [
|
|
1238
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,9 +353,9 @@ 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" },
|
|
@@ -368,7 +368,7 @@ var ChipViews = {
|
|
|
368
368
|
white: "!bg-accent-white text-accent-dark",
|
|
369
369
|
silver: "!bg-accent-silver text-accent-dark "
|
|
370
370
|
};
|
|
371
|
-
var
|
|
371
|
+
var Chip = (props) => {
|
|
372
372
|
const _a = props, { view } = _a, rest = __objRest(_a, ["view"]);
|
|
373
373
|
return /* @__PURE__ */ jsx8(
|
|
374
374
|
StyledChip,
|
|
@@ -379,7 +379,7 @@ var CustomChip = (props) => {
|
|
|
379
379
|
})
|
|
380
380
|
);
|
|
381
381
|
};
|
|
382
|
-
var Chip_default =
|
|
382
|
+
var Chip_default = Chip;
|
|
383
383
|
|
|
384
384
|
// src/components/Badge/Badge.tsx
|
|
385
385
|
import { Badge } from "@mui/material";
|
|
@@ -1176,12 +1176,12 @@ import ListItemIcon from "@mui/material/ListItemIcon";
|
|
|
1176
1176
|
import ListItemText from "@mui/material/ListItemText";
|
|
1177
1177
|
import Typography16 from "@mui/material/Typography";
|
|
1178
1178
|
import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1179
|
-
var ListItem = ({ icon, title, bold, onClick }) => {
|
|
1179
|
+
var ListItem = ({ icon, title, bold, value, onClick }) => {
|
|
1180
1180
|
return /* @__PURE__ */ jsx43(MUIListItem, { disablePadding: true, disableGutters: true, children: /* @__PURE__ */ jsxs17(
|
|
1181
1181
|
ListItemButton,
|
|
1182
1182
|
{
|
|
1183
1183
|
sx: { padding: 0, "&:hover": { backgroundColor: "unset" } },
|
|
1184
|
-
onClick: () => onClick && onClick(title),
|
|
1184
|
+
onClick: () => onClick && onClick(value ? value : title),
|
|
1185
1185
|
disableRipple: true,
|
|
1186
1186
|
children: [
|
|
1187
1187
|
icon ? /* @__PURE__ */ jsx43(ListItemIcon, { sx: { minWidth: "24px" }, children: icon }) : null,
|