@am92/react-design-system 2.7.7 → 2.7.8

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.
@@ -52,8 +52,8 @@ export const DsButtonOverrides = {
52
52
  borderColor: 'var(--ds-colour-strokeDefault)',
53
53
  color: 'var(--ds-colour-typoActionPrimary)',
54
54
  '&:disabled': {
55
- backgroundColor: 'var(--ds-colour-stateDisabledSurface)',
56
- color: 'var(--ds-colour-typoDisabled)'
55
+ backgroundColor: 'var(--ds-colour-stateUnselectedDefault)',
56
+ color: 'var(--ds-colour-typoOnSurface)'
57
57
  },
58
58
  ...STATE_STYLES.SURFACE_SECONDARY_STATE_PRIMARY
59
59
  }
@@ -19,6 +19,9 @@ export const DsDividerOverrides = {
19
19
  },
20
20
  '&::after': {
21
21
  borderWidth: '0.5px'
22
+ },
23
+ '&:not(.MuiDivider-withChildren)': {
24
+ borderWidth: '0.5px'
22
25
  }
23
26
  }
24
27
  },
@@ -30,6 +33,9 @@ export const DsDividerOverrides = {
30
33
  },
31
34
  '&::after': {
32
35
  borderWidth: '6px'
36
+ },
37
+ '&:not(.MuiDivider-withChildren)': {
38
+ borderWidth: '6px'
33
39
  }
34
40
  }
35
41
  }
@@ -8,6 +8,6 @@ export class DsRadio extends PureComponent {
8
8
  static defaultProps = DsRadioDefaultProps;
9
9
  render() {
10
10
  const { disabled, RadioProps, ...restProps } = this.props;
11
- return (_jsx(DsFormControlLabel, { ...restProps, disabled: disabled, control: _jsx(Radio, { icon: _jsx(DsRemixIcon, { className: "ri-checkbox-blank-circle-line", sx: { fontSize: 'var(--ds-typo-fontSizeCool)' } }), checkedIcon: _jsx(DsRemixIcon, { className: "ri-radio-button-line", sx: { fontSize: 'var(--ds-typo-fontSizeCool)' } }), color: "secondary", ...RadioProps, disabled: disabled }) }));
11
+ return (_jsx(DsFormControlLabel, { ...restProps, disabled: disabled, control: _jsx(Radio, { icon: _jsx(DsRemixIcon, { className: "ri-checkbox-blank-circle-line", sx: { fontSize: 'var(--ds-typo-fontSizeBitterCold)' } }), checkedIcon: _jsx(DsRemixIcon, { className: "ri-radio-button-line", sx: { fontSize: 'var(--ds-typo-fontSizeBitterCold)' } }), color: "secondary", ...RadioProps, disabled: disabled }) }));
12
12
  }
13
13
  }
@@ -1 +1,9 @@
1
- export declare const DsRadioOverrides: {};
1
+ export declare const DsRadioOverrides: {
2
+ MuiRadio: {
3
+ styleOverrides: {
4
+ root: {
5
+ padding: string;
6
+ };
7
+ };
8
+ };
9
+ };
@@ -1 +1,9 @@
1
- export const DsRadioOverrides = {};
1
+ export const DsRadioOverrides = {
2
+ MuiRadio: {
3
+ styleOverrides: {
4
+ root: {
5
+ padding: 'var(--ds-spacing-quickFreeze)'
6
+ }
7
+ }
8
+ }
9
+ };
@@ -1 +1,3 @@
1
- export { default as DsRadioGroup } from '@mui/material/RadioGroup';
1
+ import { FC } from 'react';
2
+ import { DsRadioGroupProps } from './DsRadioGroup.Types';
3
+ export declare const DsRadioGroup: FC<DsRadioGroupProps>;
@@ -1 +1,10 @@
1
- export { default as DsRadioGroup } from '@mui/material/RadioGroup';
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import RadioGroup from '@mui/material/RadioGroup';
3
+ export const DsRadioGroup = props => {
4
+ return (_jsx(RadioGroup, { ...props, sx: {
5
+ '> *:nth-last-child(n+2)': {
6
+ marginBottom: 'var(--ds-spacing-glacial)'
7
+ },
8
+ ...props.sx
9
+ } }));
10
+ };
@@ -4,6 +4,9 @@ export declare const DsSelectOverrides: {
4
4
  styleOverrides: {
5
5
  icon: {
6
6
  color: string;
7
+ '.MuiInputBase-root.Mui-readOnly &': {
8
+ color: string;
9
+ };
7
10
  };
8
11
  };
9
12
  };
@@ -4,7 +4,10 @@ export const DsSelectOverrides = {
4
4
  defaultProps: DsSelectDefaultProps,
5
5
  styleOverrides: {
6
6
  icon: {
7
- color: 'var(--ds-colour-iconDefault)'
7
+ color: 'var(--ds-colour-iconDefault)',
8
+ '.MuiInputBase-root.Mui-readOnly &': {
9
+ color: 'var(--ds-colour-iconDisabled)'
10
+ }
8
11
  }
9
12
  }
10
13
  }
@@ -1,6 +1,6 @@
1
1
  export const DsSelectDefaultProps = {
2
2
  options: [],
3
- variant: 'filled',
3
+ variant: 'outlined',
4
4
  defaultValue: '',
5
5
  MenuProps: {
6
6
  anchorOrigin: {
@@ -2,8 +2,9 @@ import { CSSInterpolation } from '@mui/system';
2
2
  export declare const DsStepConnectorOverrides: {
3
3
  MuiStepConnector: {
4
4
  styleOverrides: {
5
+ horizontal: CSSInterpolation;
5
6
  lineVertical: CSSInterpolation;
6
- vertical: CSSInterpolation;
7
+ lineHorizontal: CSSInterpolation;
7
8
  };
8
9
  };
9
10
  };
@@ -1,14 +1,21 @@
1
1
  export const DsStepConnectorOverrides = {
2
2
  MuiStepConnector: {
3
3
  styleOverrides: {
4
+ horizontal: {
5
+ left: 'calc(-50% + 13px)',
6
+ right: 'calc(50% + 11px)'
7
+ },
4
8
  lineVertical: {
5
9
  borderLeftWidth: '2px',
6
10
  borderLeftStyle: 'solid',
7
11
  borderLeftColor: 'var(--ds-colour-strokeDefault)',
8
12
  minHeight: 'var(--ds-rules-stepperConnectorMinHeight)'
9
13
  },
10
- vertical: {
11
- marginLeft: '27px'
14
+ lineHorizontal: {
15
+ borderTopWidth: '2px',
16
+ borderTopStyle: 'solid',
17
+ borderColor: 'var(--ds-colour-strokeDefault)',
18
+ minHeight: 'var(--ds-rules-stepperConnectorMinHeight)'
12
19
  }
13
20
  }
14
21
  }
@@ -8,10 +8,10 @@ export const DsStepLabelOverrides = {
8
8
  paddingBottom: 'var(--ds-spacing-zero)'
9
9
  },
10
10
  label: {
11
- fontWeight: 'var(--ds-typo-bodyRegularMedium-fontWeight)',
12
- fontSize: 'var(--ds-typo-bodyRegularMedium-fontSize)',
13
- lineHeight: 'var(--ds-typo-bodyRegularMedium-lineHeight)',
14
- letterSpacing: 'var(--ds-typo-bodyRegularMedium-letterSpacing)',
11
+ fontWeight: 'var(--ds-typo-bodyRegularSmall-fontWeight)',
12
+ fontSize: 'var(--ds-typo-bodyRegularSmall-fontSize)',
13
+ lineHeight: 'var(--ds-typo-bodyRegularSmall-lineHeight)',
14
+ letterSpacing: 'var(--ds-typo-bodyRegularSmall-letterSpacing)',
15
15
  textTransform: 'none',
16
16
  color: 'var(--ds-colour-typoPrimary)',
17
17
  marginLeft: 'var(--ds-spacing-mild)',
@@ -599,8 +599,9 @@ declare const componentOverrides: {
599
599
  };
600
600
  MuiStepConnector: {
601
601
  styleOverrides: {
602
+ horizontal: import("@mui/system").CSSInterpolation;
602
603
  lineVertical: import("@mui/system").CSSInterpolation;
603
- vertical: import("@mui/system").CSSInterpolation;
604
+ lineHorizontal: import("@mui/system").CSSInterpolation;
604
605
  };
605
606
  };
606
607
  MuiSlider: {
@@ -714,6 +715,16 @@ declare const componentOverrides: {
714
715
  styleOverrides: {
715
716
  icon: {
716
717
  color: string;
718
+ '.MuiInputBase-root.Mui-readOnly &': {
719
+ color: string;
720
+ };
721
+ };
722
+ };
723
+ };
724
+ MuiRadio: {
725
+ styleOverrides: {
726
+ root: {
727
+ padding: string;
717
728
  };
718
729
  };
719
730
  };
@@ -18,7 +18,7 @@ export default function getDarkModeColorScheme(colorPalette) {
18
18
  typoActionTertiary: tertiary10,
19
19
  typoOnSurface: primaryWhite,
20
20
  typoDisabled: secondaryGrey60,
21
- typoTypical: typical,
21
+ typoTypical: snackBlueNeutralDark,
22
22
  typoOnSurfaceDynamic: primaryBlackLight,
23
23
  neutral1: neutral1Dark,
24
24
  neutral2: neutral2Dark,
@@ -35,7 +35,7 @@ export default function getDarkModeColorScheme(colorPalette) {
35
35
  iconOnSurface: primaryWhite,
36
36
  iconDisabled: secondaryGrey60,
37
37
  iconDefault: primaryWhite,
38
- iconTypical: typical,
38
+ iconTypical: snackBlueNeutralDark,
39
39
  iconOnSurfaceDynamic: primaryBlackLight,
40
40
  strokeDefault: secondaryGrey80,
41
41
  strokeSelected: secondary60,
@@ -47,7 +47,7 @@ export default function getDarkModeColorScheme(colorPalette) {
47
47
  supportPositive: successGreenDark,
48
48
  supportWarning: warningOrangeDark,
49
49
  supportVariable: snackBlue,
50
- supportTypical: typical,
50
+ supportTypical: snackBlueNeutralDark,
51
51
  supportNegativeNeutral: errorRedNeutralDark,
52
52
  supportPositiveNeutral: successGreenNeutralDark,
53
53
  supportWarningNeutral: warningOrangeNeutralDark,
@@ -61,7 +61,7 @@ export default function getDarkModeColorScheme(colorPalette) {
61
61
  stateUnselectedHover: hexToRgbA(secondaryGrey50, 0.2),
62
62
  stateUnselectedPressed: hexToRgbA(secondaryGrey50, 0.25),
63
63
  stateDisabledSurface: secondaryGrey100,
64
- overlay: hexToRgbA(primaryBlack, 0.8),
64
+ overlay: hexToRgbA(primaryBlack, 0.5),
65
65
  overlayLoader: hexToRgbA(primaryBlack, 0.3),
66
66
  dotLoader: primaryWhite
67
67
  };
@@ -61,7 +61,7 @@ export default function getHighContrastModeColorScheme(colorPalette) {
61
61
  stateUnselectedHover: hexToRgbA(secondaryGrey50, 0.2),
62
62
  stateUnselectedPressed: hexToRgbA(secondaryGrey50, 0.25),
63
63
  stateDisabledSurface: secondaryGrey100,
64
- overlay: hexToRgbA(primaryBlack, 0.8),
64
+ overlay: hexToRgbA(primaryBlack, 0.5),
65
65
  overlayLoader: hexToRgbA(primaryBlack, 0.3),
66
66
  dotLoader: primaryWhite
67
67
  };
@@ -61,7 +61,7 @@ export default function getLightModeColorScheme(colorPalette) {
61
61
  stateUnselectedHover: hexToRgbA(secondaryGrey50, 0.12),
62
62
  stateUnselectedPressed: hexToRgbA(secondaryGrey50, 0.16),
63
63
  stateDisabledSurface: secondaryGrey20,
64
- overlay: hexToRgbA(primaryBlack, 0.8),
64
+ overlay: hexToRgbA(primaryBlack, 0.5),
65
65
  overlayLoader: hexToRgbA(primaryWhite, 0.3),
66
66
  dotLoader: secondary100
67
67
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@am92/react-design-system",
3
- "version": "2.7.7",
3
+ "version": "2.7.8",
4
4
  "description": "ReactJS Design System using Material UI",
5
5
  "sideEffects": false,
6
6
  "types": "dist/index.d.ts",