@selfcommunity/react-theme-default 0.2.0-alpha.4 → 0.2.0-alpha.40

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 (72) hide show
  1. package/lib/cjs/components/MuiAppBar.js +4 -3
  2. package/lib/cjs/components/SCBottomNavigation.js +5 -4
  3. package/lib/cjs/components/SCEventForm.d.ts +5 -0
  4. package/lib/cjs/components/SCEventForm.js +6 -1
  5. package/lib/cjs/components/SCFeed.d.ts +9 -3
  6. package/lib/cjs/components/SCFeed.js +9 -3
  7. package/lib/cjs/components/SCFeedObject.d.ts +4 -0
  8. package/lib/cjs/components/SCFeedObject.js +4 -0
  9. package/lib/cjs/components/SCFeedObjectDetailTemplate.d.ts +10 -0
  10. package/lib/cjs/components/SCFeedObjectDetailTemplate.js +10 -0
  11. package/lib/cjs/components/SCGroupActionsMenu.d.ts +26 -0
  12. package/lib/cjs/components/SCGroupActionsMenu.js +28 -0
  13. package/lib/cjs/components/SCGroupHeader.d.ts +5 -2
  14. package/lib/cjs/components/SCGroupHeader.js +5 -2
  15. package/lib/cjs/components/SCLightbox.d.ts +5 -0
  16. package/lib/cjs/components/SCLightbox.js +12 -7
  17. package/lib/cjs/components/SCMediaLink.d.ts +51 -1
  18. package/lib/cjs/components/SCMediaLink.js +52 -2
  19. package/lib/cjs/components/SCNavigationMenuDrawer.d.ts +42 -0
  20. package/lib/cjs/components/SCNavigationMenuDrawer.js +45 -0
  21. package/lib/cjs/components/SCNavigationMenuIconButton.d.ts +0 -37
  22. package/lib/cjs/components/SCNavigationMenuIconButton.js +1 -39
  23. package/lib/cjs/components/SCNavigationToolbar.d.ts +3 -1
  24. package/lib/cjs/components/SCNavigationToolbar.js +68 -62
  25. package/lib/cjs/components/SCNavigationToolbarMobile.d.ts +3 -0
  26. package/lib/cjs/components/SCNavigationToolbarMobile.js +26 -19
  27. package/lib/cjs/components/SCOnBoardingWidget.d.ts +17 -6
  28. package/lib/cjs/components/SCOnBoardingWidget.js +20 -8
  29. package/lib/cjs/components/SCSearchAutocomplete.d.ts +4 -0
  30. package/lib/cjs/components/SCSearchAutocomplete.js +29 -21
  31. package/lib/cjs/components/SCVoteButton.d.ts +5 -3
  32. package/lib/cjs/components/SCVoteButton.js +6 -5
  33. package/lib/cjs/index.d.ts +156 -21
  34. package/lib/cjs/index.js +4 -0
  35. package/lib/esm/components/MuiAppBar.js +4 -3
  36. package/lib/esm/components/SCBottomNavigation.js +5 -4
  37. package/lib/esm/components/SCEventForm.d.ts +5 -0
  38. package/lib/esm/components/SCEventForm.js +6 -1
  39. package/lib/esm/components/SCFeed.d.ts +9 -3
  40. package/lib/esm/components/SCFeed.js +9 -3
  41. package/lib/esm/components/SCFeedObject.d.ts +4 -0
  42. package/lib/esm/components/SCFeedObject.js +4 -0
  43. package/lib/esm/components/SCFeedObjectDetailTemplate.d.ts +10 -0
  44. package/lib/esm/components/SCFeedObjectDetailTemplate.js +10 -0
  45. package/lib/esm/components/SCGroupActionsMenu.d.ts +26 -0
  46. package/lib/esm/components/SCGroupActionsMenu.js +26 -0
  47. package/lib/esm/components/SCGroupHeader.d.ts +5 -2
  48. package/lib/esm/components/SCGroupHeader.js +5 -2
  49. package/lib/esm/components/SCLightbox.d.ts +5 -0
  50. package/lib/esm/components/SCLightbox.js +12 -7
  51. package/lib/esm/components/SCMediaLink.d.ts +51 -1
  52. package/lib/esm/components/SCMediaLink.js +52 -2
  53. package/lib/esm/components/SCNavigationMenuDrawer.d.ts +42 -0
  54. package/lib/esm/components/SCNavigationMenuDrawer.js +43 -0
  55. package/lib/esm/components/SCNavigationMenuIconButton.d.ts +0 -37
  56. package/lib/esm/components/SCNavigationMenuIconButton.js +1 -39
  57. package/lib/esm/components/SCNavigationToolbar.d.ts +3 -1
  58. package/lib/esm/components/SCNavigationToolbar.js +68 -62
  59. package/lib/esm/components/SCNavigationToolbarMobile.d.ts +3 -0
  60. package/lib/esm/components/SCNavigationToolbarMobile.js +26 -19
  61. package/lib/esm/components/SCOnBoardingWidget.d.ts +17 -6
  62. package/lib/esm/components/SCOnBoardingWidget.js +20 -8
  63. package/lib/esm/components/SCSearchAutocomplete.d.ts +4 -0
  64. package/lib/esm/components/SCSearchAutocomplete.js +29 -21
  65. package/lib/esm/components/SCVoteButton.d.ts +5 -3
  66. package/lib/esm/components/SCVoteButton.js +6 -5
  67. package/lib/esm/index.d.ts +156 -21
  68. package/lib/esm/index.js +4 -0
  69. package/lib/umd/react-theme-default.js +2 -2
  70. package/package.json +4 -5
  71. package/lib/umd/850.js +0 -2
  72. package/lib/umd/850.js.LICENSE.txt +0 -16
@@ -40,10 +40,13 @@ const Component = {
40
40
  gap: theme.spacing(0.5)
41
41
  }
42
42
  },
43
- '& .SCEditGroupButton-root': {
43
+ '& .SCGroupHeader-multi-actions': {
44
+ display: 'flex',
44
45
  marginLeft: 'auto',
45
46
  marginTop: theme.spacing(-4.25),
46
- marginRight: theme.spacing(1)
47
+ '& .SCEditGroupButton-root': {
48
+ marginRight: theme.spacing(1)
49
+ }
47
50
  },
48
51
  '& .SCGroupSubscribeButton-root': {
49
52
  marginTop: theme.spacing(1)
@@ -20,6 +20,11 @@ declare const Component: {
20
20
  "& .PhotoView__Photo": {
21
21
  cursor: string;
22
22
  maxWidth: string;
23
+ WebkitUserDrag: string;
24
+ userDrag: string;
25
+ '@-moz-document url-prefix()': {
26
+ pointerEvents: string;
27
+ };
23
28
  };
24
29
  "& .PhotoView__Photo:active": {
25
30
  cursor: string;
@@ -42,7 +42,12 @@ const Component = {
42
42
  },
43
43
  ['& .PhotoView__Photo']: {
44
44
  cursor: 'grab',
45
- maxWidth: 'none'
45
+ maxWidth: 'none',
46
+ WebkitUserDrag: 'none',
47
+ userDrag: 'none',
48
+ '@-moz-document url-prefix()': {
49
+ pointerEvents: 'none'
50
+ }
46
51
  },
47
52
  ['& .PhotoView__Photo:active']: {
48
53
  cursor: 'grabbing',
@@ -159,9 +164,9 @@ const Component = {
159
164
  position: 'absolute',
160
165
  top: 0,
161
166
  transition: 'opacity .2s linear',
162
- 'WebkitUserSelect': 'none',
163
- 'MozUserSelect': 'none',
164
- 'MsUserSelect': 'none',
167
+ WebkitUserSelect: 'none',
168
+ MozUserSelect: 'none',
169
+ MsUserSelect: 'none',
165
170
  userSelect: 'none',
166
171
  width: 70,
167
172
  zIndex: 20,
@@ -190,9 +195,9 @@ const Component = {
190
195
  position: 'absolute',
191
196
  top: 0,
192
197
  transition: 'opacity .2s linear',
193
- 'WebkitUserSelect': 'none',
194
- 'MozUserSelect': 'none',
195
- 'MsUserSelect': 'none',
198
+ WebkitUserSelect: 'none',
199
+ MozUserSelect: 'none',
200
+ MsUserSelect: 'none',
196
201
  userSelect: 'none',
197
202
  width: 70,
198
203
  zIndex: 20,
@@ -11,6 +11,33 @@ declare const Component: {
11
11
  margin: string;
12
12
  height: number;
13
13
  };
14
+ '& .SCMediaLink-html-wrap': {
15
+ position: string;
16
+ marginLeft: any;
17
+ marginRight: any;
18
+ '& .SCMediaLink-html': {
19
+ width: string;
20
+ position: string;
21
+ top: number;
22
+ zIndex: number;
23
+ '& iframe': {
24
+ width: string;
25
+ margin: string;
26
+ };
27
+ };
28
+ '& .SCMediaLink-html-placeholder': {
29
+ width: string;
30
+ position: string;
31
+ top: number;
32
+ zIndex: number;
33
+ '& .SCMediaLink-html-loading': {
34
+ position: string;
35
+ display: string;
36
+ top: string;
37
+ left: string;
38
+ };
39
+ };
40
+ };
14
41
  '& .SCMediaLink-thumbnail': {
15
42
  [x: number]: {
16
43
  maxWidth: number;
@@ -51,12 +78,35 @@ declare const Component: {
51
78
  previewRoot: ({ theme }: any) => {
52
79
  '& .SCMediaLink-media': {
53
80
  position: string;
54
- margin: any;
81
+ '& .SCMediaLink-html-wrap': {
82
+ '& .SCMediaLink-html': {
83
+ width: string;
84
+ position: string;
85
+ zIndex: number;
86
+ '& iframe': {
87
+ width: string;
88
+ margin: string;
89
+ };
90
+ };
91
+ '& .SCMediaLink-html-placeholder': {
92
+ width: string;
93
+ position: string;
94
+ top: number;
95
+ zIndex: number;
96
+ '& .SCMediaLink-html-loading': {
97
+ position: string;
98
+ display: string;
99
+ top: string;
100
+ left: string;
101
+ };
102
+ };
103
+ };
55
104
  '& .SCMediaLink-delete': {
56
105
  background: any;
57
106
  position: string;
58
107
  right: any;
59
108
  top: any;
109
+ zIndex: number;
60
110
  };
61
111
  '&.SCMediaLink-media-video .SCMediaLink-delete': {
62
112
  background: any;
@@ -12,6 +12,33 @@ const Component = {
12
12
  margin: '10px 0px',
13
13
  height: 360
14
14
  },
15
+ '& .SCMediaLink-html-wrap': {
16
+ position: 'relative',
17
+ marginLeft: theme.spacing(),
18
+ marginRight: theme.spacing(),
19
+ '& .SCMediaLink-html': {
20
+ width: '100%',
21
+ position: 'absolute',
22
+ top: 0,
23
+ zIndex: 2,
24
+ '& iframe': {
25
+ width: '100%',
26
+ margin: '0px auto'
27
+ }
28
+ },
29
+ '& .SCMediaLink-html-placeholder': {
30
+ width: '100%',
31
+ position: 'relative',
32
+ top: 0,
33
+ zIndex: 1,
34
+ '& .SCMediaLink-html-loading': {
35
+ position: 'absolute',
36
+ display: 'none',
37
+ top: '38%',
38
+ left: '50%'
39
+ }
40
+ }
41
+ },
15
42
  '& .SCMediaLink-thumbnail': {
16
43
  border: `1px solid ${alpha(theme.palette.primary.main, theme.palette.action.activatedOpacity)}`,
17
44
  borderRadius: theme.shape.borderRadius * 0.75,
@@ -52,12 +79,35 @@ const Component = {
52
79
  previewRoot: ({ theme }) => ({
53
80
  '& .SCMediaLink-media': {
54
81
  position: 'relative',
55
- margin: theme.spacing(1),
82
+ '& .SCMediaLink-html-wrap': {
83
+ '& .SCMediaLink-html': {
84
+ width: '100%',
85
+ position: 'absolute',
86
+ zIndex: 2,
87
+ '& iframe': {
88
+ width: '100%',
89
+ margin: '0px auto'
90
+ }
91
+ },
92
+ '& .SCMediaLink-html-placeholder': {
93
+ width: '100%',
94
+ position: 'absolute',
95
+ top: 0,
96
+ zIndex: 1,
97
+ '& .SCMediaLink-html-loading': {
98
+ position: 'absolute',
99
+ display: 'none',
100
+ top: '40%',
101
+ left: '50%'
102
+ }
103
+ }
104
+ },
56
105
  '& .SCMediaLink-delete': {
57
106
  background: theme.palette.common.white,
58
107
  position: 'absolute',
59
108
  right: theme.spacing(0.5),
60
- top: theme.spacing(0.5)
109
+ top: theme.spacing(0.5),
110
+ zIndex: 3
61
111
  },
62
112
  '&.SCMediaLink-media-video .SCMediaLink-delete': {
63
113
  background: theme.palette.common.white,
@@ -0,0 +1,42 @@
1
+ declare const Component: {
2
+ styleOverrides: {
3
+ root: ({ theme }: any) => {
4
+ '& .MuiDrawer-paper': {
5
+ [x: number]: {
6
+ width: any;
7
+ };
8
+ width: string;
9
+ };
10
+ '& .SCNavigationMenuDrawer-drawer-header': {
11
+ minHeight: any;
12
+ padding: string;
13
+ display: string;
14
+ justifyContent: string;
15
+ '& > a:first-of-type': {
16
+ display: string;
17
+ justifyContent: string;
18
+ alignContent: string;
19
+ flexWrap: string;
20
+ };
21
+ '& img': {
22
+ maxHeight: number;
23
+ paddingLeft: any;
24
+ };
25
+ };
26
+ '& .MuiTypography-subtitle1': {
27
+ fontSize: string;
28
+ padding: any;
29
+ '& MuiButton-root': {
30
+ padding: any;
31
+ };
32
+ '& span:first-of-type': {
33
+ color: string;
34
+ };
35
+ };
36
+ '& .SCBaseItemButton-text ': {
37
+ maxWidth: string;
38
+ };
39
+ };
40
+ };
41
+ };
42
+ export default Component;
@@ -0,0 +1,43 @@
1
+ import { darken } from '@mui/system';
2
+ const Component = {
3
+ styleOverrides: {
4
+ root: ({ theme }) => ({
5
+ '& .MuiDrawer-paper': {
6
+ width: '100%',
7
+ [theme.breakpoints.up('sm')]: {
8
+ width: theme.spacing(40)
9
+ }
10
+ },
11
+ '& .SCNavigationMenuDrawer-drawer-header': {
12
+ minHeight: theme.mixins.toolbar.minHeight,
13
+ padding: '1px',
14
+ display: 'flex',
15
+ justifyContent: 'space-between',
16
+ '& > a:first-of-type': {
17
+ display: 'flex',
18
+ justifyContent: 'center',
19
+ alignContent: 'center',
20
+ flexWrap: 'wrap'
21
+ },
22
+ '& img': {
23
+ maxHeight: theme.mixins.toolbar.minHeight - 20,
24
+ paddingLeft: theme.spacing(1.5)
25
+ }
26
+ },
27
+ '& .MuiTypography-subtitle1': {
28
+ fontSize: '1.286rem',
29
+ padding: theme.spacing(0, 2),
30
+ '& MuiButton-root': {
31
+ padding: theme.spacing(1, 1, 1, 2)
32
+ },
33
+ '& span:first-of-type': {
34
+ color: darken(theme.palette.text.primary, 0.5)
35
+ }
36
+ },
37
+ '& .SCBaseItemButton-text ': {
38
+ maxWidth: '80%'
39
+ }
40
+ })
41
+ }
42
+ };
43
+ export default Component;
@@ -1,43 +1,6 @@
1
1
  declare const Component: {
2
2
  styleOverrides: {
3
3
  root: ({ theme }: any) => {};
4
- drawerRoot: ({ theme }: any) => {
5
- '& .MuiDrawer-paper': {
6
- [x: number]: {
7
- width: any;
8
- };
9
- width: string;
10
- };
11
- '& .SCNavigationMenuIconButton-drawer-header': {
12
- minHeight: any;
13
- padding: string;
14
- display: string;
15
- justifyContent: string;
16
- '& > a:first-of-type': {
17
- display: string;
18
- justifyContent: string;
19
- alignContent: string;
20
- flexWrap: string;
21
- };
22
- '& img': {
23
- maxHeight: number;
24
- paddingLeft: any;
25
- };
26
- };
27
- '& .MuiTypography-subtitle1': {
28
- fontSize: string;
29
- padding: any;
30
- '& MuiButton-root': {
31
- padding: any;
32
- };
33
- '& span:first-of-type': {
34
- color: string;
35
- };
36
- };
37
- '& .SCBaseItemButton-text ': {
38
- maxWidth: string;
39
- };
40
- };
41
4
  };
42
5
  };
43
6
  export default Component;
@@ -1,44 +1,6 @@
1
- import { darken } from '@mui/system';
2
1
  const Component = {
3
2
  styleOverrides: {
4
- root: ({ theme }) => ({}),
5
- drawerRoot: ({ theme }) => ({
6
- '& .MuiDrawer-paper': {
7
- width: '100%',
8
- [theme.breakpoints.up('sm')]: {
9
- width: theme.spacing(40)
10
- }
11
- },
12
- '& .SCNavigationMenuIconButton-drawer-header': {
13
- minHeight: theme.mixins.toolbar.minHeight,
14
- padding: '1px',
15
- display: 'flex',
16
- justifyContent: 'space-between',
17
- '& > a:first-of-type': {
18
- display: 'flex',
19
- justifyContent: 'center',
20
- alignContent: 'center',
21
- flexWrap: 'wrap'
22
- },
23
- '& img': {
24
- maxHeight: theme.mixins.toolbar.minHeight - 20,
25
- paddingLeft: theme.spacing(1.5)
26
- }
27
- },
28
- '& .MuiTypography-subtitle1': {
29
- fontSize: '1.286rem',
30
- padding: theme.spacing(0, 2),
31
- '& MuiButton-root': {
32
- padding: theme.spacing(1, 1, 1, 2)
33
- },
34
- '& span:first-of-type': {
35
- color: darken(theme.palette.text.primary, 0.5)
36
- }
37
- },
38
- '& .SCBaseItemButton-text ': {
39
- maxWidth: '80%'
40
- }
41
- })
3
+ root: ({ theme }) => ({})
42
4
  }
43
5
  };
44
6
  export default Component;
@@ -27,7 +27,6 @@ declare const Component: {
27
27
  paddingRight: any;
28
28
  paddingBottom: number;
29
29
  margin: any;
30
- color: any;
31
30
  borderRadius: number;
32
31
  borderBottom: string;
33
32
  '&.SCNavigationToolbar-active, &:hover': {
@@ -67,6 +66,9 @@ declare const Component: {
67
66
  '& .SCNavigationToolbar-settings': {
68
67
  marginLeft: number;
69
68
  };
69
+ '& .SCNavigationToolbar-composer:hover': {
70
+ color: any;
71
+ };
70
72
  '& .MuiIconButton-root': {
71
73
  color: any;
72
74
  };
@@ -1,76 +1,82 @@
1
+ import { getContrastRatio } from '@mui/material/styles';
1
2
  const Component = {
2
3
  styleOverrides: {
3
- root: ({ theme }) => ({
4
- padding: theme.spacing(0, 1),
5
- '& .SCNavigationToolbar-logo, & .SCNavigationToolbar-custom-item': {
6
- marginRight: theme.spacing(2),
7
- '& img': {
8
- verticalAlign: 'middle',
9
- maxHeight: theme.mixins.toolbar.minHeight - 20
10
- }
11
- },
12
- '& .SCNavigationToolbar-navigation': {
13
- flexGrow: 1,
14
- textAlign: 'center',
15
- alignSelf: 'end',
16
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
4
+ root: ({ theme }) => {
5
+ var _a, _b;
6
+ return ({
7
+ padding: theme.spacing(0, 1),
8
+ '& .SCNavigationToolbar-logo, & .SCNavigationToolbar-custom-item': {
9
+ marginRight: theme.spacing(2),
10
+ '& img': {
11
+ verticalAlign: 'middle',
12
+ maxHeight: theme.mixins.toolbar.minHeight - 20
13
+ }
14
+ },
15
+ '& .SCNavigationToolbar-navigation': {
16
+ flexGrow: 1,
17
+ textAlign: 'center',
18
+ alignSelf: 'end',
19
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
20
+ paddingTop: 12,
21
+ paddingLeft: theme.spacing(1),
22
+ paddingRight: theme.spacing(1),
23
+ paddingBottom: 11,
24
+ margin: theme.spacing(0, 1),
25
+ borderRadius: 0,
26
+ borderBottom: `2px solid transparent`,
27
+ '&.SCNavigationToolbar-active, &:hover': {
28
+ color: theme.palette.secondary.main,
29
+ borderBottom: `2px solid ${theme.palette.secondary.main}`
30
+ }
31
+ }
32
+ },
33
+ '& .SCNavigationToolbar-search': {
34
+ flexGrow: 1,
35
+ textAlign: 'right',
36
+ marginRight: theme.spacing(1.5),
37
+ '& .MuiFormControl-root': {
38
+ width: 190,
39
+ [theme.breakpoints.up('lg')]: {
40
+ width: 300
41
+ }
42
+ }
43
+ },
44
+ '& .SCNavigationToolbar-profile, & .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
45
+ margin: theme.spacing(0, 0.5)
46
+ },
47
+ '& .SCNavigationToolbar-profile .MuiAvatar-root': {
48
+ width: theme.selfcommunity.user.avatar.sizeMedium,
49
+ height: theme.selfcommunity.user.avatar.sizeMedium
50
+ },
51
+ '& .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
17
52
  paddingTop: 12,
18
- paddingLeft: theme.spacing(1),
19
- paddingRight: theme.spacing(1),
20
- paddingBottom: 11,
21
- margin: theme.spacing(0, 1),
22
- color: theme.palette.primary.main,
53
+ paddingBottom: 9,
23
54
  borderRadius: 0,
24
55
  borderBottom: `2px solid transparent`,
25
56
  '&.SCNavigationToolbar-active, &:hover': {
26
57
  color: theme.palette.secondary.main,
27
58
  borderBottom: `2px solid ${theme.palette.secondary.main}`
28
59
  }
29
- }
30
- },
31
- '& .SCNavigationToolbar-search': {
32
- flexGrow: 1,
33
- textAlign: 'right',
34
- marginRight: theme.spacing(1.5),
35
- '& .MuiFormControl-root': {
36
- width: 190,
37
- [theme.breakpoints.up('lg')]: {
38
- width: 300
39
- }
40
- }
41
- },
42
- '& .SCNavigationToolbar-profile, & .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
43
- margin: theme.spacing(0, 0.5)
44
- },
45
- '& .SCNavigationToolbar-profile .MuiAvatar-root': {
46
- width: theme.selfcommunity.user.avatar.sizeMedium,
47
- height: theme.selfcommunity.user.avatar.sizeMedium
48
- },
49
- '& .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
50
- paddingTop: 12,
51
- paddingBottom: 9,
52
- borderRadius: 0,
53
- borderBottom: `2px solid transparent`,
54
- '&.SCNavigationToolbar-active, &:hover': {
55
- color: theme.palette.secondary.main,
56
- borderBottom: `2px solid ${theme.palette.secondary.main}`
57
- }
58
- },
59
- '& .SCNavigationToolbar-settings': {
60
- marginLeft: 0
61
- },
62
- '& .MuiIconButton-root': {
63
- color: theme.palette.primary.main
64
- },
65
- [theme.breakpoints.up(950)]: {
66
- padding: theme.spacing(0, 2),
67
- '& .SCNavigationToolbar-navigation': {
68
- '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
69
- margin: theme.spacing(0, 2)
60
+ },
61
+ '& .SCNavigationToolbar-settings': {
62
+ marginLeft: 0
63
+ },
64
+ '& .SCNavigationToolbar-composer:hover': {
65
+ color: theme.palette.secondary.main
66
+ },
67
+ '& .MuiIconButton-root': {
68
+ color: getContrastRatio((_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main
69
+ },
70
+ [theme.breakpoints.up(950)]: {
71
+ padding: theme.spacing(0, 2),
72
+ '& .SCNavigationToolbar-navigation': {
73
+ '& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
74
+ margin: theme.spacing(0, 2)
75
+ }
70
76
  }
71
77
  }
72
- }
73
- }),
78
+ });
79
+ },
74
80
  skeletonRoot: ({ theme }) => ({
75
81
  '& .SCNavigationToolbar-logo': {
76
82
  width: 100,
@@ -13,6 +13,9 @@ declare const Component: {
13
13
  '& .SCNavigationToolbarMobile-logo-flex': {
14
14
  flexGrow: number;
15
15
  };
16
+ '& .MuiIconButton-root': {
17
+ color: any;
18
+ };
16
19
  '& h4': {
17
20
  fontSize: string;
18
21
  overflow: string;
@@ -1,25 +1,32 @@
1
+ import { getContrastRatio } from '@mui/material/styles';
1
2
  const Component = {
2
3
  styleOverrides: {
3
- root: ({ theme }) => ({
4
- padding: `${theme.spacing(0, 1, 0, 1)} !important`,
5
- '& .SCNavigationToolbarMobile-logo, & .SCNavigationToolbarMobile-custom-item': {
6
- margin: theme.spacing(0.5, 2, 0.5, 0.5),
7
- flexGrow: 1,
8
- '& img': {
9
- verticalAlign: 'middle',
10
- maxHeight: `calc(${theme.mixins.toolbar.minHeight}px - ${theme.spacing(2)})`
4
+ root: ({ theme }) => {
5
+ var _a, _b;
6
+ return ({
7
+ padding: `${theme.spacing(0, 1, 0, 1)} !important`,
8
+ '& .SCNavigationToolbarMobile-logo, & .SCNavigationToolbarMobile-custom-item': {
9
+ margin: theme.spacing(0.5, 2, 0.5, 0.5),
10
+ flexGrow: 1,
11
+ '& img': {
12
+ verticalAlign: 'middle',
13
+ maxHeight: `calc(${theme.mixins.toolbar.minHeight}px - ${theme.spacing(2)})`
14
+ }
15
+ },
16
+ '& .SCNavigationToolbarMobile-logo-flex': {
17
+ flexGrow: 0
18
+ },
19
+ '& .MuiIconButton-root': {
20
+ color: getContrastRatio((_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main
21
+ },
22
+ '& h4': {
23
+ fontSize: '1.286rem',
24
+ overflow: 'hidden',
25
+ textOverflow: 'ellipsis',
26
+ whiteSpace: 'nowrap'
11
27
  }
12
- },
13
- '& .SCNavigationToolbarMobile-logo-flex': {
14
- flexGrow: 0
15
- },
16
- '& h4': {
17
- fontSize: '1.286rem',
18
- overflow: 'hidden',
19
- textOverflow: 'ellipsis',
20
- whiteSpace: 'nowrap'
21
- }
22
- }),
28
+ });
29
+ },
23
30
  skeletonRoot: ({ theme }) => ({
24
31
  '& .SCNavigationToolbarMobile-logo': {
25
32
  width: 100,