@selfcommunity/react-theme-default 0.5.0-alpha.9 → 0.5.0-mui7.23

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 (42) hide show
  1. package/lib/cjs/components/MuiAutocomplete.d.ts +2 -3
  2. package/lib/cjs/components/MuiSelect.d.ts +1 -2
  3. package/lib/cjs/components/MuiTooltip.d.ts +5 -0
  4. package/lib/cjs/components/MuiTooltip.js +5 -0
  5. package/lib/cjs/components/SCCategoryHeader.d.ts +4 -0
  6. package/lib/cjs/components/SCCategoryHeader.js +4 -0
  7. package/lib/cjs/components/SCComposer.d.ts +8 -5
  8. package/lib/cjs/components/SCComposer.js +11 -5
  9. package/lib/cjs/components/SCFeedObject.d.ts +10 -0
  10. package/lib/cjs/components/SCFeedObject.js +10 -0
  11. package/lib/cjs/components/SCFooter.d.ts +1 -0
  12. package/lib/cjs/components/SCFooter.js +1 -0
  13. package/lib/cjs/components/SCFooterWidget.d.ts +10 -0
  14. package/lib/cjs/components/SCFooterWidget.js +12 -0
  15. package/lib/cjs/components/SCMediaFile.d.ts +6 -4
  16. package/lib/cjs/components/SCMediaFile.js +7 -5
  17. package/lib/cjs/components/SCUserAutocomplete.d.ts +18 -0
  18. package/lib/cjs/components/SCUserAutocomplete.js +20 -0
  19. package/lib/cjs/index.d.ts +67 -19
  20. package/lib/cjs/index.js +5 -1
  21. package/lib/esm/components/MuiAutocomplete.d.ts +2 -3
  22. package/lib/esm/components/MuiSelect.d.ts +1 -2
  23. package/lib/esm/components/MuiTooltip.d.ts +5 -0
  24. package/lib/esm/components/MuiTooltip.js +5 -0
  25. package/lib/esm/components/SCCategoryHeader.d.ts +4 -0
  26. package/lib/esm/components/SCCategoryHeader.js +4 -0
  27. package/lib/esm/components/SCComposer.d.ts +8 -5
  28. package/lib/esm/components/SCComposer.js +11 -5
  29. package/lib/esm/components/SCFeedObject.d.ts +10 -0
  30. package/lib/esm/components/SCFeedObject.js +10 -0
  31. package/lib/esm/components/SCFooter.d.ts +1 -0
  32. package/lib/esm/components/SCFooter.js +1 -0
  33. package/lib/esm/components/SCFooterWidget.d.ts +10 -0
  34. package/lib/esm/components/SCFooterWidget.js +10 -0
  35. package/lib/esm/components/SCMediaFile.d.ts +6 -4
  36. package/lib/esm/components/SCMediaFile.js +7 -5
  37. package/lib/esm/components/SCUserAutocomplete.d.ts +18 -0
  38. package/lib/esm/components/SCUserAutocomplete.js +18 -0
  39. package/lib/esm/index.d.ts +67 -19
  40. package/lib/esm/index.js +5 -1
  41. package/lib/umd/react-theme-default.js +1 -1
  42. package/package.json +10 -11
@@ -35,9 +35,9 @@ const Component = {
35
35
  margin: '45px 0',
36
36
  padding: theme.spacing(1, 2),
37
37
  height: `calc(100% - 45px - 45px - ${theme.spacing(2)})`,
38
- [theme.breakpoints.up('md')]: {
39
- overflowY: 'hidden'
40
- },
38
+ // [theme.breakpoints.up('md')]: {
39
+ // overflowY: 'hidden'
40
+ // },
41
41
  '& .SCEditor-root': {
42
42
  padding: theme.spacing(1, 0),
43
43
  marginBottom: theme.spacing(3),
@@ -66,7 +66,8 @@ const Component = {
66
66
  bottom: theme.spacing(7),
67
67
  left: 0,
68
68
  right: 0,
69
- justifyContent: 'center'
69
+ display: 'inline-table',
70
+ margin: 'auto'
70
71
  },
71
72
  '& .MuiDialogActions-root': {
72
73
  position: 'absolute',
@@ -109,7 +110,12 @@ const Component = {
109
110
  }
110
111
  }
111
112
  }),
112
- attributesRoot: () => ({}),
113
+ attributesRoot: ({ theme }) => ({
114
+ '& .MuiChip-root': {
115
+ marginRight: theme.spacing(0.5),
116
+ marginTop: theme.spacing(0.5)
117
+ }
118
+ }),
113
119
  contentDiscussionRoot: ({ theme }) => ({
114
120
  '& .SCComposer-content-discussion-title': {
115
121
  '& .MuiInputBase-root': {
@@ -143,6 +143,15 @@ declare const Component: {
143
143
  opacity: number;
144
144
  };
145
145
  };
146
+ '& .SCFeedObject-new': {
147
+ color: any;
148
+ backgroundColor: string;
149
+ padding: string;
150
+ borderRadius: string;
151
+ marginRight: string;
152
+ fontSize: string;
153
+ fontWeight: number;
154
+ };
146
155
  '&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
147
156
  [x: number]: {
148
157
  borderRadius: any;
@@ -335,6 +344,7 @@ declare const Component: {
335
344
  };
336
345
  };
337
346
  '& .SCFeedObject-medias-section': {
347
+ padding: any;
338
348
  '& .SCFeedObjectMediaPreview-root': {
339
349
  margin: any;
340
350
  };
@@ -144,6 +144,15 @@ const Component = {
144
144
  opacity: 1
145
145
  }
146
146
  },
147
+ '& .SCFeedObject-new': {
148
+ color: theme.palette.common.white,
149
+ backgroundColor: '#fa0501',
150
+ padding: '0 3px',
151
+ borderRadius: '3px',
152
+ marginRight: '3px',
153
+ fontSize: '10px',
154
+ fontWeight: 600
155
+ },
147
156
  '&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
148
157
  border: `0 none`,
149
158
  boxShadow: '0px 0px 10px rgba(0, 0, 0, 0.1)',
@@ -336,6 +345,7 @@ const Component = {
336
345
  }
337
346
  },
338
347
  '& .SCFeedObject-medias-section': {
348
+ padding: theme.spacing(1, 0),
339
349
  '& .SCFeedObjectMediaPreview-root': {
340
350
  margin: theme.spacing(0, 1)
341
351
  }
@@ -9,6 +9,7 @@ declare const Component: {
9
9
  display: string;
10
10
  justifyContent: string;
11
11
  flexDirection: string;
12
+ flexWrap: string;
12
13
  '& .SCFooter-item': {
13
14
  padding: any;
14
15
  color: any;
@@ -9,6 +9,7 @@ const Component = {
9
9
  display: 'flex',
10
10
  justifyContent: 'center',
11
11
  flexDirection: 'row',
12
+ flexWrap: 'wrap',
12
13
  '& .SCFooter-item': {
13
14
  padding: theme.spacing(0.5, 1),
14
15
  color: theme.palette.text.primary
@@ -0,0 +1,10 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCFooterWidget-content': {
5
+ paddingBottom: any;
6
+ };
7
+ };
8
+ };
9
+ };
10
+ export default Component;
@@ -0,0 +1,10 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCFooterWidget-content': {
5
+ paddingBottom: theme.spacing(2.2)
6
+ }
7
+ })
8
+ }
9
+ };
10
+ export default Component;
@@ -162,15 +162,17 @@ declare const Component: {
162
162
  docRoot: ({ theme }: {
163
163
  theme: any;
164
164
  }) => {
165
- borderRadius: string;
166
165
  border: string;
166
+ borderRadius: string;
167
167
  padding: any;
168
168
  flexDirection: string;
169
169
  gap: string;
170
- '& .SCMediaFile-image': {
171
- width: string;
172
- height: string;
170
+ '& .SCMediaFile-image-wrapper': {
173
171
  flexShrink: number;
172
+ padding: number;
173
+ '&:hover': {
174
+ backgroundColor: string;
175
+ };
174
176
  };
175
177
  '& .SCMediaFile-text-wrapper': {
176
178
  [x: number]: {
@@ -160,15 +160,17 @@ const Component = {
160
160
  }),
161
161
  triggerMenuRoot: () => ({}),
162
162
  docRoot: ({ theme }) => ({
163
- borderRadius: '10px',
164
163
  border: '1px solid #DDD',
164
+ borderRadius: '10px',
165
165
  padding: theme.spacing(1),
166
166
  flexDirection: 'row',
167
167
  gap: '8px',
168
- '& .SCMediaFile-image': {
169
- width: '50px',
170
- height: '50px',
171
- flexShrink: 0
168
+ '& .SCMediaFile-image-wrapper': {
169
+ flexShrink: 0,
170
+ padding: 0,
171
+ '&:hover': {
172
+ backgroundColor: 'unset'
173
+ }
172
174
  },
173
175
  '& .SCMediaFile-text-wrapper': {
174
176
  gap: '4px',
@@ -0,0 +1,18 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .SCUserAutocomplete-info': {
5
+ [x: number]: {
6
+ alignItems: string;
7
+ };
8
+ marginTop: any;
9
+ display: string;
10
+ '& .MuiIcon-root': {
11
+ marginRight: any;
12
+ };
13
+ };
14
+ };
15
+ autocompleteRoot: ({ theme }: any) => {};
16
+ };
17
+ };
18
+ export default Component;
@@ -0,0 +1,18 @@
1
+ const Component = {
2
+ styleOverrides: {
3
+ root: ({ theme }) => ({
4
+ '& .SCUserAutocomplete-info': {
5
+ marginTop: theme.spacing(3),
6
+ display: 'flex',
7
+ [theme.breakpoints.up('sm')]: {
8
+ alignItems: 'center'
9
+ },
10
+ '& .MuiIcon-root': {
11
+ marginRight: theme.spacing(0.5)
12
+ }
13
+ }
14
+ }),
15
+ autocompleteRoot: ({ theme }) => ({})
16
+ }
17
+ };
18
+ export default Component;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './fonts/community-icons.css';
3
2
  import './styles/reset.css';
4
3
  /**
@@ -78,8 +77,8 @@ declare const theme: {
78
77
  };
79
78
  MuiAutocomplete: {
80
79
  defaultProps: {
81
- clearIcon: JSX.Element;
82
- popupIcon: JSX.Element;
80
+ clearIcon: import("react/jsx-runtime").JSX.Element;
81
+ popupIcon: import("react/jsx-runtime").JSX.Element;
83
82
  };
84
83
  };
85
84
  MuiAvatar: {
@@ -225,13 +224,18 @@ declare const theme: {
225
224
  defaultProps: {
226
225
  IconComponent: ({ className }: {
227
226
  className: any;
228
- }) => JSX.Element;
227
+ }) => import("react/jsx-runtime").JSX.Element;
229
228
  };
230
229
  };
231
230
  MuiTooltip: {
232
231
  defaultProps: {
233
232
  enterDelay: number;
234
233
  };
234
+ styleOverrides: {
235
+ tooltip: ({ theme }: any) => {
236
+ borderRadius: any;
237
+ };
238
+ };
235
239
  };
236
240
  SCAccordionLessons: {
237
241
  styleOverrides: {
@@ -898,6 +902,10 @@ declare const theme: {
898
902
  fontWeight: any;
899
903
  marginBottom: string;
900
904
  };
905
+ '& .SCCategoryHeader-tags': {
906
+ display: string;
907
+ justifyContent: string;
908
+ };
901
909
  '& .SCCategoryHeader-followed, & .SCCategoryHeader-action': {
902
910
  textAlign: string;
903
911
  marginBottom: any;
@@ -1370,9 +1378,6 @@ declare const theme: {
1370
1378
  };
1371
1379
  };
1372
1380
  '& .MuiDialogContent-root': {
1373
- [x: number]: {
1374
- overflowY: string;
1375
- };
1376
1381
  margin: string;
1377
1382
  padding: any;
1378
1383
  height: string;
@@ -1404,7 +1409,8 @@ declare const theme: {
1404
1409
  bottom: any;
1405
1410
  left: number;
1406
1411
  right: number;
1407
- justifyContent: string;
1412
+ display: string;
1413
+ margin: string;
1408
1414
  };
1409
1415
  '& .MuiDialogActions-root': {
1410
1416
  position: string;
@@ -1433,7 +1439,12 @@ declare const theme: {
1433
1439
  };
1434
1440
  };
1435
1441
  };
1436
- attributesRoot: () => {};
1442
+ attributesRoot: ({ theme }: any) => {
1443
+ '& .MuiChip-root': {
1444
+ marginRight: any;
1445
+ marginTop: any;
1446
+ };
1447
+ };
1437
1448
  contentDiscussionRoot: ({ theme }: any) => {
1438
1449
  '& .SCComposer-content-discussion-title': {
1439
1450
  '& .MuiInputBase-root': {
@@ -4086,6 +4097,15 @@ declare const theme: {
4086
4097
  opacity: number;
4087
4098
  };
4088
4099
  };
4100
+ '& .SCFeedObject-new': {
4101
+ color: any;
4102
+ backgroundColor: string;
4103
+ padding: string;
4104
+ borderRadius: string;
4105
+ marginRight: string;
4106
+ fontSize: string;
4107
+ fontWeight: number;
4108
+ };
4089
4109
  '&.SCFeedObject-preview, &.SCFeedObject-detail, &.SCFeedObject-search, &.SCFeedObject-share': {
4090
4110
  [x: number]: {
4091
4111
  borderRadius: any;
@@ -4278,6 +4298,7 @@ declare const theme: {
4278
4298
  };
4279
4299
  };
4280
4300
  '& .SCFeedObject-medias-section': {
4301
+ padding: any;
4281
4302
  '& .SCFeedObjectMediaPreview-root': {
4282
4303
  margin: any;
4283
4304
  };
@@ -4382,6 +4403,9 @@ declare const theme: {
4382
4403
  '& .SCCommentObject-skeleton-root': {
4383
4404
  background: string;
4384
4405
  marginTop: number;
4406
+ /**
4407
+ * Style assets - Imports - Start
4408
+ */
4385
4409
  marginBottom: string;
4386
4410
  '& .SCBaseItem-text': {
4387
4411
  '& .SCWidget-root': {
@@ -4406,9 +4430,7 @@ declare const theme: {
4406
4430
  };
4407
4431
  };
4408
4432
  };
4409
- }; /**
4410
- * Export default theme
4411
- */
4433
+ };
4412
4434
  };
4413
4435
  };
4414
4436
  '&.SCFeedObject-snippet': {
@@ -4789,6 +4811,7 @@ declare const theme: {
4789
4811
  display: string;
4790
4812
  justifyContent: string;
4791
4813
  flexDirection: string;
4814
+ flexWrap: string;
4792
4815
  '& .SCFooter-item': {
4793
4816
  padding: any;
4794
4817
  color: any;
@@ -6657,15 +6680,17 @@ declare const theme: {
6657
6680
  docRoot: ({ theme }: {
6658
6681
  theme: any;
6659
6682
  }) => {
6660
- borderRadius: string;
6661
6683
  border: string;
6684
+ borderRadius: string;
6662
6685
  padding: any;
6663
6686
  flexDirection: string;
6664
6687
  gap: string;
6665
- '& .SCMediaFile-image': {
6666
- width: string;
6667
- height: string;
6688
+ '& .SCMediaFile-image-wrapper': {
6668
6689
  flexShrink: number;
6690
+ padding: number;
6691
+ '&:hover': {
6692
+ backgroundColor: string;
6693
+ };
6669
6694
  };
6670
6695
  '& .SCMediaFile-text-wrapper': {
6671
6696
  [x: number]: {
@@ -8033,9 +8058,6 @@ declare const theme: {
8033
8058
  alignItems: string;
8034
8059
  marginRight: any;
8035
8060
  '& .MuiIcon-root': {
8036
- /**
8037
- * Style assets - Imports - Start
8038
- */
8039
8061
  margin: any;
8040
8062
  };
8041
8063
  };
@@ -9035,6 +9057,23 @@ declare const theme: {
9035
9057
  };
9036
9058
  };
9037
9059
  };
9060
+ SCUserAutocomplete: {
9061
+ styleOverrides: {
9062
+ root: ({ theme }: any) => {
9063
+ '& .SCUserAutocomplete-info': {
9064
+ [x: number]: {
9065
+ alignItems: string;
9066
+ };
9067
+ marginTop: any;
9068
+ display: string;
9069
+ '& .MuiIcon-root': {
9070
+ marginRight: any;
9071
+ };
9072
+ };
9073
+ };
9074
+ autocompleteRoot: ({ theme }: any) => {};
9075
+ };
9076
+ };
9038
9077
  SCUserCategoriesFollowedWidget: {
9039
9078
  styleOverrides: {
9040
9079
  root: ({ theme }: any) => {};
@@ -12363,6 +12402,15 @@ declare const theme: {
12363
12402
  };
12364
12403
  };
12365
12404
  };
12405
+ SCFooterWidget: {
12406
+ styleOverrides: {
12407
+ root: ({ theme }: any) => {
12408
+ '& .SCFooterWidget-content': {
12409
+ paddingBottom: any;
12410
+ };
12411
+ };
12412
+ };
12413
+ };
12366
12414
  };
12367
12415
  selfcommunity: {
12368
12416
  user: {
package/lib/esm/index.js CHANGED
@@ -183,6 +183,7 @@ import SCToastNotifications from './components/SCToastNotifications';
183
183
  import SCUser from './components/SCUser';
184
184
  import SCUserActionIconButton from './components/SCUserActionIconButton';
185
185
  import SCUserAvatar from './components/SCUserAvatar';
186
+ import SCUserAutocomplete from './components/SCUserAutocomplete';
186
187
  import SCUserCategoriesFollowedWidget from './components/SCUserCategoriesFollowedWidget';
187
188
  import SCUserConnectionsRequestsSentWidget from './components/SCUserConnectionsRequestsSentWidget';
188
189
  import SCUserConnectionsRequestsWidget from './components/SCUserConnectionsRequestsWidget';
@@ -217,6 +218,7 @@ import SCPaywallsConfigurator from './components/SCPaywallsConfigurator';
217
218
  import SCPdfPreview from './components/SCPdfPreview';
218
219
  import SCPaymentOrders from './components/SCPaymentOrders';
219
220
  import SCCheckoutHeaderInfoWidget from './components/SCCheckoutHeaderInfoWidget';
221
+ import SCFooterWidget from './components/SCFooterWidget';
220
222
  /**
221
223
  * Style fragments - Imports - End
222
224
  */
@@ -446,6 +448,7 @@ const theme = {
446
448
  SCUser,
447
449
  SCUserActionIconButton,
448
450
  SCUserAvatar,
451
+ SCUserAutocomplete,
449
452
  SCUserCategoriesFollowedWidget,
450
453
  SCUserConnectionsRequestsSentWidget,
451
454
  SCUserConnectionsRequestsWidget,
@@ -512,7 +515,8 @@ const theme = {
512
515
  SCPaywallsConfigurator,
513
516
  SCPdfPreview,
514
517
  SCPaymentOrders,
515
- SCCheckoutHeaderInfoWidget
518
+ SCCheckoutHeaderInfoWidget,
519
+ SCFooterWidget
516
520
  },
517
521
  selfcommunity: {
518
522
  user: {