mayak-common-library 0.0.124 → 0.0.125
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 +47 -23
- package/dist/index.d.ts +47 -23
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -1
- package/svg.d.ts +4 -0
- package/next-env.d.ts +0 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
-
import
|
|
4
|
-
import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
3
|
+
import React, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
5
4
|
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
5
|
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
6
|
import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
|
|
@@ -15,9 +14,8 @@ import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
|
15
14
|
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
16
15
|
import { SliderProps } from '@mui/material/Slider/Slider';
|
|
17
16
|
import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
|
|
18
|
-
import { InputProps } from '@mui/material/Input';
|
|
19
|
-
import {
|
|
20
|
-
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
17
|
+
import { InputProps } from '@mui/material/Input/Input';
|
|
18
|
+
import { FieldValues, UseControllerProps } from 'react-hook-form';
|
|
21
19
|
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
22
20
|
import { ListProps } from '@mui/material/List/List';
|
|
23
21
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
@@ -83,9 +81,9 @@ interface CustomRadioProps {
|
|
|
83
81
|
label?: string;
|
|
84
82
|
value?: string;
|
|
85
83
|
}
|
|
86
|
-
declare const CustomRadio:
|
|
84
|
+
declare const CustomRadio: React.FC<CustomRadioProps>;
|
|
87
85
|
|
|
88
|
-
declare const CustomRadioGroup:
|
|
86
|
+
declare const CustomRadioGroup: React.FC<RadioGroupProps & PropsWithChildren>;
|
|
89
87
|
|
|
90
88
|
interface CustomSwitchProps {
|
|
91
89
|
beforeText?: string;
|
|
@@ -97,34 +95,60 @@ declare const CustomSlider: FC<SliderProps>;
|
|
|
97
95
|
|
|
98
96
|
declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
type?: "number" | "string";
|
|
102
|
-
adornmentText?: string;
|
|
103
|
-
big?: boolean;
|
|
104
|
-
}
|
|
105
|
-
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
98
|
+
declare const Input: FC<InputProps>;
|
|
106
99
|
|
|
107
|
-
interface
|
|
108
|
-
onChange: (event: {
|
|
109
|
-
target: {
|
|
110
|
-
name: string;
|
|
111
|
-
value: string;
|
|
112
|
-
};
|
|
113
|
-
}) => void;
|
|
100
|
+
interface PhoneNumberInputProps {
|
|
114
101
|
name: string;
|
|
102
|
+
border?: boolean;
|
|
103
|
+
showError?: boolean;
|
|
115
104
|
}
|
|
116
|
-
declare const
|
|
105
|
+
declare const PhoneNumberInput: FC<PhoneNumberInputProps>;
|
|
117
106
|
|
|
118
107
|
interface FromToInputProps {
|
|
119
108
|
label?: string;
|
|
120
109
|
}
|
|
121
110
|
declare const FromToInput: FC<FromToInputProps>;
|
|
122
111
|
|
|
112
|
+
type ESTag = 'borough' | 'district' | 'city' | 'metro' | 'street' | 'housing' | 'region' | 'property';
|
|
113
|
+
interface ESObject {
|
|
114
|
+
id: number;
|
|
115
|
+
slug: string;
|
|
116
|
+
tag: ESTag;
|
|
117
|
+
value_en: string;
|
|
118
|
+
value_ru: string;
|
|
119
|
+
value_uk: string;
|
|
120
|
+
}
|
|
121
|
+
interface ESGlobalObject extends ESObject {
|
|
122
|
+
crmId?: number;
|
|
123
|
+
countryId?: number;
|
|
124
|
+
boroughId?: number;
|
|
125
|
+
borough_crmid?: number;
|
|
126
|
+
borough_en?: string;
|
|
127
|
+
borough_ru?: string;
|
|
128
|
+
borough_ua?: string;
|
|
129
|
+
cityId?: number;
|
|
130
|
+
city_crmid?: number;
|
|
131
|
+
city_en?: string;
|
|
132
|
+
city_ru?: string;
|
|
133
|
+
city_uk?: string;
|
|
134
|
+
districtId?: number;
|
|
135
|
+
district_crmid?: number;
|
|
136
|
+
district_en?: string;
|
|
137
|
+
district_ru?: string;
|
|
138
|
+
district_uk?: string;
|
|
139
|
+
regionId?: number;
|
|
140
|
+
region_crmid?: number;
|
|
141
|
+
region_en?: string;
|
|
142
|
+
region_ru?: string;
|
|
143
|
+
region_uk?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
123
146
|
interface SearchInputProps {
|
|
124
147
|
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
125
148
|
collapse?: boolean;
|
|
149
|
+
chips: ESGlobalObject[] | undefined;
|
|
126
150
|
}
|
|
127
|
-
declare const SearchInput: <T extends
|
|
151
|
+
declare const SearchInput: <T extends FieldValues>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
128
152
|
|
|
129
153
|
interface AppBarProps {
|
|
130
154
|
links: {
|
|
@@ -319,4 +343,4 @@ interface LocaleSlugActions {
|
|
|
319
343
|
type LocaleSlug = LocaleSlugSlice & LocaleSlugActions;
|
|
320
344
|
declare const useLocaleSlugStore: zustand.UseBoundStore<zustand.StoreApi<LocaleSlug>>;
|
|
321
345
|
|
|
322
|
-
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer,
|
|
346
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneNumberInput as PhoneInput, 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, hrefSlugPrefix, useLocaleSlugStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ButtonProps } from '@mui/material/Button';
|
|
3
|
-
import
|
|
4
|
-
import React__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
3
|
+
import React, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode } from 'react';
|
|
5
4
|
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
5
|
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
6
|
import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
|
|
@@ -15,9 +14,8 @@ import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
|
15
14
|
import { SwitchProps } from '@mui/material/Switch/Switch';
|
|
16
15
|
import { SliderProps } from '@mui/material/Slider/Slider';
|
|
17
16
|
import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
|
|
18
|
-
import { InputProps } from '@mui/material/Input';
|
|
19
|
-
import {
|
|
20
|
-
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
17
|
+
import { InputProps } from '@mui/material/Input/Input';
|
|
18
|
+
import { FieldValues, UseControllerProps } from 'react-hook-form';
|
|
21
19
|
export { default as MapIcon } from '@/icons/map-search.svg';
|
|
22
20
|
import { ListProps } from '@mui/material/List/List';
|
|
23
21
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
@@ -83,9 +81,9 @@ interface CustomRadioProps {
|
|
|
83
81
|
label?: string;
|
|
84
82
|
value?: string;
|
|
85
83
|
}
|
|
86
|
-
declare const CustomRadio:
|
|
84
|
+
declare const CustomRadio: React.FC<CustomRadioProps>;
|
|
87
85
|
|
|
88
|
-
declare const CustomRadioGroup:
|
|
86
|
+
declare const CustomRadioGroup: React.FC<RadioGroupProps & PropsWithChildren>;
|
|
89
87
|
|
|
90
88
|
interface CustomSwitchProps {
|
|
91
89
|
beforeText?: string;
|
|
@@ -97,34 +95,60 @@ declare const CustomSlider: FC<SliderProps>;
|
|
|
97
95
|
|
|
98
96
|
declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
|
|
99
97
|
|
|
100
|
-
|
|
101
|
-
type?: "number" | "string";
|
|
102
|
-
adornmentText?: string;
|
|
103
|
-
big?: boolean;
|
|
104
|
-
}
|
|
105
|
-
declare const CustomInput: FC<CustomInputProps & InputProps>;
|
|
98
|
+
declare const Input: FC<InputProps>;
|
|
106
99
|
|
|
107
|
-
interface
|
|
108
|
-
onChange: (event: {
|
|
109
|
-
target: {
|
|
110
|
-
name: string;
|
|
111
|
-
value: string;
|
|
112
|
-
};
|
|
113
|
-
}) => void;
|
|
100
|
+
interface PhoneNumberInputProps {
|
|
114
101
|
name: string;
|
|
102
|
+
border?: boolean;
|
|
103
|
+
showError?: boolean;
|
|
115
104
|
}
|
|
116
|
-
declare const
|
|
105
|
+
declare const PhoneNumberInput: FC<PhoneNumberInputProps>;
|
|
117
106
|
|
|
118
107
|
interface FromToInputProps {
|
|
119
108
|
label?: string;
|
|
120
109
|
}
|
|
121
110
|
declare const FromToInput: FC<FromToInputProps>;
|
|
122
111
|
|
|
112
|
+
type ESTag = 'borough' | 'district' | 'city' | 'metro' | 'street' | 'housing' | 'region' | 'property';
|
|
113
|
+
interface ESObject {
|
|
114
|
+
id: number;
|
|
115
|
+
slug: string;
|
|
116
|
+
tag: ESTag;
|
|
117
|
+
value_en: string;
|
|
118
|
+
value_ru: string;
|
|
119
|
+
value_uk: string;
|
|
120
|
+
}
|
|
121
|
+
interface ESGlobalObject extends ESObject {
|
|
122
|
+
crmId?: number;
|
|
123
|
+
countryId?: number;
|
|
124
|
+
boroughId?: number;
|
|
125
|
+
borough_crmid?: number;
|
|
126
|
+
borough_en?: string;
|
|
127
|
+
borough_ru?: string;
|
|
128
|
+
borough_ua?: string;
|
|
129
|
+
cityId?: number;
|
|
130
|
+
city_crmid?: number;
|
|
131
|
+
city_en?: string;
|
|
132
|
+
city_ru?: string;
|
|
133
|
+
city_uk?: string;
|
|
134
|
+
districtId?: number;
|
|
135
|
+
district_crmid?: number;
|
|
136
|
+
district_en?: string;
|
|
137
|
+
district_ru?: string;
|
|
138
|
+
district_uk?: string;
|
|
139
|
+
regionId?: number;
|
|
140
|
+
region_crmid?: number;
|
|
141
|
+
region_en?: string;
|
|
142
|
+
region_ru?: string;
|
|
143
|
+
region_uk?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
123
146
|
interface SearchInputProps {
|
|
124
147
|
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
125
148
|
collapse?: boolean;
|
|
149
|
+
chips: ESGlobalObject[] | undefined;
|
|
126
150
|
}
|
|
127
|
-
declare const SearchInput: <T extends
|
|
151
|
+
declare const SearchInput: <T extends FieldValues>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
128
152
|
|
|
129
153
|
interface AppBarProps {
|
|
130
154
|
links: {
|
|
@@ -319,4 +343,4 @@ interface LocaleSlugActions {
|
|
|
319
343
|
type LocaleSlug = LocaleSlugSlice & LocaleSlugActions;
|
|
320
344
|
declare const useLocaleSlugStore: zustand.UseBoundStore<zustand.StoreApi<LocaleSlug>>;
|
|
321
345
|
|
|
322
|
-
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer,
|
|
346
|
+
export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BannerBlock, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, Header, IconButton, ImageContainer, Input, JobCard, LinkOut, List, ListItem, LocaleSwitcherToggle, LogoBlock, CustomMenuItem as MenuItem, PhoneNumberInput as PhoneInput, 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, hrefSlugPrefix, useLocaleSlugStore };
|