@selfcommunity/react-theme-default 0.1.0-alpha.286 → 0.1.0-alpha.288

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.
Files changed (96) hide show
  1. package/lib/cjs/components/SCBottomNavigation.d.ts +7 -0
  2. package/lib/cjs/components/SCBottomNavigation.js +8 -1
  3. package/lib/cjs/components/SCCommentObject.d.ts +1 -0
  4. package/lib/cjs/components/SCCommentObject.js +2 -1
  5. package/lib/cjs/components/SCCommentObjectReply.d.ts +1 -0
  6. package/lib/cjs/components/SCCommentObjectReply.js +1 -0
  7. package/lib/cjs/components/SCCommentsObject.d.ts +21 -1
  8. package/lib/cjs/components/SCCommentsObject.js +21 -1
  9. package/lib/cjs/components/SCComposer.d.ts +163 -295
  10. package/lib/cjs/components/SCComposer.js +173 -314
  11. package/lib/cjs/components/SCContributorsFeedObject.d.ts +1 -0
  12. package/lib/cjs/components/SCContributorsFeedObject.js +2 -1
  13. package/lib/cjs/components/SCFeedObject.d.ts +7 -1
  14. package/lib/cjs/components/SCFeedObject.js +13 -7
  15. package/lib/cjs/components/SCFeedObjectMediaPreview.d.ts +11 -0
  16. package/lib/cjs/components/{SCNavigationToolbarMobileSkeleton.js → SCFeedObjectMediaPreview.js} +4 -4
  17. package/lib/cjs/components/SCInlineComposerWidget.d.ts +31 -7
  18. package/lib/cjs/components/SCInlineComposerWidget.js +31 -7
  19. package/lib/cjs/components/SCLightbox.d.ts +1 -0
  20. package/lib/cjs/components/SCLightbox.js +2 -1
  21. package/lib/cjs/components/SCLoyaltyProgramWidget.js +1 -1
  22. package/lib/cjs/components/SCMediaFile.d.ts +158 -0
  23. package/lib/cjs/components/SCMediaFile.js +160 -0
  24. package/lib/cjs/components/SCMediaLink.d.ts +65 -0
  25. package/lib/cjs/components/SCMediaLink.js +68 -0
  26. package/lib/cjs/components/SCMediaShare.d.ts +6 -0
  27. package/lib/cjs/components/SCMediaShare.js +8 -0
  28. package/lib/cjs/components/SCNavigationToolbarMobile.d.ts +6 -0
  29. package/lib/cjs/components/SCNavigationToolbarMobile.js +6 -0
  30. package/lib/cjs/components/SCUserAvatar.d.ts +1 -0
  31. package/lib/cjs/components/SCUserAvatar.js +2 -1
  32. package/lib/cjs/components/SCWidget.d.ts +6 -4
  33. package/lib/cjs/components/SCWidget.js +7 -5
  34. package/lib/cjs/fonts/community/icons.eot +0 -0
  35. package/lib/cjs/fonts/community/icons.svg +30 -27
  36. package/lib/cjs/fonts/community/icons.ttf +0 -0
  37. package/lib/cjs/fonts/community/icons.woff +0 -0
  38. package/lib/cjs/fonts/community/icons.woff2 +0 -0
  39. package/lib/cjs/fonts/community-icons.css +12 -9
  40. package/lib/cjs/index.d.ts +464 -343
  41. package/lib/cjs/index.js +5 -5
  42. package/lib/esm/components/SCBottomNavigation.d.ts +7 -0
  43. package/lib/esm/components/SCBottomNavigation.js +8 -1
  44. package/lib/esm/components/SCCommentObject.d.ts +1 -0
  45. package/lib/esm/components/SCCommentObject.js +2 -1
  46. package/lib/esm/components/SCCommentObjectReply.d.ts +1 -0
  47. package/lib/esm/components/SCCommentObjectReply.js +1 -0
  48. package/lib/esm/components/SCCommentsObject.d.ts +21 -1
  49. package/lib/esm/components/SCCommentsObject.js +21 -1
  50. package/lib/esm/components/SCComposer.d.ts +163 -295
  51. package/lib/esm/components/SCComposer.js +173 -314
  52. package/lib/esm/components/SCContributorsFeedObject.d.ts +1 -0
  53. package/lib/esm/components/SCContributorsFeedObject.js +2 -1
  54. package/lib/esm/components/SCFeedObject.d.ts +7 -1
  55. package/lib/esm/components/SCFeedObject.js +13 -7
  56. package/lib/esm/components/SCFeedObjectMediaPreview.d.ts +11 -0
  57. package/lib/esm/components/SCFeedObjectMediaPreview.js +11 -0
  58. package/lib/esm/components/SCInlineComposerWidget.d.ts +31 -7
  59. package/lib/esm/components/SCInlineComposerWidget.js +31 -7
  60. package/lib/esm/components/SCLightbox.d.ts +1 -0
  61. package/lib/esm/components/SCLightbox.js +2 -1
  62. package/lib/esm/components/SCLoyaltyProgramWidget.js +1 -1
  63. package/lib/esm/components/SCMediaFile.d.ts +158 -0
  64. package/lib/esm/components/SCMediaFile.js +158 -0
  65. package/lib/esm/components/SCMediaLink.d.ts +65 -0
  66. package/lib/esm/components/SCMediaLink.js +66 -0
  67. package/lib/esm/components/SCMediaShare.d.ts +6 -0
  68. package/lib/esm/components/SCMediaShare.js +6 -0
  69. package/lib/esm/components/SCNavigationToolbarMobile.d.ts +6 -0
  70. package/lib/esm/components/SCNavigationToolbarMobile.js +6 -0
  71. package/lib/esm/components/SCUserAvatar.d.ts +1 -0
  72. package/lib/esm/components/SCUserAvatar.js +2 -1
  73. package/lib/esm/components/SCWidget.d.ts +6 -4
  74. package/lib/esm/components/SCWidget.js +7 -5
  75. package/lib/esm/fonts/community/icons.eot +0 -0
  76. package/lib/esm/fonts/community/icons.svg +30 -27
  77. package/lib/esm/fonts/community/icons.ttf +0 -0
  78. package/lib/esm/fonts/community/icons.woff +0 -0
  79. package/lib/esm/fonts/community/icons.woff2 +0 -0
  80. package/lib/esm/fonts/community-icons.css +12 -9
  81. package/lib/esm/index.d.ts +464 -343
  82. package/lib/esm/index.js +5 -5
  83. package/lib/umd/community/icons.eot +0 -0
  84. package/lib/umd/community/icons.svg +30 -27
  85. package/lib/umd/community/icons.ttf +0 -0
  86. package/lib/umd/community/icons.woff +0 -0
  87. package/lib/umd/community/icons.woff2 +0 -0
  88. package/lib/umd/react-theme-default.js +2 -2
  89. package/package.json +4 -4
  90. package/lib/cjs/components/SCComposerPoll.d.ts +0 -26
  91. package/lib/cjs/components/SCComposerPoll.js +0 -28
  92. package/lib/cjs/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
  93. package/lib/esm/components/SCComposerPoll.d.ts +0 -26
  94. package/lib/esm/components/SCComposerPoll.js +0 -26
  95. package/lib/esm/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
  96. package/lib/esm/components/SCNavigationToolbarMobileSkeleton.js +0 -11
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const system_1 = require("@mui/system");
4
+ const Component = {
5
+ styleOverrides: {
6
+ displayRoot: ({ theme }) => ({
7
+ '& .SCMediaLink-link': {
8
+ position: 'relative',
9
+ backgroundColor: '#F5F5F5',
10
+ margin: theme.spacing(1, 0),
11
+ padding: theme.spacing(1)
12
+ },
13
+ '& .SCMediaLink-video': {
14
+ margin: '10px 0px',
15
+ height: 360
16
+ },
17
+ '& .SCMediaLink-thumbnail': {
18
+ border: `1px solid ${(0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
19
+ borderRadius: theme.shape.borderRadius * 0.75,
20
+ paddingTop: theme.spacing(1),
21
+ margin: theme.spacing(1, 2, 1, 1),
22
+ [theme.breakpoints.up('sm')]: {
23
+ maxWidth: 200,
24
+ width: '100%',
25
+ float: 'left'
26
+ }
27
+ },
28
+ '& .SCMediaLink-image': {
29
+ backgroundSize: 'contain !important',
30
+ backgroundPosition: 'center !important',
31
+ backgroundRepeat: 'no-repeat !important',
32
+ backgroundColor: '#FFF !important',
33
+ paddingBottom: 120
34
+ },
35
+ '& .SCMediaLink-snippet': {
36
+ padding: theme.spacing(2),
37
+ '& .SCMediaLink-snippet-title': {},
38
+ '& .SCMediaLink-snippet-description': {
39
+ fontSize: '0.857rem'
40
+ },
41
+ '& a': {
42
+ fontSize: '1rem',
43
+ fontStyle: 'italic'
44
+ }
45
+ }
46
+ }),
47
+ layerRoot: ({ theme }) => ({
48
+ '& .SCMediaLink-content': {
49
+ '& form button[type=submit]': {
50
+ fontWeight: theme.typography.fontWeightBold
51
+ }
52
+ }
53
+ }),
54
+ previewRoot: ({ theme }) => ({
55
+ '& .SCMediaLink-media': {
56
+ position: 'relative',
57
+ margin: theme.spacing(1),
58
+ '& .SCMediaLink-delete': {
59
+ position: 'absolute',
60
+ right: theme.spacing(2),
61
+ top: theme.spacing(2)
62
+ }
63
+ }
64
+ }),
65
+ triggerRoot: ({ theme }) => ({}),
66
+ }
67
+ };
68
+ exports.default = Component;
@@ -0,0 +1,6 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ displayRoot: ({ theme }: any) => {};
4
+ };
5
+ };
6
+ export default Component;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ displayRoot: ({ theme }) => ({})
6
+ }
7
+ };
8
+ exports.default = Component;
@@ -17,6 +17,12 @@ declare const Component: {
17
17
  whiteSpace: string;
18
18
  };
19
19
  };
20
+ skeletonRoot: ({ theme }: any) => {
21
+ '& .SCNavigationToolbarMobile-logo': {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ };
20
26
  };
21
27
  };
22
28
  export default Component;
@@ -18,6 +18,12 @@ const Component = {
18
18
  textOverflow: 'ellipsis',
19
19
  whiteSpace: 'nowrap'
20
20
  }
21
+ }),
22
+ skeletonRoot: ({ theme }) => ({
23
+ '& .SCNavigationToolbarMobile-logo': {
24
+ width: 100,
25
+ height: 20
26
+ }
21
27
  })
22
28
  }
23
29
  };
@@ -13,6 +13,7 @@ declare const Component: {
13
13
  };
14
14
  '.MuiBadge-badge': {
15
15
  right: any;
16
+ top: any;
16
17
  };
17
18
  };
18
19
  };
@@ -14,7 +14,8 @@ const Component = {
14
14
  height: `${theme.spacing(1.75)} !important`
15
15
  },
16
16
  '.MuiBadge-badge': {
17
- right: theme.spacing(0)
17
+ right: theme.spacing(0.2),
18
+ top: theme.spacing(0.9)
18
19
  }
19
20
  })
20
21
  }
@@ -39,7 +39,10 @@ declare const Component: {
39
39
  };
40
40
  '& .MuiList-root': {
41
41
  paddingTop: any;
42
- paddingBottom: any;
42
+ paddingBottom: number;
43
+ '& .MuiListItem-root:first-of-type': {
44
+ paddingTop: number;
45
+ };
43
46
  '& .MuiListItem-root': {
44
47
  paddingTop: any;
45
48
  paddingBottom: any;
@@ -58,9 +61,8 @@ declare const Component: {
58
61
  paddingTop: any;
59
62
  };
60
63
  '& > .MuiButton-sizeMedium': {
61
- marginLeft: any;
62
- paddingLeft: any;
63
- paddingRight: any;
64
+ marginTop: any;
65
+ padding: any;
64
66
  color: any;
65
67
  };
66
68
  };
@@ -29,7 +29,7 @@ const Component = {
29
29
  borderRadius: 0
30
30
  },
31
31
  '& .MuiCardContent-root': {
32
- padding: theme.spacing(3),
32
+ padding: theme.spacing(2.2),
33
33
  '& h5': {
34
34
  fontFamily: theme.typography.fontFamily,
35
35
  fontWeight: theme.typography.fontWeightBold,
@@ -38,7 +38,10 @@ const Component = {
38
38
  },
39
39
  '& .MuiList-root': {
40
40
  paddingTop: theme.spacing(2),
41
- paddingBottom: theme.spacing(2),
41
+ paddingBottom: 0,
42
+ '& .MuiListItem-root:first-of-type': {
43
+ paddingTop: 0
44
+ },
42
45
  '& .MuiListItem-root': {
43
46
  paddingTop: theme.spacing(1),
44
47
  paddingBottom: theme.spacing(1),
@@ -57,9 +60,8 @@ const Component = {
57
60
  paddingTop: theme.spacing(2)
58
61
  },
59
62
  '& > .MuiButton-sizeMedium': {
60
- marginLeft: theme.spacing(-2),
61
- paddingLeft: theme.spacing(2),
62
- paddingRight: theme.spacing(2),
63
+ marginTop: theme.spacing(1),
64
+ padding: theme.spacing(0),
63
65
  color: theme.palette.secondary.main
64
66
  }
65
67
  }
Binary file