mayak-common-library 0.0.34 → 0.0.35

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
@@ -92,7 +92,9 @@ __export(src_exports, {
92
92
  Text: () => Text_default,
93
93
  TextBlock: () => TextBlock_default,
94
94
  TitleBlock: () => TitleBlock_default,
95
- ToggleButton: () => ToggleButton_default
95
+ ToggleButton: () => ToggleButton_default,
96
+ ToggleButtonGroup: () => ToggleButtonGroup_default,
97
+ ToggleButtonsWithLabel: () => ToggleButtonsWithLabel_default
96
98
  });
97
99
  module.exports = __toCommonJS(src_exports);
98
100
 
@@ -1203,51 +1205,68 @@ var ListItem = ({ icon, title, bold, onClick }) => {
1203
1205
  };
1204
1206
  var ListItem_default = ListItem;
1205
1207
 
1206
- // src/components/ToggleButton/ToggleButton.tsx
1207
- var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"));
1208
- var import_material27 = require("@mui/material");
1208
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1209
+ var import_material29 = require("@mui/material");
1209
1210
  var import_react_hook_form2 = require("react-hook-form");
1210
1211
  var import_Typography8 = __toESM(require("@mui/material/Typography"));
1211
- var import_ToggleButtonGroup = __toESM(require("@mui/material/ToggleButtonGroup"));
1212
+
1213
+ // src/components/ToggleButton/ToggleButtonGroup.tsx
1214
+ var import_material27 = require("@mui/material");
1212
1215
  var import_jsx_runtime44 = require("react/jsx-runtime");
1213
1216
  var StyledToggleButtonGroup = (0, import_material27.styled)(
1214
- import_ToggleButtonGroup.default
1217
+ import_material27.ToggleButtonGroup
1215
1218
  )(({ theme: theme2, flexDirection }) => ({
1216
- [`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.grouped}`]: {
1217
- // marginRight: theme.spacing(1.3),
1219
+ [`& .${import_material27.toggleButtonGroupClasses.grouped}`]: {
1218
1220
  marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
1219
1221
  marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
1220
- // marginBottom: theme.spacing(1.3),
1221
- // spacing: theme.spacing(1.3),
1222
1222
  width: "fit-content"
1223
- // border: 0,
1224
- // borderRadius: theme.shape.borderRadius,
1225
- // [`&.${toggleButtonGroupClasses.disabled}`]: {
1226
- // border: 0,
1227
- // },
1228
1223
  },
1229
- [`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.lastButton}`]: {
1224
+ [`& .${import_material27.toggleButtonGroupClasses.lastButton}`]: {
1230
1225
  marginBottom: "unset",
1231
1226
  marginRight: "unset"
1232
1227
  },
1233
- [`& .${import_ToggleButtonGroup.toggleButtonGroupClasses.middleButton},& .${import_ToggleButtonGroup.toggleButtonGroupClasses.lastButton}`]: {
1234
- // marginLeft: -1,
1235
- // borderLeft: "1px solid transparent",
1228
+ [`& .${import_material27.toggleButtonGroupClasses.middleButton},& .${import_material27.toggleButtonGroupClasses.lastButton}`]: {
1236
1229
  marginLeft: "unset",
1237
1230
  borderLeft: "unset"
1238
1231
  }
1239
1232
  }));
1240
- var ToggleButton = (0, import_material27.styled)(import_ToggleButton.default)(() => ({
1233
+ var ToggleButtonGroup = (props) => {
1234
+ const {
1235
+ children,
1236
+ textView = false,
1237
+ exclusive,
1238
+ flexDirection = "row",
1239
+ onChange,
1240
+ value
1241
+ } = props;
1242
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1243
+ StyledToggleButtonGroup,
1244
+ __spreadProps(__spreadValues({}, props), {
1245
+ flexDirection,
1246
+ exclusive,
1247
+ value,
1248
+ onChange,
1249
+ "aria-label": "text formatting",
1250
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1251
+ children
1252
+ })
1253
+ );
1254
+ };
1255
+ var ToggleButtonGroup_default = ToggleButtonGroup;
1256
+
1257
+ // src/components/ToggleButton/ToggleButton.tsx
1258
+ var import_material28 = require("@mui/material");
1259
+ var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"));
1260
+ var import_jsx_runtime45 = require("react/jsx-runtime");
1261
+ var ToggleButtons = (0, import_material28.styled)(import_ToggleButton.default)(() => ({
1241
1262
  "&.Mui-selected, &.Mui-selected:hover": {
1242
1263
  backgroundColor: "#C8BCA1 !important"
1243
- // marginLeft: "-1px !important",
1244
- // borderLeft: "1px solid transparent !important",
1245
1264
  }
1246
1265
  }));
1247
- var CustomToggleButton = (props) => {
1266
+ var ToggleButton = (props) => {
1248
1267
  const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
1249
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1250
- ToggleButton,
1268
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1269
+ ToggleButtons,
1251
1270
  __spreadProps(__spreadValues({}, rest), {
1252
1271
  disableRipple: true,
1253
1272
  className: `rounded-none border-none min-w-10 h-9 normal-case py-1.5 px-2.5 ${textView ? "justify-start bg-transparent hover:bg-transparent h-6 p-0" : " bg-accent-silver "}`,
@@ -1255,7 +1274,11 @@ var CustomToggleButton = (props) => {
1255
1274
  })
1256
1275
  );
1257
1276
  };
1258
- var ToggleButtonsMultiple = (props) => {
1277
+ var ToggleButton_default = ToggleButton;
1278
+
1279
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1280
+ var import_jsx_runtime46 = require("react/jsx-runtime");
1281
+ var ToggleButtonsWithLabel = (props) => {
1259
1282
  const {
1260
1283
  values,
1261
1284
  textView = false,
@@ -1271,10 +1294,10 @@ var ToggleButtonsMultiple = (props) => {
1271
1294
  if (newFormats !== null) field.onChange(newFormats);
1272
1295
  if (collapseOnClick && collapseParent) collapseParent();
1273
1296
  };
1274
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_material27.Stack, { children: [
1275
- label ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_Typography8.default, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1276
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1277
- StyledToggleButtonGroup,
1297
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_material29.Stack, { children: [
1298
+ label ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_Typography8.default, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1299
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
1300
+ ToggleButtonGroup_default,
1278
1301
  __spreadProps(__spreadValues({}, field), {
1279
1302
  flexDirection,
1280
1303
  exclusive,
@@ -1282,20 +1305,12 @@ var ToggleButtonsMultiple = (props) => {
1282
1305
  onChange: handleFormat,
1283
1306
  "aria-label": "text formatting",
1284
1307
  className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1285
- children: values.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
1286
- CustomToggleButton,
1287
- {
1288
- value: option.value,
1289
- textView,
1290
- children: option.title
1291
- },
1292
- index
1293
- ))
1308
+ children: values.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1294
1309
  })
1295
1310
  )
1296
1311
  ] });
1297
1312
  };
1298
- var ToggleButton_default = ToggleButtonsMultiple;
1313
+ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
1299
1314
  // Annotate the CommonJS export names for ESM import in node:
1300
1315
  0 && (module.exports = {
1301
1316
  AppBar,
@@ -1331,5 +1346,7 @@ var ToggleButton_default = ToggleButtonsMultiple;
1331
1346
  Text,
1332
1347
  TextBlock,
1333
1348
  TitleBlock,
1334
- ToggleButton
1349
+ ToggleButton,
1350
+ ToggleButtonGroup,
1351
+ ToggleButtonsWithLabel
1335
1352
  });
package/dist/index.mjs CHANGED
@@ -1155,56 +1155,72 @@ var ListItem = ({ icon, title, bold, onClick }) => {
1155
1155
  };
1156
1156
  var ListItem_default = ListItem;
1157
1157
 
1158
- // src/components/ToggleButton/ToggleButton.tsx
1159
- import MuiToggleButton from "@mui/material/ToggleButton";
1160
- import {
1161
- Stack as Stack5,
1162
- styled as styled9
1163
- } from "@mui/material";
1158
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1159
+ import { Stack as Stack5 } from "@mui/material";
1164
1160
  import { useController as useController2 } from "react-hook-form";
1165
1161
  import Typography17 from "@mui/material/Typography";
1166
- import ToggleButtonGroup, {
1167
- toggleButtonGroupClasses
1168
- } from "@mui/material/ToggleButtonGroup";
1169
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
1162
+
1163
+ // src/components/ToggleButton/ToggleButtonGroup.tsx
1164
+ import {
1165
+ styled as styled9,
1166
+ toggleButtonGroupClasses,
1167
+ ToggleButtonGroup as MUIToggleButtonGroup
1168
+ } from "@mui/material";
1169
+ import { jsx as jsx43 } from "react/jsx-runtime";
1170
1170
  var StyledToggleButtonGroup = styled9(
1171
- ToggleButtonGroup
1171
+ MUIToggleButtonGroup
1172
1172
  )(({ theme: theme2, flexDirection }) => ({
1173
1173
  [`& .${toggleButtonGroupClasses.grouped}`]: {
1174
- // marginRight: theme.spacing(1.3),
1175
1174
  marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
1176
1175
  marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
1177
- // marginBottom: theme.spacing(1.3),
1178
- // spacing: theme.spacing(1.3),
1179
1176
  width: "fit-content"
1180
- // border: 0,
1181
- // borderRadius: theme.shape.borderRadius,
1182
- // [`&.${toggleButtonGroupClasses.disabled}`]: {
1183
- // border: 0,
1184
- // },
1185
1177
  },
1186
1178
  [`& .${toggleButtonGroupClasses.lastButton}`]: {
1187
1179
  marginBottom: "unset",
1188
1180
  marginRight: "unset"
1189
1181
  },
1190
1182
  [`& .${toggleButtonGroupClasses.middleButton},& .${toggleButtonGroupClasses.lastButton}`]: {
1191
- // marginLeft: -1,
1192
- // borderLeft: "1px solid transparent",
1193
1183
  marginLeft: "unset",
1194
1184
  borderLeft: "unset"
1195
1185
  }
1196
1186
  }));
1197
- var ToggleButton = styled9(MuiToggleButton)(() => ({
1187
+ var ToggleButtonGroup = (props) => {
1188
+ const {
1189
+ children,
1190
+ textView = false,
1191
+ exclusive,
1192
+ flexDirection = "row",
1193
+ onChange,
1194
+ value
1195
+ } = props;
1196
+ return /* @__PURE__ */ jsx43(
1197
+ StyledToggleButtonGroup,
1198
+ __spreadProps(__spreadValues({}, props), {
1199
+ flexDirection,
1200
+ exclusive,
1201
+ value,
1202
+ onChange,
1203
+ "aria-label": "text formatting",
1204
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1205
+ children
1206
+ })
1207
+ );
1208
+ };
1209
+ var ToggleButtonGroup_default = ToggleButtonGroup;
1210
+
1211
+ // src/components/ToggleButton/ToggleButton.tsx
1212
+ import { styled as styled10 } from "@mui/material";
1213
+ import MuiToggleButton from "@mui/material/ToggleButton";
1214
+ import { jsx as jsx44 } from "react/jsx-runtime";
1215
+ var ToggleButtons = styled10(MuiToggleButton)(() => ({
1198
1216
  "&.Mui-selected, &.Mui-selected:hover": {
1199
1217
  backgroundColor: "#C8BCA1 !important"
1200
- // marginLeft: "-1px !important",
1201
- // borderLeft: "1px solid transparent !important",
1202
1218
  }
1203
1219
  }));
1204
- var CustomToggleButton = (props) => {
1220
+ var ToggleButton = (props) => {
1205
1221
  const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
1206
- return /* @__PURE__ */ jsx43(
1207
- ToggleButton,
1222
+ return /* @__PURE__ */ jsx44(
1223
+ ToggleButtons,
1208
1224
  __spreadProps(__spreadValues({}, rest), {
1209
1225
  disableRipple: true,
1210
1226
  className: `rounded-none border-none min-w-10 h-9 normal-case py-1.5 px-2.5 ${textView ? "justify-start bg-transparent hover:bg-transparent h-6 p-0" : " bg-accent-silver "}`,
@@ -1212,7 +1228,11 @@ var CustomToggleButton = (props) => {
1212
1228
  })
1213
1229
  );
1214
1230
  };
1215
- var ToggleButtonsMultiple = (props) => {
1231
+ var ToggleButton_default = ToggleButton;
1232
+
1233
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1234
+ import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
1235
+ var ToggleButtonsWithLabel = (props) => {
1216
1236
  const {
1217
1237
  values,
1218
1238
  textView = false,
@@ -1229,9 +1249,9 @@ var ToggleButtonsMultiple = (props) => {
1229
1249
  if (collapseOnClick && collapseParent) collapseParent();
1230
1250
  };
1231
1251
  return /* @__PURE__ */ jsxs18(Stack5, { children: [
1232
- label ? /* @__PURE__ */ jsx43(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1233
- /* @__PURE__ */ jsx43(
1234
- StyledToggleButtonGroup,
1252
+ label ? /* @__PURE__ */ jsx45(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1253
+ /* @__PURE__ */ jsx45(
1254
+ ToggleButtonGroup_default,
1235
1255
  __spreadProps(__spreadValues({}, field), {
1236
1256
  flexDirection,
1237
1257
  exclusive,
@@ -1239,20 +1259,12 @@ var ToggleButtonsMultiple = (props) => {
1239
1259
  onChange: handleFormat,
1240
1260
  "aria-label": "text formatting",
1241
1261
  className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1242
- children: values.map((option, index) => /* @__PURE__ */ jsx43(
1243
- CustomToggleButton,
1244
- {
1245
- value: option.value,
1246
- textView,
1247
- children: option.title
1248
- },
1249
- index
1250
- ))
1262
+ children: values.map((option, index) => /* @__PURE__ */ jsx45(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1251
1263
  })
1252
1264
  )
1253
1265
  ] });
1254
1266
  };
1255
- var ToggleButton_default = ToggleButtonsMultiple;
1267
+ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
1256
1268
  export {
1257
1269
  AppBar_default as AppBar,
1258
1270
  ArticleCard_default as ArticleCard,
@@ -1287,5 +1299,7 @@ export {
1287
1299
  Text_default as Text,
1288
1300
  TextBlock_default as TextBlock,
1289
1301
  TitleBlock_default as TitleBlock,
1290
- ToggleButton_default as ToggleButton
1302
+ ToggleButton_default as ToggleButton,
1303
+ ToggleButtonGroup_default as ToggleButtonGroup,
1304
+ ToggleButtonsWithLabel_default as ToggleButtonsWithLabel
1291
1305
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/dist/index.d.mts DELETED
@@ -1,229 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps } from '@mui/material/Button';
3
- import * as React from 'react';
4
- import React__default, { FC, PropsWithChildren, ReactElement } from 'react';
5
- import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
- import { SelectProps } from '@mui/material/Select/Select';
7
- import { ChipProps, ToggleButtonGroupProps } from '@mui/material';
8
- import { BadgeProps } from '@mui/material/Badge/Badge';
9
- import { AvatarProps } from '@mui/material/Avatar/Avatar';
10
- import { TypographyOwnProps } from '@mui/material/Typography';
11
- import { RadioProps } from '@mui/material/Radio';
12
- import { FormControlLabelProps } from '@mui/material/FormControlLabel';
13
- import { RadioGroupProps } from '@mui/material/RadioGroup';
14
- import { SwitchProps } from '@mui/material/Switch/Switch';
15
- import { SliderProps } from '@mui/material/Slider/Slider';
16
- import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
17
- import { InputProps } from '@mui/material/Input';
18
- import { PatternFormatProps } from 'react-number-format/types/types';
19
- export { default as MapIcon } from '@/icons/map-search.svg';
20
- import { UseControllerProps } from 'react-hook-form';
21
- import { ListProps } from '@mui/material/List/List';
22
-
23
- declare function Greet(props: {
24
- name: string;
25
- }): react_jsx_runtime.JSX.Element;
26
-
27
- interface CustomButtonProps extends ButtonProps, PropsWithChildren {
28
- bolt?: boolean;
29
- border?: boolean;
30
- base?: boolean;
31
- small?: boolean;
32
- large?: boolean;
33
- medium?: boolean;
34
- }
35
- declare const Button: FC<CustomButtonProps>;
36
-
37
- interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
38
- }
39
- declare const IconButton: FC<CustomIconButtonProps>;
40
-
41
- declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
42
-
43
- interface SelectProProps {
44
- placeholder?: string;
45
- childTitle?: string;
46
- colorBorder?: boolean;
47
- clickComponent?: ReactElement;
48
- fullContainerWidth?: boolean;
49
- overButton?: boolean;
50
- small?: boolean;
51
- fullWidth?: boolean;
52
- freeChildWidth?: boolean;
53
- }
54
- declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
55
-
56
- interface CustomChipProps {
57
- view: "black" | "line" | "white" | "silver";
58
- }
59
- declare const CustomChip: FC<ChipProps & CustomChipProps>;
60
-
61
- declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
62
-
63
- declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
64
-
65
- declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
66
-
67
- interface CustomRadioProps {
68
- labelProps?: FormControlLabelProps;
69
- radioProps?: RadioProps;
70
- label?: string;
71
- value?: string;
72
- }
73
- declare const CustomRadio: React__default.FC<CustomRadioProps>;
74
-
75
- declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
76
-
77
- interface CustomSwitchProps {
78
- beforeText?: string;
79
- afterText?: string;
80
- }
81
- declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
82
-
83
- declare const CustomSlider: FC<SliderProps>;
84
-
85
- declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
86
-
87
- interface CustomInputProps {
88
- type?: "number" | "string";
89
- adornmentText?: string;
90
- big?: boolean;
91
- }
92
- declare const CustomInput: FC<CustomInputProps & InputProps>;
93
-
94
- interface PhoneInputProps {
95
- onChange: (event: {
96
- target: {
97
- name: string;
98
- value: string;
99
- };
100
- }) => void;
101
- name: string;
102
- }
103
- declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
104
-
105
- interface FromToInputProps {
106
- label?: string;
107
- }
108
- declare const FromToInput: FC<FromToInputProps>;
109
-
110
- declare const Providers: FC<PropsWithChildren>;
111
-
112
- interface AppBarProps {
113
- links: {
114
- path: string;
115
- title: string;
116
- }[];
117
- }
118
- declare const AppBar: FC<AppBarProps>;
119
-
120
- interface ImageContainerProps {
121
- src: any;
122
- alt: string;
123
- contentful?: boolean;
124
- priority?: boolean;
125
- loading?: "lazy" | "eager" | undefined;
126
- width?: string;
127
- height?: string;
128
- objectFit?: string;
129
- classesWrapper?: string;
130
- classesImg?: string;
131
- }
132
- declare const ImageContainer: FC<ImageContainerProps>;
133
-
134
- interface CategoryCardProps {
135
- image_url?: string;
136
- title: string;
137
- text: string;
138
- link: string;
139
- }
140
- declare const CategoryCard: FC<CategoryCardProps>;
141
-
142
- interface ArticleCardProps {
143
- imageUrl: string;
144
- title: string;
145
- text: string;
146
- classes?: string;
147
- href: string;
148
- }
149
- declare const ArticleCard: FC<ArticleCardProps>;
150
-
151
- interface JobCardProps {
152
- }
153
- declare const JobCard: FC<JobCardProps>;
154
-
155
- declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
156
-
157
- declare const RealtyCard: FC;
158
-
159
- interface TeamPersonCardProps {
160
- image_url?: string;
161
- name: string;
162
- position: string;
163
- text: string;
164
- }
165
- declare const TeamPersonCard: FC<TeamPersonCardProps>;
166
-
167
- interface AutocompleteProps {
168
- values: string[];
169
- }
170
- declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
171
-
172
- interface BigNumberProps {
173
- number?: number;
174
- text?: string;
175
- }
176
- declare const BigNumber: FC<BigNumberProps>;
177
-
178
- interface TextBlockProps {
179
- classes?: string;
180
- title: string;
181
- text: string;
182
- }
183
- declare const TextBlock: FC<TextBlockProps>;
184
-
185
- type TitlePosition = "center" | "left";
186
-
187
- interface TitleBlockProps {
188
- title: string;
189
- titlePosition?: TitlePosition;
190
- classes?: string;
191
- }
192
- declare const TitleBlock: FC<TitleBlockProps>;
193
-
194
- declare const List: FC<ListProps>;
195
-
196
- interface ListItemProps {
197
- icon?: ReactElement;
198
- title: string;
199
- bold?: boolean;
200
- onClick?: (value: string) => void;
201
- }
202
- declare const ListItem: FC<ListItemProps>;
203
-
204
- type Values = {
205
- value: string | number[];
206
- title: string;
207
- }[];
208
-
209
- type FormValues = {
210
- type: string;
211
- place: string;
212
- room: [];
213
- price: string;
214
- districts: string[];
215
- town: string[];
216
- searchText: string;
217
- };
218
-
219
- interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps {
220
- values: Values;
221
- textView?: boolean;
222
- collapseOnClick?: boolean;
223
- collapseParent?: () => void;
224
- label?: string;
225
- flexDirection?: "row" | "col";
226
- }
227
- declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
228
-
229
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomChip as Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButtonsMultiple as ToggleButton };
package/dist/index.d.ts DELETED
@@ -1,229 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps } from '@mui/material/Button';
3
- import * as React from 'react';
4
- import React__default, { FC, PropsWithChildren, ReactElement } from 'react';
5
- import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
- import { SelectProps } from '@mui/material/Select/Select';
7
- import { ChipProps, ToggleButtonGroupProps } from '@mui/material';
8
- import { BadgeProps } from '@mui/material/Badge/Badge';
9
- import { AvatarProps } from '@mui/material/Avatar/Avatar';
10
- import { TypographyOwnProps } from '@mui/material/Typography';
11
- import { RadioProps } from '@mui/material/Radio';
12
- import { FormControlLabelProps } from '@mui/material/FormControlLabel';
13
- import { RadioGroupProps } from '@mui/material/RadioGroup';
14
- import { SwitchProps } from '@mui/material/Switch/Switch';
15
- import { SliderProps } from '@mui/material/Slider/Slider';
16
- import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
17
- import { InputProps } from '@mui/material/Input';
18
- import { PatternFormatProps } from 'react-number-format/types/types';
19
- export { default as MapIcon } from '@/icons/map-search.svg';
20
- import { UseControllerProps } from 'react-hook-form';
21
- import { ListProps } from '@mui/material/List/List';
22
-
23
- declare function Greet(props: {
24
- name: string;
25
- }): react_jsx_runtime.JSX.Element;
26
-
27
- interface CustomButtonProps extends ButtonProps, PropsWithChildren {
28
- bolt?: boolean;
29
- border?: boolean;
30
- base?: boolean;
31
- small?: boolean;
32
- large?: boolean;
33
- medium?: boolean;
34
- }
35
- declare const Button: FC<CustomButtonProps>;
36
-
37
- interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
38
- }
39
- declare const IconButton: FC<CustomIconButtonProps>;
40
-
41
- declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
42
-
43
- interface SelectProProps {
44
- placeholder?: string;
45
- childTitle?: string;
46
- colorBorder?: boolean;
47
- clickComponent?: ReactElement;
48
- fullContainerWidth?: boolean;
49
- overButton?: boolean;
50
- small?: boolean;
51
- fullWidth?: boolean;
52
- freeChildWidth?: boolean;
53
- }
54
- declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
55
-
56
- interface CustomChipProps {
57
- view: "black" | "line" | "white" | "silver";
58
- }
59
- declare const CustomChip: FC<ChipProps & CustomChipProps>;
60
-
61
- declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
62
-
63
- declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
64
-
65
- declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
66
-
67
- interface CustomRadioProps {
68
- labelProps?: FormControlLabelProps;
69
- radioProps?: RadioProps;
70
- label?: string;
71
- value?: string;
72
- }
73
- declare const CustomRadio: React__default.FC<CustomRadioProps>;
74
-
75
- declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
76
-
77
- interface CustomSwitchProps {
78
- beforeText?: string;
79
- afterText?: string;
80
- }
81
- declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
82
-
83
- declare const CustomSlider: FC<SliderProps>;
84
-
85
- declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
86
-
87
- interface CustomInputProps {
88
- type?: "number" | "string";
89
- adornmentText?: string;
90
- big?: boolean;
91
- }
92
- declare const CustomInput: FC<CustomInputProps & InputProps>;
93
-
94
- interface PhoneInputProps {
95
- onChange: (event: {
96
- target: {
97
- name: string;
98
- value: string;
99
- };
100
- }) => void;
101
- name: string;
102
- }
103
- declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
104
-
105
- interface FromToInputProps {
106
- label?: string;
107
- }
108
- declare const FromToInput: FC<FromToInputProps>;
109
-
110
- declare const Providers: FC<PropsWithChildren>;
111
-
112
- interface AppBarProps {
113
- links: {
114
- path: string;
115
- title: string;
116
- }[];
117
- }
118
- declare const AppBar: FC<AppBarProps>;
119
-
120
- interface ImageContainerProps {
121
- src: any;
122
- alt: string;
123
- contentful?: boolean;
124
- priority?: boolean;
125
- loading?: "lazy" | "eager" | undefined;
126
- width?: string;
127
- height?: string;
128
- objectFit?: string;
129
- classesWrapper?: string;
130
- classesImg?: string;
131
- }
132
- declare const ImageContainer: FC<ImageContainerProps>;
133
-
134
- interface CategoryCardProps {
135
- image_url?: string;
136
- title: string;
137
- text: string;
138
- link: string;
139
- }
140
- declare const CategoryCard: FC<CategoryCardProps>;
141
-
142
- interface ArticleCardProps {
143
- imageUrl: string;
144
- title: string;
145
- text: string;
146
- classes?: string;
147
- href: string;
148
- }
149
- declare const ArticleCard: FC<ArticleCardProps>;
150
-
151
- interface JobCardProps {
152
- }
153
- declare const JobCard: FC<JobCardProps>;
154
-
155
- declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
156
-
157
- declare const RealtyCard: FC;
158
-
159
- interface TeamPersonCardProps {
160
- image_url?: string;
161
- name: string;
162
- position: string;
163
- text: string;
164
- }
165
- declare const TeamPersonCard: FC<TeamPersonCardProps>;
166
-
167
- interface AutocompleteProps {
168
- values: string[];
169
- }
170
- declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
171
-
172
- interface BigNumberProps {
173
- number?: number;
174
- text?: string;
175
- }
176
- declare const BigNumber: FC<BigNumberProps>;
177
-
178
- interface TextBlockProps {
179
- classes?: string;
180
- title: string;
181
- text: string;
182
- }
183
- declare const TextBlock: FC<TextBlockProps>;
184
-
185
- type TitlePosition = "center" | "left";
186
-
187
- interface TitleBlockProps {
188
- title: string;
189
- titlePosition?: TitlePosition;
190
- classes?: string;
191
- }
192
- declare const TitleBlock: FC<TitleBlockProps>;
193
-
194
- declare const List: FC<ListProps>;
195
-
196
- interface ListItemProps {
197
- icon?: ReactElement;
198
- title: string;
199
- bold?: boolean;
200
- onClick?: (value: string) => void;
201
- }
202
- declare const ListItem: FC<ListItemProps>;
203
-
204
- type Values = {
205
- value: string | number[];
206
- title: string;
207
- }[];
208
-
209
- type FormValues = {
210
- type: string;
211
- place: string;
212
- room: [];
213
- price: string;
214
- districts: string[];
215
- town: string[];
216
- searchText: string;
217
- };
218
-
219
- interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps {
220
- values: Values;
221
- textView?: boolean;
222
- collapseOnClick?: boolean;
223
- collapseParent?: () => void;
224
- label?: string;
225
- flexDirection?: "row" | "col";
226
- }
227
- declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
228
-
229
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomChip as Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, CustomRadio as Radio, CustomRadioGroup as RadioGroup, RealtorCard, RealtyCard, CustomSelect as Select, SelectPro, CustomSlider as Slider, CustomSwitch as Switch, TeamPersonCard, Text, TextBlock, TitleBlock, ToggleButtonsMultiple as ToggleButton };