@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
@@ -65,16 +65,16 @@ declare const Component: {
65
65
  [x: number]: {
66
66
  marginRight: string;
67
67
  };
68
+ height: number;
68
69
  };
69
70
  };
70
71
  '& .SCFeedObject-group, & .SCFeedObject-event': {
71
72
  justifyContent: string;
72
- padding: any;
73
- height: number;
74
73
  '& a': {
75
74
  padding: any;
76
- marginBottom: any;
75
+ margin: any;
77
76
  color: any;
77
+ maxHeight: number;
78
78
  '&:hover': {
79
79
  backgroundColor: any;
80
80
  };
@@ -306,19 +306,24 @@ declare const Component: {
306
306
  '& li': {
307
307
  margin: string;
308
308
  };
309
- '& span span': {
310
- display: string;
311
- };
312
- '& span span:not(:has(+ a))': {
313
- width: string;
314
- };
315
- '& span a': {
316
- display: string;
317
- margin: any;
318
- };
319
- '& span a:hover': {
309
+ '& span': {
320
310
  '& span': {
321
- textDecoration: string;
311
+ display: string;
312
+ };
313
+ '& span:not(:has(+ a))': {
314
+ width: string;
315
+ };
316
+ '& a': {
317
+ display: string;
318
+ margin: any;
319
+ };
320
+ '& a:hover': {
321
+ '& span': {
322
+ textDecoration: string;
323
+ };
324
+ };
325
+ '& :last-child': {
326
+ display: string;
322
327
  };
323
328
  };
324
329
  };
@@ -331,6 +336,7 @@ declare const Component: {
331
336
  fontSize: any;
332
337
  fontWeight: any;
333
338
  padding: any;
339
+ marginTop: number;
334
340
  justifyContent: string;
335
341
  '&:hover': {
336
342
  backgroundColor: string;
@@ -65,6 +65,7 @@ const Component = {
65
65
  }
66
66
  },
67
67
  '& .SCFeedObject-group, & .SCFeedObject-event': {
68
+ height: 20,
68
69
  [theme.breakpoints.up('sm')]: {
69
70
  marginRight: `${theme.spacing(1)} !important`
70
71
  }
@@ -72,12 +73,11 @@ const Component = {
72
73
  },
73
74
  '& .SCFeedObject-group, & .SCFeedObject-event': {
74
75
  justifyContent: 'flex-start',
75
- padding: theme.spacing(0.2, 0.5),
76
- height: 20,
77
76
  '& a': {
78
77
  padding: theme.spacing(0.5),
79
- marginBottom: theme.spacing(0.5),
78
+ margin: theme.spacing(0.5),
80
79
  color: theme.palette.common.white,
80
+ maxHeight: 20,
81
81
  '&:hover': {
82
82
  backgroundColor: theme.palette.common.black
83
83
  },
@@ -87,7 +87,7 @@ const Component = {
87
87
  }
88
88
  },
89
89
  borderBottom: '1px solid rgba(221, 221, 221, 1)',
90
- margin: theme.spacing(1, 2, 0, 2)
90
+ margin: theme.spacing(0.5, 2, 0, 2)
91
91
  },
92
92
  '& .SCFeedObject-content': {
93
93
  padding: theme.spacing(1, 0, 0, 0),
@@ -309,19 +309,24 @@ const Component = {
309
309
  '& li': {
310
310
  margin: '0 32px'
311
311
  },
312
- '& span span': {
313
- display: 'inline-block'
314
- },
315
- '& span span:not(:has(+ a))': {
316
- width: '100%'
317
- },
318
- '& span a': {
319
- display: 'inline-block',
320
- margin: theme.spacing(0, 0.3)
321
- },
322
- '& span a:hover': {
312
+ '& span': {
323
313
  '& span': {
324
- textDecoration: 'underline'
314
+ display: 'inline'
315
+ },
316
+ '& span:not(:has(+ a))': {
317
+ width: '100%'
318
+ },
319
+ '& a': {
320
+ display: 'inline-block',
321
+ margin: theme.spacing(0, 0.3)
322
+ },
323
+ '& a:hover': {
324
+ '& span': {
325
+ textDecoration: 'underline'
326
+ }
327
+ },
328
+ '& :last-child': {
329
+ display: 'inline'
325
330
  }
326
331
  }
327
332
  },
@@ -334,6 +339,7 @@ const Component = {
334
339
  fontSize: theme.typography.fontSize,
335
340
  fontWeight: theme.typography.fontWeightBold,
336
341
  padding: theme.spacing(0.25),
342
+ marginTop: -2,
337
343
  justifyContent: 'start',
338
344
  '&:hover': { backgroundColor: 'transparent' }
339
345
  }
@@ -12,8 +12,19 @@ declare const Component: {
12
12
  '& .SCFeedObject-text-section .SCFeedObject-text': {
13
13
  '& span': {
14
14
  display: string;
15
+ };
16
+ '& span:not(:has(+ a))': {
15
17
  width: string;
16
18
  };
19
+ '& a': {
20
+ display: string;
21
+ margin: any;
22
+ };
23
+ '& a:hover': {
24
+ '& span': {
25
+ textDecoration: string;
26
+ };
27
+ };
17
28
  };
18
29
  };
19
30
  };
@@ -13,8 +13,19 @@ const Component = {
13
13
  '& .SCFeedObject-content': {
14
14
  '& .SCFeedObject-text-section .SCFeedObject-text': {
15
15
  '& span': {
16
- display: 'inline-block',
16
+ display: 'inline'
17
+ },
18
+ '& span:not(:has(+ a))': {
17
19
  width: '100%'
20
+ },
21
+ '& a': {
22
+ display: 'inline-block',
23
+ margin: theme.spacing(0, 0.3)
24
+ },
25
+ '& a:hover': {
26
+ '& span': {
27
+ textDecoration: 'underline'
28
+ }
18
29
  }
19
30
  }
20
31
  }
@@ -21,6 +21,9 @@ declare const Component: {
21
21
  height: any;
22
22
  width: any;
23
23
  };
24
+ '& .MuiIcon-root': {
25
+ color: any;
26
+ };
24
27
  };
25
28
  };
26
29
  '& .SCChangeGroupPictureButton-root': {
@@ -23,6 +23,9 @@ const Component = {
23
23
  '& img': {
24
24
  height: theme.selfcommunity.group.avatar.sizeMedium,
25
25
  width: theme.selfcommunity.group.avatar.sizeMedium
26
+ },
27
+ '& .MuiIcon-root': {
28
+ color: theme.palette.common.white
26
29
  }
27
30
  }
28
31
  },
@@ -13,6 +13,15 @@ declare const Component: {
13
13
  minWidth: string;
14
14
  };
15
15
  };
16
+ '& .SCLiveStreamForm-warning': {
17
+ margin: any;
18
+ "& a": {
19
+ color: any;
20
+ fontWeight: string;
21
+ textDecoration: string;
22
+ whiteSpace: string;
23
+ };
24
+ };
16
25
  "& .SCLiveStreamForm-access-view": {
17
26
  margin: any;
18
27
  };
@@ -15,8 +15,17 @@ const Component = {
15
15
  minWidth: 'auto'
16
16
  }
17
17
  },
18
- [`& .SCLiveStreamForm-access-view`]: {
18
+ '& .SCLiveStreamForm-warning': {
19
19
  margin: theme.spacing(2, 0),
20
+ [`& a`]: {
21
+ color: theme.palette.common.white,
22
+ fontWeight: 'bold',
23
+ textDecoration: 'underline',
24
+ whiteSpace: 'nowrap'
25
+ }
26
+ },
27
+ [`& .SCLiveStreamForm-access-view`]: {
28
+ margin: theme.spacing(2, 0)
20
29
  },
21
30
  [`& .SCLiveStreamForm-actions`]: {
22
31
  display: 'flex',
@@ -95,6 +95,25 @@ declare const Component: {
95
95
  backgroundColor: any;
96
96
  };
97
97
  };
98
+ '& .lk-settings-menu-modal': {
99
+ minWidth: number;
100
+ paddingTop: any;
101
+ '& .lk-settings-menu-modal-icon-close': {
102
+ color: any;
103
+ position: string;
104
+ top: number;
105
+ right: number;
106
+ };
107
+ '& .MuiFormControlLabel-root': {
108
+ marginLeft: number;
109
+ };
110
+ '& .MuiTypography-body1': {
111
+ color: string;
112
+ };
113
+ '& .MuiSwitch-track': {
114
+ backgroundColor: any;
115
+ };
116
+ };
98
117
  };
99
118
  dialogRoot: ({ theme }: any) => {
100
119
  "& .SCLiveStreamRoom-end-conference-wrap": {
@@ -103,7 +122,14 @@ declare const Component: {
103
122
  alignItems: string;
104
123
  alignContent: string;
105
124
  flexDirection: string;
106
- "& .SCLiveStreamVideoConference-btn-back-home": {
125
+ "& .SCLiveStreamRoom-logo": {
126
+ img: {
127
+ maxHeight: number;
128
+ maxWidth: number;
129
+ };
130
+ marginBottom: any;
131
+ };
132
+ "& .SCLiveStreamRoom-btn-back-home": {
107
133
  marginTop: any;
108
134
  };
109
135
  };
@@ -96,6 +96,25 @@ const Component = {
96
96
  '&:hover': {
97
97
  backgroundColor: theme.palette.primary.dark
98
98
  }
99
+ },
100
+ '& .lk-settings-menu-modal': {
101
+ minWidth: 290,
102
+ paddingTop: theme.spacing(3),
103
+ '& .lk-settings-menu-modal-icon-close': {
104
+ color: theme.palette.common.white,
105
+ position: 'absolute',
106
+ top: 3,
107
+ right: 2
108
+ },
109
+ '& .MuiFormControlLabel-root': {
110
+ marginLeft: 0
111
+ },
112
+ '& .MuiTypography-body1': {
113
+ color: '#FFF !important'
114
+ },
115
+ '& .MuiSwitch-track': {
116
+ backgroundColor: theme.palette.grey['300']
117
+ }
99
118
  }
100
119
  }),
101
120
  dialogRoot: ({ theme }) => ({
@@ -105,7 +124,14 @@ const Component = {
105
124
  alignItems: 'center',
106
125
  alignContent: 'center',
107
126
  flexDirection: 'column',
108
- [`& .SCLiveStreamVideoConference-btn-back-home`]: {
127
+ [`& .SCLiveStreamRoom-logo`]: {
128
+ img: {
129
+ maxHeight: 60,
130
+ maxWidth: 300
131
+ },
132
+ marginBottom: theme.spacing(2)
133
+ },
134
+ [`& .SCLiveStreamRoom-btn-back-home`]: {
109
135
  marginTop: theme.spacing(2)
110
136
  }
111
137
  }
@@ -6,6 +6,8 @@ declare const Component: {
6
6
  "& a": {
7
7
  color: any;
8
8
  fontWeight: string;
9
+ textDecoration: string;
10
+ whiteSpace: string;
9
11
  };
10
12
  };
11
13
  '& .SCLiveStreamSelector-options': {
@@ -7,7 +7,9 @@ const Component = {
7
7
  margin: theme.spacing(2, 5, 2, 5),
8
8
  [`& a`]: {
9
9
  color: theme.palette.common.white,
10
- fontWeight: 'bold'
10
+ fontWeight: 'bold',
11
+ textDecoration: 'underline',
12
+ whiteSpace: 'nowrap'
11
13
  }
12
14
  },
13
15
  '& .SCLiveStreamSelector-options': {
@@ -35,7 +37,7 @@ const Component = {
35
37
  optionCardRoot: ({ theme, selected }) => ({
36
38
  maxWidth: 300,
37
39
  height: 'auto',
38
- minHeight: 425,
40
+ minHeight: 440,
39
41
  padding: theme.spacing(3),
40
42
  margin: theme.spacing(0, 3),
41
43
  cursor: 'pointer',
@@ -12,10 +12,13 @@ declare const Component: {
12
12
  alignItems: string;
13
13
  alignContent: string;
14
14
  flexDirection: string;
15
+ textAlign: string;
15
16
  "& .SCLiveStreamVideoConference-logo": {
16
17
  img: {
17
- maxHeight: string;
18
+ maxHeight: number;
19
+ maxWidth: number;
18
20
  };
21
+ marginBottom: any;
19
22
  };
20
23
  "& .SCLiveStreamVideoConference-btn-back-home": {
21
24
  marginTop: any;
@@ -14,10 +14,13 @@ const Component = {
14
14
  alignItems: 'center',
15
15
  alignContent: 'center',
16
16
  flexDirection: 'column',
17
+ textAlign: 'center',
17
18
  [`& .SCLiveStreamVideoConference-logo`]: {
18
19
  img: {
19
- maxHeight: '100px'
20
- }
20
+ maxHeight: 70,
21
+ maxWidth: 300
22
+ },
23
+ marginBottom: theme.spacing(2)
21
24
  },
22
25
  [`& .SCLiveStreamVideoConference-btn-back-home`]: {
23
26
  marginTop: theme.spacing(2)
@@ -39,8 +39,9 @@ declare const Component: {
39
39
  '& .SCBaseItemButton-text ': {
40
40
  maxWidth: string;
41
41
  };
42
- '& .SCNavigationMenuDrawer-drawer-footer': {
43
- padding: any;
42
+ '& .SCNavigationMenuDrawer-drawer-footer-live-button': {
43
+ margin: any;
44
+ maxWidth: number;
44
45
  };
45
46
  };
46
47
  };
@@ -42,8 +42,9 @@ const Component = {
42
42
  '& .SCBaseItemButton-text ': {
43
43
  maxWidth: '80%'
44
44
  },
45
- '& .SCNavigationMenuDrawer-drawer-footer': {
46
- padding: theme.spacing(3)
45
+ '& .SCNavigationMenuDrawer-drawer-footer-live-button': {
46
+ margin: theme.spacing(3),
47
+ maxWidth: 270
47
48
  }
48
49
  })
49
50
  }
@@ -82,12 +82,14 @@ declare const Component: {
82
82
  [x: number]: {
83
83
  width: any;
84
84
  };
85
+ position: string;
85
86
  '& img': {
86
87
  height: string;
87
88
  width: string;
88
89
  };
89
90
  '& .MuiButtonBase-root': {
90
91
  flexWrap: string;
92
+ width: string;
91
93
  position: string;
92
94
  bottom: any;
93
95
  backgroundColor: string;
@@ -81,6 +81,7 @@ const Component = {
81
81
  }
82
82
  },
83
83
  '& .SCPrivateMessageThreadItem-document': {
84
+ position: 'relative',
84
85
  [theme.breakpoints.up('sm')]: {
85
86
  width: theme.spacing(32.5)
86
87
  },
@@ -90,7 +91,7 @@ const Component = {
90
91
  },
91
92
  '& .MuiButtonBase-root': {
92
93
  flexWrap: 'wrap',
93
- //width: 'calc(100% - 24px)',
94
+ width: '100%',
94
95
  position: 'absolute',
95
96
  bottom: theme.spacing(4),
96
97
  backgroundColor: 'rgba(0,0,0,0.5)',