@selfcommunity/react-theme-default 1.2.0-alpha.5 → 1.2.0-alpha.7

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.
@@ -19,6 +19,7 @@ declare const Component: {
19
19
  [x: number]: {
20
20
  height: string;
21
21
  };
22
+ boxShadow: string;
22
23
  position: string;
23
24
  overflowX: string;
24
25
  '& > form': {
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const system_1 = require("@mui/system");
3
+ const material_1 = require("@mui/material");
4
4
  const Component = {
5
5
  styleOverrides: {
6
6
  root: ({ theme }) => ({
7
7
  '& .MuiDialog-paper': {
8
+ boxShadow: (0, material_1.getContrastRatio)(theme.palette.background.paper, theme.palette.common.white) > 4.5
9
+ ? '0px 0px 2px 2px rgba(0 0 0 / 50%)'
10
+ : '0px 0px 1px 1px rgba(255 255 255 / 50%)',
8
11
  [theme.breakpoints.down('md')]: {
9
12
  height: '100%'
10
13
  },
@@ -282,7 +285,7 @@ const Component = {
282
285
  typeSwitchButtonGroupRoot: ({ theme }) => ({
283
286
  '& .MuiToggleButton-root': {
284
287
  backgroundColor: theme.palette.common.black,
285
- color: (0, system_1.alpha)(theme.palette.common.white, 0.5),
288
+ color: (0, material_1.alpha)(theme.palette.common.white, 0.5),
286
289
  padding: theme.spacing(0.5, 2),
287
290
  fontSize: '1rem',
288
291
  fontWeight: theme.typography.fontWeightBold,
@@ -381,10 +381,7 @@ declare const Component: {
381
381
  fontWeight: any;
382
382
  marginTop: any;
383
383
  marginBottom: number;
384
- color: string;
385
- '&:hover': {
386
- color: string;
387
- };
384
+ color: any;
388
385
  };
389
386
  '& .MuiDivider-root': {
390
387
  borderColor: any;
@@ -388,12 +388,7 @@ const Component = {
388
388
  fontWeight: theme.typography.fontWeightRegular,
389
389
  marginTop: theme.spacing(0),
390
390
  marginBottom: 0,
391
- color: (0, material_1.getContrastRatio)(theme.palette.background.paper, theme.palette.common.white) > 4.5
392
- ? (0, material_1.lighten)(theme.palette.text.primary, 0.5)
393
- : (0, material_1.darken)(theme.palette.text.primary, 0.5),
394
- '&:hover': {
395
- color: 'inherit'
396
- }
391
+ color: theme.palette.getContrastText(theme.palette.background.paper)
397
392
  },
398
393
  '& .MuiDivider-root': {
399
394
  borderColor: theme.palette.grey[300]
@@ -1377,6 +1377,7 @@ declare const theme: {
1377
1377
  [x: number]: {
1378
1378
  height: string;
1379
1379
  };
1380
+ boxShadow: string;
1380
1381
  position: string;
1381
1382
  overflowX: string;
1382
1383
  '& > form': {
@@ -4393,10 +4394,7 @@ declare const theme: {
4393
4394
  fontWeight: any;
4394
4395
  marginTop: any;
4395
4396
  marginBottom: number;
4396
- color: string;
4397
- '&:hover': {
4398
- color: string;
4399
- };
4397
+ color: any;
4400
4398
  };
4401
4399
  '& .MuiDivider-root': {
4402
4400
  borderColor: any;
@@ -4686,6 +4684,9 @@ declare const theme: {
4686
4684
  };
4687
4685
  '& .SCFeedObject-poll-object-voters, & .SCFeedObject-poll-object-votes': {
4688
4686
  display: string;
4687
+ /**
4688
+ * Style assets - Exports - Start
4689
+ */
4689
4690
  margin: any;
4690
4691
  alignItems: string;
4691
4692
  justifyContent: string;
@@ -19,6 +19,7 @@ declare const Component: {
19
19
  [x: number]: {
20
20
  height: string;
21
21
  };
22
+ boxShadow: string;
22
23
  position: string;
23
24
  overflowX: string;
24
25
  '& > form': {
@@ -1,8 +1,11 @@
1
- import { alpha } from '@mui/system';
1
+ import { alpha, getContrastRatio } from '@mui/material';
2
2
  const Component = {
3
3
  styleOverrides: {
4
4
  root: ({ theme }) => ({
5
5
  '& .MuiDialog-paper': {
6
+ boxShadow: getContrastRatio(theme.palette.background.paper, theme.palette.common.white) > 4.5
7
+ ? '0px 0px 2px 2px rgba(0 0 0 / 50%)'
8
+ : '0px 0px 1px 1px rgba(255 255 255 / 50%)',
6
9
  [theme.breakpoints.down('md')]: {
7
10
  height: '100%'
8
11
  },
@@ -381,10 +381,7 @@ declare const Component: {
381
381
  fontWeight: any;
382
382
  marginTop: any;
383
383
  marginBottom: number;
384
- color: string;
385
- '&:hover': {
386
- color: string;
387
- };
384
+ color: any;
388
385
  };
389
386
  '& .MuiDivider-root': {
390
387
  borderColor: any;
@@ -386,12 +386,7 @@ const Component = {
386
386
  fontWeight: theme.typography.fontWeightRegular,
387
387
  marginTop: theme.spacing(0),
388
388
  marginBottom: 0,
389
- color: getContrastRatio(theme.palette.background.paper, theme.palette.common.white) > 4.5
390
- ? lighten(theme.palette.text.primary, 0.5)
391
- : darken(theme.palette.text.primary, 0.5),
392
- '&:hover': {
393
- color: 'inherit'
394
- }
389
+ color: theme.palette.getContrastText(theme.palette.background.paper)
395
390
  },
396
391
  '& .MuiDivider-root': {
397
392
  borderColor: theme.palette.grey[300]
@@ -1377,6 +1377,7 @@ declare const theme: {
1377
1377
  [x: number]: {
1378
1378
  height: string;
1379
1379
  };
1380
+ boxShadow: string;
1380
1381
  position: string;
1381
1382
  overflowX: string;
1382
1383
  '& > form': {
@@ -4393,10 +4394,7 @@ declare const theme: {
4393
4394
  fontWeight: any;
4394
4395
  marginTop: any;
4395
4396
  marginBottom: number;
4396
- color: string;
4397
- '&:hover': {
4398
- color: string;
4399
- };
4397
+ color: any;
4400
4398
  };
4401
4399
  '& .MuiDivider-root': {
4402
4400
  borderColor: any;
@@ -4686,6 +4684,9 @@ declare const theme: {
4686
4684
  };
4687
4685
  '& .SCFeedObject-poll-object-voters, & .SCFeedObject-poll-object-votes': {
4688
4686
  display: string;
4687
+ /**
4688
+ * Style assets - Exports - Start
4689
+ */
4689
4690
  margin: any;
4690
4691
  alignItems: string;
4691
4692
  justifyContent: string;