@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.
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +13 -1
- package/Button/types.d.ts +2 -0
- package/IconButton/styled.d.ts +2 -0
- package/ListItemIcon/styled.js +1 -1
- package/Menu/Menu.d.ts +2 -2
- package/Menu/Menu.js +5 -14
- package/Menu/index.d.ts +1 -0
- package/Menu/index.js +1 -0
- package/Menu/types.d.ts +1 -0
- package/Menu/types.js +2 -0
- package/MenuGroup/MenuGroup.d.ts +3 -0
- package/MenuGroup/MenuGroup.js +23 -0
- package/MenuGroup/index.d.ts +1 -0
- package/MenuGroup/index.js +13 -0
- package/MenuGroup/stories/Icons.d.ts +8 -0
- package/MenuGroup/stories/Icons.js +29 -0
- package/MenuGroup/stories/styled.d.ts +50 -0
- package/MenuGroup/stories/styled.js +20 -0
- package/MenuGroup/styled.d.ts +20 -0
- package/MenuGroup/styled.js +24 -0
- package/MenuGroup/types.d.ts +8 -0
- package/MenuGroup/types.js +2 -0
- package/MenuItem/MenuItem.d.ts +1 -1
- package/MenuItem/MenuItem.js +2 -2
- package/MenuItem/styled.d.ts +31 -0
- package/MenuItem/styled.js +14 -0
- package/MenuItem/types.d.ts +1 -0
- package/MenuItem/types.js +2 -0
- package/Notification/Notification.d.ts +6 -0
- package/Notification/Notification.js +42 -0
- package/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
- package/Notification/NotificationContainer/NotificationContainer.js +24 -0
- package/Notification/NotificationContainer/index.d.ts +1 -0
- package/Notification/NotificationContainer/index.js +13 -0
- package/Notification/NotificationContainer/styled.d.ts +5 -0
- package/Notification/NotificationContainer/styled.js +10 -0
- package/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
- package/Notification/NotificationTemplate/NotificationTemplate.js +34 -0
- package/Notification/NotificationTemplate/index.d.ts +1 -0
- package/Notification/NotificationTemplate/index.js +13 -0
- package/Notification/NotificationTemplate/styled.d.ts +83 -0
- package/Notification/NotificationTemplate/styled.js +56 -0
- package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
- package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +11 -0
- package/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
- package/Notification/NotificationTemplate/utils/getActionsDirection/index.js +13 -0
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +31 -0
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +13 -0
- package/Notification/NotificationTemplate/utils/index.d.ts +2 -0
- package/Notification/NotificationTemplate/utils/index.js +14 -0
- package/Notification/constants/defaultNotificationProps.d.ts +3 -0
- package/Notification/constants/defaultNotificationProps.js +6 -0
- package/Notification/constants/index.d.ts +3 -0
- package/Notification/constants/index.js +15 -0
- package/Notification/constants/notificationVariant.d.ts +6 -0
- package/Notification/constants/notificationVariant.js +23 -0
- package/Notification/constants/positions.d.ts +8 -0
- package/Notification/constants/positions.js +5 -0
- package/Notification/index.d.ts +5 -0
- package/Notification/index.js +17 -0
- package/Notification/styled.d.ts +77 -0
- package/Notification/styled.js +34 -0
- package/Notification/types.d.ts +27 -0
- package/Notification/types.js +2 -0
- package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
- package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +17 -0
- package/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
- package/Notification/utils/getNotificationIconByVariant/index.js +13 -0
- package/Notification/utils/index.d.ts +2 -0
- package/Notification/utils/index.js +14 -0
- package/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
- package/Notification/utils/notificationTemplatePropsCreator/index.js +13 -0
- package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
- package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +18 -0
- package/Placeholder/styled.js +2 -2
- package/Product/Product.d.ts +4 -0
- package/Product/Product.js +33 -0
- package/Product/index.d.ts +2 -0
- package/Product/index.js +14 -0
- package/Product/types.d.ts +6 -0
- package/Product/types.js +2 -0
- package/Profile/Profile.d.ts +4 -0
- package/Profile/Profile.js +36 -0
- package/Profile/index.d.ts +2 -0
- package/Profile/index.js +14 -0
- package/Profile/styled.d.ts +40 -0
- package/Profile/styled.js +50 -0
- package/Profile/types.d.ts +20 -0
- package/Profile/types.js +2 -0
- package/Typography/index.d.ts +1 -0
- package/Typography/index.js +1 -0
- package/esm/Button/Button.d.ts +1 -1
- package/esm/Button/Button.js +13 -1
- package/esm/Button/types.d.ts +2 -0
- package/esm/IconButton/styled.d.ts +2 -0
- package/esm/ListItemIcon/styled.js +1 -1
- package/esm/Menu/Menu.d.ts +2 -2
- package/esm/Menu/Menu.js +3 -15
- package/esm/Menu/index.d.ts +1 -0
- package/esm/Menu/index.js +1 -0
- package/esm/Menu/types.d.ts +1 -0
- package/esm/Menu/types.js +1 -0
- package/esm/MenuGroup/MenuGroup.d.ts +3 -0
- package/esm/MenuGroup/MenuGroup.js +19 -0
- package/esm/MenuGroup/index.d.ts +1 -0
- package/esm/MenuGroup/index.js +1 -0
- package/esm/MenuGroup/stories/Icons.d.ts +8 -0
- package/esm/MenuGroup/stories/Icons.js +19 -0
- package/esm/MenuGroup/stories/styled.d.ts +50 -0
- package/esm/MenuGroup/stories/styled.js +17 -0
- package/esm/MenuGroup/styled.d.ts +20 -0
- package/esm/MenuGroup/styled.js +21 -0
- package/esm/MenuGroup/types.d.ts +8 -0
- package/esm/MenuGroup/types.js +1 -0
- package/esm/MenuItem/MenuItem.d.ts +1 -1
- package/esm/MenuItem/MenuItem.js +2 -2
- package/esm/MenuItem/styled.d.ts +31 -0
- package/esm/MenuItem/styled.js +11 -0
- package/esm/MenuItem/types.d.ts +1 -0
- package/esm/MenuItem/types.js +1 -0
- package/esm/Notification/Notification.d.ts +6 -0
- package/esm/Notification/Notification.js +39 -0
- package/esm/Notification/NotificationContainer/NotificationContainer.d.ts +5 -0
- package/esm/Notification/NotificationContainer/NotificationContainer.js +20 -0
- package/esm/Notification/NotificationContainer/index.d.ts +1 -0
- package/esm/Notification/NotificationContainer/index.js +1 -0
- package/esm/Notification/NotificationContainer/styled.d.ts +5 -0
- package/esm/Notification/NotificationContainer/styled.js +7 -0
- package/esm/Notification/NotificationTemplate/NotificationTemplate.d.ts +13 -0
- package/esm/Notification/NotificationTemplate/NotificationTemplate.js +30 -0
- package/esm/Notification/NotificationTemplate/index.d.ts +1 -0
- package/esm/Notification/NotificationTemplate/index.js +1 -0
- package/esm/Notification/NotificationTemplate/styled.d.ts +83 -0
- package/esm/Notification/NotificationTemplate/styled.js +53 -0
- package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.d.ts +2 -0
- package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +7 -0
- package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.d.ts +1 -0
- package/esm/Notification/NotificationTemplate/utils/getActionsDirection/index.js +1 -0
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.d.ts +6 -0
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +27 -0
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.d.ts +1 -0
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/index.js +1 -0
- package/esm/Notification/NotificationTemplate/utils/index.d.ts +2 -0
- package/esm/Notification/NotificationTemplate/utils/index.js +2 -0
- package/esm/Notification/constants/defaultNotificationProps.d.ts +3 -0
- package/esm/Notification/constants/defaultNotificationProps.js +3 -0
- package/esm/Notification/constants/index.d.ts +3 -0
- package/esm/Notification/constants/index.js +3 -0
- package/esm/Notification/constants/notificationVariant.d.ts +6 -0
- package/esm/Notification/constants/notificationVariant.js +20 -0
- package/esm/Notification/constants/positions.d.ts +8 -0
- package/esm/Notification/constants/positions.js +2 -0
- package/esm/Notification/index.d.ts +5 -0
- package/esm/Notification/index.js +5 -0
- package/esm/Notification/styled.d.ts +77 -0
- package/esm/Notification/styled.js +31 -0
- package/esm/Notification/types.d.ts +27 -0
- package/esm/Notification/types.js +1 -0
- package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.d.ts +2 -0
- package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +13 -0
- package/esm/Notification/utils/getNotificationIconByVariant/index.d.ts +1 -0
- package/esm/Notification/utils/getNotificationIconByVariant/index.js +1 -0
- package/esm/Notification/utils/index.d.ts +2 -0
- package/esm/Notification/utils/index.js +2 -0
- package/esm/Notification/utils/notificationTemplatePropsCreator/index.d.ts +1 -0
- package/esm/Notification/utils/notificationTemplatePropsCreator/index.js +1 -0
- package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.d.ts +4 -0
- package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +14 -0
- package/esm/Placeholder/styled.js +2 -2
- package/esm/Product/Product.d.ts +4 -0
- package/esm/Product/Product.js +30 -0
- package/esm/Product/index.d.ts +2 -0
- package/esm/Product/index.js +2 -0
- package/esm/Product/types.d.ts +6 -0
- package/esm/Product/types.js +1 -0
- package/esm/Profile/Profile.d.ts +4 -0
- package/esm/Profile/Profile.js +33 -0
- package/esm/Profile/index.d.ts +2 -0
- package/esm/Profile/index.js +2 -0
- package/esm/Profile/styled.d.ts +40 -0
- package/esm/Profile/styled.js +47 -0
- package/esm/Profile/types.d.ts +20 -0
- package/esm/Profile/types.js +1 -0
- package/esm/Typography/index.d.ts +1 -0
- package/esm/Typography/index.js +1 -0
- package/esm/index.d.ts +3 -0
- package/esm/index.js +3 -0
- package/esm/theme/components/MuiMenu.d.ts +4 -0
- package/esm/theme/components/MuiMenu.js +24 -0
- package/esm/theme/components/MuiMenuItem.d.ts +4 -0
- package/esm/theme/components/MuiMenuItem.js +13 -0
- package/esm/theme/components/components.js +2 -35
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +4 -3
- package/theme/components/MuiMenu.d.ts +4 -0
- package/theme/components/MuiMenu.js +27 -0
- package/theme/components/MuiMenuItem.d.ts +4 -0
- package/theme/components/MuiMenuItem.js +16 -0
- package/theme/components/components.js +4 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/Typography/index.js
CHANGED
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,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;
|
|
@@ -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.
|
|
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.
|
|
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,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,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,
|