@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.
- package/lib/cjs/components/MuiAppBar.js +4 -3
- package/lib/cjs/components/SCBottomNavigation.js +5 -4
- package/lib/cjs/components/SCEventForm.d.ts +5 -0
- package/lib/cjs/components/SCEventForm.js +6 -1
- package/lib/cjs/components/SCFeed.d.ts +9 -3
- package/lib/cjs/components/SCFeed.js +9 -3
- package/lib/cjs/components/SCFeedObject.d.ts +4 -0
- package/lib/cjs/components/SCFeedObject.js +4 -0
- package/lib/cjs/components/SCFeedObjectDetailTemplate.d.ts +10 -0
- package/lib/cjs/components/SCFeedObjectDetailTemplate.js +10 -0
- package/lib/cjs/components/SCGroupActionsMenu.d.ts +26 -0
- package/lib/cjs/components/SCGroupActionsMenu.js +28 -0
- package/lib/cjs/components/SCGroupHeader.d.ts +5 -2
- package/lib/cjs/components/SCGroupHeader.js +5 -2
- package/lib/cjs/components/SCLightbox.d.ts +5 -0
- package/lib/cjs/components/SCLightbox.js +12 -7
- package/lib/cjs/components/SCMediaLink.d.ts +51 -1
- package/lib/cjs/components/SCMediaLink.js +52 -2
- package/lib/cjs/components/SCNavigationMenuDrawer.d.ts +42 -0
- package/lib/cjs/components/SCNavigationMenuDrawer.js +45 -0
- package/lib/cjs/components/SCNavigationMenuIconButton.d.ts +0 -37
- package/lib/cjs/components/SCNavigationMenuIconButton.js +1 -39
- package/lib/cjs/components/SCNavigationToolbar.d.ts +3 -1
- package/lib/cjs/components/SCNavigationToolbar.js +68 -62
- package/lib/cjs/components/SCNavigationToolbarMobile.d.ts +3 -0
- package/lib/cjs/components/SCNavigationToolbarMobile.js +26 -19
- package/lib/cjs/components/SCOnBoardingWidget.d.ts +17 -6
- package/lib/cjs/components/SCOnBoardingWidget.js +20 -8
- package/lib/cjs/components/SCSearchAutocomplete.d.ts +4 -0
- package/lib/cjs/components/SCSearchAutocomplete.js +29 -21
- package/lib/cjs/components/SCVoteButton.d.ts +5 -3
- package/lib/cjs/components/SCVoteButton.js +6 -5
- package/lib/cjs/index.d.ts +156 -21
- package/lib/cjs/index.js +4 -0
- package/lib/esm/components/MuiAppBar.js +4 -3
- package/lib/esm/components/SCBottomNavigation.js +5 -4
- package/lib/esm/components/SCEventForm.d.ts +5 -0
- package/lib/esm/components/SCEventForm.js +6 -1
- package/lib/esm/components/SCFeed.d.ts +9 -3
- package/lib/esm/components/SCFeed.js +9 -3
- package/lib/esm/components/SCFeedObject.d.ts +4 -0
- package/lib/esm/components/SCFeedObject.js +4 -0
- package/lib/esm/components/SCFeedObjectDetailTemplate.d.ts +10 -0
- package/lib/esm/components/SCFeedObjectDetailTemplate.js +10 -0
- package/lib/esm/components/SCGroupActionsMenu.d.ts +26 -0
- package/lib/esm/components/SCGroupActionsMenu.js +26 -0
- package/lib/esm/components/SCGroupHeader.d.ts +5 -2
- package/lib/esm/components/SCGroupHeader.js +5 -2
- package/lib/esm/components/SCLightbox.d.ts +5 -0
- package/lib/esm/components/SCLightbox.js +12 -7
- package/lib/esm/components/SCMediaLink.d.ts +51 -1
- package/lib/esm/components/SCMediaLink.js +52 -2
- package/lib/esm/components/SCNavigationMenuDrawer.d.ts +42 -0
- package/lib/esm/components/SCNavigationMenuDrawer.js +43 -0
- package/lib/esm/components/SCNavigationMenuIconButton.d.ts +0 -37
- package/lib/esm/components/SCNavigationMenuIconButton.js +1 -39
- package/lib/esm/components/SCNavigationToolbar.d.ts +3 -1
- package/lib/esm/components/SCNavigationToolbar.js +68 -62
- package/lib/esm/components/SCNavigationToolbarMobile.d.ts +3 -0
- package/lib/esm/components/SCNavigationToolbarMobile.js +26 -19
- package/lib/esm/components/SCOnBoardingWidget.d.ts +17 -6
- package/lib/esm/components/SCOnBoardingWidget.js +20 -8
- package/lib/esm/components/SCSearchAutocomplete.d.ts +4 -0
- package/lib/esm/components/SCSearchAutocomplete.js +29 -21
- package/lib/esm/components/SCVoteButton.d.ts +5 -3
- package/lib/esm/components/SCVoteButton.js +6 -5
- package/lib/esm/index.d.ts +156 -21
- package/lib/esm/index.js +4 -0
- package/lib/umd/react-theme-default.js +2 -2
- package/package.json +4 -5
- package/lib/umd/850.js +0 -2
- package/lib/umd/850.js.LICENSE.txt +0 -16
|
@@ -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,78 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const styles_1 = require("@mui/material/styles");
|
|
3
4
|
const Component = {
|
|
4
5
|
styleOverrides: {
|
|
5
|
-
root: ({ theme }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'&
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
root: ({ theme }) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return ({
|
|
9
|
+
padding: theme.spacing(0, 1),
|
|
10
|
+
'& .SCNavigationToolbar-logo, & .SCNavigationToolbar-custom-item': {
|
|
11
|
+
marginRight: theme.spacing(2),
|
|
12
|
+
'& img': {
|
|
13
|
+
verticalAlign: 'middle',
|
|
14
|
+
maxHeight: theme.mixins.toolbar.minHeight - 20
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
'& .SCNavigationToolbar-navigation': {
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
textAlign: 'center',
|
|
20
|
+
alignSelf: 'end',
|
|
21
|
+
'& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore, & .SCNavigationToolbar-groups, & .SCNavigationToolbar-events': {
|
|
22
|
+
paddingTop: 12,
|
|
23
|
+
paddingLeft: theme.spacing(1),
|
|
24
|
+
paddingRight: theme.spacing(1),
|
|
25
|
+
paddingBottom: 11,
|
|
26
|
+
margin: theme.spacing(0, 1),
|
|
27
|
+
borderRadius: 0,
|
|
28
|
+
borderBottom: `2px solid transparent`,
|
|
29
|
+
'&.SCNavigationToolbar-active, &:hover': {
|
|
30
|
+
color: theme.palette.secondary.main,
|
|
31
|
+
borderBottom: `2px solid ${theme.palette.secondary.main}`
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
'& .SCNavigationToolbar-search': {
|
|
36
|
+
flexGrow: 1,
|
|
37
|
+
textAlign: 'right',
|
|
38
|
+
marginRight: theme.spacing(1.5),
|
|
39
|
+
'& .MuiFormControl-root': {
|
|
40
|
+
width: 190,
|
|
41
|
+
[theme.breakpoints.up('lg')]: {
|
|
42
|
+
width: 300
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
'& .SCNavigationToolbar-profile, & .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
|
|
47
|
+
margin: theme.spacing(0, 0.5)
|
|
48
|
+
},
|
|
49
|
+
'& .SCNavigationToolbar-profile .MuiAvatar-root': {
|
|
50
|
+
width: theme.selfcommunity.user.avatar.sizeMedium,
|
|
51
|
+
height: theme.selfcommunity.user.avatar.sizeMedium
|
|
52
|
+
},
|
|
53
|
+
'& .SCNavigationToolbar-notification, & .SCNavigationToolbar-messages': {
|
|
19
54
|
paddingTop: 12,
|
|
20
|
-
|
|
21
|
-
paddingRight: theme.spacing(1),
|
|
22
|
-
paddingBottom: 11,
|
|
23
|
-
margin: theme.spacing(0, 1),
|
|
24
|
-
color: theme.palette.primary.main,
|
|
55
|
+
paddingBottom: 9,
|
|
25
56
|
borderRadius: 0,
|
|
26
57
|
borderBottom: `2px solid transparent`,
|
|
27
58
|
'&.SCNavigationToolbar-active, &:hover': {
|
|
28
59
|
color: theme.palette.secondary.main,
|
|
29
60
|
borderBottom: `2px solid ${theme.palette.secondary.main}`
|
|
30
61
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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': {
|
|
52
|
-
paddingTop: 12,
|
|
53
|
-
paddingBottom: 9,
|
|
54
|
-
borderRadius: 0,
|
|
55
|
-
borderBottom: `2px solid transparent`,
|
|
56
|
-
'&.SCNavigationToolbar-active, &:hover': {
|
|
57
|
-
color: theme.palette.secondary.main,
|
|
58
|
-
borderBottom: `2px solid ${theme.palette.secondary.main}`
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
'& .SCNavigationToolbar-settings': {
|
|
62
|
-
marginLeft: 0
|
|
63
|
-
},
|
|
64
|
-
'& .MuiIconButton-root': {
|
|
65
|
-
color: theme.palette.primary.main
|
|
66
|
-
},
|
|
67
|
-
[theme.breakpoints.up(950)]: {
|
|
68
|
-
padding: theme.spacing(0, 2),
|
|
69
|
-
'& .SCNavigationToolbar-navigation': {
|
|
70
|
-
'& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
|
|
71
|
-
margin: theme.spacing(0, 2)
|
|
62
|
+
},
|
|
63
|
+
'& .SCNavigationToolbar-settings': {
|
|
64
|
+
marginLeft: 0
|
|
65
|
+
},
|
|
66
|
+
'& .SCNavigationToolbar-composer:hover': {
|
|
67
|
+
color: theme.palette.secondary.main
|
|
68
|
+
},
|
|
69
|
+
'& .MuiIconButton-root': {
|
|
70
|
+
color: (0, styles_1.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
|
|
71
|
+
},
|
|
72
|
+
[theme.breakpoints.up(950)]: {
|
|
73
|
+
padding: theme.spacing(0, 2),
|
|
74
|
+
'& .SCNavigationToolbar-navigation': {
|
|
75
|
+
'& .SCNavigationToolbar-home, & .SCNavigationToolbar-explore': {
|
|
76
|
+
margin: theme.spacing(0, 2)
|
|
77
|
+
}
|
|
72
78
|
}
|
|
73
79
|
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
80
|
+
});
|
|
81
|
+
},
|
|
76
82
|
skeletonRoot: ({ theme }) => ({
|
|
77
83
|
'& .SCNavigationToolbar-logo': {
|
|
78
84
|
width: 100,
|
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const styles_1 = require("@mui/material/styles");
|
|
3
4
|
const Component = {
|
|
4
5
|
styleOverrides: {
|
|
5
|
-
root: ({ theme }) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
root: ({ theme }) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
return ({
|
|
9
|
+
padding: `${theme.spacing(0, 1, 0, 1)} !important`,
|
|
10
|
+
'& .SCNavigationToolbarMobile-logo, & .SCNavigationToolbarMobile-custom-item': {
|
|
11
|
+
margin: theme.spacing(0.5, 2, 0.5, 0.5),
|
|
12
|
+
flexGrow: 1,
|
|
13
|
+
'& img': {
|
|
14
|
+
verticalAlign: 'middle',
|
|
15
|
+
maxHeight: `calc(${theme.mixins.toolbar.minHeight}px - ${theme.spacing(2)})`
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
'& .SCNavigationToolbarMobile-logo-flex': {
|
|
19
|
+
flexGrow: 0
|
|
20
|
+
},
|
|
21
|
+
'& .MuiIconButton-root': {
|
|
22
|
+
color: (0, styles_1.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
|
|
23
|
+
},
|
|
24
|
+
'& h4': {
|
|
25
|
+
fontSize: '1.286rem',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
textOverflow: 'ellipsis',
|
|
28
|
+
whiteSpace: 'nowrap'
|
|
13
29
|
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
flexGrow: 0
|
|
17
|
-
},
|
|
18
|
-
'& h4': {
|
|
19
|
-
fontSize: '1.286rem',
|
|
20
|
-
overflow: 'hidden',
|
|
21
|
-
textOverflow: 'ellipsis',
|
|
22
|
-
whiteSpace: 'nowrap'
|
|
23
|
-
}
|
|
24
|
-
}),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
25
32
|
skeletonRoot: ({ theme }) => ({
|
|
26
33
|
'& .SCNavigationToolbarMobile-logo': {
|
|
27
34
|
width: 100,
|
|
@@ -260,8 +260,18 @@ declare const Component: {
|
|
|
260
260
|
display: string;
|
|
261
261
|
flexDirection: string;
|
|
262
262
|
};
|
|
263
|
-
'& .SCOnBoardingWidget-appearance-color': {
|
|
264
|
-
|
|
263
|
+
'& .SCOnBoardingWidget-appearance-color-container': {
|
|
264
|
+
position: string;
|
|
265
|
+
display: string;
|
|
266
|
+
'& .SCOnBoardingWidget-appearance-color': {
|
|
267
|
+
margin: any;
|
|
268
|
+
};
|
|
269
|
+
'& .SCOnBoardingWidget-appearance-color-progress': {
|
|
270
|
+
position: string;
|
|
271
|
+
top: string;
|
|
272
|
+
marginTop: any;
|
|
273
|
+
marginLeft: any;
|
|
274
|
+
};
|
|
265
275
|
};
|
|
266
276
|
'& .SCOnBoardingWidget-appearance-logo-container': {
|
|
267
277
|
position: string;
|
|
@@ -317,17 +327,16 @@ declare const Component: {
|
|
|
317
327
|
borderRadius: number;
|
|
318
328
|
background: string;
|
|
319
329
|
boxShadow: string;
|
|
330
|
+
display: string;
|
|
331
|
+
flexDirection: string;
|
|
320
332
|
};
|
|
321
333
|
'& .SCOnBoardingWidget-profile-icon': {
|
|
322
334
|
alignSelf: string;
|
|
323
335
|
};
|
|
324
336
|
'& .SCOnBoardingWidget-profile-avatar': {
|
|
325
|
-
|
|
326
|
-
top: number;
|
|
327
|
-
};
|
|
337
|
+
position: string;
|
|
328
338
|
top: number;
|
|
329
339
|
display: string;
|
|
330
|
-
position: string;
|
|
331
340
|
marginLeft: any;
|
|
332
341
|
'& > .MuiBadge-root > img': {
|
|
333
342
|
height: any;
|
|
@@ -348,9 +357,11 @@ declare const Component: {
|
|
|
348
357
|
'& .SCOnBoardingWidget-profile-change-picture': {
|
|
349
358
|
[x: number]: {
|
|
350
359
|
top: number;
|
|
360
|
+
left: number;
|
|
351
361
|
};
|
|
352
362
|
top: number;
|
|
353
363
|
left: number;
|
|
364
|
+
height: number;
|
|
354
365
|
position: string;
|
|
355
366
|
display: string;
|
|
356
367
|
marginLeft: any;
|
|
@@ -262,8 +262,18 @@ const Component = {
|
|
|
262
262
|
display: 'flex',
|
|
263
263
|
flexDirection: 'column'
|
|
264
264
|
},
|
|
265
|
-
'& .SCOnBoardingWidget-appearance-color': {
|
|
266
|
-
|
|
265
|
+
'& .SCOnBoardingWidget-appearance-color-container': {
|
|
266
|
+
position: 'relative',
|
|
267
|
+
display: 'inline-block',
|
|
268
|
+
'& .SCOnBoardingWidget-appearance-color': {
|
|
269
|
+
margin: theme.spacing(1, 0, 2, 0)
|
|
270
|
+
},
|
|
271
|
+
'& .SCOnBoardingWidget-appearance-color-progress': {
|
|
272
|
+
position: 'absolute',
|
|
273
|
+
top: '50%',
|
|
274
|
+
marginTop: theme.spacing(-2),
|
|
275
|
+
marginLeft: theme.spacing(-4.5)
|
|
276
|
+
}
|
|
267
277
|
},
|
|
268
278
|
'& .SCOnBoardingWidget-appearance-logo-container': {
|
|
269
279
|
position: 'relative',
|
|
@@ -318,16 +328,17 @@ const Component = {
|
|
|
318
328
|
boxShadow: 'unset',
|
|
319
329
|
[theme.breakpoints.up('md')]: {
|
|
320
330
|
borderRadius: theme.spacing(0, 0, 2.5, 2.5)
|
|
321
|
-
}
|
|
331
|
+
},
|
|
332
|
+
display: 'flex',
|
|
333
|
+
flexDirection: 'row'
|
|
322
334
|
},
|
|
323
335
|
'& .SCOnBoardingWidget-profile-icon': {
|
|
324
336
|
alignSelf: 'end'
|
|
325
337
|
},
|
|
326
338
|
'& .SCOnBoardingWidget-profile-avatar': {
|
|
339
|
+
position: 'relative',
|
|
327
340
|
top: 100,
|
|
328
|
-
[theme.breakpoints.up('sm')]: { top: 150 },
|
|
329
341
|
display: 'block',
|
|
330
|
-
position: 'absolute',
|
|
331
342
|
marginLeft: theme.spacing(2),
|
|
332
343
|
'& > .MuiBadge-root > img': {
|
|
333
344
|
height: theme.selfcommunity.user.avatar.sizeXLarge,
|
|
@@ -346,9 +357,10 @@ const Component = {
|
|
|
346
357
|
}
|
|
347
358
|
},
|
|
348
359
|
'& .SCOnBoardingWidget-profile-change-picture': {
|
|
349
|
-
top:
|
|
350
|
-
|
|
351
|
-
left:
|
|
360
|
+
[theme.breakpoints.down('sm')]: { top: 167, left: -45 },
|
|
361
|
+
top: 165,
|
|
362
|
+
left: -40,
|
|
363
|
+
height: 28,
|
|
352
364
|
position: 'relative',
|
|
353
365
|
display: 'flex',
|
|
354
366
|
marginLeft: theme.spacing(2)
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const system_1 = require("@mui/system");
|
|
4
|
+
const styles_1 = require("@mui/material/styles");
|
|
4
5
|
const Component = {
|
|
5
6
|
styleOverrides: {
|
|
6
|
-
root: ({ theme }) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
borderColor: (0, system_1.alpha)(theme.palette.primary.main, theme.palette.action.disabledOpacity)
|
|
17
|
-
},
|
|
18
|
-
'&:hover fieldset': {
|
|
19
|
-
borderColor: theme.palette.primary.main
|
|
20
|
-
},
|
|
21
|
-
'&.Mui-focused fieldset': {
|
|
22
|
-
borderColor: theme.palette.secondary.main
|
|
7
|
+
root: ({ theme }) => {
|
|
8
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
9
|
+
return ({
|
|
10
|
+
'& .SCSearchAutocomplete-input': {
|
|
11
|
+
padding: theme.spacing(0, 2),
|
|
12
|
+
borderRadius: theme.shape.borderRadius,
|
|
13
|
+
'& .MuiAutocomplete-input': {
|
|
14
|
+
padding: theme.spacing(0.5, 1),
|
|
15
|
+
color: (0, styles_1.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
|
|
16
|
+
}
|
|
23
17
|
},
|
|
24
|
-
'
|
|
25
|
-
|
|
18
|
+
'& .MuiInputBase-root': {
|
|
19
|
+
'& .MuiIcon-root': {
|
|
20
|
+
color: (0, styles_1.getContrastRatio)((_d = (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.navbar) === null || _d === void 0 ? void 0 : _d.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main
|
|
21
|
+
},
|
|
22
|
+
'& fieldset': {
|
|
23
|
+
borderColor: (0, system_1.alpha)((0, styles_1.getContrastRatio)((_f = (_e = theme.palette) === null || _e === void 0 ? void 0 : _e.navbar) === null || _f === void 0 ? void 0 : _f.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main, theme.palette.action.disabledOpacity)
|
|
24
|
+
},
|
|
25
|
+
'&:hover fieldset': {
|
|
26
|
+
borderColor: (0, styles_1.getContrastRatio)((_h = (_g = theme.palette) === null || _g === void 0 ? void 0 : _g.navbar) === null || _h === void 0 ? void 0 : _h.main, '#fff') > 4.5 ? '#fff' : theme.palette.primary.main
|
|
27
|
+
},
|
|
28
|
+
'&.Mui-focused fieldset': {
|
|
29
|
+
borderColor: (0, styles_1.getContrastRatio)((_k = (_j = theme.palette) === null || _j === void 0 ? void 0 : _j.navbar) === null || _k === void 0 ? void 0 : _k.main, '#fff') > 4.5 ? '#fff' : theme.palette.secondary.main
|
|
30
|
+
},
|
|
31
|
+
'&.Mui-focused .SCSearchAutocomplete-icon': {
|
|
32
|
+
color: (0, styles_1.getContrastRatio)((_m = (_l = theme.palette) === null || _l === void 0 ? void 0 : _l.navbar) === null || _m === void 0 ? void 0 : _m.main, '#fff') > 4.5 ? '#fff' : theme.palette.secondary.main
|
|
33
|
+
}
|
|
26
34
|
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
};
|
|
31
39
|
exports.default = Component;
|
|
@@ -9,9 +9,6 @@ declare const Component: {
|
|
|
9
9
|
minWidth: number;
|
|
10
10
|
'& .MuiIcon-root': {
|
|
11
11
|
fontSize: string;
|
|
12
|
-
'& img': {
|
|
13
|
-
filter: string;
|
|
14
|
-
};
|
|
15
12
|
};
|
|
16
13
|
'&.MuiButton-sizeSmall': {
|
|
17
14
|
padding: any;
|
|
@@ -20,6 +17,11 @@ declare const Component: {
|
|
|
20
17
|
};
|
|
21
18
|
};
|
|
22
19
|
};
|
|
20
|
+
popperRoot: ({ theme }: any) => {
|
|
21
|
+
'& .SCVoteButton-reaction .MuiIcon-root': {
|
|
22
|
+
fontSize: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
23
25
|
};
|
|
24
26
|
};
|
|
25
27
|
export default Component;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const hex_to_css_filter_1 = require("hex-to-css-filter");
|
|
4
3
|
const Component = {
|
|
5
4
|
styleOverrides: {
|
|
6
5
|
root: ({ theme }) => ({
|
|
@@ -11,10 +10,7 @@ const Component = {
|
|
|
11
10
|
padding: theme.spacing(1.5),
|
|
12
11
|
minWidth: 0,
|
|
13
12
|
'& .MuiIcon-root': {
|
|
14
|
-
fontSize: '1.57rem'
|
|
15
|
-
'& img': {
|
|
16
|
-
filter: (0, hex_to_css_filter_1.hexToCSSFilter)(theme.palette.primary.main).filter
|
|
17
|
-
}
|
|
13
|
+
fontSize: '1.57rem'
|
|
18
14
|
},
|
|
19
15
|
'&.MuiButton-sizeSmall': {
|
|
20
16
|
padding: theme.spacing(0.5),
|
|
@@ -22,6 +18,11 @@ const Component = {
|
|
|
22
18
|
fontSize: '1rem'
|
|
23
19
|
}
|
|
24
20
|
}
|
|
21
|
+
}),
|
|
22
|
+
popperRoot: ({ theme }) => ({
|
|
23
|
+
'& .SCVoteButton-reaction .MuiIcon-root': {
|
|
24
|
+
fontSize: '22px'
|
|
25
|
+
}
|
|
25
26
|
})
|
|
26
27
|
}
|
|
27
28
|
};
|