@selfcommunity/react-theme-default 0.5.0-alpha.0 → 0.5.0-alpha.1
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 +2 -2
- package/lib/cjs/components/SCBottomNavigation.js +2 -2
- package/lib/cjs/components/SCNavigationToolbar.js +2 -2
- package/lib/cjs/components/SCNavigationToolbarMobile.js +2 -2
- package/lib/cjs/components/SCSearchAutocomplete.js +7 -7
- package/lib/esm/components/MuiAppBar.js +1 -1
- package/lib/esm/components/SCBottomNavigation.js +1 -1
- package/lib/esm/components/SCNavigationToolbar.js +1 -1
- package/lib/esm/components/SCNavigationToolbarMobile.js +1 -1
- package/lib/esm/components/SCSearchAutocomplete.js +1 -1
- package/lib/umd/react-theme-default.js +1 -1
- package/package.json +2 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const material_1 = require("@mui/material");
|
|
4
4
|
const Component = {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: ({ theme }) => {
|
|
7
7
|
var _a, _b, _c, _d;
|
|
8
8
|
return ({
|
|
9
|
-
color: (0,
|
|
9
|
+
color: (0, material_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.text.primary,
|
|
10
10
|
backgroundColor: (_d = (_c = theme.palette) === null || _c === void 0 ? void 0 : _c.navbar) === null || _d === void 0 ? void 0 : _d.main
|
|
11
11
|
});
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const material_1 = require("@mui/material");
|
|
4
4
|
const Component = {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: ({ theme }) => {
|
|
@@ -9,7 +9,7 @@ const Component = {
|
|
|
9
9
|
backgroundColor: (_b = (_a = theme.palette) === null || _a === void 0 ? void 0 : _a.navbar) === null || _b === void 0 ? void 0 : _b.main,
|
|
10
10
|
'& .SCBottomNavigation-action': {
|
|
11
11
|
fontSize: '1.57rem',
|
|
12
|
-
color: (0,
|
|
12
|
+
color: (0, material_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,
|
|
13
13
|
borderTop: `1px solid transparent`,
|
|
14
14
|
minWidth: 56,
|
|
15
15
|
'&.Mui-selected, &:hover': {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const material_1 = require("@mui/material");
|
|
4
4
|
const Component = {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: ({ theme }) => {
|
|
@@ -67,7 +67,7 @@ const Component = {
|
|
|
67
67
|
color: theme.palette.secondary.main
|
|
68
68
|
},
|
|
69
69
|
'& .MuiIconButton-root': {
|
|
70
|
-
color: (0,
|
|
70
|
+
color: (0, material_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
71
|
},
|
|
72
72
|
[theme.breakpoints.up(950)]: {
|
|
73
73
|
padding: theme.spacing(0, 2),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const material_1 = require("@mui/material");
|
|
4
4
|
const Component = {
|
|
5
5
|
styleOverrides: {
|
|
6
6
|
root: ({ theme }) => {
|
|
@@ -19,7 +19,7 @@ const Component = {
|
|
|
19
19
|
flexGrow: 0
|
|
20
20
|
},
|
|
21
21
|
'& .MuiIconButton-root': {
|
|
22
|
-
color: (0,
|
|
22
|
+
color: (0, material_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
23
|
},
|
|
24
24
|
'& h4': {
|
|
25
25
|
fontSize: '1.286rem',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const system_1 = require("@mui/system");
|
|
4
|
-
const
|
|
4
|
+
const material_1 = require("@mui/material");
|
|
5
5
|
const Component = {
|
|
6
6
|
styleOverrides: {
|
|
7
7
|
root: ({ theme }) => {
|
|
@@ -12,24 +12,24 @@ const Component = {
|
|
|
12
12
|
borderRadius: theme.shape.borderRadius,
|
|
13
13
|
'& .MuiAutocomplete-input': {
|
|
14
14
|
padding: theme.spacing(0.5, 1),
|
|
15
|
-
color: (0,
|
|
15
|
+
color: (0, material_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
16
|
}
|
|
17
17
|
},
|
|
18
18
|
'& .MuiInputBase-root': {
|
|
19
19
|
'& .MuiIcon-root': {
|
|
20
|
-
color: (0,
|
|
20
|
+
color: (0, material_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
21
|
},
|
|
22
22
|
'& fieldset': {
|
|
23
|
-
borderColor: (0, system_1.alpha)((0,
|
|
23
|
+
borderColor: (0, system_1.alpha)((0, material_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
24
|
},
|
|
25
25
|
'&:hover fieldset': {
|
|
26
|
-
borderColor: (0,
|
|
26
|
+
borderColor: (0, material_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
27
|
},
|
|
28
28
|
'&.Mui-focused fieldset': {
|
|
29
|
-
borderColor: (0,
|
|
29
|
+
borderColor: (0, material_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
30
|
},
|
|
31
31
|
'&.Mui-focused .SCSearchAutocomplete-icon': {
|
|
32
|
-
color: (0,
|
|
32
|
+
color: (0, material_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
33
|
}
|
|
34
34
|
}
|
|
35
35
|
});
|