@selfcommunity/react-ui 0.7.0-alpha.113 → 0.7.0-alpha.114
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/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +8 -9
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js.map +1 -1
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -7
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js.map +1 -1
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +5 -4
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js.map +1 -1
- package/lib/cjs/components/PrivateMessageThread/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +5 -7
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js.map +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -9
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +8 -9
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js.map +1 -1
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -7
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js.map +1 -1
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +6 -5
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js.map +1 -1
- package/lib/esm/components/PrivateMessageThread/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +6 -8
- package/lib/esm/components/PrivateMessageThread/Skeleton.js.map +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -9
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
- package/lib/umd/react-ui.js +1 -1
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Widget from '../Widget';
|
|
3
3
|
import { styled } from '@mui/material/styles';
|
|
4
|
-
import { CardContent } from '@mui/material';
|
|
4
|
+
import { CardContent, ListSubheader, Skeleton } from '@mui/material';
|
|
5
5
|
import List from '@mui/material/List';
|
|
6
|
-
import
|
|
7
|
-
import Skeleton from '@mui/material/Skeleton';
|
|
8
|
-
import ListItemText from '@mui/material/ListItemText';
|
|
6
|
+
import PrivateMessageThreadItemSkeleton from '../PrivateMessageThreadItem/Skeleton';
|
|
9
7
|
const PREFIX = 'SCPrivateMessageThreadSkeleton';
|
|
10
8
|
const classes = {
|
|
11
9
|
root: `${PREFIX}-root`,
|
|
@@ -40,9 +38,9 @@ const Root = styled(Widget, {
|
|
|
40
38
|
export default function PrivateMessageThreadSkeleton(props) {
|
|
41
39
|
return (React.createElement(Root, Object.assign({ className: classes.root }, props),
|
|
42
40
|
React.createElement(CardContent, null,
|
|
43
|
-
React.createElement(List, { className: classes.list },
|
|
44
|
-
React.createElement(
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
React.createElement(List, { className: classes.list },
|
|
42
|
+
React.createElement(ListSubheader, { sx: { display: 'flex', justifyContent: 'center' } },
|
|
43
|
+
React.createElement(Skeleton, { animation: "wave", height: 40, width: 80, style: { borderRadius: 20 } })),
|
|
44
|
+
[...Array(4)].map((item, index) => (React.createElement(PrivateMessageThreadItemSkeleton, { index: index, key: index })))))));
|
|
47
45
|
}
|
|
48
46
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThread/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThread/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnE,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,gCAAgC,MAAM,sCAAsC,CAAC;AAEpF,MAAM,MAAM,GAAG,gCAAgC,CAAC;AAEhD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE;IAC1B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,KAAK;IACxD,OAAO,CACL,oBAAC,IAAI,kBAAC,SAAS,EAAE,OAAO,CAAC,IAAI,IAAM,KAAK;QACtC,oBAAC,WAAW;YACV,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,CAAC,IAAI;gBAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAC;oBAC5D,oBAAC,QAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,EAAE,EAAC,GAAI,CACjE;gBACf,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,oBAAC,gCAAgC,IAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,GAAI,CAC/D,CAAC,CACG,CACK,CACT,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThreadItem/Skeleton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThreadItem/Skeleton.tsx"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,KAAK,KAAA,GAAG,GAAG,CAAC,OAAO,CAU3E"}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import List from '@mui/material/List';
|
|
3
2
|
import ListItem from '@mui/material/ListItem';
|
|
4
|
-
import ListItemAvatar from '@mui/material/ListItemAvatar';
|
|
5
3
|
import ListItemText from '@mui/material/ListItemText';
|
|
6
4
|
import { styled } from '@mui/material/styles';
|
|
7
5
|
import Skeleton from '@mui/material/Skeleton';
|
|
8
|
-
import Widget from '../Widget';
|
|
9
6
|
import { useTheme } from '@mui/material';
|
|
10
7
|
const PREFIX = 'SCPrivateMessageThreadItemSkeleton';
|
|
11
8
|
const classes = {
|
|
12
9
|
root: `${PREFIX}-root`,
|
|
13
10
|
list: `${PREFIX}-list`
|
|
14
11
|
};
|
|
15
|
-
const Root = styled(
|
|
12
|
+
const Root = styled(ListItem)(({ theme }) => ({
|
|
16
13
|
maxWidth: 700
|
|
17
14
|
}));
|
|
18
15
|
/**
|
|
@@ -38,11 +35,7 @@ const Root = styled(Widget)(({ theme }) => ({
|
|
|
38
35
|
*/
|
|
39
36
|
export default function PrivateMessageThreadItemSkeleton(props) {
|
|
40
37
|
const theme = useTheme();
|
|
41
|
-
const m = (React.createElement(ListItem, null,
|
|
42
|
-
React.createElement(ListItemAvatar, null,
|
|
43
|
-
React.createElement(Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium })),
|
|
44
|
-
React.createElement(ListItemText, { primary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 120, style: { marginBottom: 10 } }), secondary: React.createElement(Skeleton, { animation: "wave", height: 10, width: 70, style: { marginBottom: 10 } }) })));
|
|
45
38
|
return (React.createElement(Root, Object.assign({ className: classes.root }, props),
|
|
46
|
-
React.createElement(
|
|
39
|
+
React.createElement(ListItemText, { sx: { display: 'flex', justifyContent: props.index % 2 === 0 ? 'flex-start' : 'flex-end' }, primary: React.createElement(Skeleton, { animation: "wave", height: 100, width: 450, style: { borderRadius: theme.shape.borderRadius } }) })));
|
|
47
40
|
}
|
|
48
41
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThreadItem/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/PrivateMessageThreadItem/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAGvC,MAAM,MAAM,GAAG,oCAAoC,CAAC;AAEpD,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;IAC1C,QAAQ,EAAE,GAAG;CACd,CAAC,CAAC,CAAC;AACJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,gCAAgC,CAAC,KAAK;IAC5D,MAAM,KAAK,GAAG,QAAQ,EAAe,CAAC;IACtC,OAAO,CACL,oBAAC,IAAI,kBAAC,SAAS,EAAE,OAAO,CAAC,IAAI,IAAM,KAAK;QACtC,oBAAC,YAAY,IACX,EAAE,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAC,EACxF,OAAO,EAAE,oBAAC,QAAQ,IAAC,SAAS,EAAC,MAAM,EAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAC,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAC,GAAI,GAChH,CACG,CACR,CAAC;AACJ,CAAC"}
|