@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,98 @@
|
|
|
1
|
+
import PropTypes from 'prop-types'
|
|
2
|
+
|
|
3
|
+
// ==============================|| PRESET THEME - DEFAULT ||============================== //
|
|
4
|
+
|
|
5
|
+
const Default = (colors) => {
|
|
6
|
+
const { blue, red, gold, cyan, green, grey } = colors
|
|
7
|
+
const greyColors = {
|
|
8
|
+
0: grey[0],
|
|
9
|
+
50: grey[1],
|
|
10
|
+
100: grey[2],
|
|
11
|
+
200: grey[3],
|
|
12
|
+
300: grey[4],
|
|
13
|
+
400: grey[5],
|
|
14
|
+
500: grey[6],
|
|
15
|
+
600: grey[7],
|
|
16
|
+
700: grey[8],
|
|
17
|
+
800: grey[9],
|
|
18
|
+
900: grey[10],
|
|
19
|
+
A50: grey[15],
|
|
20
|
+
A100: grey[11],
|
|
21
|
+
A200: grey[12],
|
|
22
|
+
A400: grey[13],
|
|
23
|
+
A700: grey[14],
|
|
24
|
+
A800: grey[16],
|
|
25
|
+
}
|
|
26
|
+
const contrastText = '#fff'
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
primary: {
|
|
30
|
+
lighter: blue[0],
|
|
31
|
+
100: blue[1],
|
|
32
|
+
200: blue[2],
|
|
33
|
+
light: blue[3],
|
|
34
|
+
400: blue[4],
|
|
35
|
+
main: blue[5],
|
|
36
|
+
dark: blue[6],
|
|
37
|
+
700: blue[7],
|
|
38
|
+
darker: blue[8],
|
|
39
|
+
900: blue[9],
|
|
40
|
+
contrastText,
|
|
41
|
+
},
|
|
42
|
+
secondary: {
|
|
43
|
+
lighter: greyColors[100],
|
|
44
|
+
100: greyColors[100],
|
|
45
|
+
200: greyColors[200],
|
|
46
|
+
light: greyColors[300],
|
|
47
|
+
400: greyColors[400],
|
|
48
|
+
main: greyColors[500],
|
|
49
|
+
600: greyColors[600],
|
|
50
|
+
dark: greyColors[700],
|
|
51
|
+
800: greyColors[800],
|
|
52
|
+
darker: greyColors[900],
|
|
53
|
+
A100: greyColors[0],
|
|
54
|
+
A200: greyColors.A400,
|
|
55
|
+
A300: greyColors.A700,
|
|
56
|
+
contrastText: greyColors[0],
|
|
57
|
+
},
|
|
58
|
+
error: {
|
|
59
|
+
lighter: red[0],
|
|
60
|
+
light: red[2],
|
|
61
|
+
main: red[4],
|
|
62
|
+
dark: red[7],
|
|
63
|
+
darker: red[9],
|
|
64
|
+
contrastText,
|
|
65
|
+
},
|
|
66
|
+
warning: {
|
|
67
|
+
lighter: gold[0],
|
|
68
|
+
light: gold[3],
|
|
69
|
+
main: gold[5],
|
|
70
|
+
dark: gold[7],
|
|
71
|
+
darker: gold[9],
|
|
72
|
+
contrastText: greyColors[100],
|
|
73
|
+
},
|
|
74
|
+
info: {
|
|
75
|
+
lighter: cyan[0],
|
|
76
|
+
light: cyan[3],
|
|
77
|
+
main: cyan[5],
|
|
78
|
+
dark: cyan[7],
|
|
79
|
+
darker: cyan[9],
|
|
80
|
+
contrastText,
|
|
81
|
+
},
|
|
82
|
+
success: {
|
|
83
|
+
lighter: green[0],
|
|
84
|
+
light: green[3],
|
|
85
|
+
main: green[5],
|
|
86
|
+
dark: green[7],
|
|
87
|
+
darker: green[9],
|
|
88
|
+
contrastText,
|
|
89
|
+
},
|
|
90
|
+
grey: greyColors,
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
Default.propTypes = {
|
|
95
|
+
colors: PropTypes.object,
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default Default
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import PropTypes from 'prop-types'
|
|
2
|
+
|
|
3
|
+
// project import
|
|
4
|
+
import Default from './default'
|
|
5
|
+
import Theme1 from './theme1'
|
|
6
|
+
import Theme2 from './theme2'
|
|
7
|
+
import Theme3 from './theme3'
|
|
8
|
+
import Theme4 from './theme4'
|
|
9
|
+
import Theme5 from './theme5'
|
|
10
|
+
import Theme6 from './theme6'
|
|
11
|
+
import Theme7 from './theme7'
|
|
12
|
+
import Theme8 from './theme8'
|
|
13
|
+
|
|
14
|
+
// ==============================|| PRESET THEME - THEME SELECTOR ||============================== //
|
|
15
|
+
|
|
16
|
+
const Theme = (colors, presetColor, mode) => {
|
|
17
|
+
switch (presetColor) {
|
|
18
|
+
case 'theme1':
|
|
19
|
+
return Theme1(colors, mode)
|
|
20
|
+
case 'theme2':
|
|
21
|
+
return Theme2(colors, mode)
|
|
22
|
+
case 'theme3':
|
|
23
|
+
return Theme3(colors, mode)
|
|
24
|
+
case 'theme4':
|
|
25
|
+
return Theme4(colors, mode)
|
|
26
|
+
case 'theme5':
|
|
27
|
+
return Theme5(colors, mode)
|
|
28
|
+
case 'theme6':
|
|
29
|
+
return Theme6(colors, mode)
|
|
30
|
+
case 'theme7':
|
|
31
|
+
return Theme7(colors, mode)
|
|
32
|
+
case 'theme8':
|
|
33
|
+
return Theme8(colors, mode)
|
|
34
|
+
default:
|
|
35
|
+
return Default(colors)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Theme.propTypes = {
|
|
40
|
+
colors: PropTypes.object,
|
|
41
|
+
presetColor: PropTypes.any,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default Theme
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// ==============================|| PRESET THEME - Eva Design ||============================== //
|
|
2
|
+
|
|
3
|
+
const Theme1 = (colors, mode) => {
|
|
4
|
+
const { grey } = colors
|
|
5
|
+
const greyColors = {
|
|
6
|
+
0: grey[0],
|
|
7
|
+
50: grey[1],
|
|
8
|
+
100: grey[2],
|
|
9
|
+
200: grey[3],
|
|
10
|
+
300: grey[4],
|
|
11
|
+
400: grey[5],
|
|
12
|
+
500: grey[6],
|
|
13
|
+
600: grey[7],
|
|
14
|
+
700: grey[8],
|
|
15
|
+
800: grey[9],
|
|
16
|
+
900: grey[10],
|
|
17
|
+
A50: grey[15],
|
|
18
|
+
A100: grey[11],
|
|
19
|
+
A200: grey[12],
|
|
20
|
+
A400: grey[13],
|
|
21
|
+
A700: grey[14],
|
|
22
|
+
A800: grey[16],
|
|
23
|
+
}
|
|
24
|
+
const contrastText = '#fff'
|
|
25
|
+
|
|
26
|
+
let primaryColors = [
|
|
27
|
+
'#D6E4FF',
|
|
28
|
+
'#D6E4FF',
|
|
29
|
+
'#ADC8FF',
|
|
30
|
+
'#84A9FF',
|
|
31
|
+
'#6690FF',
|
|
32
|
+
'#3366FF',
|
|
33
|
+
'#254EDB',
|
|
34
|
+
'#1939B7',
|
|
35
|
+
'#102693',
|
|
36
|
+
'#102693',
|
|
37
|
+
]
|
|
38
|
+
let errorColors = ['#FFE7D3', '#FF805D', '#FF4528', '#DB271D', '#930C1A']
|
|
39
|
+
let warningColors = ['#FFF6D0', '#FFCF4E', '#FFB814', '#DB970E', '#935B06']
|
|
40
|
+
let infoColors = ['#DCF0FF', '#7EB9FF', '#549BFF', '#3D78DB', '#1A3D93']
|
|
41
|
+
let successColors = ['#EAFCD4', '#8AE65B', '#58D62A', '#3DB81E', '#137C0D']
|
|
42
|
+
|
|
43
|
+
if (mode === 'dark') {
|
|
44
|
+
primaryColors = [
|
|
45
|
+
'#1c2134',
|
|
46
|
+
'#1f294d',
|
|
47
|
+
'#243462',
|
|
48
|
+
'#273e83',
|
|
49
|
+
'#2c4db0',
|
|
50
|
+
'#305bdd',
|
|
51
|
+
'#567fe9',
|
|
52
|
+
'#80a4f4',
|
|
53
|
+
'#a9c5f8',
|
|
54
|
+
'#d2e2fb',
|
|
55
|
+
]
|
|
56
|
+
errorColors = ['#341d1b', '#b03725', '#dd3f27', '#e9664d', '#fbd6c9']
|
|
57
|
+
warningColors = ['#342a1a', '#83631a', '#dda116', '#e9ba3a', '#fbefb5']
|
|
58
|
+
infoColors = ['#202734', '#416fb0', '#4c88dd', '#74a8e9', '#ecf4fb']
|
|
59
|
+
successColors = ['#1f2e1c', '#449626', '#4fba28', '#74cf4d', '#e3fbd2']
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
primary: {
|
|
64
|
+
lighter: primaryColors[0],
|
|
65
|
+
100: primaryColors[1],
|
|
66
|
+
200: primaryColors[2],
|
|
67
|
+
light: primaryColors[3],
|
|
68
|
+
400: primaryColors[4],
|
|
69
|
+
main: primaryColors[5],
|
|
70
|
+
dark: primaryColors[6],
|
|
71
|
+
700: primaryColors[7],
|
|
72
|
+
darker: primaryColors[8],
|
|
73
|
+
900: primaryColors[9],
|
|
74
|
+
contrastText,
|
|
75
|
+
},
|
|
76
|
+
secondary: {
|
|
77
|
+
lighter: greyColors[100],
|
|
78
|
+
100: greyColors[100],
|
|
79
|
+
200: greyColors[200],
|
|
80
|
+
light: greyColors[300],
|
|
81
|
+
400: greyColors[400],
|
|
82
|
+
main: greyColors[500],
|
|
83
|
+
600: greyColors[600],
|
|
84
|
+
dark: greyColors[700],
|
|
85
|
+
800: greyColors[800],
|
|
86
|
+
darker: greyColors[900],
|
|
87
|
+
A100: greyColors[0],
|
|
88
|
+
A200: greyColors.A400,
|
|
89
|
+
A300: greyColors.A700,
|
|
90
|
+
contrastText: greyColors[0],
|
|
91
|
+
},
|
|
92
|
+
error: {
|
|
93
|
+
lighter: errorColors[0],
|
|
94
|
+
light: errorColors[1],
|
|
95
|
+
main: errorColors[2],
|
|
96
|
+
dark: errorColors[3],
|
|
97
|
+
darker: errorColors[4],
|
|
98
|
+
contrastText,
|
|
99
|
+
},
|
|
100
|
+
warning: {
|
|
101
|
+
lighter: warningColors[0],
|
|
102
|
+
light: warningColors[1],
|
|
103
|
+
main: warningColors[2],
|
|
104
|
+
dark: warningColors[3],
|
|
105
|
+
darker: warningColors[4],
|
|
106
|
+
contrastText: greyColors[100],
|
|
107
|
+
},
|
|
108
|
+
info: {
|
|
109
|
+
lighter: infoColors[0],
|
|
110
|
+
light: infoColors[1],
|
|
111
|
+
main: infoColors[2],
|
|
112
|
+
dark: infoColors[3],
|
|
113
|
+
darker: infoColors[4],
|
|
114
|
+
contrastText,
|
|
115
|
+
},
|
|
116
|
+
success: {
|
|
117
|
+
lighter: successColors[0],
|
|
118
|
+
light: successColors[1],
|
|
119
|
+
main: successColors[2],
|
|
120
|
+
dark: successColors[3],
|
|
121
|
+
darker: successColors[4],
|
|
122
|
+
contrastText,
|
|
123
|
+
},
|
|
124
|
+
grey: greyColors,
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export default Theme1
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// ==============================|| PRESET THEME - DEFAULT ||============================== //
|
|
2
|
+
|
|
3
|
+
const Theme2 = (colors, mode) => {
|
|
4
|
+
const { grey } = colors
|
|
5
|
+
const greyColors = {
|
|
6
|
+
0: grey[0],
|
|
7
|
+
50: grey[1],
|
|
8
|
+
100: grey[2],
|
|
9
|
+
200: grey[3],
|
|
10
|
+
300: grey[4],
|
|
11
|
+
400: grey[5],
|
|
12
|
+
500: grey[6],
|
|
13
|
+
600: grey[7],
|
|
14
|
+
700: grey[8],
|
|
15
|
+
800: grey[9],
|
|
16
|
+
900: grey[10],
|
|
17
|
+
A50: grey[15],
|
|
18
|
+
A100: grey[11],
|
|
19
|
+
A200: grey[12],
|
|
20
|
+
A400: grey[13],
|
|
21
|
+
A700: grey[14],
|
|
22
|
+
A800: grey[16],
|
|
23
|
+
}
|
|
24
|
+
const contrastText = '#fff'
|
|
25
|
+
|
|
26
|
+
let primaryColors = [
|
|
27
|
+
'#EEEDFC',
|
|
28
|
+
'#D5D1F8',
|
|
29
|
+
'#B9B2F3',
|
|
30
|
+
'#9C93EE',
|
|
31
|
+
'#877CEA',
|
|
32
|
+
'#7265E6',
|
|
33
|
+
'#6A5DE3',
|
|
34
|
+
'#5F53DF',
|
|
35
|
+
'#5549DB',
|
|
36
|
+
'#4237D5',
|
|
37
|
+
]
|
|
38
|
+
let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21']
|
|
39
|
+
let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900']
|
|
40
|
+
let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694']
|
|
41
|
+
let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A']
|
|
42
|
+
|
|
43
|
+
if (mode === 'dark') {
|
|
44
|
+
primaryColors = [
|
|
45
|
+
'#222130',
|
|
46
|
+
'#2b2946',
|
|
47
|
+
'#37335a',
|
|
48
|
+
'#443e78',
|
|
49
|
+
'#554ca0',
|
|
50
|
+
'#655ac8',
|
|
51
|
+
'#9186dd',
|
|
52
|
+
'#5F53DF',
|
|
53
|
+
'#c3baf4',
|
|
54
|
+
'#efecfb',
|
|
55
|
+
]
|
|
56
|
+
errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf']
|
|
57
|
+
warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577']
|
|
58
|
+
infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb']
|
|
59
|
+
successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b']
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
primary: {
|
|
64
|
+
lighter: primaryColors[0],
|
|
65
|
+
100: primaryColors[1],
|
|
66
|
+
200: primaryColors[2],
|
|
67
|
+
light: primaryColors[3],
|
|
68
|
+
400: primaryColors[4],
|
|
69
|
+
main: primaryColors[5],
|
|
70
|
+
dark: primaryColors[6],
|
|
71
|
+
700: primaryColors[7],
|
|
72
|
+
darker: primaryColors[8],
|
|
73
|
+
900: primaryColors[9],
|
|
74
|
+
contrastText,
|
|
75
|
+
},
|
|
76
|
+
secondary: {
|
|
77
|
+
lighter: greyColors[100],
|
|
78
|
+
100: greyColors[100],
|
|
79
|
+
200: greyColors[200],
|
|
80
|
+
light: greyColors[300],
|
|
81
|
+
400: greyColors[400],
|
|
82
|
+
main: greyColors[500],
|
|
83
|
+
600: greyColors[600],
|
|
84
|
+
dark: greyColors[700],
|
|
85
|
+
800: greyColors[800],
|
|
86
|
+
darker: greyColors[900],
|
|
87
|
+
A100: greyColors[0],
|
|
88
|
+
A200: greyColors.A400,
|
|
89
|
+
A300: greyColors.A700,
|
|
90
|
+
contrastText: greyColors[0],
|
|
91
|
+
},
|
|
92
|
+
error: {
|
|
93
|
+
lighter: errorColors[0],
|
|
94
|
+
light: errorColors[1],
|
|
95
|
+
main: errorColors[2],
|
|
96
|
+
dark: errorColors[3],
|
|
97
|
+
darker: errorColors[4],
|
|
98
|
+
contrastText,
|
|
99
|
+
},
|
|
100
|
+
warning: {
|
|
101
|
+
lighter: warningColors[0],
|
|
102
|
+
light: warningColors[1],
|
|
103
|
+
main: warningColors[2],
|
|
104
|
+
dark: warningColors[3],
|
|
105
|
+
darker: warningColors[4],
|
|
106
|
+
contrastText: greyColors[100],
|
|
107
|
+
},
|
|
108
|
+
info: {
|
|
109
|
+
lighter: infoColors[0],
|
|
110
|
+
light: infoColors[1],
|
|
111
|
+
main: infoColors[2],
|
|
112
|
+
dark: infoColors[3],
|
|
113
|
+
darker: infoColors[4],
|
|
114
|
+
contrastText,
|
|
115
|
+
},
|
|
116
|
+
success: {
|
|
117
|
+
lighter: successColors[0],
|
|
118
|
+
light: successColors[1],
|
|
119
|
+
main: successColors[2],
|
|
120
|
+
dark: successColors[3],
|
|
121
|
+
darker: successColors[4],
|
|
122
|
+
contrastText,
|
|
123
|
+
},
|
|
124
|
+
grey: greyColors,
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export default Theme2
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// ==============================|| PRESET THEME - Dark Green ||============================== //
|
|
2
|
+
|
|
3
|
+
const Theme4 = (colors, mode) => {
|
|
4
|
+
const { grey } = colors
|
|
5
|
+
const greyColors = {
|
|
6
|
+
0: grey[0],
|
|
7
|
+
50: grey[1],
|
|
8
|
+
100: grey[2],
|
|
9
|
+
200: grey[3],
|
|
10
|
+
300: grey[4],
|
|
11
|
+
400: grey[5],
|
|
12
|
+
500: grey[6],
|
|
13
|
+
600: grey[7],
|
|
14
|
+
700: grey[8],
|
|
15
|
+
800: grey[9],
|
|
16
|
+
900: grey[10],
|
|
17
|
+
A50: grey[15],
|
|
18
|
+
A100: grey[11],
|
|
19
|
+
A200: grey[12],
|
|
20
|
+
A400: grey[13],
|
|
21
|
+
A700: grey[14],
|
|
22
|
+
A800: grey[16],
|
|
23
|
+
}
|
|
24
|
+
const contrastText = '#fff'
|
|
25
|
+
|
|
26
|
+
let primaryColors = [
|
|
27
|
+
'#E6F3EC',
|
|
28
|
+
'#84c297',
|
|
29
|
+
'#5eb57d',
|
|
30
|
+
'#3da866',
|
|
31
|
+
'#1f9c53',
|
|
32
|
+
'#068e44',
|
|
33
|
+
'#006933',
|
|
34
|
+
'#004222',
|
|
35
|
+
'#001c0f',
|
|
36
|
+
'#000000',
|
|
37
|
+
]
|
|
38
|
+
let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21']
|
|
39
|
+
let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900']
|
|
40
|
+
let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694']
|
|
41
|
+
let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A']
|
|
42
|
+
|
|
43
|
+
if (mode === 'dark') {
|
|
44
|
+
primaryColors = [
|
|
45
|
+
'#1a231f',
|
|
46
|
+
'#173123',
|
|
47
|
+
'#174029',
|
|
48
|
+
'#13502f',
|
|
49
|
+
'#0e6737',
|
|
50
|
+
'#0a7d3e',
|
|
51
|
+
'#1f8f4e',
|
|
52
|
+
'#3ba162',
|
|
53
|
+
'#5cb07a',
|
|
54
|
+
'#82bf95',
|
|
55
|
+
]
|
|
56
|
+
errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf']
|
|
57
|
+
warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577']
|
|
58
|
+
infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb']
|
|
59
|
+
successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b']
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
primary: {
|
|
64
|
+
lighter: primaryColors[0],
|
|
65
|
+
100: primaryColors[1],
|
|
66
|
+
200: primaryColors[2],
|
|
67
|
+
light: primaryColors[3],
|
|
68
|
+
400: primaryColors[4],
|
|
69
|
+
main: primaryColors[5],
|
|
70
|
+
dark: primaryColors[6],
|
|
71
|
+
700: primaryColors[7],
|
|
72
|
+
darker: primaryColors[8],
|
|
73
|
+
900: primaryColors[9],
|
|
74
|
+
contrastText,
|
|
75
|
+
},
|
|
76
|
+
secondary: {
|
|
77
|
+
lighter: greyColors[100],
|
|
78
|
+
100: greyColors[100],
|
|
79
|
+
200: greyColors[200],
|
|
80
|
+
light: greyColors[300],
|
|
81
|
+
400: greyColors[400],
|
|
82
|
+
main: greyColors[500],
|
|
83
|
+
600: greyColors[600],
|
|
84
|
+
dark: greyColors[700],
|
|
85
|
+
800: greyColors[800],
|
|
86
|
+
darker: greyColors[900],
|
|
87
|
+
A100: greyColors[0],
|
|
88
|
+
A200: greyColors.A400,
|
|
89
|
+
A300: greyColors.A700,
|
|
90
|
+
contrastText: greyColors[0],
|
|
91
|
+
},
|
|
92
|
+
error: {
|
|
93
|
+
lighter: errorColors[0],
|
|
94
|
+
light: errorColors[1],
|
|
95
|
+
main: errorColors[2],
|
|
96
|
+
dark: errorColors[3],
|
|
97
|
+
darker: errorColors[4],
|
|
98
|
+
contrastText,
|
|
99
|
+
},
|
|
100
|
+
warning: {
|
|
101
|
+
lighter: warningColors[0],
|
|
102
|
+
light: warningColors[1],
|
|
103
|
+
main: warningColors[2],
|
|
104
|
+
dark: warningColors[3],
|
|
105
|
+
darker: warningColors[4],
|
|
106
|
+
contrastText: greyColors[100],
|
|
107
|
+
},
|
|
108
|
+
info: {
|
|
109
|
+
lighter: infoColors[0],
|
|
110
|
+
light: infoColors[1],
|
|
111
|
+
main: infoColors[2],
|
|
112
|
+
dark: infoColors[3],
|
|
113
|
+
darker: infoColors[4],
|
|
114
|
+
contrastText,
|
|
115
|
+
},
|
|
116
|
+
success: {
|
|
117
|
+
lighter: successColors[0],
|
|
118
|
+
light: successColors[1],
|
|
119
|
+
main: successColors[2],
|
|
120
|
+
dark: successColors[3],
|
|
121
|
+
darker: successColors[4],
|
|
122
|
+
contrastText,
|
|
123
|
+
},
|
|
124
|
+
grey: greyColors,
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export default Theme4
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// ==============================|| PRESET THEME - Theme4 Blue ||============================== //
|
|
2
|
+
|
|
3
|
+
const Theme4 = (colors, mode) => {
|
|
4
|
+
const { grey } = colors
|
|
5
|
+
const greyColors = {
|
|
6
|
+
0: grey[0],
|
|
7
|
+
50: grey[1],
|
|
8
|
+
100: grey[2],
|
|
9
|
+
200: grey[3],
|
|
10
|
+
300: grey[4],
|
|
11
|
+
400: grey[5],
|
|
12
|
+
500: grey[6],
|
|
13
|
+
600: grey[7],
|
|
14
|
+
700: grey[8],
|
|
15
|
+
800: grey[9],
|
|
16
|
+
900: grey[10],
|
|
17
|
+
A50: grey[15],
|
|
18
|
+
A100: grey[11],
|
|
19
|
+
A200: grey[12],
|
|
20
|
+
A400: grey[13],
|
|
21
|
+
A700: grey[14],
|
|
22
|
+
A800: grey[16],
|
|
23
|
+
}
|
|
24
|
+
const contrastText = '#fff'
|
|
25
|
+
|
|
26
|
+
let primaryColors = [
|
|
27
|
+
'#f0f6ff',
|
|
28
|
+
'#edf4ff',
|
|
29
|
+
'#bed3f7',
|
|
30
|
+
'#8faeeb',
|
|
31
|
+
'#6488de',
|
|
32
|
+
'#3c64d0',
|
|
33
|
+
'#2947ab',
|
|
34
|
+
'#192f85',
|
|
35
|
+
'#0d1b5e',
|
|
36
|
+
'#070e38',
|
|
37
|
+
]
|
|
38
|
+
let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21']
|
|
39
|
+
let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900']
|
|
40
|
+
let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694']
|
|
41
|
+
let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A']
|
|
42
|
+
|
|
43
|
+
if (mode === 'dark') {
|
|
44
|
+
primaryColors = [
|
|
45
|
+
'#1d212d',
|
|
46
|
+
'#212841',
|
|
47
|
+
'#273353',
|
|
48
|
+
'#2c3e6e',
|
|
49
|
+
'#324c92',
|
|
50
|
+
'#385ab5',
|
|
51
|
+
'#5d7dcb',
|
|
52
|
+
'#89a7e1',
|
|
53
|
+
'#b9cef0',
|
|
54
|
+
'#e9f0fb',
|
|
55
|
+
]
|
|
56
|
+
errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf']
|
|
57
|
+
warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577']
|
|
58
|
+
infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb']
|
|
59
|
+
successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b']
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return {
|
|
63
|
+
primary: {
|
|
64
|
+
lighter: primaryColors[0],
|
|
65
|
+
100: primaryColors[1],
|
|
66
|
+
200: primaryColors[2],
|
|
67
|
+
light: primaryColors[3],
|
|
68
|
+
400: primaryColors[4],
|
|
69
|
+
main: primaryColors[5],
|
|
70
|
+
dark: primaryColors[6],
|
|
71
|
+
700: primaryColors[7],
|
|
72
|
+
darker: primaryColors[8],
|
|
73
|
+
900: primaryColors[9],
|
|
74
|
+
contrastText,
|
|
75
|
+
},
|
|
76
|
+
secondary: {
|
|
77
|
+
lighter: greyColors[100],
|
|
78
|
+
100: greyColors[100],
|
|
79
|
+
200: greyColors[200],
|
|
80
|
+
light: greyColors[300],
|
|
81
|
+
400: greyColors[400],
|
|
82
|
+
main: greyColors[500],
|
|
83
|
+
600: greyColors[600],
|
|
84
|
+
dark: greyColors[700],
|
|
85
|
+
800: greyColors[800],
|
|
86
|
+
darker: greyColors[900],
|
|
87
|
+
A100: greyColors[0],
|
|
88
|
+
A200: greyColors.A400,
|
|
89
|
+
A300: greyColors.A700,
|
|
90
|
+
contrastText: greyColors[0],
|
|
91
|
+
},
|
|
92
|
+
error: {
|
|
93
|
+
lighter: errorColors[0],
|
|
94
|
+
light: errorColors[1],
|
|
95
|
+
main: errorColors[2],
|
|
96
|
+
dark: errorColors[3],
|
|
97
|
+
darker: errorColors[4],
|
|
98
|
+
contrastText,
|
|
99
|
+
},
|
|
100
|
+
warning: {
|
|
101
|
+
lighter: warningColors[0],
|
|
102
|
+
light: warningColors[1],
|
|
103
|
+
main: warningColors[2],
|
|
104
|
+
dark: warningColors[3],
|
|
105
|
+
darker: warningColors[4],
|
|
106
|
+
contrastText: greyColors[100],
|
|
107
|
+
},
|
|
108
|
+
info: {
|
|
109
|
+
lighter: infoColors[0],
|
|
110
|
+
light: infoColors[1],
|
|
111
|
+
main: infoColors[2],
|
|
112
|
+
dark: infoColors[3],
|
|
113
|
+
darker: infoColors[4],
|
|
114
|
+
contrastText,
|
|
115
|
+
},
|
|
116
|
+
success: {
|
|
117
|
+
lighter: successColors[0],
|
|
118
|
+
light: successColors[1],
|
|
119
|
+
main: successColors[2],
|
|
120
|
+
dark: successColors[3],
|
|
121
|
+
darker: successColors[4],
|
|
122
|
+
contrastText,
|
|
123
|
+
},
|
|
124
|
+
grey: greyColors,
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export default Theme4
|