@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
@@ -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;
@@ -133,7 +133,8 @@ const Component = {
133
133
  ['& .PhotoView-Slider__BannerRight']: {
134
134
  alignItems: 'center',
135
135
  display: 'flex',
136
- height: '100%'
136
+ height: '100%',
137
+ color: '#FFF'
137
138
  },
138
139
  ['& .PhotoView-Slider__toolbarIcon']: {
139
140
  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,158 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ displayRoot: ({ theme }) => ({
4
+ textAlign: 'center',
5
+ margin: 'auto',
6
+ width: '100%',
7
+ position: 'relative',
8
+ [theme.breakpoints.down('md')]: {
9
+ minHeight: 170
10
+ },
11
+ '& .SCMediaFile-background': {
12
+ backgroundSize: 'cover !important',
13
+ backgroundPosition: 'center !important',
14
+ backgroundRepeat: 'no-repeat !important'
15
+ },
16
+ '& .SCMediaFile-background-portrait': {
17
+ backgroundSize: 'contain !important',
18
+ backgroundPosition: 'center !important',
19
+ backgroundRepeat: 'no-repeat !important'
20
+ },
21
+ '& .SCMediaFile-height-one': {
22
+ width: '100%',
23
+ paddingTop: '99%'
24
+ },
25
+ '& .SCMediaFile-height-half-one': {
26
+ paddingTop: '50%'
27
+ },
28
+ '& .SCMediaFile-height-two': {
29
+ width: '50%',
30
+ paddingTop: '50%'
31
+ },
32
+ '& .SCMediaFile-height-three': {
33
+ width: '33.3333%',
34
+ paddingTop: '33.3333%'
35
+ },
36
+ '& .SCMediaFile-cover': {
37
+ backgroundColor: 'rgba(102,102,102,0.2)',
38
+ opacity: 0.8,
39
+ position: 'absolute',
40
+ right: 0,
41
+ top: 0,
42
+ left: 0,
43
+ bottom: 0
44
+ },
45
+ '& .SCMediaFile-cover-text': {
46
+ right: 0,
47
+ left: 0,
48
+ bottom: 0,
49
+ color: '#FFF',
50
+ fontSize: '7%',
51
+ position: 'absolute',
52
+ top: '50%',
53
+ transform: 'translate(0%, -50%)',
54
+ textAlign: 'center',
55
+ '& > p': {
56
+ margin: 0,
57
+ position: 'absolute',
58
+ top: '50%',
59
+ left: '50%',
60
+ transform: 'translate(-50%, -50%)'
61
+ }
62
+ },
63
+ '& .SCMediaFile-slide': {
64
+ height: 0,
65
+ bottom: '100%',
66
+ overflow: 'hidden',
67
+ fontSize: '3%',
68
+ color: '#FFF'
69
+ },
70
+ '& .SCMediaFile-border': {
71
+ position: 'relative',
72
+ border: '2px solid #FFF',
73
+ '&:hover > div': {
74
+ bottom: 0,
75
+ height: 'auto'
76
+ },
77
+ '&:hover > div.animate-text': {
78
+ top: '66%'
79
+ }
80
+ },
81
+ '& .SCMediaFile-gallery': {
82
+ cursor: 'pointer'
83
+ },
84
+ '& .SCMediaFile-title .MuiTypography-root': {
85
+ color: '#FFF',
86
+ backgroundColor: theme.palette.getContrastText('#FFF'),
87
+ opacity: 0.6
88
+ },
89
+ '& .SCMediaFile-icon-file': {
90
+ fontSize: 14,
91
+ position: 'relative',
92
+ top: 2
93
+ }
94
+ }),
95
+ lightboxRoot: ({ theme }) => ({}),
96
+ previewRoot: ({ theme }) => ({
97
+ '& > div': {
98
+ display: 'flex',
99
+ flexDirection: 'row',
100
+ flexWrap: 'nowrap',
101
+ maxWidth: '100%',
102
+ overflow: 'auto',
103
+ '-ms-overflow-style': 'none',
104
+ scrollbarWidth: 'none',
105
+ '&::-webkit-scrollbar': {
106
+ display: 'none'
107
+ },
108
+ '& .SCMediaFile-media': {
109
+ backgroundSize: 'cover',
110
+ backgroundPosition: 'center',
111
+ position: 'relative',
112
+ borderRadius: theme.shape.borderRadius * 0.5,
113
+ margin: theme.spacing(0.5),
114
+ width: 120,
115
+ height: 140,
116
+ flexBasis: 120,
117
+ flexGrow: 0,
118
+ flexShrink: 0,
119
+ '& .SCMediaFile-title': {
120
+ position: 'absolute',
121
+ left: theme.spacing(1),
122
+ top: theme.spacing(1),
123
+ borderRadius: theme.shape.borderRadius,
124
+ background: '#33333380 0% 0% no-repeat padding-box',
125
+ color: theme.palette.common.white,
126
+ fontSize: '0.875rem',
127
+ padding: theme.spacing(0.5, 1),
128
+ maxWidth: 50,
129
+ textOverflow: 'ellipsis',
130
+ overflow: 'hidden',
131
+ whiteSpace: 'nowrap'
132
+ },
133
+ '& .SCMediaFile-delete': {
134
+ position: 'absolute',
135
+ right: theme.spacing(0.5),
136
+ top: theme.spacing(0.5)
137
+ }
138
+ },
139
+ '&:has(> :last-child:nth-of-type(1)) .SCMediaFile-media': {
140
+ width: '100%',
141
+ flexBasis: '100%',
142
+ height: 220,
143
+ margin: theme.spacing(0.5, 0),
144
+ '& .SCMediaFile-title': {
145
+ fontSize: '1rem',
146
+ maxWidth: 200
147
+ }
148
+ }
149
+ }
150
+ }),
151
+ triggerRoot: ({ theme }) => ({}),
152
+ triggerDrawerRoot: ({ theme }) => ({
153
+ zIndex: 1300
154
+ }),
155
+ triggerMenuRoot: ({ theme }) => ({})
156
+ }
157
+ };
158
+ export 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,66 @@
1
+ import { alpha } from '@mui/system';
2
+ const Component = {
3
+ styleOverrides: {
4
+ displayRoot: ({ theme }) => ({
5
+ '& .SCMediaLink-link': {
6
+ position: 'relative',
7
+ backgroundColor: '#F5F5F5',
8
+ margin: theme.spacing(1, 0),
9
+ padding: theme.spacing(1)
10
+ },
11
+ '& .SCMediaLink-video': {
12
+ margin: '10px 0px',
13
+ height: 360
14
+ },
15
+ '& .SCMediaLink-thumbnail': {
16
+ border: `1px solid ${alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
17
+ borderRadius: theme.shape.borderRadius * 0.75,
18
+ paddingTop: theme.spacing(1),
19
+ margin: theme.spacing(1, 2, 1, 1),
20
+ [theme.breakpoints.up('sm')]: {
21
+ maxWidth: 200,
22
+ width: '100%',
23
+ float: 'left'
24
+ }
25
+ },
26
+ '& .SCMediaLink-image': {
27
+ backgroundSize: 'contain !important',
28
+ backgroundPosition: 'center !important',
29
+ backgroundRepeat: 'no-repeat !important',
30
+ backgroundColor: '#FFF !important',
31
+ paddingBottom: 120
32
+ },
33
+ '& .SCMediaLink-snippet': {
34
+ padding: theme.spacing(2),
35
+ '& .SCMediaLink-snippet-title': {},
36
+ '& .SCMediaLink-snippet-description': {
37
+ fontSize: '0.857rem'
38
+ },
39
+ '& a': {
40
+ fontSize: '1rem',
41
+ fontStyle: 'italic'
42
+ }
43
+ }
44
+ }),
45
+ layerRoot: ({ theme }) => ({
46
+ '& .SCMediaLink-content': {
47
+ '& form button[type=submit]': {
48
+ fontWeight: theme.typography.fontWeightBold
49
+ }
50
+ }
51
+ }),
52
+ previewRoot: ({ theme }) => ({
53
+ '& .SCMediaLink-media': {
54
+ position: 'relative',
55
+ margin: theme.spacing(1),
56
+ '& .SCMediaLink-delete': {
57
+ position: 'absolute',
58
+ right: theme.spacing(2),
59
+ top: theme.spacing(2)
60
+ }
61
+ }
62
+ }),
63
+ triggerRoot: ({ theme }) => ({}),
64
+ }
65
+ };
66
+ export 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,6 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ displayRoot: ({ theme }) => ({})
4
+ }
5
+ };
6
+ export 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;
@@ -16,6 +16,12 @@ const Component = {
16
16
  textOverflow: 'ellipsis',
17
17
  whiteSpace: 'nowrap'
18
18
  }
19
+ }),
20
+ skeletonRoot: ({ theme }) => ({
21
+ '& .SCNavigationToolbarMobile-logo': {
22
+ width: 100,
23
+ height: 20
24
+ }
19
25
  })
20
26
  }
21
27
  };
Binary file