mui-design-system 0.0.21 → 0.0.22
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/package.json +1 -1
- package/dist/colors/index.d.ts +0 -4
- package/dist/colors/index.js +0 -93
- package/dist/colors/type.d.ts +0 -5
- package/dist/colors/type.js +0 -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/CustomAutoComplete.d.ts +0 -27
- package/dist/components/custom-auto-complete/CustomAutoComplete.js +0 -75
- package/dist/components/custom-auto-complete/components/AutoCompleteInput.d.ts +0 -21
- package/dist/components/custom-auto-complete/components/AutoCompleteInput.js +0 -29
- package/dist/components/custom-auto-complete/components/ListBox.d.ts +0 -5
- package/dist/components/custom-auto-complete/components/ListBox.js +0 -62
- package/dist/components/custom-auto-complete/components/ListRow.d.ts +0 -2
- package/dist/components/custom-auto-complete/components/ListRow.js +0 -21
- 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-chip/CustomChip.d.ts +0 -12
- package/dist/components/custom-chip/CustomChip.js +0 -10
- package/dist/components/custom-date-picker/CustomComponent.d.ts +0 -17
- package/dist/components/custom-date-picker/CustomComponent.js +0 -36
- package/dist/components/custom-date-picker/CustomDatePicker.d.ts +0 -14
- package/dist/components/custom-date-picker/CustomDatePicker.js +0 -55
- package/dist/components/custom-dialog/CustomDialog.d.ts +0 -41
- package/dist/components/custom-dialog/CustomDialog.js +0 -38
- package/dist/components/custom-input/CustomNumericInput.d.ts +0 -9
- package/dist/components/custom-input/CustomNumericInput.js +0 -32
- 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-pagination/custom-pagination-1/CustomPagination1.d.ts +0 -9
- package/dist/components/custom-pagination/custom-pagination-1/CustomPagination1.js +0 -13
- package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.d.ts +0 -20
- package/dist/components/custom-pagination/custom-pagination-2/CustomPagination2.js +0 -33
- package/dist/components/custom-progress/LinearBufferProgress.d.ts +0 -6
- package/dist/components/custom-progress/LinearBufferProgress.js +0 -14
- package/dist/components/custom-stepper/CustomStepper.d.ts +0 -31
- package/dist/components/custom-stepper/CustomStepper.js +0 -170
- package/dist/components/custom-table/CustomTable.d.ts +0 -55
- package/dist/components/custom-table/CustomTable.js +0 -50
- package/dist/components/custom-table/components/CustomTableBody.d.ts +0 -21
- package/dist/components/custom-table/components/CustomTableBody.js +0 -11
- package/dist/components/custom-table/components/CustomTableCell.d.ts +0 -8
- package/dist/components/custom-table/components/CustomTableCell.js +0 -23
- package/dist/components/custom-table/components/CustomTableHead.d.ts +0 -17
- package/dist/components/custom-table/components/CustomTableHead.js +0 -63
- package/dist/components/custom-table/components/CustomTableRow.d.ts +0 -26
- package/dist/components/custom-table/components/CustomTableRow.js +0 -102
- package/dist/components/custom-table/components/useTable.d.ts +0 -24
- package/dist/components/custom-table/components/useTable.js +0 -77
- package/dist/components/custom-tabs/CustomTabs.d.ts +0 -22
- package/dist/components/custom-tabs/CustomTabs.js +0 -70
- package/dist/components/custom-uploader/CustomUploader.d.ts +0 -23
- package/dist/components/custom-uploader/CustomUploader.js +0 -68
- package/dist/components/error boundary/ErrorComponent.d.ts +0 -7
- package/dist/components/error boundary/ErrorComponent.js +0 -6
- package/dist/components/error boundary/withErrorBoundary.d.ts +0 -7
- package/dist/components/error boundary/withErrorBoundary.js +0 -10
- package/dist/components/index.d.ts +0 -183
- package/dist/components/index.js +0 -70
- package/dist/components/input-list/Form.d.ts +0 -21
- package/dist/components/input-list/Form.js +0 -19
- package/dist/components/input-list/InputListWithUseForm.d.ts +0 -22
- package/dist/components/input-list/InputListWithUseForm.js +0 -22
- package/dist/components/input-list/UseFormInput.d.ts +0 -11
- package/dist/components/input-list/UseFormInput.js +0 -50
- package/dist/components/input-list/checkbox-list/CheckboxList.d.ts +0 -19
- package/dist/components/input-list/checkbox-list/CheckboxList.js +0 -30
- package/dist/components/input-list/components/UFAutoComplete.d.ts +0 -9
- package/dist/components/input-list/components/UFAutoComplete.js +0 -41
- package/dist/components/input-list/components/UFCheckbox.d.ts +0 -19
- package/dist/components/input-list/components/UFCheckbox.js +0 -21
- package/dist/components/input-list/components/UFCurrency.d.ts +0 -9
- package/dist/components/input-list/components/UFCurrency.js +0 -47
- package/dist/components/input-list/components/UFDatePicker.d.ts +0 -9
- package/dist/components/input-list/components/UFDatePicker.js +0 -17
- package/dist/components/input-list/components/UFDatePickerMobile.d.ts +0 -9
- package/dist/components/input-list/components/UFDatePickerMobile.js +0 -6
- package/dist/components/input-list/components/UFMultiCheckbox.d.ts +0 -9
- package/dist/components/input-list/components/UFMultiCheckbox.js +0 -17
- package/dist/components/input-list/components/UFMultiSelect.d.ts +0 -9
- package/dist/components/input-list/components/UFMultiSelect.js +0 -56
- package/dist/components/input-list/components/UFRadio.d.ts +0 -9
- package/dist/components/input-list/components/UFRadio.js +0 -19
- package/dist/components/input-list/components/UFSelect.d.ts +0 -9
- package/dist/components/input-list/components/UFSelect.js +0 -19
- package/dist/components/input-list/components/UFSwitch.d.ts +0 -19
- package/dist/components/input-list/components/UFSwitch.js +0 -99
- package/dist/components/input-list/components/UFTextArea.d.ts +0 -9
- package/dist/components/input-list/components/UFTextArea.js +0 -12
- package/dist/components/input-list/components/UFTextField.d.ts +0 -11
- package/dist/components/input-list/components/UFTextField.js +0 -29
- package/dist/components/input-list/components/UFTime.d.ts +0 -10
- package/dist/components/input-list/components/UFTime.js +0 -93
- package/dist/components/input-list/components/UFUploader.d.ts +0 -9
- package/dist/components/input-list/components/UFUploader.js +0 -41
- package/dist/components/input-list/type.d.ts +0 -165
- package/dist/components/input-list/type.js +0 -1
- 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/context/FormContext.d.ts +0 -16
- package/dist/context/FormContext.js +0 -8
- package/dist/icons/Add.d.ts +0 -7
- package/dist/icons/Add.js +0 -3
- package/dist/icons/ArrowDown.d.ts +0 -7
- package/dist/icons/ArrowDown.js +0 -3
- package/dist/icons/ArrowLeft1.d.ts +0 -7
- package/dist/icons/ArrowLeft1.js +0 -3
- package/dist/icons/ArrowRight1.d.ts +0 -7
- package/dist/icons/ArrowRight1.js +0 -3
- package/dist/icons/Calendar.d.ts +0 -7
- package/dist/icons/Calendar.js +0 -3
- package/dist/icons/CloseCircle.d.ts +0 -7
- package/dist/icons/CloseCircle.js +0 -3
- package/dist/icons/DocumentDownload.d.ts +0 -7
- package/dist/icons/DocumentDownload.js +0 -3
- package/dist/icons/Eye.d.ts +0 -7
- package/dist/icons/Eye.js +0 -3
- package/dist/icons/EyeSlash.d.ts +0 -7
- package/dist/icons/EyeSlash.js +0 -3
- package/dist/icons/FolderAdd.d.ts +0 -7
- package/dist/icons/FolderAdd.js +0 -3
- package/dist/icons/InfoCircle.d.ts +0 -7
- package/dist/icons/InfoCircle.js +0 -3
- package/dist/icons/Tick.d.ts +0 -7
- package/dist/icons/Tick.js +0 -3
- package/dist/icons/Trash.d.ts +0 -7
- package/dist/icons/Trash.js +0 -3
- package/dist/icons/Union.d.ts +0 -7
- package/dist/icons/Union.js +0 -3
- package/dist/icons/Warning2.d.ts +0 -7
- package/dist/icons/Warning2.js +0 -3
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/methods/debounce.d.ts +0 -3
- package/dist/methods/debounce.js +0 -20
- package/dist/methods/general.d.ts +0 -2
- package/dist/methods/general.js +0 -32
- package/dist/mui/Alert/Alert.d.ts +0 -2
- package/dist/mui/Alert/Alert.js +0 -13
- package/dist/mui/AutoComplete/MuiAutoComplete.d.ts +0 -2
- package/dist/mui/AutoComplete/MuiAutoComplete.js +0 -27
- package/dist/mui/BreadCrumbs/MuiBreadCrumbs.d.ts +0 -2
- package/dist/mui/BreadCrumbs/MuiBreadCrumbs.js +0 -31
- package/dist/mui/Button/MuiButton.d.ts +0 -7
- package/dist/mui/Button/MuiButton.js +0 -185
- package/dist/mui/Card/MuiCard.d.ts +0 -2
- package/dist/mui/Card/MuiCard.js +0 -7
- package/dist/mui/Checkbox/Checkbox.d.ts +0 -2
- package/dist/mui/Checkbox/Checkbox.js +0 -31
- package/dist/mui/Checkbox/assets/CheckedIcon.d.ts +0 -8
- package/dist/mui/Checkbox/assets/CheckedIcon.js +0 -12
- package/dist/mui/Checkbox/assets/IntermediateIcon.d.ts +0 -8
- package/dist/mui/Checkbox/assets/IntermediateIcon.js +0 -10
- package/dist/mui/Checkbox/assets/UnChekedIcon.d.ts +0 -7
- package/dist/mui/Checkbox/assets/UnChekedIcon.js +0 -9
- package/dist/mui/Chip/MuiChip.d.ts +0 -10
- package/dist/mui/Chip/MuiChip.js +0 -35
- package/dist/mui/Dialog/MuiDialog.d.ts +0 -7
- package/dist/mui/Dialog/MuiDialog.js +0 -22
- package/dist/mui/FormControl/MuiFormControlLabel.d.ts +0 -2
- package/dist/mui/FormControl/MuiFormControlLabel.js +0 -13
- package/dist/mui/IconButton/MuiIconButon.d.ts +0 -2
- package/dist/mui/IconButton/MuiIconButon.js +0 -7
- package/dist/mui/InputAdornment/MuiInputAdornment.d.ts +0 -2
- package/dist/mui/InputAdornment/MuiInputAdornment.js +0 -6
- package/dist/mui/InputLabel/MuiInputLabel.d.ts +0 -2
- package/dist/mui/InputLabel/MuiInputLabel.js +0 -43
- package/dist/mui/Pagination/MuiPagination.d.ts +0 -2
- package/dist/mui/Pagination/MuiPagination.js +0 -15
- package/dist/mui/Pagination/MuiPaginationItem.d.ts +0 -2
- package/dist/mui/Pagination/MuiPaginationItem.js +0 -15
- package/dist/mui/Radio/MuiRadio.d.ts +0 -2
- package/dist/mui/Radio/MuiRadio.js +0 -17
- package/dist/mui/Select/MuiSelect.d.ts +0 -2
- package/dist/mui/Select/MuiSelect.js +0 -47
- package/dist/mui/Switch/MuiSwitch.d.ts +0 -2
- package/dist/mui/Switch/MuiSwitch.js +0 -83
- package/dist/mui/Tabs/MuiTabs.d.ts +0 -2
- package/dist/mui/Tabs/MuiTabs.js +0 -21
- package/dist/mui/Tabs/Tab/MuiTab.d.ts +0 -2
- package/dist/mui/Tabs/Tab/MuiTab.js +0 -26
- package/dist/mui/TextField/MuiFilledInput.d.ts +0 -2
- package/dist/mui/TextField/MuiFilledInput.js +0 -91
- package/dist/mui/TextField/MuiOutlinedInput.d.ts +0 -2
- package/dist/mui/TextField/MuiOutlinedInput.js +0 -66
- package/dist/mui/TextField/TextField.d.ts +0 -2
- package/dist/mui/TextField/TextField.js +0 -78
- package/dist/mui/Tooltip/MuiTooltip.d.ts +0 -2
- package/dist/mui/Tooltip/MuiTooltip.js +0 -26
- package/dist/mui/Typography/MuiTypography.d.ts +0 -2
- package/dist/mui/Typography/MuiTypography.js +0 -9
- package/dist/mui/Typography/index.d.ts +0 -2
- package/dist/mui/Typography/index.js +0 -138
- package/dist/mui/accordion/MuiAccodrion.d.ts +0 -2
- package/dist/mui/accordion/MuiAccodrion.js +0 -13
- package/dist/mui/breakpoints/index.d.ts +0 -9
- package/dist/mui/breakpoints/index.js +0 -9
- package/dist/mui/menu/MuiMenu.d.ts +0 -2
- package/dist/mui/menu/MuiMenu.js +0 -8
- package/dist/mui/menu/MuiMenuItem.d.ts +0 -2
- package/dist/mui/menu/MuiMenuItem.js +0 -14
- package/dist/mui/mui-css-baseline/index.d.ts +0 -3
- package/dist/mui/mui-css-baseline/index.js +0 -37
- package/dist/mui/palette/dark/darkPalette.d.ts +0 -2
- package/dist/mui/palette/dark/darkPalette.js +0 -135
- package/dist/mui/palette/light/lightPalette.d.ts +0 -2
- package/dist/mui/palette/light/lightPalette.js +0 -135
- package/dist/nextjs/NextCacheProvider.d.ts +0 -7
- package/dist/nextjs/NextCacheProvider.js +0 -13
- package/dist/react/ReactCacheProvider.d.ts +0 -7
- package/dist/react/ReactCacheProvider.js +0 -15
- package/dist/theme/theme.d.ts +0 -3
- package/dist/theme/theme.js +0 -75
- package/dist/types/palette.d.ts +0 -60
- package/dist/types/palette.js +0 -1
- package/dist/types/types.d.ts +0 -102
- package/dist/types/types.js +0 -4
- package/dist/types/typography.d.ts +0 -71
- package/dist/types/typography.js +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// import { OverridesStyleRules } from "@mui/material/styles/overrides";
|
|
2
|
-
// import { InputLabelProps, InputLabelClasses } from "@mui/material/InputLabel";
|
|
3
|
-
// type TMuiInputLabel =
|
|
4
|
-
// | {
|
|
5
|
-
// defaultProps?: Partial<InputLabelProps> | undefined;
|
|
6
|
-
// styleOverrides?:
|
|
7
|
-
// | Partial<
|
|
8
|
-
// OverridesStyleRules<
|
|
9
|
-
// keyof InputLabelClasses,
|
|
10
|
-
// "MuiInputLabel",
|
|
11
|
-
// Omit<Theme, "components">
|
|
12
|
-
// >
|
|
13
|
-
// >
|
|
14
|
-
// | undefined;
|
|
15
|
-
// variants?: [] | undefined;
|
|
16
|
-
// }
|
|
17
|
-
// | undefined;
|
|
18
|
-
export const MuiInputLabel = {
|
|
19
|
-
styleOverrides: {
|
|
20
|
-
root: ({ ownerState, theme }) => ({
|
|
21
|
-
color: theme.palette.text.primary,
|
|
22
|
-
textAlign: 'start',
|
|
23
|
-
...theme.typography?.["body3.medium"],
|
|
24
|
-
lineHeight: '150%',
|
|
25
|
-
// ...(ownerState.variant === "outlined"
|
|
26
|
-
// ? {
|
|
27
|
-
// top: "-2px",
|
|
28
|
-
// }
|
|
29
|
-
// : {
|
|
30
|
-
// top: "-5px",
|
|
31
|
-
// }),
|
|
32
|
-
// "&.Mui-focused": {
|
|
33
|
-
// ...(ownerState.variant === "outlined"
|
|
34
|
-
// ? {
|
|
35
|
-
// top: "0px",
|
|
36
|
-
// }
|
|
37
|
-
// : {
|
|
38
|
-
// top: "0px",
|
|
39
|
-
// }),
|
|
40
|
-
// },
|
|
41
|
-
}),
|
|
42
|
-
},
|
|
43
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const MuiPagination = {
|
|
2
|
-
defaultProps: {
|
|
3
|
-
color: "primary",
|
|
4
|
-
hideNextButton: true,
|
|
5
|
-
hidePrevButton: true,
|
|
6
|
-
dir: "ltr",
|
|
7
|
-
},
|
|
8
|
-
styleOverrides: {
|
|
9
|
-
root: ({ ownerState, theme }) => ({
|
|
10
|
-
display: "flex",
|
|
11
|
-
justifyContent: "center",
|
|
12
|
-
"& ul": { gap: 8 }
|
|
13
|
-
}),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const MuiPaginationItem = {
|
|
2
|
-
defaultProps: {},
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: ({ ownerState, theme }) => ({
|
|
5
|
-
fontSize: "10px",
|
|
6
|
-
fontWeight: 300,
|
|
7
|
-
minWidth: 18,
|
|
8
|
-
height: 18,
|
|
9
|
-
"&.Mui-selected": {
|
|
10
|
-
fontSize: "12px",
|
|
11
|
-
fontWeight: 700
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const MuiRadio = {
|
|
2
|
-
defaultProps: { size: 'small' },
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: ({ theme, ownerState }) => ({
|
|
5
|
-
padding: '0px',
|
|
6
|
-
margin: '0px 4px',
|
|
7
|
-
color: theme.palette.text.primary,
|
|
8
|
-
'& .Mui-checked': {
|
|
9
|
-
color: theme.palette[ownerState.color ?? 'primary'].main,
|
|
10
|
-
},
|
|
11
|
-
'& .MuiSvgIcon-root': {
|
|
12
|
-
width: ownerState.size === 'small' ? 16 : 20,
|
|
13
|
-
height: ownerState.size === 'small' ? 16 : 20,
|
|
14
|
-
},
|
|
15
|
-
}),
|
|
16
|
-
},
|
|
17
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import SvgArrowDown from '../../icons/ArrowDown';
|
|
3
|
-
export const MuiSelect = {
|
|
4
|
-
defaultProps: {
|
|
5
|
-
IconComponent: () => (_jsx(SvgArrowDown, { className: 'MuiSelect MuiSelect-popupIcon', primarycolor: 'inherit' })),
|
|
6
|
-
MenuProps: {
|
|
7
|
-
slotProps: {
|
|
8
|
-
paper: {
|
|
9
|
-
sx: {
|
|
10
|
-
boxShadow: '0px 0px 10px rgba(94, 129, 233, 0.2)',
|
|
11
|
-
maxHeight: 250,
|
|
12
|
-
backgroundColor: (theme) => theme.palette.background.default,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
styleOverrides: {
|
|
19
|
-
root: ({ theme, ownerState }) => ({
|
|
20
|
-
...(ownerState.variant === 'filled' && {
|
|
21
|
-
backgroundColor: theme.palette.mode === 'light'
|
|
22
|
-
? theme.palette.background[3]
|
|
23
|
-
: theme.palette.background['1'],
|
|
24
|
-
}),
|
|
25
|
-
...(ownerState.variant === 'outlined' && {
|
|
26
|
-
backgroundColor: 'transparent',
|
|
27
|
-
}),
|
|
28
|
-
paddingRight: `${theme.spacing(2)}`,
|
|
29
|
-
stroke: theme.palette.text.primary,
|
|
30
|
-
color: theme.palette.mode === 'light'
|
|
31
|
-
? theme.palette.text.primary
|
|
32
|
-
: theme.palette.text.secondary,
|
|
33
|
-
...(ownerState.readOnly && {
|
|
34
|
-
pointerEvents: 'none',
|
|
35
|
-
backgroundColor: theme.palette.background[3],
|
|
36
|
-
}),
|
|
37
|
-
'&.Mui-disabled': {
|
|
38
|
-
stroke: theme.palette.background['1'],
|
|
39
|
-
color: theme.palette.text.disabled,
|
|
40
|
-
backgroundColor: theme.palette.background['1'],
|
|
41
|
-
},
|
|
42
|
-
'&.Mui-error': {
|
|
43
|
-
stroke: theme.palette.error[3],
|
|
44
|
-
},
|
|
45
|
-
}),
|
|
46
|
-
},
|
|
47
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export const MuiSwitch = {
|
|
2
|
-
defaultProps: { centerRipple: true },
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: ({ ownerState, theme }) => ({
|
|
5
|
-
boxSizing: 'border-box',
|
|
6
|
-
margin: '1rem',
|
|
7
|
-
width: ownerState.size === "small" ? "50px" : "71px",
|
|
8
|
-
height: ownerState.size === "small" ? "22px" : "29px",
|
|
9
|
-
padding: '0px',
|
|
10
|
-
overflow: 'visible',
|
|
11
|
-
//Track initial styles
|
|
12
|
-
'& .MuiSwitch-track': {
|
|
13
|
-
boxSizing: 'border-box',
|
|
14
|
-
borderRadius: ownerState.size === "small" ? "24px" : "31px",
|
|
15
|
-
height: ownerState.size === "small" ? "24px" : "31px",
|
|
16
|
-
border: '1px solid',
|
|
17
|
-
borderColor: theme.palette.divider,
|
|
18
|
-
backgroundColor: theme.palette.background[4],
|
|
19
|
-
opacity: 1,
|
|
20
|
-
transition: theme.transitions.create(['background-color', 'border-color'], {
|
|
21
|
-
duration: 500,
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
//Toggle Initial Styles
|
|
25
|
-
'& .MuiSwitch-thumb': {
|
|
26
|
-
boxSizing: 'border-box',
|
|
27
|
-
width: ownerState.size === "small" ? "20px" : "27px",
|
|
28
|
-
height: ownerState.size === "small" ? "20px" : "27px",
|
|
29
|
-
boxShadow: `none`,
|
|
30
|
-
border: `1px solid ${theme.palette.divider} `,
|
|
31
|
-
backgroundColor: theme.palette.mode === 'light'
|
|
32
|
-
? theme.palette.background[4]
|
|
33
|
-
: theme.palette.background[1],
|
|
34
|
-
},
|
|
35
|
-
//Component states and actions styles
|
|
36
|
-
'& .MuiSwitch-switchBase': {
|
|
37
|
-
padding: "0px",
|
|
38
|
-
margin: "2px",
|
|
39
|
-
transition: theme.transitions.create(['transform', 'box-shadow'], {
|
|
40
|
-
duration: 300,
|
|
41
|
-
}),
|
|
42
|
-
'&:hover': {
|
|
43
|
-
boxShadow: `0px 0px 0px 7px ${theme?.palette?.[ownerState?.color || "primary"]?.main}20`,
|
|
44
|
-
},
|
|
45
|
-
//Checked state styles
|
|
46
|
-
'&.Mui-checked': {
|
|
47
|
-
transform: ownerState.size === "small" ? 'translateX(26px)' : 'translateX(40px)',
|
|
48
|
-
'& .MuiSwitch-thumb': {
|
|
49
|
-
borderColor: theme.palette[ownerState?.color ?? 'primary']['5'],
|
|
50
|
-
backgroundColor: theme.palette[ownerState?.color ?? 'primary']['4'],
|
|
51
|
-
},
|
|
52
|
-
'& + .MuiSwitch-track': {
|
|
53
|
-
borderColor: theme.palette[ownerState?.color ?? 'primary']['2'],
|
|
54
|
-
backgroundColor: theme.palette[ownerState?.color ?? 'primary']['2'],
|
|
55
|
-
opacity: 1,
|
|
56
|
-
},
|
|
57
|
-
'&.Mui-disabled + .MuiSwitch-track': {
|
|
58
|
-
opacity: 0.5,
|
|
59
|
-
},
|
|
60
|
-
'&.Mui-disabled + .MuiSwitch-thumb': {
|
|
61
|
-
opacity: 0.5,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
'&.Mui-focusVisible .MuiSwitch-thumb': {
|
|
65
|
-
color: theme.palette[ownerState?.color ?? 'primary'].main,
|
|
66
|
-
},
|
|
67
|
-
//Disabled state styled
|
|
68
|
-
'&.Mui-disabled .MuiSwitch-thumb': {
|
|
69
|
-
opacity: theme.palette.mode === 'light' ? 0.7 : 0.3,
|
|
70
|
-
borderColor: theme.palette.divider,
|
|
71
|
-
backgroundColor: theme.palette.mode === 'light'
|
|
72
|
-
? theme.palette.background[1]
|
|
73
|
-
: theme.palette.background[4],
|
|
74
|
-
},
|
|
75
|
-
'&.Mui-disabled + .MuiSwitch-track': {
|
|
76
|
-
opacity: theme.palette.mode === 'light' ? 0.7 : 0.3,
|
|
77
|
-
borderColor: theme.palette.text[10],
|
|
78
|
-
backgroundColor: theme.palette.text[9]
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
}),
|
|
82
|
-
},
|
|
83
|
-
};
|
package/dist/mui/Tabs/MuiTabs.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export const MuiTabs = {
|
|
2
|
-
defaultProps: { TabIndicatorProps: { hidden: true } },
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: ({ ownerState, theme }) => ({
|
|
5
|
-
...(ownerState.orientation === 'vertical' ? {
|
|
6
|
-
width: 'max-content',
|
|
7
|
-
borderRight: '1px solid',
|
|
8
|
-
} : {
|
|
9
|
-
borderBottom: '1px solid',
|
|
10
|
-
}),
|
|
11
|
-
borderColor: theme.palette.text.primary,
|
|
12
|
-
}),
|
|
13
|
-
flexContainer: ({ ownerState, theme }) => ({
|
|
14
|
-
marginBottom: '4px',
|
|
15
|
-
...(ownerState.orientation === 'vertical' && { width: '100%', paddingRight: '4px' })
|
|
16
|
-
}),
|
|
17
|
-
indicator: ({ ownerState, theme }) => ({
|
|
18
|
-
// display:'none'
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export const MuiTab = {
|
|
2
|
-
defaultProps: { disableRipple: true, iconPosition: 'start', },
|
|
3
|
-
styleOverrides: {
|
|
4
|
-
root: ({ ownerState, theme }) => ({
|
|
5
|
-
padding: '12px 16px',
|
|
6
|
-
width: 'max-content',
|
|
7
|
-
minHeight: 'max-content',
|
|
8
|
-
color: theme.palette.text.primary,
|
|
9
|
-
stroke: theme.palette.text.primary,
|
|
10
|
-
...theme.typography.body3,
|
|
11
|
-
textTransform: 'none',
|
|
12
|
-
transition: 'transform 0.2s',
|
|
13
|
-
':active': {
|
|
14
|
-
transform: 'scale(95%)'
|
|
15
|
-
},
|
|
16
|
-
'&.Mui-selected': {
|
|
17
|
-
transition: 'background-color transform 0.2s',
|
|
18
|
-
backgroundColor: theme.palette.mode === 'light' ? theme.palette.primary.main : theme.palette.text.primary,
|
|
19
|
-
color: theme.palette.mode === 'light' ? theme.palette.text.secondary : theme.palette.primary.main,
|
|
20
|
-
stroke: theme.palette.mode === 'light' ? theme.palette.text.secondary : theme.palette.primary.main,
|
|
21
|
-
borderRadius: theme.shape.borderRadius * 2,
|
|
22
|
-
fontWeight: 500,
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
// import { OverridesStyleRules } from "@mui/material/styles/overrides";
|
|
2
|
-
// import {
|
|
3
|
-
// FilledInputProps,
|
|
4
|
-
// FilledInputClasses,
|
|
5
|
-
// } from "@mui/material/FilledInput";
|
|
6
|
-
// type TMuiFilledInput =
|
|
7
|
-
// | {
|
|
8
|
-
// defaultProps?: Partial<FilledInputProps> | undefined;
|
|
9
|
-
// styleOverrides?:
|
|
10
|
-
// | Partial<
|
|
11
|
-
// OverridesStyleRules<
|
|
12
|
-
// keyof FilledInputClasses,
|
|
13
|
-
// "MuiFilledInput",
|
|
14
|
-
// Omit<Theme, "components">
|
|
15
|
-
// >
|
|
16
|
-
// >
|
|
17
|
-
// | undefined;
|
|
18
|
-
// variants?: [] | undefined;
|
|
19
|
-
// }
|
|
20
|
-
// | undefined;
|
|
21
|
-
export const MuiFilledInput = {
|
|
22
|
-
styleOverrides: {
|
|
23
|
-
root: ({ ownerState, theme }) => ({
|
|
24
|
-
stroke: theme.palette.text.primary,
|
|
25
|
-
minWidth: 80,
|
|
26
|
-
minHeight: ownerState.size === 'small' ? '40px' : '48px',
|
|
27
|
-
...theme.typography?.["body3.medium"],
|
|
28
|
-
lineHeight: '100%',
|
|
29
|
-
backgroundColor: theme.palette.text['4'],
|
|
30
|
-
...(ownerState.readOnly && {
|
|
31
|
-
backgroundColor: theme.palette.text[9] + ' !important',
|
|
32
|
-
}),
|
|
33
|
-
paddingTop: '0 !important',
|
|
34
|
-
paddingBottom: '0 !important',
|
|
35
|
-
//Temporary Added
|
|
36
|
-
paddingRight: 10,
|
|
37
|
-
border: `1px solid ${theme.palette.background[4]}`,
|
|
38
|
-
borderRadius: theme.shape.borderRadius * 2,
|
|
39
|
-
transition: 'all 0.2s ease',
|
|
40
|
-
color: theme.palette.mode === 'light'
|
|
41
|
-
? theme.palette.text.primary
|
|
42
|
-
: theme.palette.text.secondary,
|
|
43
|
-
'& .MuiFilledInput-input': {
|
|
44
|
-
backgroundColor: 'transparent !important',
|
|
45
|
-
display: 'flex',
|
|
46
|
-
alignItems: 'center',
|
|
47
|
-
'& textarea': {
|
|
48
|
-
height: '100%',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
'& textarea': {
|
|
52
|
-
padding: '25px 0 8px 0',
|
|
53
|
-
fontWeight: 400,
|
|
54
|
-
},
|
|
55
|
-
//Focused state
|
|
56
|
-
'&.Mui-focused': {
|
|
57
|
-
borderColor: `${theme.palette[ownerState.color ?? 'primary']['3']} !important`,
|
|
58
|
-
backgroundColor: `${theme.palette[ownerState.color ?? 'primary']['1']}`,
|
|
59
|
-
},
|
|
60
|
-
'&:hover': {
|
|
61
|
-
backgroundColor: `${theme.palette[ownerState.color ?? 'primary']['1']}`,
|
|
62
|
-
color: theme.palette[ownerState.color ?? 'primary']['10'],
|
|
63
|
-
},
|
|
64
|
-
//Line under Filled TextField
|
|
65
|
-
'&::before': { display: 'none' },
|
|
66
|
-
'&::after': { display: 'none' },
|
|
67
|
-
//Error State
|
|
68
|
-
'&.Mui-error ': {
|
|
69
|
-
backgroundColor: `${theme.palette.error['3']}20`,
|
|
70
|
-
borderColor: `${theme.palette.error['3']} !important`,
|
|
71
|
-
stroke: theme.palette.error[3],
|
|
72
|
-
'& .MuiInputAdornment-root': {
|
|
73
|
-
stroke: theme.palette.error['4'],
|
|
74
|
-
},
|
|
75
|
-
'& .MuiFormHelperText-root': {
|
|
76
|
-
color: theme.palette.error['4'],
|
|
77
|
-
},
|
|
78
|
-
'&:hover': {
|
|
79
|
-
color: theme.palette.text.primary,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
//Disable state
|
|
83
|
-
'&.Mui-disabled': {
|
|
84
|
-
pointerEvents: 'none',
|
|
85
|
-
'& .MuiInputAdornment-root': {
|
|
86
|
-
stroke: theme.palette,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
91
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export const MuiOutlinedInput = {
|
|
2
|
-
styleOverrides: {
|
|
3
|
-
root: ({ ownerState, theme }) => ({
|
|
4
|
-
stroke: theme.palette.text.primary,
|
|
5
|
-
borderRadius: theme.spacing(2),
|
|
6
|
-
minWidth: 80,
|
|
7
|
-
...theme.typography?.["body3.medium"],
|
|
8
|
-
lineHeight: '100%',
|
|
9
|
-
height: ownerState.size === 'small'
|
|
10
|
-
? '40px'
|
|
11
|
-
: ownerState.multiline
|
|
12
|
-
? 'auto'
|
|
13
|
-
: '48px',
|
|
14
|
-
'& .MuiOutlinedInput-input': {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
color: `${theme.palette.text.primary} !important`,
|
|
18
|
-
...(ownerState.readOnly && {
|
|
19
|
-
pointerEvents: 'none',
|
|
20
|
-
backgroundColor: 'shadow.2',
|
|
21
|
-
color: 'text.disabled',
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
//Temporary Added
|
|
25
|
-
paddingRight: 10,
|
|
26
|
-
//Disable state
|
|
27
|
-
'&.Mui-disabled': {
|
|
28
|
-
pointerEvents: 'none',
|
|
29
|
-
'& .MuiInputAdornment-root': {
|
|
30
|
-
stroke: theme.palette.text[8],
|
|
31
|
-
},
|
|
32
|
-
backgroundColor: theme.palette.text[4],
|
|
33
|
-
},
|
|
34
|
-
//Label that goes on the border of component
|
|
35
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
36
|
-
transition: 'border-color 0.2s ease',
|
|
37
|
-
...theme.typography?.["body3.medium"],
|
|
38
|
-
...(ownerState.disabled && {
|
|
39
|
-
border: 'none',
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
//Main border color on hover
|
|
43
|
-
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
44
|
-
borderColor: theme.palette.text.primary,
|
|
45
|
-
},
|
|
46
|
-
//Focused State
|
|
47
|
-
'&.Mui-focused ': {
|
|
48
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
49
|
-
borderColor: theme.palette[ownerState.color ?? 'primary'].main,
|
|
50
|
-
borderWidth: 1,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
//Error State
|
|
54
|
-
'&.Mui-error ': {
|
|
55
|
-
stroke: theme.palette.error[3],
|
|
56
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
57
|
-
borderColor: theme.palette.error['3'],
|
|
58
|
-
borderWidth: 1,
|
|
59
|
-
},
|
|
60
|
-
'& .MuiInputAdornment-root': {
|
|
61
|
-
stroke: theme.palette.error['2'],
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}),
|
|
65
|
-
},
|
|
66
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
export const MuiTextField = {
|
|
2
|
-
styleOverrides: {
|
|
3
|
-
root: ({ theme, ownerState }) => {
|
|
4
|
-
return {
|
|
5
|
-
'.MuiSelect-popupIcon': {
|
|
6
|
-
marginRight: '2px',
|
|
7
|
-
maxWidth: 21,
|
|
8
|
-
width: '100%',
|
|
9
|
-
transition: '0.3s ease all',
|
|
10
|
-
transform: ownerState.SelectProps?.open ? 'rotate(180deg)' : 'unset',
|
|
11
|
-
},
|
|
12
|
-
color: ownerState.error
|
|
13
|
-
? theme.palette.error['4']
|
|
14
|
-
: theme.palette.text.primary,
|
|
15
|
-
WebkitTextFillColor: ownerState.error
|
|
16
|
-
? `${theme.palette.error['4']} !important`
|
|
17
|
-
: theme.palette.text.primary,
|
|
18
|
-
...(ownerState['aria-readonly'] && {
|
|
19
|
-
pointerEvents: 'none',
|
|
20
|
-
WebkitTextFillColor: `${theme.palette.text.disabled} !important`,
|
|
21
|
-
color: `${theme.palette.text.disabled} !important`,
|
|
22
|
-
'& .MuiOutlinedInput-root': {
|
|
23
|
-
backgroundColor: theme.palette.background['1'],
|
|
24
|
-
},
|
|
25
|
-
'& .MuiInputLabel-root': {
|
|
26
|
-
color: `${theme.palette.text.disabled} !important`,
|
|
27
|
-
},
|
|
28
|
-
}),
|
|
29
|
-
minWidth: 'auto',
|
|
30
|
-
input: {
|
|
31
|
-
'&::placeholder': {
|
|
32
|
-
fontWeight: 400,
|
|
33
|
-
fontSize: 'smaller',
|
|
34
|
-
color: theme.palette.grey['12'],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
//Base Input & Text area components
|
|
38
|
-
'& .MuiInputBase-input': {
|
|
39
|
-
borderRadius: theme.shape.borderRadius / 2,
|
|
40
|
-
'&:-webkit-autofill': {
|
|
41
|
-
WebkitTextFillColor: theme.palette.text.primary,
|
|
42
|
-
transition: 'background-color 5000s ease-in-out 0s',
|
|
43
|
-
boxShadow: 'unset',
|
|
44
|
-
},
|
|
45
|
-
'& textarea': {
|
|
46
|
-
paddingTop: 4,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
'& .MuiOutlinedInput-input': {
|
|
50
|
-
...(ownerState.rows && {
|
|
51
|
-
paddingTop: '8px !important',
|
|
52
|
-
}),
|
|
53
|
-
},
|
|
54
|
-
'& textarea': {
|
|
55
|
-
fontWeight: 400,
|
|
56
|
-
},
|
|
57
|
-
caretColor: theme.palette.primary.main,
|
|
58
|
-
//Adornment section styles
|
|
59
|
-
'& .MuiInputAdornment-root': {
|
|
60
|
-
stroke: theme.palette.text.primary,
|
|
61
|
-
},
|
|
62
|
-
'& .MuiInputAdornment-positionStart': {
|
|
63
|
-
marginTop: ownerState.variant === 'filled' ? '1rem !important' : 'initial',
|
|
64
|
-
},
|
|
65
|
-
'& .MuiFormHelperText-root': {
|
|
66
|
-
color: ownerState.error
|
|
67
|
-
? theme.palette.error['4']
|
|
68
|
-
: theme.palette.text.primary,
|
|
69
|
-
display: 'block',
|
|
70
|
-
minHeight: '23px',
|
|
71
|
-
position: 'relative !important',
|
|
72
|
-
top: '0px !important',
|
|
73
|
-
width: 'max-content',
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Fade } from "@mui/material";
|
|
2
|
-
export const MuiTooltip = {
|
|
3
|
-
defaultProps: {
|
|
4
|
-
TransitionComponent: Fade,
|
|
5
|
-
TransitionProps: { timeout: 300 },
|
|
6
|
-
PopperProps: { disablePortal: true },
|
|
7
|
-
arrow: true
|
|
8
|
-
},
|
|
9
|
-
styleOverrides: {
|
|
10
|
-
tooltip: ({ theme, ownerState }) => {
|
|
11
|
-
// in order to change the background color of tooltip manually,you need to add
|
|
12
|
-
// color in tooltip object inside the componentProps in the place that you're using the component
|
|
13
|
-
// Example:<Tooltip title={...} componentsProps={{tooltip:{color:''}}}>
|
|
14
|
-
const overallColor = ownerState.componentsProps?.tooltip?.color ?? theme.palette.mode === 'light' ? theme.palette.background[1] : theme.palette.background[4];
|
|
15
|
-
return ({
|
|
16
|
-
fontWeight: 400,
|
|
17
|
-
fontSize: '12px',
|
|
18
|
-
backgroundColor: overallColor,
|
|
19
|
-
color: theme.palette.text.primary,
|
|
20
|
-
'& .MuiTooltip-arrow': {
|
|
21
|
-
color: overallColor,
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|