@astral/ui 4.77.0 → 4.77.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Avatar from '@mui/material/Avatar';
|
|
1
|
+
import Avatar, { avatarClasses } from '@mui/material/Avatar';
|
|
2
2
|
import { styled } from '../styled/styled';
|
|
3
3
|
const getFont = (size) => {
|
|
4
4
|
if (size === 'sm') {
|
|
@@ -14,4 +14,8 @@ export const StyledAvatar = styled(Avatar, {
|
|
|
14
14
|
}) `
|
|
15
15
|
font-size: ${({ theme, $size }) => theme.typography[getFont($size)].fontSize};
|
|
16
16
|
font-weight: ${({ theme, $size }) => theme.typography[getFont($size)].fontWeight};
|
|
17
|
+
|
|
18
|
+
& .${avatarClasses.img} {
|
|
19
|
+
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
20
|
+
}
|
|
17
21
|
`;
|
|
@@ -25,12 +25,16 @@ export const StyledPageContent = styled(PageContent) `
|
|
|
25
25
|
|
|
26
26
|
border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
${({ theme }) => theme.breakpoints.up('sm')} {
|
|
29
|
+
.${pageContentClassnames.content} {
|
|
30
30
|
overflow: unset;
|
|
31
31
|
|
|
32
32
|
height: auto;
|
|
33
33
|
padding: 0;
|
|
34
|
+
|
|
35
|
+
&.${pageContentClassnames.contentHasHeader}, &.${pageContentClassnames.hasAside} {
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
34
38
|
}
|
|
35
39
|
}
|
|
36
40
|
|
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
26
|
exports.StyledAvatar = void 0;
|
|
7
|
-
const Avatar_1 =
|
|
27
|
+
const Avatar_1 = __importStar(require("@mui/material/Avatar"));
|
|
8
28
|
const styled_1 = require("../styled/styled");
|
|
9
29
|
const getFont = (size) => {
|
|
10
30
|
if (size === 'sm') {
|
|
@@ -20,4 +40,8 @@ exports.StyledAvatar = (0, styled_1.styled)(Avatar_1.default, {
|
|
|
20
40
|
}) `
|
|
21
41
|
font-size: ${({ theme, $size }) => theme.typography[getFont($size)].fontSize};
|
|
22
42
|
font-weight: ${({ theme, $size }) => theme.typography[getFont($size)].fontWeight};
|
|
43
|
+
|
|
44
|
+
& .${Avatar_1.avatarClasses.img} {
|
|
45
|
+
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
46
|
+
}
|
|
23
47
|
`;
|
|
@@ -28,12 +28,16 @@ exports.StyledPageContent = (0, styled_1.styled)(PageContent_1.PageContent) `
|
|
|
28
28
|
|
|
29
29
|
border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
${({ theme }) => theme.breakpoints.up('sm')} {
|
|
32
|
+
.${PageContent_1.pageContentClassnames.content} {
|
|
33
33
|
overflow: unset;
|
|
34
34
|
|
|
35
35
|
height: auto;
|
|
36
36
|
padding: 0;
|
|
37
|
+
|
|
38
|
+
&.${PageContent_1.pageContentClassnames.contentHasHeader}, &.${PageContent_1.pageContentClassnames.hasAside} {
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|