@selfcommunity/react-theme-default 0.1.0-alpha.60 → 0.1.0-alpha.61
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/SCPrivateMessageEditor.d.ts +45 -45
- package/lib/cjs/components/SCPrivateMessageEditor.d.ts.map +1 -1
- package/lib/cjs/components/SCPrivateMessageEditor.js +47 -48
- package/lib/cjs/components/SCPrivateMessageEditor.js.map +1 -1
- package/lib/esm/components/SCPrivateMessageEditor.d.ts +45 -45
- package/lib/esm/components/SCPrivateMessageEditor.d.ts.map +1 -1
- package/lib/esm/components/SCPrivateMessageEditor.js +47 -48
- package/lib/esm/components/SCPrivateMessageEditor.js.map +1 -1
- package/lib/umd/react-theme-default.js +10 -10
- package/lib/umd/react-theme-default.js.map +1 -1
- package/package.json +4 -4
|
@@ -25,64 +25,64 @@ declare const Component: {
|
|
|
25
25
|
padding: any;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
'& .SCPrivateMessageEditor-send-media-section': {
|
|
29
|
-
backgroundColor: any;
|
|
30
|
-
display: string;
|
|
31
|
-
justifyContent: string;
|
|
32
|
-
};
|
|
33
28
|
'& .MuiPaper-root, MuiCard-root, SCWidget-root, SCMessageMediaUploader-root': {
|
|
34
|
-
|
|
35
|
-
fontSize: string;
|
|
36
|
-
};
|
|
29
|
+
height: any;
|
|
37
30
|
backgroundColor: any;
|
|
38
|
-
'& .MuiCardHeader-root': {
|
|
39
|
-
paddingRight: any;
|
|
40
|
-
paddingTop: any;
|
|
41
|
-
};
|
|
42
31
|
'& .MuiCardContent-root': {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
padding: any;
|
|
33
|
+
display: string;
|
|
34
|
+
flexDirection: string;
|
|
35
|
+
minHeight: any;
|
|
36
|
+
'& .SCMessageMediaUploader-close': {
|
|
37
|
+
'& .MuiIcon-root': {
|
|
38
|
+
fontSize: string;
|
|
48
39
|
};
|
|
49
40
|
};
|
|
50
|
-
'& .SCMessageMediaUploader-
|
|
41
|
+
'& .SCMessageMediaUploader-upload-section': {
|
|
42
|
+
'& .SCMessageMediaUploader-upload-button': {
|
|
43
|
+
display: string;
|
|
44
|
+
margin: string;
|
|
45
|
+
fontSize: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
'& .SCMessageMediaUploader-preview-content': {
|
|
49
|
+
position: string;
|
|
51
50
|
display: string;
|
|
52
|
-
|
|
51
|
+
margin: string;
|
|
52
|
+
width: any;
|
|
53
|
+
height: any;
|
|
53
54
|
img: {
|
|
54
|
-
|
|
55
|
+
resizeMode: string;
|
|
56
|
+
width: any;
|
|
57
|
+
height: any;
|
|
55
58
|
};
|
|
56
59
|
video: {
|
|
57
|
-
maxWidth: any;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
'& .SCMessageMediaUploader-doc-preview': {
|
|
61
|
-
[x: number]: {
|
|
62
|
-
height: any;
|
|
63
60
|
width: any;
|
|
61
|
+
height: any;
|
|
64
62
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
'& .SCMessageMediaUploader-doc-loading-preview': {
|
|
70
|
-
backgroundColor: any;
|
|
71
|
-
height: any;
|
|
72
|
-
width: any;
|
|
73
|
-
position: string;
|
|
74
|
-
'& .MuiCircularProgress-root': {
|
|
63
|
+
'& .SCMessageMediaUploader-preview-actions': {
|
|
64
|
+
width: string;
|
|
65
|
+
height: string;
|
|
75
66
|
position: string;
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
'& .MuiButtonBase-root, .MuiTypography-root': {
|
|
68
|
+
color: any;
|
|
69
|
+
position: string;
|
|
70
|
+
top: string;
|
|
71
|
+
left: string;
|
|
72
|
+
transform: string;
|
|
73
|
+
};
|
|
74
|
+
'&:hover': {
|
|
75
|
+
background: string;
|
|
76
|
+
};
|
|
77
|
+
'& .SCMessageMediaUploader-progress': {
|
|
78
|
+
background: string;
|
|
79
|
+
height: string;
|
|
80
|
+
};
|
|
78
81
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
'& .SCMessageMediaUploader-clear-media': {
|
|
84
|
-
display: string;
|
|
85
|
-
justifyContent: string;
|
|
82
|
+
};
|
|
83
|
+
'& .SCMessageMediaUploader-preview-info': {
|
|
84
|
+
'& .MuiTypography-root': {
|
|
85
|
+
fontSize: string;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCPrivateMessageEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;0BAEK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SCPrivateMessageEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;0BAEK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -21,71 +21,70 @@ const Component = {
|
|
|
21
21
|
width: '100%'
|
|
22
22
|
},
|
|
23
23
|
'& .MuiInputBase-root, MuiOutlinedInput-root': {
|
|
24
|
-
//height: theme.spacing(6.25),
|
|
25
24
|
'& textarea': {
|
|
26
25
|
backgroundColor: theme.palette.common.white,
|
|
27
26
|
borderRadius: theme.shape.borderRadius,
|
|
28
27
|
padding: theme.spacing(1)
|
|
29
28
|
}
|
|
30
29
|
},
|
|
31
|
-
'& .SCPrivateMessageEditor-send-media-section': {
|
|
32
|
-
backgroundColor: theme.palette.primary.main,
|
|
33
|
-
display: 'flex',
|
|
34
|
-
justifyContent: 'center'
|
|
35
|
-
},
|
|
36
30
|
'& .MuiPaper-root, MuiCard-root, SCWidget-root, SCMessageMediaUploader-root': {
|
|
37
|
-
|
|
38
|
-
fontSize: '1.143rem'
|
|
39
|
-
},
|
|
31
|
+
height: theme.spacing(15),
|
|
40
32
|
backgroundColor: theme.palette.primary.main,
|
|
41
|
-
'& .MuiCardHeader-root': {
|
|
42
|
-
paddingRight: theme.spacing(2),
|
|
43
|
-
paddingTop: theme.spacing(1)
|
|
44
|
-
},
|
|
45
33
|
'& .MuiCardContent-root': {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
padding: theme.spacing(1),
|
|
35
|
+
display: 'flex',
|
|
36
|
+
flexDirection: 'column',
|
|
37
|
+
minHeight: theme.spacing(15),
|
|
38
|
+
'& .SCMessageMediaUploader-close': {
|
|
39
|
+
'& .MuiIcon-root': {
|
|
40
|
+
fontSize: '0.857rem'
|
|
51
41
|
}
|
|
52
42
|
},
|
|
53
|
-
'& .SCMessageMediaUploader-
|
|
43
|
+
'& .SCMessageMediaUploader-upload-section': {
|
|
44
|
+
'& .SCMessageMediaUploader-upload-button': {
|
|
45
|
+
display: 'flex',
|
|
46
|
+
margin: '0 auto',
|
|
47
|
+
fontSize: '1.571rem'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
'& .SCMessageMediaUploader-preview-content': {
|
|
51
|
+
position: 'relative',
|
|
54
52
|
display: 'flex',
|
|
55
|
-
|
|
53
|
+
margin: '0 auto',
|
|
54
|
+
width: theme.spacing(6.25),
|
|
55
|
+
height: theme.spacing(6.25),
|
|
56
56
|
img: {
|
|
57
|
-
|
|
57
|
+
resizeMode: 'contain',
|
|
58
|
+
width: theme.spacing(6.25),
|
|
59
|
+
height: theme.spacing(6.25)
|
|
58
60
|
},
|
|
59
61
|
video: {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
'& .SCMessageMediaUploader-doc-preview': {
|
|
64
|
-
[theme.breakpoints.down('md')]: {
|
|
65
|
-
height: theme.spacing(12.5),
|
|
66
|
-
width: theme.spacing(25)
|
|
62
|
+
width: theme.spacing(6.25),
|
|
63
|
+
height: theme.spacing(6.25)
|
|
67
64
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
'& .SCMessageMediaUploader-doc-loading-preview': {
|
|
73
|
-
backgroundColor: theme.palette.background.default,
|
|
74
|
-
height: theme.spacing(12.5),
|
|
75
|
-
width: theme.spacing(25),
|
|
76
|
-
position: 'relative',
|
|
77
|
-
'& .MuiCircularProgress-root': {
|
|
65
|
+
'& .SCMessageMediaUploader-preview-actions': {
|
|
66
|
+
width: 'inherit',
|
|
67
|
+
height: 'inherit',
|
|
78
68
|
position: 'absolute',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
69
|
+
'& .MuiButtonBase-root, .MuiTypography-root': {
|
|
70
|
+
color: theme.palette.common.white,
|
|
71
|
+
position: 'absolute',
|
|
72
|
+
top: '50%',
|
|
73
|
+
left: '50%',
|
|
74
|
+
transform: 'translate(-50%, -50%)'
|
|
75
|
+
},
|
|
76
|
+
'&:hover': {
|
|
77
|
+
background: 'rgba(0,0,0,0.5)'
|
|
78
|
+
},
|
|
79
|
+
'& .SCMessageMediaUploader-progress': {
|
|
80
|
+
background: 'rgba(0,0,0,0.5)',
|
|
81
|
+
height: '100%'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'& .SCMessageMediaUploader-preview-info': {
|
|
86
|
+
'& .MuiTypography-root': {
|
|
87
|
+
fontSize: '0.75rem'
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCPrivateMessageEditor.js","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,CAAC;YACT,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;gBAC9B,QAAQ,EAAE,OAAO;gBACjB,GAAG,EAAE,MAAM;gBACX,MAAM,EAAE,CAAC;aACV;YACD,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YAC3C,iBAAiB,EAAE;gBACjB,QAAQ,EAAE,UAAU;aACrB;YACD,yCAAyC,EAAE;gBACzC,KAAK,EAAE,MAAM;aACd;YACD,6CAA6C,EAAE;gBAC7C,
|
|
1
|
+
{"version":3,"file":"SCPrivateMessageEditor.js","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,CAAC;YACT,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;gBAC9B,QAAQ,EAAE,OAAO;gBACjB,GAAG,EAAE,MAAM;gBACX,MAAM,EAAE,CAAC;aACV;YACD,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,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AC;yBAC5B;wBACD,KAAK,EAAE;4BACL,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;4BAC1B,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;yBAC5B;wBACD,2CAA2C,EAAE;4BAC3C,KAAK,EAAE,SAAS;4BAChB,MAAM,EAAE,SAAS;4BACjB,QAAQ,EAAE,UAAU;4BACpB,4CAA4C,EAAE;gCAC5C,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;gCACjC,QAAQ,EAAE,UAAU;gCACpB,GAAG,EAAE,KAAK;gCACV,IAAI,EAAE,KAAK;gCACX,SAAS,EAAE,uBAAuB;6BACnC;4BACD,SAAS,EAAE;gCACT,UAAU,EAAE,iBAAiB;6BAC9B;4BACD,oCAAoC,EAAE;gCACpC,UAAU,EAAE,iBAAiB;gCAC7B,MAAM,EAAE,MAAM;6BACf;yBACF;qBACF;oBACD,wCAAwC,EAAE;wBACxC,uBAAuB,EAAE;4BACvB,QAAQ,EAAE,SAAS;yBACpB;qBACF;iBACF;aACF;SACF,CAAC;KACH;CACF,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -25,64 +25,64 @@ declare const Component: {
|
|
|
25
25
|
padding: any;
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
'& .SCPrivateMessageEditor-send-media-section': {
|
|
29
|
-
backgroundColor: any;
|
|
30
|
-
display: string;
|
|
31
|
-
justifyContent: string;
|
|
32
|
-
};
|
|
33
28
|
'& .MuiPaper-root, MuiCard-root, SCWidget-root, SCMessageMediaUploader-root': {
|
|
34
|
-
|
|
35
|
-
fontSize: string;
|
|
36
|
-
};
|
|
29
|
+
height: any;
|
|
37
30
|
backgroundColor: any;
|
|
38
|
-
'& .MuiCardHeader-root': {
|
|
39
|
-
paddingRight: any;
|
|
40
|
-
paddingTop: any;
|
|
41
|
-
};
|
|
42
31
|
'& .MuiCardContent-root': {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
padding: any;
|
|
33
|
+
display: string;
|
|
34
|
+
flexDirection: string;
|
|
35
|
+
minHeight: any;
|
|
36
|
+
'& .SCMessageMediaUploader-close': {
|
|
37
|
+
'& .MuiIcon-root': {
|
|
38
|
+
fontSize: string;
|
|
48
39
|
};
|
|
49
40
|
};
|
|
50
|
-
'& .SCMessageMediaUploader-
|
|
41
|
+
'& .SCMessageMediaUploader-upload-section': {
|
|
42
|
+
'& .SCMessageMediaUploader-upload-button': {
|
|
43
|
+
display: string;
|
|
44
|
+
margin: string;
|
|
45
|
+
fontSize: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
'& .SCMessageMediaUploader-preview-content': {
|
|
49
|
+
position: string;
|
|
51
50
|
display: string;
|
|
52
|
-
|
|
51
|
+
margin: string;
|
|
52
|
+
width: any;
|
|
53
|
+
height: any;
|
|
53
54
|
img: {
|
|
54
|
-
|
|
55
|
+
resizeMode: string;
|
|
56
|
+
width: any;
|
|
57
|
+
height: any;
|
|
55
58
|
};
|
|
56
59
|
video: {
|
|
57
|
-
maxWidth: any;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
'& .SCMessageMediaUploader-doc-preview': {
|
|
61
|
-
[x: number]: {
|
|
62
|
-
height: any;
|
|
63
60
|
width: any;
|
|
61
|
+
height: any;
|
|
64
62
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
'& .SCMessageMediaUploader-doc-loading-preview': {
|
|
70
|
-
backgroundColor: any;
|
|
71
|
-
height: any;
|
|
72
|
-
width: any;
|
|
73
|
-
position: string;
|
|
74
|
-
'& .MuiCircularProgress-root': {
|
|
63
|
+
'& .SCMessageMediaUploader-preview-actions': {
|
|
64
|
+
width: string;
|
|
65
|
+
height: string;
|
|
75
66
|
position: string;
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
'& .MuiButtonBase-root, .MuiTypography-root': {
|
|
68
|
+
color: any;
|
|
69
|
+
position: string;
|
|
70
|
+
top: string;
|
|
71
|
+
left: string;
|
|
72
|
+
transform: string;
|
|
73
|
+
};
|
|
74
|
+
'&:hover': {
|
|
75
|
+
background: string;
|
|
76
|
+
};
|
|
77
|
+
'& .SCMessageMediaUploader-progress': {
|
|
78
|
+
background: string;
|
|
79
|
+
height: string;
|
|
80
|
+
};
|
|
78
81
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
'& .SCMessageMediaUploader-clear-media': {
|
|
84
|
-
display: string;
|
|
85
|
-
justifyContent: string;
|
|
82
|
+
};
|
|
83
|
+
'& .SCMessageMediaUploader-preview-info': {
|
|
84
|
+
'& .MuiTypography-root': {
|
|
85
|
+
fontSize: string;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
88
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCPrivateMessageEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;0BAEK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SCPrivateMessageEditor.d.ts","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;0BAEK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -19,71 +19,70 @@ const Component = {
|
|
|
19
19
|
width: '100%'
|
|
20
20
|
},
|
|
21
21
|
'& .MuiInputBase-root, MuiOutlinedInput-root': {
|
|
22
|
-
//height: theme.spacing(6.25),
|
|
23
22
|
'& textarea': {
|
|
24
23
|
backgroundColor: theme.palette.common.white,
|
|
25
24
|
borderRadius: theme.shape.borderRadius,
|
|
26
25
|
padding: theme.spacing(1)
|
|
27
26
|
}
|
|
28
27
|
},
|
|
29
|
-
'& .SCPrivateMessageEditor-send-media-section': {
|
|
30
|
-
backgroundColor: theme.palette.primary.main,
|
|
31
|
-
display: 'flex',
|
|
32
|
-
justifyContent: 'center'
|
|
33
|
-
},
|
|
34
28
|
'& .MuiPaper-root, MuiCard-root, SCWidget-root, SCMessageMediaUploader-root': {
|
|
35
|
-
|
|
36
|
-
fontSize: '1.143rem'
|
|
37
|
-
},
|
|
29
|
+
height: theme.spacing(15),
|
|
38
30
|
backgroundColor: theme.palette.primary.main,
|
|
39
|
-
'& .MuiCardHeader-root': {
|
|
40
|
-
paddingRight: theme.spacing(2),
|
|
41
|
-
paddingTop: theme.spacing(1)
|
|
42
|
-
},
|
|
43
31
|
'& .MuiCardContent-root': {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
padding: theme.spacing(1),
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'column',
|
|
35
|
+
minHeight: theme.spacing(15),
|
|
36
|
+
'& .SCMessageMediaUploader-close': {
|
|
37
|
+
'& .MuiIcon-root': {
|
|
38
|
+
fontSize: '0.857rem'
|
|
49
39
|
}
|
|
50
40
|
},
|
|
51
|
-
'& .SCMessageMediaUploader-
|
|
41
|
+
'& .SCMessageMediaUploader-upload-section': {
|
|
42
|
+
'& .SCMessageMediaUploader-upload-button': {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
margin: '0 auto',
|
|
45
|
+
fontSize: '1.571rem'
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
'& .SCMessageMediaUploader-preview-content': {
|
|
49
|
+
position: 'relative',
|
|
52
50
|
display: 'flex',
|
|
53
|
-
|
|
51
|
+
margin: '0 auto',
|
|
52
|
+
width: theme.spacing(6.25),
|
|
53
|
+
height: theme.spacing(6.25),
|
|
54
54
|
img: {
|
|
55
|
-
|
|
55
|
+
resizeMode: 'contain',
|
|
56
|
+
width: theme.spacing(6.25),
|
|
57
|
+
height: theme.spacing(6.25)
|
|
56
58
|
},
|
|
57
59
|
video: {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
'& .SCMessageMediaUploader-doc-preview': {
|
|
62
|
-
[theme.breakpoints.down('md')]: {
|
|
63
|
-
height: theme.spacing(12.5),
|
|
64
|
-
width: theme.spacing(25)
|
|
60
|
+
width: theme.spacing(6.25),
|
|
61
|
+
height: theme.spacing(6.25)
|
|
65
62
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
'& .SCMessageMediaUploader-doc-loading-preview': {
|
|
71
|
-
backgroundColor: theme.palette.background.default,
|
|
72
|
-
height: theme.spacing(12.5),
|
|
73
|
-
width: theme.spacing(25),
|
|
74
|
-
position: 'relative',
|
|
75
|
-
'& .MuiCircularProgress-root': {
|
|
63
|
+
'& .SCMessageMediaUploader-preview-actions': {
|
|
64
|
+
width: 'inherit',
|
|
65
|
+
height: 'inherit',
|
|
76
66
|
position: 'absolute',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
67
|
+
'& .MuiButtonBase-root, .MuiTypography-root': {
|
|
68
|
+
color: theme.palette.common.white,
|
|
69
|
+
position: 'absolute',
|
|
70
|
+
top: '50%',
|
|
71
|
+
left: '50%',
|
|
72
|
+
transform: 'translate(-50%, -50%)'
|
|
73
|
+
},
|
|
74
|
+
'&:hover': {
|
|
75
|
+
background: 'rgba(0,0,0,0.5)'
|
|
76
|
+
},
|
|
77
|
+
'& .SCMessageMediaUploader-progress': {
|
|
78
|
+
background: 'rgba(0,0,0,0.5)',
|
|
79
|
+
height: '100%'
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
'& .SCMessageMediaUploader-preview-info': {
|
|
84
|
+
'& .MuiTypography-root': {
|
|
85
|
+
fontSize: '0.75rem'
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SCPrivateMessageEditor.js","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,CAAC;YACT,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;gBAC9B,QAAQ,EAAE,OAAO;gBACjB,GAAG,EAAE,MAAM;gBACX,MAAM,EAAE,CAAC;aACV;YACD,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;YAC3C,iBAAiB,EAAE;gBACjB,QAAQ,EAAE,UAAU;aACrB;YACD,yCAAyC,EAAE;gBACzC,KAAK,EAAE,MAAM;aACd;YACD,6CAA6C,EAAE;gBAC7C,
|
|
1
|
+
{"version":3,"file":"SCPrivateMessageEditor.js","sourceRoot":"","sources":["../../../src/components/SCPrivateMessageEditor.tsx"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG;IAChB,cAAc,EAAE;QACd,IAAI,EAAE,CAAC,EAAC,KAAK,EAAM,EAAE,EAAE,CAAC,CAAC;YACvB,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,CAAC;YACT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