mayak-common-library 0.0.83 → 0.0.85

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.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* src/components/Select/styles.css */
2
- @keyframes fade-In {
2
+ @keyframes fadeIn {
3
3
  0% {
4
4
  opacity: 0;
5
5
  transform: translateY(2rem);
@@ -19,6 +19,36 @@
19
19
  transform: translateY(2rem);
20
20
  }
21
21
  }
22
+ @keyframes fadeInReverse {
23
+ 0% {
24
+ opacity: 0;
25
+ transform: translateY(-2rem);
26
+ }
27
+ 100% {
28
+ opacity: 1;
29
+ transform: translateY(0);
30
+ }
31
+ }
32
+ @keyframes fadeOut {
33
+ 0% {
34
+ opacity: 1;
35
+ transform: translateY(0);
36
+ }
37
+ 100% {
38
+ opacity: 0;
39
+ transform: translateY(2rem);
40
+ }
41
+ }
42
+ @keyframes fadeOutReverse {
43
+ 0% {
44
+ opacity: 1;
45
+ transform: translateY(0);
46
+ }
47
+ 100% {
48
+ opacity: 0;
49
+ transform: translateY(-2rem);
50
+ }
51
+ }
22
52
  .select {
23
53
  transition: unset !important;
24
54
  }
@@ -26,7 +56,13 @@
26
56
  animation: fadeOut 0.4s;
27
57
  }
28
58
  .select--open {
29
- animation: fade-In 0.5s;
59
+ animation: fadeIn 0.5s;
60
+ }
61
+ .select--close-reverse {
62
+ animation: fadeOutReverse 0.4s;
63
+ }
64
+ .select--open-reverse {
65
+ animation: fadeInReverse 0.5s;
30
66
  }
31
67
 
32
68
  /* src/styles/globals.scss */
package/dist/index.js CHANGED
@@ -308,7 +308,9 @@ var SelectPro = ({
308
308
  openUp,
309
309
  intermediateChild,
310
310
  accentBgColor,
311
- paperSx
311
+ paperSx,
312
+ childContainerSx,
313
+ reverseAnimation = false
312
314
  }) => {
313
315
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
314
316
  const [open, setOpen] = (0, import_react2.useState)(false);
@@ -389,21 +391,28 @@ var SelectPro = ({
389
391
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
390
392
  }
391
393
  }, paperSx),
392
- className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
394
+ className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open-reverse"}` : `${reverseAnimation ? "select--close-reverse" : "select--close-reverse"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
393
395
  children: [
394
396
  intermediateChild ? intermediateChild : null,
395
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
396
- overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
397
- IconButton_default,
398
- {
399
- className: "bg-accent-silver p-1 self-end absolute",
400
- onClick: handleClose,
401
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
402
- }
403
- ) : null,
404
- childTitle ? childTitle : null,
405
- childrenWithHandleChange
406
- ] })
397
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
398
+ import_material4.Box,
399
+ {
400
+ className: `flex flex-col py-3 px-4 gap-2 shadow-sm`,
401
+ sx: childContainerSx,
402
+ children: [
403
+ overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
404
+ IconButton_default,
405
+ {
406
+ className: "bg-accent-silver p-1 self-end absolute",
407
+ onClick: handleClose,
408
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
409
+ }
410
+ ) : null,
411
+ childTitle ? childTitle : null,
412
+ childrenWithHandleChange
413
+ ]
414
+ }
415
+ )
407
416
  ]
408
417
  }
409
418
  ) : null
package/dist/index.mjs CHANGED
@@ -249,7 +249,9 @@ var SelectPro = ({
249
249
  openUp,
250
250
  intermediateChild,
251
251
  accentBgColor,
252
- paperSx
252
+ paperSx,
253
+ childContainerSx,
254
+ reverseAnimation = false
253
255
  }) => {
254
256
  const [btn, setAnchorEl] = useState2(null);
255
257
  const [open, setOpen] = useState2(false);
@@ -330,21 +332,28 @@ var SelectPro = ({
330
332
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
331
333
  }
332
334
  }, paperSx),
333
- className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
335
+ className: `absolute select ${open ? `${reverseAnimation ? "select--open-reverse" : "select--open-reverse"}` : `${reverseAnimation ? "select--close-reverse" : "select--close-reverse"}`} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
334
336
  children: [
335
337
  intermediateChild ? intermediateChild : null,
336
- /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
337
- overButton ? /* @__PURE__ */ jsx7(
338
- IconButton_default,
339
- {
340
- className: "bg-accent-silver p-1 self-end absolute",
341
- onClick: handleClose,
342
- children: /* @__PURE__ */ jsx7(close_default, {})
343
- }
344
- ) : null,
345
- childTitle ? childTitle : null,
346
- childrenWithHandleChange
347
- ] })
338
+ /* @__PURE__ */ jsxs3(
339
+ Box,
340
+ {
341
+ className: `flex flex-col py-3 px-4 gap-2 shadow-sm`,
342
+ sx: childContainerSx,
343
+ children: [
344
+ overButton ? /* @__PURE__ */ jsx7(
345
+ IconButton_default,
346
+ {
347
+ className: "bg-accent-silver p-1 self-end absolute",
348
+ onClick: handleClose,
349
+ children: /* @__PURE__ */ jsx7(close_default, {})
350
+ }
351
+ ) : null,
352
+ childTitle ? childTitle : null,
353
+ childrenWithHandleChange
354
+ ]
355
+ }
356
+ )
348
357
  ]
349
358
  }
350
359
  ) : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.83",
3
+ "version": "0.0.85",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/dist/index.d.mts DELETED
@@ -1,255 +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, MouseEvent } from 'react';
5
- import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
- import { SelectProps } from '@mui/material/Select/Select';
7
- import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
8
- import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } from '@mui/material';
9
- import { BadgeProps } from '@mui/material/Badge/Badge';
10
- import { AvatarProps } from '@mui/material/Avatar/Avatar';
11
- import { TypographyOwnProps } from '@mui/material/Typography';
12
- import { RadioProps } from '@mui/material/Radio';
13
- import { FormControlLabelProps } from '@mui/material/FormControlLabel';
14
- import { RadioGroupProps } from '@mui/material/RadioGroup';
15
- import { SwitchProps } from '@mui/material/Switch/Switch';
16
- import { SliderProps } from '@mui/material/Slider/Slider';
17
- import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
18
- import { InputProps } from '@mui/material/Input';
19
- import { PatternFormatProps } from 'react-number-format/types/types';
20
- import { UseControllerProps, FieldValues } from 'react-hook-form';
21
- export { default as MapIcon } from '@/icons/map-search.svg';
22
- import { ListProps } from '@mui/material/List/List';
23
- import { CheckboxProps } from '@mui/material/Checkbox';
24
- import { FormControlLabelProps as FormControlLabelProps$1 } from '@mui/material/FormControlLabel/FormControlLabel';
25
-
26
- declare function Greet(props: {
27
- name: string;
28
- }): react_jsx_runtime.JSX.Element;
29
-
30
- interface CustomButtonProps extends ButtonProps, PropsWithChildren {
31
- bolt?: boolean;
32
- border?: boolean;
33
- base?: boolean;
34
- small?: boolean;
35
- large?: boolean;
36
- medium?: boolean;
37
- }
38
- declare const Button: FC<CustomButtonProps>;
39
-
40
- interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
41
- }
42
- declare const IconButton: FC<CustomIconButtonProps>;
43
-
44
- declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
45
-
46
- interface SelectProProps {
47
- placeholder?: string;
48
- childTitle?: ReactElement;
49
- colorBorder?: boolean;
50
- clickComponent?: ReactElement;
51
- fullContainerWidth?: boolean;
52
- overButton?: boolean;
53
- small?: boolean;
54
- fullWidth?: boolean;
55
- freeChildWidth?: boolean;
56
- openUp?: boolean;
57
- intermediateChild?: ReactElement;
58
- accentBgColor?: true;
59
- paperSx?: SystemStyleObject;
60
- }
61
- declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
62
-
63
- interface CustomChipProps {
64
- view: "black" | "line" | "white" | "silver";
65
- }
66
- declare const Chip: FC<ChipProps & CustomChipProps>;
67
-
68
- declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
69
-
70
- declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
71
-
72
- declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
73
-
74
- interface CustomRadioProps {
75
- labelProps?: FormControlLabelProps;
76
- radioProps?: RadioProps;
77
- label?: string;
78
- value?: string;
79
- }
80
- declare const CustomRadio: React__default.FC<CustomRadioProps>;
81
-
82
- declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
83
-
84
- interface CustomSwitchProps {
85
- beforeText?: string;
86
- afterText?: string;
87
- }
88
- declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
89
-
90
- declare const CustomSlider: FC<SliderProps>;
91
-
92
- declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
93
-
94
- interface CustomInputProps {
95
- type?: "number" | "string";
96
- adornmentText?: string;
97
- big?: boolean;
98
- }
99
- declare const CustomInput: FC<CustomInputProps & InputProps>;
100
-
101
- interface PhoneInputProps {
102
- onChange: (event: {
103
- target: {
104
- name: string;
105
- value: string;
106
- };
107
- }) => void;
108
- name: string;
109
- }
110
- declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
111
-
112
- interface FromToInputProps {
113
- label?: string;
114
- }
115
- declare const FromToInput: FC<FromToInputProps>;
116
-
117
- interface SearchInputProps {
118
- onClick?: (event: MouseEvent<HTMLDivElement>) => void;
119
- collapse?: boolean;
120
- }
121
- declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
122
-
123
- declare const Providers: FC<PropsWithChildren>;
124
-
125
- interface AppBarProps {
126
- links: {
127
- path: string;
128
- title: string;
129
- }[];
130
- }
131
- declare const AppBar: FC<AppBarProps>;
132
-
133
- interface ImageContainerProps {
134
- src: any;
135
- alt: string;
136
- contentful?: boolean;
137
- priority?: boolean;
138
- loading?: "lazy" | "eager" | undefined;
139
- width?: string;
140
- height?: string;
141
- objectFit?: string;
142
- classesWrapper?: string;
143
- classesImg?: string;
144
- }
145
- declare const ImageContainer: FC<ImageContainerProps>;
146
-
147
- interface CategoryCardProps {
148
- image_url?: string;
149
- title: string;
150
- text: string;
151
- link: string;
152
- }
153
- declare const CategoryCard: FC<CategoryCardProps>;
154
-
155
- interface ArticleCardProps {
156
- imageUrl: string;
157
- title: string;
158
- text: string;
159
- classes?: string;
160
- href: string;
161
- }
162
- declare const ArticleCard: FC<ArticleCardProps>;
163
-
164
- interface JobCardProps {
165
- }
166
- declare const JobCard: FC<JobCardProps>;
167
-
168
- declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
169
-
170
- declare const RealtyCard: FC;
171
-
172
- interface TeamPersonCardProps {
173
- image_url?: string;
174
- name: string;
175
- position: string;
176
- text: string;
177
- }
178
- declare const TeamPersonCard: FC<TeamPersonCardProps>;
179
-
180
- interface AutocompleteProps {
181
- values: string[];
182
- }
183
- declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
184
-
185
- interface BigNumberProps {
186
- number?: number;
187
- text?: string;
188
- }
189
- declare const BigNumber: FC<BigNumberProps>;
190
-
191
- interface TextBlockProps {
192
- classes?: string;
193
- title: string;
194
- text: string;
195
- }
196
- declare const TextBlock: FC<TextBlockProps>;
197
-
198
- type TitlePosition = "center" | "left";
199
-
200
- interface TitleBlockProps {
201
- title: string;
202
- titlePosition?: TitlePosition;
203
- classes?: string;
204
- }
205
- declare const TitleBlock: FC<TitleBlockProps>;
206
-
207
- declare const List: FC<ListProps>;
208
-
209
- interface ListItemProps {
210
- icon?: ReactElement;
211
- title: string;
212
- bold?: boolean;
213
- onClick?: (value: string) => void;
214
- value?: string;
215
- }
216
- declare const ListItem: FC<ListItemProps>;
217
-
218
- type Values = {
219
- value: string | number[];
220
- title: string;
221
- }[];
222
-
223
- interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
224
- values: Values;
225
- textView?: boolean;
226
- collapseOnClick?: boolean;
227
- collapseParent?: () => void;
228
- label?: string;
229
- flexDirection?: "row" | "col";
230
- fixWidth?: boolean;
231
- }
232
- declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
233
-
234
- declare const ToggleButton: FC<ToggleButtonProps & {
235
- textView?: boolean;
236
- }>;
237
-
238
- interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
239
- textView?: boolean;
240
- flexDirection?: "row" | "col";
241
- onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
242
- value: any;
243
- }
244
- declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
245
-
246
- interface CustomCheckboxProps {
247
- labelProps?: FormControlLabelProps$1;
248
- checkboxProps?: CheckboxProps;
249
- className?: string;
250
- label?: string;
251
- toggleView?: boolean;
252
- }
253
- declare const CustomCheckbox: FC<CustomCheckboxProps>;
254
-
255
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, 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 };
package/dist/index.d.ts DELETED
@@ -1,255 +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, MouseEvent } from 'react';
5
- import { IconButtonProps } from '@mui/material/IconButton/IconButton';
6
- import { SelectProps } from '@mui/material/Select/Select';
7
- import { SystemStyleObject } from '@mui/system/styleFunctionSx/styleFunctionSx';
8
- import { ChipProps, ToggleButtonGroupProps as ToggleButtonGroupProps$1, ToggleButtonProps } from '@mui/material';
9
- import { BadgeProps } from '@mui/material/Badge/Badge';
10
- import { AvatarProps } from '@mui/material/Avatar/Avatar';
11
- import { TypographyOwnProps } from '@mui/material/Typography';
12
- import { RadioProps } from '@mui/material/Radio';
13
- import { FormControlLabelProps } from '@mui/material/FormControlLabel';
14
- import { RadioGroupProps } from '@mui/material/RadioGroup';
15
- import { SwitchProps } from '@mui/material/Switch/Switch';
16
- import { SliderProps } from '@mui/material/Slider/Slider';
17
- import { MenuItemProps } from '@mui/material/MenuItem/MenuItem';
18
- import { InputProps } from '@mui/material/Input';
19
- import { PatternFormatProps } from 'react-number-format/types/types';
20
- import { UseControllerProps, FieldValues } from 'react-hook-form';
21
- export { default as MapIcon } from '@/icons/map-search.svg';
22
- import { ListProps } from '@mui/material/List/List';
23
- import { CheckboxProps } from '@mui/material/Checkbox';
24
- import { FormControlLabelProps as FormControlLabelProps$1 } from '@mui/material/FormControlLabel/FormControlLabel';
25
-
26
- declare function Greet(props: {
27
- name: string;
28
- }): react_jsx_runtime.JSX.Element;
29
-
30
- interface CustomButtonProps extends ButtonProps, PropsWithChildren {
31
- bolt?: boolean;
32
- border?: boolean;
33
- base?: boolean;
34
- small?: boolean;
35
- large?: boolean;
36
- medium?: boolean;
37
- }
38
- declare const Button: FC<CustomButtonProps>;
39
-
40
- interface CustomIconButtonProps extends IconButtonProps, PropsWithChildren {
41
- }
42
- declare const IconButton: FC<CustomIconButtonProps>;
43
-
44
- declare const CustomSelect: FC<SelectProps & PropsWithChildren>;
45
-
46
- interface SelectProProps {
47
- placeholder?: string;
48
- childTitle?: ReactElement;
49
- colorBorder?: boolean;
50
- clickComponent?: ReactElement;
51
- fullContainerWidth?: boolean;
52
- overButton?: boolean;
53
- small?: boolean;
54
- fullWidth?: boolean;
55
- freeChildWidth?: boolean;
56
- openUp?: boolean;
57
- intermediateChild?: ReactElement;
58
- accentBgColor?: true;
59
- paperSx?: SystemStyleObject;
60
- }
61
- declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
62
-
63
- interface CustomChipProps {
64
- view: "black" | "line" | "white" | "silver";
65
- }
66
- declare const Chip: FC<ChipProps & CustomChipProps>;
67
-
68
- declare const CustomBadge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
69
-
70
- declare const CustomAvatar: (props: AvatarProps) => react_jsx_runtime.JSX.Element;
71
-
72
- declare const Text: FC<TypographyOwnProps & PropsWithChildren>;
73
-
74
- interface CustomRadioProps {
75
- labelProps?: FormControlLabelProps;
76
- radioProps?: RadioProps;
77
- label?: string;
78
- value?: string;
79
- }
80
- declare const CustomRadio: React__default.FC<CustomRadioProps>;
81
-
82
- declare const CustomRadioGroup: React__default.FC<RadioGroupProps & PropsWithChildren>;
83
-
84
- interface CustomSwitchProps {
85
- beforeText?: string;
86
- afterText?: string;
87
- }
88
- declare const CustomSwitch: FC<CustomSwitchProps & SwitchProps>;
89
-
90
- declare const CustomSlider: FC<SliderProps>;
91
-
92
- declare const CustomMenuItem: FC<MenuItemProps & PropsWithChildren>;
93
-
94
- interface CustomInputProps {
95
- type?: "number" | "string";
96
- adornmentText?: string;
97
- big?: boolean;
98
- }
99
- declare const CustomInput: FC<CustomInputProps & InputProps>;
100
-
101
- interface PhoneInputProps {
102
- onChange: (event: {
103
- target: {
104
- name: string;
105
- value: string;
106
- };
107
- }) => void;
108
- name: string;
109
- }
110
- declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps & React.RefAttributes<PatternFormatProps>>;
111
-
112
- interface FromToInputProps {
113
- label?: string;
114
- }
115
- declare const FromToInput: FC<FromToInputProps>;
116
-
117
- interface SearchInputProps {
118
- onClick?: (event: MouseEvent<HTMLDivElement>) => void;
119
- collapse?: boolean;
120
- }
121
- declare const SearchInput: <T extends object>(props: SearchInputProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
122
-
123
- declare const Providers: FC<PropsWithChildren>;
124
-
125
- interface AppBarProps {
126
- links: {
127
- path: string;
128
- title: string;
129
- }[];
130
- }
131
- declare const AppBar: FC<AppBarProps>;
132
-
133
- interface ImageContainerProps {
134
- src: any;
135
- alt: string;
136
- contentful?: boolean;
137
- priority?: boolean;
138
- loading?: "lazy" | "eager" | undefined;
139
- width?: string;
140
- height?: string;
141
- objectFit?: string;
142
- classesWrapper?: string;
143
- classesImg?: string;
144
- }
145
- declare const ImageContainer: FC<ImageContainerProps>;
146
-
147
- interface CategoryCardProps {
148
- image_url?: string;
149
- title: string;
150
- text: string;
151
- link: string;
152
- }
153
- declare const CategoryCard: FC<CategoryCardProps>;
154
-
155
- interface ArticleCardProps {
156
- imageUrl: string;
157
- title: string;
158
- text: string;
159
- classes?: string;
160
- href: string;
161
- }
162
- declare const ArticleCard: FC<ArticleCardProps>;
163
-
164
- interface JobCardProps {
165
- }
166
- declare const JobCard: FC<JobCardProps>;
167
-
168
- declare const RealtorCard: () => react_jsx_runtime.JSX.Element;
169
-
170
- declare const RealtyCard: FC;
171
-
172
- interface TeamPersonCardProps {
173
- image_url?: string;
174
- name: string;
175
- position: string;
176
- text: string;
177
- }
178
- declare const TeamPersonCard: FC<TeamPersonCardProps>;
179
-
180
- interface AutocompleteProps {
181
- values: string[];
182
- }
183
- declare const Autocomplete: FC<AutocompleteProps & UseControllerProps<any>>;
184
-
185
- interface BigNumberProps {
186
- number?: number;
187
- text?: string;
188
- }
189
- declare const BigNumber: FC<BigNumberProps>;
190
-
191
- interface TextBlockProps {
192
- classes?: string;
193
- title: string;
194
- text: string;
195
- }
196
- declare const TextBlock: FC<TextBlockProps>;
197
-
198
- type TitlePosition = "center" | "left";
199
-
200
- interface TitleBlockProps {
201
- title: string;
202
- titlePosition?: TitlePosition;
203
- classes?: string;
204
- }
205
- declare const TitleBlock: FC<TitleBlockProps>;
206
-
207
- declare const List: FC<ListProps>;
208
-
209
- interface ListItemProps {
210
- icon?: ReactElement;
211
- title: string;
212
- bold?: boolean;
213
- onClick?: (value: string) => void;
214
- value?: string;
215
- }
216
- declare const ListItem: FC<ListItemProps>;
217
-
218
- type Values = {
219
- value: string | number[];
220
- title: string;
221
- }[];
222
-
223
- interface ToggleButtonsMultipleProps extends ToggleButtonGroupProps$1 {
224
- values: Values;
225
- textView?: boolean;
226
- collapseOnClick?: boolean;
227
- collapseParent?: () => void;
228
- label?: string;
229
- flexDirection?: "row" | "col";
230
- fixWidth?: boolean;
231
- }
232
- declare const ToggleButtonsWithLabel: <T extends FieldValues>(props: ToggleButtonsMultipleProps & UseControllerProps<T>) => react_jsx_runtime.JSX.Element;
233
-
234
- declare const ToggleButton: FC<ToggleButtonProps & {
235
- textView?: boolean;
236
- }>;
237
-
238
- interface ToggleButtonGroupProps extends ToggleButtonGroupProps$1 {
239
- textView?: boolean;
240
- flexDirection?: "row" | "col";
241
- onChange: (event: MouseEvent<HTMLElement>, value: any) => void;
242
- value: any;
243
- }
244
- declare const ToggleButtonGroup: FC<ToggleButtonGroupProps & PropsWithChildren>;
245
-
246
- interface CustomCheckboxProps {
247
- labelProps?: FormControlLabelProps$1;
248
- checkboxProps?: CheckboxProps;
249
- className?: string;
250
- label?: string;
251
- toggleView?: boolean;
252
- }
253
- declare const CustomCheckbox: FC<CustomCheckboxProps>;
254
-
255
- export { AppBar, ArticleCard, Autocomplete, CustomAvatar as Avatar, CustomBadge as Badge, BigNumber, Button, CategoryCard, CustomCheckbox as Checkbox, Chip, FromToInput, Greet, IconButton, ImageContainer, CustomInput as Input, JobCard, List, ListItem, CustomMenuItem as MenuItem, PhoneInput, Providers, 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 };