mayak-common-library 0.0.33 → 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
@@ -91,7 +91,10 @@ __export(src_exports, {
91
91
  TeamPersonCard: () => TeamPersonCard_default,
92
92
  Text: () => Text_default,
93
93
  TextBlock: () => TextBlock_default,
94
- TitleBlock: () => TitleBlock_default
94
+ TitleBlock: () => TitleBlock_default,
95
+ ToggleButton: () => ToggleButton_default,
96
+ ToggleButtonGroup: () => ToggleButtonGroup_default,
97
+ ToggleButtonsWithLabel: () => ToggleButtonsWithLabel_default
95
98
  });
96
99
  module.exports = __toCommonJS(src_exports);
97
100
 
@@ -335,7 +338,7 @@ var SelectPro = ({
335
338
  disableRipple: true,
336
339
  fullWidth: true,
337
340
  sx: {
338
- height: small ? "34px" : "49px",
341
+ height: small ? "34px" : "38px",
339
342
  padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
340
343
  },
341
344
  className: `border rounded-none border-solid normal-case text-accent-dark hover:bg-white ${open ? "!border-transparent bg-white" : ""} ${colorBorder ? "border-accent-beige flex-row-reverse justify-end gap-x-2" : "justify-between border-accent-dark"}`,
@@ -1201,6 +1204,113 @@ var ListItem = ({ icon, title, bold, onClick }) => {
1201
1204
  ) });
1202
1205
  };
1203
1206
  var ListItem_default = ListItem;
1207
+
1208
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1209
+ var import_material29 = require("@mui/material");
1210
+ var import_react_hook_form2 = require("react-hook-form");
1211
+ var import_Typography8 = __toESM(require("@mui/material/Typography"));
1212
+
1213
+ // src/components/ToggleButton/ToggleButtonGroup.tsx
1214
+ var import_material27 = require("@mui/material");
1215
+ var import_jsx_runtime44 = require("react/jsx-runtime");
1216
+ var StyledToggleButtonGroup = (0, import_material27.styled)(
1217
+ import_material27.ToggleButtonGroup
1218
+ )(({ theme: theme2, flexDirection }) => ({
1219
+ [`& .${import_material27.toggleButtonGroupClasses.grouped}`]: {
1220
+ marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
1221
+ marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
1222
+ width: "fit-content"
1223
+ },
1224
+ [`& .${import_material27.toggleButtonGroupClasses.lastButton}`]: {
1225
+ marginBottom: "unset",
1226
+ marginRight: "unset"
1227
+ },
1228
+ [`& .${import_material27.toggleButtonGroupClasses.middleButton},& .${import_material27.toggleButtonGroupClasses.lastButton}`]: {
1229
+ marginLeft: "unset",
1230
+ borderLeft: "unset"
1231
+ }
1232
+ }));
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)(() => ({
1262
+ "&.Mui-selected, &.Mui-selected:hover": {
1263
+ backgroundColor: "#C8BCA1 !important"
1264
+ }
1265
+ }));
1266
+ var ToggleButton = (props) => {
1267
+ const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
1268
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
1269
+ ToggleButtons,
1270
+ __spreadProps(__spreadValues({}, rest), {
1271
+ disableRipple: true,
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 "}`,
1273
+ children
1274
+ })
1275
+ );
1276
+ };
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) => {
1282
+ const {
1283
+ values,
1284
+ textView = false,
1285
+ exclusive,
1286
+ collapseOnClick = false,
1287
+ label,
1288
+ collapseParent,
1289
+ flexDirection = "row"
1290
+ } = props;
1291
+ const { field } = (0, import_react_hook_form2.useController)(props);
1292
+ const handleFormat = (_event, newFormats) => {
1293
+ console.log(newFormats);
1294
+ if (newFormats !== null) field.onChange(newFormats);
1295
+ if (collapseOnClick && collapseParent) collapseParent();
1296
+ };
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,
1301
+ __spreadProps(__spreadValues({}, field), {
1302
+ flexDirection,
1303
+ exclusive,
1304
+ value: field.value,
1305
+ onChange: handleFormat,
1306
+ "aria-label": "text formatting",
1307
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1308
+ children: values.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1309
+ })
1310
+ )
1311
+ ] });
1312
+ };
1313
+ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
1204
1314
  // Annotate the CommonJS export names for ESM import in node:
1205
1315
  0 && (module.exports = {
1206
1316
  AppBar,
@@ -1235,5 +1345,8 @@ var ListItem_default = ListItem;
1235
1345
  TeamPersonCard,
1236
1346
  Text,
1237
1347
  TextBlock,
1238
- TitleBlock
1348
+ TitleBlock,
1349
+ ToggleButton,
1350
+ ToggleButtonGroup,
1351
+ ToggleButtonsWithLabel
1239
1352
  });
package/dist/index.mjs CHANGED
@@ -280,7 +280,7 @@ var SelectPro = ({
280
280
  disableRipple: true,
281
281
  fullWidth: true,
282
282
  sx: {
283
- height: small ? "34px" : "49px",
283
+ height: small ? "34px" : "38px",
284
284
  padding: small ? "0 10px 0 6px" : "0 20px 0 19px"
285
285
  },
286
286
  className: `border rounded-none border-solid normal-case text-accent-dark hover:bg-white ${open ? "!border-transparent bg-white" : ""} ${colorBorder ? "border-accent-beige flex-row-reverse justify-end gap-x-2" : "justify-between border-accent-dark"}`,
@@ -1154,6 +1154,117 @@ var ListItem = ({ icon, title, bold, onClick }) => {
1154
1154
  ) });
1155
1155
  };
1156
1156
  var ListItem_default = ListItem;
1157
+
1158
+ // src/components/ToggleButton/ToggleButtonsWithLabel.tsx
1159
+ import { Stack as Stack5 } from "@mui/material";
1160
+ import { useController as useController2 } from "react-hook-form";
1161
+ import Typography17 from "@mui/material/Typography";
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
+ var StyledToggleButtonGroup = styled9(
1171
+ MUIToggleButtonGroup
1172
+ )(({ theme: theme2, flexDirection }) => ({
1173
+ [`& .${toggleButtonGroupClasses.grouped}`]: {
1174
+ marginRight: flexDirection === "col" ? "unset" : theme2.spacing(1),
1175
+ marginBottom: flexDirection === "col" ? theme2.spacing(1) : "unset",
1176
+ width: "fit-content"
1177
+ },
1178
+ [`& .${toggleButtonGroupClasses.lastButton}`]: {
1179
+ marginBottom: "unset",
1180
+ marginRight: "unset"
1181
+ },
1182
+ [`& .${toggleButtonGroupClasses.middleButton},& .${toggleButtonGroupClasses.lastButton}`]: {
1183
+ marginLeft: "unset",
1184
+ borderLeft: "unset"
1185
+ }
1186
+ }));
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)(() => ({
1216
+ "&.Mui-selected, &.Mui-selected:hover": {
1217
+ backgroundColor: "#C8BCA1 !important"
1218
+ }
1219
+ }));
1220
+ var ToggleButton = (props) => {
1221
+ const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
1222
+ return /* @__PURE__ */ jsx44(
1223
+ ToggleButtons,
1224
+ __spreadProps(__spreadValues({}, rest), {
1225
+ disableRipple: true,
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 "}`,
1227
+ children
1228
+ })
1229
+ );
1230
+ };
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) => {
1236
+ const {
1237
+ values,
1238
+ textView = false,
1239
+ exclusive,
1240
+ collapseOnClick = false,
1241
+ label,
1242
+ collapseParent,
1243
+ flexDirection = "row"
1244
+ } = props;
1245
+ const { field } = useController2(props);
1246
+ const handleFormat = (_event, newFormats) => {
1247
+ console.log(newFormats);
1248
+ if (newFormats !== null) field.onChange(newFormats);
1249
+ if (collapseOnClick && collapseParent) collapseParent();
1250
+ };
1251
+ return /* @__PURE__ */ jsxs18(Stack5, { children: [
1252
+ label ? /* @__PURE__ */ jsx45(Typography17, { className: "text-accent-silver-2 text-sm", children: label }) : null,
1253
+ /* @__PURE__ */ jsx45(
1254
+ ToggleButtonGroup_default,
1255
+ __spreadProps(__spreadValues({}, field), {
1256
+ flexDirection,
1257
+ exclusive,
1258
+ value: field.value,
1259
+ onChange: handleFormat,
1260
+ "aria-label": "text formatting",
1261
+ className: `flex flex-${flexDirection} ${textView ? "gap-1 flex-nowrap flex-col" : " flex-wrap"}`,
1262
+ children: values.map((option, index) => /* @__PURE__ */ jsx45(ToggleButton_default, { value: option.value, textView, children: option.title }, index))
1263
+ })
1264
+ )
1265
+ ] });
1266
+ };
1267
+ var ToggleButtonsWithLabel_default = ToggleButtonsWithLabel;
1157
1268
  export {
1158
1269
  AppBar_default as AppBar,
1159
1270
  ArticleCard_default as ArticleCard,
@@ -1187,5 +1298,8 @@ export {
1187
1298
  TeamPersonCard_default as TeamPersonCard,
1188
1299
  Text_default as Text,
1189
1300
  TextBlock_default as TextBlock,
1190
- TitleBlock_default as TitleBlock
1301
+ TitleBlock_default as TitleBlock,
1302
+ ToggleButton_default as ToggleButton,
1303
+ ToggleButtonGroup_default as ToggleButtonGroup,
1304
+ ToggleButtonsWithLabel_default as ToggleButtonsWithLabel
1191
1305
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.33",
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,204 +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 } 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
- 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 };
package/dist/index.d.ts DELETED
@@ -1,204 +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 } 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
- 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 };