mui-design-system 0.0.21 → 0.0.23
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/components/custom-auto-complete/CustomAutoComplete.d.ts +1 -1
- package/dist/components/custom-auto-complete/components/AutoCompleteInput.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomComponent.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomDatePicker.d.ts +1 -1
- package/dist/components/custom-date-picker/CustomDatePicker.js +16 -11
- package/dist/components/custom-pagination/custom-pagination-1/CustomPagination1.d.ts +1 -1
- package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.d.ts +1 -1
- package/dist/components/custom-table/CustomTable.d.ts +2 -53
- package/dist/components/custom-table/CustomTable.js +7 -13
- package/dist/components/custom-table/components/CustomTableBody.d.ts +5 -4
- package/dist/components/custom-table/components/CustomTableBody.js +22 -4
- package/dist/components/custom-table/components/CustomTableCell.d.ts +2 -2
- package/dist/components/custom-table/components/CustomTableCell.js +16 -14
- package/dist/components/custom-table/components/CustomTableHead.d.ts +5 -3
- package/dist/components/custom-table/components/CustomTableHead.js +14 -13
- package/dist/components/custom-table/components/CustomTableRow.d.ts +5 -9
- package/dist/components/custom-table/components/CustomTableRow.js +17 -14
- package/dist/components/custom-table/components/useTable.d.ts +4 -16
- package/dist/components/custom-table/components/useTable.js +5 -5
- package/dist/components/custom-table/types.d.ts +77 -0
- package/dist/components/{input-list → form}/UseFormInput.js +1 -4
- package/dist/components/{input-list → form}/type.d.ts +1 -5
- package/dist/components/form/type.js +1 -0
- package/dist/components/index.d.ts +42 -98
- package/dist/components/index.js +55 -69
- package/dist/context/FormContext.d.ts +1 -1
- package/dist/mui/Button/MuiButton.js +13 -12
- package/dist/mui/Typography/index.js +13 -13
- package/dist/mui/palette/dark/darkPalette.js +47 -86
- package/dist/mui/palette/light/lightPalette.js +48 -87
- package/package.json +1 -1
- package/dist/components/checkbox-list/CheckboxList.d.ts +0 -21
- package/dist/components/checkbox-list/CheckboxList.js +0 -31
- package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.d.ts +0 -28
- package/dist/components/custom-auto-complete-advanced/CustomAutoComplete.js +0 -92
- package/dist/components/custom-auto-complete-advanced/components/ListBox.d.ts +0 -6
- package/dist/components/custom-auto-complete-advanced/components/ListBox.js +0 -76
- package/dist/components/custom-auto-complete-advanced/components/ListRow.d.ts +0 -2
- package/dist/components/custom-auto-complete-advanced/components/ListRow.js +0 -17
- package/dist/components/custom-auto-complete-advanced/components/RenderInput.d.ts +0 -23
- package/dist/components/custom-auto-complete-advanced/components/RenderInput.js +0 -51
- package/dist/components/custom-auto-complete-advanced/components/RenderTags.d.ts +0 -9
- package/dist/components/custom-auto-complete-advanced/components/RenderTags.js +0 -22
- package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.d.ts +0 -17
- package/dist/components/custom-breadcrumbs/CustomBreadcrumbs.js +0 -11
- package/dist/components/custom-card/CustomHorizontalCard.d.ts +0 -3
- package/dist/components/custom-card/CustomHorizontalCard.js +0 -9
- package/dist/components/custom-card/CustomVerticalCard.d.ts +0 -3
- package/dist/components/custom-card/CustomVerticalCard.js +0 -9
- package/dist/components/custom-dialog/CustomDialog.d.ts +0 -41
- package/dist/components/custom-dialog/CustomDialog.js +0 -38
- package/dist/components/custom-mobile-date-picker/CustomBottomSheet.d.ts +0 -9
- package/dist/components/custom-mobile-date-picker/CustomBottomSheet.js +0 -29
- package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.d.ts +0 -19
- package/dist/components/custom-mobile-date-picker/CustomMobileDatePicker.js +0 -98
- package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.d.ts +0 -19
- package/dist/components/custom-mobile-date-picker/DatePickerBottomSheet.js +0 -40
- package/dist/components/custom-mobile-date-picker/ItemPicker.d.ts +0 -10
- package/dist/components/custom-mobile-date-picker/ItemPicker.js +0 -72
- package/dist/components/custom-modal/CustomModal.d.ts +0 -21
- package/dist/components/custom-modal/CustomModal.js +0 -38
- package/dist/components/custom-stepper/CustomStepper.d.ts +0 -31
- package/dist/components/custom-stepper/CustomStepper.js +0 -170
- package/dist/components/custom-tabs/CustomTabs.d.ts +0 -22
- package/dist/components/custom-tabs/CustomTabs.js +0 -70
- package/dist/components/input-list/InputListWithUseForm.d.ts +0 -22
- package/dist/components/input-list/InputListWithUseForm.js +0 -22
- package/dist/components/input-list/components/UFDatePickerMobile.d.ts +0 -9
- package/dist/components/input-list/components/UFDatePickerMobile.js +0 -6
- package/dist/components/otp-input/OTPInput.d.ts +0 -19
- package/dist/components/otp-input/OTPInput.js +0 -161
- package/dist/components/rich-tooltip/RichTooltip.d.ts +0 -18
- package/dist/components/rich-tooltip/RichTooltip.js +0 -32
- package/dist/icons/Add.d.ts +0 -7
- package/dist/icons/Add.js +0 -3
- package/dist/icons/EyeSlash.d.ts +0 -7
- package/dist/icons/EyeSlash.js +0 -3
- package/dist/icons/Tick.d.ts +0 -7
- package/dist/icons/Tick.js +0 -3
- package/dist/icons/Warning2.d.ts +0 -7
- package/dist/icons/Warning2.js +0 -3
- /package/dist/components/{input-list/type.js → custom-table/types.js} +0 -0
- /package/dist/components/{input-list → form}/Form.d.ts +0 -0
- /package/dist/components/{input-list → form}/Form.js +0 -0
- /package/dist/components/{input-list → form}/UseFormInput.d.ts +0 -0
- /package/dist/components/{input-list → form}/checkbox-list/CheckboxList.d.ts +0 -0
- /package/dist/components/{input-list → form}/checkbox-list/CheckboxList.js +0 -0
- /package/dist/components/{input-list → form}/components/UFAutoComplete.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFAutoComplete.js +0 -0
- /package/dist/components/{input-list → form}/components/UFCheckbox.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFCheckbox.js +0 -0
- /package/dist/components/{input-list → form}/components/UFCurrency.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFCurrency.js +0 -0
- /package/dist/components/{input-list → form}/components/UFDatePicker.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFDatePicker.js +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiCheckbox.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiCheckbox.js +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiSelect.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFMultiSelect.js +0 -0
- /package/dist/components/{input-list → form}/components/UFRadio.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFRadio.js +0 -0
- /package/dist/components/{input-list → form}/components/UFSelect.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFSelect.js +0 -0
- /package/dist/components/{input-list → form}/components/UFSwitch.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFSwitch.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTextArea.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTextArea.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTextField.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTextField.js +0 -0
- /package/dist/components/{input-list → form}/components/UFTime.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFTime.js +0 -0
- /package/dist/components/{input-list → form}/components/UFUploader.d.ts +0 -0
- /package/dist/components/{input-list → form}/components/UFUploader.js +0 -0
|
@@ -5,14 +5,13 @@ import { UFTextField } from '../index';
|
|
|
5
5
|
import { UFSelect } from '../index';
|
|
6
6
|
import { UFCheckbox } from '../index';
|
|
7
7
|
import { UFDatePicker } from '../index';
|
|
8
|
-
import { UFDatePickerMobile } from '../index';
|
|
9
8
|
import { UFTextArea } from '../index';
|
|
10
9
|
import { UFCurrency } from '../index';
|
|
11
10
|
import { UFMultiSelect } from '../index';
|
|
12
11
|
import { UFAutoComplete } from '../index';
|
|
13
12
|
import { UFRadio } from '../index';
|
|
14
|
-
import { UFSwitch } from '../index';
|
|
15
13
|
import { UFMultiCheckbox } from '../index';
|
|
14
|
+
import { UFSwitch } from '../index';
|
|
16
15
|
import { UFUploader } from '../index';
|
|
17
16
|
import { UFTime } from '../index';
|
|
18
17
|
const UseFormInput = ({ form, error, inputVariants, type, ...inputFormProps }) => {
|
|
@@ -31,8 +30,6 @@ const UseFormInput = ({ form, error, inputVariants, type, ...inputFormProps }) =
|
|
|
31
30
|
return (_jsx(UFCheckbox, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
|
|
32
31
|
case 'date-picker':
|
|
33
32
|
return (_jsx(UFDatePicker, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
|
|
34
|
-
case 'date-picker-mobile':
|
|
35
|
-
return (_jsx(UFDatePickerMobile, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
|
|
36
33
|
case 'time':
|
|
37
34
|
return (_jsx(UFTime, { ...inputFormProps, form: form, error: error, variant: inputFormProps.variant ?? inputVariants }));
|
|
38
35
|
case 'text-area':
|
|
@@ -79,10 +79,6 @@ export interface IDatePickerForm extends IBaseForm {
|
|
|
79
79
|
props?: Partial<ICustomDatePickerProps>;
|
|
80
80
|
itemProps?: Partial<ICustomDatePickerProps>;
|
|
81
81
|
}
|
|
82
|
-
export interface IDatePickerMobileForm extends IBaseForm {
|
|
83
|
-
type?: 'date-picker-mobile';
|
|
84
|
-
props?: Partial<ICustomDatePickerProps>;
|
|
85
|
-
}
|
|
86
82
|
export interface ITimeForm extends IBaseForm {
|
|
87
83
|
type?: 'time';
|
|
88
84
|
props?: Partial<TextFieldProps>;
|
|
@@ -119,7 +115,7 @@ export interface ITextFieldForm extends IBaseForm {
|
|
|
119
115
|
props?: Partial<TextFieldProps>;
|
|
120
116
|
itemProps?: Partial<TextFieldProps>;
|
|
121
117
|
}
|
|
122
|
-
export type TSchema = ITextFieldForm | ICurrencyForm | ITextAreaForm | IDatePickerForm |
|
|
118
|
+
export type TSchema = ITextFieldForm | ICurrencyForm | ITextAreaForm | IDatePickerForm | ITimeForm | ICheckboxForm | IAutoCompleteForm | IMultiSelectForm | ISelectForm | IRadioForm | ISwitchForm | IUploaderForm | IMultiCheckboxForm;
|
|
123
119
|
export type TFormSchema = TSchema[];
|
|
124
120
|
export type TFormTheme = {
|
|
125
121
|
text?: Partial<TextFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,183 +1,127 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import useTable from './custom-table/components/useTable';
|
|
3
|
+
declare const FormWithErrorBoundary: import("react").FC<import("./form/Form").FormProps & {
|
|
4
4
|
skeletonWidth?: string | number | undefined;
|
|
5
5
|
skeletonHeight?: string | number | undefined;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
8
|
-
form: import("react-hook-form").UseFormReturn<any>;
|
|
9
|
-
error: any;
|
|
10
|
-
} & {
|
|
11
|
-
skeletonWidth?: string | number | undefined;
|
|
12
|
-
skeletonHeight?: string | number | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
export declare const CustomUploader: import("react").FC<import("./custom-uploader/CustomUploader").ICustomUploaderProps & {
|
|
15
|
-
skeletonWidth?: string | number | undefined;
|
|
16
|
-
skeletonHeight?: string | number | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const CustomAutoComplete: import("react").FC<import("./custom-auto-complete-advanced/CustomAutoComplete").CustomAutocompleteAdvancedProps & {
|
|
19
|
-
skeletonWidth?: string | number | undefined;
|
|
20
|
-
skeletonHeight?: string | number | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
export declare const CustomBreadcrumbs: import("react").FC<import("./custom-breadcrumbs/CustomBreadcrumbs").ICustomBreadcrumbsProps & {
|
|
23
|
-
skeletonWidth?: string | number | undefined;
|
|
24
|
-
skeletonHeight?: string | number | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const CustomHorizontalCard: import("react").FC<import("./custom-card/types").CustomCardProps & {
|
|
27
|
-
skeletonWidth?: string | number | undefined;
|
|
28
|
-
skeletonHeight?: string | number | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const CustomVerticalCard: import("react").FC<import("./custom-card/types").CustomCardProps & {
|
|
7
|
+
declare const CustomTableWithErrorBoundary: import("react").FC<import("./custom-table/types").ICustomTable & {
|
|
31
8
|
skeletonWidth?: string | number | undefined;
|
|
32
9
|
skeletonHeight?: string | number | undefined;
|
|
33
10
|
}>;
|
|
34
|
-
|
|
35
|
-
skeletonWidth?: string | number | undefined;
|
|
36
|
-
skeletonHeight?: string | number | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const CustomDatePicker: import("react").FC<import("./custom-date-picker/CustomDatePicker").ICustomDatePickerProps & {
|
|
39
|
-
skeletonWidth?: string | number | undefined;
|
|
40
|
-
skeletonHeight?: string | number | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
export declare const CustomDatePickerMobile: import("react").FC<import("./input-list/type").IDatePickerMobileForm & {
|
|
11
|
+
declare const UFAutoCompleteWithErrorBoundary: import("react").FC<import("./form/type").IAutoCompleteForm & {
|
|
43
12
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
44
|
-
error
|
|
13
|
+
error: any;
|
|
45
14
|
} & {
|
|
46
15
|
skeletonWidth?: string | number | undefined;
|
|
47
16
|
skeletonHeight?: string | number | undefined;
|
|
48
17
|
}>;
|
|
49
|
-
|
|
50
|
-
skeletonWidth?: string | number | undefined;
|
|
51
|
-
skeletonHeight?: string | number | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
export declare const CustomNumericInput: import("react").FC<import("./custom-input/CustomNumericInput").ICustomNumericInputProps & {
|
|
54
|
-
skeletonWidth?: string | number | undefined;
|
|
55
|
-
skeletonHeight?: string | number | undefined;
|
|
56
|
-
}>;
|
|
57
|
-
export declare const CustomModal: import("react").FC<import("./custom-modal/CustomModal").CustomModalProps & {
|
|
58
|
-
skeletonWidth?: string | number | undefined;
|
|
59
|
-
skeletonHeight?: string | number | undefined;
|
|
60
|
-
}>;
|
|
61
|
-
export declare const CustomTabs: import("react").FC<import("./custom-tabs/CustomTabs").CustomTabsProps & {
|
|
62
|
-
skeletonWidth?: string | number | undefined;
|
|
63
|
-
skeletonHeight?: string | number | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const UFAutoComplete: import("react").FC<import("./input-list/type").IAutoCompleteForm & {
|
|
18
|
+
declare const UFCheckboxWithErrorBoundary: import("react").FC<import("./form/type").ICheckboxForm & {
|
|
66
19
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
67
20
|
error: any;
|
|
68
21
|
} & {
|
|
69
22
|
skeletonWidth?: string | number | undefined;
|
|
70
23
|
skeletonHeight?: string | number | undefined;
|
|
71
24
|
}>;
|
|
72
|
-
|
|
25
|
+
declare const UFRadioWithErrorBoundary: import("react").FC<import("./form/type").IRadioForm & {
|
|
73
26
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
74
27
|
error: any;
|
|
75
28
|
} & {
|
|
76
29
|
skeletonWidth?: string | number | undefined;
|
|
77
30
|
skeletonHeight?: string | number | undefined;
|
|
78
31
|
}>;
|
|
79
|
-
|
|
32
|
+
declare const UFCurrencyWithErrorBoundary: import("react").FC<import("./form/type").ICurrencyForm & {
|
|
80
33
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
81
34
|
error: any;
|
|
82
35
|
} & {
|
|
83
36
|
skeletonWidth?: string | number | undefined;
|
|
84
37
|
skeletonHeight?: string | number | undefined;
|
|
85
38
|
}>;
|
|
86
|
-
export declare const
|
|
39
|
+
export declare const UFDatePickerWithErrorBoundary: import("react").FC<import("./form/type").IDatePickerForm & {
|
|
87
40
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
88
|
-
error
|
|
41
|
+
error: any;
|
|
89
42
|
} & {
|
|
90
43
|
skeletonWidth?: string | number | undefined;
|
|
91
44
|
skeletonHeight?: string | number | undefined;
|
|
92
45
|
}>;
|
|
93
|
-
export declare const
|
|
46
|
+
export declare const UFMultiSelectWithErrorBoundary: import("react").FC<import("./form/type").IMultiSelectForm & {
|
|
94
47
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
95
48
|
error: any;
|
|
96
49
|
} & {
|
|
97
50
|
skeletonWidth?: string | number | undefined;
|
|
98
51
|
skeletonHeight?: string | number | undefined;
|
|
99
52
|
}>;
|
|
100
|
-
export declare const
|
|
53
|
+
export declare const UFSelectWithErrorBoundary: import("react").FC<import("./form/type").ISelectForm & {
|
|
101
54
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
102
55
|
error: any;
|
|
103
56
|
} & {
|
|
104
57
|
skeletonWidth?: string | number | undefined;
|
|
105
58
|
skeletonHeight?: string | number | undefined;
|
|
106
59
|
}>;
|
|
107
|
-
export declare const
|
|
60
|
+
export declare const UFTextAreaWithErrorBoundary: import("react").FC<import("./form/type").ITextAreaForm & {
|
|
108
61
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
109
62
|
error: any;
|
|
110
63
|
} & {
|
|
111
64
|
skeletonWidth?: string | number | undefined;
|
|
112
65
|
skeletonHeight?: string | number | undefined;
|
|
113
66
|
}>;
|
|
114
|
-
export declare const
|
|
67
|
+
export declare const UFTextFieldWithErrorBoundary: import("react").FC<import("./form/type").ITextFieldForm & {
|
|
115
68
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
116
69
|
error: any;
|
|
117
70
|
} & {
|
|
118
71
|
skeletonWidth?: string | number | undefined;
|
|
119
72
|
skeletonHeight?: string | number | undefined;
|
|
120
73
|
}>;
|
|
121
|
-
export declare const
|
|
74
|
+
export declare const UFMultiCheckboxWithErrorBoundary: import("react").FC<import("./form/type").IMultiCheckboxForm & {
|
|
122
75
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
123
76
|
error: any;
|
|
124
77
|
} & {
|
|
125
78
|
skeletonWidth?: string | number | undefined;
|
|
126
79
|
skeletonHeight?: string | number | undefined;
|
|
127
80
|
}>;
|
|
128
|
-
export declare const
|
|
129
|
-
form: import("react-hook-form").UseFormReturn<any>;
|
|
130
|
-
error: any;
|
|
131
|
-
} & {
|
|
81
|
+
export declare const CheckboxListWithErrorBoundary: import("react").FC<import("./form/checkbox-list/CheckboxList").CheckboxListProps & {
|
|
132
82
|
skeletonWidth?: string | number | undefined;
|
|
133
83
|
skeletonHeight?: string | number | undefined;
|
|
134
84
|
}>;
|
|
135
|
-
export declare const
|
|
136
|
-
form: import("react-hook-form").UseFormReturn<any>;
|
|
137
|
-
error: any;
|
|
138
|
-
} & {
|
|
85
|
+
export declare const FormProviderWithErrorBoundary: import("react").FC<import("../context/FormContext").IFormProvider & {
|
|
139
86
|
skeletonWidth?: string | number | undefined;
|
|
140
87
|
skeletonHeight?: string | number | undefined;
|
|
141
88
|
}>;
|
|
142
|
-
export declare const
|
|
89
|
+
export declare const UFSwitchWithErrorBoundary: import("react").FC<import("./form/type").ISwitchForm & {
|
|
143
90
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
144
|
-
error
|
|
91
|
+
error?: any;
|
|
145
92
|
} & {
|
|
146
93
|
skeletonWidth?: string | number | undefined;
|
|
147
94
|
skeletonHeight?: string | number | undefined;
|
|
148
95
|
}>;
|
|
149
|
-
export declare const
|
|
96
|
+
export declare const UFTimeWithErrorBoundary: import("react").FC<import("./form/type").ITimeForm & {
|
|
150
97
|
form: import("react-hook-form").UseFormReturn<any>;
|
|
151
98
|
error: any;
|
|
152
99
|
} & {
|
|
153
100
|
skeletonWidth?: string | number | undefined;
|
|
154
101
|
skeletonHeight?: string | number | undefined;
|
|
155
102
|
}>;
|
|
156
|
-
export declare const
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
export declare const RichTooltip: import("react").FC<import("./rich-tooltip/RichTooltip").IRichTooltipProps & {
|
|
161
|
-
skeletonWidth?: string | number | undefined;
|
|
162
|
-
skeletonHeight?: string | number | undefined;
|
|
163
|
-
}>;
|
|
164
|
-
export declare const OTPInput: import("react").FC<import("./otp-input/OTPInput").OTPInputProps & {
|
|
165
|
-
skeletonWidth?: string | number | undefined;
|
|
166
|
-
skeletonHeight?: string | number | undefined;
|
|
167
|
-
}>;
|
|
168
|
-
export declare const CustomPagination1: import("react").FC<import("./custom-pagination/custom-pagination-1/CustomPagination1").CustomPagination1Props & {
|
|
169
|
-
skeletonWidth?: string | number | undefined;
|
|
170
|
-
skeletonHeight?: string | number | undefined;
|
|
171
|
-
}>;
|
|
172
|
-
export declare const CustomPagination2: import("react").FC<import("./custom-pagination/custom-pagination-2/CustomPagination2").ITableFooterProps & {
|
|
173
|
-
skeletonWidth?: string | number | undefined;
|
|
174
|
-
skeletonHeight?: string | number | undefined;
|
|
175
|
-
}>;
|
|
176
|
-
export declare const CustomStepper: import("react").FC<import("./custom-stepper/CustomStepper").ICustomStepper & {
|
|
177
|
-
skeletonWidth?: string | number | undefined;
|
|
178
|
-
skeletonHeight?: string | number | undefined;
|
|
179
|
-
}>;
|
|
180
|
-
export declare const Form: import("react").FC<import("./input-list/Form").FormProps & {
|
|
103
|
+
export declare const UFUploaderWithErrorBoundary: import("react").FC<import("./form/type").IUploaderForm & {
|
|
104
|
+
form: import("react-hook-form").UseFormReturn<any>;
|
|
105
|
+
error: any;
|
|
106
|
+
} & {
|
|
181
107
|
skeletonWidth?: string | number | undefined;
|
|
182
108
|
skeletonHeight?: string | number | undefined;
|
|
183
109
|
}>;
|
|
110
|
+
export { useTable };
|
|
111
|
+
export { FormWithErrorBoundary as Form };
|
|
112
|
+
export { CustomTableWithErrorBoundary as CustomTable };
|
|
113
|
+
export { UFAutoCompleteWithErrorBoundary as UFAutoComplete };
|
|
114
|
+
export { UFCheckboxWithErrorBoundary as UFCheckbox };
|
|
115
|
+
export { UFRadioWithErrorBoundary as UFRadio };
|
|
116
|
+
export { UFCurrencyWithErrorBoundary as UFCurrency };
|
|
117
|
+
export { UFDatePickerWithErrorBoundary as UFDatePicker };
|
|
118
|
+
export { UFMultiSelectWithErrorBoundary as UFMultiSelect };
|
|
119
|
+
export { UFSelectWithErrorBoundary as UFSelect };
|
|
120
|
+
export { UFTextAreaWithErrorBoundary as UFTextArea };
|
|
121
|
+
export { UFTextFieldWithErrorBoundary as UFTextField };
|
|
122
|
+
export { UFMultiCheckboxWithErrorBoundary as UFMultiCheckbox };
|
|
123
|
+
export { UFSwitchWithErrorBoundary as UFSwitch };
|
|
124
|
+
export { UFTimeWithErrorBoundary as UFTime };
|
|
125
|
+
export { UFUploaderWithErrorBoundary as UFUploader };
|
|
126
|
+
export { CheckboxListWithErrorBoundary as CheckboxList };
|
|
127
|
+
export { FormProviderWithErrorBoundary as FormProvider };
|
package/dist/components/index.js
CHANGED
|
@@ -1,70 +1,56 @@
|
|
|
1
|
-
import CustomTableComponent from './custom-table/CustomTable';
|
|
2
|
-
import UFUploaderComponent from './input-list/components/UFUploader';
|
|
3
|
-
import CustomUploaderComponent from './custom-uploader/CustomUploader';
|
|
4
|
-
import CustomAutoCompleteComponent from './custom-auto-complete-advanced/CustomAutoComplete';
|
|
5
|
-
import CustomBreadcrumbsComponent from './custom-breadcrumbs/CustomBreadcrumbs';
|
|
6
|
-
import CustomHorizontalCardComponent from './custom-card/CustomHorizontalCard';
|
|
7
|
-
import CustomVerticalCardComponent from './custom-card/CustomVerticalCard';
|
|
8
|
-
import CustomChipComponent from './custom-chip/CustomChip';
|
|
9
|
-
import CustomDatePickerComponent from './custom-date-picker/CustomDatePicker';
|
|
10
|
-
import CustomDatePickerMobileComponent from './custom-mobile-date-picker/CustomMobileDatePicker';
|
|
11
|
-
import CustomDialogComponent from './custom-dialog/CustomDialog';
|
|
12
|
-
import CustomNumericInputComponent from './custom-input/CustomNumericInput';
|
|
13
|
-
import CustomModalComponent from './custom-modal/CustomModal';
|
|
14
|
-
import CustomTabsComponent from './custom-tabs/CustomTabs';
|
|
15
|
-
import UFAutoCompleteComponent from './input-list/components/UFAutoComplete';
|
|
16
|
-
import UFCheckboxComponent from './input-list/components/UFCheckbox';
|
|
17
|
-
import UFRadioComponent from './input-list/components/UFRadio';
|
|
18
|
-
import UFSwitchComponent from './input-list/components/UFSwitch';
|
|
19
|
-
import UFCurrencyComponent from './input-list/components/UFCurrency';
|
|
20
|
-
import UFDatePickerComponent from './input-list/components/UFDatePicker';
|
|
21
|
-
import UFDatePickerMobileComponent from './input-list/components/UFDatePickerMobile';
|
|
22
|
-
import UFTimeComponent from './input-list/components/UFTime';
|
|
23
|
-
import UFMultiSelectComponent from './input-list/components/UFMultiSelect';
|
|
24
|
-
import UFSelectComponent from './input-list/components/UFSelect';
|
|
25
|
-
import UFTextAreaComponent from './input-list/components/UFTextArea';
|
|
26
|
-
import UFTextFieldComponent from './input-list/components/UFTextField';
|
|
27
|
-
import UFMultiCheckboxComponent from './input-list/components/UFMultiCheckbox';
|
|
28
|
-
import CheckboxListComponent from './checkbox-list/CheckboxList';
|
|
29
|
-
import RichTooltipComponent from './rich-tooltip/RichTooltip';
|
|
30
|
-
import OTPInputComponent from './otp-input/OTPInput';
|
|
31
|
-
import CustomPagination1Component from './custom-pagination/custom-pagination-1/CustomPagination1';
|
|
32
|
-
import CustomPagination2Component from './custom-pagination/custom-pagination-2/CustomPagination2';
|
|
33
|
-
import CustomStepperComponent from './custom-stepper/CustomStepper';
|
|
34
1
|
import withErrorBoundary from './error boundary/withErrorBoundary';
|
|
35
|
-
import
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export const
|
|
61
|
-
export const
|
|
62
|
-
export const
|
|
63
|
-
export const
|
|
64
|
-
export const
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
67
|
-
export const
|
|
68
|
-
export const
|
|
69
|
-
export const
|
|
70
|
-
export const
|
|
2
|
+
import useTable from './custom-table/components/useTable';
|
|
3
|
+
import Form from "./form/Form";
|
|
4
|
+
import CustomTable from "./custom-table/CustomTable";
|
|
5
|
+
import UFAutoComplete from "./form/components/UFAutoComplete";
|
|
6
|
+
import UFCheckbox from "./form/components/UFCheckbox";
|
|
7
|
+
import UFRadio from "./form/components/UFRadio";
|
|
8
|
+
import UFCurrency from "./form/components/UFCurrency";
|
|
9
|
+
import UFDatePicker from './form/components/UFDatePicker';
|
|
10
|
+
import UFMultiSelect from './form/components/UFMultiSelect';
|
|
11
|
+
import UFSelect from './form/components/UFSelect';
|
|
12
|
+
import UFTextArea from './form/components/UFTextArea';
|
|
13
|
+
import UFTextField from './form/components/UFTextField';
|
|
14
|
+
import UFMultiCheckbox from './form/components/UFMultiCheckbox';
|
|
15
|
+
import CheckboxList from './form/checkbox-list/CheckboxList';
|
|
16
|
+
import FormProvider from '../context/FormContext';
|
|
17
|
+
import UFSwitch from './form/components/UFSwitch';
|
|
18
|
+
import UFTime from './form/components/UFTime';
|
|
19
|
+
import UFUploader from './form/components/UFUploader';
|
|
20
|
+
// Wrap components with the HOC
|
|
21
|
+
const FormWithErrorBoundary = withErrorBoundary(Form);
|
|
22
|
+
const CustomTableWithErrorBoundary = withErrorBoundary(CustomTable);
|
|
23
|
+
const UFAutoCompleteWithErrorBoundary = withErrorBoundary(UFAutoComplete);
|
|
24
|
+
const UFCheckboxWithErrorBoundary = withErrorBoundary(UFCheckbox);
|
|
25
|
+
const UFRadioWithErrorBoundary = withErrorBoundary(UFRadio);
|
|
26
|
+
const UFCurrencyWithErrorBoundary = withErrorBoundary(UFCurrency);
|
|
27
|
+
export const UFDatePickerWithErrorBoundary = withErrorBoundary(UFDatePicker);
|
|
28
|
+
export const UFMultiSelectWithErrorBoundary = withErrorBoundary(UFMultiSelect);
|
|
29
|
+
export const UFSelectWithErrorBoundary = withErrorBoundary(UFSelect);
|
|
30
|
+
export const UFTextAreaWithErrorBoundary = withErrorBoundary(UFTextArea);
|
|
31
|
+
export const UFTextFieldWithErrorBoundary = withErrorBoundary(UFTextField);
|
|
32
|
+
export const UFMultiCheckboxWithErrorBoundary = withErrorBoundary(UFMultiCheckbox);
|
|
33
|
+
export const CheckboxListWithErrorBoundary = withErrorBoundary(CheckboxList);
|
|
34
|
+
export const FormProviderWithErrorBoundary = withErrorBoundary(FormProvider);
|
|
35
|
+
export const UFSwitchWithErrorBoundary = withErrorBoundary(UFSwitch);
|
|
36
|
+
export const UFTimeWithErrorBoundary = withErrorBoundary(UFTime);
|
|
37
|
+
export const UFUploaderWithErrorBoundary = withErrorBoundary(UFUploader);
|
|
38
|
+
// Export wrapped components
|
|
39
|
+
export { useTable };
|
|
40
|
+
export { FormWithErrorBoundary as Form };
|
|
41
|
+
export { CustomTableWithErrorBoundary as CustomTable };
|
|
42
|
+
export { UFAutoCompleteWithErrorBoundary as UFAutoComplete };
|
|
43
|
+
export { UFCheckboxWithErrorBoundary as UFCheckbox };
|
|
44
|
+
export { UFRadioWithErrorBoundary as UFRadio };
|
|
45
|
+
export { UFCurrencyWithErrorBoundary as UFCurrency };
|
|
46
|
+
export { UFDatePickerWithErrorBoundary as UFDatePicker };
|
|
47
|
+
export { UFMultiSelectWithErrorBoundary as UFMultiSelect };
|
|
48
|
+
export { UFSelectWithErrorBoundary as UFSelect };
|
|
49
|
+
export { UFTextAreaWithErrorBoundary as UFTextArea };
|
|
50
|
+
export { UFTextFieldWithErrorBoundary as UFTextField };
|
|
51
|
+
export { UFMultiCheckboxWithErrorBoundary as UFMultiCheckbox };
|
|
52
|
+
export { UFSwitchWithErrorBoundary as UFSwitch };
|
|
53
|
+
export { UFTimeWithErrorBoundary as UFTime };
|
|
54
|
+
export { UFUploaderWithErrorBoundary as UFUploader };
|
|
55
|
+
export { CheckboxListWithErrorBoundary as CheckboxList };
|
|
56
|
+
export { FormProviderWithErrorBoundary as FormProvider };
|
|
@@ -3,20 +3,22 @@ export const MuiButton = {
|
|
|
3
3
|
disableElevation: true,
|
|
4
4
|
variant: "contained",
|
|
5
5
|
centerRipple: true,
|
|
6
|
+
color: "secondary",
|
|
7
|
+
disableRipple: true
|
|
6
8
|
},
|
|
7
9
|
styleOverrides: {
|
|
8
10
|
root: ({ ownerState, theme }) => ({
|
|
9
11
|
fontWeight: 500,
|
|
10
12
|
outline: "0px solid",
|
|
11
13
|
borderRadius: theme.shape.borderRadius * 2,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
fontSize: ownerState.size === "small" ? "clamp(12px,2.7vw,14px)" : "clamp(14px,2.7vw,16px)",
|
|
14
|
+
minHeight: ownerState.size === "small" ? "36px" : "48px",
|
|
15
|
+
fontSize: ownerState.size === "small" ? 15 : 17,
|
|
15
16
|
width: ownerState.fullWidth ? "100%" : "max-content",
|
|
16
17
|
height: "max-content",
|
|
17
18
|
lineHeight: "100% !important",
|
|
18
|
-
padding: "
|
|
19
|
+
padding: ownerState.size === "small" ? "0px 15px" : "0px 19px",
|
|
19
20
|
textTransform: "none",
|
|
21
|
+
transition: "all 0.05s",
|
|
20
22
|
//Icon style in general
|
|
21
23
|
".MuiButton-icon": {
|
|
22
24
|
display: ownerState.isLoading ? "none" : "flex",
|
|
@@ -30,7 +32,7 @@ export const MuiButton = {
|
|
|
30
32
|
? theme.palette.mode === "dark"
|
|
31
33
|
? theme.palette.text.primary
|
|
32
34
|
: theme.palette.text.secondary
|
|
33
|
-
: theme
|
|
35
|
+
: theme?.palette?.[ownerState?.color ?? "primary"]?.["main"],
|
|
34
36
|
},
|
|
35
37
|
".MuiButton-startIcon": {
|
|
36
38
|
flexGrow: 1,
|
|
@@ -38,6 +40,9 @@ export const MuiButton = {
|
|
|
38
40
|
".MuiButton-endIcon": {
|
|
39
41
|
flexGrow: 1,
|
|
40
42
|
},
|
|
43
|
+
"&:active": {
|
|
44
|
+
scale: (0.97)
|
|
45
|
+
},
|
|
41
46
|
}),
|
|
42
47
|
text: ({ ownerState, theme }) => ({
|
|
43
48
|
...(ownerState.isLoading && {
|
|
@@ -100,9 +105,7 @@ export const MuiButton = {
|
|
|
100
105
|
}),
|
|
101
106
|
color: ownerState.isLoading
|
|
102
107
|
? "transparent !important"
|
|
103
|
-
: ownerState.color
|
|
104
|
-
? theme.palette.getContrastText(theme.palette.warning.main)
|
|
105
|
-
: theme.palette.text["1"],
|
|
108
|
+
: theme.palette[ownerState.color || "primary"].contrastText,
|
|
106
109
|
backgroundColor: theme.palette[ownerState?.color ?? "primary"].main,
|
|
107
110
|
"&::before": {
|
|
108
111
|
width: "100%",
|
|
@@ -116,10 +119,7 @@ export const MuiButton = {
|
|
|
116
119
|
},
|
|
117
120
|
"&:hover": {
|
|
118
121
|
// backgroundColor: theme.palette[ownerState?.color ?? 'primary']["4"],
|
|
119
|
-
|
|
120
|
-
"&::before": {
|
|
121
|
-
opacity: 0.1,
|
|
122
|
-
},
|
|
122
|
+
filter: "brightness(1.1)",
|
|
123
123
|
},
|
|
124
124
|
"&:focus": {
|
|
125
125
|
border: "none",
|
|
@@ -131,6 +131,7 @@ export const MuiButton = {
|
|
|
131
131
|
}),
|
|
132
132
|
outlined: ({ theme, ownerState }) => ({
|
|
133
133
|
backgroundColor: "none",
|
|
134
|
+
outline: "none",
|
|
134
135
|
color: ownerState.isLoading
|
|
135
136
|
? "transparent !important"
|
|
136
137
|
: theme.palette[ownerState?.color ?? "primary"].main,
|
|
@@ -22,7 +22,7 @@ export const typography = {
|
|
|
22
22
|
},
|
|
23
23
|
h5: {
|
|
24
24
|
fontWeight: 700,
|
|
25
|
-
fontSize: "clamp(
|
|
25
|
+
fontSize: "clamp(24px,4.3vw,29px)",
|
|
26
26
|
lineHeight: "clamp(30px,5.7vw,34px)",
|
|
27
27
|
},
|
|
28
28
|
h6: {
|
|
@@ -32,17 +32,17 @@ export const typography = {
|
|
|
32
32
|
},
|
|
33
33
|
body1: {
|
|
34
34
|
fontWeight: 400,
|
|
35
|
-
fontSize: "clamp(
|
|
35
|
+
fontSize: "clamp(20px,3.3vw,24px)",
|
|
36
36
|
lineHeight: "clamp(26px,5.7vw,30px)",
|
|
37
37
|
},
|
|
38
38
|
"body1.medium": {
|
|
39
39
|
fontWeight: 500,
|
|
40
|
-
fontSize: "clamp(
|
|
40
|
+
fontSize: "clamp(20px,3.3vw,24px)",
|
|
41
41
|
lineHeight: "clamp(26px,5.7vw,30px)",
|
|
42
42
|
},
|
|
43
43
|
"body1.bold": {
|
|
44
44
|
fontWeight: 700,
|
|
45
|
-
fontSize: "clamp(
|
|
45
|
+
fontSize: "clamp(20px,3.3vw,24px)",
|
|
46
46
|
lineHeight: "clamp(26px,5.7vw,30px)",
|
|
47
47
|
},
|
|
48
48
|
body2: {
|
|
@@ -62,18 +62,18 @@ export const typography = {
|
|
|
62
62
|
},
|
|
63
63
|
body3: {
|
|
64
64
|
fontWeight: 400,
|
|
65
|
-
fontSize: "clamp(14px,2.7vw,
|
|
66
|
-
lineHeight: "clamp(
|
|
65
|
+
fontSize: "clamp(14px,2.7vw,20px)",
|
|
66
|
+
lineHeight: "clamp(24px,4.9vw,26px)",
|
|
67
67
|
},
|
|
68
68
|
"body3.medium": {
|
|
69
69
|
fontWeight: 500,
|
|
70
|
-
fontSize: "clamp(14px,2.7vw,
|
|
71
|
-
lineHeight: "clamp(
|
|
70
|
+
fontSize: "clamp(14px,2.7vw,20px)",
|
|
71
|
+
lineHeight: "clamp(24px,4.9vw,26px)",
|
|
72
72
|
},
|
|
73
73
|
"body3.bold": {
|
|
74
74
|
fontWeight: 700,
|
|
75
|
-
fontSize: "clamp(14px,2.7vw,
|
|
76
|
-
lineHeight: "clamp(
|
|
75
|
+
fontSize: "clamp(14px,2.7vw,20px)",
|
|
76
|
+
lineHeight: "clamp(24px,4.9vw,26px)",
|
|
77
77
|
},
|
|
78
78
|
caption1: {
|
|
79
79
|
fontWeight: 400,
|
|
@@ -108,17 +108,17 @@ export const typography = {
|
|
|
108
108
|
caption3: {
|
|
109
109
|
fontWeight: 400,
|
|
110
110
|
fontSize: "clamp(10px,1.85vw,12px)",
|
|
111
|
-
lineHeight: "clamp(
|
|
111
|
+
lineHeight: "clamp(20px,3.85vw,24px)",
|
|
112
112
|
},
|
|
113
113
|
"caption3.medium": {
|
|
114
114
|
fontWeight: 500,
|
|
115
115
|
fontSize: "clamp(10px,1.85vw,12px)",
|
|
116
|
-
lineHeight: "clamp(
|
|
116
|
+
lineHeight: "clamp(20px,3.85vw,24px)",
|
|
117
117
|
},
|
|
118
118
|
"caption3.bold": {
|
|
119
119
|
fontWeight: 700,
|
|
120
120
|
fontSize: "clamp(10px,1.85vw,12px)",
|
|
121
|
-
lineHeight: "clamp(
|
|
121
|
+
lineHeight: "clamp(20px,3.85vw,24px)",
|
|
122
122
|
},
|
|
123
123
|
caption4: {
|
|
124
124
|
fontWeight: 400,
|