@applica-software-guru/react-admin 1.0.32 → 1.0.34
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/.eslintrc.json +43 -0
- package/.husky/pre-commit +4 -0
- package/.nvmrc +1 -0
- package/.prettierrc +8 -0
- package/bitbucket-pipelines.yml +30 -0
- package/dist/Admin.d.ts +1 -1
- package/dist/ApplicaAdmin.d.ts +3 -3
- package/dist/ApplicaAdmin.d.ts.map +1 -1
- package/dist/components/@extended/AnimateButton.d.ts +5 -5
- package/dist/components/@extended/Avatar.d.ts +3 -3
- package/dist/components/@extended/Breadcrumbs.d.ts +5 -5
- package/dist/components/@extended/Dot.d.ts +1 -1
- package/dist/components/@extended/Tooltip.d.ts +1 -1
- package/dist/components/ActionsMenu.d.ts +1 -1
- package/dist/components/ActionsMenu.d.ts.map +1 -1
- package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavGroup.d.ts +1 -1
- package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavGroup.d.ts.map +1 -1
- package/dist/components/Layout/Drawer/DrawerHeader/DrawerHeaderStyled.d.ts +5 -5
- package/dist/components/Layout/Header/AppBarStyled.d.ts +13 -13
- package/dist/components/Layout/Header/HeaderContent/NotificationItem.d.ts +3 -3
- package/dist/components/Logo.d.ts +2 -2
- package/dist/components/MenuPopover/MenuPopover.d.ts +1 -1
- package/dist/components/Notification.d.ts +5 -1
- package/dist/components/Notification.d.ts.map +1 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts +16 -1
- package/dist/components/ra-buttons/CreateInDialogButton.d.ts.map +1 -1
- package/dist/components/ra-buttons/ImpersonateUserButton.d.ts +1 -1
- package/dist/components/ra-fields/ActionsField.d.ts +1 -1
- package/dist/components/ra-fields/ActionsField.d.ts.map +1 -1
- package/dist/components/ra-fields/AttachmentField.d.ts +19 -1
- package/dist/components/ra-fields/AttachmentField.d.ts.map +1 -1
- package/dist/components/ra-fields/BaseAttachmentField.d.ts +2 -2
- package/dist/components/ra-fields/CoverField.d.ts +19 -1
- package/dist/components/ra-fields/CoverField.d.ts.map +1 -1
- package/dist/components/ra-fields/EmailField.d.ts +12 -1
- package/dist/components/ra-fields/FileField.d.ts +19 -1
- package/dist/components/ra-fields/FileField.d.ts.map +1 -1
- package/dist/components/ra-fields/ImageField.d.ts +15 -1
- package/dist/components/ra-fields/ImageField.d.ts.map +1 -1
- package/dist/components/ra-fields/ReadonlyField.d.ts +1 -1
- package/dist/components/ra-fields/ReferenceManyField.d.ts +32 -2
- package/dist/components/ra-fields/ReferenceManyField.d.ts.map +1 -1
- package/dist/components/ra-forms/Edit.d.ts +24 -1
- package/dist/components/ra-forms/Edit.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/LongFormHeader.d.ts +1 -1
- package/dist/components/ra-forms/LongForm/LongFormHeader.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/LongFormTab.d.ts +4 -4
- package/dist/components/ra-forms/LongForm/LongFormTab.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/LongFormTabs.d.ts +2 -2
- package/dist/components/ra-forms/SimpleForm.d.ts +13 -1
- package/dist/components/ra-forms/SimpleForm.d.ts.map +1 -1
- package/dist/components/ra-forms/TabbedForm.d.ts +9 -1
- package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
- package/dist/components/ra-forms/Toolbar.d.ts +5 -1
- package/dist/components/ra-inputs/AttachmentInput.d.ts +20 -1
- package/dist/components/ra-inputs/AttachmentInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/AutocompleteArrayInput.d.ts +1 -2
- package/dist/components/ra-inputs/AutocompleteArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/AutocompleteInput.d.ts +1 -2
- package/dist/components/ra-inputs/AutocompleteInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/BooleanInput.d.ts +19 -2
- package/dist/components/ra-inputs/BooleanInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/DateInput.d.ts +11 -1
- package/dist/components/ra-inputs/FileInput.d.ts +21 -1
- package/dist/components/ra-inputs/FileInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/LabeledInput.d.ts +2 -2
- package/dist/components/ra-inputs/NumberInput.d.ts +19 -2
- package/dist/components/ra-inputs/RecordInput.d.ts +1 -1
- package/dist/components/ra-inputs/ReferenceArrayInput.d.ts +25 -2
- package/dist/components/ra-inputs/ReferenceArrayInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceInput.d.ts +26 -2
- package/dist/components/ra-inputs/ReferenceInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts +34 -2
- package/dist/components/ra-inputs/ReferenceManyInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/SelectArrayInput.d.ts +18 -1
- package/dist/components/ra-inputs/SelectInput.d.ts +21 -1
- package/dist/components/ra-inputs/SmartTextInput.d.ts +17 -1
- package/dist/components/ra-inputs/SmartTextInput.d.ts.map +1 -1
- package/dist/components/ra-inputs/TextInput.d.ts +16 -2
- package/dist/components/ra-inputs/TimeInput.d.ts +11 -1
- package/dist/components/ra-lists/Datagrid.d.ts +616 -2
- package/dist/components/ra-lists/List.d.ts +28 -2
- package/dist/contexts/AppConfigContext.d.ts +1 -1
- package/dist/contexts/MenuConfigContext.d.ts +4 -4
- package/dist/dev/useCliErrorCatcher.d.ts +5 -5
- package/dist/hooks/useAppConfig.d.ts +1 -1
- package/dist/hooks/useBreadcrumbs.d.ts +2 -2
- package/dist/hooks/useMenu.d.ts +2 -2
- package/dist/hooks/useMenu.d.ts.map +1 -1
- package/dist/hooks/useMenuConfig.d.ts +2 -2
- package/dist/i18n/createI18nProvider.d.ts +1 -1
- package/dist/i18n/useI18nCatcher.d.ts +4 -4
- package/dist/i18n/useI18nLanguages.d.ts +4 -4
- package/dist/i18n/useI18nProvider.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/react-admin.cjs.js +25 -25
- package/dist/react-admin.es.js +304 -315
- package/dist/react-admin.umd.js +25 -25
- package/dist/themes/overrides/PaginationItem.d.ts +72 -72
- package/jsconfig.json +31 -0
- package/jsconfig.node.json +10 -0
- package/package.json +6 -5
- package/playground/config-overrides.js +31 -0
- package/playground/jsconfig.json +9 -0
- package/playground/package-lock.json +17764 -0
- package/playground/package.json +69 -0
- package/playground/public/favicon-dark.png +0 -0
- package/playground/public/favicon-light.png +0 -0
- package/playground/public/index.html +46 -0
- package/playground/src/App.js +49 -0
- package/playground/src/build.json +1 -0
- package/playground/src/components/index.js +5 -0
- package/playground/src/components/pages/CustomPage.jsx +7 -0
- package/playground/src/components/pages/index.jsx +2 -0
- package/playground/src/components/ra-buttons/index.js +1 -0
- package/playground/src/components/ra-fields/UserPictureField.js +20 -0
- package/playground/src/components/ra-fields/index.js +2 -0
- package/playground/src/components/ra-forms/DeviceForm.js +36 -0
- package/playground/src/components/ra-forms/I18nMessageForm.js +24 -0
- package/playground/src/components/ra-forms/UserForm.js +51 -0
- package/playground/src/components/ra-forms/index.js +5 -0
- package/playground/src/components/ra-inputs/LangSelectInput.js +4 -0
- package/playground/src/components/ra-inputs/YesOrNoSelectInput.js +14 -0
- package/playground/src/components/ra-inputs/index.js +3 -0
- package/playground/src/components/ra-lists/DeviceList.js +33 -0
- package/playground/src/components/ra-lists/I18nMessageList.js +20 -0
- package/playground/src/components/ra-lists/UserList.js +96 -0
- package/playground/src/components/ra-lists/index.js +4 -0
- package/playground/src/config.js +19 -0
- package/playground/src/contexts/index.js +1 -0
- package/playground/src/hooks/index.js +1 -0
- package/playground/src/index.js +10 -0
- package/playground/src/menu.js +72 -0
- package/playground/src/react-app-env.d.js +1 -0
- package/playground/src/reportWebVitals.js +13 -0
- package/playground/src/resource/device.js +23 -0
- package/playground/src/resource/i18n-message.js +29 -0
- package/playground/src/resource/index.js +4 -0
- package/playground/src/resource/notification.js +18 -0
- package/playground/src/resource/user.js +28 -0
- package/playground/src/theme.js +3 -0
- package/src/Admin.jsx +67 -0
- package/src/AdminContext.jsx +26 -0
- package/src/ApplicaAdmin.jsx +210 -0
- package/src/assets/README.md +7 -0
- package/src/assets/logo-icon.png +0 -0
- package/src/assets/logo-main.png +0 -0
- package/src/components/@extended/AnimateButton.jsx +96 -0
- package/src/components/@extended/Avatar.jsx +125 -0
- package/src/components/@extended/Breadcrumbs.jsx +324 -0
- package/src/components/@extended/Dot.jsx +35 -0
- package/src/components/@extended/IconButton.jsx +166 -0
- package/src/components/@extended/LoadingButton.jsx +228 -0
- package/src/components/@extended/Tooltip.jsx +67 -0
- package/src/components/@extended/Transitions.jsx +125 -0
- package/src/components/@extended/index.jsx +11 -0
- package/src/components/@extended/progress/CircularWithLabel.jsx +34 -0
- package/src/components/@extended/progress/CircularWithPath.jsx +74 -0
- package/src/components/@extended/progress/LinearWithIcon.jsx +22 -0
- package/src/components/@extended/progress/LinearWithLabel.jsx +23 -0
- package/src/components/@extended/progress/index.jsx +6 -0
- package/src/components/ActionsMenu.jsx +77 -0
- package/src/components/Layout/Drawer/DrawerContent/Navigation/NavCollapse.jsx +440 -0
- package/src/components/Layout/Drawer/DrawerContent/Navigation/NavGroup.jsx +359 -0
- package/src/components/Layout/Drawer/DrawerContent/Navigation/NavItem.jsx +259 -0
- package/src/components/Layout/Drawer/DrawerContent/Navigation/index.jsx +73 -0
- package/src/components/Layout/Drawer/DrawerContent/index.jsx +19 -0
- package/src/components/Layout/Drawer/DrawerHeader/DrawerHeaderStyled.jsx +20 -0
- package/src/components/Layout/Drawer/DrawerHeader/index.jsx +44 -0
- package/src/components/Layout/Drawer/HorizontalBar.jsx +55 -0
- package/src/components/Layout/Drawer/MiniDrawerStyled.jsx +47 -0
- package/src/components/Layout/Drawer/index.jsx +63 -0
- package/src/components/Layout/Footer.jsx +23 -0
- package/src/components/Layout/Header/AppBarStyled.jsx +34 -0
- package/src/components/Layout/Header/HeaderContent/MobileSection.jsx +91 -0
- package/src/components/Layout/Header/HeaderContent/Notification.jsx +179 -0
- package/src/components/Layout/Header/HeaderContent/NotificationItem.jsx +109 -0
- package/src/components/Layout/Header/HeaderContent/Profile.jsx +181 -0
- package/src/components/Layout/Header/HeaderContent/index.jsx +38 -0
- package/src/components/Layout/Header/index.jsx +99 -0
- package/src/components/Layout/index.jsx +119 -0
- package/src/components/Loadable.jsx +11 -0
- package/src/components/Loader.jsx +21 -0
- package/src/components/Logo.jsx +29 -0
- package/src/components/MainCard.jsx +111 -0
- package/src/components/MainIcon.jsx +20 -0
- package/src/components/MenuPopover/MenuPopover.jsx +61 -0
- package/src/components/MenuPopover/getPosition.jsx +98 -0
- package/src/components/MenuPopover/index.jsx +3 -0
- package/src/components/MenuPopover/styles.jsx +87 -0
- package/src/components/Notification.jsx +13 -0
- package/src/components/ScrollTop.jsx +24 -0
- package/src/components/ScrollX.jsx +10 -0
- package/src/components/SmallIcon.jsx +14 -0
- package/src/components/index.jsx +36 -0
- package/src/components/ra-buttons/CreateInDialogButton.jsx +203 -0
- package/src/components/ra-buttons/EditInDialogButton.jsx +108 -0
- package/src/components/ra-buttons/ImpersonateUserButton.jsx +41 -0
- package/src/components/ra-buttons/index.jsx +4 -0
- package/src/components/ra-fields/ActionsField.jsx +33 -0
- package/src/components/ra-fields/AttachmentField.jsx +82 -0
- package/src/components/ra-fields/BaseAttachmentField.jsx +72 -0
- package/src/components/ra-fields/CoverField.jsx +83 -0
- package/src/components/ra-fields/DateAgoField.jsx +35 -0
- package/src/components/ra-fields/DateField.jsx +27 -0
- package/src/components/ra-fields/EmailField.jsx +27 -0
- package/src/components/ra-fields/FileField.jsx +40 -0
- package/src/components/ra-fields/FunctionField.jsx +9 -0
- package/src/components/ra-fields/ImageField.jsx +20 -0
- package/src/components/ra-fields/ReadonlyField.jsx +107 -0
- package/src/components/ra-fields/ReferenceManyField.jsx +63 -0
- package/src/components/ra-fields/SizeField.jsx +32 -0
- package/src/components/ra-fields/TextField.jsx +27 -0
- package/src/components/ra-fields/index.jsx +28 -0
- package/src/components/ra-forms/CardForm.jsx +113 -0
- package/src/components/ra-forms/Edit.jsx +13 -0
- package/src/components/ra-forms/FormHeader.jsx +42 -0
- package/src/components/ra-forms/LongForm/DispositionProps.jsx +10 -0
- package/src/components/ra-forms/LongForm/LongForm.jsx +38 -0
- package/src/components/ra-forms/LongForm/LongFormHeader.jsx +24 -0
- package/src/components/ra-forms/LongForm/LongFormTab.jsx +121 -0
- package/src/components/ra-forms/LongForm/LongFormTabs.jsx +63 -0
- package/src/components/ra-forms/LongForm/LongFormView.jsx +129 -0
- package/src/components/ra-forms/LongForm/index.jsx +2 -0
- package/src/components/ra-forms/LongForm/useFormRootPath.jsx +22 -0
- package/src/components/ra-forms/SimpleForm.jsx +69 -0
- package/src/components/ra-forms/TabbedForm.jsx +19 -0
- package/src/components/ra-forms/Toolbar.jsx +36 -0
- package/src/components/ra-forms/index.jsx +8 -0
- package/src/components/ra-inputs/ArrayInput.jsx +29 -0
- package/src/components/ra-inputs/AttachmentInput.jsx +57 -0
- package/src/components/ra-inputs/AutocompleteArrayInput.jsx +25 -0
- package/src/components/ra-inputs/AutocompleteInput.jsx +24 -0
- package/src/components/ra-inputs/BooleanInput.jsx +54 -0
- package/src/components/ra-inputs/DateInput.jsx +30 -0
- package/src/components/ra-inputs/FileInput.jsx +98 -0
- package/src/components/ra-inputs/ImageInput.jsx +44 -0
- package/src/components/ra-inputs/LabeledInput.jsx +80 -0
- package/src/components/ra-inputs/NumberInput.jsx +28 -0
- package/src/components/ra-inputs/RecordInput.jsx +102 -0
- package/src/components/ra-inputs/ReferenceArrayInput.jsx +23 -0
- package/src/components/ra-inputs/ReferenceInput.jsx +23 -0
- package/src/components/ra-inputs/ReferenceManyInput.jsx +44 -0
- package/src/components/ra-inputs/SearchInput.jsx +14 -0
- package/src/components/ra-inputs/SelectArrayInput.jsx +45 -0
- package/src/components/ra-inputs/SelectInput.jsx +24 -0
- package/src/components/ra-inputs/SmartTextInput.jsx +52 -0
- package/src/components/ra-inputs/TextInput.jsx +20 -0
- package/src/components/ra-inputs/TimeInput.jsx +46 -0
- package/src/components/ra-inputs/index.jsx +42 -0
- package/src/components/ra-lists/Datagrid.jsx +42 -0
- package/src/components/ra-lists/Empty.jsx +94 -0
- package/src/components/ra-lists/List.jsx +81 -0
- package/src/components/ra-lists/NotificationList/NotificationList.jsx +41 -0
- package/src/components/ra-lists/NotificationList/button/MarkAsReadedButton.jsx +57 -0
- package/src/components/ra-lists/NotificationList/button/MarkAsUnreadedButton.jsx +56 -0
- package/src/components/ra-lists/NotificationList/button/index.jsx +2 -0
- package/src/components/ra-lists/NotificationList/field/NotificationField.jsx +80 -0
- package/src/components/ra-lists/NotificationList/field/index.jsx +1 -0
- package/src/components/ra-lists/NotificationList/index.jsx +2 -0
- package/src/components/ra-lists/index.jsx +5 -0
- package/src/components/third-party/SimpleBar.jsx +61 -0
- package/src/components/third-party/index.jsx +3 -0
- package/src/contexts/AppConfigContext.jsx +54 -0
- package/src/contexts/MenuConfigContext.jsx +93 -0
- package/src/contexts/MenuPropTypes.jsx +19 -0
- package/src/contexts/ThemeConfigContext.jsx +138 -0
- package/src/contexts/index.jsx +5 -0
- package/src/dev/index.jsx +2 -0
- package/src/dev/useCliErrorCatcher.jsx +86 -0
- package/src/hooks/index.jsx +16 -0
- package/src/hooks/useAppConfig.jsx +6 -0
- package/src/hooks/useBreadcrumbs.jsx +68 -0
- package/src/hooks/useLocalStorage.jsx +31 -0
- package/src/hooks/useMenu.jsx +223 -0
- package/src/hooks/useMenuConfig.jsx +6 -0
- package/src/hooks/useResourceTitle.jsx +25 -0
- package/src/hooks/useThemeConfig.jsx +6 -0
- package/src/i18n/createI18nProvider.jsx +15 -0
- package/src/i18n/index.jsx +4 -0
- package/src/i18n/useI18nCatcher.jsx +71 -0
- package/src/i18n/useI18nLanguages.jsx +22 -0
- package/src/i18n/useI18nProvider.jsx +5 -0
- package/src/index.jsx +67 -0
- package/src/themes/getColors.jsx +18 -0
- package/src/themes/getShadow.jsx +37 -0
- package/src/themes/index.jsx +70 -0
- package/src/themes/overrides/Accordion.jsx +27 -0
- package/src/themes/overrides/AccordionDetails.jsx +14 -0
- package/src/themes/overrides/AccordionSummary.jsx +33 -0
- package/src/themes/overrides/Alert.jsx +72 -0
- package/src/themes/overrides/AlertTitle.jsx +15 -0
- package/src/themes/overrides/Autocomplete.jsx +23 -0
- package/src/themes/overrides/Badge.jsx +36 -0
- package/src/themes/overrides/Button.jsx +229 -0
- package/src/themes/overrides/ButtonBase.jsx +12 -0
- package/src/themes/overrides/ButtonGroup.jsx +11 -0
- package/src/themes/overrides/CardContent.jsx +16 -0
- package/src/themes/overrides/Checkbox.jsx +125 -0
- package/src/themes/overrides/Chip.jsx +75 -0
- package/src/themes/overrides/Dialog.jsx +18 -0
- package/src/themes/overrides/DialogContentText.jsx +14 -0
- package/src/themes/overrides/DialogTitle.jsx +14 -0
- package/src/themes/overrides/Fab.jsx +77 -0
- package/src/themes/overrides/IconButton.jsx +28 -0
- package/src/themes/overrides/InputBase.jsx +13 -0
- package/src/themes/overrides/InputLabel.jsx +25 -0
- package/src/themes/overrides/LinearProgress.jsx +17 -0
- package/src/themes/overrides/Link.jsx +11 -0
- package/src/themes/overrides/ListItemButton.jsx +18 -0
- package/src/themes/overrides/ListItemIcon.jsx +14 -0
- package/src/themes/overrides/LoadingButton.jsx +17 -0
- package/src/themes/overrides/OutlinedInput.jsx +54 -0
- package/src/themes/overrides/Pagination.jsx +11 -0
- package/src/themes/overrides/PaginationItem.jsx +211 -0
- package/src/themes/overrides/Popover.jsx +13 -0
- package/src/themes/overrides/Radio.jsx +121 -0
- package/src/themes/overrides/Slider.jsx +66 -0
- package/src/themes/overrides/Switch.jsx +88 -0
- package/src/themes/overrides/Tab.jsx +24 -0
- package/src/themes/overrides/TableBody.jsx +27 -0
- package/src/themes/overrides/TableCell.jsx +44 -0
- package/src/themes/overrides/TableFooter.jsx +15 -0
- package/src/themes/overrides/TableHead.jsx +15 -0
- package/src/themes/overrides/TablePagination.jsx +16 -0
- package/src/themes/overrides/TableRow.jsx +25 -0
- package/src/themes/overrides/Tabs.jsx +13 -0
- package/src/themes/overrides/ToggleButton.jsx +20 -0
- package/src/themes/overrides/Tooltip.jsx +13 -0
- package/src/themes/overrides/TreeItem.jsx +18 -0
- package/src/themes/overrides/Typography.jsx +13 -0
- package/src/themes/overrides/index.jsx +98 -0
- package/src/themes/palette.jsx +78 -0
- package/src/themes/shadows.jsx +27 -0
- package/src/themes/theme/default.jsx +98 -0
- package/src/themes/theme/index.jsx +44 -0
- package/src/themes/theme/theme1.jsx +128 -0
- package/src/themes/theme/theme2.jsx +128 -0
- package/src/themes/theme/theme3.jsx +128 -0
- package/src/themes/theme/theme4.jsx +128 -0
- package/src/themes/theme/theme5.jsx +128 -0
- package/src/themes/theme/theme6.jsx +128 -0
- package/src/themes/theme/theme7.jsx +128 -0
- package/src/themes/theme/theme8.jsx +128 -0
- package/src/themes/typography.jsx +71 -0
- package/src/utils/index.js +2 -0
- package/src/utils/lang.js +12 -0
- package/src/utils/time.js +13 -0
- package/tsconfig.json +28 -0
- package/vite.config.js +74 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { alpha } from '@mui/material/styles'
|
|
2
|
+
import getColors from '../getColors'
|
|
3
|
+
import getShadow from '../getShadow'
|
|
4
|
+
|
|
5
|
+
function getColorStyle({ color, theme }) {
|
|
6
|
+
const colors = getColors(theme, color)
|
|
7
|
+
const { main, dark, contrastText } = colors
|
|
8
|
+
|
|
9
|
+
const buttonShadow = `${color}Button`
|
|
10
|
+
const shadows = getShadow(theme, buttonShadow)
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
color: contrastText,
|
|
14
|
+
backgroundColor: main,
|
|
15
|
+
boxShadow: shadows,
|
|
16
|
+
'&:hover': {
|
|
17
|
+
boxShadow: 'none',
|
|
18
|
+
backgroundColor: dark,
|
|
19
|
+
},
|
|
20
|
+
'&:focus-visible': {
|
|
21
|
+
outline: `2px solid ${dark}`,
|
|
22
|
+
outlineOffset: 2,
|
|
23
|
+
},
|
|
24
|
+
'&::after': {
|
|
25
|
+
borderRadius: '50px',
|
|
26
|
+
boxShadow: `0 0 5px 5px ${alpha(main, 0.9)}`,
|
|
27
|
+
},
|
|
28
|
+
'&:active::after': {
|
|
29
|
+
borderRadius: '50px',
|
|
30
|
+
boxShadow: `0 0 0 0 ${alpha(main, 0.9)}`,
|
|
31
|
+
},
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ==============================|| OVERRIDES - FAB BUTTON ||============================== //
|
|
36
|
+
|
|
37
|
+
export default function Button(theme) {
|
|
38
|
+
return {
|
|
39
|
+
MuiFab: {
|
|
40
|
+
styleOverrides: {
|
|
41
|
+
root: {
|
|
42
|
+
fontWeight: 400,
|
|
43
|
+
'&.Mui-disabled': {
|
|
44
|
+
backgroundColor: theme.palette.grey[200],
|
|
45
|
+
},
|
|
46
|
+
'&.MuiFab-primary': getColorStyle({ color: 'primary', theme }),
|
|
47
|
+
'&.MuiFab-secondary': getColorStyle({ color: 'secondary', theme }),
|
|
48
|
+
'&.Mui-error': getColorStyle({ color: 'error', theme }),
|
|
49
|
+
'&.MuiFab-success': getColorStyle({ color: 'success', theme }),
|
|
50
|
+
'&.MuiFab-info': getColorStyle({ color: 'info', theme }),
|
|
51
|
+
'&.MuiFab-warning': getColorStyle({ color: 'warning', theme }),
|
|
52
|
+
'&::after': {
|
|
53
|
+
content: '""',
|
|
54
|
+
display: 'block',
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
left: 0,
|
|
57
|
+
top: 0,
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%',
|
|
60
|
+
borderRadius: 4,
|
|
61
|
+
opacity: 0,
|
|
62
|
+
transition: 'all 0.5s',
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
'&:active::after': {
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
borderRadius: 4,
|
|
68
|
+
left: 0,
|
|
69
|
+
top: 0,
|
|
70
|
+
opacity: 1,
|
|
71
|
+
transition: '0s',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - ICON BUTTON ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function IconButton(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiIconButton: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
borderRadius: 4,
|
|
9
|
+
},
|
|
10
|
+
sizeLarge: {
|
|
11
|
+
width: theme.spacing(5.5),
|
|
12
|
+
height: theme.spacing(5.5),
|
|
13
|
+
fontSize: '1.25rem',
|
|
14
|
+
},
|
|
15
|
+
sizeMedium: {
|
|
16
|
+
width: theme.spacing(4.5),
|
|
17
|
+
height: theme.spacing(4.5),
|
|
18
|
+
fontSize: '1rem',
|
|
19
|
+
},
|
|
20
|
+
sizeSmall: {
|
|
21
|
+
width: theme.spacing(3.75),
|
|
22
|
+
height: theme.spacing(3.75),
|
|
23
|
+
fontSize: '0.75rem',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - INPUT BASE ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function InputBase() {
|
|
4
|
+
return {
|
|
5
|
+
MuiInputBase: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
// sizeSmall: {
|
|
8
|
+
// fontSize: '0.75rem'
|
|
9
|
+
// }
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - INPUT LABEL ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function InputLabel(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiInputLabel: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
color: theme.palette.grey[600],
|
|
9
|
+
},
|
|
10
|
+
outlined: {
|
|
11
|
+
lineHeight: '0.8em',
|
|
12
|
+
'&.MuiInputLabel-sizeSmall': {
|
|
13
|
+
lineHeight: '1em',
|
|
14
|
+
},
|
|
15
|
+
'&.MuiInputLabel-shrink': {
|
|
16
|
+
background: theme.palette.background.paper,
|
|
17
|
+
padding: '0 8px',
|
|
18
|
+
marginLeft: -6,
|
|
19
|
+
lineHeight: '1.4375em',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - LINER PROGRESS ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function LinearProgress() {
|
|
4
|
+
return {
|
|
5
|
+
MuiLinearProgress: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
height: 6,
|
|
9
|
+
borderRadius: 100,
|
|
10
|
+
},
|
|
11
|
+
bar: {
|
|
12
|
+
borderRadius: 100,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - LIST ITEM ICON ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function ListItemButton(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiListItemButton: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
'&.Mui-selected': {
|
|
9
|
+
color: theme.palette.primary.main,
|
|
10
|
+
'& .MuiListItemIcon-root': {
|
|
11
|
+
color: theme.palette.primary.main,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - LIST ITEM ICON ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function ListItemIcon(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiListItemIcon: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
minWidth: 24,
|
|
9
|
+
color: theme.palette.text.primary,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - LOADING BUTTON ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function LoadingButton() {
|
|
4
|
+
return {
|
|
5
|
+
MuiLoadingButton: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
root: {
|
|
8
|
+
padding: '6px 16px',
|
|
9
|
+
'&.MuiLoadingButton-loading': {
|
|
10
|
+
opacity: 0.6,
|
|
11
|
+
textShadow: 'none',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import getColors from '../getColors'
|
|
2
|
+
import getShadow from '../getShadow'
|
|
3
|
+
|
|
4
|
+
function getColor({ variant, theme }) {
|
|
5
|
+
const colors = getColors(theme, variant)
|
|
6
|
+
const { light } = colors
|
|
7
|
+
|
|
8
|
+
const shadows = getShadow(theme, `${variant}`)
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
12
|
+
borderColor: light,
|
|
13
|
+
},
|
|
14
|
+
'&.Mui-focused': {
|
|
15
|
+
boxShadow: shadows,
|
|
16
|
+
'& .MuiOutlinedInput-notchedOutline': {
|
|
17
|
+
border: `1px solid ${light}`,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default function OutlinedInput(theme) {
|
|
24
|
+
return {
|
|
25
|
+
MuiOutlinedInput: {
|
|
26
|
+
styleOverrides: {
|
|
27
|
+
input: {
|
|
28
|
+
padding: '10.5px 14px 10.5px 12px',
|
|
29
|
+
},
|
|
30
|
+
notchedOutline: {
|
|
31
|
+
borderColor:
|
|
32
|
+
theme.palette.mode === 'dark' ? theme.palette.grey[200] : theme.palette.grey[300],
|
|
33
|
+
},
|
|
34
|
+
root: {
|
|
35
|
+
...getColor({ variant: 'primary', theme }),
|
|
36
|
+
'&.Mui-error': {
|
|
37
|
+
...getColor({ variant: 'error', theme }),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
inputSizeSmall: {
|
|
41
|
+
padding: '7.5px 8px 7.5px 12px',
|
|
42
|
+
},
|
|
43
|
+
inputMultiline: {
|
|
44
|
+
padding: 0,
|
|
45
|
+
},
|
|
46
|
+
colorSecondary: getColor({ variant: 'secondary', theme }),
|
|
47
|
+
colorError: getColor({ variant: 'error', theme }),
|
|
48
|
+
colorWarning: getColor({ variant: 'warning', theme }),
|
|
49
|
+
colorInfo: getColor({ variant: 'info', theme }),
|
|
50
|
+
colorSuccess: getColor({ variant: 'success', theme }),
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import getColors from '../getColors'
|
|
2
|
+
|
|
3
|
+
function getColorStyle({ variant, color, theme }) {
|
|
4
|
+
const colors = getColors(theme, color)
|
|
5
|
+
const { lighter, light, dark, main, contrastText } = colors
|
|
6
|
+
|
|
7
|
+
const focusStyle = {
|
|
8
|
+
'&:focus-visible': {
|
|
9
|
+
outline: `2px solid ${dark}`,
|
|
10
|
+
outlineOffset: 2,
|
|
11
|
+
...(variant === 'text' && {
|
|
12
|
+
backgroundColor: theme.palette.background.paper,
|
|
13
|
+
}),
|
|
14
|
+
},
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
switch (variant) {
|
|
18
|
+
case 'combined':
|
|
19
|
+
case 'contained':
|
|
20
|
+
return {
|
|
21
|
+
color: contrastText,
|
|
22
|
+
backgroundColor: main,
|
|
23
|
+
'&:hover': {
|
|
24
|
+
backgroundColor: light,
|
|
25
|
+
},
|
|
26
|
+
...focusStyle,
|
|
27
|
+
}
|
|
28
|
+
case 'outlined':
|
|
29
|
+
return {
|
|
30
|
+
borderColor: main,
|
|
31
|
+
'&:hover': {
|
|
32
|
+
backgroundColor: lighter,
|
|
33
|
+
borderColor: light,
|
|
34
|
+
},
|
|
35
|
+
...focusStyle,
|
|
36
|
+
}
|
|
37
|
+
case 'text':
|
|
38
|
+
default:
|
|
39
|
+
return {
|
|
40
|
+
color: main,
|
|
41
|
+
'&:hover': {
|
|
42
|
+
backgroundColor: main,
|
|
43
|
+
color: lighter,
|
|
44
|
+
},
|
|
45
|
+
...focusStyle,
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ==============================|| OVERRIDES - PAGINATION ITEM ||============================== //
|
|
51
|
+
|
|
52
|
+
export default function PaginationItem(theme) {
|
|
53
|
+
return {
|
|
54
|
+
MuiPaginationItem: {
|
|
55
|
+
styleOverrides: {
|
|
56
|
+
root: {
|
|
57
|
+
'&:focus-visible': {
|
|
58
|
+
outline: `2px solid ${theme.palette.secondary.dark}`,
|
|
59
|
+
outlineOffset: 2,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
text: {
|
|
63
|
+
'&.Mui-selected': {
|
|
64
|
+
backgroundColor: 'transparent',
|
|
65
|
+
fontSize: '1rem',
|
|
66
|
+
fontWeight: 500,
|
|
67
|
+
'&.MuiPaginationItem-textPrimary': getColorStyle({
|
|
68
|
+
variant: 'text',
|
|
69
|
+
color: 'primary',
|
|
70
|
+
theme,
|
|
71
|
+
}),
|
|
72
|
+
'&.MuiPaginationItem-textSecondary': getColorStyle({
|
|
73
|
+
variant: 'text',
|
|
74
|
+
color: 'secondary',
|
|
75
|
+
theme,
|
|
76
|
+
}),
|
|
77
|
+
'&.MuiPaginationItem-textError': getColorStyle({
|
|
78
|
+
variant: 'text',
|
|
79
|
+
color: 'error',
|
|
80
|
+
theme,
|
|
81
|
+
}),
|
|
82
|
+
'&.MuiPaginationItem-textSuccess': getColorStyle({
|
|
83
|
+
variant: 'text',
|
|
84
|
+
color: 'success',
|
|
85
|
+
theme,
|
|
86
|
+
}),
|
|
87
|
+
'&.MuiPaginationItem-textInfo': getColorStyle({
|
|
88
|
+
variant: 'text',
|
|
89
|
+
color: 'info',
|
|
90
|
+
theme,
|
|
91
|
+
}),
|
|
92
|
+
'&.MuiPaginationItem-textWarning': getColorStyle({
|
|
93
|
+
variant: 'text',
|
|
94
|
+
color: 'warning',
|
|
95
|
+
theme,
|
|
96
|
+
}),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
contained: {
|
|
100
|
+
'&.Mui-selected': {
|
|
101
|
+
'&.MuiPaginationItem-containedPrimary': getColorStyle({
|
|
102
|
+
variant: 'contained',
|
|
103
|
+
color: 'primary',
|
|
104
|
+
theme,
|
|
105
|
+
}),
|
|
106
|
+
'&.MuiPaginationItem-containedSecondary': getColorStyle({
|
|
107
|
+
variant: 'contained',
|
|
108
|
+
color: 'secondary',
|
|
109
|
+
theme,
|
|
110
|
+
}),
|
|
111
|
+
'&.MuiPaginationItem-containedError': getColorStyle({
|
|
112
|
+
variant: 'contained',
|
|
113
|
+
color: 'error',
|
|
114
|
+
theme,
|
|
115
|
+
}),
|
|
116
|
+
'&.MuiPaginationItem-containedSuccess': getColorStyle({
|
|
117
|
+
variant: 'contained',
|
|
118
|
+
color: 'success',
|
|
119
|
+
theme,
|
|
120
|
+
}),
|
|
121
|
+
'&.MuiPaginationItem-containedInfo': getColorStyle({
|
|
122
|
+
variant: 'contained',
|
|
123
|
+
color: 'info',
|
|
124
|
+
theme,
|
|
125
|
+
}),
|
|
126
|
+
'&.MuiPaginationItem-containedWarning': getColorStyle({
|
|
127
|
+
variant: 'contained',
|
|
128
|
+
color: 'warning',
|
|
129
|
+
theme,
|
|
130
|
+
}),
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
combined: {
|
|
134
|
+
border: '1px solid',
|
|
135
|
+
borderColor: theme.palette.divider,
|
|
136
|
+
'&.MuiPaginationItem-ellipsis': {
|
|
137
|
+
border: 'none',
|
|
138
|
+
},
|
|
139
|
+
'&.Mui-selected': {
|
|
140
|
+
'&.MuiPaginationItem-combinedPrimary': getColorStyle({
|
|
141
|
+
variant: 'combined',
|
|
142
|
+
color: 'primary',
|
|
143
|
+
theme,
|
|
144
|
+
}),
|
|
145
|
+
'&.MuiPaginationItem-combinedSecondary': getColorStyle({
|
|
146
|
+
variant: 'combined',
|
|
147
|
+
color: 'secondary',
|
|
148
|
+
theme,
|
|
149
|
+
}),
|
|
150
|
+
'&.MuiPaginationItem-combinedError': getColorStyle({
|
|
151
|
+
variant: 'combined',
|
|
152
|
+
color: 'error',
|
|
153
|
+
theme,
|
|
154
|
+
}),
|
|
155
|
+
'&.MuiPaginationItem-combinedSuccess': getColorStyle({
|
|
156
|
+
variant: 'combined',
|
|
157
|
+
color: 'success',
|
|
158
|
+
theme,
|
|
159
|
+
}),
|
|
160
|
+
'&.MuiPaginationItem-combinedInfo': getColorStyle({
|
|
161
|
+
variant: 'combined',
|
|
162
|
+
color: 'info',
|
|
163
|
+
theme,
|
|
164
|
+
}),
|
|
165
|
+
'&.MuiPaginationItem-combinedWarning': getColorStyle({
|
|
166
|
+
variant: 'combined',
|
|
167
|
+
color: 'warning',
|
|
168
|
+
theme,
|
|
169
|
+
}),
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
outlined: {
|
|
173
|
+
borderColor: theme.palette.divider,
|
|
174
|
+
'&.Mui-selected': {
|
|
175
|
+
backgroundColor: 'transparent',
|
|
176
|
+
'&.MuiPaginationItem-outlinedPrimary': getColorStyle({
|
|
177
|
+
variant: 'outlined',
|
|
178
|
+
color: 'primary',
|
|
179
|
+
theme,
|
|
180
|
+
}),
|
|
181
|
+
'&.MuiPaginationItem-outlinedSecondary': getColorStyle({
|
|
182
|
+
variant: 'outlined',
|
|
183
|
+
color: 'secondary',
|
|
184
|
+
theme,
|
|
185
|
+
}),
|
|
186
|
+
'&.MuiPaginationItem-outlinedError': getColorStyle({
|
|
187
|
+
variant: 'outlined',
|
|
188
|
+
color: 'error',
|
|
189
|
+
theme,
|
|
190
|
+
}),
|
|
191
|
+
'&.MuiPaginationItem-outlinedSuccess': getColorStyle({
|
|
192
|
+
variant: 'outlined',
|
|
193
|
+
color: 'success',
|
|
194
|
+
theme,
|
|
195
|
+
}),
|
|
196
|
+
'&.MuiPaginationItem-outlinedInfo': getColorStyle({
|
|
197
|
+
variant: 'outlined',
|
|
198
|
+
color: 'info',
|
|
199
|
+
theme,
|
|
200
|
+
}),
|
|
201
|
+
'&.MuiPaginationItem-outlinedWarning': getColorStyle({
|
|
202
|
+
variant: 'outlined',
|
|
203
|
+
color: 'warning',
|
|
204
|
+
theme,
|
|
205
|
+
}),
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// ==============================|| OVERRIDES - DIALOG CONTENT TEXT ||============================== //
|
|
2
|
+
|
|
3
|
+
export default function Popover(theme) {
|
|
4
|
+
return {
|
|
5
|
+
MuiPopover: {
|
|
6
|
+
styleOverrides: {
|
|
7
|
+
paper: {
|
|
8
|
+
boxShadow: theme.customShadows.z1,
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { Box } from '@mui/material'
|
|
2
|
+
import getColors from '../getColors'
|
|
3
|
+
|
|
4
|
+
function getColorStyle({ color, theme }) {
|
|
5
|
+
const colors = getColors(theme, color)
|
|
6
|
+
const { lighter, main, dark } = colors
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
'& .dot': {
|
|
10
|
+
backgroundColor: main,
|
|
11
|
+
},
|
|
12
|
+
'&:hover': {
|
|
13
|
+
backgroundColor: lighter,
|
|
14
|
+
},
|
|
15
|
+
'&.Mui-focusVisible': {
|
|
16
|
+
outline: `2px solid ${dark}`,
|
|
17
|
+
outlineOffset: -4,
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function getSizeStyle(size) {
|
|
23
|
+
switch (size) {
|
|
24
|
+
case 'small':
|
|
25
|
+
return { size: 16, dotSize: 8, position: 3 }
|
|
26
|
+
case 'large':
|
|
27
|
+
return { size: 24, dotSize: 12, position: 5 }
|
|
28
|
+
case 'medium':
|
|
29
|
+
default:
|
|
30
|
+
return { size: 20, dotSize: 10, position: 4 }
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function radioStyle(size) {
|
|
35
|
+
const sizes = getSizeStyle(size)
|
|
36
|
+
|
|
37
|
+
return {
|
|
38
|
+
'& .icon': {
|
|
39
|
+
width: sizes.size,
|
|
40
|
+
height: sizes.size,
|
|
41
|
+
'& .dot': {
|
|
42
|
+
width: sizes.dotSize,
|
|
43
|
+
height: sizes.dotSize,
|
|
44
|
+
top: sizes.position,
|
|
45
|
+
left: sizes.position,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ==============================|| OVERRIDES - CHECKBOX ||============================== //
|
|
52
|
+
|
|
53
|
+
export default function Radio(theme) {
|
|
54
|
+
const { palette } = theme
|
|
55
|
+
|
|
56
|
+
return {
|
|
57
|
+
MuiRadio: {
|
|
58
|
+
defaultProps: {
|
|
59
|
+
className: 'size-small',
|
|
60
|
+
icon: (
|
|
61
|
+
<Box
|
|
62
|
+
className="icon"
|
|
63
|
+
sx={{
|
|
64
|
+
width: 16,
|
|
65
|
+
height: 16,
|
|
66
|
+
border: '1px solid',
|
|
67
|
+
borderColor: 'inherit',
|
|
68
|
+
borderRadius: '50%',
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
71
|
+
),
|
|
72
|
+
checkedIcon: (
|
|
73
|
+
<Box
|
|
74
|
+
className="icon"
|
|
75
|
+
sx={{
|
|
76
|
+
width: 16,
|
|
77
|
+
height: 16,
|
|
78
|
+
border: '1px solid',
|
|
79
|
+
borderColor: 'inherit',
|
|
80
|
+
borderRadius: '50%',
|
|
81
|
+
position: 'relative',
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
<Box
|
|
85
|
+
className="dot"
|
|
86
|
+
sx={{
|
|
87
|
+
width: 8,
|
|
88
|
+
height: 8,
|
|
89
|
+
backgroundColor: 'inherit',
|
|
90
|
+
borderRadius: '50%',
|
|
91
|
+
position: 'absolute',
|
|
92
|
+
top: 3,
|
|
93
|
+
left: 3,
|
|
94
|
+
}}
|
|
95
|
+
/>
|
|
96
|
+
</Box>
|
|
97
|
+
),
|
|
98
|
+
},
|
|
99
|
+
styleOverrides: {
|
|
100
|
+
root: {
|
|
101
|
+
color: palette.secondary[300],
|
|
102
|
+
'&.size-small': {
|
|
103
|
+
...radioStyle('small'),
|
|
104
|
+
},
|
|
105
|
+
'&.size-medium': {
|
|
106
|
+
...radioStyle('medium'),
|
|
107
|
+
},
|
|
108
|
+
'&.size-large': {
|
|
109
|
+
...radioStyle('large'),
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
colorPrimary: getColorStyle({ color: 'primary', theme }),
|
|
113
|
+
colorSecondary: getColorStyle({ color: 'secondary', theme }),
|
|
114
|
+
colorSuccess: getColorStyle({ color: 'success', theme }),
|
|
115
|
+
colorWarning: getColorStyle({ color: 'warning', theme }),
|
|
116
|
+
colorInfo: getColorStyle({ color: 'info', theme }),
|
|
117
|
+
colorError: getColorStyle({ color: 'error', theme }),
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
}
|
|
121
|
+
}
|