@selfcommunity/react-theme-default 0.4.5-alpha.2 → 0.4.5-alpha.20

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 (70) hide show
  1. package/lib/cjs/components/SCBaseItemButton.d.ts +26 -35
  2. package/lib/cjs/components/SCBaseItemButton.js +27 -36
  3. package/lib/cjs/components/SCCommentObject.d.ts +7 -17
  4. package/lib/cjs/components/SCCommentObject.js +7 -17
  5. package/lib/cjs/components/SCComposer.d.ts +38 -9
  6. package/lib/cjs/components/SCComposer.js +40 -11
  7. package/lib/cjs/components/SCCreateLiveStreamButton.d.ts +12 -0
  8. package/lib/cjs/components/SCCreateLiveStreamButton.js +14 -0
  9. package/lib/cjs/components/SCEvent.d.ts +22 -0
  10. package/lib/cjs/components/SCEvent.js +22 -0
  11. package/lib/cjs/components/SCEventFormDialog.d.ts +9 -0
  12. package/lib/cjs/components/SCEventFormDialog.js +9 -0
  13. package/lib/cjs/components/SCEvents.d.ts +11 -1
  14. package/lib/cjs/components/SCEvents.js +12 -2
  15. package/lib/cjs/components/SCFeedObject.d.ts +21 -15
  16. package/lib/cjs/components/SCFeedObject.js +22 -16
  17. package/lib/cjs/components/SCFeedObjectDetailTemplate.d.ts +11 -0
  18. package/lib/cjs/components/SCFeedObjectDetailTemplate.js +12 -1
  19. package/lib/cjs/components/SCGroupForm.d.ts +3 -0
  20. package/lib/cjs/components/SCGroupForm.js +3 -0
  21. package/lib/cjs/components/SCLiveStreamForm.d.ts +9 -0
  22. package/lib/cjs/components/SCLiveStreamForm.js +10 -1
  23. package/lib/cjs/components/SCLiveStreamRoom.d.ts +27 -1
  24. package/lib/cjs/components/SCLiveStreamRoom.js +27 -1
  25. package/lib/cjs/components/SCLiveStreamSelector.d.ts +2 -0
  26. package/lib/cjs/components/SCLiveStreamSelector.js +4 -2
  27. package/lib/cjs/components/SCLiveStreamVideoConference.d.ts +4 -1
  28. package/lib/cjs/components/SCLiveStreamVideoConference.js +5 -2
  29. package/lib/cjs/components/SCNavigationMenuDrawer.d.ts +3 -2
  30. package/lib/cjs/components/SCNavigationMenuDrawer.js +3 -2
  31. package/lib/cjs/components/SCPrivateMessageThreadItem.d.ts +2 -0
  32. package/lib/cjs/components/SCPrivateMessageThreadItem.js +2 -1
  33. package/lib/cjs/index.d.ts +206 -84
  34. package/lib/cjs/index.js +2 -0
  35. package/lib/esm/components/SCBaseItemButton.d.ts +26 -35
  36. package/lib/esm/components/SCBaseItemButton.js +27 -36
  37. package/lib/esm/components/SCCommentObject.d.ts +7 -17
  38. package/lib/esm/components/SCCommentObject.js +7 -17
  39. package/lib/esm/components/SCComposer.d.ts +38 -9
  40. package/lib/esm/components/SCComposer.js +40 -11
  41. package/lib/esm/components/SCCreateLiveStreamButton.d.ts +12 -0
  42. package/lib/esm/components/SCCreateLiveStreamButton.js +12 -0
  43. package/lib/esm/components/SCEvent.d.ts +22 -0
  44. package/lib/esm/components/SCEvent.js +22 -0
  45. package/lib/esm/components/SCEventFormDialog.d.ts +9 -0
  46. package/lib/esm/components/SCEventFormDialog.js +9 -0
  47. package/lib/esm/components/SCEvents.d.ts +11 -1
  48. package/lib/esm/components/SCEvents.js +12 -2
  49. package/lib/esm/components/SCFeedObject.d.ts +21 -15
  50. package/lib/esm/components/SCFeedObject.js +22 -16
  51. package/lib/esm/components/SCFeedObjectDetailTemplate.d.ts +11 -0
  52. package/lib/esm/components/SCFeedObjectDetailTemplate.js +12 -1
  53. package/lib/esm/components/SCGroupForm.d.ts +3 -0
  54. package/lib/esm/components/SCGroupForm.js +3 -0
  55. package/lib/esm/components/SCLiveStreamForm.d.ts +9 -0
  56. package/lib/esm/components/SCLiveStreamForm.js +10 -1
  57. package/lib/esm/components/SCLiveStreamRoom.d.ts +27 -1
  58. package/lib/esm/components/SCLiveStreamRoom.js +27 -1
  59. package/lib/esm/components/SCLiveStreamSelector.d.ts +2 -0
  60. package/lib/esm/components/SCLiveStreamSelector.js +4 -2
  61. package/lib/esm/components/SCLiveStreamVideoConference.d.ts +4 -1
  62. package/lib/esm/components/SCLiveStreamVideoConference.js +5 -2
  63. package/lib/esm/components/SCNavigationMenuDrawer.d.ts +3 -2
  64. package/lib/esm/components/SCNavigationMenuDrawer.js +3 -2
  65. package/lib/esm/components/SCPrivateMessageThreadItem.d.ts +2 -0
  66. package/lib/esm/components/SCPrivateMessageThreadItem.js +2 -1
  67. package/lib/esm/index.d.ts +206 -84
  68. package/lib/esm/index.js +2 -0
  69. package/lib/umd/react-theme-default.js +1 -1
  70. package/package.json +2 -2
@@ -441,52 +441,43 @@ declare const theme: {
441
441
  paddingBottom: number;
442
442
  paddingLeft: number;
443
443
  paddingRight: number;
444
- '& .SCBaseItemButton-actions': {
445
- right: number;
446
- };
447
444
  };
448
445
  };
449
446
  '& .SCBaseItemButton-content': {
450
447
  display: string;
451
- flexDirection: string;
452
448
  justifyContent: string;
453
449
  alignItems: string;
454
- width: string;
455
- };
456
- '& .SCBaseItemButton-image': {
457
- flexShrink: number;
458
- marginRight: any;
459
- };
460
- '& .SCBaseItemButton-text': {
461
- flex: string;
462
- marginTop: any;
463
- marginBottom: any;
464
- textAlign: string;
465
- };
466
- '& .SCBaseItemButton-primary': {
467
- color: any;
468
- };
469
- '& .SCBaseItemButton-secondary': {
470
- color: any;
471
- };
472
- '& .SCBaseItemButton-primary, & .SCBaseItemButton-secondary': {
473
- whiteSpace: string;
474
- overflow: string;
475
- textOverflow: string;
476
- display: string;
450
+ gap: any;
451
+ '& .SCBaseItemButton-image': {
452
+ flexShrink: number;
453
+ };
454
+ '& .SCBaseItemButton-text': {
455
+ marginTop: any;
456
+ marginBottom: any;
457
+ '& .SCBaseItemButton-primary': {
458
+ color: any;
459
+ };
460
+ '& .SCBaseItemButton-secondary': {
461
+ color: any;
462
+ };
463
+ };
477
464
  };
478
465
  '&.SCBaseItemButton-with-actions': {
479
- '& .SCBaseItemButton-text > *': {
480
- [x: number]: {
481
- maxWidth: string;
466
+ display: string;
467
+ alignItems: string;
468
+ justifyContent: string;
469
+ gap: string;
470
+ '& .SCBaseItemButton-content': {
471
+ overflow: string;
472
+ '& .SCBaseItemButton-text': {
473
+ whiteSpace: string;
474
+ overflow: string;
475
+ textOverflow: string;
476
+ flexGrow: number;
482
477
  };
483
- maxWidth: string;
484
478
  };
485
479
  '& .SCBaseItemButton-actions': {
486
- position: string;
487
- right: any;
488
- top: string;
489
- transform: string;
480
+ flexShrink: number;
490
481
  maxWidth: any;
491
482
  };
492
483
  };
@@ -1032,27 +1023,16 @@ declare const theme: {
1032
1023
  color: any;
1033
1024
  };
1034
1025
  '& .SCCommentObject-comment-sub-section': {
1035
- [x: number]: {
1036
- '& > *': {
1037
- marginRight: number;
1038
- };
1039
- '& .SCCommentObject-vote-audience': {
1040
- position: string;
1041
- right: number;
1042
- top: number;
1043
- };
1044
- '& .SCBullet-root': {
1045
- display: string;
1046
- };
1047
- };
1048
1026
  display: string;
1049
1027
  flexWrap: string;
1050
1028
  alignItems: string;
1051
1029
  color: any;
1052
1030
  marginTop: number;
1053
1031
  position: string;
1054
- '& > *': {
1055
- marginRight: any;
1032
+ '& .SCCommentObject-reply': {
1033
+ paddingLeft: number;
1034
+ paddingRight: number;
1035
+ lineHeight: number;
1056
1036
  };
1057
1037
  '& .SCCommentObject-activity-at': {
1058
1038
  color: string;
@@ -1068,8 +1048,9 @@ declare const theme: {
1068
1048
  padding: any;
1069
1049
  textTransform: string;
1070
1050
  };
1071
- '& .SCBullet-root': {
1072
- display: string;
1051
+ '& .SCCommentObject-vote-audience': {
1052
+ position: string;
1053
+ right: number;
1073
1054
  };
1074
1055
  };
1075
1056
  };
@@ -1231,7 +1212,6 @@ declare const theme: {
1231
1212
  '& .MuiDialogContent-root': {
1232
1213
  minHeight: number;
1233
1214
  height: string;
1234
- maxHeight: number;
1235
1215
  };
1236
1216
  '& .MuiDialogActions-root': {
1237
1217
  justifyContent: string;
@@ -1268,22 +1248,21 @@ declare const theme: {
1268
1248
  };
1269
1249
  };
1270
1250
  '& .MuiDialogContent-root': {
1251
+ [x: number]: {
1252
+ overflowY: string;
1253
+ };
1271
1254
  margin: string;
1272
1255
  padding: any;
1273
1256
  height: string;
1274
1257
  '& .SCEditor-root': {
1275
1258
  padding: any;
1259
+ marginBottom: any;
1260
+ position: string;
1276
1261
  '& .SCEditor-placeholder': {
1277
1262
  left: number;
1278
- top: any;
1279
1263
  position: string;
1280
1264
  };
1281
1265
  '&.SCEditor-toolbar': {
1282
- position: string;
1283
- '& .SCEditor-placeholder': {
1284
- marginTop: number;
1285
- position: string;
1286
- };
1287
1266
  '& .SCEditorToolbarPlugin-root': {
1288
1267
  zIndex: number;
1289
1268
  position: string;
@@ -1327,8 +1306,12 @@ declare const theme: {
1327
1306
  attributesRoot: ({ theme }: any) => {};
1328
1307
  contentDiscussionRoot: ({ theme }: any) => {
1329
1308
  '& .SCComposer-content-discussion-title': {
1330
- paddingBottom: any;
1331
1309
  '& .MuiInputBase-root': {
1310
+ [x: number]: {
1311
+ maxHeight: number;
1312
+ };
1313
+ maxHeight: number;
1314
+ overflowY: string;
1332
1315
  paddingLeft: number;
1333
1316
  paddingRight: number;
1334
1317
  paddingBottom: number;
@@ -1348,6 +1331,19 @@ declare const theme: {
1348
1331
  marginLeft: number;
1349
1332
  };
1350
1333
  };
1334
+ '& .SCEditor-root': {
1335
+ '& .SCEditor-placeholder': {
1336
+ top: any;
1337
+ };
1338
+ '& .SCEditor-content': {
1339
+ [x: number]: {
1340
+ maxHeight: number;
1341
+ };
1342
+ overflowY: string;
1343
+ minHeight: number;
1344
+ maxHeight: string;
1345
+ };
1346
+ };
1351
1347
  };
1352
1348
  contentPollRoot: ({ theme }: any) => {
1353
1349
  padding: any;
@@ -1361,7 +1357,21 @@ declare const theme: {
1361
1357
  marginTop: any;
1362
1358
  };
1363
1359
  };
1364
- contentPostRoot: ({ theme }: any) => {};
1360
+ contentPostRoot: ({ theme }: any) => {
1361
+ '& .SCEditor-root': {
1362
+ '& .SCEditor-placeholder': {
1363
+ top: any;
1364
+ };
1365
+ '& .SCEditor-content': {
1366
+ [x: number]: {
1367
+ maxHeight: number;
1368
+ };
1369
+ overflowY: string;
1370
+ minHeight: number;
1371
+ maxHeight: string;
1372
+ };
1373
+ };
1374
+ };
1365
1375
  layerTransitionRoot: ({ theme }: any) => {
1366
1376
  position: string;
1367
1377
  top: number;
@@ -2215,16 +2225,16 @@ declare const theme: {
2215
2225
  [x: number]: {
2216
2226
  marginRight: string;
2217
2227
  };
2228
+ height: number;
2218
2229
  };
2219
2230
  };
2220
2231
  '& .SCFeedObject-group, & .SCFeedObject-event': {
2221
2232
  justifyContent: string;
2222
- padding: any;
2223
- height: number;
2224
2233
  '& a': {
2225
2234
  padding: any;
2226
- marginBottom: any;
2235
+ margin: any;
2227
2236
  color: any;
2237
+ maxHeight: number;
2228
2238
  '&:hover': {
2229
2239
  backgroundColor: any;
2230
2240
  };
@@ -2456,19 +2466,24 @@ declare const theme: {
2456
2466
  '& li': {
2457
2467
  margin: string;
2458
2468
  };
2459
- '& span span': {
2460
- display: string;
2461
- };
2462
- '& span span:not(:has(+ a))': {
2463
- width: string;
2464
- };
2465
- '& span a': {
2466
- display: string;
2467
- margin: any;
2468
- };
2469
- '& span a:hover': {
2469
+ '& span': {
2470
2470
  '& span': {
2471
- textDecoration: string;
2471
+ display: string;
2472
+ };
2473
+ '& span:not(:has(+ a))': {
2474
+ width: string;
2475
+ };
2476
+ '& a': {
2477
+ display: string;
2478
+ margin: any;
2479
+ };
2480
+ '& a:hover': {
2481
+ '& span': {
2482
+ textDecoration: string;
2483
+ };
2484
+ };
2485
+ '& :last-child': {
2486
+ display: string;
2472
2487
  };
2473
2488
  };
2474
2489
  };
@@ -2481,6 +2496,7 @@ declare const theme: {
2481
2496
  fontSize: any;
2482
2497
  fontWeight: any;
2483
2498
  padding: any;
2499
+ marginTop: number;
2484
2500
  justifyContent: string;
2485
2501
  '&:hover': {
2486
2502
  backgroundColor: string;
@@ -2527,9 +2543,6 @@ declare const theme: {
2527
2543
  };
2528
2544
  };
2529
2545
  '& .SCFeedObject-reply-content': {
2530
- /**
2531
- * Export default theme
2532
- */
2533
2546
  marginLeft: number;
2534
2547
  background: string;
2535
2548
  '& .SCCommentObjectReply-root': {
@@ -2911,8 +2924,19 @@ declare const theme: {
2911
2924
  '& .SCFeedObject-text-section .SCFeedObject-text': {
2912
2925
  '& span': {
2913
2926
  display: string;
2927
+ };
2928
+ '& span:not(:has(+ a))': {
2914
2929
  width: string;
2915
2930
  };
2931
+ '& a': {
2932
+ display: string;
2933
+ margin: any;
2934
+ };
2935
+ '& a:hover': {
2936
+ '& span': {
2937
+ textDecoration: string;
2938
+ };
2939
+ };
2916
2940
  };
2917
2941
  };
2918
2942
  };
@@ -3094,6 +3118,9 @@ declare const theme: {
3094
3118
  height: any;
3095
3119
  width: any;
3096
3120
  };
3121
+ '& .MuiIcon-root': {
3122
+ color: any;
3123
+ };
3097
3124
  };
3098
3125
  };
3099
3126
  '& .SCChangeGroupPictureButton-root': {
@@ -4486,8 +4513,9 @@ declare const theme: {
4486
4513
  '& .SCBaseItemButton-text ': {
4487
4514
  maxWidth: string;
4488
4515
  };
4489
- '& .SCNavigationMenuDrawer-drawer-footer': {
4490
- padding: any;
4516
+ '& .SCNavigationMenuDrawer-drawer-footer-live-button': {
4517
+ margin: any;
4518
+ maxWidth: number;
4491
4519
  };
4492
4520
  };
4493
4521
  };
@@ -6309,12 +6337,14 @@ declare const theme: {
6309
6337
  [x: number]: {
6310
6338
  width: any;
6311
6339
  };
6340
+ position: string;
6312
6341
  '& img': {
6313
6342
  height: string;
6314
6343
  width: string;
6315
6344
  };
6316
6345
  '& .MuiButtonBase-root': {
6317
6346
  flexWrap: string;
6347
+ width: string;
6318
6348
  position: string;
6319
6349
  bottom: any;
6320
6350
  backgroundColor: string;
@@ -7118,6 +7148,15 @@ declare const theme: {
7118
7148
  SCEventFormDialog: {
7119
7149
  styleOverrides: {
7120
7150
  root: ({ theme }: any) => {
7151
+ [x: number]: {
7152
+ '& .MuiDialogContent-root': {
7153
+ marginLeft: any;
7154
+ marginRight: any;
7155
+ };
7156
+ '& .SCEventForm-actions': {
7157
+ marginBottom: any;
7158
+ };
7159
+ };
7121
7160
  '& .MuiDialogTitle-root': {
7122
7161
  '& span': {
7123
7162
  flexGrow: number;
@@ -7222,6 +7261,14 @@ declare const theme: {
7222
7261
  paddingRight: any;
7223
7262
  };
7224
7263
  };
7264
+ '& .SCEvent-finished-chip': {
7265
+ backgroundColor: any;
7266
+ position: string;
7267
+ top: number;
7268
+ right: number;
7269
+ color: any;
7270
+ boxShadow: string;
7271
+ };
7225
7272
  };
7226
7273
  '& .SCEvent-preview-content': {
7227
7274
  padding: string;
@@ -7278,6 +7325,20 @@ declare const theme: {
7278
7325
  paddingRight: any;
7279
7326
  };
7280
7327
  };
7328
+ '& .SCEvent-finished-chip': {
7329
+ height: number;
7330
+ backgroundColor: any;
7331
+ position: string;
7332
+ top: number;
7333
+ right: number;
7334
+ color: any;
7335
+ boxShadow: string;
7336
+ '& span': {
7337
+ fontSize: string;
7338
+ paddingLeft: any;
7339
+ paddingRight: any;
7340
+ };
7341
+ };
7281
7342
  };
7282
7343
  '& .SCBaseItem-text': {
7283
7344
  fontSize: any;
@@ -7403,6 +7464,16 @@ declare const theme: {
7403
7464
  SCEvents: {
7404
7465
  styleOverrides: {
7405
7466
  root: ({ theme }: any) => {
7467
+ '& .SCEvents-section-title': {
7468
+ marginTop: any;
7469
+ marginBottom: any;
7470
+ color: any;
7471
+ fontWeight: number;
7472
+ fontSize: number;
7473
+ };
7474
+ '& .SCEvents-divider': {
7475
+ marginBottom: any;
7476
+ };
7406
7477
  '& .SCEvents-filters': {
7407
7478
  alignItems: string;
7408
7479
  marginTop: any;
@@ -7480,7 +7551,7 @@ declare const theme: {
7480
7551
  };
7481
7552
  };
7482
7553
  };
7483
- eventsChipRoot: ({ theme, showFollowed, showPastEvents }: any) => {
7554
+ eventsChipRoot: ({ theme, showFollowed, showPastEvents, showOngoingEvents }: any) => {
7484
7555
  height: any;
7485
7556
  borderRadius: any;
7486
7557
  color: any;
@@ -8920,6 +8991,17 @@ declare const theme: {
8920
8991
  };
8921
8992
  };
8922
8993
  };
8994
+ SCCreateLiveStreamButton: {
8995
+ styleOverrides: {
8996
+ root: ({ theme }: any) => {
8997
+ '& .MuiButton-startIcon': {
8998
+ '& .MuiIcon-root': {
8999
+ fontSize: string;
9000
+ };
9001
+ };
9002
+ };
9003
+ };
9004
+ };
8923
9005
  SCCreateLiveStreamDialog: {
8924
9006
  styleOverrides: {
8925
9007
  root: ({ theme }: any) => {
@@ -8943,6 +9025,8 @@ declare const theme: {
8943
9025
  "& a": {
8944
9026
  color: any;
8945
9027
  fontWeight: string;
9028
+ textDecoration: string;
9029
+ whiteSpace: string;
8946
9030
  };
8947
9031
  };
8948
9032
  '& .SCLiveStreamSelector-options': {
@@ -9020,6 +9104,15 @@ declare const theme: {
9020
9104
  minWidth: string;
9021
9105
  };
9022
9106
  };
9107
+ '& .SCLiveStreamForm-warning': {
9108
+ margin: any;
9109
+ "& a": {
9110
+ color: any;
9111
+ fontWeight: string;
9112
+ textDecoration: string;
9113
+ whiteSpace: string;
9114
+ };
9115
+ };
9023
9116
  "& .SCLiveStreamForm-access-view": {
9024
9117
  margin: any;
9025
9118
  };
@@ -9142,6 +9235,25 @@ declare const theme: {
9142
9235
  backgroundColor: any;
9143
9236
  };
9144
9237
  };
9238
+ '& .lk-settings-menu-modal': {
9239
+ minWidth: number;
9240
+ paddingTop: any;
9241
+ '& .lk-settings-menu-modal-icon-close': {
9242
+ color: any;
9243
+ position: string;
9244
+ top: number;
9245
+ right: number;
9246
+ };
9247
+ '& .MuiFormControlLabel-root': {
9248
+ marginLeft: number;
9249
+ };
9250
+ '& .MuiTypography-body1': {
9251
+ color: string;
9252
+ };
9253
+ '& .MuiSwitch-track': {
9254
+ backgroundColor: any;
9255
+ };
9256
+ };
9145
9257
  };
9146
9258
  dialogRoot: ({ theme }: any) => {
9147
9259
  "& .SCLiveStreamRoom-end-conference-wrap": {
@@ -9150,7 +9262,14 @@ declare const theme: {
9150
9262
  alignItems: string;
9151
9263
  alignContent: string;
9152
9264
  flexDirection: string;
9153
- "& .SCLiveStreamVideoConference-btn-back-home": {
9265
+ "& .SCLiveStreamRoom-logo": {
9266
+ img: {
9267
+ maxHeight: number;
9268
+ maxWidth: number;
9269
+ };
9270
+ marginBottom: any;
9271
+ };
9272
+ "& .SCLiveStreamRoom-btn-back-home": {
9154
9273
  marginTop: any;
9155
9274
  };
9156
9275
  };
@@ -9171,10 +9290,13 @@ declare const theme: {
9171
9290
  alignItems: string;
9172
9291
  alignContent: string;
9173
9292
  flexDirection: string;
9293
+ textAlign: string;
9174
9294
  "& .SCLiveStreamVideoConference-logo": {
9175
9295
  img: {
9176
- maxHeight: string;
9296
+ maxHeight: number;
9297
+ maxWidth: number;
9177
9298
  };
9299
+ marginBottom: any;
9178
9300
  };
9179
9301
  "& .SCLiveStreamVideoConference-btn-back-home": {
9180
9302
  marginTop: any;
package/lib/esm/index.js CHANGED
@@ -141,6 +141,7 @@ import SCSearchAutocomplete from './components/SCSearchAutocomplete';
141
141
  import SCSnippetNotifications from './components/SCSnippetNotifications';
142
142
  import SCSuggestedEventsWidget from './components/SCSuggestedEventsWidget';
143
143
  import SCLiveStream from './components/SCLiveStream';
144
+ import SCCreateLiveStreamButton from './components/SCCreateLiveStreamButton';
144
145
  import SCCreateLiveStreamDialog from './components/SCLiveStreamDialog';
145
146
  import SCLiveStreamSelector from './components/SCLiveStreamSelector';
146
147
  import SCLiveStreamForm from './components/SCLiveStreamForm';
@@ -419,6 +420,7 @@ const theme = {
419
420
  SCLiveStreamInfoDetails,
420
421
  SCUpScalingTierBadge,
421
422
  SCUserLiveStreamWidget,
423
+ SCCreateLiveStreamButton,
422
424
  SCCreateLiveStreamDialog,
423
425
  SCLiveStreamSelector,
424
426
  SCLiveStreamForm,