@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
@@ -22,6 +22,7 @@ const Component = {
22
22
  height: theme.selfcommunity.user.avatar.sizeMedium
23
23
  },
24
24
  '& .SCFeedObject-header': {
25
+ paddingTop: theme.spacing(1),
25
26
  paddingBottom: 0,
26
27
  '& .MuiCardHeader-subheader': {
27
28
  display: 'flex',
@@ -86,7 +87,7 @@ const Component = {
86
87
  width: '100%',
87
88
  boxSizing: 'border-box',
88
89
  margin: 0,
89
- padding: theme.spacing(0.5, 2)
90
+ padding: theme.spacing(0.2, 2)
90
91
  },
91
92
  '& .SCFeedObject-info-section': {
92
93
  padding: theme.spacing(0, 2)
@@ -155,7 +156,8 @@ const Component = {
155
156
  '& .SCFeedObject-text-section': {
156
157
  overflowWrap: 'anywhere',
157
158
  '& > :first-of-type': {
158
- padding: theme.spacing(0, 2, 1),
159
+ marginBottom: 0,
160
+ padding: theme.spacing(0, 2, 0.5),
159
161
  display: 'block'
160
162
  },
161
163
  '& hr': {
@@ -254,22 +256,25 @@ const Component = {
254
256
  '& li': {
255
257
  margin: '0 32px'
256
258
  }
259
+ },
260
+ '& .SCFeedObject-show-more': {
261
+ padding: theme.spacing(0.5),
262
+ marginTop: theme.spacing(-0.5)
257
263
  }
258
264
  },
259
265
  '& .SCFeedObject-actions-section': {
260
- marginBottom: theme.spacing(1),
261
266
  '&:last-of-type': {
262
267
  marginBottom: 0
263
268
  },
264
269
  '& .SCFeedObjectActions-root': {
265
270
  margin: 0,
266
- padding: theme.spacing(0, 2, 0, 2),
271
+ padding: theme.spacing(0.2, 2, 0, 2),
267
272
  '& .SCFeedObjectActions-action': {
268
273
  marginTop: 'auto',
269
274
  '& .SCVoteAction-view-audience-button, & .SCCommentAction-view-audience-button, & .SCShareAction-view-audience-button, & .SCReactionAction-view-audience-button': {
270
275
  fontSize: '0.857rem',
271
276
  fontWeight: theme.typography.fontWeightRegular,
272
- marginTop: theme.spacing(1),
277
+ marginTop: theme.spacing(0),
273
278
  marginBottom: 0,
274
279
  color: theme.palette.primary.main,
275
280
  '&:hover': {
@@ -281,10 +286,10 @@ const Component = {
281
286
  },
282
287
  '& .SCVoteAction-button, & .SCCommentAction-button, & .SCShareAction-button, & .SCReactionAction-button': {
283
288
  color: theme.palette.primary.main,
284
- marginTop: theme.spacing(0.5),
289
+ marginTop: theme.spacing(-0.5),
285
290
  marginBottom: theme.spacing(0.5),
286
291
  borderRadius: '50%',
287
- padding: theme.spacing(1.5),
292
+ padding: theme.spacing(1),
288
293
  minWidth: 0,
289
294
  '& .MuiIcon-root': {
290
295
  fontSize: '1.57rem'
@@ -330,6 +335,7 @@ const Component = {
330
335
  paddingBottom: 0,
331
336
  '& .SCActivitiesMenu-selector': {
332
337
  '& .MuiButton-root': {
338
+ marginTop: theme.spacing(0.2),
333
339
  fontSize: '0.857rem',
334
340
  fontWeight: theme.typography.fontWeightRegular,
335
341
  padding: theme.spacing(1)
@@ -0,0 +1,11 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ position: string;
5
+ marginTop: number;
6
+ marginLeft: number;
7
+ marginRight: number;
8
+ };
9
+ };
10
+ };
11
+ export default Component;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const Component = {
4
4
  styleOverrides: {
5
5
  root: ({ theme }) => ({
6
- '& .SCNavigationToolbarMobileSkeleton-logo': {
7
- width: 100,
8
- height: 20
9
- }
6
+ position: 'relative',
7
+ marginTop: 0,
8
+ marginLeft: -2,
9
+ marginRight: -2
10
10
  })
11
11
  }
12
12
  };
@@ -28,13 +28,37 @@ declare const Component: {
28
28
  textTransform: string;
29
29
  };
30
30
  };
31
- '& .SCInlineComposerWidget-actions': {
31
+ '& .SCInlineComposerWidget-avatar': {
32
+ [x: number]: {
33
+ marginLeft: any;
34
+ };
32
35
  display: string;
33
- '& .MuiIconButton-root': {
34
- [x: number]: {
35
- marginLeft: number;
36
- marginRight: number;
37
- };
36
+ alignItems: string;
37
+ '& .MuiAvatar-root': {
38
+ width: any;
39
+ height: any;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ skeletonRoot: ({ theme }: any) => {
45
+ marginBottom: any;
46
+ '& .SCInlineComposerWidget-content, & .SCInlineComposerWidget-content:last-child': {
47
+ [x: number]: {
48
+ padding: any;
49
+ };
50
+ padding: any;
51
+ display: string;
52
+ flexDirection: string;
53
+ justifyContent: string;
54
+ '& .SCInlineComposerWidget-input': {
55
+ display: string;
56
+ flexGrow: number;
57
+ height: number;
58
+ width: string;
59
+ '& .MuiSkeleton-root': {
60
+ width: string;
61
+ height: string;
38
62
  };
39
63
  };
40
64
  '& .SCInlineComposerWidget-avatar': {
@@ -43,7 +67,7 @@ declare const Component: {
43
67
  };
44
68
  display: string;
45
69
  alignItems: string;
46
- '& .MuiAvatar-root': {
70
+ '& .MuiSkeleton-root': {
47
71
  width: any;
48
72
  height: any;
49
73
  };
@@ -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',
@@ -4,7 +4,7 @@ const Component = {
4
4
  styleOverrides: {
5
5
  root: ({ theme }) => ({
6
6
  '& .MuiCardContent-root': {
7
- padding: theme.spacing(2, 3, 2, 3)
7
+ padding: theme.spacing(2)
8
8
  },
9
9
  '& .SCLoyaltyProgramWidget-title': {
10
10
  fontWeight: theme.typography.fontWeightBold,
@@ -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;