barook-ui-library 0.1.0 → 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.
@@ -0,0 +1 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="2" y="2" width="16" height="16" rx="4" fill="#dc2248"/><path d="m6.25 10.375 3 3 4.5-6.75" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
@@ -0,0 +1 @@
1
+ <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="2.5" y="2.695" width="15" height="15" rx="3.5" fill="#C6C6C6" stroke="#C6C6C6"/></svg>
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="10" cy="10.5" r="5.5" fill="#fff" stroke="#F05069" stroke-width="5" />
3
+ </svg>
package/dist/index.d.mts CHANGED
@@ -1,2 +1,316 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as _mui_material from '@mui/material';
3
+ import { AvatarProps, BackdropTypeMap, BadgeTypeMap, SwipeableDrawerProps, DrawerProps, ButtonTypeMap, CardTypeMap, CardContentTypeMap, CheckboxProps, ChipProps, CircularProgressProps, ContainerTypeMap, TextFieldProps as TextFieldProps$1, DialogProps as DialogProps$1, DividerTypeMap, GridTypeMap, IconButtonTypeMap, ListItemText as ListItemText$1, ListItemIcon as ListItemIcon$1, ListItemAvatar as ListItemAvatar$1, MenuProps, MenuItemProps, PaperProps, SelectProps, SxProps, TypographyProps, SkeletonProps, StackTypeMap, StepIconProps, StepperProps, SvgIconProps, TabProps, TabsProps, AutocompleteProps, FormHelperTextProps, IconButtonProps, TooltipProps } from '@mui/material';
4
+ export { ListItemAvatarProps, ListItemButtonProps, ListItemIconProps, ListItemProps, ListItemSecondaryActionProps, ListItemTextProps, ListProps, ListSubheaderProps } from '@mui/material';
5
+ import * as _mui_system from '@mui/system';
6
+ import { StandardCSSProperties } from '@mui/system';
7
+ import * as react from 'react';
8
+ import { PropsWithChildren, ReactNode, Dispatch, SetStateAction, ElementType, JSX, Ref } from 'react';
9
+ import * as _mui_types from '@mui/types';
10
+ import { OverridableComponent } from '@mui/types';
11
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
12
+ import { OverridableComponent as OverridableComponent$1 } from '@mui/material/OverridableComponent';
13
+ import DateObject from 'react-date-object';
14
+ import { DatePickerProps } from 'react-multi-date-picker';
15
+ import { MuiOtpInputProps } from 'mui-one-time-password-input';
1
16
 
2
- export { }
17
+ type Props$3 = AvatarProps & {
18
+ bgcolor?: StandardCSSProperties["backgroundColor"];
19
+ };
20
+ declare const Avatar: ({ children, bgcolor, src, ...props }: PropsWithChildren<Props$3>) => react_jsx_runtime.JSX.Element;
21
+
22
+ declare const Backdrop: OverridableComponent<BackdropTypeMap>;
23
+
24
+ declare const Badge: OverridableComponent<BadgeTypeMap>;
25
+
26
+ type BottomSheetProps = Omit<SwipeableDrawerProps, "open" | "onOpen" | "onClose"> & {
27
+ title?: string;
28
+ closeButton?: boolean;
29
+ headerIcon?: ReactNode;
30
+ open: boolean;
31
+ hideTouchBar?: boolean;
32
+ onOpen?: SwipeableDrawerProps["onOpen"];
33
+ onClose: () => void;
34
+ };
35
+ declare const BottomSheet: ({ title, closeButton, headerIcon, children, onOpen, onClose, ModalProps, keepMounted, hideTouchBar, ...restProps }: PropsWithChildren<BottomSheetProps>) => react_jsx_runtime.JSX.Element;
36
+
37
+ type DatePickerBottomSheetProps = Omit<DrawerProps, "open" | "onOpen" | "onClose"> & {
38
+ title?: string;
39
+ closeButton?: boolean;
40
+ headerIcon?: ReactNode;
41
+ open: boolean;
42
+ hideTouchBar?: boolean;
43
+ onClose: () => void;
44
+ };
45
+ declare const DatePickerBottomSheet: ({ title, closeButton, headerIcon, children, onClose, ModalProps, keepMounted, hideTouchBar, ...restProps }: PropsWithChildren<DatePickerBottomSheetProps>) => react_jsx_runtime.JSX.Element;
46
+
47
+ declare const Box: _mui_types.OverridableComponent<_mui_system.BoxTypeMap<{}, "div", _mui_material.Theme>>;
48
+
49
+ declare const Button: OverridableComponent<ButtonTypeMap>;
50
+
51
+ type DownloadExcelButtonProps = {
52
+ fileName: string;
53
+ refetch: () => Promise<any>;
54
+ isFetching: boolean;
55
+ };
56
+ declare const ExcelButton: ({ fileName, refetch, isFetching }: DownloadExcelButtonProps) => react_jsx_runtime.JSX.Element;
57
+
58
+ declare const Card: OverridableComponent$1<CardTypeMap>;
59
+ declare const CardContent: OverridableComponent$1<CardContentTypeMap>;
60
+
61
+ declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
62
+
63
+ type CheckBoxProps = Omit<CheckboxProps, "label"> & {
64
+ label?: string;
65
+ error?: boolean;
66
+ };
67
+ declare const RadioBox: react.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
68
+
69
+ declare const Chip: react.ForwardRefExoticComponent<Omit<ChipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
70
+
71
+ declare const CircularProgress: react.ForwardRefExoticComponent<Omit<CircularProgressProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
72
+
73
+ declare const Container: OverridableComponent<ContainerTypeMap>;
74
+
75
+ declare const DatePickerField: react.ForwardRefExoticComponent<Omit<DatePickerProps<false, false>, "onChange" | "value"> & {
76
+ label?: string;
77
+ error?: boolean;
78
+ helperText?: string;
79
+ onChange: (date: DateObject | DateObject[] | null) => void;
80
+ inputProps?: Omit<TextFieldProps$1, "ref">;
81
+ value: DateObject | DateObject[] | string;
82
+ range?: boolean;
83
+ } & react.RefAttributes<HTMLInputElement>>;
84
+
85
+ type DialogProps = Omit<DialogProps$1, "open" | "onClose" | "title"> & {
86
+ title?: ReactNode;
87
+ open: boolean;
88
+ onClose: () => void;
89
+ isTitleFixe?: boolean;
90
+ };
91
+ declare const Dialog: react.ForwardRefExoticComponent<Omit<DialogProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
92
+
93
+ declare const Divider: OverridableComponent<DividerTypeMap>;
94
+
95
+ declare const DotProgress: () => react_jsx_runtime.JSX.Element;
96
+
97
+ declare const Grid: OverridableComponent$1<GridTypeMap>;
98
+
99
+ declare const IconButton: OverridableComponent<IconButtonTypeMap>;
100
+
101
+ declare const List: _mui_material.ExtendList<_mui_material.ListTypeMap<{}, "ul">>;
102
+ declare const ListItem: _mui_material_OverridableComponent.OverridableComponent<_mui_material.ListItemTypeMap<{}, "li">>;
103
+ declare const ListItemText: typeof ListItemText$1;
104
+ declare const ListItemIcon: typeof ListItemIcon$1;
105
+ declare const ListItemAvatar: typeof ListItemAvatar$1;
106
+ declare const ListItemButton: _mui_material.ExtendButtonBase<_mui_material.ListItemButtonTypeMap<{}, "div">>;
107
+ declare const ListSubheader: _mui_material_OverridableComponent.OverridableComponent<_mui_material.ListSubheaderTypeMap<{}, "li">>;
108
+
109
+ declare const Menu: react.ForwardRefExoticComponent<Omit<PropsWithChildren<MenuProps>, "ref"> & react.RefAttributes<HTMLDivElement>>;
110
+
111
+ declare const MenuItem: react.ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & react.RefAttributes<HTMLLIElement>>;
112
+
113
+ type ModalProps = {
114
+ title?: string;
115
+ open: boolean;
116
+ onClose: () => void;
117
+ DialogProps?: Omit<DialogProps, "open" | "onClose">;
118
+ PaperProps?: PaperProps;
119
+ closeButton?: boolean;
120
+ Hidden: any;
121
+ };
122
+ declare const Modal: react.ForwardRefExoticComponent<ModalProps & {
123
+ children?: react.ReactNode | undefined;
124
+ } & react.RefAttributes<HTMLDivElement>>;
125
+
126
+ type MultiSelectFieldProps = Omit<SelectProps, "label" | "value" | "onChange"> & {
127
+ options?: {
128
+ label: string;
129
+ value: string;
130
+ }[];
131
+ helperText?: string;
132
+ label?: string;
133
+ error?: boolean;
134
+ value?: string[];
135
+ onChange: (value: string[]) => void;
136
+ placeholder?: string;
137
+ };
138
+ declare const MultiSelectField: react.ForwardRefExoticComponent<Omit<MultiSelectFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
139
+
140
+ type MultiSelectRadioFieldProps = Omit<SelectProps, "label" | "value" | "onChange"> & {
141
+ options?: {
142
+ label: string;
143
+ value: string;
144
+ }[];
145
+ helperText?: string;
146
+ label?: string;
147
+ error?: boolean;
148
+ value?: string[];
149
+ onChange: (value: string[]) => void;
150
+ placeholder?: string;
151
+ };
152
+ declare const MultiSelectRadioField: react.ForwardRefExoticComponent<Omit<MultiSelectRadioFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
153
+
154
+ declare const NotificationColor: {
155
+ default: {
156
+ textColor: string;
157
+ backgroundColor: string;
158
+ };
159
+ success: {
160
+ textColor: string;
161
+ backgroundColor: string;
162
+ };
163
+ error: {
164
+ textColor: string;
165
+ backgroundColor: string;
166
+ };
167
+ warning: {
168
+ textColor: string;
169
+ backgroundColor: string;
170
+ };
171
+ };
172
+ type NotificationVariant = keyof typeof NotificationColor;
173
+ interface PropsType extends PropsWithChildren {
174
+ variant?: NotificationVariant;
175
+ color?: NotificationVariant;
176
+ title: string;
177
+ header?: string;
178
+ rounded?: boolean;
179
+ sx?: SxProps;
180
+ }
181
+ declare const Notification: ({ variant, color, title, header, children, rounded, sx, ...props }: PropsType) => react_jsx_runtime.JSX.Element;
182
+
183
+ declare const Paper: react.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
184
+
185
+ type ExtendedTypographyProps = TypographyProps & {
186
+ fontWeight?: "regular" | "medium" | "xBold" | "bold" | number;
187
+ };
188
+ declare const Typography: react.ForwardRefExoticComponent<Omit<ExtendedTypographyProps, "ref"> & react.RefAttributes<HTMLSpanElement>>;
189
+
190
+ type Props$2 = ExtendedTypographyProps & {
191
+ value?: number | string;
192
+ withRial?: boolean;
193
+ showZero?: boolean;
194
+ };
195
+ declare const PriceView: ({ value, withRial, showZero, ...props }: Props$2) => react_jsx_runtime.JSX.Element;
196
+
197
+ type SelectOption = {
198
+ label: string;
199
+ value: string;
200
+ };
201
+ type SelectDialogProps = {
202
+ open: boolean;
203
+ onClose: () => void;
204
+ title?: string;
205
+ options: SelectOption[];
206
+ selectedValue?: string;
207
+ onSelect: (value: string) => void;
208
+ placeholder?: string;
209
+ searchPlaceholder?: string;
210
+ hasSearch?: boolean;
211
+ setKeyword?: Dispatch<SetStateAction<string | number>>;
212
+ keyword?: string | number;
213
+ };
214
+ declare const SelectDialog: ({ open, onClose, title, options, selectedValue, onSelect, searchPlaceholder, hasSearch, setKeyword, keyword, }: SelectDialogProps) => react_jsx_runtime.JSX.Element;
215
+
216
+ type SelectFieldProps = Omit<SelectProps, "label"> & {
217
+ options?: {
218
+ label: string;
219
+ value: string | number;
220
+ }[];
221
+ helperText?: string;
222
+ label?: ReactNode;
223
+ error?: boolean;
224
+ };
225
+ declare const SelectField: react.ForwardRefExoticComponent<Omit<SelectFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
226
+
227
+ declare const Skeleton: react.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
228
+
229
+ declare const Slider: _mui_material.SliderType;
230
+
231
+ declare const Stack: OverridableComponent<StackTypeMap>;
232
+
233
+ type Props$1 = {
234
+ steps: string[];
235
+ activeStep: number;
236
+ DynamicStepIcon?: ElementType<StepIconProps, keyof JSX.IntrinsicElements>;
237
+ props?: StepperProps;
238
+ activeColor?: string;
239
+ };
240
+ declare const StepperContainer: ({ steps, activeStep, DynamicStepIcon, activeColor, props, }: Props$1) => react_jsx_runtime.JSX.Element;
241
+
242
+ declare const SvgIcon: react.ForwardRefExoticComponent<Omit<SvgIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
243
+
244
+ declare const ContainedTab: react.ForwardRefExoticComponent<Omit<TabProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
245
+
246
+ declare const ContainedTabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
247
+
248
+ declare const Tab: react.ForwardRefExoticComponent<Omit<TabProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
249
+
250
+ declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
251
+
252
+ type OptionsType = {
253
+ value: string;
254
+ label: string;
255
+ };
256
+ interface AutoCompleteFieldProps extends Omit<AutocompleteProps<OptionsType, false, false, false>, "renderInput" | "onChange" | "value"> {
257
+ textFieldsProps?: Omit<TextFieldProps$1, "ref" | "onChange">;
258
+ label: string;
259
+ onChange?: (data?: string) => void;
260
+ value?: string;
261
+ helperText?: string;
262
+ }
263
+ declare const AutoCompleteField: react.ForwardRefExoticComponent<Omit<AutoCompleteFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
264
+
265
+ type IHelperTextContent = {
266
+ type?: "simple" | "info" | "success" | "error";
267
+ };
268
+ type HelperTextContentProps = PropsWithChildren<IHelperTextContent>;
269
+ declare const HelperTextContent: ({ children }: HelperTextContentProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
270
+ type HelperTextProps = FormHelperTextProps & HelperTextContentProps;
271
+ declare const HelperText: ({ children, type, ...restProps }: HelperTextProps) => react_jsx_runtime.JSX.Element;
272
+
273
+ type TextFieldProps = Omit<TextFieldProps$1, "ref"> & {
274
+ onClearStart?: () => void;
275
+ onClearEnd?: () => void;
276
+ };
277
+ declare const TextField: react.ForwardRefExoticComponent<Omit<TextFieldProps$1, "ref"> & {
278
+ onClearStart?: () => void;
279
+ onClearEnd?: () => void;
280
+ } & react.RefAttributes<HTMLInputElement>>;
281
+
282
+ type NumberInputFieldProps = TextFieldProps & {
283
+ ref?: Ref<any>;
284
+ };
285
+ declare const NumberInputField: react.ForwardRefExoticComponent<Omit<NumberInputFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
286
+
287
+ type Props = MuiOtpInputProps & {
288
+ helperText?: string;
289
+ length?: number;
290
+ };
291
+ declare const OtpField: react.ForwardRefExoticComponent<Omit<Props, "ref"> & react.RefAttributes<HTMLInputElement>>;
292
+
293
+ declare const PasswordField: react.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps & {
294
+ endIconProps?: IconButtonProps;
295
+ }, "ref"> | Omit<_mui_material.StandardTextFieldProps & {
296
+ endIconProps?: IconButtonProps;
297
+ }, "ref"> | Omit<_mui_material.OutlinedTextFieldProps & {
298
+ endIconProps?: IconButtonProps;
299
+ }, "ref">) & react.RefAttributes<HTMLInputElement>>;
300
+
301
+ type PhoneInputFieldProps = TextFieldProps & {
302
+ ref?: Ref<any>;
303
+ };
304
+ declare const PhoneInputField: react.ForwardRefExoticComponent<Omit<PhoneInputFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
305
+
306
+ type SearchFieldProps = Omit<TextFieldProps$1, "onChange"> & {
307
+ value: string | number | undefined;
308
+ onChange: (value: string | number) => void;
309
+ onClear?: () => void;
310
+ debounce?: number;
311
+ };
312
+ declare const SearchField: react.ForwardRefExoticComponent<Omit<SearchFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
313
+
314
+ declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
315
+
316
+ export { AutoCompleteField, type AutoCompleteFieldProps, Avatar, Backdrop, Badge, BottomSheet, type BottomSheetProps, Box, Button, Card, CardContent, CheckBox, Chip, CircularProgress, ContainedTab, ContainedTabs, Container, DatePickerBottomSheet, type DatePickerBottomSheetProps, DatePickerField, Dialog, type DialogProps, Divider, DotProgress, ExcelButton, type ExtendedTypographyProps, Grid, HelperText, HelperTextContent, type HelperTextContentProps, type HelperTextProps, IconButton, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, Modal, MultiSelectField, MultiSelectRadioField, Notification, NumberInputField, type NumberInputFieldProps, type OptionsType, OtpField, Paper, PasswordField, PhoneInputField, type PhoneInputFieldProps, PriceView, RadioBox, SearchField, type SearchFieldProps, SelectDialog, type SelectDialogProps, SelectField, type SelectFieldProps, type SelectOption, Skeleton, Slider, Stack, StepperContainer, SvgIcon, Tab, Tabs, TextField, type TextFieldProps, Tooltip, Typography };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,316 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as _mui_material from '@mui/material';
3
+ import { AvatarProps, BackdropTypeMap, BadgeTypeMap, SwipeableDrawerProps, DrawerProps, ButtonTypeMap, CardTypeMap, CardContentTypeMap, CheckboxProps, ChipProps, CircularProgressProps, ContainerTypeMap, TextFieldProps as TextFieldProps$1, DialogProps as DialogProps$1, DividerTypeMap, GridTypeMap, IconButtonTypeMap, ListItemText as ListItemText$1, ListItemIcon as ListItemIcon$1, ListItemAvatar as ListItemAvatar$1, MenuProps, MenuItemProps, PaperProps, SelectProps, SxProps, TypographyProps, SkeletonProps, StackTypeMap, StepIconProps, StepperProps, SvgIconProps, TabProps, TabsProps, AutocompleteProps, FormHelperTextProps, IconButtonProps, TooltipProps } from '@mui/material';
4
+ export { ListItemAvatarProps, ListItemButtonProps, ListItemIconProps, ListItemProps, ListItemSecondaryActionProps, ListItemTextProps, ListProps, ListSubheaderProps } from '@mui/material';
5
+ import * as _mui_system from '@mui/system';
6
+ import { StandardCSSProperties } from '@mui/system';
7
+ import * as react from 'react';
8
+ import { PropsWithChildren, ReactNode, Dispatch, SetStateAction, ElementType, JSX, Ref } from 'react';
9
+ import * as _mui_types from '@mui/types';
10
+ import { OverridableComponent } from '@mui/types';
11
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
12
+ import { OverridableComponent as OverridableComponent$1 } from '@mui/material/OverridableComponent';
13
+ import DateObject from 'react-date-object';
14
+ import { DatePickerProps } from 'react-multi-date-picker';
15
+ import { MuiOtpInputProps } from 'mui-one-time-password-input';
1
16
 
2
- export { }
17
+ type Props$3 = AvatarProps & {
18
+ bgcolor?: StandardCSSProperties["backgroundColor"];
19
+ };
20
+ declare const Avatar: ({ children, bgcolor, src, ...props }: PropsWithChildren<Props$3>) => react_jsx_runtime.JSX.Element;
21
+
22
+ declare const Backdrop: OverridableComponent<BackdropTypeMap>;
23
+
24
+ declare const Badge: OverridableComponent<BadgeTypeMap>;
25
+
26
+ type BottomSheetProps = Omit<SwipeableDrawerProps, "open" | "onOpen" | "onClose"> & {
27
+ title?: string;
28
+ closeButton?: boolean;
29
+ headerIcon?: ReactNode;
30
+ open: boolean;
31
+ hideTouchBar?: boolean;
32
+ onOpen?: SwipeableDrawerProps["onOpen"];
33
+ onClose: () => void;
34
+ };
35
+ declare const BottomSheet: ({ title, closeButton, headerIcon, children, onOpen, onClose, ModalProps, keepMounted, hideTouchBar, ...restProps }: PropsWithChildren<BottomSheetProps>) => react_jsx_runtime.JSX.Element;
36
+
37
+ type DatePickerBottomSheetProps = Omit<DrawerProps, "open" | "onOpen" | "onClose"> & {
38
+ title?: string;
39
+ closeButton?: boolean;
40
+ headerIcon?: ReactNode;
41
+ open: boolean;
42
+ hideTouchBar?: boolean;
43
+ onClose: () => void;
44
+ };
45
+ declare const DatePickerBottomSheet: ({ title, closeButton, headerIcon, children, onClose, ModalProps, keepMounted, hideTouchBar, ...restProps }: PropsWithChildren<DatePickerBottomSheetProps>) => react_jsx_runtime.JSX.Element;
46
+
47
+ declare const Box: _mui_types.OverridableComponent<_mui_system.BoxTypeMap<{}, "div", _mui_material.Theme>>;
48
+
49
+ declare const Button: OverridableComponent<ButtonTypeMap>;
50
+
51
+ type DownloadExcelButtonProps = {
52
+ fileName: string;
53
+ refetch: () => Promise<any>;
54
+ isFetching: boolean;
55
+ };
56
+ declare const ExcelButton: ({ fileName, refetch, isFetching }: DownloadExcelButtonProps) => react_jsx_runtime.JSX.Element;
57
+
58
+ declare const Card: OverridableComponent$1<CardTypeMap>;
59
+ declare const CardContent: OverridableComponent$1<CardContentTypeMap>;
60
+
61
+ declare const CheckBox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
62
+
63
+ type CheckBoxProps = Omit<CheckboxProps, "label"> & {
64
+ label?: string;
65
+ error?: boolean;
66
+ };
67
+ declare const RadioBox: react.ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
68
+
69
+ declare const Chip: react.ForwardRefExoticComponent<Omit<ChipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
70
+
71
+ declare const CircularProgress: react.ForwardRefExoticComponent<Omit<CircularProgressProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
72
+
73
+ declare const Container: OverridableComponent<ContainerTypeMap>;
74
+
75
+ declare const DatePickerField: react.ForwardRefExoticComponent<Omit<DatePickerProps<false, false>, "onChange" | "value"> & {
76
+ label?: string;
77
+ error?: boolean;
78
+ helperText?: string;
79
+ onChange: (date: DateObject | DateObject[] | null) => void;
80
+ inputProps?: Omit<TextFieldProps$1, "ref">;
81
+ value: DateObject | DateObject[] | string;
82
+ range?: boolean;
83
+ } & react.RefAttributes<HTMLInputElement>>;
84
+
85
+ type DialogProps = Omit<DialogProps$1, "open" | "onClose" | "title"> & {
86
+ title?: ReactNode;
87
+ open: boolean;
88
+ onClose: () => void;
89
+ isTitleFixe?: boolean;
90
+ };
91
+ declare const Dialog: react.ForwardRefExoticComponent<Omit<DialogProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
92
+
93
+ declare const Divider: OverridableComponent<DividerTypeMap>;
94
+
95
+ declare const DotProgress: () => react_jsx_runtime.JSX.Element;
96
+
97
+ declare const Grid: OverridableComponent$1<GridTypeMap>;
98
+
99
+ declare const IconButton: OverridableComponent<IconButtonTypeMap>;
100
+
101
+ declare const List: _mui_material.ExtendList<_mui_material.ListTypeMap<{}, "ul">>;
102
+ declare const ListItem: _mui_material_OverridableComponent.OverridableComponent<_mui_material.ListItemTypeMap<{}, "li">>;
103
+ declare const ListItemText: typeof ListItemText$1;
104
+ declare const ListItemIcon: typeof ListItemIcon$1;
105
+ declare const ListItemAvatar: typeof ListItemAvatar$1;
106
+ declare const ListItemButton: _mui_material.ExtendButtonBase<_mui_material.ListItemButtonTypeMap<{}, "div">>;
107
+ declare const ListSubheader: _mui_material_OverridableComponent.OverridableComponent<_mui_material.ListSubheaderTypeMap<{}, "li">>;
108
+
109
+ declare const Menu: react.ForwardRefExoticComponent<Omit<PropsWithChildren<MenuProps>, "ref"> & react.RefAttributes<HTMLDivElement>>;
110
+
111
+ declare const MenuItem: react.ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & react.RefAttributes<HTMLLIElement>>;
112
+
113
+ type ModalProps = {
114
+ title?: string;
115
+ open: boolean;
116
+ onClose: () => void;
117
+ DialogProps?: Omit<DialogProps, "open" | "onClose">;
118
+ PaperProps?: PaperProps;
119
+ closeButton?: boolean;
120
+ Hidden: any;
121
+ };
122
+ declare const Modal: react.ForwardRefExoticComponent<ModalProps & {
123
+ children?: react.ReactNode | undefined;
124
+ } & react.RefAttributes<HTMLDivElement>>;
125
+
126
+ type MultiSelectFieldProps = Omit<SelectProps, "label" | "value" | "onChange"> & {
127
+ options?: {
128
+ label: string;
129
+ value: string;
130
+ }[];
131
+ helperText?: string;
132
+ label?: string;
133
+ error?: boolean;
134
+ value?: string[];
135
+ onChange: (value: string[]) => void;
136
+ placeholder?: string;
137
+ };
138
+ declare const MultiSelectField: react.ForwardRefExoticComponent<Omit<MultiSelectFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
139
+
140
+ type MultiSelectRadioFieldProps = Omit<SelectProps, "label" | "value" | "onChange"> & {
141
+ options?: {
142
+ label: string;
143
+ value: string;
144
+ }[];
145
+ helperText?: string;
146
+ label?: string;
147
+ error?: boolean;
148
+ value?: string[];
149
+ onChange: (value: string[]) => void;
150
+ placeholder?: string;
151
+ };
152
+ declare const MultiSelectRadioField: react.ForwardRefExoticComponent<Omit<MultiSelectRadioFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
153
+
154
+ declare const NotificationColor: {
155
+ default: {
156
+ textColor: string;
157
+ backgroundColor: string;
158
+ };
159
+ success: {
160
+ textColor: string;
161
+ backgroundColor: string;
162
+ };
163
+ error: {
164
+ textColor: string;
165
+ backgroundColor: string;
166
+ };
167
+ warning: {
168
+ textColor: string;
169
+ backgroundColor: string;
170
+ };
171
+ };
172
+ type NotificationVariant = keyof typeof NotificationColor;
173
+ interface PropsType extends PropsWithChildren {
174
+ variant?: NotificationVariant;
175
+ color?: NotificationVariant;
176
+ title: string;
177
+ header?: string;
178
+ rounded?: boolean;
179
+ sx?: SxProps;
180
+ }
181
+ declare const Notification: ({ variant, color, title, header, children, rounded, sx, ...props }: PropsType) => react_jsx_runtime.JSX.Element;
182
+
183
+ declare const Paper: react.ForwardRefExoticComponent<Omit<PaperProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
184
+
185
+ type ExtendedTypographyProps = TypographyProps & {
186
+ fontWeight?: "regular" | "medium" | "xBold" | "bold" | number;
187
+ };
188
+ declare const Typography: react.ForwardRefExoticComponent<Omit<ExtendedTypographyProps, "ref"> & react.RefAttributes<HTMLSpanElement>>;
189
+
190
+ type Props$2 = ExtendedTypographyProps & {
191
+ value?: number | string;
192
+ withRial?: boolean;
193
+ showZero?: boolean;
194
+ };
195
+ declare const PriceView: ({ value, withRial, showZero, ...props }: Props$2) => react_jsx_runtime.JSX.Element;
196
+
197
+ type SelectOption = {
198
+ label: string;
199
+ value: string;
200
+ };
201
+ type SelectDialogProps = {
202
+ open: boolean;
203
+ onClose: () => void;
204
+ title?: string;
205
+ options: SelectOption[];
206
+ selectedValue?: string;
207
+ onSelect: (value: string) => void;
208
+ placeholder?: string;
209
+ searchPlaceholder?: string;
210
+ hasSearch?: boolean;
211
+ setKeyword?: Dispatch<SetStateAction<string | number>>;
212
+ keyword?: string | number;
213
+ };
214
+ declare const SelectDialog: ({ open, onClose, title, options, selectedValue, onSelect, searchPlaceholder, hasSearch, setKeyword, keyword, }: SelectDialogProps) => react_jsx_runtime.JSX.Element;
215
+
216
+ type SelectFieldProps = Omit<SelectProps, "label"> & {
217
+ options?: {
218
+ label: string;
219
+ value: string | number;
220
+ }[];
221
+ helperText?: string;
222
+ label?: ReactNode;
223
+ error?: boolean;
224
+ };
225
+ declare const SelectField: react.ForwardRefExoticComponent<Omit<SelectFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
226
+
227
+ declare const Skeleton: react.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
228
+
229
+ declare const Slider: _mui_material.SliderType;
230
+
231
+ declare const Stack: OverridableComponent<StackTypeMap>;
232
+
233
+ type Props$1 = {
234
+ steps: string[];
235
+ activeStep: number;
236
+ DynamicStepIcon?: ElementType<StepIconProps, keyof JSX.IntrinsicElements>;
237
+ props?: StepperProps;
238
+ activeColor?: string;
239
+ };
240
+ declare const StepperContainer: ({ steps, activeStep, DynamicStepIcon, activeColor, props, }: Props$1) => react_jsx_runtime.JSX.Element;
241
+
242
+ declare const SvgIcon: react.ForwardRefExoticComponent<Omit<SvgIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
243
+
244
+ declare const ContainedTab: react.ForwardRefExoticComponent<Omit<TabProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
245
+
246
+ declare const ContainedTabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
247
+
248
+ declare const Tab: react.ForwardRefExoticComponent<Omit<TabProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
249
+
250
+ declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
251
+
252
+ type OptionsType = {
253
+ value: string;
254
+ label: string;
255
+ };
256
+ interface AutoCompleteFieldProps extends Omit<AutocompleteProps<OptionsType, false, false, false>, "renderInput" | "onChange" | "value"> {
257
+ textFieldsProps?: Omit<TextFieldProps$1, "ref" | "onChange">;
258
+ label: string;
259
+ onChange?: (data?: string) => void;
260
+ value?: string;
261
+ helperText?: string;
262
+ }
263
+ declare const AutoCompleteField: react.ForwardRefExoticComponent<Omit<AutoCompleteFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
264
+
265
+ type IHelperTextContent = {
266
+ type?: "simple" | "info" | "success" | "error";
267
+ };
268
+ type HelperTextContentProps = PropsWithChildren<IHelperTextContent>;
269
+ declare const HelperTextContent: ({ children }: HelperTextContentProps) => string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
270
+ type HelperTextProps = FormHelperTextProps & HelperTextContentProps;
271
+ declare const HelperText: ({ children, type, ...restProps }: HelperTextProps) => react_jsx_runtime.JSX.Element;
272
+
273
+ type TextFieldProps = Omit<TextFieldProps$1, "ref"> & {
274
+ onClearStart?: () => void;
275
+ onClearEnd?: () => void;
276
+ };
277
+ declare const TextField: react.ForwardRefExoticComponent<Omit<TextFieldProps$1, "ref"> & {
278
+ onClearStart?: () => void;
279
+ onClearEnd?: () => void;
280
+ } & react.RefAttributes<HTMLInputElement>>;
281
+
282
+ type NumberInputFieldProps = TextFieldProps & {
283
+ ref?: Ref<any>;
284
+ };
285
+ declare const NumberInputField: react.ForwardRefExoticComponent<Omit<NumberInputFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
286
+
287
+ type Props = MuiOtpInputProps & {
288
+ helperText?: string;
289
+ length?: number;
290
+ };
291
+ declare const OtpField: react.ForwardRefExoticComponent<Omit<Props, "ref"> & react.RefAttributes<HTMLInputElement>>;
292
+
293
+ declare const PasswordField: react.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps & {
294
+ endIconProps?: IconButtonProps;
295
+ }, "ref"> | Omit<_mui_material.StandardTextFieldProps & {
296
+ endIconProps?: IconButtonProps;
297
+ }, "ref"> | Omit<_mui_material.OutlinedTextFieldProps & {
298
+ endIconProps?: IconButtonProps;
299
+ }, "ref">) & react.RefAttributes<HTMLInputElement>>;
300
+
301
+ type PhoneInputFieldProps = TextFieldProps & {
302
+ ref?: Ref<any>;
303
+ };
304
+ declare const PhoneInputField: react.ForwardRefExoticComponent<Omit<PhoneInputFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
305
+
306
+ type SearchFieldProps = Omit<TextFieldProps$1, "onChange"> & {
307
+ value: string | number | undefined;
308
+ onChange: (value: string | number) => void;
309
+ onClear?: () => void;
310
+ debounce?: number;
311
+ };
312
+ declare const SearchField: react.ForwardRefExoticComponent<Omit<SearchFieldProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
313
+
314
+ declare const Tooltip: react.ForwardRefExoticComponent<Omit<TooltipProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
315
+
316
+ export { AutoCompleteField, type AutoCompleteFieldProps, Avatar, Backdrop, Badge, BottomSheet, type BottomSheetProps, Box, Button, Card, CardContent, CheckBox, Chip, CircularProgress, ContainedTab, ContainedTabs, Container, DatePickerBottomSheet, type DatePickerBottomSheetProps, DatePickerField, Dialog, type DialogProps, Divider, DotProgress, ExcelButton, type ExtendedTypographyProps, Grid, HelperText, HelperTextContent, type HelperTextContentProps, type HelperTextProps, IconButton, List, ListItem, ListItemAvatar, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Menu, MenuItem, Modal, MultiSelectField, MultiSelectRadioField, Notification, NumberInputField, type NumberInputFieldProps, type OptionsType, OtpField, Paper, PasswordField, PhoneInputField, type PhoneInputFieldProps, PriceView, RadioBox, SearchField, type SearchFieldProps, SelectDialog, type SelectDialogProps, SelectField, type SelectFieldProps, type SelectOption, Skeleton, Slider, Stack, StepperContainer, SvgIcon, Tab, Tabs, TextField, type TextFieldProps, Tooltip, Typography };