@applica-software-guru/react-admin 1.0.41 → 1.0.43

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.
Files changed (253) hide show
  1. package/bitbucket-pipelines.yml +2 -0
  2. package/dist/ApplicaAdmin.d.ts.map +1 -1
  3. package/dist/components/@extended/AnimateButton.d.ts +1 -1
  4. package/dist/components/@extended/AnimateButton.d.ts.map +1 -1
  5. package/dist/components/@extended/Avatar.d.ts.map +1 -1
  6. package/dist/components/@extended/Breadcrumbs.d.ts.map +1 -1
  7. package/dist/components/@extended/IconButton.d.ts.map +1 -1
  8. package/dist/components/@extended/LoadingButton.d.ts.map +1 -1
  9. package/dist/components/@extended/Tooltip.d.ts.map +1 -1
  10. package/dist/components/@extended/Transitions.d.ts.map +1 -1
  11. package/dist/components/@extended/progress/CircularWithLabel.d.ts.map +1 -1
  12. package/dist/components/@extended/progress/CircularWithPath.d.ts.map +1 -1
  13. package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavCollapse.d.ts +1 -1
  14. package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavCollapse.d.ts.map +1 -1
  15. package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavGroup.d.ts.map +1 -1
  16. package/dist/components/Layout/Drawer/DrawerContent/Navigation/NavItem.d.ts.map +1 -1
  17. package/dist/components/Layout/Drawer/DrawerHeader/DrawerHeaderStyled.d.ts.map +1 -1
  18. package/dist/components/Layout/Drawer/DrawerHeader/index.d.ts.map +1 -1
  19. package/dist/components/Layout/Drawer/MiniDrawerStyled.d.ts.map +1 -1
  20. package/dist/components/Layout/Drawer/index.d.ts.map +1 -1
  21. package/dist/components/Layout/Footer.d.ts.map +1 -1
  22. package/dist/components/Layout/Header/AppBarStyled.d.ts.map +1 -1
  23. package/dist/components/Layout/Header/HeaderContent/Notification.d.ts.map +1 -1
  24. package/dist/components/Layout/Header/HeaderContent/NotificationItem.d.ts.map +1 -1
  25. package/dist/components/Layout/Header/HeaderContent/Profile.d.ts.map +1 -1
  26. package/dist/components/Layout/Header/HeaderContent/index.d.ts.map +1 -1
  27. package/dist/components/Layout/Header/index.d.ts.map +1 -1
  28. package/dist/components/Layout/index.d.ts.map +1 -1
  29. package/dist/components/MenuPopover/styles.d.ts.map +1 -1
  30. package/dist/components/Notification.d.ts.map +1 -1
  31. package/dist/components/ScrollX.d.ts.map +1 -1
  32. package/dist/components/ra-buttons/EditInDialogButton.d.ts.map +1 -1
  33. package/dist/components/ra-fields/CoverField.d.ts.map +1 -1
  34. package/dist/components/ra-fields/DateAgoField.d.ts.map +1 -1
  35. package/dist/components/ra-fields/ReadonlyField.d.ts.map +1 -1
  36. package/dist/components/ra-forms/CardForm.d.ts.map +1 -1
  37. package/dist/components/ra-forms/LongForm/useFormRootPath.d.ts.map +1 -1
  38. package/dist/components/ra-forms/TabbedForm.d.ts.map +1 -1
  39. package/dist/components/ra-inputs/ReferenceManyInput.d.ts.map +1 -1
  40. package/dist/components/ra-lists/Empty.d.ts.map +1 -1
  41. package/dist/components/ra-lists/NotificationList/NotificationList.d.ts.map +1 -1
  42. package/dist/components/ra-lists/NotificationList/button/MarkAsReadedButton.d.ts.map +1 -1
  43. package/dist/components/ra-lists/NotificationList/field/NotificationField.d.ts.map +1 -1
  44. package/dist/contexts/MenuConfigContext.d.ts.map +1 -1
  45. package/dist/contexts/MenuPropTypes.d.ts.map +1 -1
  46. package/dist/dev/useCliErrorCatcher.d.ts +1 -1
  47. package/dist/hooks/useMenu.d.ts.map +1 -1
  48. package/dist/i18n/useI18nCatcher.d.ts +1 -1
  49. package/dist/i18n/useI18nLanguages.d.ts +1 -1
  50. package/dist/i18n/useI18nLanguages.d.ts.map +1 -1
  51. package/dist/i18n/useI18nProvider.d.ts.map +1 -1
  52. package/dist/react-admin.cjs.js +2 -1
  53. package/dist/react-admin.cjs.js.map +1 -0
  54. package/dist/react-admin.es.js +300 -784
  55. package/dist/react-admin.es.js.map +1 -0
  56. package/dist/react-admin.umd.js +2 -1
  57. package/dist/react-admin.umd.js.map +1 -0
  58. package/dist/themes/overrides/OutlinedInput.d.ts.map +1 -1
  59. package/dist/themes/palette.d.ts.map +1 -1
  60. package/dist/themes/theme/theme1.d.ts.map +1 -1
  61. package/dist/themes/theme/theme2.d.ts.map +1 -1
  62. package/dist/themes/theme/theme3.d.ts.map +1 -1
  63. package/dist/themes/theme/theme4.d.ts.map +1 -1
  64. package/dist/themes/theme/theme5.d.ts.map +1 -1
  65. package/dist/themes/theme/theme6.d.ts.map +1 -1
  66. package/dist/themes/theme/theme7.d.ts.map +1 -1
  67. package/dist/themes/theme/theme8.d.ts.map +1 -1
  68. package/dist/utils/index.d.ts +2 -2
  69. package/dist/utils/index.d.ts.map +1 -1
  70. package/dist/utils/lang.d.ts +1 -1
  71. package/dist/utils/lang.d.ts.map +1 -1
  72. package/dist/utils/time.d.ts +2 -1
  73. package/dist/utils/time.d.ts.map +1 -1
  74. package/package.json +2 -2
  75. package/src/Admin.jsx +8 -8
  76. package/src/AdminContext.jsx +9 -9
  77. package/src/ApplicaAdmin.jsx +30 -35
  78. package/src/components/@extended/AnimateButton.jsx +25 -33
  79. package/src/components/@extended/Avatar.jsx +35 -42
  80. package/src/components/@extended/Breadcrumbs.jsx +62 -96
  81. package/src/components/@extended/Dot.jsx +14 -14
  82. package/src/components/@extended/IconButton.jsx +55 -65
  83. package/src/components/@extended/LoadingButton.jsx +84 -86
  84. package/src/components/@extended/Tooltip.jsx +24 -27
  85. package/src/components/@extended/Transitions.jsx +98 -107
  86. package/src/components/@extended/index.jsx +10 -10
  87. package/src/components/@extended/progress/CircularWithLabel.jsx +7 -9
  88. package/src/components/@extended/progress/CircularWithPath.jsx +9 -18
  89. package/src/components/@extended/progress/LinearWithIcon.jsx +5 -5
  90. package/src/components/@extended/progress/LinearWithLabel.jsx +5 -5
  91. package/src/components/@extended/progress/index.jsx +5 -5
  92. package/src/components/Layout/Drawer/DrawerContent/Navigation/NavCollapse.jsx +112 -131
  93. package/src/components/Layout/Drawer/DrawerContent/Navigation/NavGroup.jsx +67 -88
  94. package/src/components/Layout/Drawer/DrawerContent/Navigation/NavItem.jsx +63 -79
  95. package/src/components/Layout/Drawer/DrawerContent/Navigation/index.jsx +28 -28
  96. package/src/components/Layout/Drawer/DrawerContent/index.jsx +7 -7
  97. package/src/components/Layout/Drawer/DrawerHeader/DrawerHeaderStyled.jsx +13 -15
  98. package/src/components/Layout/Drawer/DrawerHeader/index.jsx +17 -22
  99. package/src/components/Layout/Drawer/HorizontalBar.jsx +17 -17
  100. package/src/components/Layout/Drawer/MiniDrawerStyled.jsx +27 -29
  101. package/src/components/Layout/Drawer/index.jsx +21 -24
  102. package/src/components/Layout/Footer.jsx +7 -12
  103. package/src/components/Layout/Header/AppBarStyled.jsx +26 -28
  104. package/src/components/Layout/Header/HeaderContent/MobileSection.jsx +27 -27
  105. package/src/components/Layout/Header/HeaderContent/Notification.jsx +34 -55
  106. package/src/components/Layout/Header/HeaderContent/NotificationItem.jsx +24 -36
  107. package/src/components/Layout/Header/HeaderContent/Profile.jsx +48 -73
  108. package/src/components/Layout/Header/HeaderContent/index.jsx +16 -18
  109. package/src/components/Layout/Header/index.jsx +25 -43
  110. package/src/components/Layout/index.jsx +36 -52
  111. package/src/components/Loadable.jsx +4 -4
  112. package/src/components/Loader.jsx +7 -7
  113. package/src/components/Logo.jsx +14 -14
  114. package/src/components/MainIcon.jsx +6 -6
  115. package/src/components/MenuPopover/MenuPopover.jsx +15 -15
  116. package/src/components/MenuPopover/getPosition.jsx +40 -40
  117. package/src/components/MenuPopover/index.jsx +3 -3
  118. package/src/components/MenuPopover/styles.jsx +20 -20
  119. package/src/components/Notification.jsx +7 -7
  120. package/src/components/ScrollTop.jsx +13 -13
  121. package/src/components/ScrollX.jsx +4 -4
  122. package/src/components/SmallIcon.jsx +6 -6
  123. package/src/components/ra-buttons/EditInDialogButton.jsx +39 -45
  124. package/src/components/ra-buttons/ImpersonateUserButton.jsx +20 -20
  125. package/src/components/ra-buttons/index.jsx +4 -4
  126. package/src/components/ra-fields/ActionsField.jsx +12 -12
  127. package/src/components/ra-fields/CoverField.jsx +20 -26
  128. package/src/components/ra-fields/DateAgoField.jsx +17 -20
  129. package/src/components/ra-fields/DateField.jsx +14 -14
  130. package/src/components/ra-fields/EmailField.jsx +14 -14
  131. package/src/components/ra-fields/FileField.jsx +23 -23
  132. package/src/components/ra-fields/FunctionField.jsx +5 -5
  133. package/src/components/ra-fields/ImageField.jsx +11 -11
  134. package/src/components/ra-fields/ReadonlyField.jsx +40 -42
  135. package/src/components/ra-fields/ReferenceManyField.jsx +21 -21
  136. package/src/components/ra-fields/SizeField.jsx +15 -15
  137. package/src/components/ra-fields/TextField.jsx +14 -14
  138. package/src/components/ra-fields/index.jsx +15 -15
  139. package/src/components/ra-forms/CardForm.jsx +34 -40
  140. package/src/components/ra-forms/LongForm/useFormRootPath.ts +8 -13
  141. package/src/components/ra-forms/TabbedForm.jsx +10 -10
  142. package/src/components/ra-forms/Toolbar.jsx +15 -15
  143. package/src/components/ra-forms/index.jsx +9 -9
  144. package/src/components/ra-inputs/AutocompleteArrayInput.jsx +7 -7
  145. package/src/components/ra-inputs/AutocompleteInput.jsx +9 -9
  146. package/src/components/ra-inputs/BooleanInput.jsx +19 -19
  147. package/src/components/ra-inputs/DateInput.jsx +13 -13
  148. package/src/components/ra-inputs/FileInput.jsx +33 -33
  149. package/src/components/ra-inputs/ImageInput.jsx +19 -19
  150. package/src/components/ra-inputs/NumberInput.jsx +13 -13
  151. package/src/components/ra-inputs/RecordInput.jsx +39 -39
  152. package/src/components/ra-inputs/ReferenceArrayInput.jsx +10 -10
  153. package/src/components/ra-inputs/ReferenceInput.jsx +10 -10
  154. package/src/components/ra-inputs/ReferenceManyInput.jsx +13 -24
  155. package/src/components/ra-inputs/SearchInput.jsx +6 -6
  156. package/src/components/ra-inputs/SelectArrayInput.jsx +19 -19
  157. package/src/components/ra-inputs/TimeInput.jsx +21 -21
  158. package/src/components/ra-lists/Empty.jsx +32 -37
  159. package/src/components/ra-lists/List.jsx +9 -9
  160. package/src/components/ra-lists/NotificationList/NotificationList.jsx +14 -16
  161. package/src/components/ra-lists/NotificationList/button/MarkAsReadedButton.jsx +21 -25
  162. package/src/components/ra-lists/NotificationList/button/MarkAsUnreadedButton.jsx +19 -19
  163. package/src/components/ra-lists/NotificationList/button/index.jsx +2 -2
  164. package/src/components/ra-lists/NotificationList/field/NotificationField.jsx +20 -31
  165. package/src/components/ra-lists/NotificationList/field/index.jsx +1 -1
  166. package/src/components/ra-lists/NotificationList/index.jsx +2 -2
  167. package/src/components/ra-lists/index.jsx +5 -5
  168. package/src/components/third-party/SimpleBar.jsx +10 -10
  169. package/src/components/third-party/index.jsx +2 -2
  170. package/src/contexts/MenuConfigContext.jsx +35 -35
  171. package/src/contexts/MenuPropTypes.jsx +7 -7
  172. package/src/contexts/index.jsx +5 -5
  173. package/src/dev/index.jsx +2 -2
  174. package/src/dev/useCliErrorCatcher.jsx +32 -32
  175. package/src/hooks/index.jsx +8 -16
  176. package/src/hooks/useAppConfig.jsx +4 -4
  177. package/src/hooks/useBreadcrumbs.jsx +37 -37
  178. package/src/hooks/useLocalStorage.jsx +16 -16
  179. package/src/hooks/useMenu.jsx +83 -88
  180. package/src/hooks/useMenuConfig.jsx +4 -4
  181. package/src/hooks/useResourceTitle.jsx +13 -13
  182. package/src/hooks/useThemeConfig.jsx +4 -4
  183. package/src/i18n/createI18nProvider.jsx +7 -7
  184. package/src/i18n/index.jsx +4 -4
  185. package/src/i18n/useI18nCatcher.jsx +26 -26
  186. package/src/i18n/useI18nLanguages.jsx +12 -16
  187. package/src/i18n/useI18nProvider.jsx +3 -4
  188. package/src/themes/getColors.jsx +8 -8
  189. package/src/themes/getShadow.jsx +17 -17
  190. package/src/themes/index.jsx +29 -29
  191. package/src/themes/overrides/Accordion.jsx +9 -9
  192. package/src/themes/overrides/AccordionDetails.jsx +5 -5
  193. package/src/themes/overrides/AccordionSummary.jsx +11 -11
  194. package/src/themes/overrides/Alert.jsx +21 -21
  195. package/src/themes/overrides/AlertTitle.jsx +5 -5
  196. package/src/themes/overrides/Autocomplete.jsx +9 -9
  197. package/src/themes/overrides/Badge.jsx +12 -12
  198. package/src/themes/overrides/Button.jsx +62 -62
  199. package/src/themes/overrides/ButtonBase.jsx +4 -4
  200. package/src/themes/overrides/ButtonGroup.jsx +4 -4
  201. package/src/themes/overrides/CardContent.jsx +6 -6
  202. package/src/themes/overrides/Checkbox.jsx +31 -31
  203. package/src/themes/overrides/Chip.jsx +22 -22
  204. package/src/themes/overrides/Dialog.jsx +7 -7
  205. package/src/themes/overrides/DialogContentText.jsx +5 -5
  206. package/src/themes/overrides/DialogTitle.jsx +5 -5
  207. package/src/themes/overrides/Fab.jsx +21 -21
  208. package/src/themes/overrides/IconButton.jsx +8 -8
  209. package/src/themes/overrides/InputBase.jsx +3 -3
  210. package/src/themes/overrides/InputLabel.jsx +8 -8
  211. package/src/themes/overrides/LinearProgress.jsx +6 -6
  212. package/src/themes/overrides/Link.jsx +4 -4
  213. package/src/themes/overrides/ListItemButton.jsx +7 -7
  214. package/src/themes/overrides/ListItemIcon.jsx +5 -5
  215. package/src/themes/overrides/LoadingButton.jsx +6 -6
  216. package/src/themes/overrides/OutlinedInput.jsx +20 -21
  217. package/src/themes/overrides/Pagination.jsx +4 -4
  218. package/src/themes/overrides/PaginationItem.jsx +55 -55
  219. package/src/themes/overrides/Popover.jsx +5 -5
  220. package/src/themes/overrides/Radio.jsx +30 -30
  221. package/src/themes/overrides/Slider.jsx +20 -20
  222. package/src/themes/overrides/Switch.jsx +26 -26
  223. package/src/themes/overrides/Tab.jsx +7 -7
  224. package/src/themes/overrides/TableBody.jsx +11 -11
  225. package/src/themes/overrides/TableCell.jsx +12 -12
  226. package/src/themes/overrides/TableFooter.jsx +5 -5
  227. package/src/themes/overrides/TableHead.jsx +5 -5
  228. package/src/themes/overrides/TablePagination.jsx +6 -6
  229. package/src/themes/overrides/TableRow.jsx +10 -10
  230. package/src/themes/overrides/Tabs.jsx +5 -5
  231. package/src/themes/overrides/ToggleButton.jsx +7 -7
  232. package/src/themes/overrides/Tooltip.jsx +5 -5
  233. package/src/themes/overrides/TreeItem.jsx +7 -7
  234. package/src/themes/overrides/Typography.jsx +5 -5
  235. package/src/themes/overrides/index.jsx +47 -47
  236. package/src/themes/palette.jsx +22 -34
  237. package/src/themes/shadows.jsx +4 -4
  238. package/src/themes/theme/default.jsx +17 -17
  239. package/src/themes/theme/index.jsx +23 -23
  240. package/src/themes/theme/theme1.jsx +24 -46
  241. package/src/themes/theme/theme2.jsx +24 -46
  242. package/src/themes/theme/theme3.jsx +24 -46
  243. package/src/themes/theme/theme4.jsx +24 -46
  244. package/src/themes/theme/theme5.jsx +24 -46
  245. package/src/themes/theme/theme6.jsx +24 -46
  246. package/src/themes/theme/theme7.jsx +24 -46
  247. package/src/themes/theme/theme8.jsx +24 -46
  248. package/src/themes/typography.jsx +16 -16
  249. package/src/utils/{lang.js → lang.ts} +4 -4
  250. package/src/utils/time.ts +14 -0
  251. package/vite.config.js +11 -10
  252. package/src/utils/time.js +0 -13
  253. /package/src/utils/{index.js → index.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { alpha } from '@mui/material/styles'
1
+ import { alpha } from '@mui/material/styles';
2
2
 
3
3
  const CustomShadows = (theme) => ({
4
4
  // z1: `0px 2px 8px rgba(0, 0, 0, 0.15)`,
@@ -21,7 +21,7 @@ const CustomShadows = (theme) => ({
21
21
  warningButton: `0 14px 12px ${alpha(theme.palette.warning.main, 0.2)}`,
22
22
  infoButton: `0 14px 12px ${alpha(theme.palette.info.main, 0.2)}`,
23
23
  successButton: `0 14px 12px ${alpha(theme.palette.success.main, 0.2)}`,
24
- greyButton: `0 14px 12px ${alpha(theme.palette.grey[500], 0.2)}`,
25
- })
24
+ greyButton: `0 14px 12px ${alpha(theme.palette.grey[500], 0.2)}`
25
+ });
26
26
 
27
- export default CustomShadows
27
+ export default CustomShadows;
@@ -1,9 +1,9 @@
1
- import PropTypes from 'prop-types'
1
+ import PropTypes from 'prop-types';
2
2
 
3
3
  // ==============================|| PRESET THEME - DEFAULT ||============================== //
4
4
 
5
5
  const Default = (colors) => {
6
- const { blue, red, gold, cyan, green, grey } = colors
6
+ const { blue, red, gold, cyan, green, grey } = colors;
7
7
  const greyColors = {
8
8
  0: grey[0],
9
9
  50: grey[1],
@@ -21,9 +21,9 @@ const Default = (colors) => {
21
21
  A200: grey[12],
22
22
  A400: grey[13],
23
23
  A700: grey[14],
24
- A800: grey[16],
25
- }
26
- const contrastText = '#fff'
24
+ A800: grey[16]
25
+ };
26
+ const contrastText = '#fff';
27
27
 
28
28
  return {
29
29
  primary: {
@@ -37,7 +37,7 @@ const Default = (colors) => {
37
37
  700: blue[7],
38
38
  darker: blue[8],
39
39
  900: blue[9],
40
- contrastText,
40
+ contrastText
41
41
  },
42
42
  secondary: {
43
43
  lighter: greyColors[100],
@@ -53,7 +53,7 @@ const Default = (colors) => {
53
53
  A100: greyColors[0],
54
54
  A200: greyColors.A400,
55
55
  A300: greyColors.A700,
56
- contrastText: greyColors[0],
56
+ contrastText: greyColors[0]
57
57
  },
58
58
  error: {
59
59
  lighter: red[0],
@@ -61,7 +61,7 @@ const Default = (colors) => {
61
61
  main: red[4],
62
62
  dark: red[7],
63
63
  darker: red[9],
64
- contrastText,
64
+ contrastText
65
65
  },
66
66
  warning: {
67
67
  lighter: gold[0],
@@ -69,7 +69,7 @@ const Default = (colors) => {
69
69
  main: gold[5],
70
70
  dark: gold[7],
71
71
  darker: gold[9],
72
- contrastText: greyColors[100],
72
+ contrastText: greyColors[100]
73
73
  },
74
74
  info: {
75
75
  lighter: cyan[0],
@@ -77,7 +77,7 @@ const Default = (colors) => {
77
77
  main: cyan[5],
78
78
  dark: cyan[7],
79
79
  darker: cyan[9],
80
- contrastText,
80
+ contrastText
81
81
  },
82
82
  success: {
83
83
  lighter: green[0],
@@ -85,14 +85,14 @@ const Default = (colors) => {
85
85
  main: green[5],
86
86
  dark: green[7],
87
87
  darker: green[9],
88
- contrastText,
88
+ contrastText
89
89
  },
90
- grey: greyColors,
91
- }
92
- }
90
+ grey: greyColors
91
+ };
92
+ };
93
93
 
94
94
  Default.propTypes = {
95
- colors: PropTypes.object,
96
- }
95
+ colors: PropTypes.object
96
+ };
97
97
 
98
- export default Default
98
+ export default Default;
@@ -1,44 +1,44 @@
1
- import PropTypes from 'prop-types'
1
+ import PropTypes from 'prop-types';
2
2
 
3
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'
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
13
 
14
14
  // ==============================|| PRESET THEME - THEME SELECTOR ||============================== //
15
15
 
16
16
  const Theme = (colors, presetColor, mode) => {
17
17
  switch (presetColor) {
18
18
  case 'theme1':
19
- return Theme1(colors, mode)
19
+ return Theme1(colors, mode);
20
20
  case 'theme2':
21
- return Theme2(colors, mode)
21
+ return Theme2(colors, mode);
22
22
  case 'theme3':
23
- return Theme3(colors, mode)
23
+ return Theme3(colors, mode);
24
24
  case 'theme4':
25
- return Theme4(colors, mode)
25
+ return Theme4(colors, mode);
26
26
  case 'theme5':
27
- return Theme5(colors, mode)
27
+ return Theme5(colors, mode);
28
28
  case 'theme6':
29
- return Theme6(colors, mode)
29
+ return Theme6(colors, mode);
30
30
  case 'theme7':
31
- return Theme7(colors, mode)
31
+ return Theme7(colors, mode);
32
32
  case 'theme8':
33
- return Theme8(colors, mode)
33
+ return Theme8(colors, mode);
34
34
  default:
35
- return Default(colors)
35
+ return Default(colors);
36
36
  }
37
- }
37
+ };
38
38
 
39
39
  Theme.propTypes = {
40
40
  colors: PropTypes.object,
41
- presetColor: PropTypes.any,
42
- }
41
+ presetColor: PropTypes.any
42
+ };
43
43
 
44
- export default Theme
44
+ export default Theme;
@@ -1,7 +1,7 @@
1
1
  // ==============================|| PRESET THEME - Eva Design ||============================== //
2
2
 
3
3
  const Theme1 = (colors, mode) => {
4
- const { grey } = colors
4
+ const { grey } = colors;
5
5
  const greyColors = {
6
6
  0: grey[0],
7
7
  50: grey[1],
@@ -19,44 +19,22 @@ const Theme1 = (colors, mode) => {
19
19
  A200: grey[12],
20
20
  A400: grey[13],
21
21
  A700: grey[14],
22
- A800: grey[16],
23
- }
24
- const contrastText = '#fff'
22
+ A800: grey[16]
23
+ };
24
+ const contrastText = '#fff';
25
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']
26
+ let primaryColors = ['#D6E4FF', '#D6E4FF', '#ADC8FF', '#84A9FF', '#6690FF', '#3366FF', '#254EDB', '#1939B7', '#102693', '#102693'];
27
+ let errorColors = ['#FFE7D3', '#FF805D', '#FF4528', '#DB271D', '#930C1A'];
28
+ let warningColors = ['#FFF6D0', '#FFCF4E', '#FFB814', '#DB970E', '#935B06'];
29
+ let infoColors = ['#DCF0FF', '#7EB9FF', '#549BFF', '#3D78DB', '#1A3D93'];
30
+ let successColors = ['#EAFCD4', '#8AE65B', '#58D62A', '#3DB81E', '#137C0D'];
42
31
 
43
32
  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']
33
+ primaryColors = ['#1c2134', '#1f294d', '#243462', '#273e83', '#2c4db0', '#305bdd', '#567fe9', '#80a4f4', '#a9c5f8', '#d2e2fb'];
34
+ errorColors = ['#341d1b', '#b03725', '#dd3f27', '#e9664d', '#fbd6c9'];
35
+ warningColors = ['#342a1a', '#83631a', '#dda116', '#e9ba3a', '#fbefb5'];
36
+ infoColors = ['#202734', '#416fb0', '#4c88dd', '#74a8e9', '#ecf4fb'];
37
+ successColors = ['#1f2e1c', '#449626', '#4fba28', '#74cf4d', '#e3fbd2'];
60
38
  }
61
39
 
62
40
  return {
@@ -71,7 +49,7 @@ const Theme1 = (colors, mode) => {
71
49
  700: primaryColors[7],
72
50
  darker: primaryColors[8],
73
51
  900: primaryColors[9],
74
- contrastText,
52
+ contrastText
75
53
  },
76
54
  secondary: {
77
55
  lighter: greyColors[100],
@@ -87,7 +65,7 @@ const Theme1 = (colors, mode) => {
87
65
  A100: greyColors[0],
88
66
  A200: greyColors.A400,
89
67
  A300: greyColors.A700,
90
- contrastText: greyColors[0],
68
+ contrastText: greyColors[0]
91
69
  },
92
70
  error: {
93
71
  lighter: errorColors[0],
@@ -95,7 +73,7 @@ const Theme1 = (colors, mode) => {
95
73
  main: errorColors[2],
96
74
  dark: errorColors[3],
97
75
  darker: errorColors[4],
98
- contrastText,
76
+ contrastText
99
77
  },
100
78
  warning: {
101
79
  lighter: warningColors[0],
@@ -103,7 +81,7 @@ const Theme1 = (colors, mode) => {
103
81
  main: warningColors[2],
104
82
  dark: warningColors[3],
105
83
  darker: warningColors[4],
106
- contrastText: greyColors[100],
84
+ contrastText: greyColors[100]
107
85
  },
108
86
  info: {
109
87
  lighter: infoColors[0],
@@ -111,7 +89,7 @@ const Theme1 = (colors, mode) => {
111
89
  main: infoColors[2],
112
90
  dark: infoColors[3],
113
91
  darker: infoColors[4],
114
- contrastText,
92
+ contrastText
115
93
  },
116
94
  success: {
117
95
  lighter: successColors[0],
@@ -119,10 +97,10 @@ const Theme1 = (colors, mode) => {
119
97
  main: successColors[2],
120
98
  dark: successColors[3],
121
99
  darker: successColors[4],
122
- contrastText,
100
+ contrastText
123
101
  },
124
- grey: greyColors,
125
- }
126
- }
102
+ grey: greyColors
103
+ };
104
+ };
127
105
 
128
- export default Theme1
106
+ export default Theme1;
@@ -1,7 +1,7 @@
1
1
  // ==============================|| PRESET THEME - DEFAULT ||============================== //
2
2
 
3
3
  const Theme2 = (colors, mode) => {
4
- const { grey } = colors
4
+ const { grey } = colors;
5
5
  const greyColors = {
6
6
  0: grey[0],
7
7
  50: grey[1],
@@ -19,44 +19,22 @@ const Theme2 = (colors, mode) => {
19
19
  A200: grey[12],
20
20
  A400: grey[13],
21
21
  A700: grey[14],
22
- A800: grey[16],
23
- }
24
- const contrastText = '#fff'
22
+ A800: grey[16]
23
+ };
24
+ const contrastText = '#fff';
25
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']
26
+ let primaryColors = ['#EEEDFC', '#D5D1F8', '#B9B2F3', '#9C93EE', '#877CEA', '#7265E6', '#6A5DE3', '#5F53DF', '#5549DB', '#4237D5'];
27
+ let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21'];
28
+ let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900'];
29
+ let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694'];
30
+ let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A'];
42
31
 
43
32
  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']
33
+ primaryColors = ['#222130', '#2b2946', '#37335a', '#443e78', '#554ca0', '#655ac8', '#9186dd', '#5F53DF', '#c3baf4', '#efecfb'];
34
+ errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf'];
35
+ warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577'];
36
+ infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb'];
37
+ successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b'];
60
38
  }
61
39
 
62
40
  return {
@@ -71,7 +49,7 @@ const Theme2 = (colors, mode) => {
71
49
  700: primaryColors[7],
72
50
  darker: primaryColors[8],
73
51
  900: primaryColors[9],
74
- contrastText,
52
+ contrastText
75
53
  },
76
54
  secondary: {
77
55
  lighter: greyColors[100],
@@ -87,7 +65,7 @@ const Theme2 = (colors, mode) => {
87
65
  A100: greyColors[0],
88
66
  A200: greyColors.A400,
89
67
  A300: greyColors.A700,
90
- contrastText: greyColors[0],
68
+ contrastText: greyColors[0]
91
69
  },
92
70
  error: {
93
71
  lighter: errorColors[0],
@@ -95,7 +73,7 @@ const Theme2 = (colors, mode) => {
95
73
  main: errorColors[2],
96
74
  dark: errorColors[3],
97
75
  darker: errorColors[4],
98
- contrastText,
76
+ contrastText
99
77
  },
100
78
  warning: {
101
79
  lighter: warningColors[0],
@@ -103,7 +81,7 @@ const Theme2 = (colors, mode) => {
103
81
  main: warningColors[2],
104
82
  dark: warningColors[3],
105
83
  darker: warningColors[4],
106
- contrastText: greyColors[100],
84
+ contrastText: greyColors[100]
107
85
  },
108
86
  info: {
109
87
  lighter: infoColors[0],
@@ -111,7 +89,7 @@ const Theme2 = (colors, mode) => {
111
89
  main: infoColors[2],
112
90
  dark: infoColors[3],
113
91
  darker: infoColors[4],
114
- contrastText,
92
+ contrastText
115
93
  },
116
94
  success: {
117
95
  lighter: successColors[0],
@@ -119,10 +97,10 @@ const Theme2 = (colors, mode) => {
119
97
  main: successColors[2],
120
98
  dark: successColors[3],
121
99
  darker: successColors[4],
122
- contrastText,
100
+ contrastText
123
101
  },
124
- grey: greyColors,
125
- }
126
- }
102
+ grey: greyColors
103
+ };
104
+ };
127
105
 
128
- export default Theme2
106
+ export default Theme2;
@@ -1,7 +1,7 @@
1
1
  // ==============================|| PRESET THEME - Dark Green ||============================== //
2
2
 
3
3
  const Theme4 = (colors, mode) => {
4
- const { grey } = colors
4
+ const { grey } = colors;
5
5
  const greyColors = {
6
6
  0: grey[0],
7
7
  50: grey[1],
@@ -19,44 +19,22 @@ const Theme4 = (colors, mode) => {
19
19
  A200: grey[12],
20
20
  A400: grey[13],
21
21
  A700: grey[14],
22
- A800: grey[16],
23
- }
24
- const contrastText = '#fff'
22
+ A800: grey[16]
23
+ };
24
+ const contrastText = '#fff';
25
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']
26
+ let primaryColors = ['#E6F3EC', '#84c297', '#5eb57d', '#3da866', '#1f9c53', '#068e44', '#006933', '#004222', '#001c0f', '#000000'];
27
+ let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21'];
28
+ let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900'];
29
+ let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694'];
30
+ let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A'];
42
31
 
43
32
  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']
33
+ primaryColors = ['#1a231f', '#173123', '#174029', '#13502f', '#0e6737', '#0a7d3e', '#1f8f4e', '#3ba162', '#5cb07a', '#82bf95'];
34
+ errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf'];
35
+ warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577'];
36
+ infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb'];
37
+ successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b'];
60
38
  }
61
39
 
62
40
  return {
@@ -71,7 +49,7 @@ const Theme4 = (colors, mode) => {
71
49
  700: primaryColors[7],
72
50
  darker: primaryColors[8],
73
51
  900: primaryColors[9],
74
- contrastText,
52
+ contrastText
75
53
  },
76
54
  secondary: {
77
55
  lighter: greyColors[100],
@@ -87,7 +65,7 @@ const Theme4 = (colors, mode) => {
87
65
  A100: greyColors[0],
88
66
  A200: greyColors.A400,
89
67
  A300: greyColors.A700,
90
- contrastText: greyColors[0],
68
+ contrastText: greyColors[0]
91
69
  },
92
70
  error: {
93
71
  lighter: errorColors[0],
@@ -95,7 +73,7 @@ const Theme4 = (colors, mode) => {
95
73
  main: errorColors[2],
96
74
  dark: errorColors[3],
97
75
  darker: errorColors[4],
98
- contrastText,
76
+ contrastText
99
77
  },
100
78
  warning: {
101
79
  lighter: warningColors[0],
@@ -103,7 +81,7 @@ const Theme4 = (colors, mode) => {
103
81
  main: warningColors[2],
104
82
  dark: warningColors[3],
105
83
  darker: warningColors[4],
106
- contrastText: greyColors[100],
84
+ contrastText: greyColors[100]
107
85
  },
108
86
  info: {
109
87
  lighter: infoColors[0],
@@ -111,7 +89,7 @@ const Theme4 = (colors, mode) => {
111
89
  main: infoColors[2],
112
90
  dark: infoColors[3],
113
91
  darker: infoColors[4],
114
- contrastText,
92
+ contrastText
115
93
  },
116
94
  success: {
117
95
  lighter: successColors[0],
@@ -119,10 +97,10 @@ const Theme4 = (colors, mode) => {
119
97
  main: successColors[2],
120
98
  dark: successColors[3],
121
99
  darker: successColors[4],
122
- contrastText,
100
+ contrastText
123
101
  },
124
- grey: greyColors,
125
- }
126
- }
102
+ grey: greyColors
103
+ };
104
+ };
127
105
 
128
- export default Theme4
106
+ export default Theme4;
@@ -1,7 +1,7 @@
1
1
  // ==============================|| PRESET THEME - Theme4 Blue ||============================== //
2
2
 
3
3
  const Theme4 = (colors, mode) => {
4
- const { grey } = colors
4
+ const { grey } = colors;
5
5
  const greyColors = {
6
6
  0: grey[0],
7
7
  50: grey[1],
@@ -19,44 +19,22 @@ const Theme4 = (colors, mode) => {
19
19
  A200: grey[12],
20
20
  A400: grey[13],
21
21
  A700: grey[14],
22
- A800: grey[16],
23
- }
24
- const contrastText = '#fff'
22
+ A800: grey[16]
23
+ };
24
+ const contrastText = '#fff';
25
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']
26
+ let primaryColors = ['#f0f6ff', '#edf4ff', '#bed3f7', '#8faeeb', '#6488de', '#3c64d0', '#2947ab', '#192f85', '#0d1b5e', '#070e38'];
27
+ let errorColors = ['#FDE8E7', '#F25E52', '#F04134', '#EE3B2F', '#E92A21'];
28
+ let warningColors = ['#FFF7E0', '#FFC926', '#FFBF00', '#FFB900', '#FFA900'];
29
+ let infoColors = ['#E0F4F5', '#26B0BA', '#00A2AE', '#009AA7', '#008694'];
30
+ let successColors = ['#E0F5EA', '#26B56E', '#00A854', '#00A04D', '#008D3A'];
42
31
 
43
32
  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']
33
+ primaryColors = ['#1d212d', '#212841', '#273353', '#2c3e6e', '#324c92', '#385ab5', '#5d7dcb', '#89a7e1', '#b9cef0', '#e9f0fb'];
34
+ errorColors = ['#321d1d', '#7d2e28', '#d13c31', '#e66859', '#f8baaf'];
35
+ warningColors = ['#342c1a', '#836611', '#dda705', '#e9bf28', '#f8e577'];
36
+ infoColors = ['#1a2628', '#11595f', '#058e98', '#1ea6aa', '#64cfcb'];
37
+ successColors = ['#1a2721', '#115c36', '#05934c', '#1da65d', '#61ca8b'];
60
38
  }
61
39
 
62
40
  return {
@@ -71,7 +49,7 @@ const Theme4 = (colors, mode) => {
71
49
  700: primaryColors[7],
72
50
  darker: primaryColors[8],
73
51
  900: primaryColors[9],
74
- contrastText,
52
+ contrastText
75
53
  },
76
54
  secondary: {
77
55
  lighter: greyColors[100],
@@ -87,7 +65,7 @@ const Theme4 = (colors, mode) => {
87
65
  A100: greyColors[0],
88
66
  A200: greyColors.A400,
89
67
  A300: greyColors.A700,
90
- contrastText: greyColors[0],
68
+ contrastText: greyColors[0]
91
69
  },
92
70
  error: {
93
71
  lighter: errorColors[0],
@@ -95,7 +73,7 @@ const Theme4 = (colors, mode) => {
95
73
  main: errorColors[2],
96
74
  dark: errorColors[3],
97
75
  darker: errorColors[4],
98
- contrastText,
76
+ contrastText
99
77
  },
100
78
  warning: {
101
79
  lighter: warningColors[0],
@@ -103,7 +81,7 @@ const Theme4 = (colors, mode) => {
103
81
  main: warningColors[2],
104
82
  dark: warningColors[3],
105
83
  darker: warningColors[4],
106
- contrastText: greyColors[100],
84
+ contrastText: greyColors[100]
107
85
  },
108
86
  info: {
109
87
  lighter: infoColors[0],
@@ -111,7 +89,7 @@ const Theme4 = (colors, mode) => {
111
89
  main: infoColors[2],
112
90
  dark: infoColors[3],
113
91
  darker: infoColors[4],
114
- contrastText,
92
+ contrastText
115
93
  },
116
94
  success: {
117
95
  lighter: successColors[0],
@@ -119,10 +97,10 @@ const Theme4 = (colors, mode) => {
119
97
  main: successColors[2],
120
98
  dark: successColors[3],
121
99
  darker: successColors[4],
122
- contrastText,
100
+ contrastText
123
101
  },
124
- grey: greyColors,
125
- }
126
- }
102
+ grey: greyColors
103
+ };
104
+ };
127
105
 
128
- export default Theme4
106
+ export default Theme4;