@selfcommunity/react-theme-default 0.1.0-alpha.287 → 0.1.0-alpha.289

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 (66) 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/SCComposer.d.ts +163 -295
  4. package/lib/cjs/components/SCComposer.js +173 -314
  5. package/lib/cjs/components/SCFeedObjectMediaPreview.d.ts +11 -0
  6. package/lib/cjs/components/{SCNavigationToolbarMobileSkeleton.js → SCFeedObjectMediaPreview.js} +4 -4
  7. package/lib/cjs/components/SCInlineComposerWidget.d.ts +31 -7
  8. package/lib/cjs/components/SCInlineComposerWidget.js +31 -7
  9. package/lib/cjs/components/SCLightbox.d.ts +1 -0
  10. package/lib/cjs/components/SCLightbox.js +2 -1
  11. package/lib/cjs/components/SCMediaFile.d.ts +158 -0
  12. package/lib/cjs/components/SCMediaFile.js +160 -0
  13. package/lib/cjs/components/SCMediaLink.d.ts +65 -0
  14. package/lib/cjs/components/SCMediaLink.js +68 -0
  15. package/lib/cjs/components/SCMediaShare.d.ts +6 -0
  16. package/lib/cjs/components/SCMediaShare.js +8 -0
  17. package/lib/cjs/components/SCNavigationToolbarMobile.d.ts +6 -0
  18. package/lib/cjs/components/SCNavigationToolbarMobile.js +6 -0
  19. package/lib/cjs/fonts/community/icons.eot +0 -0
  20. package/lib/cjs/fonts/community/icons.svg +30 -27
  21. package/lib/cjs/fonts/community/icons.ttf +0 -0
  22. package/lib/cjs/fonts/community/icons.woff +0 -0
  23. package/lib/cjs/fonts/community/icons.woff2 +0 -0
  24. package/lib/cjs/fonts/community-icons.css +12 -9
  25. package/lib/cjs/index.d.ts +425 -333
  26. package/lib/cjs/index.js +5 -5
  27. package/lib/esm/components/SCBottomNavigation.d.ts +7 -0
  28. package/lib/esm/components/SCBottomNavigation.js +8 -1
  29. package/lib/esm/components/SCComposer.d.ts +163 -295
  30. package/lib/esm/components/SCComposer.js +173 -314
  31. package/lib/esm/components/SCFeedObjectMediaPreview.d.ts +11 -0
  32. package/lib/esm/components/SCFeedObjectMediaPreview.js +11 -0
  33. package/lib/esm/components/SCInlineComposerWidget.d.ts +31 -7
  34. package/lib/esm/components/SCInlineComposerWidget.js +31 -7
  35. package/lib/esm/components/SCLightbox.d.ts +1 -0
  36. package/lib/esm/components/SCLightbox.js +2 -1
  37. package/lib/esm/components/SCMediaFile.d.ts +158 -0
  38. package/lib/esm/components/SCMediaFile.js +158 -0
  39. package/lib/esm/components/SCMediaLink.d.ts +65 -0
  40. package/lib/esm/components/SCMediaLink.js +66 -0
  41. package/lib/esm/components/SCMediaShare.d.ts +6 -0
  42. package/lib/esm/components/SCMediaShare.js +6 -0
  43. package/lib/esm/components/SCNavigationToolbarMobile.d.ts +6 -0
  44. package/lib/esm/components/SCNavigationToolbarMobile.js +6 -0
  45. package/lib/esm/fonts/community/icons.eot +0 -0
  46. package/lib/esm/fonts/community/icons.svg +30 -27
  47. package/lib/esm/fonts/community/icons.ttf +0 -0
  48. package/lib/esm/fonts/community/icons.woff +0 -0
  49. package/lib/esm/fonts/community/icons.woff2 +0 -0
  50. package/lib/esm/fonts/community-icons.css +12 -9
  51. package/lib/esm/index.d.ts +425 -333
  52. package/lib/esm/index.js +5 -5
  53. package/lib/umd/community/icons.eot +0 -0
  54. package/lib/umd/community/icons.svg +30 -27
  55. package/lib/umd/community/icons.ttf +0 -0
  56. package/lib/umd/community/icons.woff +0 -0
  57. package/lib/umd/community/icons.woff2 +0 -0
  58. package/lib/umd/react-theme-default.js +2 -2
  59. package/package.json +4 -4
  60. package/lib/cjs/components/SCComposerPoll.d.ts +0 -26
  61. package/lib/cjs/components/SCComposerPoll.js +0 -28
  62. package/lib/cjs/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
  63. package/lib/esm/components/SCComposerPoll.d.ts +0 -26
  64. package/lib/esm/components/SCComposerPoll.js +0 -26
  65. package/lib/esm/components/SCNavigationToolbarMobileSkeleton.d.ts +0 -11
  66. package/lib/esm/components/SCNavigationToolbarMobileSkeleton.js +0 -11
@@ -30,13 +30,37 @@ const Component = {
30
30
  textTransform: 'none'
31
31
  }
32
32
  },
33
- '& .SCInlineComposerWidget-actions': {
33
+ '& .SCInlineComposerWidget-avatar': {
34
34
  display: 'flex',
35
- '& .MuiIconButton-root': {
36
- [theme.breakpoints.up('sm')]: {
37
- marginLeft: 2,
38
- marginRight: 2
39
- }
35
+ alignItems: 'center',
36
+ [theme.breakpoints.up('sm')]: {
37
+ marginLeft: theme.spacing(2)
38
+ },
39
+ '& .MuiAvatar-root': {
40
+ width: theme.selfcommunity.user.avatar.sizeMedium,
41
+ height: theme.selfcommunity.user.avatar.sizeMedium
42
+ }
43
+ }
44
+ }
45
+ }),
46
+ skeletonRoot: ({ theme }) => ({
47
+ marginBottom: theme.spacing(2),
48
+ '& .SCInlineComposerWidget-content, & .SCInlineComposerWidget-content:last-child': {
49
+ padding: theme.spacing(0.5, 1),
50
+ display: 'flex',
51
+ flexDirection: 'row',
52
+ justifyContent: 'space-between',
53
+ [theme.breakpoints.up('sm')]: {
54
+ padding: theme.spacing(0.5, 1, 0.5, 2)
55
+ },
56
+ '& .SCInlineComposerWidget-input': {
57
+ display: 'flex',
58
+ flexGrow: 2,
59
+ height: 30,
60
+ width: '80%',
61
+ '& .MuiSkeleton-root': {
62
+ width: '100%',
63
+ height: '100%'
40
64
  }
41
65
  },
42
66
  '& .SCInlineComposerWidget-avatar': {
@@ -45,7 +69,7 @@ const Component = {
45
69
  [theme.breakpoints.up('sm')]: {
46
70
  marginLeft: theme.spacing(2)
47
71
  },
48
- '& .MuiAvatar-root': {
72
+ '& .MuiSkeleton-root': {
49
73
  width: theme.selfcommunity.user.avatar.sizeMedium,
50
74
  height: theme.selfcommunity.user.avatar.sizeMedium
51
75
  }
@@ -111,6 +111,7 @@ declare const Component: {
111
111
  alignItems: string;
112
112
  display: string;
113
113
  height: string;
114
+ color: string;
114
115
  };
115
116
  "& .PhotoView-Slider__toolbarIcon": {
116
117
  fill: string;
@@ -135,7 +135,8 @@ const Component = {
135
135
  ['& .PhotoView-Slider__BannerRight']: {
136
136
  alignItems: 'center',
137
137
  display: 'flex',
138
- height: '100%'
138
+ height: '100%',
139
+ color: '#FFF'
139
140
  },
140
141
  ['& .PhotoView-Slider__toolbarIcon']: {
141
142
  fill: '#fff',
@@ -0,0 +1,158 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ displayRoot: ({ theme }: any) => {
4
+ [x: number]: {
5
+ minHeight: number;
6
+ };
7
+ textAlign: string;
8
+ margin: string;
9
+ width: string;
10
+ position: string;
11
+ '& .SCMediaFile-background': {
12
+ backgroundSize: string;
13
+ backgroundPosition: string;
14
+ backgroundRepeat: string;
15
+ };
16
+ '& .SCMediaFile-background-portrait': {
17
+ backgroundSize: string;
18
+ backgroundPosition: string;
19
+ backgroundRepeat: string;
20
+ };
21
+ '& .SCMediaFile-height-one': {
22
+ width: string;
23
+ paddingTop: string;
24
+ };
25
+ '& .SCMediaFile-height-half-one': {
26
+ paddingTop: string;
27
+ };
28
+ '& .SCMediaFile-height-two': {
29
+ width: string;
30
+ paddingTop: string;
31
+ };
32
+ '& .SCMediaFile-height-three': {
33
+ width: string;
34
+ paddingTop: string;
35
+ };
36
+ '& .SCMediaFile-cover': {
37
+ backgroundColor: string;
38
+ opacity: number;
39
+ position: string;
40
+ right: number;
41
+ top: number;
42
+ left: number;
43
+ bottom: number;
44
+ };
45
+ '& .SCMediaFile-cover-text': {
46
+ right: number;
47
+ left: number;
48
+ bottom: number;
49
+ color: string;
50
+ fontSize: string;
51
+ position: string;
52
+ top: string;
53
+ transform: string;
54
+ textAlign: string;
55
+ '& > p': {
56
+ margin: number;
57
+ position: string;
58
+ top: string;
59
+ left: string;
60
+ transform: string;
61
+ };
62
+ };
63
+ '& .SCMediaFile-slide': {
64
+ height: number;
65
+ bottom: string;
66
+ overflow: string;
67
+ fontSize: string;
68
+ color: string;
69
+ };
70
+ '& .SCMediaFile-border': {
71
+ position: string;
72
+ border: string;
73
+ '&:hover > div': {
74
+ bottom: number;
75
+ height: string;
76
+ };
77
+ '&:hover > div.animate-text': {
78
+ top: string;
79
+ };
80
+ };
81
+ '& .SCMediaFile-gallery': {
82
+ cursor: string;
83
+ };
84
+ '& .SCMediaFile-title .MuiTypography-root': {
85
+ color: string;
86
+ backgroundColor: any;
87
+ opacity: number;
88
+ };
89
+ '& .SCMediaFile-icon-file': {
90
+ fontSize: number;
91
+ position: string;
92
+ top: number;
93
+ };
94
+ };
95
+ lightboxRoot: ({ theme }: any) => {};
96
+ previewRoot: ({ theme }: any) => {
97
+ '& > div': {
98
+ display: string;
99
+ flexDirection: string;
100
+ flexWrap: string;
101
+ maxWidth: string;
102
+ overflow: string;
103
+ '-ms-overflow-style': string;
104
+ scrollbarWidth: string;
105
+ '&::-webkit-scrollbar': {
106
+ display: string;
107
+ };
108
+ '& .SCMediaFile-media': {
109
+ backgroundSize: string;
110
+ backgroundPosition: string;
111
+ position: string;
112
+ borderRadius: number;
113
+ margin: any;
114
+ width: number;
115
+ height: number;
116
+ flexBasis: number;
117
+ flexGrow: number;
118
+ flexShrink: number;
119
+ '& .SCMediaFile-title': {
120
+ position: string;
121
+ left: any;
122
+ top: any;
123
+ borderRadius: any;
124
+ background: string;
125
+ color: any;
126
+ fontSize: string;
127
+ padding: any;
128
+ maxWidth: number;
129
+ textOverflow: string;
130
+ overflow: string;
131
+ whiteSpace: string;
132
+ };
133
+ '& .SCMediaFile-delete': {
134
+ position: string;
135
+ right: any;
136
+ top: any;
137
+ };
138
+ };
139
+ '&:has(> :last-child:nth-of-type(1)) .SCMediaFile-media': {
140
+ width: string;
141
+ flexBasis: string;
142
+ height: number;
143
+ margin: any;
144
+ '& .SCMediaFile-title': {
145
+ fontSize: string;
146
+ maxWidth: number;
147
+ };
148
+ };
149
+ };
150
+ };
151
+ triggerRoot: ({ theme }: any) => {};
152
+ triggerDrawerRoot: ({ theme }: any) => {
153
+ zIndex: number;
154
+ };
155
+ triggerMenuRoot: ({ theme }: any) => {};
156
+ };
157
+ };
158
+ export default Component;
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Component = {
4
+ styleOverrides: {
5
+ displayRoot: ({ theme }) => ({
6
+ textAlign: 'center',
7
+ margin: 'auto',
8
+ width: '100%',
9
+ position: 'relative',
10
+ [theme.breakpoints.down('md')]: {
11
+ minHeight: 170
12
+ },
13
+ '& .SCMediaFile-background': {
14
+ backgroundSize: 'cover !important',
15
+ backgroundPosition: 'center !important',
16
+ backgroundRepeat: 'no-repeat !important'
17
+ },
18
+ '& .SCMediaFile-background-portrait': {
19
+ backgroundSize: 'contain !important',
20
+ backgroundPosition: 'center !important',
21
+ backgroundRepeat: 'no-repeat !important'
22
+ },
23
+ '& .SCMediaFile-height-one': {
24
+ width: '100%',
25
+ paddingTop: '99%'
26
+ },
27
+ '& .SCMediaFile-height-half-one': {
28
+ paddingTop: '50%'
29
+ },
30
+ '& .SCMediaFile-height-two': {
31
+ width: '50%',
32
+ paddingTop: '50%'
33
+ },
34
+ '& .SCMediaFile-height-three': {
35
+ width: '33.3333%',
36
+ paddingTop: '33.3333%'
37
+ },
38
+ '& .SCMediaFile-cover': {
39
+ backgroundColor: 'rgba(102,102,102,0.2)',
40
+ opacity: 0.8,
41
+ position: 'absolute',
42
+ right: 0,
43
+ top: 0,
44
+ left: 0,
45
+ bottom: 0
46
+ },
47
+ '& .SCMediaFile-cover-text': {
48
+ right: 0,
49
+ left: 0,
50
+ bottom: 0,
51
+ color: '#FFF',
52
+ fontSize: '7%',
53
+ position: 'absolute',
54
+ top: '50%',
55
+ transform: 'translate(0%, -50%)',
56
+ textAlign: 'center',
57
+ '& > p': {
58
+ margin: 0,
59
+ position: 'absolute',
60
+ top: '50%',
61
+ left: '50%',
62
+ transform: 'translate(-50%, -50%)'
63
+ }
64
+ },
65
+ '& .SCMediaFile-slide': {
66
+ height: 0,
67
+ bottom: '100%',
68
+ overflow: 'hidden',
69
+ fontSize: '3%',
70
+ color: '#FFF'
71
+ },
72
+ '& .SCMediaFile-border': {
73
+ position: 'relative',
74
+ border: '2px solid #FFF',
75
+ '&:hover > div': {
76
+ bottom: 0,
77
+ height: 'auto'
78
+ },
79
+ '&:hover > div.animate-text': {
80
+ top: '66%'
81
+ }
82
+ },
83
+ '& .SCMediaFile-gallery': {
84
+ cursor: 'pointer'
85
+ },
86
+ '& .SCMediaFile-title .MuiTypography-root': {
87
+ color: '#FFF',
88
+ backgroundColor: theme.palette.getContrastText('#FFF'),
89
+ opacity: 0.6
90
+ },
91
+ '& .SCMediaFile-icon-file': {
92
+ fontSize: 14,
93
+ position: 'relative',
94
+ top: 2
95
+ }
96
+ }),
97
+ lightboxRoot: ({ theme }) => ({}),
98
+ previewRoot: ({ theme }) => ({
99
+ '& > div': {
100
+ display: 'flex',
101
+ flexDirection: 'row',
102
+ flexWrap: 'nowrap',
103
+ maxWidth: '100%',
104
+ overflow: 'auto',
105
+ '-ms-overflow-style': 'none',
106
+ scrollbarWidth: 'none',
107
+ '&::-webkit-scrollbar': {
108
+ display: 'none'
109
+ },
110
+ '& .SCMediaFile-media': {
111
+ backgroundSize: 'cover',
112
+ backgroundPosition: 'center',
113
+ position: 'relative',
114
+ borderRadius: theme.shape.borderRadius * 0.5,
115
+ margin: theme.spacing(0.5),
116
+ width: 120,
117
+ height: 140,
118
+ flexBasis: 120,
119
+ flexGrow: 0,
120
+ flexShrink: 0,
121
+ '& .SCMediaFile-title': {
122
+ position: 'absolute',
123
+ left: theme.spacing(1),
124
+ top: theme.spacing(1),
125
+ borderRadius: theme.shape.borderRadius,
126
+ background: '#33333380 0% 0% no-repeat padding-box',
127
+ color: theme.palette.common.white,
128
+ fontSize: '0.875rem',
129
+ padding: theme.spacing(0.5, 1),
130
+ maxWidth: 50,
131
+ textOverflow: 'ellipsis',
132
+ overflow: 'hidden',
133
+ whiteSpace: 'nowrap'
134
+ },
135
+ '& .SCMediaFile-delete': {
136
+ position: 'absolute',
137
+ right: theme.spacing(0.5),
138
+ top: theme.spacing(0.5)
139
+ }
140
+ },
141
+ '&:has(> :last-child:nth-of-type(1)) .SCMediaFile-media': {
142
+ width: '100%',
143
+ flexBasis: '100%',
144
+ height: 220,
145
+ margin: theme.spacing(0.5, 0),
146
+ '& .SCMediaFile-title': {
147
+ fontSize: '1rem',
148
+ maxWidth: 200
149
+ }
150
+ }
151
+ }
152
+ }),
153
+ triggerRoot: ({ theme }) => ({}),
154
+ triggerDrawerRoot: ({ theme }) => ({
155
+ zIndex: 1300
156
+ }),
157
+ triggerMenuRoot: ({ theme }) => ({})
158
+ }
159
+ };
160
+ exports.default = Component;
@@ -0,0 +1,65 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ displayRoot: ({ theme }: any) => {
4
+ '& .SCMediaLink-link': {
5
+ position: string;
6
+ backgroundColor: string;
7
+ margin: any;
8
+ padding: any;
9
+ };
10
+ '& .SCMediaLink-video': {
11
+ margin: string;
12
+ height: number;
13
+ };
14
+ '& .SCMediaLink-thumbnail': {
15
+ [x: number]: {
16
+ maxWidth: number;
17
+ width: string;
18
+ float: string;
19
+ };
20
+ border: string;
21
+ borderRadius: number;
22
+ paddingTop: any;
23
+ margin: any;
24
+ };
25
+ '& .SCMediaLink-image': {
26
+ backgroundSize: string;
27
+ backgroundPosition: string;
28
+ backgroundRepeat: string;
29
+ backgroundColor: string;
30
+ paddingBottom: number;
31
+ };
32
+ '& .SCMediaLink-snippet': {
33
+ padding: any;
34
+ '& .SCMediaLink-snippet-title': {};
35
+ '& .SCMediaLink-snippet-description': {
36
+ fontSize: string;
37
+ };
38
+ '& a': {
39
+ fontSize: string;
40
+ fontStyle: string;
41
+ };
42
+ };
43
+ };
44
+ layerRoot: ({ theme }: any) => {
45
+ '& .SCMediaLink-content': {
46
+ '& form button[type=submit]': {
47
+ fontWeight: any;
48
+ };
49
+ };
50
+ };
51
+ previewRoot: ({ theme }: any) => {
52
+ '& .SCMediaLink-media': {
53
+ position: string;
54
+ margin: any;
55
+ '& .SCMediaLink-delete': {
56
+ position: string;
57
+ right: any;
58
+ top: any;
59
+ };
60
+ };
61
+ };
62
+ triggerRoot: ({ theme }: any) => {};
63
+ };
64
+ };
65
+ export default Component;
@@ -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
  };
Binary file