@astral/ui 0.24.0 → 0.27.0

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 (203) hide show
  1. package/Button/Button.d.ts +1 -1
  2. package/Button/Button.js +13 -1
  3. package/Button/types.d.ts +2 -0
  4. package/IconButton/styled.d.ts +2 -0
  5. package/ListItemIcon/styled.js +1 -1
  6. package/Menu/Menu.d.ts +2 -2
  7. package/Menu/Menu.js +5 -14
  8. package/Menu/index.d.ts +1 -0
  9. package/Menu/index.js +1 -0
  10. package/Menu/types.d.ts +1 -0
  11. package/Menu/types.js +2 -0
  12. package/MenuGroup/MenuGroup.d.ts +3 -0
  13. package/MenuGroup/MenuGroup.js +23 -0
  14. package/MenuGroup/index.d.ts +1 -0
  15. package/MenuGroup/index.js +13 -0
  16. package/MenuGroup/stories/Icons.d.ts +8 -0
  17. package/MenuGroup/stories/Icons.js +29 -0
  18. package/MenuGroup/stories/styled.d.ts +50 -0
  19. package/MenuGroup/stories/styled.js +20 -0
  20. package/MenuGroup/styled.d.ts +20 -0
  21. package/MenuGroup/styled.js +24 -0
  22. package/MenuGroup/types.d.ts +8 -0
  23. package/MenuGroup/types.js +2 -0
  24. package/MenuItem/MenuItem.d.ts +1 -1
  25. package/MenuItem/MenuItem.js +2 -2
  26. package/MenuItem/styled.d.ts +31 -0
  27. package/MenuItem/styled.js +14 -0
  28. package/MenuItem/types.d.ts +1 -0
  29. package/MenuItem/types.js +2 -0
  30. package/Notification/Notification.d.ts +6 -0
  31. package/Notification/Notification.js +42 -0
  32. package/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
  33. package/Notification/NotificationContainer/NotificationContainer.js +24 -0
  34. package/Notification/NotificationContainer/index.d.ts +1 -0
  35. package/Notification/NotificationContainer/index.js +13 -0
  36. package/Notification/NotificationContainer/styled.d.ts +5 -0
  37. package/Notification/NotificationContainer/styled.js +10 -0
  38. package/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
  39. package/Notification/NotificationTemplate/NotificationTemplate.js +34 -0
  40. package/Notification/NotificationTemplate/index.d.ts +1 -0
  41. package/Notification/NotificationTemplate/index.js +13 -0
  42. package/Notification/NotificationTemplate/styled.d.ts +83 -0
  43. package/Notification/NotificationTemplate/styled.js +56 -0
  44. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
  45. package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +11 -0
  46. package/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
  47. package/Notification/NotificationTemplate/utils/getActionsDirection/index.js +13 -0
  48. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
  49. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +31 -0
  50. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
  51. package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +13 -0
  52. package/Notification/NotificationTemplate/utils/index.d.ts +2 -0
  53. package/Notification/NotificationTemplate/utils/index.js +14 -0
  54. package/Notification/constants/defaultNotificationProps.d.ts +3 -0
  55. package/Notification/constants/defaultNotificationProps.js +6 -0
  56. package/Notification/constants/index.d.ts +3 -0
  57. package/Notification/constants/index.js +15 -0
  58. package/Notification/constants/notificationVariant.d.ts +6 -0
  59. package/Notification/constants/notificationVariant.js +23 -0
  60. package/Notification/constants/positions.d.ts +8 -0
  61. package/Notification/constants/positions.js +5 -0
  62. package/Notification/index.d.ts +5 -0
  63. package/Notification/index.js +17 -0
  64. package/Notification/styled.d.ts +77 -0
  65. package/Notification/styled.js +34 -0
  66. package/Notification/types.d.ts +27 -0
  67. package/Notification/types.js +2 -0
  68. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
  69. package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +17 -0
  70. package/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
  71. package/Notification/utils/getNotificationIconByVariant/index.js +13 -0
  72. package/Notification/utils/index.d.ts +2 -0
  73. package/Notification/utils/index.js +14 -0
  74. package/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
  75. package/Notification/utils/notificationTemplatePropsCreator/index.js +13 -0
  76. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
  77. package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +18 -0
  78. package/Placeholder/styled.js +2 -2
  79. package/Product/Product.d.ts +4 -0
  80. package/Product/Product.js +33 -0
  81. package/Product/index.d.ts +2 -0
  82. package/Product/index.js +14 -0
  83. package/Product/types.d.ts +6 -0
  84. package/Product/types.js +2 -0
  85. package/Profile/Profile.d.ts +4 -0
  86. package/Profile/Profile.js +36 -0
  87. package/Profile/index.d.ts +2 -0
  88. package/Profile/index.js +14 -0
  89. package/Profile/styled.d.ts +40 -0
  90. package/Profile/styled.js +50 -0
  91. package/Profile/types.d.ts +20 -0
  92. package/Profile/types.js +2 -0
  93. package/Typography/index.d.ts +1 -0
  94. package/Typography/index.js +1 -0
  95. package/esm/Button/Button.d.ts +1 -1
  96. package/esm/Button/Button.js +13 -1
  97. package/esm/Button/types.d.ts +2 -0
  98. package/esm/IconButton/styled.d.ts +2 -0
  99. package/esm/ListItemIcon/styled.js +1 -1
  100. package/esm/Menu/Menu.d.ts +2 -2
  101. package/esm/Menu/Menu.js +3 -15
  102. package/esm/Menu/index.d.ts +1 -0
  103. package/esm/Menu/index.js +1 -0
  104. package/esm/Menu/types.d.ts +1 -0
  105. package/esm/Menu/types.js +1 -0
  106. package/esm/MenuGroup/MenuGroup.d.ts +3 -0
  107. package/esm/MenuGroup/MenuGroup.js +19 -0
  108. package/esm/MenuGroup/index.d.ts +1 -0
  109. package/esm/MenuGroup/index.js +1 -0
  110. package/esm/MenuGroup/stories/Icons.d.ts +8 -0
  111. package/esm/MenuGroup/stories/Icons.js +19 -0
  112. package/esm/MenuGroup/stories/styled.d.ts +50 -0
  113. package/esm/MenuGroup/stories/styled.js +17 -0
  114. package/esm/MenuGroup/styled.d.ts +20 -0
  115. package/esm/MenuGroup/styled.js +21 -0
  116. package/esm/MenuGroup/types.d.ts +8 -0
  117. package/esm/MenuGroup/types.js +1 -0
  118. package/esm/MenuItem/MenuItem.d.ts +1 -1
  119. package/esm/MenuItem/MenuItem.js +2 -2
  120. package/esm/MenuItem/styled.d.ts +31 -0
  121. package/esm/MenuItem/styled.js +11 -0
  122. package/esm/MenuItem/types.d.ts +1 -0
  123. package/esm/MenuItem/types.js +1 -0
  124. package/esm/Notification/Notification.d.ts +6 -0
  125. package/esm/Notification/Notification.js +39 -0
  126. package/esm/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
  127. package/esm/Notification/NotificationContainer/NotificationContainer.js +20 -0
  128. package/esm/Notification/NotificationContainer/index.d.ts +1 -0
  129. package/esm/Notification/NotificationContainer/index.js +1 -0
  130. package/esm/Notification/NotificationContainer/styled.d.ts +5 -0
  131. package/esm/Notification/NotificationContainer/styled.js +7 -0
  132. package/esm/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
  133. package/esm/Notification/NotificationTemplate/NotificationTemplate.js +30 -0
  134. package/esm/Notification/NotificationTemplate/index.d.ts +1 -0
  135. package/esm/Notification/NotificationTemplate/index.js +1 -0
  136. package/esm/Notification/NotificationTemplate/styled.d.ts +83 -0
  137. package/esm/Notification/NotificationTemplate/styled.js +53 -0
  138. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
  139. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +7 -0
  140. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
  141. package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.js +1 -0
  142. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
  143. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +27 -0
  144. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
  145. package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +1 -0
  146. package/esm/Notification/NotificationTemplate/utils/index.d.ts +2 -0
  147. package/esm/Notification/NotificationTemplate/utils/index.js +2 -0
  148. package/esm/Notification/constants/defaultNotificationProps.d.ts +3 -0
  149. package/esm/Notification/constants/defaultNotificationProps.js +3 -0
  150. package/esm/Notification/constants/index.d.ts +3 -0
  151. package/esm/Notification/constants/index.js +3 -0
  152. package/esm/Notification/constants/notificationVariant.d.ts +6 -0
  153. package/esm/Notification/constants/notificationVariant.js +20 -0
  154. package/esm/Notification/constants/positions.d.ts +8 -0
  155. package/esm/Notification/constants/positions.js +2 -0
  156. package/esm/Notification/index.d.ts +5 -0
  157. package/esm/Notification/index.js +5 -0
  158. package/esm/Notification/styled.d.ts +77 -0
  159. package/esm/Notification/styled.js +31 -0
  160. package/esm/Notification/types.d.ts +27 -0
  161. package/esm/Notification/types.js +1 -0
  162. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
  163. package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +13 -0
  164. package/esm/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
  165. package/esm/Notification/utils/getNotificationIconByVariant/index.js +1 -0
  166. package/esm/Notification/utils/index.d.ts +2 -0
  167. package/esm/Notification/utils/index.js +2 -0
  168. package/esm/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
  169. package/esm/Notification/utils/notificationTemplatePropsCreator/index.js +1 -0
  170. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
  171. package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +14 -0
  172. package/esm/Placeholder/styled.js +2 -2
  173. package/esm/Product/Product.d.ts +4 -0
  174. package/esm/Product/Product.js +30 -0
  175. package/esm/Product/index.d.ts +2 -0
  176. package/esm/Product/index.js +2 -0
  177. package/esm/Product/types.d.ts +6 -0
  178. package/esm/Product/types.js +1 -0
  179. package/esm/Profile/Profile.d.ts +4 -0
  180. package/esm/Profile/Profile.js +33 -0
  181. package/esm/Profile/index.d.ts +2 -0
  182. package/esm/Profile/index.js +2 -0
  183. package/esm/Profile/styled.d.ts +40 -0
  184. package/esm/Profile/styled.js +47 -0
  185. package/esm/Profile/types.d.ts +20 -0
  186. package/esm/Profile/types.js +1 -0
  187. package/esm/Typography/index.d.ts +1 -0
  188. package/esm/Typography/index.js +1 -0
  189. package/esm/index.d.ts +3 -0
  190. package/esm/index.js +3 -0
  191. package/esm/theme/components/MuiMenu.d.ts +4 -0
  192. package/esm/theme/components/MuiMenu.js +24 -0
  193. package/esm/theme/components/MuiMenuItem.d.ts +4 -0
  194. package/esm/theme/components/MuiMenuItem.js +13 -0
  195. package/esm/theme/components/components.js +2 -35
  196. package/index.d.ts +3 -0
  197. package/index.js +3 -0
  198. package/package.json +4 -3
  199. package/theme/components/MuiMenu.d.ts +4 -0
  200. package/theme/components/MuiMenu.js +27 -0
  201. package/theme/components/MuiMenuItem.d.ts +4 -0
  202. package/theme/components/MuiMenuItem.js +16 -0
  203. package/theme/components/components.js +4 -37
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './Typography';
2
+ export * from './types';
@@ -1 +1,2 @@
1
1
  export * from './Typography';
2
+ export * from './types';
package/esm/index.d.ts CHANGED
@@ -30,7 +30,9 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
35
+ export * from './Product';
34
36
  export * from './Select';
35
37
  export * from './styles';
36
38
  export * from './StylesCacheProvider';
@@ -48,4 +50,5 @@ export * from './SideDialogActions';
48
50
  export * from './SideDialogContent';
49
51
  export * from './SideDialogContentText';
50
52
  export * from './DatePicker';
53
+ export * from './Notification';
51
54
  export * from './LocalizationProvider';
package/esm/index.js CHANGED
@@ -30,7 +30,9 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
35
+ export * from './Product';
34
36
  export * from './Select';
35
37
  export * from './styles';
36
38
  export * from './StylesCacheProvider';
@@ -48,4 +50,5 @@ export * from './SideDialogActions';
48
50
  export * from './SideDialogContent';
49
51
  export * from './SideDialogContentText';
50
52
  export * from './DatePicker';
53
+ export * from './Notification';
51
54
  export * from './LocalizationProvider';
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenu: Components<Theme>['MuiMenu'];
4
+ export default MuiMenu;
@@ -0,0 +1,24 @@
1
+ export var MuiMenu = {
2
+ defaultProps: {
3
+ autoFocus: false,
4
+ },
5
+ styleOverrides: {
6
+ paper: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ marginTop: theme.spacing(2),
10
+ '&.MuiPaper-root': {
11
+ borderRadius: theme.shape.small,
12
+ boxShadow: theme.elevation[200],
13
+ },
14
+ };
15
+ },
16
+ list: function (_a) {
17
+ var theme = _a.theme;
18
+ return {
19
+ padding: theme.spacing(1, 0),
20
+ };
21
+ },
22
+ },
23
+ };
24
+ export default MuiMenu;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenuItem: Components<Theme>['MuiMenuItem'];
4
+ export default MuiMenuItem;
@@ -0,0 +1,13 @@
1
+ export var MuiMenuItem = {
2
+ styleOverrides: {
3
+ root: function (_a) {
4
+ var theme = _a.theme;
5
+ return {
6
+ '&:hover': {
7
+ backgroundColor: theme.palette.background.elementHover,
8
+ },
9
+ };
10
+ },
11
+ },
12
+ };
13
+ export default MuiMenuItem;
@@ -18,6 +18,8 @@ import { MuiTableHead } from './MuiTableHead';
18
18
  import { MuiPickersDay } from './MuiPickersDay';
19
19
  import { MuiCalendarPicker } from './MuiCalendarPicker';
20
20
  import { MuiYearPicker } from './MuiYearPicker';
21
+ import { MuiMenu } from './MuiMenu';
22
+ import { MuiMenuItem } from './MuiMenuItem';
21
23
  import { MuiCircularProgress } from './MuiCircularProgress';
22
24
  var getMuiCssBaseline = function (fontUrls) { return ({
23
25
  styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
@@ -32,41 +34,6 @@ var MuiRadio = {
32
34
  disableRipple: true,
33
35
  },
34
36
  };
35
- var MuiMenu = {
36
- defaultProps: {
37
- autoFocus: false,
38
- },
39
- styleOverrides: {
40
- paper: function (_a) {
41
- var theme = _a.theme;
42
- return {
43
- marginTop: theme.spacing(2),
44
- '&.MuiPaper-root': {
45
- borderRadius: theme.shape.small,
46
- boxShadow: theme.elevation[200],
47
- },
48
- };
49
- },
50
- list: function (_a) {
51
- var theme = _a.theme;
52
- return {
53
- padding: theme.spacing(1, 0),
54
- };
55
- },
56
- },
57
- };
58
- var MuiMenuItem = {
59
- styleOverrides: {
60
- root: function (_a) {
61
- var theme = _a.theme;
62
- return {
63
- '&:hover': {
64
- backgroundColor: theme.palette.background.elementHover,
65
- },
66
- };
67
- },
68
- },
69
- };
70
37
  export var getComponents = function (fontUrls) { return ({
71
38
  MuiCssBaseline: getMuiCssBaseline(fontUrls),
72
39
  MuiButton: MuiButton,
package/index.d.ts CHANGED
@@ -30,7 +30,9 @@ export * from './MaskField';
30
30
  export * from './Menu';
31
31
  export * from './MenuItem';
32
32
  export * from './MenuList';
33
+ export * from './MenuGroup';
33
34
  export * from './Placeholder';
35
+ export * from './Product';
34
36
  export * from './Select';
35
37
  export * from './styles';
36
38
  export * from './StylesCacheProvider';
@@ -48,4 +50,5 @@ export * from './SideDialogActions';
48
50
  export * from './SideDialogContent';
49
51
  export * from './SideDialogContentText';
50
52
  export * from './DatePicker';
53
+ export * from './Notification';
51
54
  export * from './LocalizationProvider';
package/index.js CHANGED
@@ -42,7 +42,9 @@ __exportStar(require("./MaskField"), exports);
42
42
  __exportStar(require("./Menu"), exports);
43
43
  __exportStar(require("./MenuItem"), exports);
44
44
  __exportStar(require("./MenuList"), exports);
45
+ __exportStar(require("./MenuGroup"), exports);
45
46
  __exportStar(require("./Placeholder"), exports);
47
+ __exportStar(require("./Product"), exports);
46
48
  __exportStar(require("./Select"), exports);
47
49
  __exportStar(require("./styles"), exports);
48
50
  __exportStar(require("./StylesCacheProvider"), exports);
@@ -60,4 +62,5 @@ __exportStar(require("./SideDialogActions"), exports);
60
62
  __exportStar(require("./SideDialogContent"), exports);
61
63
  __exportStar(require("./SideDialogContentText"), exports);
62
64
  __exportStar(require("./DatePicker"), exports);
65
+ __exportStar(require("./Notification"), exports);
63
66
  __exportStar(require("./LocalizationProvider"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.24.0",
3
+ "version": "0.27.0",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^0.24.0",
11
+ "@astral/icons": "^0.27.0",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.8.1",
14
14
  "@emotion/server": "11.4.0",
@@ -18,7 +18,8 @@
18
18
  "@mui/material": "5.4.3",
19
19
  "date-fns": "^2.28.0",
20
20
  "lodash-es": "4.17.21",
21
- "react-imask": "^6.4.2"
21
+ "react-imask": "^6.4.2",
22
+ "react-toastify": "^9.0.0-rc-2"
22
23
  },
23
24
  "peerDependencies": {
24
25
  "react": "^17.0.0"
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenu: Components<Theme>['MuiMenu'];
4
+ export default MuiMenu;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiMenu = void 0;
4
+ exports.MuiMenu = {
5
+ defaultProps: {
6
+ autoFocus: false,
7
+ },
8
+ styleOverrides: {
9
+ paper: function (_a) {
10
+ var theme = _a.theme;
11
+ return {
12
+ marginTop: theme.spacing(2),
13
+ '&.MuiPaper-root': {
14
+ borderRadius: theme.shape.small,
15
+ boxShadow: theme.elevation[200],
16
+ },
17
+ };
18
+ },
19
+ list: function (_a) {
20
+ var theme = _a.theme;
21
+ return {
22
+ padding: theme.spacing(1, 0),
23
+ };
24
+ },
25
+ },
26
+ };
27
+ exports.default = exports.MuiMenu;
@@ -0,0 +1,4 @@
1
+ import { Components } from '@mui/material';
2
+ import type { Theme } from '../baseTheme';
3
+ export declare const MuiMenuItem: Components<Theme>['MuiMenuItem'];
4
+ export default MuiMenuItem;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MuiMenuItem = void 0;
4
+ exports.MuiMenuItem = {
5
+ styleOverrides: {
6
+ root: function (_a) {
7
+ var theme = _a.theme;
8
+ return {
9
+ '&:hover': {
10
+ backgroundColor: theme.palette.background.elementHover,
11
+ },
12
+ };
13
+ },
14
+ },
15
+ };
16
+ exports.default = exports.MuiMenuItem;
@@ -21,6 +21,8 @@ var MuiTableHead_1 = require("./MuiTableHead");
21
21
  var MuiPickersDay_1 = require("./MuiPickersDay");
22
22
  var MuiCalendarPicker_1 = require("./MuiCalendarPicker");
23
23
  var MuiYearPicker_1 = require("./MuiYearPicker");
24
+ var MuiMenu_1 = require("./MuiMenu");
25
+ var MuiMenuItem_1 = require("./MuiMenuItem");
24
26
  var MuiCircularProgress_1 = require("./MuiCircularProgress");
25
27
  var getMuiCssBaseline = function (fontUrls) { return ({
26
28
  styleOverrides: "\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 300;\n font-display: swap;\n src: url(".concat(fontUrls.light.woff2, ") format('woff2'), url(").concat(fontUrls.light.woff, ") format('woff');\n }\n @font-face { \n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 400;\n font-display: swap;\n src: url(").concat(fontUrls.regular.woff2, ") format('woff2'), url(").concat(fontUrls.regular.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 500;\n font-display: swap;\n src: url(").concat(fontUrls.medium.woff2, ") format('woff2'), url(").concat(fontUrls.medium.woff, ") format('woff');\n }\n @font-face {\n font-family: 'Ubuntu';\n font-style: 'normal';\n font-weight: 700;\n font-display: swap;\n src: url(").concat(fontUrls.bold.woff2, ") format('woff2'), url(").concat(fontUrls.bold.woff, ") format('woff');\n }\n "),
@@ -35,41 +37,6 @@ var MuiRadio = {
35
37
  disableRipple: true,
36
38
  },
37
39
  };
38
- var MuiMenu = {
39
- defaultProps: {
40
- autoFocus: false,
41
- },
42
- styleOverrides: {
43
- paper: function (_a) {
44
- var theme = _a.theme;
45
- return {
46
- marginTop: theme.spacing(2),
47
- '&.MuiPaper-root': {
48
- borderRadius: theme.shape.small,
49
- boxShadow: theme.elevation[200],
50
- },
51
- };
52
- },
53
- list: function (_a) {
54
- var theme = _a.theme;
55
- return {
56
- padding: theme.spacing(1, 0),
57
- };
58
- },
59
- },
60
- };
61
- var MuiMenuItem = {
62
- styleOverrides: {
63
- root: function (_a) {
64
- var theme = _a.theme;
65
- return {
66
- '&:hover': {
67
- backgroundColor: theme.palette.background.elementHover,
68
- },
69
- };
70
- },
71
- },
72
- };
73
40
  var getComponents = function (fontUrls) { return ({
74
41
  MuiCssBaseline: getMuiCssBaseline(fontUrls),
75
42
  MuiButton: MuiButton_1.MuiButton,
@@ -83,8 +50,8 @@ var getComponents = function (fontUrls) { return ({
83
50
  MuiFormHelperText: MuiFormHelperText_1.MuiFormHelperText,
84
51
  MuiAutocomplete: MuiAutocomplete_1.MuiAutocomplete,
85
52
  MuiCheckbox: MuiCheckbox,
86
- MuiMenu: MuiMenu,
87
- MuiMenuItem: MuiMenuItem,
53
+ MuiMenu: MuiMenu_1.MuiMenu,
54
+ MuiMenuItem: MuiMenuItem_1.MuiMenuItem,
88
55
  MuiRadio: MuiRadio,
89
56
  MuiDialog: MuiDialog_1.MuiDialog,
90
57
  MuiDialogTitle: MuiDialogTitle_1.MuiDialogTitle,