@bytebrand/fe-ui-core 4.1.78 → 4.1.79

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.1.78",
3
+ "version": "4.1.79",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -119,7 +119,7 @@ const RangeControlled = ({
119
119
  value:from ? numberWithDot(from) : null,
120
120
  label: `${t('filters.from')} ${unit ? unit : '€'}`,
121
121
  onChange: (value: any) => onDropDownChange('from', value),
122
- items: getOptions(sliceLessThan(getDropdownRange(name), to)),
122
+ items: getOptions(sliceLessThan(getDropdownRange(name), to))
123
123
  };
124
124
 
125
125
  const toProps = {
@@ -15,6 +15,15 @@ export const AccordionSummaryTitle = styled('div')({
15
15
  color: 'rgba(76, 78, 100, 0.87)'
16
16
  });
17
17
 
18
+ export const AccordionContent = styled('div')({
19
+ fontFamily: 'sans-serif',
20
+ fontSize: '10px',
21
+ lineHeight: '12px',
22
+ textAlign: 'justify',
23
+ letterSpacing: '0.4px',
24
+ color: 'rgba(76, 78, 100, 0.68)'
25
+ });
26
+
18
27
  export const Theme = createTheme({
19
28
  components: {
20
29
  MuiAccordion: {
@@ -28,7 +37,7 @@ export const Theme = createTheme({
28
37
  borderBottomRightRadius: '8px',
29
38
  borderBottomLeftRadius: '8px'
30
39
  },
31
- '&:first-child': {
40
+ '&:first-of-type': {
32
41
  borderTopRightRadius: '8px',
33
42
  borderTopLeftRadius: '8px'
34
43
  },
@@ -50,6 +59,13 @@ export const Theme = createTheme({
50
59
  }
51
60
  }
52
61
  }
62
+ },
63
+ MuiFormControlLabel: {
64
+ styleOverrides: {
65
+ root: {
66
+ marginRight: 0
67
+ }
68
+ }
53
69
  }
54
70
  }
55
71
  });
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import Typography from '@mui/material/Typography';
3
- import { AccordionSummaryContent, AccordionSummaryTitle, Theme } from './MaterialAccordionGroup.styled';
2
+ import { AccordionSummaryContent, AccordionSummaryTitle, AccordionContent, Theme } from './MaterialAccordionGroup.styled';
4
3
  import { ThemeProvider } from '@mui/material/styles';
5
4
  import MaterialSwitch from '../MaterialSwitch/MaterialSwitch';
6
5
  import MaterialTooltip from '../MaterialTooltip/MaterialTooltip';
@@ -29,9 +28,9 @@ const MaterialAccordionGroup = ({ title, tooltipText, children, switchProps, wit
29
28
  {withSwitch && <MaterialSwitch { ...switchProps } />}
30
29
  </MuiAccordionSummary>
31
30
  <MuiAccordionDetails>
32
- <Typography>
31
+ <AccordionContent>
33
32
  {children}
34
- </Typography>
33
+ </AccordionContent>
35
34
  </MuiAccordionDetails>
36
35
  </MuiAccordion>
37
36
  </ThemeProvider>
@@ -8,5 +8,6 @@ export const BaseModalWrapper = styled('div')({
8
8
  width: 'fit-content',
9
9
  backgroundColor: '#fff',
10
10
  boxShadow: '0px 0px 20px rgba(76, 78, 100, 0.4)',
11
- borderRadius: '10px'
11
+ borderRadius: '10px',
12
+ maxWidth: '93%'
12
13
  });
@@ -53,4 +53,10 @@
53
53
 
54
54
  .switchBlock
55
55
  display: flex
56
- justify-content: space-between
56
+ justify-content: space-between
57
+ align-items: center
58
+ font-size: 12px
59
+ line-height: 15px
60
+ letter-spacing: 1px
61
+ color: rgba(76, 78, 100, 0.87)
62
+ text-align: left