@astral/ui 0.8.1 → 0.10.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/Badge/styled.js +6 -6
- package/Button/styled.js +3 -3
- package/ButtonBase/styled.js +13 -13
- package/Checkbox/styled.js +1 -1
- package/DashboardLayout/Header/styled.js +10 -10
- package/DashboardLayout/SideBar/styled.js +3 -3
- package/Dialog/Dialog.d.ts +3 -0
- package/Dialog/Dialog.js +39 -0
- package/Dialog/index.d.ts +2 -0
- package/Dialog/index.js +14 -0
- package/Dialog/types.d.ts +7 -0
- package/Dialog/types.js +2 -0
- package/DialogActions/DialogActions.d.ts +3 -0
- package/DialogActions/DialogActions.js +33 -0
- package/DialogActions/index.d.ts +1 -0
- package/DialogActions/index.js +13 -0
- package/DialogContent/DialogContent.d.ts +1 -0
- package/DialogContent/DialogContent.js +5 -0
- package/DialogContent/index.d.ts +1 -0
- package/DialogContent/index.js +13 -0
- package/DialogContentText/DialogContentText.d.ts +1 -0
- package/DialogContentText/DialogContentText.js +5 -0
- package/DialogContentText/index.d.ts +1 -0
- package/DialogContentText/index.js +13 -0
- package/DialogTitle/DialogTitle.d.ts +3 -0
- package/DialogTitle/DialogTitle.js +34 -0
- package/DialogTitle/index.d.ts +2 -0
- package/DialogTitle/index.js +14 -0
- package/DialogTitle/types.d.ts +4 -0
- package/DialogTitle/types.js +2 -0
- package/FormControlLabel/styled.js +1 -1
- package/IconButton/styled.js +1 -1
- package/List/styled.js +1 -1
- package/ListItem/styled.js +3 -3
- package/ListItemButton/styled.js +3 -3
- package/MenuList/styled.js +1 -1
- package/Radio/styled.js +1 -1
- package/Select/styled.js +2 -2
- package/Tag/styled.js +5 -5
- package/Tooltip/styled.js +6 -6
- package/esm/Badge/styled.js +6 -6
- package/esm/Button/styled.js +3 -3
- package/esm/ButtonBase/styled.js +13 -13
- package/esm/Checkbox/styled.js +1 -1
- package/esm/DashboardLayout/Header/styled.js +10 -10
- package/esm/DashboardLayout/SideBar/styled.js +3 -3
- package/esm/Dialog/Dialog.d.ts +3 -0
- package/esm/Dialog/Dialog.js +35 -0
- package/esm/Dialog/index.d.ts +2 -0
- package/esm/Dialog/index.js +2 -0
- package/esm/Dialog/types.d.ts +7 -0
- package/esm/Dialog/types.js +1 -0
- package/esm/DialogActions/DialogActions.d.ts +3 -0
- package/esm/DialogActions/DialogActions.js +29 -0
- package/esm/DialogActions/index.d.ts +1 -0
- package/esm/DialogActions/index.js +1 -0
- package/esm/DialogContent/DialogContent.d.ts +1 -0
- package/esm/DialogContent/DialogContent.js +1 -0
- package/esm/DialogContent/index.d.ts +1 -0
- package/esm/DialogContent/index.js +1 -0
- package/esm/DialogContentText/DialogContentText.d.ts +1 -0
- package/esm/DialogContentText/DialogContentText.js +1 -0
- package/esm/DialogContentText/index.d.ts +1 -0
- package/esm/DialogContentText/index.js +1 -0
- package/esm/DialogTitle/DialogTitle.d.ts +3 -0
- package/esm/DialogTitle/DialogTitle.js +30 -0
- package/esm/DialogTitle/index.d.ts +2 -0
- package/esm/DialogTitle/index.js +2 -0
- package/esm/DialogTitle/types.d.ts +4 -0
- package/esm/DialogTitle/types.js +1 -0
- package/esm/FormControlLabel/styled.js +1 -1
- package/esm/IconButton/styled.js +1 -1
- package/esm/List/styled.js +1 -1
- package/esm/ListItem/styled.js +3 -3
- package/esm/ListItemButton/styled.js +3 -3
- package/esm/MenuList/styled.js +1 -1
- package/esm/Radio/styled.js +1 -1
- package/esm/Select/styled.js +2 -2
- package/esm/Tag/styled.js +5 -5
- package/esm/Tooltip/styled.js +6 -6
- package/esm/index.d.ts +5 -0
- package/esm/index.js +5 -0
- package/esm/theme/components/MuiDialog.d.ts +3 -0
- package/esm/theme/components/MuiDialog.js +16 -0
- package/esm/theme/components/MuiDialogActions.d.ts +3 -0
- package/esm/theme/components/MuiDialogActions.js +13 -0
- package/esm/theme/components/MuiDialogContent.d.ts +3 -0
- package/esm/theme/components/MuiDialogContent.js +10 -0
- package/esm/theme/components/MuiDialogTitle.d.ts +3 -0
- package/esm/theme/components/MuiDialogTitle.js +19 -0
- package/esm/theme/components/components.js +8 -0
- package/esm/theme/palette/palette.d.ts +1 -0
- package/esm/theme/palette/palette.js +1 -0
- package/index.d.ts +5 -0
- package/index.js +5 -0
- package/package.json +12 -2
- package/theme/components/MuiDialog.d.ts +3 -0
- package/theme/components/MuiDialog.js +19 -0
- package/theme/components/MuiDialogActions.d.ts +3 -0
- package/theme/components/MuiDialogActions.js +16 -0
- package/theme/components/MuiDialogContent.d.ts +3 -0
- package/theme/components/MuiDialogContent.js +13 -0
- package/theme/components/MuiDialogTitle.d.ts +3 -0
- package/theme/components/MuiDialogTitle.js +22 -0
- package/theme/components/components.js +8 -0
- package/theme/palette/palette.d.ts +1 -0
- package/theme/palette/palette.js +1 -0
package/esm/Tag/styled.js
CHANGED
|
@@ -111,18 +111,18 @@ export var StyledTag = styled(Chip, {
|
|
|
111
111
|
shouldForwardProp: function (prop) {
|
|
112
112
|
return prop !== 'customColor' && prop !== 'customVariant' && prop !== 'rounded';
|
|
113
113
|
},
|
|
114
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
114
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"], ["\n height: 20px;\n\n font-size: 14px;\n\n background-color: ", ";\n border-radius: ", ";\n\n user-select: none;\n\n &:hover {\n color: ", ";\n\n background-color: ", ";\n }\n\n &:active {\n color: ", ";\n\n background-color: ", ";\n }\n\n .MuiChip-label {\n padding: ", ";\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n .MuiChip-deleteIcon {\n width: 20px;\n height: 20px;\n margin: 0;\n\n color: ", ";\n\n background: ", ";\n border-radius: ", ";\n\n &:hover {\n color: ", ";\n\n background: ", ";\n }\n\n &:active {\n color: ", ";\n\n background: ", ";\n }\n }\n\n .MuiChip-avatar {\n width: 16px;\n height: 16px;\n margin: 2px;\n }\n\n .MuiChip-icon {\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
|
|
115
115
|
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT }));
|
|
116
|
-
}, function (props) {
|
|
116
|
+
}, function (props) { return getShape(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) {
|
|
117
117
|
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.HOVER }));
|
|
118
|
-
}, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.
|
|
118
|
+
}, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (props) {
|
|
119
119
|
return getBgColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE }));
|
|
120
|
-
}, function (props) { return
|
|
120
|
+
}, function (props) { return getTagLabelPadding(__assign({}, props)); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.DEFAULT })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.HOVER })); }, function (props) { return getColor(__assign(__assign({}, props), { tagState: TagStates.ACTIVE })); }, function (_a) {
|
|
121
121
|
var theme = _a.theme;
|
|
122
122
|
return theme.palette.grey[800];
|
|
123
123
|
}, function (props) {
|
|
124
124
|
return getDeleteIconBgColor(__assign(__assign({}, props), { iconState: TagStates.DEFAULT }));
|
|
125
|
-
}, function (_a) {
|
|
125
|
+
}, function (props) { return getDeleteIconBorderRadius(__assign({}, props)); }, function (_a) {
|
|
126
126
|
var theme = _a.theme;
|
|
127
127
|
return theme.palette.grey[800];
|
|
128
128
|
}, function (props) {
|
package/esm/Tooltip/styled.js
CHANGED
|
@@ -31,12 +31,9 @@ import { TooltipSizes } from './constants';
|
|
|
31
31
|
export var StyledTooltip = styled(function (_a) {
|
|
32
32
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
33
33
|
return (_jsx(Tooltip, __assign({}, props, { classes: { popper: className } }), void 0));
|
|
34
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n
|
|
34
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"], ["\n & .MuiTooltip-tooltip {\n margin: 0;\n\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n }\n\n & .MuiTooltip-arrow {\n color: ", ";\n }\n\n &&[data-popper-placement*='top'] .MuiTooltip-tooltip {\n margin-bottom: ", ";\n }\n\n &&[data-popper-placement*='bottom'] .MuiTooltip-tooltip {\n margin-top: ", ";\n }\n\n &&[data-popper-placement*='left'] .MuiTooltip-tooltip {\n margin-right: ", ";\n }\n\n &&[data-popper-placement*='right'] .MuiTooltip-tooltip {\n margin-left: ", ";\n }\n"])), function (_a) {
|
|
35
35
|
var theme = _a.theme;
|
|
36
|
-
return theme.
|
|
37
|
-
}, function (_a) {
|
|
38
|
-
var theme = _a.theme;
|
|
39
|
-
return theme.shape.small;
|
|
36
|
+
return theme.typography.fontWeightRegular;
|
|
40
37
|
}, function (_a) {
|
|
41
38
|
var size = _a.size, theme = _a.theme;
|
|
42
39
|
return size === TooltipSizes.SMALL
|
|
@@ -49,7 +46,10 @@ export var StyledTooltip = styled(function (_a) {
|
|
|
49
46
|
: theme.typography.ui.lineHeight;
|
|
50
47
|
}, function (_a) {
|
|
51
48
|
var theme = _a.theme;
|
|
52
|
-
return theme.
|
|
49
|
+
return theme.palette.grey[900];
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return theme.shape.small;
|
|
53
53
|
}, function (_a) {
|
|
54
54
|
var theme = _a.theme;
|
|
55
55
|
return theme.palette.grey[900];
|
package/esm/index.d.ts
CHANGED
|
@@ -22,3 +22,8 @@ export * from './TextArea';
|
|
|
22
22
|
export * from './DashboardLayout';
|
|
23
23
|
export * from './Autocomplete';
|
|
24
24
|
export * from './Select';
|
|
25
|
+
export * from './Dialog';
|
|
26
|
+
export * from './DialogTitle';
|
|
27
|
+
export * from './DialogContent';
|
|
28
|
+
export * from './DialogContentText';
|
|
29
|
+
export * from './DialogActions';
|
package/esm/index.js
CHANGED
|
@@ -22,3 +22,8 @@ export * from './TextArea';
|
|
|
22
22
|
export * from './DashboardLayout';
|
|
23
23
|
export * from './Autocomplete';
|
|
24
24
|
export * from './Select';
|
|
25
|
+
export * from './Dialog';
|
|
26
|
+
export * from './DialogTitle';
|
|
27
|
+
export * from './DialogContent';
|
|
28
|
+
export * from './DialogContentText';
|
|
29
|
+
export * from './DialogActions';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var MuiDialog = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return {
|
|
6
|
+
background: theme.palette.background.modalShadow,
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
paper: function (_a) {
|
|
10
|
+
var theme = _a.theme;
|
|
11
|
+
return {
|
|
12
|
+
borderRadius: theme.shape.small,
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export var MuiDialogTitle = {
|
|
2
|
+
styleOverrides: {
|
|
3
|
+
root: function (_a) {
|
|
4
|
+
var theme = _a.theme;
|
|
5
|
+
return {
|
|
6
|
+
padding: theme.spacing(6),
|
|
7
|
+
fontSize: theme.typography.h4.fontSize,
|
|
8
|
+
fontWeight: theme.typography.h4.fontWeight,
|
|
9
|
+
lineHeight: theme.typography.h4.lineHeight,
|
|
10
|
+
'& .ButtonUnstyled-root': {
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
right: theme.spacing(5),
|
|
13
|
+
top: theme.spacing(5),
|
|
14
|
+
color: theme.palette.grey[800],
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -6,6 +6,10 @@ import { MuiInputLabel } from './MuiInputLabel';
|
|
|
6
6
|
import { MuiOutlinedInput } from './MuiOutlinedInput';
|
|
7
7
|
import { MuiTypography } from './MuiTypography';
|
|
8
8
|
import { MuiAutocomplete } from './MuiAutocomplete';
|
|
9
|
+
import { MuiDialog } from './MuiDialog';
|
|
10
|
+
import { MuiDialogTitle } from './MuiDialogTitle';
|
|
11
|
+
import { MuiDialogContent } from './MuiDialogContent';
|
|
12
|
+
import { MuiDialogActions } from './MuiDialogActions';
|
|
9
13
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
10
14
|
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 "),
|
|
11
15
|
}); };
|
|
@@ -68,4 +72,8 @@ export var getComponents = function (fontUrls) { return ({
|
|
|
68
72
|
MuiMenu: MuiMenu,
|
|
69
73
|
MuiMenuItem: MuiMenuItem,
|
|
70
74
|
MuiRadio: MuiRadio,
|
|
75
|
+
MuiDialog: MuiDialog,
|
|
76
|
+
MuiDialogTitle: MuiDialogTitle,
|
|
77
|
+
MuiDialogContent: MuiDialogContent,
|
|
78
|
+
MuiDialogActions: MuiDialogActions,
|
|
71
79
|
}); };
|
|
@@ -16,6 +16,7 @@ export declare type PrimaryColorOptions = PaletteColorOptions & Color;
|
|
|
16
16
|
export declare type Background = TypeBackground & {
|
|
17
17
|
element: string;
|
|
18
18
|
elementHover: string;
|
|
19
|
+
modalShadow: string;
|
|
19
20
|
};
|
|
20
21
|
declare type PaletteOptions = MuiPaletteOptions & {
|
|
21
22
|
red: Color;
|
package/index.d.ts
CHANGED
|
@@ -22,3 +22,8 @@ export * from './TextArea';
|
|
|
22
22
|
export * from './DashboardLayout';
|
|
23
23
|
export * from './Autocomplete';
|
|
24
24
|
export * from './Select';
|
|
25
|
+
export * from './Dialog';
|
|
26
|
+
export * from './DialogTitle';
|
|
27
|
+
export * from './DialogContent';
|
|
28
|
+
export * from './DialogContentText';
|
|
29
|
+
export * from './DialogActions';
|
package/index.js
CHANGED
|
@@ -34,3 +34,8 @@ __exportStar(require("./TextArea"), exports);
|
|
|
34
34
|
__exportStar(require("./DashboardLayout"), exports);
|
|
35
35
|
__exportStar(require("./Autocomplete"), exports);
|
|
36
36
|
__exportStar(require("./Select"), exports);
|
|
37
|
+
__exportStar(require("./Dialog"), exports);
|
|
38
|
+
__exportStar(require("./DialogTitle"), exports);
|
|
39
|
+
__exportStar(require("./DialogContent"), exports);
|
|
40
|
+
__exportStar(require("./DialogContentText"), exports);
|
|
41
|
+
__exportStar(require("./DialogActions"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.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.9.0",
|
|
12
12
|
"@emotion/cache": "11.7.1",
|
|
13
13
|
"@emotion/react": "11.8.1",
|
|
14
14
|
"@emotion/server": "11.4.0",
|
|
@@ -21,6 +21,16 @@
|
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": "^17.0.0"
|
|
23
23
|
},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"import": "./esm/index.js",
|
|
27
|
+
"require": "./cjs/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./server": {
|
|
30
|
+
"import": "./esm/server/index.js",
|
|
31
|
+
"require": "./cjs/server/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
24
34
|
"author": "Astral.Soft",
|
|
25
35
|
"license": "MIT",
|
|
26
36
|
"repository": {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiDialog = void 0;
|
|
4
|
+
exports.MuiDialog = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
background: theme.palette.background.modalShadow,
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
paper: function (_a) {
|
|
13
|
+
var theme = _a.theme;
|
|
14
|
+
return {
|
|
15
|
+
borderRadius: theme.shape.small,
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiDialogActions = void 0;
|
|
4
|
+
exports.MuiDialogActions = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
padding: theme.spacing(4, 6, 6, 6),
|
|
10
|
+
'>div': {
|
|
11
|
+
width: '100%',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiDialogContent = void 0;
|
|
4
|
+
exports.MuiDialogContent = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
padding: theme.spacing(0, 6),
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MuiDialogTitle = void 0;
|
|
4
|
+
exports.MuiDialogTitle = {
|
|
5
|
+
styleOverrides: {
|
|
6
|
+
root: function (_a) {
|
|
7
|
+
var theme = _a.theme;
|
|
8
|
+
return {
|
|
9
|
+
padding: theme.spacing(6),
|
|
10
|
+
fontSize: theme.typography.h4.fontSize,
|
|
11
|
+
fontWeight: theme.typography.h4.fontWeight,
|
|
12
|
+
lineHeight: theme.typography.h4.lineHeight,
|
|
13
|
+
'& .ButtonUnstyled-root': {
|
|
14
|
+
position: 'absolute',
|
|
15
|
+
right: theme.spacing(5),
|
|
16
|
+
top: theme.spacing(5),
|
|
17
|
+
color: theme.palette.grey[800],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -9,6 +9,10 @@ var MuiInputLabel_1 = require("./MuiInputLabel");
|
|
|
9
9
|
var MuiOutlinedInput_1 = require("./MuiOutlinedInput");
|
|
10
10
|
var MuiTypography_1 = require("./MuiTypography");
|
|
11
11
|
var MuiAutocomplete_1 = require("./MuiAutocomplete");
|
|
12
|
+
var MuiDialog_1 = require("./MuiDialog");
|
|
13
|
+
var MuiDialogTitle_1 = require("./MuiDialogTitle");
|
|
14
|
+
var MuiDialogContent_1 = require("./MuiDialogContent");
|
|
15
|
+
var MuiDialogActions_1 = require("./MuiDialogActions");
|
|
12
16
|
var getMuiCssBaseline = function (fontUrls) { return ({
|
|
13
17
|
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 "),
|
|
14
18
|
}); };
|
|
@@ -71,5 +75,9 @@ var getComponents = function (fontUrls) { return ({
|
|
|
71
75
|
MuiMenu: MuiMenu,
|
|
72
76
|
MuiMenuItem: MuiMenuItem,
|
|
73
77
|
MuiRadio: MuiRadio,
|
|
78
|
+
MuiDialog: MuiDialog_1.MuiDialog,
|
|
79
|
+
MuiDialogTitle: MuiDialogTitle_1.MuiDialogTitle,
|
|
80
|
+
MuiDialogContent: MuiDialogContent_1.MuiDialogContent,
|
|
81
|
+
MuiDialogActions: MuiDialogActions_1.MuiDialogActions,
|
|
74
82
|
}); };
|
|
75
83
|
exports.getComponents = getComponents;
|
|
@@ -16,6 +16,7 @@ export declare type PrimaryColorOptions = PaletteColorOptions & Color;
|
|
|
16
16
|
export declare type Background = TypeBackground & {
|
|
17
17
|
element: string;
|
|
18
18
|
elementHover: string;
|
|
19
|
+
modalShadow: string;
|
|
19
20
|
};
|
|
20
21
|
declare type PaletteOptions = MuiPaletteOptions & {
|
|
21
22
|
red: Color;
|