mayak-common-library 0.0.35 → 0.0.36
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 +241 -0
- package/dist/index.d.ts +241 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
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, MouseEvent } from 'react';
|
|
5
|
+
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
|
+
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
+
import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } 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$1 {
|
|
220
|
+
values: Values;
|
|
221
|
+
textView?: boolean;
|
|
222
|
+
collapseOnClick?: boolean;
|
|
223
|
+
collapseParent?: () => void;
|
|
224
|
+
label?: string;
|
|
225
|
+
flexDirection?: "row" | "col";
|
|
226
|
+
}
|
|
227
|
+
declare const ToggleButtonsWithLabel: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
|
|
228
|
+
|
|
229
|
+
declare const ToggleButton: FC<ToggleButtonProps & {
|
|
230
|
+
textView?: boolean;
|
|
231
|
+
}>;
|
|
232
|
+
|
|
233
|
+
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
234
|
+
textView?: boolean;
|
|
235
|
+
flexDirection?: "row" | "col";
|
|
236
|
+
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
237
|
+
value: any;
|
|
238
|
+
}
|
|
239
|
+
declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
240
|
+
|
|
241
|
+
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, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
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, MouseEvent } from 'react';
|
|
5
|
+
import { IconButtonProps } from '@mui/material/IconButton/IconButton';
|
|
6
|
+
import { SelectProps } from '@mui/material/Select/Select';
|
|
7
|
+
import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } 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$1 {
|
|
220
|
+
values: Values;
|
|
221
|
+
textView?: boolean;
|
|
222
|
+
collapseOnClick?: boolean;
|
|
223
|
+
collapseParent?: () => void;
|
|
224
|
+
label?: string;
|
|
225
|
+
flexDirection?: "row" | "col";
|
|
226
|
+
}
|
|
227
|
+
declare const ToggleButtonsWithLabel: FC<ToggleButtonsMultipleProps & UseControllerProps<FormValues>>;
|
|
228
|
+
|
|
229
|
+
declare const ToggleButton: FC<ToggleButtonProps & {
|
|
230
|
+
textView?: boolean;
|
|
231
|
+
}>;
|
|
232
|
+
|
|
233
|
+
interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
|
|
234
|
+
textView?: boolean;
|
|
235
|
+
flexDirection?: "row" | "col";
|
|
236
|
+
onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
|
|
237
|
+
value: any;
|
|
238
|
+
}
|
|
239
|
+
declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
|
|
240
|
+
|
|
241
|
+
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, ToggleButton, ToggleButtonGroup, ToggleButtonsWithLabel };
|
package/dist/index.js
CHANGED
|
@@ -1258,7 +1258,7 @@ var ToggleButtonGroup_default = ToggleButtonGroup;
|
|
|
1258
1258
|
var import_material28 = require("@mui/material");
|
|
1259
1259
|
var import_ToggleButton = __toESM(require("@mui/material/ToggleButton"));
|
|
1260
1260
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
1261
|
-
var
|
|
1261
|
+
var CustomToggleButton = (0, import_material28.styled)(import_ToggleButton.default)(() => ({
|
|
1262
1262
|
"&.Mui-selected, &.Mui-selected:hover": {
|
|
1263
1263
|
backgroundColor: "#C8BCA1 !important"
|
|
1264
1264
|
}
|
|
@@ -1266,7 +1266,7 @@ var ToggleButtons = (0, import_material28.styled)(import_ToggleButton.default)((
|
|
|
1266
1266
|
var ToggleButton = (props) => {
|
|
1267
1267
|
const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
|
|
1268
1268
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
1269
|
-
|
|
1269
|
+
CustomToggleButton,
|
|
1270
1270
|
__spreadProps(__spreadValues({}, rest), {
|
|
1271
1271
|
disableRipple: true,
|
|
1272
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 "}`,
|
package/dist/index.mjs
CHANGED
|
@@ -1212,7 +1212,7 @@ var ToggleButtonGroup_default = ToggleButtonGroup;
|
|
|
1212
1212
|
import { styled as styled10 } from "@mui/material";
|
|
1213
1213
|
import MuiToggleButton from "@mui/material/ToggleButton";
|
|
1214
1214
|
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
1215
|
-
var
|
|
1215
|
+
var CustomToggleButton = styled10(MuiToggleButton)(() => ({
|
|
1216
1216
|
"&.Mui-selected, &.Mui-selected:hover": {
|
|
1217
1217
|
backgroundColor: "#C8BCA1 !important"
|
|
1218
1218
|
}
|
|
@@ -1220,7 +1220,7 @@ var ToggleButtons = styled10(MuiToggleButton)(() => ({
|
|
|
1220
1220
|
var ToggleButton = (props) => {
|
|
1221
1221
|
const _a = props, { children, textView } = _a, rest = __objRest(_a, ["children", "textView"]);
|
|
1222
1222
|
return /* @__PURE__ */ jsx44(
|
|
1223
|
-
|
|
1223
|
+
CustomToggleButton,
|
|
1224
1224
|
__spreadProps(__spreadValues({}, rest), {
|
|
1225
1225
|
disableRipple: true,
|
|
1226
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 "}`,
|