mayak-common-library 0.1.2 → 0.1.3

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
- import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ButtonHTMLAttributes, MouseEvent, ReactElement, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
3
+ import { ReactNode, FC, PropsWithChildren, MouseEventHandler, ReactElement, ButtonHTMLAttributes, MouseEvent, DetailedHTMLProps, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
4
4
  import { Document } from '@contentful/rich-text-types/dist/types/types';
5
5
  import { Document as Document$1 } from '@contentful/rich-text-types';
6
6
  import * as zustand from 'zustand';
7
7
  import { StateCreator } from 'zustand';
8
+ import { CheckboxProps } from '@mui/material/Checkbox';
8
9
  import * as _mui_material from '@mui/material';
9
- import { IconButtonProps, ToggleButtonProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, FormControlLabelProps, SwitchProps, ListProps, PaginationItemOwnProps } from '@mui/material';
10
+ import { FormControlLabelProps, SwitchProps, ListProps, IconButtonProps, ToggleButtonProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, PaginationItemOwnProps } from '@mui/material';
10
11
  import { UseControllerProps } from 'react-hook-form';
11
- import { CheckboxProps } from '@mui/material/Checkbox';
12
12
  import { CountryIso2 } from 'react-international-phone';
13
13
  import { AccordionProps } from '@mui/material/Accordion';
14
14
  import { OptionsType } from '@fancyapps/ui/types/Fancybox/options';
@@ -1091,174 +1091,6 @@ interface IMainBoxProps {
1091
1091
  }
1092
1092
  declare function Main({ children, className }: IMainBoxProps): react_jsx_runtime.JSX.Element;
1093
1093
 
1094
- interface CustomButtonProps extends PropsWithChildren {
1095
- bolt?: boolean;
1096
- border?: boolean;
1097
- base?: boolean;
1098
- className?: string;
1099
- onClick?: () => void;
1100
- endIcon?: ReactNode;
1101
- }
1102
- declare const Button: FC<CustomButtonProps>;
1103
-
1104
- interface ButtonDarkProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1105
- title: string;
1106
- className?: string;
1107
- view?: 'dark' | 'transparent' | 'header';
1108
- icon?: ReactNode;
1109
- minWidth?: boolean;
1110
- onClick?: MouseEventHandler<HTMLButtonElement>;
1111
- loading?: boolean;
1112
- }
1113
- declare const ButtonDark: FC<ButtonDarkProps>;
1114
-
1115
- interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
1116
- isblack?: string;
1117
- }
1118
- declare const IconButton: FC<CustomIconButtonProps>;
1119
-
1120
- declare enum MACHINE_NAME {
1121
- RESIDENTIAL = "residential",
1122
- COMMERCE = "commerce",
1123
- LAND = "land",
1124
- SALE = "sale",
1125
- RENT = "rent",
1126
- DAILY = "daily",
1127
- FLAT = "flat",
1128
- HOUSE = "house",
1129
- OFFICE = "office",
1130
- TRADE_AREA = "trade_area",
1131
- WAREHOUSE = "warehouse",
1132
- ROOM_COUNT = "roomCount",
1133
- AREA_TOTAL = "areaTotal",
1134
- AREA_LAND = "areaLand",
1135
- AREA_LIVING = "areaLiving",
1136
- AREA_KITCHEN = "areaKitchen",
1137
- FLOORS_TOTAL = "totalFloors",
1138
- FLOOR = "floor",
1139
- REMONT = "remont",
1140
- PRODUCTION_FACILITY = "production_facility",
1141
- FOOD_SERVICE_OBJECT = "food_service_object",
1142
- SERVICE_OBJECT = "service_object",
1143
- OTHER_OBJECT = "other_object",
1144
- HOTEL_ROOM = "hotel_room",
1145
- SHOP = "shop",
1146
- WHOLE_BUILDING = "whole_building",
1147
- LAND_IND_CONSTRUCTION = "ind_construction",
1148
- LAND_GARDEN = "garden",
1149
- LAND_AGRICULTURAL = "agricultural",
1150
- LAND_COMMERCIAL = "commercial",
1151
- APARTMENTS = "apartments",
1152
- VILLA = "villa",
1153
- PENTHOUSE = "penthouse",
1154
- TOWNHOUSE = "townhouse",
1155
- DUPLEX = "duplex",
1156
- FLAT_RENT = "flats-rent",
1157
- HOUSE_RENT = "houses-rent",
1158
- ROOM_RENT = "rooms-rent",
1159
- COMMERCIAL_RENT = "commercial-rent",
1160
- FLAT_SALE = "flats-sale",
1161
- HOUSE_SALE = "houses-sale",
1162
- ROOM_SALE = "rooms-sale",
1163
- COMMERCIAL_SALE = "commercial-sale",
1164
- LAND_SALE = "land-sale",
1165
- VALUE_1 = "VALUE_1",
1166
- VALUE_2 = "VALUE_2",
1167
- VALUE_3 = "VALUE_3",
1168
- VALUE_4 = "VALUE_4",
1169
- VALUE_5 = "VALUE_5",
1170
- VALUE_6 = "VALUE_6",
1171
- PRICE_UP = "price-up",
1172
- PRICE_DOWN = "price-down",
1173
- NEW = "new",
1174
- OLD = "old",
1175
- P_HOUSE_TYPE = "tip-budinku",
1176
- P_WALL_MATERIAL = "material-stin",
1177
- P_REPAIR = "remont",
1178
- P_LAYOUT = "planuvannya",
1179
- P_CLASS_OF_HOUSING = "klas-zhitla",
1180
- P_ROOM_LAYOUT = "shema-kimnat",
1181
- CITY = "city",
1182
- BATH_COUNT = "bathCount",
1183
- PARKING = "parting",
1184
- PROPERTY_TYPE = "property-type",
1185
- CONSTRUCTION = "construction",
1186
- FURNISH_STATUS = "furnish-status",
1187
- STATUS_OF_BUILDING = "status-building",
1188
- STARS = "stars"
1189
- }
1190
- type SortKeysType = MACHINE_NAME.PRICE_UP | MACHINE_NAME.PRICE_DOWN | MACHINE_NAME.NEW | MACHINE_NAME.OLD;
1191
- declare enum SORT_NAME {
1192
- 'price' = "price",
1193
- 'novelty' = "novelty"
1194
- }
1195
-
1196
- interface ToggleSortProps {
1197
- name: SORT_NAME;
1198
- label: string;
1199
- value?: SortKeysType;
1200
- selected: boolean;
1201
- flip: boolean;
1202
- defFlip?: boolean;
1203
- }
1204
- declare const ToggleSort: FC<ToggleSortProps>;
1205
-
1206
- declare const SubmitSelectButton: (props: SelectChildrenProps) => react_jsx_runtime.JSX.Element;
1207
-
1208
- declare const ToggleButton: FC<ToggleButtonProps & {
1209
- textView?: boolean;
1210
- }>;
1211
-
1212
- interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
1213
- textView?: boolean;
1214
- flexDirection?: 'row' | 'col';
1215
- onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
1216
- value: any;
1217
- }
1218
- declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
1219
-
1220
- interface ToggleButtonsMultipleProps$1 extends ToggleButtonGroupProps$1 {
1221
- values: {
1222
- value: string | number[];
1223
- title: string;
1224
- }[];
1225
- textView?: boolean;
1226
- collapseOnClick?: boolean;
1227
- collapseParent?: () => void;
1228
- label?: string;
1229
- }
1230
- declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps$1 & UseControllerProps<any>>;
1231
-
1232
- type Values = {
1233
- value: string | number[];
1234
- title: string;
1235
- }[];
1236
- interface ToggleButtonsMultipleProps {
1237
- values: Values;
1238
- textView?: boolean;
1239
- collapseOnClick?: boolean;
1240
- collapseParent?: () => void;
1241
- label?: string;
1242
- flexDirection?: 'row' | 'col';
1243
- fixWidth?: boolean;
1244
- arrayValueFormat?: boolean;
1245
- name: any;
1246
- onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
1247
- value?: any;
1248
- exclusive?: boolean;
1249
- }
1250
- declare const ToggleButtonsWithLabel: FC<ToggleButtonsMultipleProps>;
1251
-
1252
- declare const ScrollButton: () => react_jsx_runtime.JSX.Element;
1253
-
1254
- interface ButtonBadgeProps {
1255
- icon?: ReactNode;
1256
- badgeCount?: number;
1257
- label?: string;
1258
- className?: string;
1259
- }
1260
- declare const ButtonBadge: FC<SelectChildrenProps & ButtonBadgeProps>;
1261
-
1262
1094
  interface LogoBlockProps {
1263
1095
  className?: string;
1264
1096
  small?: boolean;
@@ -1384,6 +1216,82 @@ declare const ObjectPropertyChip: FC<ObjectPropertyProps>;
1384
1216
 
1385
1217
  declare const List: FC<ListProps>;
1386
1218
 
1219
+ declare enum MACHINE_NAME {
1220
+ RESIDENTIAL = "residential",
1221
+ COMMERCE = "commerce",
1222
+ LAND = "land",
1223
+ SALE = "sale",
1224
+ RENT = "rent",
1225
+ DAILY = "daily",
1226
+ FLAT = "flat",
1227
+ HOUSE = "house",
1228
+ OFFICE = "office",
1229
+ TRADE_AREA = "trade_area",
1230
+ WAREHOUSE = "warehouse",
1231
+ ROOM_COUNT = "roomCount",
1232
+ AREA_TOTAL = "areaTotal",
1233
+ AREA_LAND = "areaLand",
1234
+ AREA_LIVING = "areaLiving",
1235
+ AREA_KITCHEN = "areaKitchen",
1236
+ FLOORS_TOTAL = "totalFloors",
1237
+ FLOOR = "floor",
1238
+ REMONT = "remont",
1239
+ PRODUCTION_FACILITY = "production_facility",
1240
+ FOOD_SERVICE_OBJECT = "food_service_object",
1241
+ SERVICE_OBJECT = "service_object",
1242
+ OTHER_OBJECT = "other_object",
1243
+ HOTEL_ROOM = "hotel_room",
1244
+ SHOP = "shop",
1245
+ WHOLE_BUILDING = "whole_building",
1246
+ LAND_IND_CONSTRUCTION = "ind_construction",
1247
+ LAND_GARDEN = "garden",
1248
+ LAND_AGRICULTURAL = "agricultural",
1249
+ LAND_COMMERCIAL = "commercial",
1250
+ APARTMENTS = "apartments",
1251
+ VILLA = "villa",
1252
+ PENTHOUSE = "penthouse",
1253
+ TOWNHOUSE = "townhouse",
1254
+ DUPLEX = "duplex",
1255
+ FLAT_RENT = "flats-rent",
1256
+ HOUSE_RENT = "houses-rent",
1257
+ ROOM_RENT = "rooms-rent",
1258
+ COMMERCIAL_RENT = "commercial-rent",
1259
+ FLAT_SALE = "flats-sale",
1260
+ HOUSE_SALE = "houses-sale",
1261
+ ROOM_SALE = "rooms-sale",
1262
+ COMMERCIAL_SALE = "commercial-sale",
1263
+ LAND_SALE = "land-sale",
1264
+ VALUE_1 = "VALUE_1",
1265
+ VALUE_2 = "VALUE_2",
1266
+ VALUE_3 = "VALUE_3",
1267
+ VALUE_4 = "VALUE_4",
1268
+ VALUE_5 = "VALUE_5",
1269
+ VALUE_6 = "VALUE_6",
1270
+ PRICE_UP = "price-up",
1271
+ PRICE_DOWN = "price-down",
1272
+ NEW = "new",
1273
+ OLD = "old",
1274
+ P_HOUSE_TYPE = "tip-budinku",
1275
+ P_WALL_MATERIAL = "material-stin",
1276
+ P_REPAIR = "remont",
1277
+ P_LAYOUT = "planuvannya",
1278
+ P_CLASS_OF_HOUSING = "klas-zhitla",
1279
+ P_ROOM_LAYOUT = "shema-kimnat",
1280
+ CITY = "city",
1281
+ BATH_COUNT = "bathCount",
1282
+ PARKING = "parting",
1283
+ PROPERTY_TYPE = "property-type",
1284
+ CONSTRUCTION = "construction",
1285
+ FURNISH_STATUS = "furnish-status",
1286
+ STATUS_OF_BUILDING = "status-building",
1287
+ STARS = "stars"
1288
+ }
1289
+ type SortKeysType = MACHINE_NAME.PRICE_UP | MACHINE_NAME.PRICE_DOWN | MACHINE_NAME.NEW | MACHINE_NAME.OLD;
1290
+ declare enum SORT_NAME {
1291
+ 'price' = "price",
1292
+ 'novelty' = "novelty"
1293
+ }
1294
+
1387
1295
  interface ListItemProps {
1388
1296
  title: string;
1389
1297
  value?: MACHINE_NAME | string;
@@ -1412,6 +1320,99 @@ interface TermListProps {
1412
1320
  }
1413
1321
  declare const TermList: (props: TermListProps) => react_jsx_runtime.JSX.Element;
1414
1322
 
1323
+ interface CustomButtonProps extends PropsWithChildren {
1324
+ bolt?: boolean;
1325
+ border?: boolean;
1326
+ base?: boolean;
1327
+ className?: string;
1328
+ iconClassName?: string;
1329
+ onClick?: () => void;
1330
+ endIcon?: ReactNode;
1331
+ }
1332
+ declare const Button: FC<CustomButtonProps>;
1333
+
1334
+ interface ButtonDarkProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1335
+ title: string;
1336
+ className?: string;
1337
+ view?: 'dark' | 'transparent' | 'header';
1338
+ icon?: ReactNode;
1339
+ minWidth?: boolean;
1340
+ onClick?: MouseEventHandler<HTMLButtonElement>;
1341
+ loading?: boolean;
1342
+ }
1343
+ declare const ButtonDark: FC<ButtonDarkProps>;
1344
+
1345
+ interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
1346
+ isblack?: string;
1347
+ }
1348
+ declare const IconButton: FC<CustomIconButtonProps>;
1349
+
1350
+ interface ToggleSortProps {
1351
+ name: SORT_NAME;
1352
+ label: string;
1353
+ value?: SortKeysType;
1354
+ selected: boolean;
1355
+ flip: boolean;
1356
+ defFlip?: boolean;
1357
+ }
1358
+ declare const ToggleSort: FC<ToggleSortProps>;
1359
+
1360
+ declare const SubmitSelectButton: (props: SelectChildrenProps) => react_jsx_runtime.JSX.Element;
1361
+
1362
+ declare const ToggleButton: FC<ToggleButtonProps & {
1363
+ textView?: boolean;
1364
+ }>;
1365
+
1366
+ interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
1367
+ textView?: boolean;
1368
+ flexDirection?: 'row' | 'col';
1369
+ onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
1370
+ value: any;
1371
+ }
1372
+ declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
1373
+
1374
+ interface ToggleButtonsMultipleProps$1 extends ToggleButtonGroupProps$1 {
1375
+ values: {
1376
+ value: string | number[];
1377
+ title: string;
1378
+ }[];
1379
+ textView?: boolean;
1380
+ collapseOnClick?: boolean;
1381
+ collapseParent?: () => void;
1382
+ label?: string;
1383
+ }
1384
+ declare const ToggleButtonsMultiple: FC<ToggleButtonsMultipleProps$1 & UseControllerProps<any>>;
1385
+
1386
+ type Values = {
1387
+ value: string | number[];
1388
+ title: string;
1389
+ }[];
1390
+ interface ToggleButtonsMultipleProps {
1391
+ values: Values;
1392
+ textView?: boolean;
1393
+ collapseOnClick?: boolean;
1394
+ collapseParent?: () => void;
1395
+ label?: string;
1396
+ flexDirection?: 'row' | 'col';
1397
+ fixWidth?: boolean;
1398
+ arrayValueFormat?: boolean;
1399
+ name: any;
1400
+ onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
1401
+ value?: any;
1402
+ exclusive?: boolean;
1403
+ }
1404
+ declare const ToggleButtonsWithLabel: FC<ToggleButtonsMultipleProps>;
1405
+
1406
+ declare const ScrollButton: () => react_jsx_runtime.JSX.Element;
1407
+
1408
+ interface ButtonBadgeProps {
1409
+ icon?: ReactNode;
1410
+ badgeCount?: number;
1411
+ label?: string;
1412
+ className?: string;
1413
+ }
1414
+ declare const ButtonBadge: FC<SelectChildrenProps & ButtonBadgeProps>;
1415
+
1415
1416
  interface ErrorMessageProps {
1416
1417
  errorMessage?: string;
1417
1418
  }