@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.
- package/dist/Components/DsButton/DsButton.Overrides.js +2 -2
- package/dist/Components/DsDivider/DsDivider.Overrides.js +6 -0
- package/dist/Components/DsRadio/DsRadio.Component.js +1 -1
- package/dist/Components/DsRadio/DsRadio.Overrides.d.ts +9 -1
- package/dist/Components/DsRadio/DsRadio.Overrides.js +9 -1
- package/dist/Components/DsRadioGroup/DsRadioGroup.Component.d.ts +3 -1
- package/dist/Components/DsRadioGroup/DsRadioGroup.Component.js +10 -1
- package/dist/Components/DsSelect/DsSelect.Overrides.d.ts +3 -0
- package/dist/Components/DsSelect/DsSelect.Overrides.js +4 -1
- package/dist/Components/DsSelect/DsSelect.Types.js +1 -1
- package/dist/Components/DsStepConnector/DsStepConnector.Overrides.d.ts +2 -1
- package/dist/Components/DsStepConnector/DsStepConnector.Overrides.js +9 -2
- package/dist/Components/DsStepLabel/DsStepLabel.Overrides.js +4 -4
- package/dist/Theme/componentOverrides.d.ts +12 -1
- package/dist/Theme/getColorScheme/dark.js +4 -4
- package/dist/Theme/getColorScheme/highContrast.js +1 -1
- package/dist/Theme/getColorScheme/light.js +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
56
|
-
color: 'var(--ds-colour-
|
|
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-
|
|
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,10 @@
|
|
|
1
|
-
|
|
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,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
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
11
|
-
|
|
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-
|
|
12
|
-
fontSize: 'var(--ds-typo-
|
|
13
|
-
lineHeight: 'var(--ds-typo-
|
|
14
|
-
letterSpacing: 'var(--ds-typo-
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
64
|
+
overlay: hexToRgbA(primaryBlack, 0.5),
|
|
65
65
|
overlayLoader: hexToRgbA(primaryWhite, 0.3),
|
|
66
66
|
dotLoader: secondary100
|
|
67
67
|
};
|